@syncfusion/ej2-office-common 35.1.37 → 35.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-office-common.umd.min.js +2 -2
- package/dist/ej2-office-common.umd.min.js.map +1 -1
- package/dist/es6/ej2-office-common.es2015.js +5421 -6017
- package/dist/es6/ej2-office-common.es2015.js.map +1 -1
- package/dist/es6/ej2-office-common.es5.js +6270 -7203
- package/dist/es6/ej2-office-common.es5.js.map +1 -1
- package/dist/global/ej2-office-common.min.js +2 -2
- package/dist/global/ej2-office-common.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/office-common.js +4 -0
- package/package.json +11 -7
- package/src/index.d.ts +3 -17
- package/src/index.js +3 -18
- package/src/office-common/features/index.d.ts +6 -0
- package/src/office-common/features/index.js +6 -0
- package/src/office-common/features/mathml/index.d.ts +25 -0
- package/src/office-common/features/mathml/index.js +22 -0
- package/src/office-common/features/mathml/latex/latex-generator.d.ts +8 -0
- package/src/office-common/features/mathml/latex/latex-generator.js +357 -0
- package/src/office-common/features/mathml/latex/latex-parser.d.ts +87 -0
- package/src/office-common/features/mathml/latex/latex-parser.js +1206 -0
- package/src/office-common/features/mathml/latex/latex-symbols.d.ts +13 -0
- package/src/office-common/features/mathml/latex/latex-symbols.js +681 -0
- package/src/office-common/features/mathml/math-settings.d.ts +54 -0
- package/src/office-common/features/mathml/math-settings.js +174 -0
- package/src/office-common/features/mathml/office-math/adapter.d.ts +59 -0
- package/src/office-common/features/mathml/office-math/adapter.js +6 -0
- package/src/office-common/features/mathml/office-math/basic.d.ts +91 -0
- package/src/office-common/features/mathml/office-math/basic.js +93 -0
- package/src/office-common/features/mathml/office-math/break.d.ts +30 -0
- package/src/office-common/features/mathml/office-math/break.js +75 -0
- package/src/office-common/features/mathml/office-math/collection.d.ts +104 -0
- package/src/office-common/features/mathml/office-math/collection.js +170 -0
- package/src/office-common/features/mathml/office-math/entity.d.ts +12 -0
- package/src/office-common/features/mathml/office-math/entity.js +3 -0
- package/src/office-common/features/mathml/office-math/enums.d.ts +97 -0
- package/src/office-common/features/mathml/office-math/enums.js +108 -0
- package/src/office-common/features/mathml/office-math/format.d.ts +28 -0
- package/src/office-common/features/mathml/office-math/format.js +90 -0
- package/src/office-common/features/mathml/office-math/function-base.d.ts +27 -0
- package/src/office-common/features/mathml/office-math/function-base.js +69 -0
- package/src/office-common/features/mathml/office-math/function-collection.d.ts +29 -0
- package/src/office-common/features/mathml/office-math/function-collection.js +76 -0
- package/src/office-common/features/mathml/office-math/functions-basic.d.ts +118 -0
- package/src/office-common/features/mathml/office-math/functions-basic.js +331 -0
- package/src/office-common/features/mathml/office-math/functions-multi.d.ts +156 -0
- package/src/office-common/features/mathml/office-math/functions-multi.js +407 -0
- package/src/office-common/features/mathml/office-math/index.d.ts +27 -0
- package/src/office-common/features/mathml/office-math/index.js +25 -0
- package/src/office-common/features/mathml/office-math/keys.d.ts +6 -0
- package/src/office-common/features/mathml/office-math/keys.js +20 -0
- package/src/office-common/features/mathml/office-math/math-clone.d.ts +20 -0
- package/src/office-common/features/mathml/office-math/math-clone.js +203 -0
- package/src/office-common/features/mathml/office-math/math-collection.d.ts +19 -0
- package/src/office-common/features/mathml/office-math/math-collection.js +41 -0
- package/src/office-common/features/mathml/office-math/math-equality.d.ts +21 -0
- package/src/office-common/features/mathml/office-math/math-equality.js +115 -0
- package/src/office-common/features/mathml/office-math/math-paragraph.d.ts +58 -0
- package/src/office-common/features/mathml/office-math/math-paragraph.js +126 -0
- package/src/office-common/features/mathml/office-math/math-traversal.d.ts +23 -0
- package/src/office-common/features/mathml/office-math/math-traversal.js +95 -0
- package/src/office-common/features/mathml/office-math/matrix-collections.d.ts +54 -0
- package/src/office-common/features/mathml/office-math/matrix-collections.js +113 -0
- package/src/office-common/features/mathml/office-math/matrix-column.d.ts +43 -0
- package/src/office-common/features/mathml/office-math/matrix-column.js +96 -0
- package/src/office-common/features/mathml/office-math/matrix-row.d.ts +38 -0
- package/src/office-common/features/mathml/office-math/matrix-row.js +71 -0
- package/src/office-common/features/mathml/office-math/matrix.d.ts +62 -0
- package/src/office-common/features/mathml/office-math/matrix.js +158 -0
- package/src/office-common/features/mathml/office-math/office-math.d.ts +55 -0
- package/src/office-common/features/mathml/office-math/office-math.js +116 -0
- package/src/office-common/features/mathml/office-math/owner-holder.d.ts +42 -0
- package/src/office-common/features/mathml/office-math/owner-holder.js +87 -0
- package/src/office-common/features/mathml/office-math/property-store.d.ts +66 -0
- package/src/office-common/features/mathml/office-math/property-store.js +99 -0
- package/src/office-common/features/mathml/office-math/run-element.d.ts +31 -0
- package/src/office-common/features/mathml/office-math/run-element.js +97 -0
- package/src/office-common/features/mathml/office-math/unknown-element.d.ts +37 -0
- package/src/office-common/features/mathml/office-math/unknown-element.js +62 -0
- package/src/office-common/features/mathml/office-math/xml-equal.d.ts +13 -0
- package/src/office-common/features/mathml/office-math/xml-equal.js +24 -0
- package/src/office-common/features/mathml/parse/office-math-parser.d.ts +24 -0
- package/src/office-common/features/mathml/parse/office-math-parser.js +396 -0
- package/src/office-common/features/mathml/parse/office-math-properties.d.ts +165 -0
- package/src/office-common/features/mathml/parse/office-math-properties.js +432 -0
- package/src/office-common/features/mathml/parse/parse-options.d.ts +22 -0
- package/src/office-common/features/mathml/parse/parse-options.js +3 -0
- package/src/office-common/features/mathml/serialize/office-math-properties-writer.d.ts +38 -0
- package/src/office-common/features/mathml/serialize/office-math-properties-writer.js +267 -0
- package/src/office-common/features/mathml/serialize/office-math-serializer.d.ts +23 -0
- package/src/office-common/features/mathml/serialize/office-math-serializer.js +306 -0
- package/src/office-common/features/mathml/serialize/omml-writer.d.ts +123 -0
- package/src/office-common/features/mathml/serialize/omml-writer.js +135 -0
- package/src/office-common/index.d.ts +10 -0
- package/src/office-common/index.js +10 -0
- package/.eslintrc.json +0 -263
- package/.prettierrc.json +0 -5
- package/api-extractor.json +0 -35
- package/core.js +0 -4
- package/encryption.js +0 -4
- package/features.js +0 -4
- package/global.json +0 -6
- package/nuget.config +0 -7
- package/src/all.d.ts +0 -41
- package/src/all.js +0 -38
- package/src/features/index.d.ts +0 -11
- package/src/features/index.js +0 -11
- package/src/features/mathml/index.d.ts +0 -30
- package/src/features/mathml/index.js +0 -22
- package/src/features/mathml/math-factory.d.ts +0 -26
- package/src/features/mathml/math-factory.js +0 -568
- package/src/features/mathml/model/controls.d.ts +0 -896
- package/src/features/mathml/model/controls.js +0 -1541
- package/src/features/mathml/model/math-element.d.ts +0 -173
- package/src/features/mathml/model/math-element.js +0 -315
- package/src/features/mathml/model/roots.d.ts +0 -82
- package/src/features/mathml/model/roots.js +0 -177
- package/src/features/mathml/parse/math-parser.d.ts +0 -43
- package/src/features/mathml/parse/math-parser.js +0 -636
- package/src/features/mathml/serialize/math-serializer.d.ts +0 -34
- package/src/features/mathml/serialize/math-serializer.js +0 -749
- package/tsconfig.build.json +0 -13
- package/tsconfig.harness.json +0 -32
- package/tslint.json +0 -111
- /package/src/{core → office-common/core}/index.d.ts +0 -0
- /package/src/{core → office-common/core}/index.js +0 -0
- /package/src/{core → office-common/core}/xml/index.d.ts +0 -0
- /package/src/{core → office-common/core}/xml/index.js +0 -0
- /package/src/{core → office-common/core}/xml/model.d.ts +0 -0
- /package/src/{core → office-common/core}/xml/model.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-constants.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-constants.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-encryption-info.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-encryption-info.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-password.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-password.js +0 -0
- /package/src/{encryption → office-common/encryption}/cfb-reader.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/cfb-reader.js +0 -0
- /package/src/{encryption → office-common/encryption}/crypto-primitives.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/crypto-primitives.js +0 -0
- /package/src/{encryption → office-common/encryption}/decrypt-encrypted-package.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/decrypt-encrypted-package.js +0 -0
- /package/src/{encryption → office-common/encryption}/encryption-info-xml.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/encryption-info-xml.js +0 -0
- /package/src/{encryption → office-common/encryption}/errors.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/errors.js +0 -0
- /package/src/{encryption → office-common/encryption}/index.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/index.js +0 -0
- /package/src/{features → office-common/features}/diagrams/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/constants.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-data-model.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-data-model.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-parsers.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-parsers.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-serializers.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-serializers.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-views.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-views.js +0 -0
- /package/src/{features → office-common/features}/diagrams/element-tree.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/element-tree.js +0 -0
- /package/src/{features → office-common/features}/diagrams/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/errors.js +0 -0
- /package/src/{features → office-common/features}/diagrams/index.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/index.js +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-catalog.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-catalog.js +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-diagram.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-diagram.js +0 -0
- /package/src/{features → office-common/features}/ink/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/constants.js +0 -0
- /package/src/{features → office-common/features}/ink/index.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/index.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-effects.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-effects.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-model.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-model.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-parser.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-parser.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-serializer.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-serializer.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-units.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-units.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-xml.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-xml.js +0 -0
- /package/src/{features → office-common/features}/ink/trace-codec.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/trace-codec.js +0 -0
- /package/src/{features → office-common/features}/mathml/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/constants.js +0 -0
- /package/src/{features → office-common/features}/mathml/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/errors.js +0 -0
- /package/src/{features → office-common/features}/mathml/model/enums.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/model/enums.js +0 -0
- /package/src/{features → office-common/features}/mathml/openxml.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/openxml.js +0 -0
- /package/src/{features → office-common/features}/smart-art/diagram-xml.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/diagram-xml.js +0 -0
- /package/src/{features → office-common/features}/smart-art/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/errors.js +0 -0
- /package/src/{features → office-common/features}/smart-art/index.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/index.js +0 -0
- /package/src/{features → office-common/features}/smart-art/minimal-samples.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/minimal-samples.js +0 -0
- /package/src/{features → office-common/features}/smart-art/mutators.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/mutators.js +0 -0
- /package/src/{features → office-common/features}/smart-art/namespaces.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/namespaces.js +0 -0
- /package/src/{features → office-common/features}/smart-art/package-graph.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/package-graph.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-colors.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-colors.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-data.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-data.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-layout.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-layout.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-rel-ids.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-rel-ids.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-style.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-style.js +0 -0
- /package/src/{features → office-common/features}/smart-art/point-text.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/point-text.js +0 -0
- /package/src/{features → office-common/features}/smart-art/register.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/register.js +0 -0
- /package/src/{features → office-common/features}/smart-art/serialize.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/serialize.js +0 -0
- /package/src/{features → office-common/features}/smart-art/types.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/types.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-office-common.min.js
|
|
3
|
-
* version : 35.1.
|
|
3
|
+
* version : 35.1.42
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
this.ej=this.ej||{},this.ej.officecommon=function(e){"use strict";function r(e){return gn[e]}function t(e){if(0===e.length)return{prefix:void 0,raw:e};var r=e.charAt(0);return r===Pn?{prefix:"absolute",raw:e.slice(1)}:r===_n?{prefix:"first",raw:e.slice(1)}:r===xn?{prefix:"second",raw:e.slice(1)}:{prefix:void 0,raw:e}}function n(e){if(0!==e.length){var r=Number(e);return Number.isFinite(r)?r:void 0}}function i(e){var r,i,o=e.trim();if(0===o.length)return{channelRows:[],points:[],stats:{packetCount:0,channelValueCount:0,pointCount:0}};var a=o.split(","),s=[],u=[],c=0,l=[],p=[],f="absolute";try{for(var h=wn(a),d=h.next();!d.done;d=h.next()){var v=d.value.trim().split(/\s+/).filter(function(e){return e.length>0});if(0!==v.length){for(var y=f,m=[],b=0;b<v.length;b++){var g=v[b];if(void 0!==g){var w=t(g),P=w.prefix,_=w.raw;void 0!==P&&(y=P,f=P);var x=n(_);if(c+=1,void 0!==x){var S=void 0;if("absolute"===y)S=x,p[b]=0;else if("first"===y)S=(O=null!=l[b]?l[b]:0)+x,p[b]=x;else{var M=(null!=p[b]?p[b]:0)+x;p[b]=M;var O=null!=l[b]?l[b]:0;S=O+M}m[b]=S}}}s.push(m),l=m.slice();var k=m[0],E=m[1];void 0!==k&&void 0!==E&&u.push({x:k,y:E})}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return{channelRows:s,points:u,stats:{packetCount:s.length,channelValueCount:c,pointCount:u.length}}}function o(e){return 0===e.length?"":e.map(function(e){return a(e.x)+" "+a(e.y)}).join(", ")}function a(e){return Number.isInteger(e),String(e)}function s(e){var r=e[0];if(void 0===r)return{minX:0,minY:0,maxX:0,maxY:0};for(var t=r.x,n=r.y,i=t,o=n,a=1;a<e.length;a++){var s=e[a];void 0!==s&&(s.x<t&&(t=s.x),s.y<n&&(n=s.y),s.x>i&&(i=s.x),s.y>o&&(o=s.y))}return{minX:t,minY:n,maxX:i,maxY:o}}function u(e,r){if(0===e.length)return[];var t=s(e),n=t.maxX-t.minX,i=t.maxY-t.minY,o=n>0?r.width/n:0,a=i>0?r.height/i:0,u=n>0&&i>0?Math.min(o,a):n>0?o:i>0?a:0;return e.map(function(e){return{x:e.x*u,y:e.y*u}})}function c(e,r){if(0===e.length)return[];var t=s(e),n=t.maxX-t.minX,i=t.maxY-t.minY,o=n>0?r.width/n:0,a=i>0?r.height/i:0;return e.map(function(e){return{x:n>0?(e.x-t.minX)*o:0,y:i>0?(e.y-t.minY)*a:0}})}function l(e){return"none"===e||"pencil"===e||"rainbow"===e||"galaxy"===e||"lava"===e||"ocean"===e||"roseGold"===e||"gold"===e||"silver"===e||"bronze"===e}function p(e,r){var t={color:e.color,size:{width:e.size.width,height:e.size.height},units:e.units,inkEffect:e.inkEffect,ignorePressure:e.ignorePressure,id:r};return void 0!==e.tip&&(t.tip=e.tip),void 0!==e.rasterOp&&(t.rasterOp=e.rasterOp),void 0!==e.anchorX&&(t.anchorX=e.anchorX),void 0!==e.anchorY&&(t.anchorY=e.anchorY),void 0!==e.scaleFactor&&(t.scaleFactor=e.scaleFactor),void 0!==e.transparency&&(t.transparency=e.transparency),void 0!==e.antiAliased&&(t.antiAliased=e.antiAliased),void 0!==e.fitToCurve&&(t.fitToCurve=e.fitToCurve),t}function f(e){var r={id:e.id,channels:e.channels.map(function(e){var r={name:e.name};return void 0!==e.type&&(r.type=e.type),void 0!==e.min&&(r.min=e.min),void 0!==e.max&&(r.max=e.max),void 0!==e.units&&(r.units=e.units),r})};return void 0!==e.inkSourceId&&(r.inkSourceId=e.inkSourceId),r}function h(e){return{color:Cn,size:{width:An,height:An},units:Ln,inkEffect:"none",ignorePressure:!0,id:e}}function d(e,r){void 0!==r.color&&(e.color=r.color),void 0!==r.size&&(e.size={width:r.size.width,height:r.size.height}),void 0!==r.units&&(e.units=r.units),void 0!==r.inkEffect&&l(r.inkEffect)&&(e.inkEffect=r.inkEffect),void 0!==r.ignorePressure&&(e.ignorePressure=r.ignorePressure),void 0!==r.tip&&(e.tip=r.tip),void 0!==r.rasterOp&&(e.rasterOp=r.rasterOp),void 0!==r.anchorX&&(e.anchorX=r.anchorX),void 0!==r.anchorY&&(e.anchorY=r.anchorY),void 0!==r.scaleFactor&&(e.scaleFactor=r.scaleFactor)}function v(e){for(var r=new Set(e.map(function(e){return e.id})),t=0;;){var n="#br"+String(t);if(!r.has(n))return n;t+=1}}function y(e){var r=e;return Object.defineProperty(r,En,{value:!0,enumerable:!1,configurable:!1,writable:!1}),r}function m(e){return y(Sn({traces:e.traces,brushes:e.brushes,scaleMode:"decoded"},void 0!==e.contexts?{contexts:e.contexts}:{},void 0!==e.traceTree?{traceTree:e.traceTree}:{}))}function b(){return y({traces:[],brushes:[],scaleMode:"authored"})}function g(e,r,t){if(!x(e))throw new TypeError("addInkTrace: expected OfficeInk from createInk/cloneInk");var n,i=e,o=r.map(function(e){return{x:e.x,y:e.y}}),a=i.traces[i.traces.length-1];void 0!==a&&(n=i.brushes.find(function(e){return e.id===a.brushRef}));var s=v(i.brushes),u=void 0!==n?p(n,s):h(s);void 0!==t&&d(u,t),i.brushes.push(u);var c={points:o,brushRef:u.id,contextRef:Tn},l=i.traces.length;return i.traces.push(c),void 0!==i.traceTree&&(i.traceTree=On(i.traceTree,[{kind:"trace",traceIndex:l}])),c}function w(e){if(!x(e))throw new TypeError("cloneInk: expected OfficeInk from createInk/cloneInk");var r=e,t=r.brushes.map(function(e){return p(e,e.id)}),n={traces:r.traces.map(function(e){var r={points:e.points.map(function(e){return{x:e.x,y:e.y}}),brushRef:e.brushRef,contextRef:e.contextRef};return void 0!==e.timeOffset&&(r.timeOffset=e.timeOffset),r}),brushes:t,scaleMode:r.scaleMode};return void 0!==r.contexts&&(n.contexts=r.contexts.map(f)),void 0!==r.traceTree&&(n.traceTree=P(r.traceTree)),y(n)}function P(e){return e.map(function(e){return"trace"===e.kind?{kind:"trace",traceIndex:e.traceIndex}:{kind:"group",children:P(e.children)}})}function _(e,r){var t,n,i,o,a,s;if(!x(e))throw new TypeError("inkPathPoints: expected OfficeInk from createInk/cloneInk");var l=e,p=[];try{for(var f=kn(l.traces),h=f.next();!h.done;h=f.next()){_=h.value;try{for(var d=kn(_.points),v=d.next();!v.done;v=d.next()){var y=v.value;p.push(y)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}if(0===p.length)return l.traces.map(function(){return[]});var m="decoded"===l.scaleMode?u(p,r):c(p,r),b=0,g=[];try{for(var w=kn(l.traces),P=w.next();!P.done;P=w.next()){var _=P.value,S=m.slice(b,b+_.points.length);b+=_.points.length,g.push(On(S))}}catch(e){a={error:e}}finally{try{P&&!P.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}return g}function x(e){return null!==e&&"object"==typeof e&&!0===e[En]}function S(e,r){var t;switch((null!=r?r:"cm").trim().toLowerCase()){case"pt":t=e;break;case"mm":t=e/25.4*72;break;case"px":t=e/4*3;break;case"in":t=72*e;break;case"cm":t=e/2.54*72;break;case"emu":default:t=e/Un}return k(t)}function M(e,r){switch((null!=r?r:"cm").trim().toLowerCase()){case"pt":return e;case"mm":return 25.4*e/72;case"px":return 96*e/72;case"in":return e/72;case"cm":return 2.54*e/72;case"emu":return e*Un;default:return 2.54*e/72}}function O(e){if(!Number.isFinite(e))return"0";var r=e.toFixed(3);return-1===r.indexOf(".")?r:r.replace(/\.?0+$/,"")}function k(e){return Math.round(100*e)/100}function E(e,r,t,n){return void 0===r&&(r=[]),void 0===t&&(t=[]),void 0===n&&(n=[]),{kind:"element",namespaceUri:bn,localName:e,prefix:jn,attributes:r,namespaceDeclarations:n,children:t}}function A(e,r){return{namespaceUri:"",localName:e,prefix:"",value:r}}function C(e){return{namespaceUri:Nn,localName:"id",prefix:"xml",value:e}}function L(e){return{kind:"text",value:e}}function T(){return{prefix:jn,namespaceUri:bn}}function N(e,r,t){var n,i,o,a;try{for(var s=In(e.attributes),u=s.next();!u.done;u=s.next())if((p=u.value).localName===r&&(void 0===t||p.namespaceUri===t))return p.value}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}if("id"===r)try{for(var c=In(e.attributes),l=c.next();!l.done;l=c.next()){var p=l.value;if("id"===p.localName&&("xml"===p.prefix||p.namespaceUri===Nn))return p.value}}catch(e){o={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}}function U(e){var r,t,n="";try{for(var i=In(e.children),o=i.next();!o.done;o=i.next()){var a=o.value;"text"===a.kind?n+=a.value:n+=U(a)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return n}function I(e){return e.namespaceUri===bn||""===e.namespaceUri}function j(){return Zn}function B(e){var r,t,n,i,o=[],a=0,s=0,u=0,c=[],l=[],p=[],f=[];if(!R(e))return Zn={items:o,traceCount:0,packetCount:0,pointCount:0,channelValueCount:0},m({traces:[],brushes:[]});var h=!1;try{for(var d=Rn(e.children),v=d.next();!v.done;v=d.next())if("element"===(w=v.value).kind&&I(w)){var y=w.localName;if(!Dn.has(y)&&"definitions"===y){if(h)continue;h=!0,F(w,c,l)}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(t=d.return)&&t.call(d)}finally{if(r)throw r.error}}try{for(var b=Rn(e.children),g=b.next();!g.done;g=b.next()){var w=g.value;if("element"===w.kind&&I(w)){var P=w.localName;if(!Dn.has(P)&&"definitions"!==P)if("trace"===P){var _=V(w,p.length),x=_.trace,S=_.node,M=_.stats,O=_.diagnostic;p.push(x),f.push(S),a+=M.packetCount,s+=M.pointCount,u+=M.channelValueCount,void 0!==O&&o.push(O)}else if("traceGroup"===P){var k=X(w,p,o,function(e){a+=e.packetCount,s+=e.pointCount,u+=e.channelValueCount});k.children.length>0&&f.push(k)}}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(i=b.return)&&i.call(b)}finally{if(n)throw n.error}}return Zn={items:o,traceCount:p.length,packetCount:a,pointCount:s,channelValueCount:u},m(Bn({traces:p,brushes:c},l.length>0?{contexts:l}:{},p.length>0?{traceTree:f}:{}))}function R(e){return"ink"===e.localName&&(I(e)||e.namespaceUri===bn)}function F(e,r,t){var n,i;try{for(var o=Rn(e.children),a=o.next();!a.done;a=o.next()){var s=a.value;if("element"===s.kind&&I(s)&&!Dn.has(s.localName))if("brush"===s.localName)r.push(D(s));else if("context"===s.localName){var u=H(s);void 0!==u&&t.push(u)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function H(e){var r,t,n=Y(e);if(void 0!==n&&0!==n.length){var i,o=q(n),a=[];try{for(var s=Rn(e.children),u=s.next();!u.done;u=s.next()){var c=u.value;if("element"===c.kind&&I(c)&&!Dn.has(c.localName))if("inkSource"===c.localName){var l=Y(c);void 0!==l&&l.length>0&&(i=l),z(c,a)}else"traceFormat"===c.localName&&z(c,a)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(t=s.return)&&t.call(s)}finally{if(r)throw r.error}}var p={id:o,channels:a};return void 0!==i&&(p.inkSourceId=i),p}}function z(e,r){var t,n;try{for(var i=Rn(e.children),o=i.next();!o.done;o=i.next())!function(e){if("element"!==e.kind||!I(e))return"continue";if("traceFormat"===e.localName)return z(e,r),"continue";if("channel"!==e.localName)return"continue";var t=function(){var r=N(e,"name");return null!=r?r:""}();if(!Hn.has(t))return"continue";var n={name:t},i=N(e,"type");void 0!==i&&(n.type=i);var o=N(e,"min");void 0!==o&&(n.min=o);var a=N(e,"max");void 0!==a&&(n.max=a);var s=N(e,"units");void 0!==s&&zn.has(s)?n.units=s:void 0!==s&&(n.units=s),r.push(n)}(o.value)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}function D(e){var r,t,n,i,o,a,s,u,c=function(){var r=Y(e);return null!=r?r:""}(),l=q(c.length>0?c:"br0"),p=S(Yn,"cm"),f=S(qn,"cm"),h="cm",d=Kn,v=Gn,y=Jn,m=!1,b="none",g=!1,w=!1;try{for(var P=Rn(e.children),_=P.next();!_.done;_=P.next())!function(e){if("element"!==e.kind||!I(e))return"continue";if("brushProperty"!==e.localName)return"continue";var r=N(e,"name");if(void 0===r)return"continue";var t=r.trim().toLowerCase();if(!Vn.has(t))return"continue";var c=function(){var r=N(e,"value");return null!=r?r:""}(),l=N(e,"units");switch(t){case"width":void 0!==(O=K(c))&&(p=S(O,P=null!=l?l:"cm"),w||(h=P),g=!0,h=P);break;case"height":if(void 0!==(O=K(c))){var P=null!=l?l:h;f=S(O,P),w=!0,void 0!==l&&(h=l)}break;case"color":var _=G(c);void 0!==_&&(d=_);break;case"tip":c.length>0&&(v=c);break;case"rasterop":c.length>0&&(y=c);break;case"ignorepressure":m=J(c);break;case"inkeffects":var x=c.trim().toLowerCase().replace(/[_\s-]/g,""),M=Xn.get(x);void 0!==M&&(b=M);break;case"anchorx":n=c;break;case"anchory":i=c;break;case"scalefactor":o=c;break;case"transparency":var O=Number(c);Number.isFinite(O)&&(a=O);break;case"antialiased":s=J(c);break;case"fittocurve":u=J(c)}}(_.value)}catch(e){r={error:e}}finally{try{_&&!_.done&&(t=P.return)&&t.call(P)}finally{if(r)throw r.error}}g||w||(h="cm");var x={id:l,color:d,size:{width:p,height:f},units:h,inkEffect:b,ignorePressure:m,tip:v,rasterOp:y};return void 0!==n&&(x.anchorX=n),void 0!==i&&(x.anchorY=i),void 0!==o&&(x.scaleFactor=o),void 0!==a&&(x.transparency=a),void 0!==s&&(x.antiAliased=s),void 0!==u&&(x.fitToCurve=u),x}function V(e,r){var t,n=function(){var r=N(e,"brushRef");return null!=r?r:""}(),o=function(){var r=N(e,"contextRef");return null!=r?r:""}(),a=N(e,"timeOffset"),s=U(e).trim(),u=i(s);s.length>0&&0===u.points.length&&(t={code:Fn,message:"malformed or untokenizable ink trace text",traceIndex:r});var c={points:u.points.map(function(e){return{x:e.x,y:e.y}}),brushRef:n.length>0?q(n.replace(/^#/,"")):"",contextRef:o.length>0?q(o.replace(/^#/,"")):Wn};return n.length>0&&(c.brushRef=n.startsWith("#")?n:q(n)),void 0!==a&&(c.timeOffset=a),{trace:c,node:{kind:"trace",traceIndex:r},stats:{packetCount:u.stats.packetCount,pointCount:u.stats.pointCount,channelValueCount:u.stats.channelValueCount},diagnostic:t}}function X(e,r,t,n){var i,o,a=[];try{for(var s=Rn(e.children),u=s.next();!u.done;u=s.next()){var c=u.value;if("element"===c.kind&&I(c)&&!Dn.has(c.localName))if("trace"===c.localName){var l=V(c,r.length),p=l.trace,f=l.node,h=l.stats,d=l.diagnostic;r.push(p),a.push(f),n(h),void 0!==d&&t.push(d)}else if("traceGroup"===c.localName){var v=X(c,r,t,n);v.children.length>0&&a.push(v)}}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return{kind:"group",children:a}}function Y(e){var r=N(e,"id",Nn);return void 0!==r?r:N(e,"id")}function q(e){return e.startsWith("#")?e:"#"+e}function K(e){var r=e.trim();if(0!==r.length){r.startsWith(".")&&(r="0"+r);var t=Number(r);return Number.isFinite(t)?t:void 0}}function G(e){var r=e.trim();if(0!==r.length&&(r.startsWith("#")||(r="#"+r),/^#[0-9A-Fa-f]{6}$/.test(r)||/^#[0-9A-Fa-f]{3}$/.test(r))){if(4===r.length){var t=r.charAt(1),n=r.charAt(2),i=r.charAt(3);return("#"+t+t+n+n+i+i).toUpperCase()}return r.toUpperCase()}}function J(e){var r=e.trim().toLowerCase();return"1"===r||"true"===r}function W(e){var r,t,n,i,o,a,s,u;if(!x(e))throw new TypeError("serializeInkXml: expected OfficeInk from parseInkXml/createInk");var c=[],l=[],p=e.traces.some(function(e){return e.contextRef===ti||""===e.contextRef||e.contextRef==="#"+ri})||e.traces.length>0,f=null!=e.contexts?e.contexts:[],h=!1;try{for(var d=$n(f),v=d.next();!v.done;v=d.next()){var y=v.value;l.push($(y)),ae(y.id)===ri&&(h=!0)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(t=d.return)&&t.call(d)}finally{if(r)throw r.error}}p&&!h&&l.push($(Z()));var m=ei(e.brushes).sort(function(e,r){return e.id<r.id?-1:e.id>r.id?1:0});try{for(var b=$n(m),g=b.next();!g.done;g=b.next()){var w=g.value;l.push(ee(w))}}catch(e){n={error:e}}finally{try{g&&!g.done&&(i=b.return)&&i.call(b)}finally{if(n)throw n.error}}if(l.length>0&&c.push(E("definitions",[],l)),void 0!==e.traceTree&&e.traceTree.length>0)try{for(var P=$n(e.traceTree),_=P.next();!_.done;_=P.next()){var S=_.value;c.push.apply(c,ei(ie(S,e.traces)))}}catch(e){o={error:e}}finally{try{_&&!_.done&&(a=P.return)&&a.call(P)}finally{if(o)throw o.error}}else try{for(var M=$n(e.traces),O=M.next();!O.done;O=M.next()){var k=O.value;c.push(oe(k))}}catch(e){s={error:e}}finally{try{O&&!O.done&&(u=M.return)&&u.call(M)}finally{if(s)throw s.error}}return E("ink",[],c,[T()])}function Z(){return{id:ti,inkSourceId:ni,channels:[{name:"X",type:"integer",min:ii,max:oi,units:ai},{name:"Y",type:"integer",min:ii,max:oi,units:ai}]}}function $(e){var r=ae(e.id),t=ae(null!=e.inkSourceId?e.inkSourceId:ni),n=E("traceFormat",[],(e.channels.length>0?e.channels:Z().channels).map(function(e){return Q(e)})),i=E("inkSource",[C(t)],[n]);return E("context",[C(r)],[i])}function Q(e){var r=[A("name",e.name)];return void 0!==e.type&&r.push(A("type",e.type)),void 0!==e.min&&r.push(A("min",e.min)),void 0!==e.max&&r.push(A("max",e.max)),void 0!==e.units&&r.push(A("units",e.units)),E("channel",r,[])}function ee(e){var r=ae(e.id),t=[],n=e.units.length>0?e.units:"cm",i=M(e.size.width,n),o=M(e.size.height,n);t.push(re("width",O(i),n),re("height",O(o),n));var a=te(e);t.push(re("color",a.startsWith("#")?a:"#"+a));var s=e.inkEffect;return t.push(re("ignorePressure",e.ignorePressure?"1":"0")),"pencil"!==s&&void 0!==e.rasterOp&&e.rasterOp.length>0&&(t.push(re("tip",null!=e.tip?e.tip:"ellipse")),t.push(re("rasterOp",e.rasterOp))),"none"!==s&&(t.push(re("inkEffects",ne(s))),"pencil"!==s&&(t.push(re("anchorX",null!=e.anchorX?e.anchorX:"0")),t.push(re("anchorY",null!=e.anchorY?e.anchorY:"0")),t.push(re("scaleFactor",null!=e.scaleFactor?e.scaleFactor:"0.5")))),E("brush",[C(r)],t)}function re(e,r,t){var n=[A("name",e),A("value",r)];return void 0!==t&&n.push(A("units",t)),E("brushProperty",n,[])}function te(e){var t=r(e.inkEffect);return void 0!==t?t.toUpperCase():e.color.toUpperCase()}function ne(e){return"roseGold"===e?"roseGold":e}function ie(e,r){var t,n;if("trace"===e.kind){var i=r[e.traceIndex];return void 0===i?[]:[oe(i)]}var o=[];try{for(var a=$n(e.children),s=a.next();!s.done;s=a.next()){var u=s.value;o.push.apply(o,ei(ie(u,r)))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return[E("traceGroup",[],o)]}function oe(e){var r=[],t=e.contextRef.length>0?se(e.contextRef):ti;r.push(A("contextRef",t)),e.brushRef.length>0&&r.push(A("brushRef",se(e.brushRef))),void 0!==e.timeOffset&&r.push(A("timeOffset",e.timeOffset));var n=o(e.points);return E("trace",r,n.length>0?[L(n)]:[])}function ae(e){return e.startsWith("#")?e.slice(1):e}function se(e){return e.startsWith("#")?e:"#"+e}function ue(e){return-1!==pi.indexOf(e)?e:void 0}function ce(e){return-1!==fi.indexOf(e)?e:void 0}function le(e){return-1!==hi.indexOf(e)?e:void 0}function pe(e){return-1!==di.indexOf(e)?e:void 0}function fe(e){return-1!==vi.indexOf(e)?e:void 0}function he(e){return-1!==yi.indexOf(e)?e:void 0}function de(e){return-1!==mi.indexOf(e)?e:void 0}function ve(e){return-1!==bi.indexOf(e)?e:void 0}function ye(e){return-1!==gi.indexOf(e)?e:void 0}function me(e){return Number.isInteger(e)&&e>=-2&&e<=2}function be(e){return Number.isInteger(e)&&e>=1&&e<=255}function ge(e){return Number.isInteger(e)&&e>=0}function we(e){return Number.isInteger(e)&&e>=0&&e<=4}function Pe(e){if(void 0!==e){var r=e.toLowerCase();return"1"===r||"true"===r||"on"===r||"0"!==r&&"false"!==r&&"off"!==r&&void 0}}function _e(e){return e?"1":"0"}function xe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new Ci({},e)}function Se(e){return Object.freeze(Fi({},e))}function Me(e){return e instanceof Ci?e:new Ci({},e)}function Oe(e,r,t,n){return{kind:"element",namespaceUri:e,localName:r,prefix:t,attributes:function(){var e=null==n?void 0:n.attributes;return null!=e?e:[]}(),namespaceDeclarations:function(){var e=null==n?void 0:n.namespaceDeclarations;return null!=e?e:[]}(),children:function(){var e=null==n?void 0:n.children;return null!=e?e:[]}()}}function ke(e){return{kind:"text",value:e}}function Ee(e){return e.children.filter(function(e){return"element"===e.kind})}function Ae(e,r){return function(){var t=e.attributes.find(function(e){return e.localName===r});return null==t?void 0:t.value}()}function Ce(e,r,t){return function(){var n=e.attributes.find(function(e){return e.namespaceUri===r&&e.localName===t});return null==n?void 0:n.value}()}function Le(e){var r,t,n="";try{for(var i=co(e.children),o=i.next();!o.done;o=i.next()){var a=o.value;"text"===a.kind&&(n+=a.value)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return n}function Te(e){return e.namespaceUri===si}function Ne(e,r){return Ee(e).find(function(e){return Te(e)&&e.localName===r})}function Ue(e,r){return Ee(e).filter(function(e){return Te(e)&&e.localName===r})}function Ie(e){if(e)return Ae(e,"val")}function je(e,r){if(e){var t=Ne(e,r);if(t){var n=Ae(t,"val");return void 0===n||Pe(n)}}}function Be(e,r){if(e)return Ie(Ne(e,r))}function Re(e){if(e)return Ne(e,"ctrlPr")}function Fe(e,r,t,n,i){return function(){var i=null==n?void 0:n.onDiagnostic;null==i||i({path:r,message:t,localName:e.localName})}(),i.markPreserveOnly(e),i}function He(e){if(!e)return{};var r=Ie(Ne(e,"argSz"));if(void 0===r)return{};var t=Number(r);return Number.isFinite(t)&&me(t)?{argSz:t}:{}}function ze(e,r){var t,n;if(!e)return new Ci;var i=He(Ne(e,"argPr")),o=Ne(e,"ctrlPr"),a=[];try{for(var s=po(Ee(e)),u=s.next();!u.done;u=s.next()){var c=u.value;Te(c)&&("argPr"!==c.localName&&"ctrlPr"!==c.localName&&a.push(ur(c,r)))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return new Ci(i,a,o)}function De(e,r,t){return Ue(e,r).map(function(e){return ze(e,t)})}function Ve(e){var r=Be(e,"chr"),t=Re(e);return lo({},void 0!==r?{chr:r}:{},void 0!==t?{ctrlPr:t}:{})}function Xe(e){var r=Be(e,"pos"),t=void 0!==r?fe(r):void 0,n=Re(e);return lo({},void 0!==t?{pos:t}:{},void 0!==n?{ctrlPr:n}:{})}function Ye(e){var r=je(e,"opEmu"),t=je(e,"noBreak"),n=je(e,"diff"),i=je(e,"aln"),o=Re(e);return lo({},void 0!==r?{isOperatorEmulated:r}:{},void 0!==t?{isNoBreak:t}:{},void 0!==n?{isDifferential:n}:{},void 0!==i?{isAligned:i}:{},void 0!==o?{ctrlPr:o}:{})}function qe(e){var r,t,n={};try{for(var i=po(ho),o=i.next();!o.done;o=i.next()){var a=fo(o.value,2),s=a[0],u=a[1],c=je(e,s);void 0!==c&&(n[u]=c)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}var l=Re(e);return void 0!==l&&(n.ctrlPr=l),n}function Ke(e){var r=Be(e,"begChr"),t=Be(e,"sepChr"),n=Be(e,"endChr"),i=je(e,"grow"),o=Be(e,"shp"),a=void 0!==o?le(o):void 0,s=Re(e);return lo({},void 0!==r?{begChr:r}:{},void 0!==t?{sepChr:t}:{},void 0!==n?{endChr:n}:{},void 0!==i?{canGrow:i}:{},void 0!==a?{shp:a}:{},void 0!==s?{ctrlPr:s}:{})}function Ge(e){var r=Be(e,"baseJc"),t=je(e,"maxDist"),n=je(e,"objDist"),i=Re(e);return lo({},void 0!==r?{baseJc:r}:{},void 0!==t?{hasMaxDistance:t}:{},void 0!==n?{hasObjectDistance:n}:{},void 0!==i?{ctrlPr:i}:{})}function Je(e){var r=Be(e,"type"),t=void 0!==r?ce(r):void 0,n=Re(e);return lo({},void 0!==t?{type:t}:{},void 0!==n?{ctrlPr:n}:{})}function We(e){var r=Re(e);return lo({},void 0!==r?{ctrlPr:r}:{})}function Ze(e){var r=Be(e,"chr"),t=Be(e,"pos"),n=void 0!==t?fe(t):void 0,i=Be(e,"vertJc"),o=void 0!==i?fe(i):void 0,a=Re(e);return lo({},void 0!==r?{chr:r}:{},void 0!==n?{pos:n}:{},void 0!==o?{vertJc:o}:{},void 0!==a?{ctrlPr:a}:{})}function $e(e){var r=Re(e);return lo({},void 0!==r?{ctrlPr:r}:{})}function Qe(e){var r=Be(e,"baseJc"),t=je(e,"plcHide"),n=Re(e);return lo({},void 0!==r?{baseJc:r}:{},void 0!==t?{isPlaceholderHidden:t}:{},void 0!==n?{ctrlPr:n}:{})}function er(e){var r=Be(e,"chr"),t=Be(e,"limLoc"),n=void 0!==t?pe(t):void 0,i=je(e,"grow"),o=je(e,"subHide"),a=je(e,"supHide"),s=Re(e);return lo({},void 0!==r?{chr:r}:{},void 0!==n?{limLoc:n}:{},void 0!==i?{canGrow:i}:{},void 0!==o?{isSubscriptHidden:o}:{},void 0!==a?{isSuperscriptHidden:a}:{},void 0!==s?{ctrlPr:s}:{})}function rr(e){var r=je(e,"show"),t=je(e,"zeroWid"),n=je(e,"zeroAsc"),i=je(e,"zeroDesc"),o=je(e,"transp"),a=Re(e);return lo({},void 0!==r?{isShown:r}:{},void 0!==t?{isZeroWidth:t}:{},void 0!==n?{isZeroAscender:n}:{},void 0!==i?{isZeroDescender:i}:{},void 0!==o?{isTransparent:o}:{},void 0!==a?{ctrlPr:a}:{})}function tr(e){var r=je(e,"degHide"),t=Re(e);return lo({},void 0!==r?{isDegreeHidden:r}:{},void 0!==t?{ctrlPr:t}:{})}function nr(e){var r=je(e,"alnScr"),t=Re(e);return lo({},void 0!==r?{isScriptAligned:r}:{},void 0!==t?{ctrlPr:t}:{})}function ir(e){if(!e)return{};var r=je(e,"lit"),t=je(e,"nor"),n=Be(e,"scr"),i=Be(e,"sty"),o=void 0!==n?ve(n):void 0,a=void 0!==i?ye(i):void 0,s=je(e,"aln"),u=Be(e,"brk"),c=void 0!==u?Number(u):void 0,l=void 0!==c&&Number.isFinite(c)?c:void 0;return lo({},void 0!==r?{isLiteral:r}:{},void 0!==t?{isNormal:t}:{},void 0!==o?{scr:o}:{},void 0!==a?{sty:a}:{},void 0!==s?{isAligned:s}:{},void 0!==l?{brk:l}:{})}function or(e){var r=Ce(e,li,"space"),t="preserve"===r||"default"===r?r:void 0;return new Ai(Le(e),t)}function ar(e,r){var t,n,i,o=ir(Ne(e,"rPr")),a=[],s=[];try{for(var u=po(Ee(e)),c=u.next();!c.done;c=u.next()){var l=c.value;Te(l)&&"rPr"===l.localName||(l.namespaceUri!==ci||"rPr"!==l.localName?Te(l)&&"t"===l.localName?a.push(or(l)):Te(l)?a.push(ur(l,r)):s.push(l):i=l)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return new uo(a,o,i,s)}function sr(e,r){return new Qi(De(e,"e",r))}function ur(e,r){if(!Te(e))return new Li(e.localName,e);switch(e.localName){case"oMathPara":return lr(e,r);case"oMath":return cr(e,r);case"t":return or(e);case"r":return ar(e,r);case"acc":t=Ne(e,"accPr");return new Di(Ve(t),ze(Ne(e,"e"),r));case"bar":t=Ne(e,"barPr");return new Vi(Xe(t),ze(Ne(e,"e"),r));case"box":t=Ne(e,"boxPr");return new Xi(Ye(t),ze(Ne(e,"e"),r));case"borderBox":t=Ne(e,"borderBoxPr");return new Yi(qe(t),ze(Ne(e,"e"),r));case"d":t=Ne(e,"dPr");return(n=De(e,"e",r)).length<1?Fe(e,"d","m:d missing required m:e",r,new qi(Ke(t),[])):new qi(Ke(t),n);case"eqArr":var t=Ne(e,"eqArrPr"),n=De(e,"e",r);return n.length<1?Fe(e,"eqArr","m:eqArr missing required m:e",r,new Ki(Ge(t),[])):new Ki(Ge(t),n);case"f":var t=Ne(e,"fPr"),i=Ne(e,"num"),o=Ne(e,"den");return i&&o?new Gi(Je(t),ze(i,r),ze(o,r)):Fe(e,"f","m:f missing required m:num and/or m:den",r,new Gi(Je(t),ze(i,r),ze(o,r)));case"func":t=Ne(e,"funcPr");return new Ji(We(t),ze(Ne(e,"fName"),r),ze(Ne(e,"e"),r));case"groupChr":t=Ne(e,"groupChrPr");return new Wi(Ze(t),ze(Ne(e,"e"),r));case"limLow":t=Ne(e,"limLowPr");return new Zi($e(t),ze(Ne(e,"e"),r),ze(Ne(e,"lim"),r));case"limUpp":t=Ne(e,"limUppPr");return new $i($e(t),ze(Ne(e,"e"),r),ze(Ne(e,"lim"),r));case"m":var t=Ne(e,"mPr"),a=Ue(e,"mr").map(function(e){return sr(e,r)});return a.length<1?Fe(e,"m","m:m missing required m:mr",r,new eo(Qe(t),[])):new eo(Qe(t),a);case"mr":return sr(e,r);case"nary":t=Ne(e,"naryPr");return new ro(er(t),ze(Ne(e,"sub"),r),ze(Ne(e,"sup"),r),ze(Ne(e,"e"),r));case"phant":t=Ne(e,"phantPr");return new to(rr(t),ze(Ne(e,"e"),r));case"rad":t=Ne(e,"radPr");return new no(tr(t),ze(Ne(e,"deg"),r),ze(Ne(e,"e"),r));case"sPre":t=Ne(e,"sPrePr");return new io(nr(t),ze(Ne(e,"sub"),r),ze(Ne(e,"sup"),r),ze(Ne(e,"e"),r));case"sSub":t=Ne(e,"sSubPr");return new oo(nr(t),ze(Ne(e,"e"),r),ze(Ne(e,"sub"),r));case"sSubSup":t=Ne(e,"sSubSupPr");return new ao(nr(t),ze(Ne(e,"e"),r),ze(Ne(e,"sub"),r),ze(Ne(e,"sup"),r));case"sSup":t=Ne(e,"sSupPr");return new so(nr(t),ze(Ne(e,"e"),r),ze(Ne(e,"sup"),r));default:return new Li(e.localName,e)}}function cr(e,r){var t,n,i=[];try{for(var o=po(Ee(e)),a=o.next();!a.done;a=o.next()){var s=a.value;Te(s)?i.push(ur(s,r)):i.push(new Li(s.localName,s))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return new Bi(i)}function lr(e,r){var t=Ne(e,"oMathParaPr"),n=t?Be(t,"jc"):void 0,i=void 0!==n?ue(n):void 0,o=lo({},void 0!==i?{jc:i}:{}),a=Ue(e,"oMath").map(function(e){return cr(e,r)});return a.length<1?Fe(e,"oMathPara","m:oMathPara missing required m:oMath",r,new ji(o,[])):new ji(o,a)}function pr(e,r){return ur(e,r)}function fr(e,r){return e.map(function(e){return pr(e,r)})}function hr(e){var r,t;if(void 0!==(null==e?void 0:e.prefix)&&e.prefix.length>0)return e.prefix;var n=new Set(function(){var r=null==e?void 0:e.reservedPrefixes;return null!=r?r:[]}());try{for(var i=vo(ui),o=i.next();!o.done;o=i.next()){var a=o.value;if(!n.has(a))return a}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return"m999"}function dr(e){if(0===e.length)return!0;var r=e[0],t=e[e.length-1];return" "===r||"\t"===r||"\n"===r||"\r"===r||" "===t||"\t"===t||"\n"===t||"\r"===t}function vr(e){return e?"1":"0"}function yr(e,r,t,n){return void 0===t&&(t=[]),void 0===n&&(n=[]),Oe(si,r,e.prefix,{attributes:n,children:t})}function mr(e){return{namespaceUri:"",localName:"val",prefix:"",value:e}}function br(e,r,t){return yr(e,r,[],[mr(t)])}function gr(e,r,t){return yr(e,r,[],[mr(vr(t))])}function wr(e,r){void 0!==r&&e.push(r)}function Pr(e,r,t,n){if(-1===r.indexOf(e))throw new _i("Illegal "+n+" token '"+e+"' (not in schema enum)",t,"enum-value")}function _r(e,r,t){var n=e.path+"."+r,i=[],o=t.properties.argSz;if(void 0!==o){if(!me(o))throw new _i("argSz must be an integer in −2..2 (ST_Integer2), got "+String(o),n+".argPr.argSz","value-range");i.push(yr(e,"argPr",[br(e,"argSz",String(o))]))}for(var a=0;a<t.item.length;a++){var s=t.item[a];void 0!==s&&i.push(Jr(s,{prefix:e.prefix,path:n+"["+String(a)+"]"}))}return wr(i,t.ctrlPr),yr(e,r,i)}function xr(e,r){var t=[],n=r.xmlSpace;return void 0===n&&dr(r.value)&&(n="preserve"),void 0!==n&&t.push({namespaceUri:li,localName:"space",prefix:"xml",value:n}),yr(e,"t",[ke(r.value)],t)}function Sr(e,r){var t=r.properties,n=[];if(void 0!==t.isLiteral&&n.push(gr(e,"lit",t.isLiteral)),void 0!==t.isNormal&&n.push(gr(e,"nor",t.isNormal)),void 0!==t.scr&&(Pr(t.scr,bi,e.path+".rPr.scr","ST_Script"),n.push(br(e,"scr",t.scr))),void 0!==t.sty&&(Pr(t.sty,gi,e.path+".rPr.sty","ST_Style"),n.push(br(e,"sty",t.sty))),void 0!==t.brk){if(!(be(t.brk)||Number.isInteger(t.brk)&&0===t.brk)&&(!Number.isInteger(t.brk)||t.brk<0||t.brk>255))throw new _i("brk must be an integer in 0..255, got "+String(t.brk),e.path+".rPr.brk","value-range");n.push(br(e,"brk",String(t.brk)))}if(void 0!==t.isAligned&&n.push(gr(e,"aln",t.isAligned)),0!==n.length)return yr(e,"rPr",n)}function Mr(e,r){var t,n,i=[],o=Sr(e,r);void 0!==o&&i.push(o),void 0!==r.wRPr&&i.push(r.wRPr);for(var a=0;a<r.children.length;a++){var s=r.children[a];void 0!==s&&i.push(Jr(s,{prefix:e.prefix,path:e.path+".r["+String(a)+"]"}))}try{for(var u=vo(r.opaqueChildren),c=u.next();!c.done;c=u.next()){var l=c.value;i.push(l)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return yr(e,"r",i)}function Or(e,r){var t=[],n=[];return void 0!==r.properties.chr&&n.push(br(e,"chr",r.properties.chr)),wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"accPr",n)),t.push(_r(e,"e",r.base)),yr(e,"acc",t)}function kr(e,r){var t=[],n=[];return void 0!==r.properties.pos&&(Pr(r.properties.pos,vi,e.path+".barPr.pos","ST_TopBot"),n.push(br(e,"pos",r.properties.pos))),wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"barPr",n)),t.push(_r(e,"e",r.base)),yr(e,"bar",t)}function Er(e,r){var t=[],n=[],i=r.properties;return void 0!==i.isOperatorEmulated&&n.push(gr(e,"opEmu",i.isOperatorEmulated)),void 0!==i.isNoBreak&&n.push(gr(e,"noBreak",i.isNoBreak)),void 0!==i.isDifferential&&n.push(gr(e,"diff",i.isDifferential)),void 0!==i.isAligned&&n.push(gr(e,"aln",i.isAligned)),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"boxPr",n)),t.push(_r(e,"e",r.base)),yr(e,"box",t)}function Ar(e,r){var t,n,i=[],o=[],a=r.properties;try{for(var s=vo(mo),u=s.next();!u.done;u=s.next()){var c=yo(u.value,2),l=c[0],p=c[1],f=a[l];"boolean"==typeof f&&o.push(gr(e,p,f))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return wr(o,a.ctrlPr),o.length>0&&i.push(yr(e,"borderBoxPr",o)),i.push(_r(e,"e",r.base)),yr(e,"borderBox",i)}function Cr(e,r){var t,n;r.assertSerializable(e.path);var i=[],o=[],a=r.properties;void 0!==a.begChr&&o.push(br(e,"begChr",a.begChr)),void 0!==a.sepChr&&o.push(br(e,"sepChr",a.sepChr)),void 0!==a.endChr&&o.push(br(e,"endChr",a.endChr)),void 0!==a.canGrow&&o.push(gr(e,"grow",a.canGrow)),void 0!==a.shp&&(Pr(a.shp,hi,e.path+".dPr.shp","ST_Shp"),o.push(br(e,"shp",a.shp))),wr(o,a.ctrlPr),o.length>0&&i.push(yr(e,"dPr",o));try{for(var s=vo(r.elements),u=s.next();!u.done;u=s.next()){var c=u.value;i.push(_r(e,"e",c))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return yr(e,"d",i)}function Lr(e,r){var t,n;r.assertSerializable(e.path);var i=[],o=[],a=r.properties;void 0!==a.baseJc&&o.push(br(e,"baseJc",a.baseJc)),void 0!==a.hasMaxDistance&&o.push(gr(e,"maxDist",a.hasMaxDistance)),void 0!==a.hasObjectDistance&&o.push(gr(e,"objDist",a.hasObjectDistance)),wr(o,a.ctrlPr),o.length>0&&i.push(yr(e,"eqArrPr",o));try{for(var s=vo(r.elements),u=s.next();!u.done;u=s.next()){var c=u.value;i.push(_r(e,"e",c))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return yr(e,"eqArr",i)}function Tr(e,r){var t=[],n=[];return void 0!==r.properties.type&&(Pr(r.properties.type,fi,e.path+".fPr.type","ST_FType"),n.push(br(e,"type",r.properties.type))),wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"fPr",n)),t.push(_r(e,"num",r.numerator)),t.push(_r(e,"den",r.denominator)),yr(e,"f",t)}function Nr(e,r){var t=[],n=[];return wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"funcPr",n)),t.push(_r(e,"fName",r.name)),t.push(_r(e,"e",r.base)),yr(e,"func",t)}function Ur(e,r){var t=[],n=[],i=r.properties;return void 0!==i.chr&&n.push(br(e,"chr",i.chr)),void 0!==i.pos&&(Pr(i.pos,vi,e.path+".groupChrPr.pos","ST_TopBot"),n.push(br(e,"pos",i.pos))),void 0!==i.vertJc&&(Pr(i.vertJc,vi,e.path+".groupChrPr.vertJc","ST_TopBot"),n.push(br(e,"vertJc",i.vertJc))),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"groupChrPr",n)),t.push(_r(e,"e",r.base)),yr(e,"groupChr",t)}function Ir(e,r){var t=[],n=[];return wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"limLowPr",n)),t.push(_r(e,"e",r.base)),t.push(_r(e,"lim",r.lim)),yr(e,"limLow",t)}function jr(e,r){var t=[],n=[];return wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"limUppPr",n)),t.push(_r(e,"e",r.base)),t.push(_r(e,"lim",r.lim)),yr(e,"limUpp",t)}function Br(e,r){var t,n;r.assertSerializable(e.path);var i=[];try{for(var o=vo(r.elements),a=o.next();!a.done;a=o.next()){var s=a.value;i.push(_r(e,"e",s))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return yr(e,"mr",i)}function Rr(e,r){r.assertSerializable(e.path);var t=[],n=[],i=r.properties;void 0!==i.baseJc&&n.push(br(e,"baseJc",i.baseJc)),void 0!==i.isPlaceholderHidden&&n.push(gr(e,"plcHide",i.isPlaceholderHidden)),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"mPr",n));for(var o=0;o<r.rows.length;o++){var a=r.rows[o];void 0!==a&&t.push(Br({prefix:e.prefix,path:e.path+".mr["+String(o)+"]"},a))}return yr(e,"m",t)}function Fr(e,r){var t=[],n=[],i=r.properties;return void 0!==i.chr&&n.push(br(e,"chr",i.chr)),void 0!==i.limLoc&&(Pr(i.limLoc,di,e.path+".naryPr.limLoc","ST_LimLoc"),n.push(br(e,"limLoc",i.limLoc))),void 0!==i.canGrow&&n.push(gr(e,"grow",i.canGrow)),void 0!==i.isSubscriptHidden&&n.push(gr(e,"subHide",i.isSubscriptHidden)),void 0!==i.isSuperscriptHidden&&n.push(gr(e,"supHide",i.isSuperscriptHidden)),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"naryPr",n)),t.push(_r(e,"sub",r.subscript)),t.push(_r(e,"sup",r.superscript)),t.push(_r(e,"e",r.base)),yr(e,"nary",t)}function Hr(e,r){var t=[],n=[],i=r.properties;return void 0!==i.isShown&&n.push(gr(e,"show",i.isShown)),void 0!==i.isZeroWidth&&n.push(gr(e,"zeroWid",i.isZeroWidth)),void 0!==i.isZeroAscender&&n.push(gr(e,"zeroAsc",i.isZeroAscender)),void 0!==i.isZeroDescender&&n.push(gr(e,"zeroDesc",i.isZeroDescender)),void 0!==i.isTransparent&&n.push(gr(e,"transp",i.isTransparent)),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"phantPr",n)),t.push(_r(e,"e",r.base)),yr(e,"phant",t)}function zr(e,r){var t=[],n=[];return void 0!==r.properties.isDegreeHidden&&n.push(gr(e,"degHide",r.properties.isDegreeHidden)),wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"radPr",n)),t.push(_r(e,"deg",r.deg)),t.push(_r(e,"e",r.base)),yr(e,"rad",t)}function Dr(e,r,t,n){var i=[];if(void 0!==t&&i.push(gr(e,"alnScr",t)),wr(i,n),0!==i.length)return yr(e,r,i)}function Vr(e,r){var t=[],n=Dr(e,"sPrePr",r.properties.isScriptAligned,r.properties.ctrlPr);return void 0!==n&&t.push(n),t.push(_r(e,"sub",r.sub)),t.push(_r(e,"sup",r.sup)),t.push(_r(e,"e",r.base)),yr(e,"sPre",t)}function Xr(e,r){var t=[],n=Dr(e,"sSubPr",r.properties.isScriptAligned,r.properties.ctrlPr);return void 0!==n&&t.push(n),t.push(_r(e,"e",r.base)),t.push(_r(e,"sub",r.subscript)),yr(e,"sSub",t)}function Yr(e,r){var t=[],n=Dr(e,"sSubSupPr",r.properties.isScriptAligned,r.properties.ctrlPr);return void 0!==n&&t.push(n),t.push(_r(e,"e",r.base)),t.push(_r(e,"sub",r.subscript)),t.push(_r(e,"sup",r.superscript)),yr(e,"sSubSup",t)}function qr(e,r){var t=[],n=Dr(e,"sSupPr",r.properties.isScriptAligned,r.properties.ctrlPr);return void 0!==n&&t.push(n),t.push(_r(e,"e",r.base)),t.push(_r(e,"sup",r.superscript)),yr(e,"sSup",t)}function Kr(e,r){for(var t=[],n=0;n<r.children.length;n++){var i=r.children[n];void 0!==i&&t.push(Jr(i,{prefix:e.prefix,path:e.path+"["+String(n)+"]"}))}return yr(e,"oMath",t)}function Gr(e,r){r.assertSerializable(e.path);var t=[];void 0!==r.properties.jc&&(Pr(r.properties.jc,pi,e.path+".oMathParaPr.jc","ST_Jc"),t.push(yr(e,"oMathParaPr",[br(e,"jc",r.properties.jc)])));for(var n=0;n<r.equations.length;n++){var i=r.equations[n];void 0!==i&&t.push(Kr({prefix:e.prefix,path:e.path+".oMath["+String(n)+"]"},i))}return yr(e,"oMathPara",t)}function Jr(e,r){if(e.preserveOnly){if(void 0===e.preservedXml)throw new _i("preserve-only node missing preservedXml",r.path,"required-child");return e.preservedXml}if(e instanceof Li){if(void 0===e.preservedXml)throw new _i("unknown math node missing preservedXml",r.path,"required-child");return e.preservedXml}switch(e.type){case"oMathPara":return Gr(r,e);case"oMath":return Kr(r,e);case"t":return xr(r,e);case"r":return Mr(r,e);case"acc":return Or(r,e);case"bar":return kr(r,e);case"box":return Er(r,e);case"borderBox":return Ar(r,e);case"d":return Cr(r,e);case"eqArr":return Lr(r,e);case"f":return Tr(r,e);case"func":return Nr(r,e);case"groupChr":return Ur(r,e);case"limLow":return Ir(r,e);case"limUpp":return jr(r,e);case"m":return Rr(r,e);case"mr":return Br(r,e);case"nary":return Fr(r,e);case"phant":return Hr(r,e);case"rad":return zr(r,e);case"sPre":return Vr(r,e);case"sSub":return Xr(r,e);case"sSubSup":return Yr(r,e);case"sSup":return qr(r,e);case"arg":throw new _i("MathArgument cannot be serialized as a root; use a named CT_OMathArg slot",r.path,"child-order");case"unknown":if(void 0!==e.preservedXml)return e.preservedXml;throw new _i("unknown math node missing preservedXml",r.path,"required-child");default:var t=e.type;throw new _i("Unhandled math kind: "+String(t),r.path,"required-child")}}function Wr(e,r){return Jr(e,{prefix:hr(r),path:e.type})}function Zr(e){return{kind:"element",namespaceUri:e.namespaceUri,localName:e.localName,prefix:e.prefix,attributes:e.attributes.map(function(e){return{namespaceUri:e.namespaceUri,localName:e.localName,prefix:e.prefix,value:e.value}}),namespaceDeclarations:e.namespaceDeclarations.map(function(e){return{prefix:e.prefix,namespaceUri:e.namespaceUri}}),children:e.children.map($r)}}function $r(e){return"text"===e.kind?{kind:"text",value:e.value}:Zr(e)}function Qr(e){return void 0===e?void 0:Zr(e)}function et(e){return bo({},void 0!==e.chr?{chr:e.chr}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function rt(e){return bo({},void 0!==e.pos?{pos:e.pos}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function tt(e){return bo({},void 0!==e.isOperatorEmulated?{isOperatorEmulated:e.isOperatorEmulated}:{},void 0!==e.isNoBreak?{isNoBreak:e.isNoBreak}:{},void 0!==e.isDifferential?{isDifferential:e.isDifferential}:{},void 0!==e.isAligned?{isAligned:e.isAligned}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function nt(e){return bo({},void 0!==e.isTopHidden?{isTopHidden:e.isTopHidden}:{},void 0!==e.isBottomHidden?{isBottomHidden:e.isBottomHidden}:{},void 0!==e.isLeftHidden?{isLeftHidden:e.isLeftHidden}:{},void 0!==e.isRightHidden?{isRightHidden:e.isRightHidden}:{},void 0!==e.hasHorizontalStrike?{hasHorizontalStrike:e.hasHorizontalStrike}:{},void 0!==e.hasVerticalStrike?{hasVerticalStrike:e.hasVerticalStrike}:{},void 0!==e.hasBottomLeftToTopRightStrike?{hasBottomLeftToTopRightStrike:e.hasBottomLeftToTopRightStrike}:{},void 0!==e.hasTopLeftToBottomRightStrike?{hasTopLeftToBottomRightStrike:e.hasTopLeftToBottomRightStrike}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function it(e){return bo({},void 0!==e.begChr?{begChr:e.begChr}:{},void 0!==e.sepChr?{sepChr:e.sepChr}:{},void 0!==e.endChr?{endChr:e.endChr}:{},void 0!==e.canGrow?{canGrow:e.canGrow}:{},void 0!==e.shp?{shp:e.shp}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ot(e){return bo({},void 0!==e.baseJc?{baseJc:e.baseJc}:{},void 0!==e.hasMaxDistance?{hasMaxDistance:e.hasMaxDistance}:{},void 0!==e.hasObjectDistance?{hasObjectDistance:e.hasObjectDistance}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function at(e){return bo({},void 0!==e.type?{type:e.type}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function st(e){return bo({},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ut(e){return bo({},void 0!==e.chr?{chr:e.chr}:{},void 0!==e.pos?{pos:e.pos}:{},void 0!==e.vertJc?{vertJc:e.vertJc}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ct(e){return bo({},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function lt(e){return bo({},void 0!==e.baseJc?{baseJc:e.baseJc}:{},void 0!==e.isPlaceholderHidden?{isPlaceholderHidden:e.isPlaceholderHidden}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function pt(e){return bo({},void 0!==e.chr?{chr:e.chr}:{},void 0!==e.limLoc?{limLoc:e.limLoc}:{},void 0!==e.canGrow?{canGrow:e.canGrow}:{},void 0!==e.isSubscriptHidden?{isSubscriptHidden:e.isSubscriptHidden}:{},void 0!==e.isSuperscriptHidden?{isSuperscriptHidden:e.isSuperscriptHidden}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ft(e){return bo({},void 0!==e.isShown?{isShown:e.isShown}:{},void 0!==e.isZeroWidth?{isZeroWidth:e.isZeroWidth}:{},void 0!==e.isZeroAscender?{isZeroAscender:e.isZeroAscender}:{},void 0!==e.isZeroDescender?{isZeroDescender:e.isZeroDescender}:{},void 0!==e.isTransparent?{isTransparent:e.isTransparent}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ht(e){return bo({},void 0!==e.isDegreeHidden?{isDegreeHidden:e.isDegreeHidden}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function dt(e){return bo({},void 0!==e.isScriptAligned?{isScriptAligned:e.isScriptAligned}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function vt(e){return bo({},void 0!==e.isLiteral?{isLiteral:e.isLiteral}:{},void 0!==e.isNormal?{isNormal:e.isNormal}:{},void 0!==e.scr?{scr:e.scr}:{},void 0!==e.sty?{sty:e.sty}:{},void 0!==e.isAligned?{isAligned:e.isAligned}:{},void 0!==e.brk?{brk:e.brk}:{})}function yt(e){return bo({},void 0!==e.argSz?{argSz:e.argSz}:{})}function mt(e){return bo({},void 0!==e.jc?{jc:e.jc}:{})}function bt(e){switch(e.type){case"t":var r=e;return new Ai(r.value,r.xmlSpace);case"arg":var t=e;return new Ci(yt(t.properties),t.item.map(bt),Qr(t.ctrlPr));case"oMathPara":var n=e;return new ji(mt(n.properties),n.equations.map(function(e){return bt(e)}));case"oMath":return new Bi(e.children.map(bt));case"unknown":var i=e,o=i.preservedXml;return void 0===o?new Li(i.localName,{kind:"element",namespaceUri:"",localName:i.localName,prefix:"",attributes:[],namespaceDeclarations:[],children:[]}):new Li(i.localName,Zr(o));case"r":var a=e;return new uo(a.children.map(bt),vt(a.properties),void 0===a.wRPr?void 0:Zr(a.wRPr),a.opaqueChildren.map(Zr));case"acc":return new Di(et((s=e).properties),bt(s.base));case"bar":return new Vi(rt((s=e).properties),bt(s.base));case"box":return new Xi(tt((s=e).properties),bt(s.base));case"borderBox":return new Yi(nt((s=e).properties),bt(s.base));case"d":return new qi(it((s=e).properties),s.elements.map(function(e){return bt(e)}));case"eqArr":return new Ki(ot((s=e).properties),s.elements.map(function(e){return bt(e)}));case"f":return new Gi(at((s=e).properties),bt(s.numerator),bt(s.denominator));case"func":return new Ji(st((s=e).properties),bt(s.name),bt(s.base));case"groupChr":return new Wi(ut((s=e).properties),bt(s.base));case"limLow":return new Zi(ct((s=e).properties),bt(s.base),bt(s.lim));case"limUpp":return new $i(ct((s=e).properties),bt(s.base),bt(s.lim));case"m":return new eo(lt((s=e).properties),s.rows.map(function(e){return bt(e)}));case"mr":return new Qi((s=e).elements.map(function(e){return bt(e)}));case"nary":return new ro(pt((s=e).properties),bt(s.subscript),bt(s.superscript),bt(s.base));case"phant":return new to(ft((s=e).properties),bt(s.base));case"rad":return new no(ht((s=e).properties),bt(s.deg),bt(s.base));case"sPre":return new io(dt((s=e).properties),bt(s.sub),bt(s.sup),bt(s.base));case"sSub":return new oo(dt((s=e).properties),bt(s.base),bt(s.subscript));case"sSubSup":return new ao(dt((s=e).properties),bt(s.base),bt(s.subscript),bt(s.superscript));case"sSup":var s=e;return new so(dt(s.properties),bt(s.base),bt(s.superscript));default:e.type;throw new Error("cloneMathElement: unhandled kind")}}function gt(e,r){if(void 0===e&&void 0===r)return!0;if(void 0===e||void 0===r)return!1;if(e.namespaceUri!==r.namespaceUri||e.localName!==r.localName||e.prefix!==r.prefix||e.attributes.length!==r.attributes.length||e.namespaceDeclarations.length!==r.namespaceDeclarations.length||e.children.length!==r.children.length)return!1;for(i=0;i<e.attributes.length;i++){var t=e.attributes[i],n=r.attributes[i];if(t.namespaceUri!==n.namespaceUri||t.localName!==n.localName||t.prefix!==n.prefix||t.value!==n.value)return!1}for(i=0;i<e.namespaceDeclarations.length;i++){var t=e.namespaceDeclarations[i],n=r.namespaceDeclarations[i];if(t.prefix!==n.prefix||t.namespaceUri!==n.namespaceUri)return!1}for(var i=0;i<e.children.length;i++){var o=e.children[i],a=r.children[i];if(o.kind!==a.kind)return!1;if("text"===o.kind&&"text"===a.kind){if(o.value!==a.value)return!1}else{if("element"!==o.kind||"element"!==a.kind)return!1;if(!gt(o,a))return!1}}return!0}function wt(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(!gt(e[t],r[t]))return!1;return!0}function Pt(e,r,t){void 0===t&&(t="ctrlPr");var n,i,o=new Set(wo(Object.keys(e),Object.keys(r)));try{for(var a=Po(o),s=a.next();!s.done;s=a.next()){var u=s.value;if(u!==t){if(e[u]!==r[u])return!1}else if(!gt(e[u],r[u]))return!1}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function _t(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(!xt(e[t],r[t]))return!1;return!0}function xt(e,r){if(e.type!==r.type)return!1;if(e.preserveOnly!==r.preserveOnly)return!1;switch(e.type){case"t":var t=e,n=r;return t.value===n.value&&t.xmlSpace===n.xmlSpace;case"arg":var i=e,o=r;return Pt(i.properties,o.properties)&>(i.ctrlPr,o.ctrlPr)&&_t(i.item,o.item);case"oMathPara":var a=e,s=r;return Pt(a.properties,s.properties)&&_t(a.equations,s.equations);case"oMath":var u=r;return _t(e.children,u.children);case"unknown":var c=e,l=r;return c.localName===l.localName&>(c.preservedXml,l.preservedXml);case"r":var p=e,f=r;return Pt(p.properties,f.properties)&>(p.wRPr,f.wRPr)&&_t(p.children,f.children)&&wt(p.opaqueChildren,f.opaqueChildren);case"acc":case"bar":case"box":case"borderBox":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base);case"d":case"eqArr":d=r;return Pt((h=e).properties,d.properties)&&_t(h.elements,d.elements);case"f":d=r;return Pt((h=e).properties,d.properties)&&xt(h.numerator,d.numerator)&&xt(h.denominator,d.denominator);case"func":d=r;return Pt((h=e).properties,d.properties)&&xt(h.name,d.name)&&xt(h.base,d.base);case"groupChr":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base);case"limLow":case"limUpp":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base)&&xt(h.lim,d.lim);case"m":d=r;return Pt((h=e).properties,d.properties)&&_t(h.rows,d.rows);case"mr":d=r;return _t((h=e).elements,d.elements);case"nary":d=r;return Pt((h=e).properties,d.properties)&&xt(h.subscript,d.subscript)&&xt(h.superscript,d.superscript)&&xt(h.base,d.base);case"phant":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base);case"rad":d=r;return Pt((h=e).properties,d.properties)&&xt(h.deg,d.deg)&&xt(h.base,d.base);case"sPre":d=r;return Pt((h=e).properties,d.properties)&&xt(h.sub,d.sub)&&xt(h.sup,d.sup)&&xt(h.base,d.base);case"sSub":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base)&&xt(h.subscript,d.subscript);case"sSubSup":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base)&&xt(h.subscript,d.subscript)&&xt(h.superscript,d.superscript);case"sSup":var h=e,d=r;return Pt(h.properties,d.properties)&&xt(h.base,d.base)&&xt(h.superscript,d.superscript);default:e.type;return!1}}function St(e){if(void 0===e)return zo;var r=null!=e.xmlNestingDepth?e.xmlNestingDepth:zo.xmlNestingDepth,t=null!=e.xmlAttributesPerElement?e.xmlAttributesPerElement:zo.xmlAttributesPerElement,n=null!=e.textNodeLengthBytes?e.textNodeLengthBytes:zo.textNodeLengthBytes,i=Ho({totalUncompressedBytes:null!=e.totalUncompressedBytes?e.totalUncompressedBytes:zo.totalUncompressedBytes,singlePartUncompressedBytes:null!=e.singlePartUncompressedBytes?e.singlePartUncompressedBytes:zo.singlePartUncompressedBytes},void 0===r?{}:{xmlNestingDepth:r},void 0===t?{}:{xmlAttributesPerElement:t},void 0===n?{}:{textNodeLengthBytes:n});return Object.freeze(i)}function Mt(e){switch(e){case"SHA-1":case"SHA1":return"SHA-1";case"SHA256":return"SHA256";case"SHA384":return"SHA384";case"SHA512":return"SHA512";default:throw new Yo("Unsupported OFFCRYPTO hashAlgorithm: "+Ht(e))}}function Ot(e,r){if("AES"!==e)throw new Yo("Unsupported OFFCRYPTO cipherAlgorithm: "+Ht(e));if("ChainingModeCBC"!==r)throw new Yo("Unsupported OFFCRYPTO cipherChaining: "+Ht(r))}function kt(e){if(128!==e&&192!==e&&256!==e)throw new Yo("Unsupported OFFCRYPTO AES keyBits: "+String(e))}function Et(e){return Qo[e]}function At(e,r){var t=Wo($o[e]);return t.update(r),new Uint8Array(t.digest())}function Ct(e,r,t){var n=Zo($o[e],Buffer.from(r));return n.update(t),new Uint8Array(n.digest())}function Lt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t,n,i,o,a=0;try{for(var s=qo(e),u=s.next();!u.done;u=s.next())a+=(h=u.value).byteLength}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=new Uint8Array(a),l=0;try{for(var p=qo(e),f=p.next();!f.done;f=p.next()){var h=f.value;c.set(h,l),l+=h.byteLength}}catch(e){i={error:e}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}return c}function Tt(e){for(var r=new Uint8Array(2*e.length),t=0;t<e.length;t++){var n=e.charCodeAt(t);r[2*t]=255&n,r[2*t+1]=n>>>8&255}return r}function Nt(e,r,t,n,i,o){for(var a=At(e,Lt(r,t)),s=new Uint8Array(4),u=new DataView(s.buffer),c=0;c<n;c++)u.setUint32(0,c,!0),a=At(e,Lt(s,a));return Rt(At(e,Lt(a,i)),o/8,Bo)}function Ut(e,r,t,n){return Rt(void 0===t?r:At(e,Lt(r,t)),n,Ro)}function It(e,r,t){if(0===t.byteLength)return new Uint8Array(0);if(t.byteLength%16!=0)throw new Yo("OFFCRYPTO AES-CBC ciphertext length is not block-aligned");if(16!==r.byteLength)throw new Yo("OFFCRYPTO AES-CBC IV must be 16 bytes");var n=Ft(e.byteLength),i=Jo(n,Buffer.from(e),Buffer.from(r));i.setAutoPadding(!1);var o=i.update(Buffer.from(t)),a=i.final();if(0===a.byteLength)return new Uint8Array(o);var s=new Uint8Array(o.byteLength+a.byteLength);return s.set(o,0),s.set(a,o.byteLength),s}function jt(e,r,t){if(16!==r.byteLength)throw new Yo("OFFCRYPTO AES-CBC IV must be 16 bytes");var n=0===t.byteLength?16:16*Math.ceil(t.byteLength/16),i=new Uint8Array(n);i.set(t,0);var o=Ft(e.byteLength),a=Go(o,Buffer.from(e),Buffer.from(r));a.setAutoPadding(!1);var s=a.update(Buffer.from(i)),u=a.final();if(0===u.byteLength)return new Uint8Array(s);var c=new Uint8Array(s.byteLength+u.byteLength);return c.set(s,0),c.set(u,s.byteLength),c}function Bt(e,r){if(e.byteLength!==r.byteLength)return!1;for(var t=0,n=0;n<e.byteLength;n++)t|=(null!=e[n]?e[n]:0)^(null!=r[n]?r[n]:0);return 0===t}function Rt(e,r,t){if(e.byteLength===r)return e;if(e.byteLength>r)return e.subarray(0,r);var n=new Uint8Array(r);return n.set(e,0),n.fill(t,e.byteLength),n}function Ft(e){switch(e){case 16:return"aes-128-cbc";case 24:return"aes-192-cbc";case 32:return"aes-256-cbc";default:throw new Yo("Unsupported AES key length")}}function Ht(e){var r=e.replace(/[^\w.\-:/+]/g,"").slice(0,64);return r.length>0?r:"(unrecognized)"}function zt(e,r,t){if(void 0===t&&(t="EncryptionInfo"),/<!DOCTYPE/i.test(e)||/<!ENTITY/i.test(e))throw new Vo("EncryptionInfo XML must not contain DTD or entities");var n=null!=r.xmlNestingDepth?r.xmlNestingDepth:ta,i=null!=r.xmlAttributesPerElement?r.xmlAttributesPerElement:na,o=null!=r.textNodeLengthBytes?r.textNodeLengthBytes:ia,a=0,s=e.length,u=function(){for(;a<s;){var r=e.charCodeAt(a);if(32!==r&&9!==r&&10!==r&&13!==r)break;a+=1}},c=function(){return a<s?e[a]:""},l=function(r){return e.startsWith(r,a)},p=function(){for(var r=a;a<s;){var t=e[a];if(!/[A-Za-z0-9:_.-]/.test(t))break;a+=1}if(a===r)throw new Vo("EncryptionInfo XML is invalid: expected name");return e.slice(r,a)},f=function(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")},h=function(){var r=c();if('"'!==r&&"'"!==r)throw new Vo("EncryptionInfo XML is invalid: attribute value");for(var n=a+=1;a<s&&e[a]!==r;)if((a+=1)-n>o)throw new Do("textNodeLengthBytes",{partName:t,actual:a-n});if(a>=s)throw new Vo("EncryptionInfo XML is invalid: unclosed attribute");var i=e.slice(n,a);return a+=1,f(i)},d=function(e,r,t){var n=e.indexOf(":"),i=-1===n?"":e.slice(0,n),o=-1===n?e:e.slice(n+1);if(t&&""===i)return{localName:o,namespaceUri:""};if("xmlns"===i)return{localName:o,namespaceUri:"http://www.w3.org/2000/xmlns/"};for(var a=r.length-1;a>=0;a--){var s=r[a].get(i);if(void 0!==s)return{localName:o,namespaceUri:s}}return{localName:o,namespaceUri:""}},v=function(r,f){if(f>n)throw new Do("xmlNestingDepth",{partName:t,actual:f});if("<"!==c())throw new Vo("EncryptionInfo XML is invalid: expected element");if(a+=1,"/"===c())throw new Vo("EncryptionInfo XML is invalid: unexpected end tag");var y=p();u();for(var m=[],b=!1,g=new Map;a<s&&">"!==c()&&"/"!==c();){var w=p();if(u(),"="!==c())throw new Vo("EncryptionInfo XML is invalid: expected =");a+=1,u();var P=h();if(u(),"xmlns"===w?g.set("",P):w.startsWith("xmlns:")?g.set(w.slice(6),P):m.push({qName:w,value:P}),m.length>i)throw new Do("xmlAttributesPerElement",{partName:t,actual:m.length})}if(l("/>"))b=!0,a+=2;else{if(">"!==c())throw new Vo("EncryptionInfo XML is invalid: element tag");a+=1}var _=ra(r,[g]),x=d(y,_,!1),S=m.map(function(e){var r=d(e.qName,_,!0);return{localName:r.localName,namespaceUri:r.namespaceUri,value:e.value}});if(b)return{kind:"element",localName:x.localName,namespaceUri:x.namespaceUri,attributes:S,children:[]};for(var M=[];;){if(u(),a>=s)throw new Vo("EncryptionInfo XML is invalid: unclosed element");if(l("</")){a+=2;var O=p();if(u(),">"!==c())throw new Vo("EncryptionInfo XML is invalid: end tag");if(a+=1,O!==y)throw new Vo("EncryptionInfo XML is invalid: mismatched end tag "+O);break}if(l("\x3c!--")){if((k=e.indexOf("--\x3e",a+4))<0)throw new Vo("EncryptionInfo XML is invalid: unclosed comment");a=k+3}else if(l("<?")){var k=e.indexOf("?>",a+2);if(k<0)throw new Vo("EncryptionInfo XML is invalid: unclosed PI");a=k+2}else if("<"!==c()){for(var E=a;a<s&&"<"!==c();)if((a+=1)-E>o)throw new Do("textNodeLengthBytes",{partName:t,actual:a-E})}else M.push(v(_,f+1))}return{kind:"element",localName:x.localName,namespaceUri:x.namespaceUri,attributes:S,children:M}};for(u(),l("\ufeff")&&(a+=1,u());l("<?")||l("\x3c!--");){if(l("<?")){if((y=e.indexOf("?>",a+2))<0)throw new Vo("EncryptionInfo XML is invalid: unclosed declaration");a=y+2}else{var y=e.indexOf("--\x3e",a+4);if(y<0)throw new Vo("EncryptionInfo XML is invalid: unclosed comment");a=y+3}u()}var m=v([new Map],1);if(u(),a<s)throw new Vo("EncryptionInfo XML is invalid: trailing content");return m}function Dt(){return function(){try{return Function("return this")()}catch(e){return{}}}()||{}}function Vt(e,r){if(e.byteLength<aa+1)throw new Vo("EncryptionInfo stream is truncated");var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint16(0,!0),i=t.getUint16(2,!0),o=t.getUint32(4,!0);if(i===jo&&(2===n||3===n||4===n))throw new Yo("OFFCRYPTO Standard Encryption (EncryptionInfo minor version 2) is not supported; Agile (4.4) only");if(n!==_o||i!==xo)throw new Yo("Unsupported EncryptionInfo version "+String(n)+"."+String(i));if(o!==So)throw new Yo("Unsupported EncryptionInfo reserved field 0x"+o.toString(16));var a,s=tn(e.subarray(aa));try{a=zt(s,r,"EncryptionInfo")}catch(e){if(e instanceof Vo||e instanceof Yo)throw e;if(e instanceof Error&&"PackageLimitError"===e.name)throw e;var u=e instanceof Error?e.message:"XML parse failed";throw new Vo("EncryptionInfo XML is invalid: "+u)}if("encryption"!==a.localName||a.namespaceUri!==Mo){if("encryption"!==a.localName)throw new Vo("EncryptionInfo root element is not encryption");if(""!==a.namespaceUri&&a.namespaceUri!==Mo)throw new Vo("EncryptionInfo root element is not encryption")}var c=Gt(a,Mo,"keyData"),l=Jt(a,Mo,"dataIntegrity"),p=Gt(a,Mo,"keyEncryptors");return{keyData:Xt(c),dataIntegrity:void 0===l?void 0:Yt(l),passwordKeyEncryptor:qt(p)}}function Xt(e){var r=$t(e,"saltSize"),t=$t(e,"blockSize"),n=$t(e,"keyBits"),i=$t(e,"hashSize"),o=Zt(e,"cipherAlgorithm"),a=Zt(e,"cipherChaining"),s=Zt(e,"hashAlgorithm"),u=en(e,"saltValue");Ot(o,a),kt(n);var c=Mt(s);if(16!==t)throw new Yo("Unsupported OFFCRYPTO blockSize: "+String(t)+" (AES requires 16)");if(u.byteLength!==r)throw new Vo("keyData saltValue length does not match saltSize");return{saltSize:r,blockSize:t,keyBits:n,hashSize:i,cipherAlgorithm:o,cipherChaining:a,hashAlgorithm:c,saltValue:u}}function Yt(e){return{encryptedHmacKey:en(e,"encryptedHmacKey"),encryptedHmacValue:en(e,"encryptedHmacValue")}}function qt(e){var r,t,n=e.children.filter(function(e){return"element"===e.kind&&"keyEncryptor"===e.localName});if(0===n.length)throw new Vo("EncryptionInfo has no keyEncryptor");var i;try{for(var o=oa(n),a=o.next();!a.done;a=o.next()){var s=a.value,u=Wt(s,"uri");if(u===Oo){i=Kt(s);break}if(void 0!==u&&u.length>0)throw new Yo("OFFCRYPTO certificate (or non-password) keyEncryptor is not supported")}}catch(e){r={error:e}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}if(void 0===i)throw new Yo("OFFCRYPTO EncryptionInfo has no password keyEncryptor");var c=Qt(i,"spinCount");if(c>Io)throw new Vo("OFFCRYPTO spinCount exceeds maximum allowed ("+String(Io)+")");var l=$t(i,"saltSize"),p=$t(i,"blockSize"),f=$t(i,"keyBits"),h=$t(i,"hashSize"),d=Zt(i,"cipherAlgorithm"),v=Zt(i,"cipherChaining"),y=Zt(i,"hashAlgorithm"),m=en(i,"saltValue"),b=en(i,"encryptedVerifierHashInput"),g=en(i,"encryptedVerifierHashValue"),w=en(i,"encryptedKeyValue");Ot(d,v),kt(f);var P=Mt(y);if(16!==p)throw new Yo("Unsupported password keyEncryptor blockSize: "+String(p));if(m.byteLength!==l)throw new Vo("encryptedKey saltValue length does not match saltSize");return{spinCount:c,saltSize:l,blockSize:p,keyBits:f,hashSize:h,cipherAlgorithm:d,cipherChaining:v,hashAlgorithm:P,saltValue:m,encryptedVerifierHashInput:b,encryptedVerifierHashValue:g,encryptedKeyValue:w}}function Kt(e){var r,t;try{for(var n=oa(e.children),i=n.next();!i.done;i=n.next()){var o=i.value;if("element"===o.kind&&"encryptedKey"===o.localName)return o}}catch(e){r={error:e}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}}function Gt(e,r,t){var n=Jt(e,r,t);if(void 0===n)throw new Vo("EncryptionInfo missing element "+t);return n}function Jt(e,r,t){var n,i,o,a;try{for(var s=oa(e.children),u=s.next();!u.done;u=s.next())if("element"===(p=u.value).kind&&p.localName===t&&(p.namespaceUri===r||""===p.namespaceUri))return p}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}try{for(var c=oa(e.children),l=c.next();!l.done;l=c.next()){var p=l.value;if("element"===p.kind&&p.localName===t)return p}}catch(e){o={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}}function Wt(e,r){var t,n;try{for(var i=oa(e.attributes),o=i.next();!o.done;o=i.next()){var a=o.value;if(a.localName===r)return a.value}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}function Zt(e,r){var t=Wt(e,r);if(void 0===t||0===t.length)throw new Vo("EncryptionInfo missing attribute "+r);return t}function $t(e,r){var t=Zt(e,r),n=Number.parseInt(t,10);if(!Number.isFinite(n)||n<=0)throw new Vo("EncryptionInfo attribute "+r+" is invalid");return n}function Qt(e,r){var t=Zt(e,r),n=Number.parseInt(t,10);if(!Number.isFinite(n)||n<0)throw new Vo("EncryptionInfo attribute "+r+" is invalid");return n}function en(e,r){var t=Zt(e,r);try{return rn(t)}catch(e){throw new Vo("EncryptionInfo attribute "+r+" is not valid base64")}}function rn(e){var r=e.replace(/\s+/g,"");if("function"==typeof Dt().atob){for(var t=Dt().atob(r),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}return new Uint8Array(Buffer.from(r,"base64"))}function tn(e){return new TextDecoder("utf-8",{fatal:!0}).decode(e)}function nn(e,r){var t=Tt(e),n=r.hashAlgorithm,i=r.saltValue,o=r.spinCount,a=r.keyBits,s=r.blockSize,u=r.hashSize,c=It(Nt(n,i,t,o,ko,a),Ut(n,i,void 0,s),r.encryptedVerifierHashInput);if(c.byteLength<r.saltSize)throw new Xo;var l=At(n,c.subarray(0,r.saltSize)),p=It(Nt(n,i,t,o,Eo,a),Ut(n,i,void 0,s),r.encryptedVerifierHashValue),f=Math.min(u,l.byteLength,p.byteLength);if(f<=0)throw new Xo;if(!Bt(l.subarray(0,f),p.subarray(0,f)))throw new Xo;var h=It(Nt(n,i,t,o,Ao,a),Ut(n,i,void 0,s),r.encryptedKeyValue),d=a/8;if(h.byteLength<d)throw new Xo;return h.subarray(0,d)}function on(e){if(e.byteLength<512)throw new Vo("OFFCRYPTO package is truncated (CFB header)");for(d=0;d<ua.length;d++)if(e[d]!==ua[d])throw new Vo("Package is not a valid OLE compound file");var r=new DataView(e.buffer,e.byteOffset,e.byteLength),t=r.getUint16(30,!0);if(t!==ca&&t!==la)throw new Vo("Unsupported CFB sector size");var n=1<<t,i=r.getUint16(32,!0);if(6!==i)throw new Vo("Unsupported CFB mini-sector size");var o=1<<i,a=r.getUint32(56,!0),s=r.getUint32(48,!0),u=r.getUint32(60,!0),c=r.getUint32(64,!0),l=r.getUint32(44,!0),p=r.getUint32(68,!0),f=r.getUint32(72,!0);if(l>ma)throw new Vo("CFB FAT is unreasonably large");for(var h=[],d=0;d<109;d++)(b=r.getUint32(76+4*d,!0))!==fa&&h.push(b);for(var v=p,y=0;y<f&&(v!==pa&&v!==fa);y++){P=an(v,n);sn(e,P,n);for(var m=n/4-1,d=0;d<m;d++){var b=r.getUint32(P+4*d,!0);b!==fa&&h.push(b)}v=r.getUint32(P+4*m,!0)}if(h.length<l)throw new Vo("CFB DIFAT is truncated");for(var g=[],d=0;d<l;d++){var w=h[d];if(void 0===w)throw new Vo("CFB DIFAT is truncated");var P=an(w,n);sn(e,P,n);for(var _=n/4,x=0;x<_;x++)g.push(r.getUint32(P+4*x,!0))}var S=un(e,r,g,s,n,void 0);if(S.byteLength<va)throw new Vo("CFB directory is empty");for(var M=Math.min(Math.floor(S.byteLength/va),ya),O=new DataView(S.buffer,S.byteOffset,S.byteLength),k=[],d=0;d<M;d++){for(var E=d*va,A=O.getUint16(E+64,!0),C=A>=2?Math.floor((A-2)/2):0,L="",T=0;T<C&&T<32;T++)L+=String.fromCharCode(O.getUint16(E+2*T,!0));var N=O.getUint8(E+66),U=O.getUint32(E+76,!0),I=O.getUint32(E+116,!0),j=O.getUint32(E+120,!0);if(0!==O.getUint32(E+124,!0))throw new Vo("OFFCRYPTO stream exceeds supported size");k.push({name:L,objectType:N,startSector:I,streamSize:j,childId:U})}var B=k[0];if(void 0===B||5!==B.objectType)throw new Vo("CFB root storage is missing");var R=new Map,F=new Set,H=function(e){if(!(e>4294967290||e>=k.length||F.has(e))){F.add(e);var r=k[e];if(void 0!==r){var t=O.getUint32(e*va+68,!0),n=O.getUint32(e*va+72,!0);H(t),2===r.objectType&&R.set(r.name,r),H(n),1!==r.objectType&&5!==r.objectType||H(r.childId)}}};H(B.childId);var z=R.get(No),D=R.get(Uo);if(void 0===z||void 0===D)throw new Vo("OFFCRYPTO streams EncryptionInfo and/or EncryptedPackage are missing");var V,X,Y=function(t){if(0===t.streamSize)return new Uint8Array(0);if(t.streamSize<a&&t!==B){if(void 0===V&&(V=cn(e,r,g,u,c,n),X=un(e,r,g,B.startSector,n,void 0)),void 0===X)throw new Vo("CFB mini-stream is unavailable");return ln(X,V,t.startSector,o,t.streamSize)}return un(e,r,g,t.startSector,n,t.streamSize)};return{encryptionInfo:Y(z),encryptedPackage:Y(D)}}function an(e,r){return(e+1)*r}function sn(e,r,t){if(r<0||t<0||r+t>e.byteLength)throw new Vo("OFFCRYPTO package is truncated (CFB sector)")}function un(e,r,t,n,i,o){if(n===pa||n===fa)return new Uint8Array(0);for(var a=[],s=0,u=n,c=0,l=t.length+2;u!==pa&&u!==fa;){if(c++>l)throw new Vo("CFB FAT chain is cyclic or unbounded");if(u===ha||u===da)throw new Vo("CFB FAT chain contains reserved sector");if(u<0||u>=t.length){var p=an(u,i);if(p+i>e.byteLength&&p>=e.byteLength)throw new Vo("CFB FAT chain sector out of range")}var f=an(u,i);sn(e,f,Math.min(i,e.byteLength-f));var h=Math.min(i,e.byteLength-f),d=e.subarray(f,f+h);if(a.push(d),s+=d.byteLength,void 0!==o&&s>=o)break;if(u>=t.length)throw new Vo("CFB FAT chain sector out of range");var v=t[u];if(void 0===v)throw new Vo("CFB FAT chain sector out of range");u=v}var y=pn(a);if(void 0!==o){if(y.byteLength<o)throw new Vo("OFFCRYPTO stream data is truncated");return y.subarray(0,o)}return y}function cn(e,r,t,n,i,o){if(0===i||n===pa)return[];for(var a=un(e,r,t,n,o,i*o),s=new DataView(a.buffer,a.byteOffset,a.byteLength),u=[],c=0;c+4<=a.byteLength;c+=4)u.push(s.getUint32(c,!0));return u}function ln(e,r,t,n,i){for(var o=[],a=0,s=t,u=0,c=r.length+2;s!==pa&&s!==fa&&a<i;){if(u++>c)throw new Vo("CFB mini-FAT chain is cyclic or unbounded");var l=s*n;if(l>=e.byteLength)throw new Vo("CFB mini-stream is truncated");var p=Math.min(n,e.byteLength-l,i-a);if(o.push(e.subarray(l,l+p)),a+=p,s>=r.length)throw new Vo("CFB mini-FAT sector out of range");var f=r[s];if(void 0===f)throw new Vo("CFB mini-FAT sector out of range");s=f}var h=pn(o);if(h.byteLength<i)throw new Vo("OFFCRYPTO mini-stream data is truncated");return h.subarray(0,i)}function pn(e){var r,t,n,i,o=0;try{for(var a=sa(e),s=a.next();!s.done;s=a.next())o+=(f=s.value).byteLength}catch(e){r={error:e}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}var u=new Uint8Array(o),c=0;try{for(var l=sa(e),p=l.next();!p.done;p=l.next()){var f=p.value;u.set(f,c),c+=f.byteLength}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return u}function fn(e,r,t,n,i){if(e.byteLength<ba)throw new Vo("EncryptedPackage stream is truncated");var o=Math.max(i.singlePartUncompressedBytes,i.totalUncompressedBytes);if(e.byteLength>o+ba+To)throw new Do("singlePartUncompressedBytes",{actual:e.byteLength});var a=new DataView(e.buffer,e.byteOffset,e.byteLength),s=a.getUint32(0,!0);if(0!==a.getUint32(4,!0))throw new Do("singlePartUncompressedBytes",{actual:Number.MAX_SAFE_INTEGER});var u=s;if(u>i.singlePartUncompressedBytes)throw new Do("singlePartUncompressedBytes",{actual:u});if(u>i.totalUncompressedBytes)throw new Do("totalUncompressedBytes",{actual:u});var c=e.subarray(ba);if(0===c.byteLength&&u>0)throw new Vo("EncryptedPackage has StreamSize but no ciphertext");void 0!==n&&vn(e,r,t,n);var l=hn(c,r,t);if(l.byteLength<u)throw new Vo("Decrypted EncryptedPackage is shorter than StreamSize");return l.subarray(0,u)}function hn(e,r,t){for(var n=To,i=t.blockSize,o=new Uint8Array(e.byteLength),a=0,s=0,u=0;u<e.byteLength;){var c=e.byteLength-u,l=c>n?n:c;if(l%i!=0)throw new Vo("EncryptedPackage segment is not block-aligned");var p=e.subarray(u,u+l),f=dn(s),h=It(r,Ut(t.hashAlgorithm,t.saltValue,f,i),p);o.set(h,a),a+=h.byteLength,u+=l,s+=1}return o.subarray(0,a)}function dn(e){var r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e>>>0,!0),r}function vn(e,r,t,n){var i=t.hashAlgorithm,o=t.saltValue,a=t.blockSize,s=It(r,Ut(i,o,Co,a),n.encryptedHmacKey),u=Et(i);if(s.byteLength<u)throw new Xo;var c=s.subarray(0,u),l=It(r,Ut(i,o,Lo,a),n.encryptedHmacValue);if(l.byteLength<u)throw new Xo;var p=l.subarray(0,u);if(!Bt(Ct(i,c,e).subarray(0,u),p))throw new Xo}function yn(e){var r=e instanceof Uint8Array?e:new Uint8Array(e);if(r.byteLength<Pa.length)return!1;for(var t=0;t<Pa.length;t++)if(r[t]!==Pa[t])return!1;return!0}function mn(e,r,t){return void 0===t&&(t=zo),ga(this,void 0,void 0,function(){var n,i,o,a;return wa(this,function(s){return n=St(t),i=on(e),o=Vt(i.encryptionInfo,n),a=nn(r,o.passwordKeyEncryptor),[2,fn(i.encryptedPackage,a,o.keyData,o.dataIntegrity,n)]})})}var bn="http://www.w3.org/2003/InkML",gn=Object.freeze({bronze:"#BB5B18",silver:"#B4C3DA",gold:"#CC912C",roseGold:"#EEB3A6",ocean:"#0B868D",lava:"#DA0C07",rainbow:"#FF4E00",galaxy:"#AE198D"}),wn=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},Pn="!",_n="'",xn='"',Sn=function(){return(Sn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Mn=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},On=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Mn(arguments[r]));return e},kn=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},En=Symbol.for("@syncfusion/ej2-office-common.OfficeInk"),An=1.42,Cn="#000000",Ln="pt",Tn="#ctx0",Nn="http://www.w3.org/XML/1998/namespace",Un=12700,In=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},jn="inkml",Bn=function(){return(Bn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Rn=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},Fn="content/invalid-ink-trace",Hn=new Set(["X","Y","Z","S","T","SN","F","TP","BP","OTx","OTy","OA","OE","OR","RP","RR","RY","TW","TH","TC"]),zn=new Set(["dev","in","cm","deg","rad","s","lb","g"]),Dn=new Set(["timestamp","canvas","canvasTransform","mapping","bind","table","matrix","traceView","annotation","annotationXML","channelProperty","traceProperty","brushPropertyRef","intermittentInfo","latency","sampleRate","sampleRateExact","srcRef","channelRef"]),Vn=new Set(["width","height","color","transparency","tip","rasterop","antialiased","fittocurve","ignorepressure","inkeffects","anchorx","anchory","scalefactor"]),Xn=new Map([["none","none"],["pencil","pencil"],["rainbow","rainbow"],["galaxy","galaxy"],["lava","lava"],["ocean","ocean"],["rosegold","roseGold"],["gold","gold"],["silver","silver"],["bronze","bronze"]]),Yn=.053,qn=.001,Kn="#000000",Gn="ellipse",Jn="copyPen",Wn="#ctx0",Zn={items:[],traceCount:0,packetCount:0,pointCount:0,channelValueCount:0},$n=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},Qn=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ei=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Qn(arguments[r]));return e},ri="ctx0",ti="#ctx0",ni="inkSrc0",ii="-2.14748E9",oi="2.14748E9",ai="cm",si="http://schemas.openxmlformats.org/officeDocument/2006/math",ui=["m","m1","m2","m3","m4","m5"],ci="http://schemas.openxmlformats.org/wordprocessingml/2006/main",li="http://www.w3.org/XML/1998/namespace",pi=["left","right","center","centerGroup"],fi=["bar","skw","lin","noBar"],hi=["centered","match"],di=["undOvr","subSup"],vi=["top","bot"],yi=["before","after","repeat"],mi=["--","-+","+-"],bi=["roman","script","fraktur","double-struck","sans-serif","monospace"],gi=["p","b","i","bi"],wi=[0,1,2,3,4],Pi=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),_i=function(e){function r(r,t,n){var i=this.constructor,o=e.call(this,r)||this;return o.name="MathmlValidationError",o.elementPath=t,o.constraintKind=n,Object.setPrototypeOf(o,i.prototype),o}return Pi(r,e),r}(Error),xi=function(e){function r(r){var t=this.constructor;void 0===r&&(r="Math equation is preserve-only and cannot be mutated");var n=e.call(this,r)||this;return n.isPreserveOnly=!0,n.name="MathmlReadOnlyError",Object.setPrototypeOf(n,t.prototype),n}return Pi(r,e),r}(Error),Si=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Mi=function(){return(Mi=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Oi=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ki=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Oi(arguments[r]));return e},Ei=function(){function e(){this._preserveOnly=!1}return Object.defineProperty(e.prototype,"preserveOnly",{get:function(){return this._preserveOnly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preservedXml",{get:function(){return this._preservedXml},enumerable:!0,configurable:!0}),e.prototype.setMutationListener=function(e){this._onMutate=e},e.prototype.markPreserveOnly=function(e){this._preserveOnly=!0,this._preservedXml=e},e.prototype.attachPreservedXml=function(e){this._preservedXml=e},e.prototype.notifyMutated=function(){if(this._preserveOnly)throw new xi;null==this._onMutate||this._onMutate()},e.prototype.assertMutable=function(){if(this._preserveOnly)throw new xi},e}(),Ai=function(e){function r(r,t){void 0===r&&(r="");var n=e.call(this)||this;return n.type="t",n._value=r,n._xmlSpace=t,n}return Si(r,e),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},set:function(e){this.assertMutable(),this._value=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"xmlSpace",{get:function(){return this._xmlSpace},set:function(e){this.assertMutable(),this._xmlSpace=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Ci=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]);var i=e.call(this)||this;if(i.type="arg",void 0!==r.argSz&&!me(r.argSz))throw new _i("argSz must be an integer in −2..2 (ST_Integer2), got "+String(r.argSz),"arg.argPr.argSz","value-range");return i._properties=Object.freeze(Mi({},r)),i._item=ki(t),i._ctrlPr=n,i}return Si(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){if(this.assertMutable(),void 0!==e.argSz&&!me(e.argSz))throw new _i("argSz must be an integer in −2..2 (ST_Integer2), got "+String(e.argSz),"arg.argPr.argSz","value-range");this._properties=Object.freeze(Mi({},e)),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"item",{get:function(){return this._item},set:function(e){this.assertMutable(),this._item=ki(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ctrlPr",{get:function(){return this._ctrlPr},set:function(e){this.assertMutable(),this._ctrlPr=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r.prototype.appendItem=function(e){return this.assertMutable(),this._item.push(e),this.notifyMutated(),e},r}(Ei),Li=function(e){function r(r,t){var n=e.call(this)||this;return n.type="unknown",n.localName=r,n.attachPreservedXml(t),n}return Si(r,e),r}(Ei),Ti=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ni=function(){return(Ni=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Ui=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},Ii=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Ui(arguments[r]));return e},ji=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="oMathPara",n._properties=Object.freeze(Ni({},r)),n._equations=Ii(t),n}return Ti(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Object.freeze(Ni({},e)),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equations",{get:function(){return this._equations},enumerable:!0,configurable:!0}),r.prototype.setEquations=function(e){this.assertMutable(),this._equations=Ii(e),this.notifyMutated()},r.prototype.appendEquation=function(e){this.assertMutable(),this._equations.push(e),this.notifyMutated()},r.prototype.assertSerializable=function(e){if(void 0===e&&(e="oMathPara"),this._equations.length<1)throw new _i("m:oMathPara requires at least one m:oMath (CT_OMathPara)",e,"required-child")},r}(Ei),Bi=function(e){function r(r){void 0===r&&(r=[]);var t=e.call(this)||this;return t.type="oMath",t._children=Ii(r),t}return Ti(r,e),Object.defineProperty(r.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),r.prototype.setChildren=function(e){this.assertMutable(),this._children=Ii(e),this.notifyMutated()},r.prototype.appendChild=function(e){this.assertMutable(),this._children.push(e),this.notifyMutated()},r}(Ei),Ri=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Fi=function(){return(Fi=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Hi=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},zi=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Hi(arguments[r]));return e},Di=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="acc",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Vi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="bar",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Xi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="box",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Yi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="borderBox",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),qi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="d",n._properties=Se(r),n._elements=t.map(function(e){return Me(e)}),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elements",{get:function(){return this._elements},set:function(e){this.assertMutable(),this._elements=zi(e),this.notifyMutated()},enumerable:!0,configurable:!0}),r.prototype.assertSerializable=function(e){if(void 0===e&&(e="d"),this._elements.length<1)throw new _i("m:d requires at least one m:e (CT_D)",e,"required-child")},r}(Ei),Ki=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="eqArr",n._properties=Se(r),n._elements=t.map(function(e){return Me(e)}),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elements",{get:function(){return this._elements},set:function(e){this.assertMutable(),this._elements=zi(e),this.notifyMutated()},enumerable:!0,configurable:!0}),r.prototype.assertSerializable=function(e){if(void 0===e&&(e="eqArr"),this._elements.length<1)throw new _i("m:eqArr requires at least one m:e (CT_EqArr)",e,"required-child")},r}(Ei),Gi=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="f",i._properties=Se(r),i._numerator=Me(t),i._denominator=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"numerator",{get:function(){return this._numerator},set:function(e){this.assertMutable(),this._numerator=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"denominator",{get:function(){return this._denominator},set:function(e){this.assertMutable(),this._denominator=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Ji=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="func",i._properties=Se(r),i._name=Me(t),i._base=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},set:function(e){this.assertMutable(),this._name=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Wi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="groupChr",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Zi=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="limLow",i._properties=Se(r),i._base=Me(t),i._lim=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"lim",{get:function(){return this._lim},set:function(e){this.assertMutable(),this._lim=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),$i=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="limUpp",i._properties=Se(r),i._base=Me(t),i._lim=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"lim",{get:function(){return this._lim},set:function(e){this.assertMutable(),this._lim=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Qi=function(e){function r(r){void 0===r&&(r=[]);var t=e.call(this)||this;return t.type="mr",t._elements=r.map(function(e){return Me(e)}),t}return Ri(r,e),Object.defineProperty(r.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),r.prototype.setElements=function(e){this.assertMutable(),this._elements=zi(e),this.notifyMutated()},r.prototype.assertSerializable=function(e){if(void 0===e&&(e="mr"),this._elements.length<1)throw new _i("m:mr requires at least one m:e (CT_MR)",e,"required-child")},r}(Ei),eo=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="m",n._properties=Se(r),n._rows=zi(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._rows},enumerable:!0,configurable:!0}),r.prototype.setRows=function(e){this.assertMutable(),this._rows=zi(e),this.notifyMutated()},r.prototype.assertSerializable=function(e){if(void 0===e&&(e="m"),this._rows.length<1)throw new _i("m:m requires at least one m:mr (CT_M)",e,"required-child");this._rows.forEach(function(r,t){return r.assertSerializable(e+".mr["+String(t)+"]")})},r}(Ei),ro=function(e){function r(r,t,n,i){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=[]);var o=e.call(this)||this;return o.type="nary",o._properties=Se(r),o._sub=Me(t),o._sup=Me(n),o._base=Me(i),o}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._sub},set:function(e){this.assertMutable(),this._sub=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._sup},set:function(e){this.assertMutable(),this._sup=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),to=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="phant",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),no=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="rad",i._properties=Se(r),i._deg=Me(t),i._base=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"deg",{get:function(){return this._deg},set:function(e){this.assertMutable(),this._deg=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),io=function(e){function r(r,t,n,i){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=[]);var o=e.call(this)||this;return o.type="sPre",o._properties=Se(r),o._sub=Me(t),o._sup=Me(n),o._base=Me(i),o}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sub",{get:function(){return this._sub},set:function(e){this.assertMutable(),this._sub=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sup",{get:function(){return this._sup},set:function(e){this.assertMutable(),this._sup=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),oo=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="sSub",i._properties=Se(r),i._base=Me(t),i._sub=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._sub},set:function(e){this.assertMutable(),this._sub=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),ao=function(e){function r(r,t,n,i){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=[]);var o=e.call(this)||this;return o.type="sSubSup",o._properties=Se(r),o._base=Me(t),o._sub=Me(n),o._sup=Me(i),o}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._sub},set:function(e){this.assertMutable(),this._sub=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._sup},set:function(e){this.assertMutable(),this._sup=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),so=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="sSup",i._properties=Se(r),i._base=Me(t),i._sup=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._sup},set:function(e){this.assertMutable(),this._sup=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),uo=function(e){function r(r,t,n,i){void 0===r&&(r=[]),void 0===t&&(t={}),void 0===i&&(i=[]);var o=e.call(this)||this;return o.type="r",o._properties=Se(t),o._wRPr=n,o._opaqueChildren=zi(i),o._children="string"==typeof r?[new Ai(r)]:zi(r),o}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"wRPr",{get:function(){return this._wRPr},set:function(e){this.assertMutable(),this._wRPr=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"opaqueChildren",{get:function(){return this._opaqueChildren},enumerable:!0,configurable:!0}),r.prototype.setChildren=function(e){this.assertMutable(),this._children=zi(e),this.notifyMutated()},Object.defineProperty(r.prototype,"text",{get:function(){return this._children.filter(function(e){return"t"===e.type}).map(function(e){return e.value}).join("")},set:function(e){this.assertMutable(),this._children=[new Ai(e)],this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),co=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},lo=function(){return(lo=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},po=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},fo=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ho=[["hideTop","isTopHidden"],["hideBot","isBottomHidden"],["hideLeft","isLeftHidden"],["hideRight","isRightHidden"],["strikeH","hasHorizontalStrike"],["strikeV","hasVerticalStrike"],["strikeBLTR","hasBottomLeftToTopRightStrike"],["strikeTLBR","hasTopLeftToBottomRightStrike"]],vo=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},yo=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},mo=[["isTopHidden","hideTop"],["isBottomHidden","hideBot"],["isLeftHidden","hideLeft"],["isRightHidden","hideRight"],["hasHorizontalStrike","strikeH"],["hasVerticalStrike","strikeV"],["hasBottomLeftToTopRightStrike","strikeBLTR"],["hasTopLeftToBottomRightStrike","strikeTLBR"]],bo=function(){return(bo=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},go=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},wo=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(go(arguments[r]));return e},Po=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},_o=4,xo=4,So=64,Mo="http://schemas.microsoft.com/office/2006/encryption",Oo="http://schemas.microsoft.com/office/2006/keyEncryptor/password",ko=Uint8Array.of(254,167,210,118,59,75,158,121),Eo=Uint8Array.of(215,170,15,109,48,97,52,78),Ao=Uint8Array.of(20,110,11,231,171,172,208,214),Co=Uint8Array.of(95,178,173,1,12,185,225,246),Lo=Uint8Array.of(160,103,127,2,178,44,132,51),To=4096,No="EncryptionInfo",Uo="EncryptedPackage",Io=1e7,jo=2,Bo=54,Ro=54,Fo=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ho=function(){return(Ho=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},zo=Object.freeze({totalUncompressedBytes:1073741824,singlePartUncompressedBytes:268435456,xmlNestingDepth:256,xmlAttributesPerElement:4096,textNodeLengthBytes:33554432}),Do=function(e){function r(r,t){var n=this.constructor;void 0===t&&(t={});var i=this,o=void 0===t.partName?"":" (part: "+t.partName+")",a=void 0===t.actual?"":"; actual value: "+String(t.actual);return i=e.call(this,"Package security limit exceeded: "+r+o+a)||this,i.name="PackageLimitError",i.limit=r,i.partName=t.partName,i.actual=t.actual,Object.setPrototypeOf(i,n.prototype),i}return Fo(r,e),r}(Error),Vo=function(e){function r(r){var t=this.constructor,n=e.call(this,r)||this;return n.name="EncryptedPackageError",Object.setPrototypeOf(n,t.prototype),n}return Fo(r,e),r}(Error),Xo=function(e){function r(r){var t=this.constructor;void 0===r&&(r="Invalid password");var n=e.call(this,r)||this;return n.name="InvalidPasswordError",Object.setPrototypeOf(n,t.prototype),n}return Fo(r,e),r}(Error),Yo=function(e){function r(r){var t=this.constructor;void 0===r&&(r="Unsupported encryption method");var n=e.call(this,r)||this;return n.name="UnsupportedEncryptionError",Object.setPrototypeOf(n,t.prototype),n}return Fo(r,e),r}(Error),qo=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},Ko=function(){try{return require("crypto")}catch(e){throw new Error("Node crypto is required for Agile encryption")}}(),Go=Ko.createCipheriv,Jo=Ko.createDecipheriv,Wo=Ko.createHash,Zo=Ko.createHmac,$o={"SHA-1":"sha1",SHA256:"sha256",SHA384:"sha384",SHA512:"sha512"},Qo={"SHA-1":20,SHA256:32,SHA384:48,SHA512:64},ea=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ra=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(ea(arguments[r]));return e},ta=256,na=4096,ia=33554432,oa=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},aa=8,sa=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},ua=Object.freeze([208,207,17,224,161,177,26,225]),ca=9,la=12,pa=4294967294,fa=4294967295,ha=4294967293,da=4294967292,va=128,ya=65536,ma=1048576,ba=8,ga=function(e,r,t,n){return new(t||(t=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new t(function(r){r(e.value)}).then(a,s)}u((n=n.apply(e,r||[])).next())})},wa=function(e,r){function t(e){return function(r){return n([e,r])}}function n(t){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,o=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(a=u.trys,!(a=a.length>0&&a[a.length-1])&&(6===t[0]||2===t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=r.call(e,u)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}var i,o,a,s,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},Pa=Object.freeze([208,207,17,224,161,177,26,225]);return e.AGILE_ENCRYPTION_NS=Mo,e.AGILE_RESERVED=So,e.AGILE_VERSION_MAJOR=_o,e.AGILE_VERSION_MINOR=xo,e.BLOCK_KEY_ENCRYPTOR_KEY=Ao,e.BLOCK_KEY_HMAC_KEY=Co,e.BLOCK_KEY_HMAC_VALUE=Lo,e.BLOCK_KEY_VERIFIER_HASH=Eo,e.BLOCK_KEY_VERIFIER_INPUT=ko,e.DEFAULT_DECRYPT_SECURITY_LIMITS=zo,e.DIAG_INVALID_INK_TRACE=Fn,e.EMUS_PER_POINT=Un,e.ENCRYPTED_PACKAGE_SEGMENT_SIZE=To,e.EncryptedPackageError=Vo,e.INKML_NAMESPACE=bn,e.INK_CONTENT_TYPE="application/inkml+xml",e.INK_EFFECT_COLORS=gn,e.INK_SOURCE_RELATIONSHIP_TYPE="http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",e.InvalidPasswordError=Xo,e.MATH_BREAKBINSUB_VALUES=mi,e.MATH_BREAKBIN_VALUES=yi,e.MATH_FTYPE_VALUES=fi,e.MATH_JC_VALUES=pi,e.MATH_LIMLOC_VALUES=di,e.MATH_NAMESPACE=si,e.MATH_PREFIX_FALLBACKS=ui,e.MATH_SCRIPT_VALUES=bi,e.MATH_SHP_VALUES=hi,e.MATH_SPACING_RULE_VALUES=wi,e.MATH_STYLE_VALUES=gi,e.MATH_TOPBOT_VALUES=vi,e.MathAccent=Di,e.MathArgument=Ci,e.MathBar=Vi,e.MathBorderBox=Yi,e.MathBox=Xi,e.MathDelimiter=qi,e.MathElement=Ei,e.MathEquationArray=Ki,e.MathFraction=Gi,e.MathFunction=Ji,e.MathGroupCharacter=Wi,e.MathLimitLower=Zi,e.MathLimitUpper=$i,e.MathMatrix=eo,e.MathMatrixRow=Qi,e.MathNaryOperator=ro,e.MathOMath=Bi,e.MathParagraph=ji,e.MathPhantom=to,e.MathPreSubSuperscript=io,e.MathRadical=no,e.MathRun=uo,e.MathSubSuperscript=ao,e.MathSubscript=oo,e.MathSuperscript=so,e.MathText=Ai,e.OFFICE_COMMON_PACKAGE_NAME="@syncfusion/ej2-office-common",e.PASSWORD_KEY_ENCRYPTOR_NS="http://schemas.microsoft.com/office/2006/keyEncryptor/password",e.PASSWORD_KEY_ENCRYPTOR_URI=Oo,e.PackageLimitError=Do,e.STREAM_ENCRYPTED_PACKAGE=Uo,e.STREAM_ENCRYPTION_INFO=No,e.UnknownMathElement=Li,e.UnsupportedEncryptionError=Yo,e.WML_TRANSITIONAL_NAMESPACE=ci,e.WORDML_2010_NAMESPACE="http://schemas.microsoft.com/office/word/2010/wordml",e.WORDPROCESSING_INK_URI="http://schemas.microsoft.com/office/word/2010/wordprocessingInk",e.XML_NAMESPACE=li,e.addInkTrace=g,e.aesCbcDecrypt=It,e.aesCbcEncrypt=jt,e.attrValue=Ae,e.attrValueNs=Ce,e.childElements=Ee,e.cloneInk=w,e.cloneMathElement=bt,e.computeInkBounds=s,e.concatBytes=Lt,e.createElement=Oe,e.createInk=b,e.createText=ke,e.decodeTrace=i,e.decryptOffCryptoPackage=mn,e.deriveAgileIv=Ut,e.deriveAgileKey=Nt,e.emitOnOff=_e,e.encodePasswordUtf16Le=Tt,e.encodeTrace=o,e.formatUnitValue=O,e.getLastInkParseDiagnostics=j,e.hashBytes=At,e.hashDigestLength=Et,e.hmacBytes=Ct,e.inkEffectColor=r,e.inkPathPoints=_,e.isInteger2=me,e.isInteger255=be,e.isOffCryptoPackage=yn,e.isOfficeInk=x,e.isSpacingRule=we,e.isUnSignedInteger=ge,e.mathArg=xe,e.mathElementToOpenXml=Wr,e.mathEqual=xt,e.parseInkXml=B,e.parseMathBreakBin=he,e.parseMathBreakBinSub=de,e.parseMathElement=pr,e.parseMathElements=fr,e.parseMathFractionType=ce,e.parseMathJc=ue,e.parseMathLimLoc=pe,e.parseMathScript=ve,e.parseMathShape=le,e.parseMathStyle=ye,e.parseMathTopBot=fe,e.parseOnOff=Pe,e.pointsToUnit=M,e.resolveDecryptLimits=St,e.scalePointsStretch=c,e.scalePointsUniform=u,e.serializeInkXml=W,e.textContent=Le,e.timingSafeEqual=Bt,e.unitValueToPoints=S,e}({}),this.ejs=ej;
|
|
10
|
+
this.ej=this.ej||{},this.ej.officecommon=function(t){"use strict";function e(t,r){if("text"===t.kind||"text"===r.kind)return t.kind===r.kind&&t.value===r.value;var n=t,i=r;return n.namespaceUri===i.namespaceUri&&n.localName===i.localName&&n.attributes.length===i.attributes.length&&n.attributes.every(function(t,e){return t.localName===i.attributes[e].localName&&t.namespaceUri===i.attributes[e].namespaceUri&&t.value===i.attributes[e].value})&&n.children.length===i.children.length&&n.children.every(function(t,r){return e(t,i.children[r])})}function r(e,r){if(r===t.SpacingRule.Exactly&&(e<0||e>1584))throw new RangeError("RowSpacing must be between 0 pt and 1584 pt for Exactly spacing rule.");if(r===t.SpacingRule.Multiple&&(e<0||e>132))throw new RangeError("RowSpacing must be between 0 li and 132 li for Multiple spacing rule.")}function n(e){switch(e){case t.MathFunctionType.Accent:return new mr;case t.MathFunctionType.Bar:return new dr;case t.MathFunctionType.BorderBox:return new br;case t.MathFunctionType.Box:return new vr;case t.MathFunctionType.Delimiter:return new Je;case t.MathFunctionType.EquationArray:return new Ve;case t.MathFunctionType.Fraction:return new Xe;case t.MathFunctionType.Function:return new We;case t.MathFunctionType.GroupCharacter:return new wr;case t.MathFunctionType.Limit:return new Ze;case t.MathFunctionType.Matrix:return new pr;case t.MathFunctionType.NArray:return new $e;case t.MathFunctionType.Phantom:return new Pr;case t.MathFunctionType.Radical:return new Mr;case t.MathFunctionType.LeftSubSuperscript:return new Ye;case t.MathFunctionType.SubSuperscript:return new Ke;case t.MathFunctionType.RightSubSuperscript:return new Qe;case t.MathFunctionType.RunElement:return new Ie;default:throw new RangeError("Unknown Math function type: "+String(e))}}function i(t){return Object.prototype.hasOwnProperty.call(Sr,t)?Sr[t]:t}function o(t,e){var r=t.charCodeAt(0);return 108===r?e?"\\ell":void 0:xr[r]}function a(t,e){t.forEach(function(t){return t instanceof jr?u(t,e):t.make(e)})}function u(e,r){var n=r.functions.add(t.MathFunctionType.RunElement);n.text=e.text,void 0!==e.sty&&(n.mathFormat.style=e.sty),void 0!==e.scr&&(n.mathFormat.font=e.scr),e.nor&&(n.mathFormat.hasNormalText=!0)}function c(t,e){return t.functions.add(e)}function s(t){return String.fromCharCode(t)}function p(t){return null===t?"":t}function h(t){return t.startsWith(_r)&&t.includes(Fr)||t.startsWith(Fr)&&t.includes(_r)}function l(t){return t.replace(/^\\+|\\+$/g,"")}function f(t,e){var r=new Jr(e);return y(t,r),r}function y(t,e){(new Lr).populate(t,e)}function g(t,e){return void 0!==t&&null!==t?t:e}function m(t){return(new zr).generate(t instanceof Jr?t.maths.toArray():[t])}function d(e){var r=e;if(e.type===t.MathFunctionType.Matrix){var n=[];return e.rowItems.forEach(function(t){var e,r;try{for(var i=Wr(t.arguments),o=i.next();!o.done;o=i.next()){var a=o.value;n.push(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}),n}var i=[];["equation","degree","numerator","denominator","functionName","limit","script","subscript","superscript"].forEach(function(t){var e=r[t];e instanceof yr&&i.push(e)});var o=r.equations;return void 0!==o&&i.push.apply(i,$r(Array.from(o))),i}function b(e){return e.type===t.MathFunctionType.Box?e.break:e.type===t.MathFunctionType.RunElement?e.mathFormat.break:void 0}function v(t){var e=new Re;return e.copyExplicitFrom(t),e}function w(t,e,r){if(e.mathFormat.copyExplicitFrom(t.mathFormat),void 0!==t.mathFormat.break&&(e.mathFormat.break=v(t.mathFormat.break)),void 0!==t.item)if(void 0!==r.adapter)e.item=r.adapter.cloneRun(t.item);else if(t.item instanceof Ae)e.item=t.item.clone();else{var n=new Ae;n.text=t.text,e.item=n}}function P(e,r){if(e.type===t.MathFunctionType.Matrix){var n=r;(i=e).columns.toArray().forEach(function(t){return n.columns.add().copyExplicitFrom(t)}),i.rowItems.forEach(function(t){return n.rows.add().copyExplicitFrom(t)})}else if(e.type===t.MathFunctionType.Delimiter||e.type===t.MathFunctionType.EquationArray)for(var i=e,o=r,a=0;a<i.equations.count;a++)o.equations.add()}function M(e,r){if(r.copyExplicitFrom(e),e.hasControlProperties&&(r.controlProperties=e.controlProperties.clone()),e.type===t.MathFunctionType.Box&&void 0!==e.break){var n=e.break,i=e.ownerMathEntity instanceof yr?e.ownerMathEntity:void 0,o=r.ownerMathEntity instanceof yr?r.ownerMathEntity:void 0,a=void 0!==i?i.breaks.toArray().indexOf(n):-1;r.break=a>=0&&void 0!==o?o.breaks.getItem(a):v(n)}}function S(e,r,n){if(e instanceof Xr)return void r.functions.insert(r.functions.count,new Xr(e.localName,e.preservedXml));var i=r.functions.add(e.type);if(M(e,i),e.type===t.MathFunctionType.RunElement)return void w(e,i,n);P(e,i);var o=d(e),a=d(i);o.forEach(function(t,e){return x(t,a[e],n)})}function x(t,e,r){var n,i,o,a;e.copyExplicitFrom(t),e.preservedControlProperties=t.preservedControlProperties;try{for(var u=Kr(t.breaks),c=u.next();!c.done;c=u.next()){var s=c.value;e.breaks.add().copyExplicitFrom(s)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}try{for(var p=Kr(t.functions),h=p.next();!h.done;h=p.next())S(h.value,e,r)}catch(t){o={error:t}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}function T(t,e){var r=e.maths.add();return x(t,r,e),r}function q(t){var e,r,n=new Jr(t.adapter);n.copyExplicitFrom(t);try{for(var i=Kr(t.maths),o=i.next();!o.done;o=i.next())T(o.value,n)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}function F(t,e){return void 0===t||void 0===e?t===e:t.explicitEquals(e)}function _(t,e){if(t.hasControlProperties!==e.hasControlProperties)return!1;if(!t.hasControlProperties)return!0;var r=t.controlProperties;return void 0===r.equals||r.equals(e.controlProperties)}function O(t,e){var r=t.columns.toArray(),n=e.columns.toArray(),i=t.rowItems,o=e.rowItems;return r.length===n.length&&i.length===o.length&&r.every(function(t,e){return t.explicitEquals(n[e])})&&i.every(function(t,e){return t.explicitEquals(o[e])})}function A(r,n){if(r.type!==n.type||!r.explicitEquals(n)||!_(r,n))return!1;if(r instanceof Xr){var i=n;return r.localName===i.localName&&e(r.preservedXml,i.preservedXml)}if(!F(b(r),b(n)))return!1;if(r.type===t.MathFunctionType.RunElement){var o=r,a=n;return o.text===a.text&&o.mathFormat.explicitEquals(a.mathFormat)}if(r.type===t.MathFunctionType.Matrix&&!O(r,n))return!1;var u=d(r),c=d(n);return u.length===c.length&&u.every(function(t,e){return k(t,c[e])})}function k(t,e){if(!t.explicitEquals(e)||t.functions.count!==e.functions.count||t.breaks.count!==e.breaks.count)return!1;var r=e.breaks.toArray();if(!t.breaks.toArray().every(function(t,e){return F(t,r[e])}))return!1;var n=e.functions.toArray();return t.functions.toArray().every(function(t,e){return A(t,n[e])})}function C(t,e){if(!t.explicitEquals(e)||t.maths.count!==e.maths.count)return!1;var r=e.maths.toArray();return t.maths.toArray().every(function(t,e){return k(t,r[e])})}function E(t,e,r,n){return{kind:"element",namespaceUri:t,localName:e,prefix:r,attributes:function(){var t=null==n?void 0:n.attributes;return null!=t?t:[]}(),namespaceDeclarations:function(){var t=null==n?void 0:n.namespaceDeclarations;return null!=t?t:[]}(),children:function(){var t=null==n?void 0:n.children;return null!=t?t:[]}()}}function R(t){return{kind:"text",value:t}}function j(t){return t.children.filter(function(t){return"element"===t.kind})}function L(t,e){return function(){var r=t.attributes.find(function(t){return t.localName===e});return null==r?void 0:r.value}()}function B(t,e,r){return function(){var n=t.attributes.find(function(t){return t.namespaceUri===e&&t.localName===r});return null==n?void 0:n.value}()}function N(t){var e,r,n="";try{for(var i=Qr(t.children),o=i.next();!o.done;o=i.next()){var a=o.value;"text"===a.kind&&(n+=a.value)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}function D(t,e){return void 0===t?void 0:j(t).filter(function(t){return t.namespaceUri===we&&t.localName===e})[0]}function H(t,e){return j(t).filter(function(t){return t.namespaceUri===we&&t.localName===e})}function I(t,e){var r=D(t,e);return void 0===r?void 0:L(r,"val")}function G(t,e){var r=D(t,e);if(void 0!==r){var n=L(r,"val");if(void 0===n)return!0;var i=n.toLowerCase();return"1"===i||"true"===i||"on"===i||"0"!==i&&"false"!==i&&"off"!==i&&void 0}}function z(t,e){var r=I(t,e);return void 0!==r&&/^\d+$/.test(r)?Number(r):void 0}function U(t,e){e.forEach(function(e){var r=G(t,e[0]);void 0!==r&&e[1](r)})}function J(t,e,r){var n=I(t,e);void 0!==n&&r(n)}function V(e){return"top"===e?t.MathVerticalAlignment.Top:"bottom"===e?t.MathVerticalAlignment.Bottom:"center"===e?t.MathVerticalAlignment.Center:void 0}function X(t,e){var r=D(t,"brk");if(void 0!==r){var n=void 0!==e?e.breaks.add():new Re,i=L(r,"alnAt");return void 0!==i&&/^\d+$/.test(i)&&Number(i)>=1&&Number(i)<=255&&(n.alignAt=Number(i)),n}}function W(t,e){U(e,[["lit",function(e){t.hasLiteral=e}],["nor",function(e){t.hasNormalText=e}],["aln",function(e){t.hasAlignment=e}]]);var r=I(e,"scr");void 0!==r&&Yr.hasOwnProperty(r)&&(t.font=Yr[r]);var n=I(e,"sty");void 0!==n&&tn.hasOwnProperty(n)&&(t.style=tn[n]);var i=X(e);void 0!==i&&(t.break=i)}function Z(t,e){J(e,"chr",function(e){t.accentCharacter=e})}function $(t,e){var r=I(e,"pos");"top"!==r&&"bot"!==r||(t.barTop="top"===r)}function K(t,e){U(e,[["hideTop",function(e){t.hideTop=e}],["hideBot",function(e){t.hideBottom=e}],["hideLeft",function(e){t.hideLeft=e}],["hideRight",function(e){t.hideRight=e}],["strikeH",function(e){t.strikeHorizontal=e}],["strikeV",function(e){t.strikeVertical=e}],["strikeBLTR",function(e){t.strikeDiagonalUp=e}],["strikeTLBR",function(e){t.strikeDiagonalDown=e}]])}function Q(t,e){U(e,[["opEmu",function(e){t.operatorEmulator=e}],["noBreak",function(e){t.noBreak=e}],["diff",function(e){t.enableDifferential=e}],["aln",function(e){t.alignment=e}]]);var r=X(e,t.ownerMathEntity instanceof yr?t.ownerMathEntity:void 0);void 0!==r&&(t.break=r)}function Y(e,r){J(r,"begChr",function(t){e.beginCharacter=t}),J(r,"sepChr",function(t){e.separator=t}),J(r,"endChr",function(t){e.endCharacter=t}),U(r,[["grow",function(t){e.isGrow=t}]]);var n=I(r,"shp");"centered"!==n&&"match"!==n||(e.delimiterShape="centered"===n?t.MathDelimiterShapeType.Centered:t.MathDelimiterShapeType.Match)}function tt(t,e,r,n,i){var o=z(t,n);void 0!==o&&o<=4&&e(o);var a=z(t,i);if(void 0!==a)try{r(a)}catch(t){if(!(t instanceof RangeError))throw t}}function et(t,e){var r=V(I(e,"baseJc"));void 0!==r&&(t.verticalAlignment=r),U(e,[["maxDist",function(e){t.expandEquationContainer=e}],["objDist",function(e){t.expandEquationContent=e}]]),tt(e,function(e){t.rowSpacingRule=e},function(e){t.rowSpacing=e},"rSpRule","rSp")}function rt(t,e){var r=I(e,"type");void 0!==r&&en.hasOwnProperty(r)&&(t.fractionType=en[r])}function nt(t,e){J(e,"chr",function(e){t.groupCharacter=e});var r=I(e,"pos");"top"!==r&&"bot"!==r||(t.hasCharacterTop="top"===r);var n=I(e,"vertJc");"top"!==n&&"bot"!==n||(t.hasAlignTop="top"===n)}function it(t,e){J(e,"chr",function(e){t.nArrayCharacter=e});var r=I(e,"limLoc");"undOvr"!==r&&"subSup"!==r||(t.subSuperscriptLimit="subSup"===r),U(e,[["grow",function(e){t.hasGrow=e}],["subHide",function(e){t.hideLowerLimit=e}],["supHide",function(e){t.hideUpperLimit=e}]])}function ot(t,e){U(e,[["show",function(e){t.show=e}],["zeroWid",function(e){t.zeroWidth=e}],["zeroAsc",function(e){t.zeroAscent=e}],["zeroDesc",function(e){t.zeroDescent=e}],["transp",function(e){t.transparent=e}]])}function at(t,e){U(e,[["degHide",function(e){t.hideDegree=e}]])}function ut(t,e){U(e,[["alnScr",function(e){t.isSkipAlign=e}]])}function ct(e){return"left"===e?t.MathHorizontalAlignment.Left:"right"===e?t.MathHorizontalAlignment.Right:"center"===e?t.MathHorizontalAlignment.Center:void 0}function st(t,e){var r=V(I(e,"baseJc"));void 0!==r&&(t.verticalAlignment=r),U(e,[["plcHide",function(e){t.hidePlaceholder=e}]]),tt(e,function(e){t.rowSpacingRule=e},function(e){t.rowSpacing=e},"rSpRule","rSp"),tt(e,function(e){t.columnGapRule=e},function(e){t.columnGap=e},"cGpRule","cGp");var n=z(e,"cSp");void 0!==n&&(t.columnSpacing=n)}function pt(t,e,r){var n=D(e,"mcs");for((void 0===n?[]:H(n,"mc")).forEach(function(e){for(var r=D(e,"mcPr"),n=z(r,"count"),i=void 0!==n&&n>=1&&n<=255?n:1,o=ct(I(r,"mcJc")),a=0;a<i;a++){var u=t.columns.add();void 0!==o&&(u.horizontalAlignment=o)}});t.columns.count<r;)t.columns.add()}function ht(t){var e=I(t,"argSz");return void 0!==e&&/^-?\d+$/.test(e)&&Math.abs(Number(e))<=2?e:void 0}function lt(t,e,r,n){return{type:t,pr:e,args:r,apply:n}}function ft(t,e,r){if(void 0!==t.options&&void 0!==t.options.onDiagnostic){var n={path:e.localName,message:r,localName:e.localName};t.options.onDiagnostic(n)}}function yt(t,e){e.functions.insert(e.functions.count,new Xr(t.localName,t))}function gt(t,e,r){return void 0!==r.adapter?r.adapter.parseControlProperties(t,e):new Oe(t)}function mt(t,e,r){if(void 0!==e){var n=D(e,"ctrlPr");void 0!==n&&(t.preservedControlProperties=n);var i=ht(D(e,"argPr"));void 0!==i&&(t.argumentSize=Number(i)),dt(t,e,r)}}function dt(t,e,r){j(e).forEach(function(e){(!(e.namespaceUri===we)||"argPr"!==e.localName&&"ctrlPr"!==e.localName)&&bt(e,t,r)})}function bt(t,e,r){if(t.namespaceUri!==we)return void yt(t,e);if("r"===t.localName)return void St(t,e,r);if("d"===t.localName||"eqArr"===t.localName)return void Pt(t,e,r);if("m"===t.localName)return void Mt(t,e,r);var n=rn.hasOwnProperty(t.localName)?rn[t.localName]:void 0,i=void 0===n?[]:n.args.map(function(e){return D(t,e)});if(void 0===n||i.some(function(t){return void 0===t}))return void 0!==n&&ft(r,t,"m:"+t.localName+" is missing a required child"),void yt(t,e);var o=e.functions.add(n.type),a=D(t,n.pr);vt(o,a,r),void 0!==n.apply&&n.apply(o,a),wt(t.localName,o,i,r)}function vt(t,e,r){var n=D(e,"ctrlPr");void 0!==n&&(t.controlProperties=gt(n,t,r))}function wt(e,r,n,i){var o=function(t,e){return mt(t,n[e],i)};switch(r.type){case t.MathFunctionType.Fraction:o(r.numerator,0),o(r.denominator,1);break;case t.MathFunctionType.Function:o(r.functionName,0),o(r.equation,1);break;case t.MathFunctionType.Limit:r.limitType="limUpp"===e?t.MathLimitType.UpperLimit:t.MathLimitType.LowerLimit,o(r.equation,0),o(r.limit,1);break;case t.MathFunctionType.NArray:o(r.subscript,0),o(r.superscript,1),o(r.equation,2);break;case t.MathFunctionType.Radical:o(r.degree,0),o(r.equation,1);break;case t.MathFunctionType.LeftSubSuperscript:o(r.subscript,0),o(r.superscript,1),o(r.equation,2);break;case t.MathFunctionType.SubSuperscript:r.scriptType="sSub"===e?t.MathScriptType.Subscript:t.MathScriptType.Superscript,o(r.equation,0),o(r.script,1);break;case t.MathFunctionType.RightSubSuperscript:o(r.equation,0),o(r.subscript,1),o(r.superscript,2);break;default:o(r.equation,0)}}function Pt(e,r,n){var i=H(e,"e");if(i.length<1)return ft(n,e,"m:"+e.localName+" is missing a required m:e"),void yt(e,r);var o="d"===e.localName,a=r.functions.add(o?t.MathFunctionType.Delimiter:t.MathFunctionType.EquationArray),u=D(e,o?"dPr":"eqArrPr");vt(a,u,n),o?Y(a,u):et(a,u);var c=a.equations;i.forEach(function(t){return mt(c.add(),t,n)})}function Mt(e,r,n){var i=H(e,"mr");if(i.length<1)return ft(n,e,"m:m is missing a required m:mr"),void yt(e,r);var o=r.functions.add(t.MathFunctionType.Matrix),a=D(e,"mPr");vt(o,a,n),st(o,a);var u=i.reduce(function(t,e){return Math.max(t,H(e,"e").length)},0);pt(o,a,u),i.forEach(function(t){var e=o.rows.add();H(t,"e").forEach(function(t,r){return mt(e.arguments.getItem(r),t,n)})})}function St(e,r,n){var i=r.functions.add(t.MathFunctionType.RunElement);if(W(i.mathFormat,D(e,"rPr")),void 0!==n.adapter)return void n.adapter.parseMathRun(e,i);var o=new Ae;j(e).forEach(function(t){if(t.namespaceUri!==we||"rPr"!==t.localName){if(t.namespaceUri===Me&&"rPr"===t.localName)return void(o.runProperties=t);if(t.namespaceUri===we&&"t"===t.localName){var e=B(t,Se,"space");return void o.parts.push(void 0===e?{kind:"text",value:N(t)}:{kind:"text",value:N(t),space:e})}o.parts.push({kind:"xml",element:t})}}),i.item=o}function xt(t,e,r){dt(t.maths.add(),e,r)}function Tt(t,e,r){var n=new Jr(e),i={adapter:e,options:r};return n.suspendMutations(function(){if(!qt(t))return ft(i,t,"m:"+t.localName+" is not a well-formed m:oMath or m:oMathPara; preserved verbatim"),void yt(t,n.maths.add());if("oMath"===t.localName)return void xt(n,t,i);var e=Ft(D(D(t,"oMathParaPr"),"jc"));void 0!==e&&Object.prototype.hasOwnProperty.call(nn,e)&&(n.justification=nn[e]),H(t,"oMath").forEach(function(t){return xt(n,t,i)})}),n}function qt(t){if(t.namespaceUri!==we)return!1;if("oMath"===t.localName)return!0;if("oMathPara"!==t.localName)return!1;var e=j(t).slice(),r=e.filter(function(t){return t.namespaceUri!==we}),n=e.filter(function(t){return t.namespaceUri===we&&"oMath"!==t.localName&&"oMathParaPr"!==t.localName}),i=t.children.some(function(t){return"text"===t.kind&&""!==(t.value||"").trim()});return 0===r.length&&0===n.length&&!i&&H(t,"oMath").length>0}function Ft(t){return void 0===t?void 0:L(t,"val")}function _t(t){if(void 0!==t&&void 0!==t.prefix&&t.prefix.length>0)return t.prefix;var e=void 0!==t&&void 0!==t.reservedPrefixes?t.reservedPrefixes:[],r=Pe.filter(function(t){return-1===e.indexOf(t)});return r.length>0?r[0]:"m999"}function Ot(t,e,r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),E(we,e,t.prefix,{attributes:n,children:r})}function At(t,e,r){return{namespaceUri:we,localName:e,prefix:t.prefix,value:r}}function kt(t,e,r){return Ot(t,e,[],[At(t,"val",r)])}function Ct(t,e,r){return kt(t,e,r?"1":"0")}function Et(t,e,r){throw new an(t,e,r)}function Rt(t,e,r,n){var i=t[e];return void 0!==i?i:Et("Illegal "+n+" value "+String(e),r,"enum-value")}function jt(t,e){return Number.isInteger(t)&&t>=0?String(t):Et("Expected an unsigned integer, got "+String(t),e,"value-range")}function Lt(t,e,r,n){n.forEach(function(n){r.isExplicit(n[0])&&e.push(Ct(t,n[1],n[2]))})}function Bt(t,e,r,n,i,o){r.isExplicit(n)&&e.push(kt(t,i,o()))}function Nt(t,e){return e.isExplicit(Ce.AlignAt)?((!Number.isInteger(e.alignAt)||e.alignAt<1||e.alignAt>255)&&Et("alnAt must be an integer in 1..255, got "+String(e.alignAt),"brk.alnAt","value-range"),Ot(t,"brk",[],[At(t,"alnAt",String(e.alignAt))])):Ot(t,"brk")}function Dt(t,e){var r=[];return Lt(t,r,e,[[Ce.HasLiteral,"lit",e.hasLiteral]]),e.isExplicit(Ce.HasNormalText)&&(e.hasNormalText||!Ht(e))?Lt(t,r,e,[[Ce.HasNormalText,"nor",e.hasNormalText]]):(Bt(t,r,e,Ce.Script,"scr",function(){return Rt(ln,e.font,"rPr.scr","ST_Script")}),Bt(t,r,e,Ce.Style,"sty",function(){return Rt(fn,e.style,"rPr.sty","ST_Style")})),void 0!==e.break&&r.push(Nt(t,e.break)),Lt(t,r,e,[[Ce.HasAlignment,"aln",e.hasAlignment]]),r}function Ht(t){return t.isExplicit(Ce.Script)||t.isExplicit(Ce.Style)}function It(t,e){return t>=0&&t<=4&&Number.isInteger(t)?String(t):Et("Illegal spacing rule "+String(t),e,"enum-value")}function Gt(t,e,r,n){Bt(t,e,r,Ce.RowSpacingRule,"rSpRule",function(){return It(r.rowSpacingRule,n+".rSpRule")})}function zt(t,e,r){Bt(t,e,r,Ce.EqArrAlign,"baseJc",function(){return Rt(sn,r.verticalAlignment,"eqArrPr.baseJc","ST_YAlign")}),Lt(t,e,r,[[Ce.MaxDist,"maxDist",r.expandEquationContainer],[Ce.ObjDist,"objDist",r.expandEquationContent]]),Gt(t,e,r,"eqArrPr"),Bt(t,e,r,Ce.RowSpacing,"rSp",function(){return jt(r.rowSpacing,"eqArrPr.rSp")})}function Ut(t,e,r){Bt(t,e,r,Ce.MatrixAlign,"baseJc",function(){return Rt(sn,r.verticalAlignment,"mPr.baseJc","ST_YAlign")}),Lt(t,e,r,[[Ce.PlaceHoldHidden,"plcHide",r.hidePlaceholder]]),Gt(t,e,r,"mPr"),Bt(t,e,r,Ce.ColumnGapRule,"cGpRule",function(){return It(r.columnGapRule,"mPr.cGpRule")}),Bt(t,e,r,Ce.RowSpacing,"rSp",function(){return jt(r.rowSpacing,"mPr.rSp")}),Bt(t,e,r,Ce.ColumnSpacing,"cSp",function(){return jt(r.columnSpacing,"mPr.cSp")}),Bt(t,e,r,Ce.ColumnGap,"cGp",function(){return jt(r.columnGap,"mPr.cGp")});var n=Jt(t,r);void 0!==n&&e.push(n)}function Jt(t,e){var r=e.columns.toArray();if(r.some(function(t){return t.isExplicit(Ce.MatrixAlign)})){var n=[];return r.forEach(function(t){var e=n[n.length-1];void 0!==e&&e.column.isExplicit(Ce.MatrixAlign)===t.isExplicit(Ce.MatrixAlign)&&(!t.isExplicit(Ce.MatrixAlign)||e.column.horizontalAlignment===t.horizontalAlignment)&&void 0!==e&&e.count<255?e.count++:n.push({column:t,count:1})}),Ot(t,"mcs",n.map(function(e){var r=[kt(t,"count",String(e.count))];return Bt(t,r,e.column,Ce.MatrixAlign,"mcJc",function(){return Rt(pn,e.column.horizontalAlignment,"mcPr.mcJc","ST_XAlign")}),Ot(t,"mc",[Ot(t,"mcPr",r)])}))}}function Vt(e,r,n){if(n.type===t.MathFunctionType.Delimiter){var i=n;Bt(e,r,i,Ce.BegChar,"begChr",function(){return i.beginCharacter}),Bt(e,r,i,Ce.SeparatorChar,"sepChr",function(){return i.separator}),Bt(e,r,i,Ce.EndChar,"endChr",function(){return i.endCharacter}),Lt(e,r,i,[[Ce.Grow,"grow",i.isGrow]]),Bt(e,r,i,Ce.Shape,"shp",function(){return Rt(hn,i.delimiterShape,"dPr.shp","ST_Shp")})}else if(n.type===t.MathFunctionType.EquationArray)zt(e,r,n);else if(n.type===t.MathFunctionType.Fraction){var o=n;Bt(e,r,o,Ce.FractionType,"type",function(){return Rt(cn,o.fractionType,"fPr.type","ST_FType")})}else if(n.type===t.MathFunctionType.Matrix)Ut(e,r,n);else if(n.type===t.MathFunctionType.NArray){var a=n;Bt(e,r,a,Ce.NAryChar,"chr",function(){return a.nArrayCharacter}),Bt(e,r,a,Ce.SubSupLimit,"limLoc",function(){return a.subSuperscriptLimit?"subSup":"undOvr"}),Lt(e,r,a,[[Ce.HasGrow,"grow",a.hasGrow],[Ce.HideSubscript,"subHide",a.hideLowerLimit],[Ce.HideSuperscript,"supHide",a.hideUpperLimit]])}else n.type===t.MathFunctionType.RightSubSuperscript&&Lt(e,r,n,[[Ce.SkipAlign,"alnScr",n.isSkipAlign]])}function Xt(e,r,n){if(n.type===t.MathFunctionType.Accent)Bt(e,r,n,Ce.AccentChar,"chr",function(){return n.accentCharacter});else if(n.type===t.MathFunctionType.Bar)Bt(e,r,n,Ce.BarTop,"pos",function(){return n.barTop?"top":"bot"});else if(n.type===t.MathFunctionType.BorderBox)Lt(e,r,i=n,[[Ce.HideTop,"hideTop",i.hideTop],[Ce.HideBottom,"hideBot",i.hideBottom],[Ce.HideLeft,"hideLeft",i.hideLeft],[Ce.HideRight,"hideRight",i.hideRight],[Ce.StrikeHorizontal,"strikeH",i.strikeHorizontal],[Ce.StrikeVertical,"strikeV",i.strikeVertical],[Ce.StrikeBLTR,"strikeBLTR",i.strikeDiagonalUp],[Ce.StrikeTLBR,"strikeTLBR",i.strikeDiagonalDown]]);else if(n.type===t.MathFunctionType.Box){var i=n;Lt(e,r,i,[[Ce.OperatorEmulator,"opEmu",i.operatorEmulator],[Ce.NoBreak,"noBreak",i.noBreak],[Ce.EnableDifferential,"diff",i.enableDifferential]]),void 0!==i.break&&r.push(Nt(e,i.break)),Lt(e,r,i,[[Ce.BoxAlign,"aln",i.alignment]])}else if(n.type===t.MathFunctionType.GroupCharacter){var o=n;Bt(e,r,o,Ce.GroupChar,"chr",function(){return o.groupCharacter}),Bt(e,r,o,Ce.HasCharTop,"pos",function(){return o.hasCharacterTop?"top":"bot"}),Bt(e,r,o,Ce.HasAlignTop,"vertJc",function(){return o.hasAlignTop?"top":"bot"})}else if(n.type===t.MathFunctionType.Phantom){var a=n;Lt(e,r,a,[[Ce.Show,"show",a.show],[Ce.ZeroWidth,"zeroWid",a.zeroWidth],[Ce.ZeroAscent,"zeroAsc",a.zeroAscent],[Ce.ZeroDescent,"zeroDesc",a.zeroDescent],[Ce.Transparent,"transp",a.transparent]])}else n.type===t.MathFunctionType.Radical&&Lt(e,r,n,[[Ce.HideDegree,"degHide",n.hideDegree]])}function Wt(t,e){var r=[];return Xt(t,r,e),Vt(t,r,e),r}function Zt(e){switch(e.type){case t.MathFunctionType.Accent:return{name:"acc",pr:"accPr",args:[["e",e.equation]]};case t.MathFunctionType.Bar:return{name:"bar",pr:"barPr",args:[["e",e.equation]]};case t.MathFunctionType.BorderBox:return{name:"borderBox",pr:"borderBoxPr",args:[["e",e.equation]]};case t.MathFunctionType.Box:return{name:"box",pr:"boxPr",args:[["e",e.equation]]};case t.MathFunctionType.GroupCharacter:return{name:"groupChr",pr:"groupChrPr",args:[["e",e.equation]]};case t.MathFunctionType.Phantom:return{name:"phant",pr:"phantPr",args:[["e",e.equation]]};case t.MathFunctionType.Radical:return{name:"rad",pr:"radPr",args:[["deg",e.degree],["e",e.equation]]};case t.MathFunctionType.Fraction:return{name:"f",pr:"fPr",args:[["num",e.numerator],["den",e.denominator]]};case t.MathFunctionType.Function:return{name:"func",pr:"funcPr",args:[["fName",e.functionName],["e",e.equation]]};default:return $t(e)}}function $t(e){if(e.type===t.MathFunctionType.Limit){var r=e,n=r.limitType===t.MathLimitType.UpperLimit;return{name:n?"limUpp":"limLow",pr:n?"limUppPr":"limLowPr",args:[["e",r.equation],["lim",r.limit]]}}if(e.type===t.MathFunctionType.NArray){var i=e;return{name:"nary",pr:"naryPr",args:[["sub",i.subscript],["sup",i.superscript],["e",i.equation]]}}if(e.type===t.MathFunctionType.SubSuperscript){var o=e,a=o.scriptType===t.MathScriptType.Subscript;return{name:a?"sSub":"sSup",pr:a?"sSubPr":"sSupPr",args:[["e",o.equation],[a?"sub":"sup",o.script]]}}if(e.type===t.MathFunctionType.RightSubSuperscript){var u=e;return{name:"sSubSup",pr:"sSubSupPr",args:[["e",u.equation],["sub",u.subscript],["sup",u.superscript]]}}if(e.type===t.MathFunctionType.LeftSubSuperscript){var c=e;return{name:"sPre",pr:"sPrePr",args:[["sub",c.subscript],["sup",c.superscript],["e",c.equation]]}}}function Kt(t,e){if(!e.hasControlProperties)return[];if(void 0!==t.adapter){var r=t.adapter.serializeControlProperties(e.controlProperties);return r.length>0?[Ot(t,"ctrlPr",r)]:[]}var n=e.controlProperties instanceof Oe?e.controlProperties:void 0;return void 0!==n&&void 0!==n.preservedXml?[n.preservedXml]:[]}function Qt(t,e,r){var n=Wt(t,e).concat(Kt(t,e));return n.length>0?[Ot(t,r,n)]:[]}function Yt(t,e,r,n){var i=[];return r.isExplicit(Ce.ArgumentSize)&&i.push(Ot(t,"argPr",[kt(t,"argSz",String(r.argumentSize))])),te(t,r,n).forEach(function(t){return i.push(t)}),void 0!==r.preservedControlProperties&&i.push(r.preservedControlProperties),Ot(t,e,i)}function te(t,e,r){return e.functions.toArray().map(function(e,n){return ae(t,e,r+"["+String(n)+"]")})}function ee(t,e,r,n,i){r.equations.count<1&&Et("m:"+e+" requires at least one m:e",i,"required-child");var o=Qt(t,r,n);return r.equations.toArray().forEach(function(e,r){return o.push(Yt(t,"e",e,i+".e["+String(r)+"]"))}),Ot(t,e,o)}function re(e,r,n){r.rows.count<1&&Et("m:m requires at least one m:mr",n,"required-child");var i=Qt(e,r,yn[t.MathFunctionType.Matrix]);return r.rowItems.forEach(function(t,r){var o=t.arguments.toArray().map(function(t,i){return Yt(e,"e",t,n+".mr["+String(r)+"].e["+String(i)+"]")});i.push(Ot(e,"mr",o))}),Ot(e,"m",i)}function ne(t){return 0===t.length||/^\s|\s$/.test(t)}function ie(t,e){if("xml"===e.kind)return e.element;var r=void 0!==e.space?e.space:ne(e.value)?"preserve":void 0,n=void 0===r?[]:[{namespaceUri:Se,localName:"space",prefix:"xml",value:r}];return Ot(t,"t",[R(e.value)],n)}function oe(t,e){var r=[],n=Dt(t,e.mathFormat);return n.length>0&&r.push(Ot(t,"rPr",n)),void 0!==t.adapter?t.adapter.serializeMathRun(e).forEach(function(t){return r.push(t)}):e.item instanceof Ae&&(void 0!==e.item.runProperties&&r.push(e.item.runProperties),e.item.parts.forEach(function(e){return r.push(ie(t,e))})),Ot(t,"r",r)}function ae(e,r,n){if(r instanceof Xr)return r.preservedXml;if(r.type===t.MathFunctionType.RunElement)return oe(e,r);if(r.type===t.MathFunctionType.Delimiter)return ee(e,"d",r,"dPr",n);if(r.type===t.MathFunctionType.EquationArray)return ee(e,"eqArr",r,"eqArrPr",n);if(r.type===t.MathFunctionType.Matrix)return re(e,r,n);var i=Zt(r);if(void 0===i)return Et("Unsupported Math function type "+String(r.type),n,"enum-value");var o=Qt(e,r,i.pr);return i.args.forEach(function(t){return o.push(Yt(e,t[0],t[1],n+"."+t[0]))}),Ot(e,i.name,o)}function ue(t){if(1===t.maths.count&&1===t.maths.getItem(0).functions.count){var e=t.maths.getItem(0).functions.getItem(0);return e instanceof Xr&&e.preservedXml.namespaceUri===we&&("oMath"===e.localName||"oMathPara"===e.localName)?e.preservedXml:void 0}}function ce(t,e){var r=t.adapter,n={prefix:_t(e),adapter:r},i=ue(t);if(void 0!==i)return i;var o=void 0!==e&&void 0!==e.display?e.display:t.hasExplicitJustification||1!==t.maths.count,a=t.maths.toArray();if(a.length<1&&Et("An equation paragraph requires at least one m:oMath","oMathPara","required-child"),!o)return a.length>1&&Et("A bare m:oMath holds exactly one equation","oMath","child-order"),Ot(n,"oMath",te(n,a[0],"oMath"));var u=[];if(t.hasExplicitJustification){var c=Rt(gn,t.justification,"oMathParaPr.jc","ST_Jc");u.push(Ot(n,"oMathParaPr",[kt(n,"jc",c)]))}return a.forEach(function(t,e){var r="oMathPara.oMath["+String(e)+"]";u.push(Ot(n,"oMath",te(n,t,r)))}),Ot(n,"oMathPara",u)}function se(t){return-1!==mn.indexOf(t)?t:void 0}function pe(t){return-1!==dn.indexOf(t)?t:void 0}function he(t){return-1!==bn.indexOf(t)?t:void 0}function le(t){return-1!==vn.indexOf(t)?t:void 0}function fe(t){if(void 0!==t){var e=t.toLowerCase();return"1"===e||"true"===e||"on"===e||"0"!==e&&"false"!==e&&"off"!==e&&void 0}}function ye(t,e){return j(t).find(function(t){return t.namespaceUri===we&&t.localName===e})}function ge(t,e){var r=ye(t,e);return r?L(r,"val"):void 0}function me(t,e){var r=ge(t,e);return void 0!==r&&/^\d+$/.test(r)?Number(r):void 0}function de(t,e){var r=ye(t,e);if(r){var n=L(r,"val");return void 0===n||fe(n)}}function be(t){var e={},r=function(t,r){void 0!==r&&(e[t]=r)};r("mathFont",ge(t,"mathFont"));var n=ge(t,"brkBin");r("breakOnBinaryOperators",void 0!==n?he(n):void 0);var i=ge(t,"brkBinSub");r("breakOnBinarySubtraction",void 0!==i?le(i):void 0),r("smallFraction",de(t,"smallFrac")),r("displayMathDefaults",de(t,"dispDef")),r("leftMargin",me(t,"lMargin")),r("rightMargin",me(t,"rMargin"));var o=ge(t,"defJc");r("defaultJustification",void 0!==o?se(o):void 0),r("preSpacing",me(t,"preSp")),r("postSpacing",me(t,"postSp")),r("interSpacing",me(t,"interSp")),r("intraSpacing",me(t,"intraSp")),r("wrapIndent",me(t,"wrapIndent")),r("wrapRight",de(t,"wrapRight"));var a=ge(t,"intLim");r("integralLimitLocation",void 0!==a?pe(a):void 0);var u=ge(t,"naryLim");return r("naryLimitLocation",void 0!==u?pe(u):void 0),e}function ve(t,e){void 0===e&&(e="m");var r,n,i=[],o=function(t,r){i.push(E(we,t,e,{attributes:[{namespaceUri:"",localName:"val",prefix:"",value:r}],children:[]}))},a=function(t,e){void 0!==e&&o(t,e?"1":"0")},u=function(t,e){if(void 0!==e){if(!Number.isInteger(e)||e<0)throw new an(t+" must be a non-negative integer, got "+String(e),"mathPr."+t,"value-range");o(t,String(e))}};if(void 0!==t.wrapIndent&&void 0!==t.wrapRight)throw new an("wrapIndent and wrapRight are mutually exclusive","mathPr","child-order");void 0!==t.mathFont&&o("mathFont",t.mathFont),void 0!==t.breakOnBinaryOperators&&o("brkBin",t.breakOnBinaryOperators),void 0!==t.breakOnBinarySubtraction&&o("brkBinSub",t.breakOnBinarySubtraction),a("smallFrac",t.smallFraction),a("dispDef",t.displayMathDefaults);try{for(var c=wn(Mn),s=c.next();!s.done;s=c.next()){var p=Pn(s.value,2),h=p[0],l=p[1],f=t[h];"string"==typeof f?o(l,f):u(l,f)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return u("wrapIndent",t.wrapIndent),a("wrapRight",t.wrapRight),void 0!==t.integralLimitLocation&&o("intLim",t.integralLimitLocation),void 0!==t.naryLimitLocation&&o("naryLim",t.naryLimitLocation),E(we,"mathPr",e,{attributes:[],children:i})}var we="http://schemas.openxmlformats.org/officeDocument/2006/math",Pe=["m","m1","m2","m3","m4","m5"],Me="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Se="http://www.w3.org/XML/1998/namespace";!function(t){t[t.CenterGroup=0]="CenterGroup",t[t.Center=1]="Center",t[t.Left=2]="Left",t[t.Right=3]="Right"}(t.MathJustification||(t.MathJustification={})),function(t){t[t.DoubleStruck=0]="DoubleStruck",t[t.Fraktur=1]="Fraktur",t[t.Monospace=2]="Monospace",t[t.Roman=3]="Roman",t[t.SansSerif=4]="SansSerif",t[t.Script=5]="Script"}(t.MathFontType||(t.MathFontType={})),function(t){t[t.Italic=0]="Italic",t[t.BoldItalic=1]="BoldItalic",t[t.Bold=2]="Bold",t[t.Regular=3]="Regular"}(t.MathStyleType||(t.MathStyleType={})),function(t){t[t.Unknown=0]="Unknown",t[t.Accent=1]="Accent",t[t.Bar=2]="Bar",t[t.BorderBox=3]="BorderBox",t[t.Box=4]="Box",t[t.Delimiter=5]="Delimiter",t[t.EquationArray=6]="EquationArray",t[t.Fraction=7]="Fraction",t[t.Function=8]="Function",t[t.GroupCharacter=9]="GroupCharacter",t[t.Limit=10]="Limit",t[t.Matrix=11]="Matrix",t[t.NArray=12]="NArray",t[t.Phantom=13]="Phantom",t[t.Radical=14]="Radical",t[t.LeftSubSuperscript=15]="LeftSubSuperscript",t[t.SubSuperscript=16]="SubSuperscript",t[t.RightSubSuperscript=17]="RightSubSuperscript",t[t.RunElement=18]="RunElement"}(t.MathFunctionType||(t.MathFunctionType={})),function(t){t[t.Centered=0]="Centered",t[t.Match=1]="Match"}(t.MathDelimiterShapeType||(t.MathDelimiterShapeType={})),function(t){t[t.NormalFractionBar=0]="NormalFractionBar",t[t.NoFractionBar=1]="NoFractionBar",t[t.SkewedFractionBar=2]="SkewedFractionBar",t[t.FractionInline=3]="FractionInline"}(t.MathFractionType||(t.MathFractionType={})),function(t){t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right"}(t.MathHorizontalAlignment||(t.MathHorizontalAlignment={})),function(t){t[t.Center=0]="Center",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom"}(t.MathVerticalAlignment||(t.MathVerticalAlignment={})),function(t){t[t.Single=0]="Single",t[t.OneAndHalf=1]="OneAndHalf",t[t.Double=2]="Double",t[t.Exactly=3]="Exactly",t[t.Multiple=4]="Multiple"}(t.SpacingRule||(t.SpacingRule={})),function(t){t[t.Superscript=0]="Superscript",t[t.Subscript=1]="Subscript"}(t.MathScriptType||(t.MathScriptType={})),function(t){t[t.LowerLimit=0]="LowerLimit",t[t.UpperLimit=1]="UpperLimit"}(t.MathLimitType||(t.MathLimitType={}));var xe,Te,qe=function(){function t(){this._values=new Map}return t.prototype.hasProperty=function(t){return this._values.has(t)},t.prototype.getProperty=function(t,e){return this._values.has(t)?this._values.get(t):e()},t.prototype.setProperty=function(t,e){this._values.set(t,e),this.propertyChanged()},t.prototype.clearProperty=function(t){this._values.delete(t)&&this.propertyChanged()},t.prototype.isExplicit=function(t){return this.hasProperty(t)},t.prototype.copyExplicitFrom=function(t){var e=this;t._values.forEach(function(t,r){return e._values.set(r,t)})},t.prototype.explicitEquals=function(t){if(this._values.size!==t._values.size)return!1;var e=!0;return this._values.forEach(function(r,n){t._values.has(n)&&t._values.get(n)===r||(e=!1)}),e},t.prototype.propertyChanged=function(){},t}(),Fe=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_e=function(t){function e(e){var r=t.call(this)||this;return r._owner=e,r}return Fe(e,t),Object.defineProperty(e.prototype,"ownerMathEntity",{get:function(){return this._owner},enumerable:!0,configurable:!0}),e.prototype.setOwner=function(t){this._owner=t},Object.defineProperty(e.prototype,"isMatrixArgumentOwner",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.rootMutated=function(){},e.prototype.notifyMutated=function(){for(var t=this,r=t._owner;r instanceof e;)r=(t=r)._owner;t.rootMutated()},e.prototype.propertyChanged=function(){this.notifyMutated()},e}(qe),Oe=function(){function t(t){this.preservedXml=t}return t.prototype.clone=function(){return new t(this.preservedXml)},t.prototype.equals=function(r){var n=r instanceof t?r:void 0;return void 0!==n&&(void 0===this.preservedXml||void 0===n.preservedXml?this.preservedXml===n.preservedXml:e(this.preservedXml,n.preservedXml))},t}(),Ae=function(){function t(){this.characterFormat=new Oe,this.parts=[]}return Object.defineProperty(t.prototype,"text",{get:function(){return this.parts.map(function(t){return"text"===t.kind?t.value:""}).join("")},set:function(t){var e=this,r=this.parts.map(function(t){return t.kind}).indexOf("text"),n=this.parts.filter(function(t){return"text"!==t.kind}),i=r<0?n.length:this.parts.slice(0,r).filter(function(t){return"text"!==t.kind}).length;n.splice(i,0,{kind:"text",value:t}),this.parts.length=0,n.forEach(function(t){return e.parts.push(t)})},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t;return e.characterFormat=this.characterFormat.clone(),e.runProperties=this.runProperties,this.parts.forEach(function(t){return e.parts.push(t)}),e},t}(),ke=function(){function t(t){this.owner=t,this._items=[],this._synced=0}return Object.defineProperty(t.prototype,"count",{get:function(){return this._items.length},enumerable:!0,configurable:!0}),t.prototype.getItem=function(t){return this.checkIndex(t,this._items.length-1),this._items[t]},t.prototype.insert=function(t,e){this.insertItem(t,e)},t.prototype.remove=function(t){var e=this._items.indexOf(t);e>=0&&this.removeAt(e)},t.prototype.removeAt=function(t){this.checkIndex(t,this._items.length-1);var e=this._items.splice(t,1)[0];this.detach(e),this.afterChange()},t.prototype.clear=function(){var t=this;this._items.splice(0,this._items.length).forEach(function(e){return t.detach(e)}),this.afterChange()},t.prototype[Symbol.iterator]=function(){return this._items[Symbol.iterator]()},t.prototype.toArray=function(){return this._items.slice()},t.prototype.pushRaw=function(t){this._items.push(t),this.syncIndexes()},t.prototype.insertRaw=function(t,e){this.attach(e),this._items.splice(t,0,e),this.syncIndexes()},t.prototype.attach=function(t){t.setOwner(this.owner)},t.prototype.removeRawAt=function(t){var e=this._items.splice(t,1)[0];return this.detach(e),this.syncIndexes(),e},t.prototype.insertItem=function(t,e){if(this.checkIndex(t,this._items.length),this._items.indexOf(e)>=0||void 0!==e.ownerMathEntity&&e.ownerMathEntity!==this.owner)throw new Error("The item already belongs to a Math collection.");e.setOwner(this.owner),this._items.splice(t,0,e),this.afterChange()},t.prototype.afterChange=function(){this.syncIndexes(),this.owner.notifyMutated()},t.prototype.detach=function(t){t.setOwner(void 0)},t.prototype.checkIndex=function(t,e){if(!(t>=0&&t<=e)||Math.floor(t)!==t)throw new RangeError("Index "+t+" is out of range.")},t.prototype.syncIndexes=function(){for(var t=this,e=this._items.length;e<this._synced;e++)delete t[e];for(e=0;e<this._items.length;e++)t[e]=this._items[e];this._synced=this._items.length},t}(),Ce={AccentChar:1,BarTop:2,HideTop:3,HideBottom:4,HideRight:5,HideLeft:6,StrikeBLTR:7,StrikeTLBR:8,StrikeVertical:9,StrikeHorizontal:10,BoxAlign:11,NoBreak:12,EnableDifferential:14,OperatorEmulator:15,AlignAt:16,BegChar:17,EndChar:18,NoRightChar:19,NoLeftChar:20,SeparatorChar:21,Grow:22,Shape:23,EqArrAlign:24,MaxDist:25,ObjDist:26,RowSpacing:27,RowSpacingRule:28,FractionType:29,HasAlignTop:30,GroupChar:31,HasCharTop:32,MatrixAlign:33,ColumnWidth:34,ColumnSpacingRule:35,ColumnSpacing:36,ColumnGap:38,ColumnGapRule:39,PlaceHoldHidden:37,NAryChar:41,HasGrow:42,HideSubscript:43,HideSuperscript:44,SubSupLimit:45,Show:46,Smash:47,Transparent:48,ZeroAscent:49,ZeroDescent:50,ZeroWidth:51,HideDegree:51,SkipAlign:52,HasAlignment:53,HasLiteral:54,HasNormalText:55,Script:56,Style:57,ArgumentSize:74,AlignPoint:76,Justification:77,LimitType:80,ScriptType:81},Ee=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ee(e,t),Object.defineProperty(e.prototype,"alignAt",{get:function(){return this.getProperty(Ce.AlignAt,function(){return 0})},set:function(t){this.setProperty(Ce.AlignAt,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasExplicitAlignAt",{get:function(){return this.isExplicit(Ce.AlignAt)},enumerable:!0,configurable:!0}),e}(_e),je=function(t){function e(e){return t.call(this,e)||this}return Ee(e,t),e.prototype.add=function(t){var e=new Re(this.owner);return e.setOwner(void 0),this.insertItem(void 0===t?this.count:t,e),e},e}(ke),Le=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Be=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return Le(r,e),Object.defineProperty(r.prototype,"hasAlignment",{get:function(){return this.getProperty(Ce.HasAlignment,function(){return!1})},set:function(t){this.setProperty(Ce.HasAlignment,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasLiteral",{get:function(){return this.getProperty(Ce.HasLiteral,function(){return!1})},set:function(t){this.setProperty(Ce.HasLiteral,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasNormalText",{get:function(){return this.getProperty(Ce.HasNormalText,function(){return!1})},set:function(t){this.setProperty(Ce.HasNormalText,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"font",{get:function(){return this.getProperty(Ce.Script,function(){return t.MathFontType.Roman})},set:function(t){this.setProperty(Ce.Script,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"style",{get:function(){return this.getProperty(Ce.Style,function(){return t.MathStyleType.Italic})},set:function(t){this.setProperty(Ce.Style,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"break",{get:function(){return this._break},set:function(t){this._break=t,void 0!==t&&t.setOwner(this),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasContent",{get:function(){var t=this;return void 0!==this._break||[Ce.HasAlignment,Ce.HasLiteral,Ce.HasNormalText,Ce.Script,Ce.Style].some(function(e){return t.isExplicit(e)})},enumerable:!0,configurable:!0}),r}(_e),Ne=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),De=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ne(e,t),Object.defineProperty(e.prototype,"controlProperties",{get:function(){return void 0===this._controlProperties&&(this._controlProperties=this.getDefaultControlProperties()),this._controlProperties},set:function(t){this._controlProperties=t,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasControlProperties",{get:function(){return void 0!==this._controlProperties},enumerable:!0,configurable:!0}),e.prototype.getDefaultControlProperties=function(){for(var t=this.ownerMathEntity;void 0!==t&&!("defaultMathCharacterFormat"in t);)t=t.ownerMathEntity;if(void 0===t)throw new Error("Math function is not attached to a Math paragraph.");return t.defaultMathCharacterFormat.clone()},e}(_e),He=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ie=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.RunElement,n._mathFormat=new Be(n),n}return He(r,e),Object.defineProperty(r.prototype,"item",{get:function(){return this._item},set:function(t){this._item=t,void 0!==t&&(t.ownerMathRunElement=this),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"text",{get:function(){var t=this.findAdapter();return void 0===this._item?"":void 0!==t?t.getRunText(this._item):this._item.text},set:function(t){var e=this.findAdapter();void 0===this._item&&(this.item=void 0!==e?e.createRun(this):new Ae),void 0!==e?(e.setRunText(this._item,t),this.notifyMutated()):(this._item.text=t,this.notifyMutated())},enumerable:!0,configurable:!0}),r.prototype.findAdapter=function(){for(var t=this.ownerMathEntity;void 0!==t;){var e=t;if(void 0!==e.adapter)return e.adapter;t=t.ownerMathEntity}},Object.defineProperty(r.prototype,"mathFormat",{get:function(){return this._mathFormat},enumerable:!0,configurable:!0}),r}(De),Ge=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ze=function(t){function e(e){return t.call(this,e)||this}return Ge(e,t),e.prototype.add=function(t){var e=new yr;return this.insertItem(void 0===t?this.count:t,e),e},e}(ke),Ue=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Je=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Delimiter,n._equations=new ze(n),n}return Ue(r,e),Object.defineProperty(r.prototype,"beginCharacter",{get:function(){return this.getProperty(Ce.BegChar,function(){return"("})},set:function(t){this.setProperty(Ce.BegChar,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endCharacter",{get:function(){return this.getProperty(Ce.EndChar,function(){return")"})},set:function(t){this.setProperty(Ce.EndChar,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"separator",{get:function(){return this.getProperty(Ce.SeparatorChar,function(){return"|"})},set:function(t){this.setProperty(Ce.SeparatorChar,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isGrow",{get:function(){return this.getProperty(Ce.Grow,function(){return!0})},set:function(t){this.setProperty(Ce.Grow,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"delimiterShape",{get:function(){return this.getProperty(Ce.Shape,function(){return t.MathDelimiterShapeType.Centered})},set:function(t){this.setProperty(Ce.Shape,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equations",{get:function(){return this._equations},enumerable:!0,configurable:!0}),r}(De),Ve=function(e){function n(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.EquationArray,n._equations=new ze(n),n}return Ue(n,e),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return this.getProperty(Ce.EqArrAlign,function(){return t.MathVerticalAlignment.Center})},set:function(t){this.setProperty(Ce.EqArrAlign,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"expandEquationContainer",{get:function(){return this.getProperty(Ce.MaxDist,function(){return!1})},set:function(t){this.setProperty(Ce.MaxDist,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"expandEquationContent",{get:function(){return this.getProperty(Ce.ObjDist,function(){return!1})},set:function(t){this.setProperty(Ce.ObjDist,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowSpacing",{get:function(){return this.getProperty(Ce.RowSpacing,function(){return 0})},set:function(t){r(t,this.rowSpacingRule),this.setProperty(Ce.RowSpacing,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowSpacingRule",{get:function(){return this.getProperty(Ce.RowSpacingRule,function(){return t.SpacingRule.Single})},set:function(t){this.setProperty(Ce.RowSpacingRule,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"equations",{get:function(){return this._equations},enumerable:!0,configurable:!0}),n}(De),Xe=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Fraction,n._denominator=new yr(n),n._numerator=new yr(n),n}return Ue(r,e),Object.defineProperty(r.prototype,"fractionType",{get:function(){return this.getProperty(Ce.FractionType,function(){return t.MathFractionType.NormalFractionBar})},set:function(t){this.setProperty(Ce.FractionType,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"numerator",{get:function(){return this._numerator},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"denominator",{get:function(){return this._denominator},enumerable:!0,configurable:!0}),r}(De),We=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Function,n._equation=new yr(n),n._functionName=new yr(n),n}return Ue(r,e),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"functionName",{get:function(){return this._functionName},enumerable:!0,configurable:!0}),r}(De),Ze=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Limit,n._equation=new yr(n),n._limit=new yr(n),n}return Ue(r,e),Object.defineProperty(r.prototype,"limitType",{get:function(){return this.getProperty(Ce.LimitType,function(){return t.MathLimitType.LowerLimit})},set:function(t){this.setProperty(Ce.LimitType,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"limit",{get:function(){return this._limit},enumerable:!0,configurable:!0}),r}(De),$e=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.NArray,n._equation=new yr(n),n._subscript=new yr(n),n._superscript=new yr(n),n}return Ue(r,e),Object.defineProperty(r.prototype,"nArrayCharacter",{get:function(){return this.getProperty(Ce.NAryChar,function(){return String.fromCharCode(8747)})},set:function(t){this.setProperty(Ce.NAryChar,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasGrow",{get:function(){return this.getProperty(Ce.HasGrow,function(){return!1})},set:function(t){this.setProperty(Ce.HasGrow,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideLowerLimit",{get:function(){return this.getProperty(Ce.HideSubscript,function(){return!1})},set:function(t){this.setProperty(Ce.HideSubscript,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideUpperLimit",{get:function(){return this.getProperty(Ce.HideSuperscript,function(){return!1})},set:function(t){this.setProperty(Ce.HideSuperscript,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subSuperscriptLimit",{get:function(){var t=this;return this.getProperty(Ce.SubSupLimit,function(){return t.nArrayCharacter===String.fromCharCode(8747)})},set:function(t){this.setProperty(Ce.SubSupLimit,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._subscript},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._superscript},enumerable:!0,configurable:!0}),r}(De),Ke=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.SubSuperscript,n._equation=new yr(n),n._script=new yr(n),n}return Ue(r,e),Object.defineProperty(r.prototype,"scriptType",{get:function(){return this.getProperty(Ce.ScriptType,function(){return t.MathScriptType.Superscript})},set:function(t){this.setProperty(Ce.ScriptType,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"script",{get:function(){return this._script},enumerable:!0,configurable:!0}),r}(De),Qe=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.RightSubSuperscript,n._equation=new yr(n),n._subscript=new yr(n),n._superscript=new yr(n),n}return Ue(r,e),Object.defineProperty(r.prototype,"isSkipAlign",{get:function(){return this.getProperty(Ce.SkipAlign,function(){return!0})},set:function(t){this.setProperty(Ce.SkipAlign,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._subscript},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._superscript},enumerable:!0,configurable:!0}),r}(De),Ye=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.LeftSubSuperscript,n._equation=new yr(n),n._subscript=new yr(n),n._superscript=new yr(n),n}return Ue(r,e),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._subscript},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._superscript},enumerable:!0,configurable:!0}),r}(De),tr=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),er=function(t){function e(e){return t.call(this,e)||this}return tr(e,t),e.prototype.add=function(){throw new Error("Cells are managed by the matrix; add a column instead.")},e.prototype.insert=function(){throw new Error("Cells are managed by the matrix.")},e.prototype.removeAt=function(){throw new Error("Cells are managed by the matrix; remove a column instead.")},e.prototype.remove=function(){throw new Error("Cells are managed by the matrix; remove a column instead.")},e.prototype.clear=function(){throw new Error("Cells are managed by the matrix; remove columns instead.")},e}(ke),rr=function(t){function e(e){var r=t.call(this,e)||this;return r._arguments=new er(r),r}return tr(e,t),Object.defineProperty(e.prototype,"arguments",{get:function(){return this._arguments},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowIndex",{get:function(){var t=this.ownerMathEntity;return void 0===t?-1:t.rowItems.indexOf(this)},enumerable:!0,configurable:!0}),e}(_e),nr=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ir=function(){function t(t){var e=this;this._items=t,t.forEach(function(t,r){e[r]=t})}return Object.defineProperty(t.prototype,"count",{get:function(){return this._items.length},enumerable:!0,configurable:!0}),t.prototype.getItem=function(t){if(!(t>=0&&t<this._items.length))throw new RangeError("Index "+t+" is out of range.");return this._items[t]},t.prototype.add=function(){throw new Error("Cells are managed by the matrix; add a row instead.")},t.prototype[Symbol.iterator]=function(){return this._items[Symbol.iterator]()},t}(),or=function(e){function r(t){return e.call(this,t)||this}return nr(r,e),Object.defineProperty(r.prototype,"horizontalAlignment",{get:function(){return this.getProperty(Ce.MatrixAlign,function(){return t.MathHorizontalAlignment.Center})},set:function(t){this.setProperty(Ce.MatrixAlign,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"columnIndex",{get:function(){var t=this.ownerMathEntity;return void 0===t?-1:t.columns.toArray().indexOf(this)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"arguments",{get:function(){var t=this.ownerMathEntity,e=this.columnIndex,r=void 0===t?[]:t.rowItems.map(function(t){return t.arguments.getItem(e)});return new ir(r)},enumerable:!0,configurable:!0}),r}(_e),ar=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ur=function(t){function e(e){var r=t.call(this,e)||this;return r.matrix=e,r}return ar(e,t),e.prototype.add=function(t){for(var e=new rr,r=this.matrix.columns.count,n=0;n<r;n++)e.arguments.pushRaw(new yr(e));return this.insertItem(void 0===t?this.count:t,e),e},e.prototype.afterChange=function(){this.matrix.relink(),t.prototype.afterChange.call(this)},e}(ke),cr=function(t){function e(e){var r=t.call(this,e)||this;return r.matrix=e,r}return ar(e,t),e.prototype.add=function(t){var e=void 0===t?this.count:t,r=new or;return this.insertItem(e,r),r},e.prototype.removeAt=function(e){t.prototype.removeAt.call(this,e),this.matrix.rowItems.forEach(function(t){return t.arguments.removeRawAt(e)}),this.matrix.relink()},e.prototype.clear=function(){t.prototype.clear.call(this),this.matrix.rowItems.forEach(function(t){for(;t.arguments.count>0;)t.arguments.removeRawAt(t.arguments.count-1)})},e.prototype.afterChange=function(){this.matrix.relink(),t.prototype.afterChange.call(this)},e.prototype.insertItem=function(e,r){t.prototype.insertItem.call(this,e,r),this.matrix.rowItems.forEach(function(t){return t.arguments.insertRaw(e,new yr(t))}),this.matrix.relink()},e}(ke),sr=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),pr=function(e){function n(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Matrix,n._rows=new ur(n),n._columns=new cr(n),n}return sr(n,e),Object.defineProperty(n.prototype,"rows",{get:function(){return this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._columns},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"verticalAlignment",{get:function(){return this.getProperty(Ce.MatrixAlign,function(){return t.MathVerticalAlignment.Center})},set:function(t){this.setProperty(Ce.MatrixAlign,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hidePlaceholder",{get:function(){return this.getProperty(Ce.PlaceHoldHidden,function(){return!1})},set:function(t){this.setProperty(Ce.PlaceHoldHidden,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowSpacing",{get:function(){return this.getProperty(Ce.RowSpacing,function(){return 0})},set:function(t){r(t,this.rowSpacingRule),this.setProperty(Ce.RowSpacing,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowSpacingRule",{get:function(){return this.getProperty(Ce.RowSpacingRule,function(){return t.SpacingRule.Single})},set:function(t){this.setProperty(Ce.RowSpacingRule,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnGap",{get:function(){return this.getProperty(Ce.ColumnGap,function(){return 0})},set:function(t){this.setProperty(Ce.ColumnGap,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnGapRule",{get:function(){return this.getProperty(Ce.ColumnGapRule,function(){return t.SpacingRule.Single})},set:function(t){this.setProperty(Ce.ColumnGapRule,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hidePlaceHolders",{get:function(){return this.hidePlaceholder},set:function(t){this.hidePlaceholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnSpacingRule",{get:function(){return this.columnGapRule},set:function(t){this.columnGapRule=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnWidth",{get:function(){return this.columnSpacing},set:function(t){this.columnSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnSpacing",{get:function(){return this.getProperty(Ce.ColumnSpacing,function(){return 0})},set:function(t){this.setProperty(Ce.ColumnSpacing,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnGroups",{get:function(){var t=[];return this._columns.toArray().forEach(function(e,r){var n=t[t.length-1];void 0!==n&&n.horizontalAlignment===e.horizontalAlignment?n.count++:t.push({startIndex:r,count:1,horizontalAlignment:e.horizontalAlignment})}),t},enumerable:!0,configurable:!0}),n.prototype.relink=function(){var t=this._columns.toArray();this._rows.toArray().forEach(function(e){e.arguments.toArray().forEach(function(e,r){return e.setOwnerColumn(t[r])})})},Object.defineProperty(n.prototype,"rowItems",{get:function(){return this._rows.toArray()},enumerable:!0,configurable:!0}),n}(De),hr=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),lr=function(t){function e(e){return t.call(this,e)||this}return hr(e,t),e.prototype.add=function(t,e){var r=n(t);return this.insertItem(void 0===e?this.count:e,r),r},e}(ke),fr=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),yr=function(t){function e(e){var r=t.call(this,e)||this;return r._functions=new lr(r),r._breaks=new je(r),r}return fr(e,t),Object.defineProperty(e.prototype,"breaks",{get:function(){return this._breaks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"functions",{get:function(){return this._functions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"argumentSize",{get:function(){return this.getProperty(Ce.ArgumentSize,function(){return 0})},set:function(t){if(t<-2||t>2||Math.floor(t)!==t)throw new RangeError("ArgumentSize must be an integer between -2 and 2.");this.setProperty(Ce.ArgumentSize,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preservedControlProperties",{get:function(){return this._preservedControl},set:function(t){this._preservedControl=t,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ownerMath",{get:function(){for(var t=this.ownerMathEntity;void 0!==t;){if(t instanceof e)return t;t=t.ownerMathEntity}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ownerRow",{get:function(){var t=this.ownerMathEntity;return void 0!==t&&"arguments"in t?t:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ownerColumn",{get:function(){return this._column},enumerable:!0,configurable:!0}),e.prototype.setOwnerColumn=function(t){this._column=t},e}(_e),gr=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),mr=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Accent,n._equation=new yr(n),n}return gr(r,e),Object.defineProperty(r.prototype,"accentCharacter",{get:function(){return this.getProperty(Ce.AccentChar,function(){return String.fromCharCode(770)})},set:function(t){this.setProperty(Ce.AccentChar,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),r}(De),dr=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Bar,n._equation=new yr(n),n}return gr(r,e),Object.defineProperty(r.prototype,"barTop",{get:function(){return this.getProperty(Ce.BarTop,function(){return!1})},set:function(t){this.setProperty(Ce.BarTop,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),r}(De),br=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.BorderBox,n._equation=new yr(n),n}return gr(r,e),Object.defineProperty(r.prototype,"hideTop",{get:function(){return this.getProperty(Ce.HideTop,function(){return!1})},set:function(t){this.setProperty(Ce.HideTop,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideBottom",{get:function(){return this.getProperty(Ce.HideBottom,function(){return!1})},set:function(t){this.setProperty(Ce.HideBottom,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideLeft",{get:function(){return this.getProperty(Ce.HideLeft,function(){return!1})},set:function(t){this.setProperty(Ce.HideLeft,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideRight",{get:function(){return this.getProperty(Ce.HideRight,function(){return!1})},set:function(t){this.setProperty(Ce.HideRight,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"strikeDiagonalUp",{get:function(){return this.getProperty(Ce.StrikeBLTR,function(){return!1})},set:function(t){this.setProperty(Ce.StrikeBLTR,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"strikeDiagonalDown",{get:function(){return this.getProperty(Ce.StrikeTLBR,function(){return!1})},set:function(t){this.setProperty(Ce.StrikeTLBR,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"strikeVertical",{get:function(){return this.getProperty(Ce.StrikeVertical,function(){return!1})},set:function(t){this.setProperty(Ce.StrikeVertical,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"strikeHorizontal",{get:function(){return this.getProperty(Ce.StrikeHorizontal,function(){return!1})},set:function(t){this.setProperty(Ce.StrikeHorizontal,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),r}(De),vr=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Box,n._equation=new yr(n),n}return gr(r,e),Object.defineProperty(r.prototype,"alignment",{get:function(){return this.getProperty(Ce.BoxAlign,function(){return!1})},set:function(t){this.setProperty(Ce.BoxAlign,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"enableDifferential",{get:function(){return this.getProperty(Ce.EnableDifferential,function(){return!1})},set:function(t){this.setProperty(Ce.EnableDifferential,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"noBreak",{get:function(){return this.getProperty(Ce.NoBreak,function(){return!0})},set:function(t){this.setProperty(Ce.NoBreak,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"operatorEmulator",{get:function(){return this.getProperty(Ce.OperatorEmulator,function(){return!1})},set:function(t){this.setProperty(Ce.OperatorEmulator,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"break",{get:function(){return this._break},set:function(t){this._break=t,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),r}(De),wr=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.GroupCharacter,n._equation=new yr(n),n}return gr(r,e),Object.defineProperty(r.prototype,"hasAlignTop",{get:function(){return this.getProperty(Ce.HasAlignTop,function(){return!0})},set:function(t){this.setProperty(Ce.HasAlignTop,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasCharacterTop",{get:function(){return this.getProperty(Ce.HasCharTop,function(){return!1})},set:function(t){this.setProperty(Ce.HasCharTop,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groupCharacter",{get:function(){return this.getProperty(Ce.GroupChar,function(){return String.fromCharCode(9183)})},set:function(t){this.setProperty(Ce.GroupChar,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),r}(De),Pr=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Phantom,n._equation=new yr(n),n}return gr(r,e),Object.defineProperty(r.prototype,"show",{get:function(){return this.getProperty(Ce.Show,function(){return!0})},set:function(t){this.setProperty(Ce.Show,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"transparent",{get:function(){return this.getProperty(Ce.Transparent,function(){return!1})},set:function(t){this.setProperty(Ce.Transparent,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"zeroAscent",{get:function(){return this.getProperty(Ce.ZeroAscent,function(){return!1})},set:function(t){this.setProperty(Ce.ZeroAscent,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"zeroDescent",{get:function(){return this.getProperty(Ce.ZeroDescent,function(){return!1})},set:function(t){this.setProperty(Ce.ZeroDescent,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"zeroWidth",{get:function(){return this.getProperty(Ce.ZeroWidth,function(){return!1})},set:function(t){this.setProperty(Ce.ZeroWidth,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"smash",{get:function(){return this.getProperty(Ce.Smash,function(){return!1})},set:function(t){this.setProperty(Ce.Smash,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),r}(De),Mr=function(e){function r(r){var n=e.call(this,r)||this;return n.type=t.MathFunctionType.Radical,n._equation=new yr(n),n._degree=new yr(n),n}return gr(r,e),Object.defineProperty(r.prototype,"hideDegree",{get:function(){return this.getProperty(Ce.HideDegree,function(){return!1})},set:function(t){this.setProperty(Ce.HideDegree,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"degree",{get:function(){return this._degree},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equation",{get:function(){return this._equation},enumerable:!0,configurable:!0}),r}(De),Sr={"\\pm":"±","\\infty":"∞","\\neq":"≠","\\times":"×","\\div":"÷","\\propto":"∝","\\ll":"≪","\\gg":"≫","\\le":"≤","\\geq":"≥","\\mp":"∓","\\cong":"≅","\\approx":"≈","\\equiv":"≡","\\forall":"∀","\\complement":"∁","\\partial":"∂","\\cup":"∪","\\cap":"∩","\\emptyset":"∅","\\degf":"℉","\\degc":"℃","\\nabla":"∇","\\exists":"∃","\\nexists":"∄","\\in":"∈","\\ni":"∋","\\gets":"←","\\uparrow":"↑","\\rightarrow":"→","\\downarrow":"↓","\\leftrightarrow":"↔","\\therefore":"∴","\\lnot":"¬","\\alpha":"α","\\beta":"β","\\gamma":"γ","\\delta":"δ","\\varepsilon":"ε","\\epsilon":"ϵ","\\theta":"θ","\\vartheta":"ϑ","\\mu":"μ","\\pi":"π","\\rho":"ρ","\\sigma":"σ","\\tau":"τ","\\varphi":"φ","\\omega":"ω","\\ast":"*","\\bullet":"∙","\\vdots":"⋮","\\cdots":"⋯","\\ddots":"⋱","\\aleph":"ℵ","\\beth":"ℶ","\\qed":"∎","\\zeta":"ζ","\\eta":"η","\\iota":"ι","\\kappa":"κ","\\lambda":"λ","\\nu":"ν","\\xi":"ξ","\\varpi":"ϖ","\\varrho":"ϱ","\\varsigma":"ς","\\upsilon":"υ","\\phi":"ϕ","\\chi":"χ","\\psi":"ψ","\\Gamma":"Γ","\\Delta":"Δ","\\Theta":"Θ","\\Lambda":"Λ","\\Xi":"Ξ","\\Pi":"Π","\\Sigma":"Σ","\\Upsilon":"Υ","\\Phi":"Φ","\\Psi":"Ψ","\\Omega":"Ω","\\mathbb{C}":"C","\\mathcal{g}":"g","\\mathcal{H}":"H","\\mathfrak{H}":"H","\\hbar":"ℏ","\\imath":"ı","\\mathfrak{I}":"I","\\varkappa":"ϰ","\\mathcal{L}":"L","\\ell":"l","\\mathbb{N}":"N","\\wp":"℘","\\mathbb{Q}":"Q","\\mathcal{R}":"R","\\mathfrak{R}":"R","\\mathbb{R}":"R","\\mathbb{Z}":"Z","\\mathcal{B}":"B","\\mathcal{E}":"E","\\mathcal{F}":"F","\\mathcal{M}":"M","\\mathcal{o}":"o","\\gimel":"ℷ","\\daleth":"ℸ","\\circ":"∘","\\cdot":"⋅","\\uplus":"⊎","\\sqcap":"⊓","\\sqcup":"⊔","\\land":"∧","\\vee":"∨","\\nless":"≮","\\nleq":"≰","\\ngt":"≯","\\ngeq":"≱","\\sim":"∼","\\simeq":"≃","\\nequiv":"≢","\\nsimeq":"≄","\\napprox":"≉","\\ncong":"≇","\\notin":"∉","\\subset":"⊂","\\supset":"⊃","\\subseteq":"⊆","\\supseteq":"⊇","\\prcue":"≺","\\succ":"≻","\\preccurlyeq":"≼","\\succcurlyeq":"≽","\\sqsubset":"⊏","\\sqsupset":"⊐","\\sqsubseteq":"⊑","\\sqsupseteq":"⊒","\\parallel":"∥","\\bot":"⊥","\\vdash":"⊢","\\dashv":"⊣","\\bowtie":"⋈","\\asymp":"≍","\\dotplus":"∔","\\dotminus":"∸","\\setminus":"∖","\\Cap":"⋒","\\Cup":"⋓","\\boxminus":"⊟","\\boxtimes":"⊠","\\boxdot":"⊡","\\boxplus":"⊞","\\divideontimes":"⋇","\\ltimes":"⋉","\\rtimes":"⋊","\\leftthreetimes":"⋋","\\rightthreetimes":"⋌","\\curlywedge":"⋏","\\curlyvee":"⋎","\\odash":"⊝","\\intercal":"⊺","\\oplus":"⊕","\\ominus":"⊖","\\otimes":"⊗","\\oslash":"⊘","\\odot":"⊙","\\oast":"⊛","\\ocirc":"⊚","\\dag":"†","\\ddag":"‡","\\star":"⋆","\\diamond":"⋄","\\wr":"≀","\\triangle":"△","\\bigwedge":"⋀","\\bigvee":"⋁","\\bigodot":"⨀","\\bigotimes":"⨂","\\bigoplus":"⨁","\\bigsqcap":"⨅","\\bigsqcup":"⨆","\\biguplus":"⨄","\\bigudot":"⨃","\\because":"∵","\\lll":"⋘","\\ggg":"⋙","\\leqq":"≦","\\geqq":"≧","\\lesssim":"≲","\\gtrsim":"≳","\\lessdot":"⋖","\\gtrdot":"⋗","\\lessgtr":"≶","\\lesseqgtr":"⋚","\\gtrless":"≷","\\gtreqless":"⋛","\\Doteq":"≑","\\fallingdotseq":"≒","\\risingdotseq":"≓","\\backsim":"∽","\\approxeq":"≊","\\backsimeq":"⋍","\\curlyeqprec":"⋞","\\curlyeqsucc":"⋟","\\precsim":"≾","\\succsim":"≿","\\eqless":"⋜","\\eqgtr":"⋝","\\vartriangleleft":"⊲","\\vartriangleright":"⊳","\\trianglelefteq":"⊴","\\trianglerighteq":"⊵","\\models":"⊨","\\Subset":"⋐","\\Supset":"⋑","\\Vdash":"⊩","\\Vvdash":"⊪","\\eqcirc":"≖","\\circeq":"≗","\\Deltaeq":"≜","\\bumpeq":"≏","\\Bumpeq":"≎","\\between":"≬","\\pitchfork":"⋔","\\doteq":"≐","\\get":"←","\\updownarrow":"↕","\\Leftarrow":"⇐","\\Rightarrow":"⇒","\\Uparrow":"⇑","\\Downarrow":"⇓","\\Leftrightarrow":"⇔","\\Updownarrow":"⇕","\\longleftarrow":"⟵","\\longrightarrow":"⟶","\\longleftrightarrow":"⟷","\\Longleftarrow":"⟸","\\Longrightarrow":"⟹","\\Longleftrightarrow":"⟺","\\nearrow":"↗","\\nwarrow":"↖","\\searrow":"↘","\\swarrow":"↙","\\nleftarrow":"↚","\\nrightarrow":"↛","\\nleftrightarrow":"↮","\\nLeftarrow":"⇍","\\nRightarrow":"⇏","\\nLeftrightarrow":"⇎","\\dashleftarrow":"⇠","\\dashrightarrow":"⇢","\\mapstoleft":"↤","\\mapsto":"↦","\\longmapstoleft":"⟻","\\longmapsto":"⟼","\\hookleftarrow":"↩","\\hookrightarrow":"↪","\\leftharpoonup":"↼","\\leftharpoondown":"↽","\\rightharpoonup":"⇀","\\rightharpoondown":"⇁","\\upharpoonleft":"↿","\\upharpoonright":"↾","\\downharpoonleft":"⇃","\\downharpoonright":"⇂","\\leftrightharpoons":"⇋","\\rlhar":"⇌","\\leftleftarrows":"⇇","\\rightrightarrows":"⇉","\\upuparrows":"⇈","\\downdownarrows":"⇊","\\leftrightarrows":"⇆","\\rightleftarrows":"⇄","\\looparrowleft":"↫","\\looparrowright":"↬","\\leftarrowtail":"↢","\\rightarrowtail":"↣","\\Lsh":"↰","\\Rsh":"↱","\\ldsh":"↲","\\rdsh":"↳","\\Lleftarrow":"⇚","\\Rrightarrow":"⇛","\\twoheadleftarrow":"↞","\\twoheadrightarrow":"↠","\\curvearrowleft":"↶","\\curvearrowright":"↷","\\circlearrowleft":"↺","\\circlearrowright":"↻","\\multimap":"⊸","\\leftrightwavearrow":"↭","\\leftwavearrow":"↜","\\rightwavearrow":"↝","\\leftsquigarrow":"⇜","\\nsim":"≁","\\nasymp":"≭","\\lneqq":"≨","\\gneqq":"≩","\\nprec":"⊀","\\nsucc":"⊁","\\npreccurlyeq":"⋠","\\nsucccurlyeq":"⋡","\\notni":"∌","\\nsub":"⊄","\\nsup":"⊅","\\nsubseteq":"⊈","\\nsupseteq":"⊉","\\supsetneq":"⊋","\\nsqsubseteq":"⋢","\\nsqsupseteq":"⋣","\\lnsim":"⋦","\\gnsim":"⋧","\\precnsim":"⋨","\\succnsim":"⋩","\\ntriangleleft":"⋪","\\ntriangleright":"⋫","\\ntrianglelefteq":"⋬","\\ntrianglerighteq":"⋭","\\nmid":"∤","\\nparallel":"∦","\\nvdash":"⊬","\\nvDash":"⊭","\\nVdash":"⊮","\\nVDash":"⊯","\\rightangle":"∟","\\angle":"∠","\\angmsd":"∡","\\angsph":"∢","\\angrtvb":"⊾","\\righttriangle":"⊿","\\epar":"⋕","\\colon":"∶","\\Colon":"∷","\\;":" "},xr={177:"\\pm",8734:"\\infty",8800:"\\neq",215:"\\times",247:"\\div",8733:"\\propto",8810:"\\ll",8811:"\\gg",8804:"\\le",8805:"\\geq",8723:"\\mp",8773:"\\cong",8776:"\\approx",8801:"\\equiv",8704:"\\forall",8705:"\\complement",8706:"\\partial",8730:"\\sqrt",8731:"\\cbrt",8732:"\\qdrt",8746:"\\cup",8745:"\\cap",8709:"\\emptyset",8457:"\\degf",8451:"\\degc",8711:"\\nabla",8707:"\\exists",8708:"\\nexists",8712:"\\in",8715:"\\ni",8592:"\\gets",8593:"\\uparrow",8594:"\\rightarrow",8595:"\\downarrow",8596:"\\leftrightarrow",8756:"\\therefore",172:"\\lnot",945:"\\alpha",946:"\\beta",947:"\\gamma",948:"\\delta",949:"\\varepsilon",1013:"\\epsilon",952:"\\theta",977:"\\vartheta",956:"\\mu",960:"\\pi",961:"\\rho",963:"\\sigma",964:"\\tau",966:"\\varphi",969:"\\omega",42:"\\ast",8729:"\\bullet",8942:"\\vdots",8943:"\\cdots",8945:"\\ddots",8501:"\\aleph",8502:"\\beth",8718:"\\qed",950:"\\zeta",951:"\\eta",953:"\\iota",954:"\\kappa",955:"\\lambda",957:"\\nu",958:"\\xi",982:"\\varpi",1009:"\\varrho",962:"\\varsigma",965:"\\upsilon",981:"\\phi",967:"\\chi",968:"\\psi",915:"\\Gamma",916:"\\Delta",920:"\\Theta",923:"\\Lambda",926:"\\Xi",928:"\\Pi",931:"\\Sigma",933:"\\Upsilon",934:"\\Phi",936:"\\Psi",937:"\\Omega",8463:"\\hbar",305:"\\imath",1008:"\\varkappa",8472:"\\wp",8503:"\\gimel",8504:"\\daleth",8728:"\\circ",8901:"\\cdot",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8743:"\\land",8744:"\\vee",8814:"\\nless",8816:"\\nleq",8815:"\\ngt",8817:"\\ngeq",8764:"\\sim",8771:"\\simeq",8802:"\\nequiv",8772:"\\nsimeq",8777:"\\napprox",8775:"\\ncong",8713:"\\notin",8834:"\\subset",8835:"\\supset",8838:"\\subseteq",8839:"\\supseteq",8826:"\\prcue",8827:"\\succ",8828:"\\preccurlyeq",8829:"\\succcurlyeq",8847:"\\sqsubset",8848:"\\sqsupset",8849:"\\sqsubseteq",8850:"\\sqsupseteq",8741:"\\parallel",8869:"\\bot",8866:"\\vdash",8867:"\\dashv",8904:"\\bowtie",8781:"\\asymp",8724:"\\dotplus",8760:"\\dotminus",8726:"\\setminus",8914:"\\Cap",8915:"\\Cup",8863:"\\boxminus",8864:"\\boxtimes",8865:"\\boxdot",8862:"\\boxplus",8903:"\\divideontimes",8905:"\\ltimes",8906:"\\rtimes",8907:"\\leftthreetimes",8908:"\\rightthreetimes",8911:"\\curlywedge",8910:"\\curlyvee",8861:"\\odash",8890:"\\intercal",8853:"\\oplus",8854:"\\ominus",8855:"\\otimes",8856:"\\oslash",8857:"\\odot",8859:"\\oast",8858:"\\ocirc",8224:"\\dag",8225:"\\ddag",8902:"\\star",8900:"\\diamond",8768:"\\wr",9651:"\\triangle",8896:"\\bigwedge",8897:"\\bigvee",10752:"\\bigodot",10754:"\\bigotimes",10753:"\\bigoplus",10757:"\\bigsqcap",10758:"\\bigsqcup",10756:"\\biguplus",10755:"\\bigudot",8757:"\\because",8920:"\\lll",8921:"\\ggg",8806:"\\leqq",8807:"\\geqq",8818:"\\lesssim",8819:"\\gtrsim",8918:"\\lessdot",8919:"\\gtrdot",8822:"\\lessgtr",8922:"\\lesseqgtr",8823:"\\gtrless",8923:"\\gtreqless",8785:"\\Doteq",8786:"\\fallingdotseq",8787:"\\risingdotseq",8765:"\\backsim",8778:"\\approxeq",8909:"\\backsimeq",8926:"\\curlyeqprec",8927:"\\curlyeqsucc",8830:"\\precsim",8831:"\\succsim",8924:"\\eqless",8925:"\\eqgtr",8882:"\\vartriangleleft",8883:"\\vartriangleright",8884:"\\trianglelefteq",8885:"\\trianglerighteq",8872:"\\models",8912:"\\Subset",8913:"\\Supset",8873:"\\Vdash",8874:"\\Vvdash",8790:"\\eqcirc",8791:"\\circeq",8796:"\\Deltaeq",8783:"\\bumpeq",8782:"\\Bumpeq",8812:"\\between",8916:"\\pitchfork",8784:"\\doteq",8597:"\\updownarrow",8656:"\\Leftarrow",8658:"\\Rightarrow",8657:"\\Uparrow",8659:"\\Downarrow",8660:"\\Leftrightarrow",8661:"\\Updownarrow",10229:"\\longleftarrow",10230:"\\longrightarrow",10231:"\\longleftrightarrow",10232:"\\Longleftarrow",10233:"\\Longrightarrow",10234:"\\Longleftrightarrow",8599:"\\nearrow",8598:"\\nwarrow",8600:"\\searrow",8601:"\\swarrow",8602:"\\nleftarrow",8603:"\\nrightarrow",8622:"\\nleftrightarrow",8653:"\\nLeftarrow",8655:"\\nRightarrow",8654:"\\nLeftrightarrow",8672:"\\dashleftarrow",8674:"\\dashrightarrow",8612:"\\mapstoleft",8614:"\\mapsto",10235:"\\longmapstoleft",10236:"\\longmapsto",8617:"\\hookleftarrow",8618:"\\hookrightarrow",8636:"\\leftharpoonup",8637:"\\leftharpoondown",8640:"\\rightharpoonup",8641:"\\rightharpoondown",8639:"\\upharpoonleft",8638:"\\upharpoonright",8643:"\\downharpoonleft",8642:"\\downharpoonright",8651:"\\leftrightharpoons",8652:"\\rlhar",8647:"\\leftleftarrows",8649:"\\rightrightarrows",8648:"\\upuparrows",8650:"\\downdownarrows",8646:"\\leftrightarrows",8644:"\\rightleftarrows",8619:"\\looparrowleft",8620:"\\looparrowright",8610:"\\leftarrowtail",8611:"\\rightarrowtail",8624:"\\Lsh",8625:"\\Rsh",8626:"\\ldsh",8627:"\\rdsh",8666:"\\Lleftarrow",8667:"\\Rrightarrow",8606:"\\twoheadleftarrow",8608:"\\twoheadrightarrow",8630:"\\curvearrowleft",8631:"\\curvearrowright",8634:"\\circlearrowleft",8635:"\\circlearrowright",8888:"\\multimap",8621:"\\leftrightwavearrow",8604:"\\leftwavearrow",8605:"\\rightwavearrow",8668:"\\leftsquigarrow",8769:"\\nsim",8813:"\\nasymp",8808:"\\lneqq",8809:"\\gneqq",8832:"\\nprec",8833:"\\nsucc",8928:"\\npreccurlyeq",8929:"\\nsucccurlyeq",8716:"\\notni",8836:"\\nsub",8837:"\\nsup",8840:"\\nsubseteq",8841:"\\nsupseteq",8843:"\\supsetneq",8930:"\\nsqsubseteq",8931:"\\nsqsupseteq",8934:"\\lnsim",8935:"\\gnsim",8936:"\\precnsim",8937:"\\succnsim",8938:"\\ntriangleleft",8939:"\\ntriangleright",8940:"\\ntrianglelefteq",8941:"\\ntrianglerighteq",8740:"\\nmid",8742:"\\nparallel",8876:"\\nvdash",8877:"\\nvDash",8878:"\\nVdash",8879:"\\nVDash",8735:"\\rightangle",8736:"\\angle",8737:"\\angmsd",8738:"\\angsph",8894:"\\angrtvb",8895:"\\righttriangle",8917:"\\epar",8758:"\\colon",8759:"\\Colon"},Tr=new RegExp("^\\p{L}$","u"),qr=new RegExp("^[\\p{L}\\p{Nd}]$","u"),Fr="^",_r="_",Or={"\\dot":775,"\\ddot":776,"\\dddot":8411,"\\hat":770,"\\widehat":770,"\\check":780,"\\acute":769,"\\grave":768,"\\breve":774,"\\widetilde":771,"\\bar":773,"\\vec":8407,"\\hvec":8401},Ar=["\\sin","\\cos","\\tan","\\cot","\\sec","\\csc","\\sinh","\\cosh","\\tanh","\\coth","\\sech","\\csch","\\arcsin","\\arccos","\\arctan","\\log","\\lim","\\min","\\max","\\ln"],kr={"\\sum":8721,"\\int":8747,"\\iint":8748,"\\iiint":8749,"\\oint":8750,"\\oiint":8751,"\\oiiint":8752,"\\cwint":8753,"\\coint":8754,"\\aoint":8755,"\\prod":8719,"\\amalg":8720,"\\bigcap":8898,"\\bigcup":8899,"\\bigwedge":8896,"\\bigvee":8897,"\\bigodot":10752,"\\bigotimes":10754,"\\bigoplus":10753,"\\biguplus":10756,"\\bigudot":10755},Cr={"\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉","\\langle":"〈","\\rangle":"〉",".":"","|":"|","(":"(",")":")","[":"[","]":"]","{":"{","}":"}"},Er={"\\mathbb":t.MathFontType.DoubleStruck,"\\mathfrak":t.MathFontType.Fraktur,"\\mathtt":t.MathFontType.Monospace,"\\mathsf":t.MathFontType.SansSerif,"\\mathcal":t.MathFontType.Script,"\\mathscr":t.MathFontType.Script},Rr={"\\mathbit":t.MathStyleType.BoldItalic,"\\mathbf":t.MathStyleType.Bold},jr=function(){function t(t,e,r,n){this.text=t,this.sty=e,this.scr=r,this.nor=n}return t}(),Lr=function(){function e(){this.latex="",this.pos=0,this.cur=null,this.useExisting=!1,this.current=null,this.roots=[],this.nor=!1}return e.prototype.populate=function(t,e){var r=this;this.latex=t,this.parseEquation(),e.suspendMutations(function(){return r.roots.forEach(function(t){return a(t,e.maths.add())})})},e.prototype.next=function(){if(this.pos>this.latex.length-1)return null;var t=this.latex[this.pos];if(this.pos++,this.cur=t,"\\"===t){for(;this.pos<this.latex.length&&(Tr.test(this.latex[this.pos])||";"===this.latex[this.pos]);)t+=this.latex[this.pos],this.pos++;this.cur=t}return this.cur},e.prototype.ensure=function(){return null===this.current&&(this.current=[],this.roots.push(this.current)),this.current},e.prototype.sub=function(t,e){if(null!==t){var r={latex:this.latex,current:this.current,pos:this.pos,cur:this.cur,use:this.useExisting};this.latex=t,this.current=e,this.pos=0,this.cur=null,this.useExisting=!1,this.parseEquation(),this.latex=r.latex,this.current=r.current,this.pos=r.pos,this.cur=r.cur,this.useExisting=r.use}},e.prototype.fill=function(t){var e=[];return this.sub(t,e),e},e.prototype.add=function(t){this.ensure().push({make:t})},e.prototype.setRun=function(t){if(0!==t.length){var e=this.ensure(),r=t.startsWith("\\")?i(t):t,n=e[e.length-1];n instanceof jr&&n.sty===this.sty&&n.scr===this.scr&&n.nor===this.nor?n.text+=r:e.push(new jr(r,this.sty,this.scr,this.nor))}},e.prototype.fallbackRun=function(t){this.setRun(this.latex.substring(t,this.pos))},e.prototype.equationString=function(){this.cur=this.next();var t=null,e=!1,r=!1;if("{"===this.cur){var n=this.group();e=n.ok,t=n.text}else r=!0;return r&&null!==this.cur&&1===this.cur.length&&(qr.test(this.cur)||" "===this.cur)?t=this.cur:e||(t=null),t},e.prototype.group=function(){if("{"!==this.cur)return{ok:!1,text:""};for(var t="",e=1;e>0&&this.pos<this.latex.length;)if(this.cur=this.next(),"{"===this.cur)e++,t+=this.cur;else if("}"===this.cur)1!==e&&(t+=this.cur),e--;else if("\\left"===this.cur){var r=this.delimiter();if(t+=r.text,!r.ok)return{ok:!1,text:t}}else t+=p(this.cur);return{ok:0===e,text:t}},e.prototype.squareGroup=function(){if("["!==this.cur)return null;for(var t="",e=1;e>0&&this.pos<this.latex.length;)this.cur=this.next(),"["===this.cur?(e++,t+=this.cur):"]"===this.cur?(1!==e&&(t+=this.cur),e--):t+=p(this.cur);return t},e.prototype.parseEquation=function(){for(;this.pos<this.latex.length||this.useExisting;)this.useExisting?this.useExisting=!1:this.cur=this.next(),this.dispatch(p(this.cur),this.cur)},e.prototype.dispatch=function(t,e){null===e?this.parseDefault():void 0!==Or[t]?this.parseAccent():"\\overline"===t||"\\underline"===t?this.parseBar():"\\box"===t?this.parseBox():"\\fbox"===t||"\\boxed"===t?this.parseBorderBox():"\\left"===t?this.parseDelimiter():"\\eqarray"===t?this.parseEqArray():"\\frac"===t||"\\sfrac"===t||"\\binom"===t?this.parseFraction():-1!==Ar.indexOf(t)?this.parseFunction():"\\overbrace"===t||"\\underbrace"===t?this.parseGroupChar():"\\begin"===t?this.parseMatrix():void 0!==kr[t]?this.parseNary():"\\sqrt"===t?this.parseRadical():"{"===t?this.parseGroupStart():void 0!==Rr[t]?this.parseFormat(t,"sty",Rr[t]):void 0!==Er[t]?this.parseFormat(t,"scr",Er[t]):"\\mathrm"===t?this.parseFormat(t,"nor",!0):this.parseDefault()},e.prototype.parseDefault=function(){var t=this.pos,e=p(this.cur);if(this.cur=this.next(),this.cur===Fr||this.cur===_r)return void this.parseScript(e,t-e.length);if(null!==this.cur&&(this.useExisting=!0)," "===this.cur){if("\\"===e)return;e.startsWith("\\")&&i(e)!==e&&(this.useExisting=!1)}this.setRun(e)},e.prototype.parseFormat=function(t,e,r){var n=this.pos;if(this.cur=this.next(),"{"!==this.cur)return this.setRun(t),void(this.useExisting=!0);var i=this.group();if(!i.ok)return void this.fallbackRun(n-t.length);var o={sty:this.sty,scr:this.scr,nor:this.nor};"sty"===e&&void 0===this.sty?this.sty=r:"scr"===e&&void 0===this.scr?this.scr=r:"nor"===e&&(this.nor=!0),this.sub(i.text,this.current),this.sty=o.sty,this.scr=o.scr,this.nor=o.nor},e.prototype.oneArg=function(){var t=this.pos,e=p(this.cur),r=this.equationString();return" "===r&&" "===this.cur&&(r=this.equationString()),{start:e,at:t,text:r}},e.prototype.parseAccent=function(){var e=this.oneArg(),r=e.start,n=e.at,i=e.text;if(null===i&&null!==this.cur)return void this.fallbackRun(n-r.length);var o=s(Or[r]),u=i;u&&u.startsWith("\\bar{")&&u.endsWith("}")&&o===s(773)&&(o=s(831),u=u.substring(5,u.length-1));var p=u?this.fill(u):[];this.add(function(e){var r=c(e,t.MathFunctionType.Accent);r.accentCharacter=o,a(p,r.equation)})},e.prototype.parseBar=function(){var e=this.oneArg(),r=e.start,n=e.at,i=e.text;if(null===i&&null!==this.cur)return void this.fallbackRun(n-r.length);if(this.cur=this.next(),this.cur===Fr||this.cur===_r)return void this.parseScript(r+"{"+p(i)+"}",n);null!==this.cur&&(this.useExisting=!0);var o=i?this.fill(i):[],u="\\overline"===r?"top":"bot";this.add(function(e){var r=c(e,t.MathFunctionType.Bar);r.barTop="top"===u,a(o,r.equation)})},e.prototype.parseBox=function(){var e=this.oneArg(),r=e.start,n=e.at,i=e.text;if(null===i&&null!==this.cur)return void this.fallbackRun(n-r.length);var o=i?this.fill(i):[];this.add(function(e){var r=c(e,t.MathFunctionType.Box);r.noBreak=!1,a(o,r.equation)})},e.prototype.parseBorderBox=function(){var e=this.oneArg(),r=e.start,n=e.at,i=e.text;if(null===i&&null!==this.cur)return void this.fallbackRun(n-r.length);if(this.cur=this.next(),this.cur===Fr||this.cur===_r)return void this.parseScript(r+"{"+p(i)+"}",n);null!==this.cur&&(this.useExisting=!0);var o=i?this.fill(i):[];this.add(function(e){return a(o,c(e,t.MathFunctionType.BorderBox).equation)})},e.prototype.delimiterChar=function(t){this.cur=this.next(),t.s+=p(this.cur),"\\"===this.cur&&(this.cur=this.next(),t.s+=p(this.cur));var e=p(this.cur);return Object.prototype.hasOwnProperty.call(Cr,e)?Cr[e]:null},e.prototype.delimiter=function(){var t={ok:!1,begin:null,end:null,sep:null,list:[],text:""},e={s:p(this.cur)},r=1;if(t.begin=this.delimiterChar(e),null===t.begin)return t.text=e.s,t;for(var n="";r>0&&this.pos<this.latex.length;){var i=p(this.next());if(e.s+=i,"\\left"===i)n+=i,r++;else if("\\right"===i){if(1===r){if(t.list.push(n.trim()),t.end=this.delimiterChar(e),null===t.end)return t.text=e.s,t}else n+=i;r--}else if("\\middle"===i)if(1===r){var o=this.delimiterChar(e);if(null===o)return t.text=e.s,t;null===t.sep&&(t.sep=o),t.list.push(n.trim()),n=""}else n+=i;else n+=i}return t.ok=0===r,t.text=e.s,t},e.prototype.parseDelimiter=function(){var e=this,r=this.pos,n=p(this.cur),i=this.delimiter();if(!i.ok)return void this.setRun(this.latex.substring(r-n.length,this.pos).replace(/\\ /g," "));if(this.cur=this.next(),this.cur===Fr||this.cur===_r)return void this.parseScript(i.text,r);null!==this.cur&&(this.useExisting=!0);var o=i.list.map(function(t){return e.fill(t)}),u={begChr:p(i.begin),endChr:p(i.end)};null!==i.sep&&(u.sepChr=i.sep),this.add(function(e){var r=c(e,t.MathFunctionType.Delimiter);r.beginCharacter=u.begChr,r.endCharacter=u.endChr,void 0!==u.sepChr&&(r.separator=u.sepChr),o.forEach(function(t){return a(t,r.equations.add())})})},e.prototype.splitEqArray=function(t){var e=[],r="";if(null!==t){for(var n=0;n<t.length;n++)"@"===t[n]?(t.substring(n).includes("&")||t.substring(n+1).includes("@"))&&(e.push(r.trim()),r=""):r+=t[n];e.push(r.trim())}return e},e.prototype.parseEqArray=function(){var e=this,r=this.pos,n=p(this.cur),i=this.equationString();if(null===i&&null!==this.cur)return void this.fallbackRun(r-n.length);var o=this.splitEqArray(i).map(function(t){return e.fill(t)});this.add(function(e){var r=c(e,t.MathFunctionType.EquationArray);0===o.length&&r.equations.add(),o.forEach(function(t){return a(t,r.equations.add())})})},e.prototype.parseFraction=function(){var e=this.pos,r=p(this.cur),n=this.equationString();" "===this.cur&&" "===n&&(n=this.equationString());var i="";if(" "===this.cur&&" "===n||null===this.cur&&null===n?n="":i=this.equationString(),null===n||null===i)return void this.fallbackRun(e-r.length);if(this.cur=this.next(),this.cur===Fr||this.cur===_r)return void this.parseScript(r+"{"+n+"}{"+i+"}",e);if(null!==this.cur&&(this.useExisting=!0),"\\binom"===r)return void this.binomial(n,i);var o="\\sfrac"===r?t.MathFractionType.SkewedFractionBar:t.MathFractionType.NormalFractionBar;this.fraction(o,n,i)},e.prototype.fraction=function(e,r,n){var i=""!==r?this.fill(r):[],o=""!==n?this.fill(n):[];this.add(function(r){var n=c(r,t.MathFunctionType.Fraction);n.fractionType=e,a(i,n.numerator),a(o,n.denominator)})},e.prototype.binomial=function(e,r){var n=""!==e?this.fill(e):[],i=""!==r?this.fill(r):[];this.add(function(e){var r=c(e,t.MathFunctionType.Delimiter);r.beginCharacter="(",r.endCharacter=")";var o=c(r.equations.add(),t.MathFunctionType.Fraction);o.fractionType=t.MathFractionType.NoFractionBar,a(n,o.numerator),a(i,o.denominator)})},e.prototype.parseNoFractionBar=function(e,r){if("\\atop"===this.cur){var n=this.equationString();if(this.cur===n&&(n=null),null===n)return void this.fallbackRun(r);this.fraction(t.MathFractionType.NoFractionBar,e,n)}},e.prototype.parseFunction=function(){var e=this.pos,r=p(this.cur),n=this.equationString(),i=null,o=null;if(this.cur!==Fr&&this.cur!==_r&&"\\below"!==this.cur||(i=this.cur===Fr?"sup":this.cur===_r?"sub":"limit",(o=this.equationString())===this.cur?null!==(n=this.equationString())&&n===this.cur&&(n="",this.useExisting=!0):n=this.equationString()),null===n)return void this.fallbackRun(e-r.length);var u,s=l(r),h=[];if("sup"===i||"sub"===i){var f=this.fill(s);this.regular(f);var y=null!==o?this.fill(o):[];u=function(e){var r=c(e.functionName,t.MathFunctionType.SubSuperscript);r.scriptType="sup"===i?t.MathScriptType.Superscript:t.MathScriptType.Subscript,a(f,r.equation),a(y,r.script)}}else if("limit"===i){var g=this.fill(s);this.regular(g);var m=null!==o?this.fill(o):[];u=function(e){var r=c(e.functionName,t.MathFunctionType.Limit);r.limitType=t.MathLimitType.LowerLimit,a(g,r.equation),a(m,r.limit)}}else{var d=this.current;this.current=h,this.setRun(s),this.current=d,this.regular(h),u=function(t){return a(h,t.functionName)}}this.ensure();var b=""!==n?this.fill(n):[];this.add(function(e){var r=c(e,t.MathFunctionType.Function);u(r),a(b,r.equation)})},e.prototype.regular=function(e){var r=e[0];r instanceof jr&&(r.sty=t.MathStyleType.Regular)},e.prototype.parseGroupChar=function(){var e=this.oneArg(),r=e.start,n=e.at,i=e.text;if(null===i&&null!==this.cur)return void this.fallbackRun(n-r.length);var o=i?this.fill(i):[],u="\\overbrace"===r;this.add(function(e){var r=c(e,t.MathFunctionType.GroupCharacter);u&&(r.groupCharacter=s(9182),r.hasAlignTop=!1,r.hasCharacterTop=!0),a(o,r.equation)})},e.prototype.isCurrent=function(t){return this.cur===t},e.prototype.parseLimit=function(e,r){if(this.isCurrent("\\below")){var n=this.equationString();if(" "===n&&this.isCurrent(" ")&&(n=this.equationString()),null===n)return void this.fallbackRun(r);var i=this.fill(e),o=" "!==n?this.fill(n):[];this.add(function(e){var r=c(e,t.MathFunctionType.Limit);r.limitType=t.MathLimitType.LowerLimit,a(i,r.equation),a(o,r.limit)})}},e.prototype.parseMatrix=function(){var e=this,r=this.pos,n=p(this.cur);if(this.cur=this.next(),"{"!==this.cur)return this.setRun(n),void(this.useExisting=!0);var i=this.group(),o=i.ok&&"matrix"===i.text?this.matrixRows():null;if(null===o)return void this.fallbackRun(r-n.length);if(this.cur=this.next(),this.cur===Fr||this.cur===_r)return void this.parseScript(this.latex.substring(r-n.length,this.pos-1),r);null!==this.cur&&(this.useExisting=!0);var u=o.rows.map(function(t){for(var r=[],n=0;n<o.maxCols;n++)r.push(n<t.length?e.fill(t[n]):[]);return r}),s=o.maxCols;this.add(function(e){for(var r=c(e,t.MathFunctionType.Matrix),n=0;n<s;n++)r.columns.add().horizontalAlignment=t.MathHorizontalAlignment.Center;u.forEach(function(t){var e=r.rows.add();t.forEach(function(t,r){return a(t,e.arguments.getItem(r))})})})},e.prototype.matrixRows=function(){for(var t=[],e=0,r=1,n="",i=[],o=function(){i.push(n),n="",e=Math.max(e,i.length),t.push(i),i=[]};r>0&&this.pos<this.latex.length;){for(this.cur=this.next();" "===this.cur;)this.cur=this.next();"\\"===this.cur&&(this.cur=this.next(),"\\"===this.cur&&(this.cur+="\\"));var a=this.cur;if("\\begin"===a){n+=a;u=p(this.cur=this.next());(c=this.group()).ok&&"matrix"===c.text&&r++,n+=u+c.text+p(this.cur)}else if("\\end"===a){var u=a+p(this.cur=this.next()),c=this.group();if(c.ok&&"matrix"===c.text&&1===r)0===i.length&&""===n||o(),r--;else{if(1===r)return null;n+=u+c.text+p(this.cur)}}else"&"===a?1===r?(i.push(n),n=""):n+=a:"\\\\"===a?1===r?o():n+=a:n+=p(a)}return 0===r?{rows:t,maxCols:e}:null},e.prototype.parseNary=function(){for(var e=this.pos,r=p(this.cur),n=this.equationString(),i=null,o=null,u=0;u<2&&(" "===n&&" "===this.cur);u++)n=this.equationString();if(this.cur===_r?i=this.equationString():this.cur===Fr&&(o=this.equationString()),null!==i?(n=this.equationString(),this.cur===Fr&&(o=this.equationString())):null!==o&&(n=this.equationString(),this.cur===_r&&(i=this.equationString())),null!==i&&null!==o&&(n=this.equationString()),null!==n&&(n=this.naryTail(n)),null===n&&null!==this.cur)return void this.fallbackRun(e-r.length);var h=null!==i?this.fill(i):[],l=null!==o?this.fill(o):[],f=" "!==n?this.fill(n):[],y=s(kr[r]);this.add(function(e){var r=c(e,t.MathFunctionType.NArray);r.nArrayCharacter=y,null===i&&(r.hideLowerLimit=!0),null===o&&(r.hideUpperLimit=!0),null===i&&null===o&&(r.subSuperscriptLimit=!1),a(h,r.subscript),a(l,r.superscript),a(f,r.equation)})},e.prototype.naryTail=function(t){var e=t,r=!1;"}"===this.cur&&h(e)&&(e="{"+e+"}",r=!0);var n=this.equationString(),i=!0;for(null!==n&&r?e+="{"+n+"}":null!==n||this.cur!==Fr&&this.cur!==_r?null!==n&&h(n)?e+="{"+n+"}":(this.useExisting=!0,i=!1,null!==n&&this.cur!==n&&(this.cur=n)):e+=this.cur+"{"+p(this.equationString())+"}";i;)null!==(n=this.equationString())||this.cur!==Fr&&this.cur!==_r?null!==n&&h(n)?e+="{"+n+"}":(this.useExisting=!0,i=!1):e+=this.cur+"{"+p(this.equationString())+"}";return e},e.prototype.parseRadical=function(){var e=this.pos,r=p(this.cur);this.cur=this.next()," "===this.cur&&(this.cur=this.next());var n=this.squareGroup();null!==n&&(this.cur=this.next());var i=null,o=!1,u=!1;if("{"===this.cur){var s=this.group();o=s.ok,i=s.text}else u=!0;if(u&&null!==this.cur&&1===this.cur.length&&(qr.test(this.cur)||" "===this.cur)&&(i=this.cur),!u&&!o)return void this.fallbackRun(e-r.length);if(this.cur=this.next(),this.cur===Fr||this.cur===_r)return void this.parseScript(this.latex.substring(e-r.length,this.pos-1),e);null!==this.cur&&(this.useExisting=!0);var h=!(null!==n&&null!==i),l=h?[]:this.fill(n),f=[];null!==i&&" "!==i?f=this.fill(i):null===i&&(this.useExisting=!0,null!==n&&this.setRun("["+n+"]")),this.add(function(e){var r=c(e,t.MathFunctionType.Radical);h&&(r.hideDegree=!0),a(l,r.degree),a(f,r.equation)})},e.prototype.parseGroupStart=function(){var t=this.pos-"{".length,e=this.group();return e.ok?h(e.text)?void this.parseLeftScript(e.text,t):(this.cur=this.next(),void(this.cur===Fr||this.cur===_r?this.parseScript(e.text,t):"\\below"===this.cur?this.parseLimit(e.text,t):"\\atop"===this.cur?this.parseNoFractionBar(e.text,t):(this.sub(e.text,this.current),this.useExisting=!0))):(this.setRun("{"),void this.sub(e.text,this.current))},e.prototype.parseScript=function(e,r){if(this.cur===Fr||this.cur===_r){var n=this.cur===Fr,i=this.equationString();if(null===i&&null!==this.cur)return void this.fallbackRun(r);if(null!==this.cur){if(this.cur=this.next(),n&&this.cur===_r||!n&&this.cur===Fr)return void this.parseRightScript(e,i,n,r);this.useExisting=!0}this.ensure();var o=this.fill(e),u=i?this.fill(i):[];this.add(function(e){var r=c(e,t.MathFunctionType.SubSuperscript);r.scriptType=n?t.MathScriptType.Superscript:t.MathScriptType.Subscript,a(o,r.equation),a(u,r.script)})}},e.prototype.parseRightScript=function(e,r,n,i){var o=this.equationString();if(null===o&&null!==this.cur)return void this.fallbackRun(i);var u=function(t){return null!==t&&" "!==t?t:null},s=this.fill(u(e)),p=this.fill(u(n?r:o)),h=this.fill(u(n?o:r));this.add(function(e){var r=c(e,t.MathFunctionType.RightSubSuperscript);a(s,r.equation),a(h,r.subscript),a(p,r.superscript)})},e.prototype.parseLeftScript=function(e,r){var n=null,i=null,o={latex:this.latex,pos:this.pos,cur:this.cur};this.latex=e,this.pos=1,e.startsWith(_r)?n=this.equationString():i=this.equationString(),null!==n?(this.cur=this.next(),this.cur===Fr&&(i=this.equationString())):null!==i&&(this.cur=this.next(),this.cur===_r&&(n=this.equationString())),this.latex=o.latex,this.pos=o.pos,this.cur=o.cur;var u=null;if(null!==n&&null!==i&&(u=this.equationString()),null===u&&null!==this.cur)return void this.fallbackRun(r);var s=function(t){return" "!==t?t:null},p=this.fill(s(n)),h=this.fill(s(i)),l=null!==u&&" "!==u?this.fill(u):[];this.add(function(e){var r=c(e,t.MathFunctionType.LeftSubSuperscript);a(p,r.subscript),a(h,r.superscript),a(l,r.equation)})},e}(),Br=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}},Nr=new RegExp("^\\p{L}$","u"),Dr={775:"\\dot",776:"\\ddot",8411:"\\dddot",770:"\\widehat",780:"\\check",768:"\\grave",774:"\\breve",771:"\\widetilde",769:"\\acute",773:"\\bar",831:"\\bar{\\bar",8407:"\\vec",8401:"\\hvec"},Hr={8721:"\\sum",8747:"\\int",8748:"\\iint",8749:"\\iiint",8750:"\\oint",8751:"\\oiint",8752:"\\oiiint",8753:"\\cwint",8754:"\\coint",8755:"\\aoint",8719:"\\prod",8720:"\\amalg",8898:"\\bigcap",8899:"\\bigcup",8896:"\\bigwedge",8897:"\\bigvee",10752:"\\bigodot",10754:"\\bigotimes",10753:"\\bigoplus",10756:"\\biguplus",10755:"\\bigudot"},Ir={40:"(",91:"[",123:"{",41:")",93:"]",125:"}",124:"|",9001:"\\langle",8968:"\\lceil",8970:"\\lfloor",9002:"\\rangle",8969:"\\rceil",8971:"\\rfloor"},Gr=(xe={},xe[t.MathFontType.DoubleStruck]="\\mathbb",xe[t.MathFontType.Fraktur]="\\mathfrak",xe[t.MathFontType.Monospace]="\\mathtt",xe[t.MathFontType.SansSerif]="\\mathsf",xe[t.MathFontType.Script]="\\mathscr",xe),zr=function(){function e(){this.out="",this.inFunctionName=!1}return e.prototype.generate=function(t){var e,r;try{for(var n=Br(t),i=n.next();!i.done;i=n.next()){var o=i.value;this.arg(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this.out},e.prototype.group=function(t){this.out+="{",this.arg(t),this.out+="}"},e.prototype.arg=function(t){if(t)for(var e=0;e<t.functions.count;e++)this.element(t.functions.getItem(e))},e.prototype.element=function(e){switch(e.type){case t.MathFunctionType.RunElement:this.run(e);break;case t.MathFunctionType.Accent:this.accent(e);break;case t.MathFunctionType.Bar:this.out+=e.barTop?"\\overline":"\\underline",this.group(e.equation);break;case t.MathFunctionType.Box:this.out+="\\box",this.group(e.equation);break;case t.MathFunctionType.BorderBox:this.out+="\\fbox",this.group(e.equation);break;case t.MathFunctionType.Fraction:this.fraction(e);break;case t.MathFunctionType.Function:this.func(e);break;case t.MathFunctionType.Delimiter:this.delimiter(e);break;case t.MathFunctionType.GroupCharacter:this.groupChar(e);break;case t.MathFunctionType.Limit:this.limit(e);break;case t.MathFunctionType.Matrix:this.matrix(e);break;case t.MathFunctionType.NArray:this.nary(e);break;case t.MathFunctionType.Radical:this.radical(e);break;case t.MathFunctionType.SubSuperscript:r=e;this.script(r.equation,r.scriptType===t.MathScriptType.Subscript?"_":"^",r.script);break;case t.MathFunctionType.LeftSubSuperscript:r=e;this.out+="{_",this.group(r.subscript),this.out+="^",this.group(r.superscript),this.out+="}",this.group(r.equation);break;case t.MathFunctionType.RightSubSuperscript:var r=e;this.group(r.equation),this.out+="_",this.group(r.subscript),this.out+="^",this.group(r.superscript);break;case t.MathFunctionType.EquationArray:var n=e;this.out+="\\eqarray{";for(var i=0;i<n.equations.count;i++)i>0&&(this.out+="@"),this.arg(n.equations.getItem(i));this.out+="}"}},e.prototype.accent=function(t){var e=t.accentCharacter.charCodeAt(0);this.out+=g(Dr[e],""),this.group(t.equation),831===e&&(this.out+="}")},e.prototype.fraction=function(e){var r=e.fractionType;r===t.MathFractionType.NormalFractionBar?this.out+="\\frac":r!==t.MathFractionType.SkewedFractionBar&&r!==t.MathFractionType.FractionInline||(this.out+="\\sfrac"),this.group(e.numerator),r===t.MathFractionType.NoFractionBar&&(this.out+="\\atop"),this.group(e.denominator)},e.prototype.func=function(t){this.inFunctionName=!0,this.out+="\\",this.arg(t.functionName),this.inFunctionName=!1,this.group(t.equation)},e.prototype.delimiterChar=function(t){this.out+=t.length>0?g(Ir[t.charCodeAt(0)],""):"."},e.prototype.delimiter=function(t){this.out+="\\left",this.delimiterChar(t.beginCharacter),this.out+=" ";for(var e=0;e<t.equations.count;e++)this.arg(t.equations.getItem(e)),e<t.equations.count-1&&(this.out+="\\middle",this.delimiterChar(t.separator),this.out+=" ");this.out+="\\right",this.delimiterChar(t.endCharacter)},e.prototype.groupChar=function(t){var e=t.groupCharacter.charCodeAt(0);9182===e?this.out+="\\overbrace":9183===e&&(this.out+="\\underbrace"),this.group(t.equation)},e.prototype.limit=function(t){this.inFunctionName||(this.out+="{"),this.arg(t.equation),this.inFunctionName||(this.out+="}"),this.out+="\\below",this.group(t.limit)},e.prototype.matrix=function(t){var e,r;this.out+="\\begin{matrix}";try{for(var n=Br(t.rowItems),i=n.next();!i.done;i=n.next()){for(var o=i.value,a=o.arguments.count,u=0;u<a;u++)this.arg(o.arguments.getItem(u)),u!==a-1&&(this.out+="&");this.out+="\\\\"}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}this.out+="\\end{matrix}"},e.prototype.nary=function(t){this.out+=g(Hr[t.nArrayCharacter.charCodeAt(0)],""),t.subscript.functions.count>0&&(this.out+="_",this.group(t.subscript)),t.superscript.functions.count>0&&(this.out+="^",this.group(t.superscript)),this.group(t.equation)},e.prototype.radical=function(t){this.out+="\\sqrt",t.degree.functions.count>0&&(this.out+="[",this.arg(t.degree),this.out+="]"),this.group(t.equation)},e.prototype.script=function(t,e,r){this.inFunctionName||(this.out+="{"),this.arg(t),this.inFunctionName||(this.out+="}"),this.out+=e,this.group(r)},e.prototype.run=function(e){var r,n,i=e.text,a=e.mathFormat,u=a.isExplicit(Ce.Style)?a.style:void 0,c=a.isExplicit(Ce.Script)?a.font:void 0,s=[];u===t.MathStyleType.BoldItalic?s.push("\\mathbit{"):u===t.MathStyleType.Bold&&s.push("\\mathbf{"),void 0!==c&&void 0!==Gr[c]&&s.push(Gr[c]+"{"),a.hasNormalText&&s.push("\\mathrm{");var p=0,h=!0,l=!1;try{for(var f=Br(i),y=f.next();!y.done;y=f.next()){var g=y.value,m=o(g,c===t.MathFontType.Script);void 0===m?(l&&Nr.test(g)&&(this.out+=" "),l=!1,h&&(this.out+=s.join(""),p=s.length,h=!1),this.out+=g):(this.out+="}".repeat(p),p=0,h=!0,this.out+=m,l=!0)}}catch(t){r={error:t}}finally{try{y&&!y.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}this.out+="}".repeat(p)},e}(),Ur=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Jr=function(e){function r(t){var r=e.call(this)||this;return r._suspended=0,r.adapter=t,r._maths=new ze(r),r}return Ur(r,e),Object.defineProperty(r.prototype,"maths",{get:function(){return this._maths},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"justification",{get:function(){return this.getProperty(Ce.Justification,function(){return t.MathJustification.CenterGroup})},set:function(t){this.setProperty(Ce.Justification,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasExplicitJustification",{get:function(){return this.isExplicit(Ce.Justification)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultMathCharacterFormat",{get:function(){return void 0!==this.adapter?this.adapter.createDefaultMathCharacterFormat(this):new Oe},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"latex",{get:function(){return m(this)},set:function(t){this.convertLatexToMath(t)},enumerable:!0,configurable:!0}),r.prototype.convertLatexToMath=function(t){var e=this;this.suspendMutations(function(){e._maths.clear(),y(t,e)}),this.notifyMutated()},r.prototype.setMutationListener=function(t){this._listener=t},r.prototype.suspendMutations=function(t){this._suspended++;try{t()}finally{this._suspended--}},r.prototype.rootMutated=function(){0===this._suspended&&void 0!==this._listener&&this._listener()},r}(_e),Vr=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Xr=function(e){function r(r,n,i){var o=e.call(this,i)||this;return o.type=t.MathFunctionType.Unknown,o._localName=r,o._xml=n,o}return Vr(r,e),Object.defineProperty(r.prototype,"localName",{get:function(){return this._localName},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"preservedXml",{get:function(){return this._xml},enumerable:!0,configurable:!0}),r}(De),Wr=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}},Zr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},$r=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Zr(arguments[e]));return t},Kr=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}},Qr=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}},Yr={roman:t.MathFontType.Roman,script:t.MathFontType.Script,fraktur:t.MathFontType.Fraktur,"double-struck":t.MathFontType.DoubleStruck,"sans-serif":t.MathFontType.SansSerif,monospace:t.MathFontType.Monospace},tn={p:t.MathStyleType.Regular,b:t.MathStyleType.Bold,i:t.MathStyleType.Italic,bi:t.MathStyleType.BoldItalic},en={bar:t.MathFractionType.NormalFractionBar,noBar:t.MathFractionType.NoFractionBar,skw:t.MathFractionType.SkewedFractionBar,lin:t.MathFractionType.FractionInline},rn={acc:lt(t.MathFunctionType.Accent,"accPr",["e"],Z),bar:lt(t.MathFunctionType.Bar,"barPr",["e"],$),borderBox:lt(t.MathFunctionType.BorderBox,"borderBoxPr",["e"],K),box:lt(t.MathFunctionType.Box,"boxPr",["e"],Q),f:lt(t.MathFunctionType.Fraction,"fPr",["num","den"],rt),func:lt(t.MathFunctionType.Function,"funcPr",["fName","e"]),groupChr:lt(t.MathFunctionType.GroupCharacter,"groupChrPr",["e"],nt),limLow:lt(t.MathFunctionType.Limit,"limLowPr",["e","lim"]),limUpp:lt(t.MathFunctionType.Limit,"limUppPr",["e","lim"]),nary:lt(t.MathFunctionType.NArray,"naryPr",["sub","sup","e"],it),phant:lt(t.MathFunctionType.Phantom,"phantPr",["e"],ot),rad:lt(t.MathFunctionType.Radical,"radPr",["deg","e"],at),sPre:lt(t.MathFunctionType.LeftSubSuperscript,"sPrePr",["sub","sup","e"]),sSub:lt(t.MathFunctionType.SubSuperscript,"sSubPr",["e","sub"]),sSubSup:lt(t.MathFunctionType.RightSubSuperscript,"sSubSupPr",["e","sub","sup"],ut),sSup:lt(t.MathFunctionType.SubSuperscript,"sSupPr",["e","sup"])},nn={left:t.MathJustification.Left,right:t.MathJustification.Right,center:t.MathJustification.Center,centerGroup:t.MathJustification.CenterGroup},on=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),an=function(t){function e(e,r,n){var i=this.constructor,o=t.call(this,e)||this;return o.name="MathmlValidationError",o.elementPath=r,o.constraintKind=n,Object.setPrototypeOf(o,i.prototype),o}return on(e,t),e}(Error),un=function(t){function e(e){var r=this.constructor;void 0===e&&(e="Math equation is preserve-only and cannot be mutated");var n=t.call(this,e)||this;return n.isPreserveOnly=!0,n.name="MathmlReadOnlyError",Object.setPrototypeOf(n,r.prototype),n}return on(e,t),e}(Error),cn=["bar","noBar","skw","lin"],sn=["center","top","bottom"],pn=["center","left","right"],hn=["centered","match"],ln=["double-struck","fraktur","monospace","roman","sans-serif","script"],fn=["i","bi","b","p"],yn=(Te={},Te[t.MathFunctionType.Accent]="accPr",Te[t.MathFunctionType.Bar]="barPr",Te[t.MathFunctionType.BorderBox]="borderBoxPr",Te[t.MathFunctionType.Box]="boxPr",Te[t.MathFunctionType.Delimiter]="dPr",Te[t.MathFunctionType.EquationArray]="eqArrPr",Te[t.MathFunctionType.Fraction]="fPr",Te[t.MathFunctionType.Function]="funcPr",Te[t.MathFunctionType.GroupCharacter]="groupChrPr",Te[t.MathFunctionType.Matrix]="mPr",Te[t.MathFunctionType.NArray]="naryPr",Te[t.MathFunctionType.Phantom]="phantPr",Te[t.MathFunctionType.Radical]="radPr",Te[t.MathFunctionType.LeftSubSuperscript]="sPrePr",Te[t.MathFunctionType.RightSubSuperscript]="sSubSupPr",Te),gn=["centerGroup","center","left","right"],mn=["left","right","center","centerGroup"],dn=["undOvr","subSup"],bn=["before","after","repeat"],vn=["--","-+","+-"],wn=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}},Pn=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Mn=[["leftMargin","lMargin"],["rightMargin","rMargin"],["defaultJustification","defJc"],["preSpacing","preSp"],["postSpacing","postSp"],["interSpacing","interSp"],["intraSpacing","intraSp"]];return t.BasicRun=Ae,t.BasicRunFormat=Oe,t.ExplicitPropertyStore=qe,t.MATH_EM=12,t.MATH_NAMESPACE=we,t.MATH_PREFIX_FALLBACKS=Pe,t.MathmlReadOnlyError=un,t.MathmlValidationError=an,t.OfficeMath=yr,t.OfficeMathAccent=mr,t.OfficeMathBar=dr,t.OfficeMathBorderBox=br,t.OfficeMathBox=vr,t.OfficeMathBreak=Re,t.OfficeMathBreakCollection=je,t.OfficeMathCollection=ze,t.OfficeMathDelimiter=Je,t.OfficeMathEquationArray=Ve,t.OfficeMathFormat=Be,t.OfficeMathFraction=Xe,t.OfficeMathFunction=We,t.OfficeMathFunctionBase=De,t.OfficeMathFunctionCollection=lr,t.OfficeMathGroupCharacter=wr,t.OfficeMathLeftScript=Ye,t.OfficeMathLimit=Ze,t.OfficeMathMatrix=pr,t.OfficeMathMatrixColumn=or,t.OfficeMathMatrixColumnArguments=ir,t.OfficeMathMatrixColumnCollection=cr,t.OfficeMathMatrixRow=rr,t.OfficeMathMatrixRowArguments=er,t.OfficeMathMatrixRowCollection=ur,t.OfficeMathNArray=$e,t.OfficeMathParagraph=Jr,t.OfficeMathPhantom=Pr,t.OfficeMathRadical=Mr,t.OfficeMathRightScript=Qe,t.OfficeMathRunElement=Ie,t.OfficeMathScript=Ke,t.OfficeMathUnknownElement=Xr,t.OwnedCollection=ke,t.OwnerHolder=_e,t.WML_TRANSITIONAL_NAMESPACE=Me,t.XML_NAMESPACE=Se,t.attrValue=L,t.attrValueNs=B,t.checkRowSpacing=r,t.childElements=j,t.cloneOfficeMath=T,t.cloneOfficeMathParagraph=q,t.createElement=E,t.createMathFunction=n,t.createText=R,t.getLatexSymbol=i,t.getSymbolLatex=o,t.mathSettingsToOpenXml=ve,t.mathToLatex=m,t.officeMathEquals=k,t.officeMathParagraphEquals=C,t.parseLatexIntoMathParagraph=y,t.parseLatexToMath=f,t.parseMathSettings=be,t.parseOfficeMathParagraph=Tt,t.serializeOfficeMathParagraph=ce,t.textContent=N,t}({}),this.ejs=ej;
|
|
11
11
|
//# sourceMappingURL=ej2-office-common.min.js.map
|