@pdftron/webviewer 11.9.0 → 11.9.1
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/package.json +1 -1
- package/public/core/19.chunk.js +7 -7
- package/public/core/20.chunk.js +1 -1
- package/public/core/21.chunk.js +1 -1
- package/public/core/22.chunk.js +7 -7
- package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
- package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
- package/public/core/AzurePartRetriever.chunk.js +2 -2
- package/public/core/ExternalAnnotationMerger.chunk.js +14 -14
- package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
- package/public/core/HttpPartRetriever.chunk.js +12 -12
- package/public/core/IOSPartRetriever.chunk.js +2 -2
- package/public/core/LocalPartRetriever.chunk.js +4 -4
- package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
- package/public/core/PDFInfoVersion1.chunk.js +12 -12
- package/public/core/SelectionInfoOld.chunk.js +14 -14
- package/public/core/StreamingPartRetriever.chunk.js +9 -9
- package/public/core/WebDBPartRetriever.chunk.js +2 -2
- package/public/core/WebViewerServerPartRetriever.chunk.js +43 -43
- package/public/core/WinRTPartRetriever.chunk.js +2 -2
- package/public/core/legacyOffice/WebB2XOfficeWorker.br.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorker.gz.js.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorker.gz.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.br.wasm +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.js.mem +0 -0
- package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.wasm +0 -0
- package/public/core/office/WebOfficeWorker.br.js.mem +0 -0
- package/public/core/office/WebOfficeWorker.br.mem +0 -0
- package/public/core/office/WebOfficeWorker.gz.js.mem +0 -0
- package/public/core/office/WebOfficeWorker.gz.mem +0 -0
- package/public/core/office/WebOfficeWorkerWasm.br.wasm +0 -0
- package/public/core/office/WebOfficeWorkerWasm.gz.js.mem +0 -0
- package/public/core/office/WebOfficeWorkerWasm.gz.wasm +0 -0
- package/public/core/officeEditor/OfficeEditorWorkerWasm.br.wasm +0 -0
- package/public/core/pdf/full/PDFNetC.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetC.br.mem +0 -0
- package/public/core/pdf/full/PDFNetC.gz.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/full/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.js +1 -1
- package/public/core/pdf/full/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.js +1 -1
- package/public/core/pdf/full/optimized/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/lean/PDFNetC.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetC.br.mem +0 -0
- package/public/core/pdf/lean/PDFNetC.gz.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.js +1 -1
- package/public/core/pdf/lean/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.js +1 -1
- package/public/core/pdf/lean/optimized/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pikaday.chunk.js +17 -17
- package/public/core/vendors.ascii85.chunk.js +6 -6
- package/public/core/vendors.pako.chunk.js +81 -81
- package/public/core/webviewer-core.min.js +4485 -4475
- package/public/ui/webviewer-ui.min.js +2 -2
- package/public/ui/webviewer-ui.min.js.map +1 -1
- package/types.d.ts +22 -7
- package/webviewer.min.js +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=r.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var l in o)n.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){var o=n(89),r=n(243).EXISTS,i=n(70),a=n(104).f,l=Function.prototype,c=i(l.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(u.exec);o&&!r&&a(l,"name",{configurable:!0,get:function(){try{return s(u,c(this))[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(58),r=n(334);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){var o=n(70),r=n(112),i=Date.prototype,a=o(i.toString),l=o(i.getTime);"Invalid Date"!=String(new Date(NaN))&&r(i,"toString",(function(){var e=l(this);return e==e?a(this):"Invalid Date"}))},function(e,t,n){"use strict";var o=n(243).PROPER,r=n(112),i=n(99),a=n(97),l=n(71),c=n(439),u=RegExp.prototype.toString,s=l((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=o&&"toString"!=u.name;(s||d)&&r(RegExp.prototype,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},function(e,t,n){n(58)({target:"Array",stat:!0},{isArray:n(215)})},function(e,t,n){var o=n(58),r=n(529);o({target:"Array",stat:!0,forced:!n(333)((function(e){Array.from(e)}))},{from:r})},function(e,t,n){"use strict";var o=n(58),r=n(52),i=n(215),a=n(331),l=n(100),c=n(190),u=n(113),s=n(139),d=n(214),p=n(83),f=n(282),m=n(216),h=f("slice"),b=p("species"),g=r.Array,y=Math.max;o({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,o,r,p=s(this),f=u(p),h=c(e,f),v=c(void 0===t?f:t,f);if(i(p)&&(n=p.constructor,(a(n)&&(n===g||i(n.prototype))||l(n)&&null===(n=n[b]))&&(n=void 0),n===g||void 0===n))return m(p,h,v);for(o=new(void 0===n?g:n)(y(v-h,0)),r=0;h<v;h++,r++)h in p&&d(o,r,p[h]);return o.length=r,o}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return s}));var o;n(9),n(10),n(14),n(27),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(31),n(13);function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var l=function(){var e,t;if(!window.isApryseWebViewerWebComponent)return document;if(o)return o;if(0===(t=document.getElementsByTagName("apryse-webviewer")).length&&(t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,o=[];return n.querySelectorAll(t).forEach((function(e){return o.push(e)})),n.querySelectorAll("*").forEach((function(n){n.shadowRoot&&o.push.apply(o,r(e(t,n.shadowRoot)))})),o}("apryse-webviewer")),null!==(e=t)&&void 0!==e&&e.length){var n,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}(t);try{for(a.s();!(n=a.n()).done;){var l=n.value.shadowRoot;if(l&&!l.mounted)return l.mounted=!0,o=l}}catch(e){a.e(e)}finally{a.f()}}console.error("Cannot find root node")},c=function(){var e=l().host;return e?e.getAttribute("id"):"default"},u=function(){return window.isApryseWebViewerWebComponent?o?o.host:l().host:window},s=function(){return window.isApryseWebViewerWebComponent?u().getBoundingClientRect():window.document.documentElement.getBoundingClientRect()};t.a=l},function(e,t,n){var o=n(58),r=n(89),i=n(104).f;o({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!r},{defineProperty:i})},function(e,t,n){"use strict";n.d(t,"l",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"n",(function(){return a})),n.d(t,"q",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"v",(function(){return d})),n.d(t,"A",(function(){return p})),n.d(t,"y",(function(){return f})),n.d(t,"B",(function(){return m})),n.d(t,"k",(function(){return h})),n.d(t,"j",(function(){return b})),n.d(t,"x",(function(){return g})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return v})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return E})),n.d(t,"m",(function(){return C})),n.d(t,"o",(function(){return O})),n.d(t,"g",(function(){return T})),n.d(t,"s",(function(){return S})),n.d(t,"t",(function(){return x})),n.d(t,"c",(function(){return A})),n.d(t,"r",(function(){return _})),n.d(t,"C",(function(){return P})),n.d(t,"D",(function(){return k})),n.d(t,"e",(function(){return L})),n.d(t,"u",(function(){return M})),n.d(t,"z",(function(){return j})),n.d(t,"w",(function(){return I}));n(84),n(44),n(8);var o=n(5),r={MAX:1638,MIN:2},i={Single:1,1.15:1.15,1.5:1.5,Double:2},a={Left:"left",Center:"center",Right:"right",Both:"both"},l={Ordered:"ordered",Unordered:"unordered"},c=11,u=new window.Core.Annotations.Color(0,0,0,1),s=window.Core.Document.OfficeEditor.ListStylePresets,d=[{enum:s.BULLET,img:"icon-office-editor-list-style-bullet"},{enum:s.BULLET_SQUARE,img:"icon-office-editor-list-style-square"},{enum:s.SQUARE_BULLET,img:"icon-office-editor-list-style-square-bullet"},{enum:s.DIAMOND,img:"icon-office-editor-list-style-diamond"},{enum:s.CHECK,img:"icon-office-editor-list-style-check"},{enum:s.ARROW,img:"icon-office-editor-list-style-arrow"}],p=[{enum:s.NUMBER_LATIN_ROMAN_1,img:"icon-office-editor-list-style-number-latin-1"},{enum:s.NUMBER_DECIMAL,img:"icon-office-editor-list-style-number-decimal"},{enum:s.NUMBER_LATIN_ROMAN_2,img:"icon-office-editor-list-style-number-latin-2"},{enum:s.LATIN_ROMAN,img:"icon-office-editor-list-style-latin-roman"},{enum:s.ROMAN_LATIN_NUMBER,img:"icon-office-editor-list-style-roman-latin"}],f="officeEditorTrackedChangeUID",m=window.Core.Document.OfficeEditor.EditMode,h=window.Core.Document.OfficeEditor.EditingStreamType,b=window.Core.Document.OfficeEditor.EditOperationSource,g="office-editor",y=["toggleNotesButton","toolsHeader","viewControlsButton","textPopup","marqueeToolButton",o.a.OUTLINE_PANEL_BUTTON,o.a.OUTLINE_PANEL,o.a.LEFT_PANEL_BUTTON,o.a.ANNOTATION_POPUP,o.a.NotesPanel.DefaultHeader.FILTER_ANNOTATION_BUTTON,o.a.ANNOTATION_NOTE_CONNECTOR_LINE,o.a.ANNOTATION_CONTENT_OVERLAY],v=[o.a.OFFICE_EDITOR_TOOLS_HEADER,o.a.INLINE_COMMENT_POPUP,o.a.SEARCH_PANEL_REPLACE_CONTAINER],w=["8","9","10","11","12","14","18","24","30","36","48","60","72"],E={"Normal Text":{fontSize:"11pt",color:"#000000"},Title:{fontSize:"26pt",color:"#000000"},Subtitle:{fontSize:"15pt",color:"#666666"},"Heading 1":{fontSize:"20pt",color:"#000000"},"Heading 2":{fontSize:"16pt",color:"#000000"},"Heading 3":{fontSize:"14pt",color:"#434343"},"Heading 4":{fontSize:"12pt",color:"#666666"},"Heading 5":{fontSize:"11pt",color:"#666666"}},C=100,O=window.Core.Document.OfficeEditor.LayoutUnits,T=window.Core.Document.OfficeEditor.EditOperationSource,S={CM:"cm",MM:"mm",INCH:'"',PHYSICAL_POINT:"pt"},x={NORMAL:2.54,NARROW:1.27,MODERATE:1.905,WIDE:5.08},A={WIDTH:"width",SPACING:"spacing"},_={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},P={COLUMN:"column",MARGIN:"margin"},k=window.Core.Document.OfficeEditor.VERTICAL_MARGIN_LIMIT,L=window.Core.Document.OfficeEditor.DEFAULT_COLUMN_SPACING_IN_POINTS,M=window.Core.Document.OfficeEditor.MINIMUM_COLUMN_WIDTH_IN_POINTS,j="officeEditor.",I=["jpg","jpeg","png","bmp"].map((function(e){return".".concat(e)})).join(", ")},function(e,t,n){var o=n(58),r=n(516);o({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(e,t,n){"use strict";var o=n(58),r=n(511);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s}));var o;n(9),n(10),n(14),n(12),n(24),n(8),n(11),n(13),n(32),n(33),n(30);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=264,l=14,c={OUTLINE:"outlinesPanel",SIGNATURE:"signaturePanel",BOOKMARKS:"bookmarksPanel",FILE_ATTACHMENT:"fileAttachmentPanel",THUMBNAIL:"thumbnailsPanel",LAYERS:"layersPanel",TEXT_EDITING:"textEditingPanel",CHANGE_LIST:"changeListPanel",STYLE:"stylePanel",REDACTION:"redactionPanel",SEARCH:"searchPanel",NOTES:"notesPanel",INDEX:"indexPanel",TABS:"tabPanel",SIGNATURE_LIST:"signatureListPanel",RUBBER_STAMP:"rubberStampPanel",PORTFOLIO:"portfolioPanel",FORM_FIELD:"formFieldPanel"},u=(i(i(i(i(i(i(i(i(i(i(o={},c.OUTLINE,{icon:"icon-panel-outlines",title:"component.outlinesPanel"}),c.SIGNATURE,{icon:"icon-tool-signature",title:"component.signaturePanel"}),c.BOOKMARKS,{icon:"ic-bookmark",title:"component.bookmarksPanel"}),c.FILE_ATTACHMENT,{icon:"ic_fileattachment_24px",title:"component.attachmentPanel"}),c.THUMBNAIL,{icon:"icon-panel-thumbnail-line",title:"component.thumbnailsPanel"}),c.LAYERS,{icon:"ic-layer",title:"component.layersPanel"}),c.TEXT_EDITING,{icon:"icon-content-edit",title:"action.contentEditMode"}),c.CHANGE_LIST,{icon:"icon-header-compare",title:"component.comparePanel"}),c.STYLE,{icon:"icon-style-panel-toggle",title:"action.style"}),c.REDACTION,{icon:"icon-redact-panel",title:"annotation.redact"}),i(i(i(i(i(o,c.SEARCH,{icon:"icon-header-search",title:"component.searchPanel"}),c.NOTES,{icon:"icon-header-chat-line",title:"component.notesPanel"}),c.PORTFOLIO,{icon:"icon-pdf-portfolio",title:"portfolio.portfolioPanelTitle"}),c.SIGNATURE_LIST,{icon:"icon-tool-signature",title:"signatureListPanel.header"}),c.RUBBER_STAMP,{icon:"icon-tool-stamp-line",title:"annotation.rubberStamp"})),s={FULL_SIZE:"full-size",HALF_SIZE:"half-size",SMALL_SIZE:"small-size"}},function(e,t,n){"use strict";var o=n(142),r=n(338);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}var a=n(170),l=n(171),c=n(255),u=n(293),s=n(181),d=n(294),p={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},f=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.init(t,n)}return Object(l.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||p,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),m=function(){function e(){Object(a.a)(this,e),this.observers={}}return Object(l.a)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(this.observers[e]){var r=[].concat(this.observers[e]);r.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function h(){var e,t,n=new Promise((function(n,o){e=n,t=o}));return n.resolve=e,n.reject=t,n}function b(e){return null==e?"":""+e}function g(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function y(e,t,n){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:o(i.shift())}}function v(e,t,n){var o=y(e,t,Object);o.obj[o.k]=n}function w(e,t){var n=y(e,t),o=n.obj,r=n.k;if(o)return o[r]}function E(e,t,n){var o=w(e,n);return void 0!==o?o:w(t,n)}function C(e,t,n){for(var o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?n&&(e[o]=t[o]):C(e[o],t[o],n):e[o]=t[o]);return e}function O(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function S(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return T[e]})):e}var x="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(a.a)(this,t),n=Object(c.a)(this,Object(u.a)(t).call(this)),x&&m.call(Object(s.a)(n)),n.data=e||{},n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(i=e.split(".")),w(this.data,i)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=t,t=(a=e.split("."))[1]),this.addNamespaces(t),v(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},l=[e,t];e.indexOf(".")>-1&&(o=n,n=t,t=(l=e.split("."))[1]),this.addNamespaces(t);var c=w(this.data,l)||{};o?C(c,n,r):c=i({},c,n),v(this.data,l,c),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(m),_={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))})),t}},P={},k=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(this,t),n=Object(c.a)(this,Object(u.a)(t).call(this)),x&&m.call(Object(s.a)(n)),g(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Object(s.a)(n)),n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=f.create("translator"),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:r};var a=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift()),e=a.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,n,r){var a=this;if("object"!==Object(o.a)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var l=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],n),u=c.key,s=c.namespaces,d=s[s.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(f){var m=n.nsSeparator||this.options.nsSeparator;return d+m+u}return u}var h=this.resolve(e,n),b=h&&h.res,g=h&&h.usedKey||u,y=h&&h.exactUsedKey||u,v=Object.prototype.toString.apply(b),w=["[object Number]","[object Function]","[object RegExp]"],E=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,O="string"!=typeof b&&"boolean"!=typeof b&&"number"!=typeof b;if(C&&b&&O&&w.indexOf(v)<0&&("string"!=typeof E||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,b,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(l){var T="[object Array]"===v,S=T?[]:{},x=T?y:g;for(var A in b)if(Object.prototype.hasOwnProperty.call(b,A)){var _="".concat(x).concat(l).concat(A);S[A]=this.translate(_,i({},n,{joinArrays:!1,ns:s})),S[A]===_&&(S[A]=b[A])}b=S}}else if(C&&"string"==typeof E&&"[object Array]"===v)(b=b.join(E))&&(b=this.extendTranslation(b,e,n,r));else{var P=!1,k=!1,L=void 0!==n.count&&"string"!=typeof n.count,M=t.hasDefaultValue(n),j=L?this.pluralResolver.getSuffix(p,n.count):"",I=n["defaultValue".concat(j)]||n.defaultValue;!this.isValidLookup(b)&&M&&(P=!0,b=I),this.isValidLookup(b)||(k=!0,b=u);var R=M&&I!==b&&this.options.updateMissing;if(k||P||R){if(this.logger.log(R?"updateKey":"missingKey",p,d,u,R?I:b),l){var N=this.resolve(u,i({},n,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var B=0;B<F.length;B++)D.push(F[B]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var H=function(e,t,o){a.options.missingKeyHandler?a.options.missingKeyHandler(e,d,t,R?o:b,R,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,d,t,R?o:b,R,n),a.emit("missingKey",e,d,t,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?D.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){H([e],u+t,n["defaultValue".concat(t)]||I)}))})):H(D,u,I))}b=this.extendTranslation(b,e,n,h,r),k&&b===u&&this.options.appendNamespaceToMissingKey&&(b="".concat(d,":").concat(u)),k&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(b))}return b}},{key:"extendTranslation",value:function(e,t,n,o,r){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var l,c=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var u=e.match(this.interpolator.nestingRegexp);l=u&&u.length}var s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s=i({},this.options.interpolation.defaultVariables,s)),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),c){var d=e.match(this.interpolator.nestingRegexp);l<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return r&&r[0]===o[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):a.translate.apply(a,o.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,f="string"==typeof p?[p]:p;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=_.handle(f,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:o},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,o,r,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,l),u=c.key;n=u;var s=c.namespaces;a.options.fallbackNS&&(s=s.concat(a.options.fallbackNS));var d=void 0!==l.count&&"string"!=typeof l.count,p=void 0!==l.context&&"string"==typeof l.context&&""!==l.context,f=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);s.forEach((function(e){a.isValidLookup(t)||(i=e,!P["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(P["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!a.isValidLookup(t)){r=n;var i,c,s=u,f=[s];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(f,u,n,e,l);else d&&(i=a.pluralResolver.getSuffix(n,l.count)),d&&p&&f.push(s+i),p&&f.push(s+="".concat(a.options.contextSeparator).concat(l.context)),d&&f.push(s+=i);for(;c=f.pop();)a.isValidLookup(t)||(o=c,t=a.getResource(n,e,c,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}(m);function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}var M=function(){function e(t){Object(a.a)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=f.create("languageUtils")}return Object(l.a)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=L(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var o=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(o)||(t=o)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var o=n.getLanguagePartFromCode(e);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(o))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),o.forEach((function(e){r.indexOf(e)<0&&i(n.formatLanguageCode(e))})),r}}]),e}(),j=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function R(){var e={};return j.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:I[t.fc]}}))})),e}var N=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.languageUtils=t,this.options=n,this.logger=f.create("pluralResolver"),this.rules=R()}return Object(l.a)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,o=this.getRule(e);if(o){var r=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),i=o.numbers[r];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),D=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e),this.logger=f.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Object(l.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:S,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?O(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?O(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?O(t.nestingPrefix):t.nestingPrefixEscaped||O("$t("),this.nestingSuffix=t.nestingSuffix?O(t.nestingSuffix):t.nestingSuffixEscaped||O(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,l=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var s=function(e){if(e.indexOf(l.formatSeparator)<0){var r=E(t,c,e);return l.alwaysFormat?l.format(r,void 0,n):r}var i=e.split(l.formatSeparator),a=i.shift().trim(),u=i.join(l.formatSeparator).trim();return l.format(E(t,c,a),u,n,o)};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?u(l.escape(e)):u(e)}}].forEach((function(t){for(a=0;r=t.regex.exec(e);){if(void 0===(i=s(r[1].trim())))if("function"==typeof d){var n=d(e,r,o);i="string"==typeof n?n:""}else{if(p){i=r[0];continue}l.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=b(i));if(e=e.replace(r[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,o,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=i({},a);function c(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var o=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(o[1]);e=o[0],r=(r=this.interpolate(r,l)).replace(/'/g,'"');try{l=JSON.parse(r),t&&(l=i({},t,l))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete l.defaultValue,e}for(l.applyPostProcessor=!1,delete l.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],s=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),u=d,s=!0}if((o=t(c.call(this,n[1].trim(),l),l))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=b(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),s&&(o=u.reduce((function(e,t){return r.format(e,t,a.lng,a)}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();var F=function(e){function t(e,n,o){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(a.a)(this,t),r=Object(c.a)(this,Object(u.a)(t).call(this)),x&&m.call(Object(s.a)(r)),r.backend=e,r.store=n,r.services=o,r.languageUtils=o.languageUtils,r.options=i,r.logger=f.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(o,i.backend,i),r}return Object(d.a)(t,e),Object(l.a)(t,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i=[],a=[],l=[],c=[];return e.forEach((function(e){var o=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[l]=2:r.state[l]<0||(1===r.state[l]?a.indexOf(l)<0&&a.push(l):(r.state[l]=1,o=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),c.indexOf(t)<0&&c.push(t)))})),o||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:o}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,n){var o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var o,l,c,u,s,d;o=n.loaded,l=i,u=y(o,[r],Object),s=u.obj,d=u.k,s[d]=s[d]||[],c&&(s[d]=s[d].concat(l)),c||s[d].push(l),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(l,c){l&&c&&r<5?setTimeout((function(){o.read.call(o,e,t,n,r+1,2*i,a)}),i):a(l,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(function(o,a){o&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(r," failed"),o),!o&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,o,a)}))}},{key:"saveMissing",value:function(e,t,n,o,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,i({},a,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),t}(m);function B(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Object(o.a)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Object(o.a)(e[2])||"object"===Object(o.a)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function H(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function V(){}var U=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Object(a.a)(this,t),e=Object(c.a)(this,Object(u.a)(t).call(this)),x&&m.call(Object(s.a)(e)),e.options=H(n),e.services={},e.logger=f,e.modules={external:[]},o&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,o),Object(c.a)(e,Object(s.a)(e));setTimeout((function(){e.init(n,o)}),0)}return e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},B(),this.options,H(t)),this.format=this.options.interpolation.format,n||(n=V),!this.options.isClone){this.modules.logger?f.init(o(this.modules.logger),this.options):f.init(null,this.options);var r=new M(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=f,a.resourceStore=this.store,a.languageUtils=r,a.pluralResolver=new N(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new D(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new F(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))})),this.modules.languageDetector&&(a.languageDetector=o(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=o(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new k(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=h(),d=function(){var t=function(t,o){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(o),n(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V,o=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return o();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(r)a(r);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(e,t,n){var o=h();return e||(e=this.languages),t||(t=this.options.ns),n||(n=V),this.services.backendConnector.reload(e,t,(function(e){o.resolve(),n(e)})),o}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&_.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var o=h();this.emit("languageChanging",e);var r=function(e){var r="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);r&&(n.language||(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r)),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,(function(e){!function(e,r){r?(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,o.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var a;if("object"!==Object(o.a)(r)){for(var l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];a=n.options.overloadTranslationOptionHandler([t,r].concat(c))}else a=i({},r);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===o||2===o};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!this.hasResourceBundle(o,e)||(!this.services.backendConnector.backend||!(!a(o,e)||r&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=h();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),t&&t(e)})),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=h();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter((function(e){return o.indexOf(e)<0}));return r.length?(this.options.preload=o.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V,r=i({},this.options,n,{isClone:!0}),a=new t(r),l=["store","services","language"];return l.forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new k(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];a.emit.apply(a,[e].concat(n))})),a.init(r,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(m));t.a=U},function(e,t,n){"use strict";var o=n(89),r=n(52),i=n(70),a=n(278),l=n(112),c=n(95),u=n(339),s=n(166),d=n(239),p=n(422),f=n(71),m=n(189).f,h=n(158).f,b=n(104).f,g=n(533),y=n(340).trim,v=r.Number,w=v.prototype,E=r.TypeError,C=i("".slice),O=i("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:S(t)},S=function(e){var t,n,o,r,i,a,l,c,u=p(e,"number");if(d(u))throw E("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=y(u),43===(t=O(u,0))||45===t){if(88===(n=O(u,2))||120===n)return NaN}else if(48===t){switch(O(u,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+u}for(a=(i=C(u,2)).length,l=0;l<a;l++)if((c=O(i,l))<48||c>r)return NaN;return parseInt(i,o)}return+u};if(a("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var x,A=function(e){var t=arguments.length<1?0:v(T(e)),n=this;return s(w,n)&&f((function(){g(n)}))?u(Object(t),n,A):t},_=o?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),P=0;_.length>P;P++)c(v,x=_[P])&&!c(A,x)&&b(A,x,h(v,x));A.prototype=w,w.constructor=A,l(r,"Number",A,{constructor:!0})}},function(e,t,n){var o=n(52),r=n(524),i=n(525),a=n(511),l=n(159),c=function(e){if(e&&e.forEach!==a)try{l(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in r)r[u]&&c(o[u]&&o[u].prototype);c(i)},function(e,t,n){var o=n(330),r=n(509);o("toPrimitive"),r()},function(e,t,n){var o=n(95),r=n(112),i=n(680),a=n(83)("toPrimitive"),l=Date.prototype;o(l,a)||r(l,a,i)},function(e,t,n){"use strict";var o=n(58),r=n(126).filter;o({target:"Array",proto:!0,forced:!n(282)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(58),r=n(108),i=n(279);o({target:"Object",stat:!0,forced:n(71)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},function(e,t,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],c=t.base?i[0]+t.base:i[0],u=n[c]||0,s="".concat(c," ").concat(u);n[c]=u+1;var d=l(s),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:s,updater:b(p,t),references:1}),o.push(s)}return o}function u(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var s,d=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function p(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var m=null,h=0;function b(e,t){var n,o,r;if(t.singleton){var i=h++;n=m||(m=u(t)),o=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=u(t),o=f.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=l(n[o]);a[r].references--}for(var i=c(e,t),u=0;u<n.length;u++){var s=l(n[u]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}n=i}}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[n].concat(i).concat([r]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";var o=n(58),r=n(52),i=n(71),a=n(215),l=n(100),c=n(108),u=n(113),s=n(214),d=n(281),p=n(282),f=n(83),m=n(212),h=f("isConcatSpreadable"),b=r.TypeError,g=m>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=p("concat"),v=function(e){if(!l(e))return!1;var t=e[h];return void 0!==t?!!t:a(e)};o({target:"Array",proto:!0,arity:1,forced:!g||!y},{concat:function(e){var t,n,o,r,i,a=c(this),l=d(a,0),p=0;for(t=-1,o=arguments.length;t<o;t++)if(v(i=-1===t?a:arguments[t])){if(p+(r=u(i))>9007199254740991)throw b("Maximum allowed index exceeded");for(n=0;n<r;n++,p++)n in i&&s(l,p,i[n])}else{if(p>=9007199254740991)throw b("Maximum allowed index exceeded");s(l,p++,i)}return l.length=p,l}})},function(e,t,n){"use strict";n(9),n(10),n(14),n(20),n(12),n(164),n(35),n(8),n(116),n(11),n(136),n(13);var o=n(23);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=function(e){return void 0===e},a={d:"initialDoc",filepicker:"showLocalFilePicker",pdfnet:"fullAPI",user:"annotationUser",a:"enableAnnotations",azureWorkaround:"enableAzureWorkaround",admin:"isAdminUser",l:"licenseKey",pdf:"backendType",office:"backendType",legacyOffice:"backendType",p:"externalPath",did:"documentId",toolbar:"showToolbarControl"},l=new Set(["initialDoc"]),c=function(e){var t=a[e]?a[e]:e,n=Object(o.c)();if(n)return function(e,t){if(i(e)||null===e)return;if(Array.isArray(e))return JSON.stringify(e);var n="".concat(e).trim();if(!n)return n;try{return JSON.parse(n),n}catch(e){return l.has(t)?JSON.stringify(n):n}}(n.getAttribute(t),t)};t.a=window.isApryseWebViewerWebComponent?function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r(t),o=c(e);if("boolean"===n&&!i(o)){if("true"===o||"1"===o)return!0;if("false"===o||"0"===o)return!1}return o||t}:window.Core.getHashParameter},function(e,t,n){n(58)({target:"Object",stat:!0,sham:!n(89)},{create:n(167)})},function(e,t,n){var o=n(58),r=n(71),i=n(108),a=n(244),l=n(514);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!l},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){n(58)({target:"Object",stat:!0},{setPrototypeOf:n(218)})},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(27),n(21),n(46),n(77),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(64),n(11),n(172),n(136),n(31),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(15),l=n.n(a),c=n(2),u=n.n(c),s=n(306),d=n(119),p=n(51),f=n(55),m=n(4),h=n(155),b=n(78);n(318);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T=function(e){null==e||e.stopPropagation(),null==e||e.preventDefault()},S={isActive:u.a.bool,mediaQueryClassName:u.a.string,img:u.a.string,label:u.a.oneOfType([u.a.string,u.a.number,u.a.node]),title:u.a.string,color:u.a.string,dataElement:u.a.string,className:u.a.string,onClick:u.a.func,onDoubleClick:u.a.func,onMouseUp:u.a.func,isSubmitType:u.a.bool,ariaLabel:u.a.string,ariaControls:u.a.string,role:u.a.string,hideTooltipShortcut:u.a.bool,useI18String:u.a.bool,shouldPassActiveDocumentViewerKeyToOnClickHandler:u.a.bool,children:u.a.node},x=function(e){var t=E(Object(i.e)((function(t){var n;return[m.a.isElementDisabled(t,e.dataElement),null===(n=m.a.getFeatureFlags(t))||void 0===n?void 0:n.customizableUI,m.a.getCustomElementOverrides(t,e.dataElement),m.a.getActiveDocumentViewerKey(t)]}),i.c),4),n=t[0],o=t[1],a=t[2],c=void 0===a?{}:a,u=t[3],g=void 0===u?1:u,y=v(v({},e),c),O=y.disable,S=y.disabled,x=y.isActive,A=y.mediaQueryClassName,_=y.img,P=y.tabIndex,k=y.label,L=y.useI18String,M=void 0===L||L,j=y.color,I=y.dataElement,R=y.onClick,N=y.onDoubleClick,D=y.onMouseUp,F=y.className,B=y.title,H=y.style,V=y.ariaLabel,U=y.ariaLabelledby,G=y.ariaControls,W=y.ariaCurrent,z=y.ariaPressed,Z=y.ariaExpanded,Y=y.ariaSelected,q=y.role,K=y.strokeColor,$=y.fillColor,X=y.hideTooltipShortcut,J=y.iconClassName,Q=y.forceTooltipPosition,ee=y.isSubmitType,te=y.hideOnClick,ne=y.shouldPassActiveDocumentViewerKeyToOnClickHandler,oe=y.onClickAnnouncement,re=y.onKeyDownHandler,ie=E(Object(s.a)(),1)[0],ae={};if(c&&c.hidden&&c.hidden.length){var le,ce=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=C(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(c.hidden);try{for(ce.s();!(le=ce.n()).done;){var ue=le.value;ae["hide-in-".concat(ue)]=!0}}catch(e){ce.e(e)}finally{ce.f()}}var se,de=V||(B?ie(B):void 0),pe=G||"",fe=B?B.slice(B.indexOf(".")+1):void 0,me=fe?Object(f.n)(fe):void 0,he=null==_?void 0:_.trim().startsWith("data:"),be=_,ge=O||S;se=ne?function(){var e;if(Object(b.a)(oe),null===(e=Object(h.b)())||void 0===e||e(I,{type:h.a.BUTTON}),R)return R(g)}:function(e){var t;if(Object(b.a)(oe),null===(t=Object(h.b)())||void 0===t||t(I,{type:h.a.BUTTON}),R)return R(e)};var ye=_&&!he&&(!_.includes(".")||_.startsWith("<svg")),ve=!!B,we=r.a.createElement("button",{className:l()(v(v(w(w({Button:!0,active:x&&!ge,disabled:ge},A,A),F,F),ae),{},{"modular-ui":o,"icon-only":ye&&!k})),style:H,"data-element":I,onClick:ge?T:se,onDoubleClick:ge?T:N,onMouseUp:ge?T:D,onKeyDown:ge?T:re,"aria-label":de,"aria-labelledby":U,"aria-controls":pe||void 0,role:q,tabIndex:P,type:ee?"submit":"button",disabled:ge,"aria-disabled":ge,"aria-keyshortcuts":me,"aria-pressed":z,"aria-expanded":Z,"aria-selected":Y,"aria-current":W},ye&&r.a.createElement(p.a,{disabled:ge,glyph:be,color:j,fillColor:$,strokeColor:K,className:J}),be&&!ye&&r.a.createElement("img",{src:be}),k&&(M?r.a.createElement("span",null,ie(k)):r.a.createElement("span",null,k)),e.children);return n?null:ve?r.a.createElement(d.a,{content:B,hideShortcut:X||ge,forcePosition:Q,hideOnClick:te},we):we};x.propTypes=S;var A=r.a.memo(x);t.a=A},function(e,t,n){"use strict";var o=n(58),r=n(126).map;o({target:"Array",proto:!0,forced:!n(282)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.d(t,"k",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"i",(function(){return b})),n.d(t,"a",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return v})),n.d(t,"j",(function(){return w})),n.d(t,"o",(function(){return E})),n.d(t,"n",(function(){return C})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return T}));n(77),n(17),n(182);var o,r,i,a=n(117),l=n(23),c=window.isApryseWebViewerWebComponent,u=function(){var e;return window.innerWidth<a.a||c&&(null===(e=Object(l.a)())||void 0===e?void 0:e.host.clientWidth)<a.a},s=navigator.userAgent.indexOf("Edge")>-1,d=(navigator.userAgent.indexOf("Edg/"),navigator.userAgent.indexOf("Trident/7.0")>-1),p=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,f=s||d,m="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,h=window.navigator.userAgent.match(/(iPad|iPhone|iPod)/i)||m,b=!!document.documentElement.webkitRequestFullScreen,g=window.navigator.userAgent.match(/Android/i),y=h||g||window.navigator.userAgent.match(/webOS|BlackBerry|IEMobile|Opera Mini/i),v=function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/i)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||window.navigator.userAgent.match(/Android/i)||window.navigator.userAgent.match(/webOS|BlackBerry|IEMobile|Opera Mini/i)},w=navigator.appVersion.indexOf("Mac")>-1,E=navigator.appVersion.indexOf("Windows")>-1,C=(o=window.navigator.userAgent.match(/OPR/),r=window.navigator.userAgent.match(/Maxthon/),i=window.navigator.userAgent.match(/Edge/),window.navigator.userAgent.match(/Chrome\/(.*?) /),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||/^((?!chrome|android).)*$/.test(navigator.userAgent)&&h),O=window.navigator.userAgent.match(/CriOS\/(.*?) /),T=window.navigator.userAgent.match(/(FxiOS)\/(.*?) /)},function(e,t,n){"use strict";var o=n(58),r=n(277).includes,i=n(71),a=n(217);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},,function(e,t,n){var o=n(58),r=n(71),i=n(139),a=n(158).f,l=n(89),c=r((function(){a(1)}));o({target:"Object",stat:!0,forced:!l||c,sham:!l},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){var o=n(58),r=n(89),i=n(427).f;o({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!r},{defineProperties:i})},function(e,t,n){var o=n(58),r=n(89),i=n(505),a=n(139),l=n(158),c=n(214);o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,o=a(e),r=l.f,u=i(o),s={},d=0;u.length>d;)void 0!==(n=r(o,t=u[d++]))&&c(s,t,n);return s}})},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(77),n(12),n(33),n(26),n(30),n(40),n(24),n(41),n(42),n(8),n(86),n(17),n(11),n(115),n(384),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(15),c=n.n(l);n(1080);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function d(e,t,n){return t=p(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var b=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=d(this,t)).icon=r.a.createRef(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),o=t,(i=[{key:"componentDidMount",value:function(){this.updateSvg()}},{key:"componentDidUpdate",value:function(e){this.props.glyph!==e.glyph&&this.updateSvg()}},{key:"updateSvg",value:function(){if(this.isInlineSvg()){for(var e=this.icon.current;e.firstChild;)e.removeChild(e.firstChild);var t=(new DOMParser).parseFromString(this.props.glyph,"image/svg+xml").querySelector("svg");e.appendChild(t)}}},{key:"isInlineSvg",value:function(){var e=this.props.glyph;return e&&0===e.indexOf("<svg")}},{key:"render",value:function(){var e,t=this.props,o=t.className,i=void 0===o?"":o,a=t.color,l=t.glyph,u=t.fillColor,s=void 0===u?"":u,d=t.strokeColor,p=void 0===d?"":d,f=t.disabled,h=t.dataElement,b=t.ariaLabel,g=!a||"rgba(255, 255, 255, 1)"!==a&&"rgb(255, 255, 255)"!==a?void 0:"drop-shadow(0 0 .5px #333)";try{e=this.isInlineSvg()?l:n(445)("./".concat(this.props.glyph,".svg"))}catch(t){e=void 0}var y={filter:g};return f||(y.color="rgba(0, 0, 0, 0)"===a?"#808080":a,s&&(e=e.replace('fill="none"','fill="#'.concat(s,'"'))),p&&(e=e.replaceAll('fill="stroke"','fill="#'.concat(p,'"')))),b&&(e=e.replace("<svg",'<svg aria-label="'.concat(b,'"'))),r.a.createElement("div",{ref:this.icon,className:c()(m(m(m({Icon:!0},i,!0),s,!0),"disabled",f)),style:y,"data-element":h,"aria-hidden":this.props.ariaHidden,dangerouslySetInnerHTML:{__html:e}})}}])&&s(o.prototype,i),a&&s(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,i,a}(r.a.PureComponent);m(b,"propTypes",{className:a.a.string,color:a.a.string,glyph:a.a.string.isRequired,fillColor:a.a.string,strokeColor:a.a.string,disabled:a.a.bool,dataElement:a.a.string,ariaHidden:a.a.bool,ariaLabel:a.a.string}),b.defaultProps={ariaHidden:!0};var g=b;t.a=g},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(123))},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"l",(function(){return v})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return E}));n(9),n(10),n(14),n(21),n(20),n(22),n(18),n(16),n(24),n(17),n(19),n(32),n(34),n(82),n(27),n(46),n(12),n(84),n(118),n(33),n(30),n(35),n(8),n(116),n(64),n(11),n(31),n(13);var o,r=n(25);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={SIGNATURE:"signature",FREE_HAND:"freeHand",FREE_HAND_HIGHLIGHT:"freeHandHighlight",FREE_TEXT:"freeText",MARK_INSERT_TEXT:"markInsertText",MARK_REPLACE_TEXT:"markReplaceText",DATE_FREE_TEXT:"dateFreeText",DISTANCE_MEASUREMENT:"distanceMeasurement",PERIMETER_MEASUREMENT:"perimeterMeasurement",ARC_MEASUREMENT:"arcMeasurement",RECTANGULAR_AREA_MEASUREMENT:"rectangularAreaMeasurement",CLOUDY_RECTANGULAR_AREA_MEASUREMENT:"cloudyRectangularAreaMeasurement",AREA_MEASUREMENT:"areaMeasurement",ELLIPSE_MEASUREMENT:"ellipseMeasurement",COUNT_MEASUREMENT:"countMeasurement",CALLOUT:"callout",LINE:"line",ARROW:"arrow",POLYGON:"polygon",CLOUD:"cloud",HIGHLIGHT:"highlight",UNDERLINE:"underline",SQUIGGLY:"squiggly",STRIKEOUT:"strikeout",REDACTION:"redaction",RECTANGLE:"rectangle",ELLIPSE:"ellipse",POLYLINE:"polyline",STICKY_NOTE:"stickyNote",STAMP:"stamp",IMAGE:"image",EDIT:"edit",PAN:"pan",CONTENT_EDIT_TOOL:"ContentEditTool",ADD_IMAGE_CONTENT:"AddImageContentTool",ADD_PARAGRAPH_TOOL:"AddParagraphTool",TEXT_SELECT:"textSelect",MARQUEE_ZOOM_TOOL:"marqueeZoomTool",MULTI_STYLE:"MultiStyle",ERASER:"eraser",CROP_PAGE:"cropPage",FILE_ATTACHMENT:"fileattachment",SOUND:"sound",THREE_D_ANNOTATION:"threeDAnnotation",TEXT_FIELD:"textField",SIGNATURE_FORM_FIELD:"signatureFormField",CHECK_BOX_FORM_FIELD:"checkBoxFormField",RADIO_BUTTON_FORM_FIELD:"radioButtonFormField",LIST_BOX_FORM_FIELD:"listBoxFormField",COMBO_BOX_FORM_FIELD:"comboBoxFormField",PUSH_BUTTON_FORM_FIELD:"pushButtonFormField",ARC:"arc",CHANGE_VIEW:"changeView",TRACKED_CHANGE:"trackedChange"},s=(c(c(c(c(c(c(c(c(c(c(o={},u.SIGNATURE,{icon:"icon-tool-signature",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateSignature"],annotationCheck:function(e){return e instanceof window.Core.Annotations.SignatureWidgetAnnotation&&"Widget"===e.Subject}}),u.FREE_HAND,{icon:"icon-tool-pen-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateFreeHand","AnnotationCreateFreeHand2","AnnotationCreateFreeHand3","AnnotationCreateFreeHand4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeHandAnnotation}}),u.FREE_HAND_HIGHLIGHT,{icon:"icon-tool-pen-highlight",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateFreeHandHighlight","AnnotationCreateFreeHandHighlight2","AnnotationCreateFreeHandHighlight3","AnnotationCreateFreeHandHighlight4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeHandAnnotation}}),u.FREE_TEXT,{icon:"icon-tool-text-free-text",iconColor:"TextColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateFreeText","AnnotationCreateFreeText2","AnnotationCreateFreeText3","AnnotationCreateFreeText4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeText}}),u.MARK_INSERT_TEXT,{icon:"ic-insert text",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateMarkInsertText","AnnotationCreateMarkInsertText2","AnnotationCreateMarkInsertText3","AnnotationCreateMarkInsertText4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.CaretAnnotation}}),u.MARK_REPLACE_TEXT,{icon:"ic-replace text",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateMarkReplaceText","AnnotationCreateMarkReplaceText2","AnnotationCreateMarkReplaceText3","AnnotationCreateMarkReplaceText4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.CaretAnnotation}}),u.DATE_FREE_TEXT,{icon:"icon-tool-fill-and-sign-calendar",iconColor:"TextColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateDateFreeText","AnnotationCreateDateFreeText2","AnnotationCreateDateFreeText3","AnnotationCreateDateFreeText4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeText}}),u.DISTANCE_MEASUREMENT,{icon:"icon-tool-measurement-distance-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateDistanceMeasurement","AnnotationCreateDistanceMeasurement2","AnnotationCreateDistanceMeasurement3","AnnotationCreateDistanceMeasurement4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.LineAnnotation&&"LineDimension"===e.IT&&e.Measure}}),u.PERIMETER_MEASUREMENT,{icon:"icon-tool-measurement-perimeter",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreatePerimeterMeasurement","AnnotationCreatePerimeterMeasurement2","AnnotationCreatePerimeterMeasurement3","AnnotationCreatePerimeterMeasurement4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.PolylineAnnotation&&"PolyLineDimension"===e.IT&&e.Measure}}),u.ARC_MEASUREMENT,{icon:"icon-tool-measurement-arc",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateArcMeasurement","AnnotationCreateArcMeasurement2","AnnotationCreateArcMeasurement3","AnnotationCreateArcMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.ArcAnnotation&&"ArcDimension"===e.IT&&e.Measure}}),c(c(c(c(c(c(c(c(c(c(o,u.RECTANGULAR_AREA_MEASUREMENT,{icon:"ic_annotation_rectangular_area_black_24px",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateRectangularAreaMeasurement","AnnotationCreateRectangularAreaMeasurement2","AnnotationCreateRectangularAreaMeasurement3","AnnotationCreateRectangularAreaMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"PolygonDimension"===e.IT&&e.Measure&&e.isRectangularPolygon()}}),u.CLOUDY_RECTANGULAR_AREA_MEASUREMENT,{icon:"ic_annotation_cloudy_rectangular_area_black_24px",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateCloudyRectangularAreaMeasurement","AnnotationCreateCloudyRectangularAreaMeasurement2","AnnotationCreateCloudyRectangularAreaMeasurement3","AnnotationCreateCloudyRectangularAreaMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"PolygonDimension"===e.IT&&e.Measure&&e.isRectangularPolygon()}}),u.AREA_MEASUREMENT,{icon:"icon-tool-measurement-area-polygon-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateAreaMeasurement","AnnotationCreateAreaMeasurement2","AnnotationCreateAreaMeasurement3","AnnotationCreateAreaMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"PolygonDimension"===e.IT&&e.Measure}}),u.ELLIPSE_MEASUREMENT,{icon:"ic_annotation_ellipse_area_black",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateEllipseMeasurement","AnnotationCreateEllipseMeasurement2","AnnotationCreateEllipseMeasurement3","AnnotationCreateEllipseMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.EllipseAnnotation&&"EllipseDimension"===e.IT&&e.Measure}}),u.COUNT_MEASUREMENT,{icon:"ic_check_black_24px",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateCountMeasurement","AnnotationCreateCountMeasurement2","AnnotationCreateCountMeasurement3","AnnotationCreateCountMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StickyAnnotation&&e.getCustomData("trn-is-count")}}),u.CALLOUT,{icon:"icon-tool-callout-line",iconColor:"StrokeColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateCallout","AnnotationCreateCallout2","AnnotationCreateCallout3","AnnotationCreateCallout4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeTextCallout}}),u.LINE,{icon:"icon-tool-shape-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateLine","AnnotationCreateLine2","AnnotationCreateLine3","AnnotationCreateLine4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.LineAnnotation&&"LineArrow"!==e.IT}}),u.ARROW,{icon:"icon-tool-shape-arrow",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateArrow","AnnotationCreateArrow2","AnnotationCreateArrow3","AnnotationCreateArrow4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.LineAnnotation&&"LineArrow"===e.IT}}),u.POLYGON,{icon:"icon-tool-shape-polygon",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreatePolygon","AnnotationCreatePolygon2","AnnotationCreatePolygon3","AnnotationCreatePolygon4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"cloudy"!==e.Style}}),u.CLOUD,{icon:"icon-tool-shape-cloud",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreatePolygonCloud","AnnotationCreatePolygonCloud2","AnnotationCreatePolygonCloud3","AnnotationCreatePolygonCloud4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"cloudy"===e.Style}}),c(c(c(c(c(c(c(c(c(c(o,u.HIGHLIGHT,{icon:"icon-tool-text-manipulation-highlight",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateTextHighlight","AnnotationCreateTextHighlight2","AnnotationCreateTextHighlight3","AnnotationCreateTextHighlight4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextHighlightAnnotation&&""===e.getCustomData(r.y)}}),u.UNDERLINE,{icon:"icon-tool-text-manipulation-underline",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateTextUnderline","AnnotationCreateTextUnderline2","AnnotationCreateTextUnderline3","AnnotationCreateTextUnderline4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextUnderlineAnnotation}}),u.SQUIGGLY,{icon:"icon-tool-text-manipulation-squiggly",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateTextSquiggly","AnnotationCreateTextSquiggly2","AnnotationCreateTextSquiggly3","AnnotationCreateTextSquiggly4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextSquigglyAnnotation}}),u.STRIKEOUT,{icon:"icon-tool-text-manipulation-strikethrough",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateTextStrikeout","AnnotationCreateTextStrikeout2","AnnotationCreateTextStrikeout3","AnnotationCreateTextStrikeout4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextStrikeoutAnnotation}}),u.REDACTION,{icon:"icon-tool-select-area-redaction",iconColor:"StrokeColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateRedaction","AnnotationCreateRedaction2","AnnotationCreateRedaction3","AnnotationCreateRedaction4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.RedactionAnnotation}}),u.RECTANGLE,{icon:"icon-tool-shape-rectangle",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateRectangle","AnnotationCreateRectangle2","AnnotationCreateRectangle3","AnnotationCreateRectangle4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.RectangleAnnotation}}),u.ELLIPSE,{icon:"icon-tool-shape-oval",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateEllipse","AnnotationCreateEllipse2","AnnotationCreateEllipse3","AnnotationCreateEllipse4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.EllipseAnnotation}}),u.ARC,{icon:"icon-tool-arc",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateArc","AnnotationCreateArc2","AnnotationCreateArc3","AnnotationCreateArc4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.ArcAnnotation}}),u.POLYLINE,{icon:"icon-tool-shape-polyline",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreatePolyline","AnnotationCreatePolyline2","AnnotationCreatePolyline3","AnnotationCreatePolyline4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.PolylineAnnotation}}),u.STICKY_NOTE,{icon:"icon-tool-comment-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateSticky","AnnotationCreateSticky2","AnnotationCreateSticky3","AnnotationCreateSticky4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StickyAnnotation}}),c(c(c(c(c(c(c(c(c(c(o,u.CHANGE_VIEW,{icon:"icon-tool-changeview",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateChangeViewTool","AnnotationCreateChangeViewTool2","AnnotationCreateChangeViewTool3","AnnotationCreateChangeViewTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StampAnnotation&&e.ViewState}}),u.IMAGE,{icon:"icon-tool-image-line",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationCreateRubberStamp"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StampAnnotation&&"AnnotationCreateStamp"===e.ToolName}}),u.STAMP,{icon:"icon-tool-stamp-line",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationCreateStamp"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StampAnnotation}}),u.EDIT,{icon:"ic_select_black_24px",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationEdit"],annotationCheck:null}),u.PAN,{icon:"icon-header-pan",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["Pan"],annotationCheck:null}),u.CONTENT_EDIT_TOOL,{icon:"ic_edit_page_24px",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["ContentEditTool"],annotationCheck:null}),u.ADD_PARAGRAPH,{icon:"ic-paragraph",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AddParagraphTool"],annotationCheck:null}),u.ADD_IMAGE_CONTENT,{icon:"icon-tool-image-line",iconColor:null,currentPalette:null,availablePalettes:[],toolNames:["AddImageContentTool"],annotationCheck:null}),u.TEXT_SELECT,{icon:"textselect_cursor",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["TextSelect"],annotationCheck:null}),u.MARQUEE_ZOOM_TOOL,{icon:null,iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["MarqueeZoomTool"],annotationCheck:null}),c(c(c(c(c(c(c(c(c(c(o,u.MULTI_STYLE,{icon:"",iconColor:null,validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:null,styleTabs:[],toolNames:[],annotationCheck:null}),u.ERASER,{icon:"ic_annotation_eraser_black_24px",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationEraserTool"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeHandAnnotation}}),u.CROP_PAGE,{icon:"ic_crop_black_24px",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["CropPage"],annotationCheck:null}),u.FILE_ATTACHMENT,{icon:"ic_fileattachment_24px",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateFileAttachment"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FileAttachmentAnnotation}}),u.SOUND,{icon:"ic_sound_24px",iconColor:"FillColor",validStyleTabs:["FillColor","StrokeColor"],currentStyleTab:"FillColor",styleTabs:["FillColor","StrokeColor"],toolNames:[],annotationCheck:function(e){return e instanceof window.Core.Annotations.SoundAnnotation}}),u.THREE_D_ANNOTATION,{icon:"icon-tool-model3d",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationCreateThreeD"],annotationCheck:function(e){return e instanceof window.Core.Annotations.Model3DAnnotation}}),u.TEXT_FIELD,{icon:"icon-form-field-text",iconColor:"TextColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["TextFormFieldCreateTool","TextFormFieldCreateTool2","TextFormFieldCreateTool3","TextFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextWidgetAnnotation}}),u.SIGNATURE_FORM_FIELD,{icon:"icon-form-field-signature",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["SignatureFormFieldCreateTool","SignatureFormFieldCreateTool2","SignatureFormFieldCreateTool3","SignatureFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.SignatureWidgetAnnotation}}),u.CHECK_BOX_FORM_FIELD,{icon:"icon-form-field-checkbox",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["CheckBoxFormFieldCreateTool","CheckBoxFormFieldCreateTool2","CheckBoxFormFieldCreateTool3","CheckBoxFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.CheckButtonWidgetAnnotation}}),u.RADIO_BUTTON_FORM_FIELD,{icon:"icon-form-field-radiobutton",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["RadioButtonFormFieldCreateTool","RadioButtonFormFieldCreateTool2","RadioButtonFormFieldCreateTool3","RadioButtonFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.RadioButtonWidgetAnnotation}}),c(c(c(c(o,u.LIST_BOX_FORM_FIELD,{icon:"icon-form-field-listbox",iconColor:"StrokeColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["ListBoxFormFieldCreateTool","ListBoxFormFieldCreateTool2","ListBoxFormFieldCreateTool3","ListBoxFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.ListWidgetAnnotation}}),u.COMBO_BOX_FORM_FIELD,{icon:"icon-form-field-combobox",iconColor:"StrokeColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["ComboBoxFormFieldCreateTool","ComboBoxFormFieldCreateTool2","ComboBoxFormFieldCreateTool3","ComboBoxFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.ChoiceWidgetAnnotation}}),u.PUSH_BUTTON_FORM_FIELD,{icon:"icon-form-field-button",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:[],annotationCheck:function(e){return e instanceof window.Core.Annotations.PushButtonWidgetAnnotation}}),u.TRACKED_CHANGE,{icon:"ic-edit-page",iconColor:"FillColor",validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:[],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextHighlightAnnotation&&e.getCustomData(r.y)}})),d=function(e){return Object.keys(s).find((function(t){return s[t].toolNames.includes(e)}))},p=function(e){return Object.keys(s).find((function(t){var n=s[t].annotationCheck;return null==n?void 0:n(e)}))},f=function(e){return s[p(e)].toolNames[0]},m=function(e){return s[e].toolNames},h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object.keys(s).reduce((function(e,n){return e[n]={},t.forEach((function(t){e[n][t]=s[n][t]})),e}),{})},b=function(e,t,n){var o=e.toolName,r=e.buttonImage,i=e.toolObject,a=o,l=["TextColor","StrokeColor","FillColor"].filter((function(e){var t;return null==i||null===(t=i.defaults)||void 0===t?void 0:t[e]}));s[a]={icon:r,iconColor:l[0],currentStyleTab:l[0],styleTabs:l,toolNames:[o],annotationCheck:n?function(e){return n(e)}:t?function(e){return e instanceof t}:null}},g=function(e){return s[e]||{icon:"ic_fileattachment_24px"}},y=function(){return s},v=function(e,t,n){if(void 0===s[e])return console.error("The annotation key is invalid. Please provide a valid annotation key. Valid annotation keys can be retrieved through instance.UI.AnnotationKeys.");t=a(new Set(t));var o=s[e].validStyleTabs;return t.filter((function(e){return!o.includes(e)})).length>0?console.error("Please provide new valid annotation style tabs. The valid tabs are: ".concat(s[e].validStyleTabs.join(", "))):n&&!t.includes(n)?console.error("Initial tab is not valid. Valid initial tabs are: ".concat(t.join(", "))):(s[e].styleTabs=t,s[e].currentStyleTab=n||t[0],!0)},w={SIGNATURE:"signature",FREE_HAND:"freeHand",FREE_HAND_HIGHLIGHT:"freeHandHighlight",FREE_TEXT:"freeText",DATE_FREE_TEXT:"dateFreeText",DISTANCE_MEASUREMENT:"distanceMeasurement",PERIMETER_MEASUREMENT:"perimeterMeasurement",ARC_MEASUREMENT:"arcMeasurement",RECTANGULAR_AREA_MEASUREMENT:"rectangularAreaMeasurement",CLOUDY_RECTANGULAR_AREA_MEASUREMENT:"cloudyRectangularAreaMeasurement",AREA_MEASUREMENT:"areaMeasurement",ELLIPSE_MEASUREMENT:"ellipseMeasurement",COUNT_MEASUREMENT:"countMeasurement",CALLOUT:"callout",LINE:"line",ARROW:"arrow",POLYGON:"polygon",CLOUD:"cloud",HIGHLIGHT:"highlight",UNDERLINE:"underline",SQUIGGLY:"squiggly",STRIKEOUT:"strikeout",REDACTION:"redaction",RECTANGLE:"rectangle",ELLIPSE:"ellipse",ARC:"arc",POLYLINE:"polyline",STICKYNOTE:"stickyNote",IMAGE:"image",STAMP:"stamp",EDIT:"edit",PAN:"pan",CONTENT_EDIT_TOOL:"contentEditTool",ADD_PARAGRAPH_TOOL:"addParagraphTool",TEXT_SELECT:"textSelect",MARQUEE_ZOOM_TOOL:"marqueeZoomTool",ERASER:"eraser",CROP_PAGE:"cropPage",FILE_ATTACHMENT:"fileAttachment",SOUND:"sound",THREE_D_ANNOTATION:"threeDAnnotation",TEXT_FIELD:"textField",SIGNATURE_FORM_FIELD:"signatureFormField",CHECK_BOX_FORM_FIELD:"checkBoxFormField",RADIO_BUTTON_FORM_FIELD:"radioButtonFormField",LIST_BOX_FORM_FIELD:"listBoxFormField",COMBO_BOX_FORM_FIELD:"comboBoxFormField"},E={TEXT_COLOR:"TextColor",STROKE_COLOR:"StrokeColor",FILL_COLOR:"FillColor"}},function(e,t,n){"use strict";t.a={ANNOTATION_FILTER_CHANGED:"annotationFilterChanged",DOCUMENT_MERGED:"documentMerged",FILE_DOWNLOADED:"fileDownloaded",LOAD_ERROR:"loaderror",DRAG_OUTLINE:"dragOutline",DROP_OUTLINE:"dropOutline",PANEL_RESIZED:"panelResized",THEME_CHANGED:"themeChanged",TOOLBAR_GROUP_CHANGED:"toolbarGroupChanged",SELECTED_THUMBNAIL_CHANGED:"selectedThumbnailChanged",THUMBNAIL_DRAGGED:"thumbnailDragged",THUMBNAIL_DROPPED:"thumbnailDropped",USER_BOOKMARKS_CHANGED:"userBookmarksChanged",OUTLINE_BOOKMARKS_CHANGED:"outlineBookmarksChanged",VIEWER_LOADED:"viewerLoaded",VISIBILITY_CHANGED:"visibilityChanged",FULLSCREEN_MODE_TOGGLED:"fullscreenModeToggled",BEFORE_TAB_CHANGED:"beforeTabChanged",AFTER_TAB_CHANGED:"afterTabChanged",TAB_DELETED:"tabDeleted",BEFORE_TAB_DELETED:"beforeTabDeleted",TAB_ADDED:"tabAdded",TAB_MOVED:"tabMoved",LANGUAGE_CHANGED:"languageChanged",MULTI_VIEWER_READY:"multiViewerReady",COMPARE_ANNOTATIONS_LOADED:"compareAnnotationsLoaded",TAB_MANAGER_READY:"onTabManagerReady",MODULAR_UI_IMPORTED:"modularUIImported",TOOLTIP_OPENED:"tooltipOpened"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"e",(function(){return j})),n.d(t,"m",(function(){return R})),n.d(t,"j",(function(){return N})),n.d(t,"c",(function(){return B})),n.d(t,"n",(function(){return V})),n.d(t,"b",(function(){return G})),n.d(t,"f",(function(){return W})),n.d(t,"d",(function(){return Y})),n.d(t,"h",(function(){return ee})),n.d(t,"k",(function(){return ne})),n.d(t,"l",(function(){return oe})),n.d(t,"i",(function(){return re}));n(9),n(10),n(14),n(21),n(22),n(18),n(49),n(24),n(48),n(50),n(19),n(11),n(13),n(32),n(34),n(82),n(27),n(46),n(20),n(12),n(84),n(44),n(118),n(94),n(33),n(16),n(30),n(59),n(40),n(173),n(483),n(35),n(8),n(17),n(64),n(115),n(31);var o,r,i,a=n(144),l=n(1),c=n(29),u=n(45),s=n(295),d=n(548),p=n(98),f=n(79),m=n(169),h=n(299),b=n(23),g=function(){var e,t,n=l.a.getAnnotationsList().filter((function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation})).some((function(e){var t;return null===(t=e.getEditor())||void 0===t?void 0:t.hasFocus()})),o=Object(b.a)().activeElement;return o&&(o instanceof window.HTMLInputElement||o instanceof window.HTMLTextAreaElement||o.className.includes("ql-editor")||n||"input"===(null==o||null===(e=o.tagName)||void 0===e?void 0:e.toLowerCase())&&"text"===(null==o?void 0:o.getAttribute("type"))||"textarea"===(null==o||null===(t=o.tagName)||void 0===t?void 0:t.toLowerCase()))},y=n(143),v=n(145),w=n(3),E=n(4),C=n(5),O=n(132),T=n(7);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function L(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M={DEFAULT:"viewer",SPREADSHEET:"spreadsheet"},j={ROTATE_CLOCKWISE:"rotateClockwise",ROTATE_COUNTER_CLOCKWISE:"rotateCounterClockwise",NUMPAD_ROTATE_CLOCKWISE:"numpadRotateClockwise",NUMPAD_ROTATE_COUNTER_CLOCKWISE:"numpadRotateCounterClockwise",COPY:"copy",PASTE:"paste",CUT:"cut",UNDO:"undo",REDO:"redo",OPEN_FILE:"openFile",SEARCH:"search",ZOOM_IN:"zoomIn",ZOOM_OUT:"zoomOut",NUMPAD_ZOOM_IN:"numpadZoomIn",NUMPAD_ZOOM_OUT:"numpadZoomOut",SET_HEADER_FOCUS:"setHeaderFocus",FIT_SCREEN_WIDTH:"fitScreenWidth",PRINT:"print",BOOKMARK:"bookmark",PREVIOUS_PAGE:"previousPage",NEXT_PAGE:"nextPage",UP:"up",DOWN:"down",SWITCH_PAN:"switchPan",SELECT:"select",PAN:"pan",ARROW:"arrow",CALLOUT:"callout",ERASER:"eraser",FREEHAND:"freehand",IMAGE:"image",LINE:"line",STICKY_NOTE:"stickyNote",ELLIPSE:"ellipse",RECTANGLE:"rectangle",RUBBER_STAMP:"rubberStamp",FREETEXT:"freetext",SIGNATURE:"signature",SQUIGGLY:"squiggly",HIGHLIGHT:"highlight",STRIKEOUT:"strikeout",UNDERLINE:"underline",HOME:"home",END:"end",CLOSE:"close",SELECT_ALL:"selectAll",MOVE_TO_EDGE_UP:"moveToEdgeUp",MOVE_TO_EDGE_DOWN:"moveToEdgeDown",MOVE_TO_EDGE_LEFT:"moveToEdgeLeft",MOVE_TO_EDGE_RIGHT:"moveToEdgeRight",ADJUST_SELECTION_UP:"adjustSelectionUp",ADJUST_SELECTION_DOWN:"adjustSelectionDown",ADJUST_SELECTION_LEFT:"adjustSelectionLeft",ADJUST_SELECTION_RIGHT:"adjustSelectionRight",LEFT:"left",RIGHT:"right",ENTER:"enter",TAB:"tab",DELETE:"delete"},I=[j.ROTATE_CLOCKWISE,j.ROTATE_COUNTER_CLOCKWISE,j.COPY,j.OPEN_FILE,j.SEARCH,j.ZOOM_IN,j.ZOOM_OUT,j.SET_HEADER_FOCUS,j.FIT_SCREEN_WIDTH,j.PRINT,j.BOOKMARK,j.PREVIOUS_PAGE,j.NEXT_PAGE,j.UP,j.DOWN,j.SWITCH_PAN,j.SELECT,j.PAN,j.CLOSE,j.NUMPAD_ROTATE_CLOCKWISE,j.NUMPAD_ROTATE_COUNTER_CLOCKWISE,j.NUMPAD_ZOOM_IN,j.NUMPAD_ZOOM_OUT,j.HOME,j.END],R=function(e){return I=e},N=function(){return I},D=[[j.ROTATE_CLOCKWISE,"option.settings.rotateDocumentClockwise"],[j.ROTATE_COUNTER_CLOCKWISE,"option.settings.rotateDocumentCounterclockwise"],[j.COPY,"option.settings.copyText"],[j.PASTE,"option.settings.pasteText"],[j.UNDO,"option.settings.undoChange"],[j.REDO,"option.settings.redoChange"],[j.OPEN_FILE,"option.settings.openFile"],[j.SEARCH,"option.settings.openSearch"],[j.ZOOM_IN,"option.settings.zoomIn"],[j.ZOOM_OUT,"option.settings.zoomOut"],[j.SET_HEADER_FOCUS,"option.settings.setHeaderFocus"],[j.FIT_SCREEN_WIDTH,"option.settings.fitScreenWidth"],[j.PRINT,"option.settings.print"],[j.BOOKMARK,"option.settings.bookmarkOpenPanel"],[j.PREVIOUS_PAGE,"option.settings.goToPreviousPage"],[j.NEXT_PAGE,"option.settings.goToNextPage"],[j.UP,"option.settings.goToPreviousPageArrowUp"],[j.DOWN,"option.settings.goToNextPageArrowDown"],[j.SWITCH_PAN,"option.settings.holdSwitchPan"],[j.SELECT,"option.settings.selectAnnotationEdit"],[j.PAN,"option.settings.selectPan"],[j.ARROW,"option.settings.selectCreateArrowTool"],[j.CALLOUT,"option.settings.selectCreateCalloutTool"],[j.ERASER,"option.settings.selectEraserTool"],[j.FREEHAND,"option.settings.selectCreateFreeHandTool"],[j.IMAGE,"option.settings.selectCreateStampTool"],[j.LINE,"option.settings.selectCreateLineTool"],[j.STICKY_NOTE,"option.settings.selectCreateStickyTool"],[j.ELLIPSE,"option.settings.selectCreateEllipseTool"],[j.RECTANGLE,"option.settings.selectCreateRectangleTool"],[j.RUBBER_STAMP,"option.settings.selectCreateRubberStampTool"],[j.FREETEXT,"option.settings.selectCreateFreeTextTool"],[j.SIGNATURE,"option.settings.openSignatureModal"],[j.SQUIGGLY,"option.settings.selectCreateTextSquigglyTool"],[j.HIGHLIGHT,"option.settings.selectCreateTextHighlightTool"],[j.STRIKEOUT,"option.settings.selectCreateTextStrikeoutTool"],[j.UNDERLINE,"option.settings.selectCreateTextUnderlineTool"],[j.CLOSE,"option.settings.close"]],F=[[j.COPY,"option.settings.spreadsheetEditor.copyText"],[j.CUT,"option.settings.spreadsheetEditor.cutText"],[j.PASTE,"option.settings.spreadsheetEditor.pasteText"],[j.UNDO,"option.settings.spreadsheetEditor.undoChange"],[j.REDO,"option.settings.spreadsheetEditor.redoChange"],[j.SELECT_ALL,"option.settings.spreadsheetEditor.selectAll"],[j.MOVE_TO_EDGE_UP,"option.settings.spreadsheetEditor.moveToEdgeUp"],[j.MOVE_TO_EDGE_DOWN,"option.settings.spreadsheetEditor.moveToEdgeDown"],[j.MOVE_TO_EDGE_LEFT,"option.settings.spreadsheetEditor.moveToEdgeLeft"],[j.MOVE_TO_EDGE_RIGHT,"option.settings.spreadsheetEditor.moveToEdgeRight"],[j.ADJUST_SELECTION_UP,"option.settings.spreadsheetEditor.adjustSelectionUp"],[j.ADJUST_SELECTION_DOWN,"option.settings.spreadsheetEditor.adjustSelectionDown"],[j.ADJUST_SELECTION_LEFT,"option.settings.spreadsheetEditor.adjustSelectionLeft"],[j.ADJUST_SELECTION_RIGHT,"option.settings.spreadsheetEditor.adjustSelectionRight"],[j.UP,"option.settings.spreadsheetEditor.up"],[j.DOWN,"option.settings.spreadsheetEditor.down"],[j.LEFT,"option.settings.spreadsheetEditor.left"],[j.RIGHT,"option.settings.spreadsheetEditor.right"],[j.ENTER,"option.settings.spreadsheetEditor.enter"],[j.TAB,"option.settings.spreadsheetEditor.tab"],[j.DELETE,"option.settings.spreadsheetEditor.delete"]],B=L(L({},M.DEFAULT,D),M.SPREADSHEET,F),H=(L(L(L(L(L(L(L(L(L(L(o={},j.ROTATE_CLOCKWISE,"Control+Shift+="),j.ROTATE_COUNTER_CLOCKWISE,"Control+Shift+-"),j.NUMPAD_ROTATE_CLOCKWISE,"Control+Shift+Num_Add"),j.NUMPAD_ROTATE_COUNTER_CLOCKWISE,"Control+Shift+Num_Subract"),j.COPY,"Control+C"),j.UNDO,"Control+Z"),j.REDO,"Control+Shift+Z"),j.ZOOM_IN,"Control+="),j.ZOOM_OUT,"Control+-"),j.NUMPAD_ZOOM_IN,"Control+Num_Add"),L(L(L(L(L(L(L(L(L(L(o,j.NUMPAD_ZOOM_OUT,"Control+Num_Subract"),j.SET_HEADER_FOCUS,"Control+Alt+Shift+M"),j.SELECT,"Escape"),j.PAN,"P"),j.ARROW,"A"),j.CALLOUT,"C"),j.ERASER,"E"),j.FREEHAND,"F"),j.IMAGE,"I"),j.LINE,"L"),L(L(L(L(L(L(L(L(L(L(o,j.STICKY_NOTE,"N"),j.ELLIPSE,"O"),j.RECTANGLE,"R"),j.FREETEXT,"T"),j.SIGNATURE,"S"),j.SQUIGGLY,"G"),j.HIGHLIGHT,"H"),j.STRIKEOUT,"K"),j.UNDERLINE,"U"),"delete","Delete"),L(L(L(L(L(L(L(o,"richText.bold","Control+B"),"richText.italic","Control+I"),"richText.underline","Control+U"),"richText.strikeout","Control+K"),j.HOME,"Home"),j.END,"End"),j.CLOSE,"X"));function V(e){var t=H[e];if(t)return u.j&&(t=t.replace("Control","Meta")),t}var U=function(){},G={CTRL_SHIFT_EQUAL:"ctrl+shift+=",COMMAND_SHIFT_EQUAL:"command+shift+=",CTRL_SHIFT_MINUS:"ctrl+shift+-",COMMAND_SHIFT_MINUS:"command+shift+-",CTRL_SHIFT_NUM_ADD:"ctrl+shift+num_add",COMMAND_SHIFT_NUM_ADD:"command+shift+num_add",CTRL_SHIFT_NUM_SUBTRACT:"ctrl+shift+num_subtract",COMMAND_SHIFT_NUM_SUBTRACT:"command+shift+num_subtract",CTRL_ALT_SHIFT_M:"ctrl+alt+shift+m",COMMAND_ALT_SHIFT_M:"command+alt+shift+m",CTRL_C:"ctrl+c",COMMAND_C:"command+c",CTRL_X:"ctrl+x",COMMAND_X:"command+x",CTRL_V:"ctrl+v",COMMAND_V:"command+v",CTRL_Z:"ctrl+z",COMMAND_Z:"command+z",CTRL_Y:"ctrl+y",COMMAND_SHIFT_Z:"command+shift+z",CTRL_O:"ctrl+o",COMMAND_O:"command+o",CTRL_F:"ctrl+f",COMMAND_F:"command+f",CTRL_EQUAL:"ctrl+=",COMMAND_EQUAL:"command+=",CTRL_MINUS:"ctrl+-",COMMAND_MINUS:"command+-",CTRL_NUM_ADD:"ctrl+num_add",COMMAND_NUM_ADD:"command+num_add",CTRL_NUM_SUBTRACT:"ctrl+num_subtract",COMMAND_NUM_SUBTRACT:"command+num_subtract",CTRL_UP:"ctrl+up",COMMAND_UP:"command+up",CTRL_DOWN:"ctrl+down",COMMAND_DOWN:"command+down",CTRL_LEFT:"ctrl+left",COMMAND_LEFT:"command+left",CTRL_RIGHT:"ctrl+right",COMMAND_RIGHT:"command+right",CTRL_A:"ctrl+a",COMMAND_A:"command+a",SHIFT_UP:"shift+up",SHIFT_DOWN:"shift+down",SHIFT_LEFT:"shift+left",SHIFT_RIGHT:"shift+right",CTRL_0:"ctrl+0",COMMAND_0:"command+0",CTRL_P:"ctrl+p",COMMAND_P:"command+p",CTRL_B:"ctrl+b",COMMAND_B:"command+b",ENTER:"enter",PAGE_UP:"pageup",PAGE_DOWN:"pagedown",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",TAB:"tab",SPACE:"space",ESCAPE:"escape",HOME:"home",END:"end",DELETE:"delete",P:"p",A:"a",C:"c",E:"e",F:"f",I:"i",L:"l",N:"n",O:"o",R:"r",Q:"q",T:"t",S:"s",G:"g",H:"h",K:"k",U:"u",X:"x"},W=(L(L(L(L(L(L(L(L(L(L(r={},j.COPY,z(G.CTRL_C,G.COMMAND_C)),j.PASTE,z(G.CTRL_V,G.COMMAND_V)),j.CUT,z(G.CTRL_X,G.COMMAND_X)),j.UNDO,z(G.CTRL_Z,G.COMMAND_Z)),j.REDO,G.CTRL_Y),j.SELECT_ALL,z(G.CTRL_A,G.COMMAND_A)),j.MOVE_TO_EDGE_UP,z(G.CTRL_UP,G.COMMAND_UP)),j.MOVE_TO_EDGE_DOWN,z(G.CTRL_DOWN,G.COMMAND_DOWN)),j.MOVE_TO_EDGE_LEFT,z(G.CTRL_LEFT,G.COMMAND_LEFT)),j.MOVE_TO_EDGE_RIGHT,z(G.CTRL_RIGHT,G.COMMAND_RIGHT)),L(L(L(L(L(L(L(L(L(L(r,j.ADJUST_SELECTION_UP,G.SHIFT_UP),j.ADJUST_SELECTION_DOWN,G.SHIFT_DOWN),j.ADJUST_SELECTION_LEFT,G.SHIFT_LEFT),j.ADJUST_SELECTION_RIGHT,G.SHIFT_RIGHT),j.UP,G.UP),j.DOWN,G.DOWN),j.LEFT,G.LEFT),j.RIGHT,G.RIGHT),j.ENTER,G.ENTER),j.TAB,G.TAB),L(r,j.DELETE,G.DELETE));function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join(", ")}function Z(e){return e.split(", ")}var Y=(L(L(L(L(L(L(L(L(L(L(i={},j.ROTATE_CLOCKWISE,z(G.CTRL_SHIFT_EQUAL,G.COMMAND_SHIFT_EQUAL)),j.ROTATE_COUNTER_CLOCKWISE,z(G.CTRL_SHIFT_MINUS,G.COMMAND_SHIFT_MINUS)),j.NUMPAD_ROTATE_CLOCKWISE,z(G.CTRL_SHIFT_NUM_ADD,G.COMMAND_SHIFT_NUM_ADD)),j.NUMPAD_ROTATE_COUNTER_CLOCKWISE,z(G.CTRL_SHIFT_NUM_SUBTRACT,G.COMMAND_SHIFT_NUM_SUBTRACT)),j.COPY,z(G.CTRL_C,G.COMMAND_C)),j.PASTE,z(G.CTRL_V,G.COMMAND_V)),j.UNDO,z(G.CTRL_Z,G.COMMAND_Z)),j.REDO,z(G.CTRL_Y,G.COMMAND_SHIFT_Z)),j.OPEN_FILE,z(G.CTRL_O,G.COMMAND_O)),j.SEARCH,z(G.CTRL_F,G.COMMAND_F)),L(L(L(L(L(L(L(L(L(L(i,j.ZOOM_IN,z(G.CTRL_EQUAL,G.COMMAND_EQUAL)),j.ZOOM_OUT,z(G.CTRL_MINUS,G.COMMAND_MINUS)),j.NUMPAD_ZOOM_IN,z(G.CTRL_NUM_ADD,G.COMMAND_NUM_ADD)),j.NUMPAD_ZOOM_OUT,z(G.CTRL_NUM_SUBTRACT,G.COMMAND_NUM_SUBTRACT)),j.SET_HEADER_FOCUS,z(G.CTRL_ALT_SHIFT_M,G.COMMAND_ALT_SHIFT_M)),j.FIT_SCREEN_WIDTH,z(G.CTRL_0,G.COMMAND_0)),j.PRINT,z(G.CTRL_P,G.COMMAND_P)),j.BOOKMARK,z(G.CTRL_B,G.COMMAND_B)),j.PREVIOUS_PAGE,G.PAGE_UP),j.NEXT_PAGE,G.PAGE_DOWN),L(L(L(L(L(L(L(L(L(L(i,j.UP,G.UP),j.DOWN,G.DOWN),j.SWITCH_PAN,G.SPACE),j.SELECT,G.ESCAPE),j.PAN,G.P),j.ARROW,G.A),j.CALLOUT,G.C),j.ERASER,G.E),j.FREEHAND,G.F),j.IMAGE,G.I),L(L(L(L(L(L(L(L(L(L(i,j.LINE,G.L),j.STICKY_NOTE,G.N),j.ELLIPSE,G.O),j.RECTANGLE,G.R),j.RUBBER_STAMP,G.Q),j.FREETEXT,G.T),j.SIGNATURE,G.S),j.SQUIGGLY,G.G),j.HIGHLIGHT,G.H),j.STRIKEOUT,G.K),L(L(L(L(i,j.UNDERLINE,G.U),j.HOME,G.HOME),j.END,G.END),j.CLOSE,G.X)),q={AnnotationEdit:G.ESCAPE,Pan:G.P,AnnotationCreateArrow:G.A,AnnotationCreateCallout:G.C,AnnotationEraserTool:G.E,AnnotationCreateFreeHand:G.F,AnnotationCreateStamp:G.I,AnnotationCreateLine:G.L,AnnotationCreateSticky:G.N,AnnotationCreateEllipse:G.O,AnnotationCreateRectangle:G.R,AnnotationCreateFreeText:G.T,AnnotationCreateSignature:G.S,AnnotationCreateTextSquiggly:G.G,AnnotationCreateTextHighlight:G.H,AnnotationCreateTextStrikeout:G.K,AnnotationCreateTextUnderline:G.U,AnnotationCreateRubberStamp:G.Q};var K,$,X=(K=Object.fromEntries(Object.entries(q).map((function(e){var t=_(e,2),n=t[0];return[t[1],n]}))),Object.entries(Y).reduce((function(e,t){var n=_(t,2),o=n[0],r=n[1];return K[r]&&(e[o]=K[r]),e}),{})),J={},Q={},ee="viewer",te={initialize:function(e){var t=this;a.a.filter=function(){return!0},this.store=e,this.keyHandlerMap=this.createKeyHandlerMap(),this.previousKeyHandlerMap=this.keyHandlerMap,this.prevToolName=null;var n=this.getShortcutKeyMap();Object.keys(n).forEach((function(e){t.on(n[e],t.keyHandlerMap[Y[e]])})),this.didInitializeAllKeys=!0,a.a.setScope(ee),this.formBuilderDisabledKeys={}},on:function(e,t){var n=this;!!l.a.getToolModeMap()[e]&&(e=q[e]),e&&"string"==typeof e&&(e=e.toLocaleLowerCase());function o(e,t){var n=t.keyup,o=void 0===n?U:n,r=t.keydown,i=void 0===r?t:r;Object(a.a)(e,{keyup:!0,scope:ee},(function(e){var t,n="Escape"===e.key||e.key===Y[j.CLOSE];((null===(t=e.currentTarget.activeElement)||void 0===t?void 0:t.shadowRoot)===Object(b.a)()||!window.isApryseWebViewerWebComponent||n)&&("keyup"===e.type&&o(e),"keydown"===e.type&&i(e))}))}if(t||(t=function(e){var t;if(null==e?void 0:e.includes("+")){var o=Object.keys(n.keyHandlerMap).find((function(t){return null==t?void 0:t.includes(e)}));o&&(t=n.keyHandlerMap[o])}else t=n.keyHandlerMap[e];return t}(e)),e&&t||this.didInitializeAllKeys||(this.keyHandlerMap=this.createKeyHandlerMap(),this.prevToolName=null,Object.keys(this.keyHandlerMap).forEach((function(e){J[e]||o(e,n.keyHandlerMap[e])})),this.didInitializeAllKeys=!0),e)J[e.toLocaleLowerCase()]=!0;else for(var r in G)J[G[r]]=!0;e&&t&&o(e,t)},off:function(e,t){if(Q=A({},J),!!!l.a.getToolModeMap()[e]||(e=q[e])){if(e)J[e.toLocaleLowerCase()]=!1;else{for(var n in G)J[G[n]]=!1;this.didInitializeAllKeys=!1}a.a.unbind(e,t)}},isActive:function(e){var t,n=H[e];return!n||(t=u.j?n.replace("Control","command").toLocaleLowerCase():n.replace("Control","ctrl").toLocaleLowerCase(),J[t])},createKeyHandlerMap:function(){var e,t=this,n=this.store,o=n.dispatch,r=n.getState,i=window.Core.Tools.ToolNames;return L(L(L(L(L(L(L(L(L(L(e={},Y[j.ROTATE_CLOCKWISE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),l.a.rotateClockwise(t)})),Y[j.ROTATE_COUNTER_CLOCKWISE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),l.a.rotateCounterClockwise(t)})),Y[j.NUMPAD_ROTATE_CLOCKWISE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),l.a.rotateClockwise(t)})),Y[j.NUMPAD_ROTATE_COUNTER_CLOCKWISE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),l.a.rotateCounterClockwise(t)})),Y[j.COPY],(function(){var e=E.a.getActiveDocumentViewerKey(r());l.a.getSelectedText(e)?(Object(d.a)(e),o(w.a.closeElement("textPopup"))):l.a.getSelectedAnnotations(e).length&&l.a.updateCopiedAnnotations(e)})),Y[j.PASTE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());g()||(e.preventDefault(),l.a.pasteCopiedAnnotations(t))})),Y[j.UNDO],(function(e){var t=E.a.getActiveDocumentViewerKey(r());g()||(e.preventDefault(),l.a.undo(t))})),Y[j.REDO],(function(e){var t=E.a.getActiveDocumentViewerKey(r());g()||(e.preventDefault(),l.a.redo(t))})),Y[j.OPEN_FILE],(function(e){e.preventDefault(),Object(s.a)()})),Y[j.SEARCH],(function(e){e.preventDefault(),E.a.isElementOpen(r(),"notesPanel")&&o(w.a.closeElement("notesPanel")),E.a.isElementOpen(r(),"redactionPanel")&&o(w.a.closeElement("redactionPanel")),E.a.isElementOpen(r(),"textEditingPanel")&&o(w.a.closeElement("textEditingPanel")),E.a.isElementOpen(r(),"wv3dPropertiesPanel")&&o(w.a.closeElement("wv3dPropertiesPanel")),o(w.a.toggleElement("searchPanel"))})),L(L(L(L(L(L(L(L(L(L(e,Y[j.ZOOM_IN],(function(e){e.preventDefault();var t=r(),n=E.a.getActiveDocumentViewerKey(t),o=E.a.isMultiViewerMode(t);Object(f.d)(o,n)})),Y[j.ZOOM_OUT],(function(e){e.preventDefault();var t=r(),n=E.a.getActiveDocumentViewerKey(t),o=E.a.isMultiViewerMode(t);Object(f.e)(o,n)})),Y[j.NUMPAD_ZOOM_IN],(function(e){e.preventDefault();var t=r(),n=E.a.getActiveDocumentViewerKey(t),o=E.a.isMultiViewerMode(t);Object(f.d)(o,n)})),Y[j.NUMPAD_ZOOM_OUT],(function(e){e.preventDefault();var t=r(),n=E.a.getActiveDocumentViewerKey(t),o=E.a.isMultiViewerMode(t);Object(f.e)(o,n)})),Y[j.SET_HEADER_FOCUS],(function(e){var t,n;e.preventDefault();var o=r(),i=null===(t=E.a.getFeatureFlags(o))||void 0===t?void 0:t.customizableUI,a=E.a.getActiveHeaders(o),l=i?null===(n=a[0])||void 0===n?void 0:n.dataElement:"header",c=Object(b.a)().querySelector('[data-element="'.concat(l,'"]'));null==c||c.focus()})),Y[j.FIT_SCREEN_WIDTH],(function(e){e.preventDefault();var t=E.a.getActiveDocumentViewerKey(r());u.k?l.a.fitToWidth(t):l.a.fitToPage(t)})),Y[j.PRINT],(function(e){e.preventDefault(),Object(m.a)(o,E.a.isEmbedPrintSupported(r()),E.a.getSortStrategy(r()),E.a.getColorMap(r()))})),Y[j.BOOKMARK],(function(e){if(e.preventDefault(),!E.a.isElementDisabled(r(),C.a.BOOKMARK_PANEL)){o(w.a.openElement(C.a.LEFT_PANEL)),o(w.a.setActiveLeftPanel(C.a.BOOKMARK_PANEL));var t=l.a.getUserBookmarks(),n=l.a.getCurrentPage()-1;t[n]||l.a.addUserBookmark(n,c.a.t("message.untitled"))}})),Y[j.PREVIOUS_PAGE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),Object(v.a)(l.a.getCurrentPage()-Object(y.a)(),t)})),Y[j.NEXT_PAGE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),Object(v.a)(l.a.getCurrentPage()+Object(y.a)(),t)})),L(L(L(L(L(L(L(L(L(L(e,Y[j.UP],(function(){var e=E.a.getActiveDocumentViewerKey(r());if(!g()&&!l.a.isContinuousDisplayMode(e)){var t=l.a.getScrollViewElement(e),n=t.scrollHeight,o=t.clientHeight;if(0===t.scrollTop){var i=l.a.getCurrentPage(e);Object(v.a)(i-Object(y.a)(),e),i>1&&(t.scrollTop=n-o)}}})),Y[j.DOWN],(function(){var e=E.a.getActiveDocumentViewerKey(r());if(!g()&&!l.a.isContinuousDisplayMode(e)){var t=l.a.getScrollViewElement(e),n=t.scrollTop,o=t.clientHeight,i=t.scrollHeight;Math.abs(n+o-i)<=1&&Object(v.a)(l.a.getCurrentPage(e)+Object(y.a)())}})),Y[j.SWITCH_PAN],{keyup:this.createToolHotkeyHandler((function(e){e.preventDefault(),Object(p.a)(n,t.prevToolName),t.prevToolName=null})),keydown:this.createToolHotkeyHandler((function(e){e.preventDefault(),"Pan"!==l.a.getToolMode().name&&(t.prevToolName=l.a.getToolMode().name,Object(p.a)(n,"Pan"))}))}),Y[j.SELECT],(function(e){if(e.preventDefault(),!O.a.getStack().length){Object(p.a)(n,"AnnotationEdit","");var t=E.a.getIsPanelInFlyout(r(),T.j.RUBBER_STAMP_PANEL),i=E.a.getIsPanelInFlyout(r(),T.j.SIGNATURE_LIST_PANEL);o(w.a.closeElements([C.a.ANNOTATION_POPUP,C.a.TEXT_POPUP,C.a.CONTEXT_MENU_POPUP,"toolStylePopup",C.a.ANNOTATION_STYLE_POPUP,C.a.SIGNATURE_MODAL,"customStampModal",C.a.PRINT_MODAL,"rubberStampOverlay",C.a.FILTER_MODAL,C.a.SIGNATURE_LIST_PANEL,C.a.RUBBER_STAMP_PANEL,null==t?void 0:t.dataElement,null==i?void 0:i.dataElement]))}})),Y[j.PAN],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.PAN)}))),Y[j.ARROW],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.ARROW)}))),Y[j.CALLOUT],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.CALLOUT)}))),Y[j.ERASER],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.ERASER)}))),Y[j.FREEHAND],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.FREEHAND)}))),Y[j.IMAGE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.STAMP)}))),L(L(L(L(L(L(L(L(L(L(e,Y[j.LINE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.LINE)}))),Y[j.STICKY_NOTE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.STICKY)}))),Y[j.ELLIPSE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.ELLIPSE)}))),Y[j.RECTANGLE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.RECTANGLE)}))),Y[j.RUBBER_STAMP],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.RUBBER_STAMP)}))),Y[j.FREETEXT],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.FREETEXT)}))),Y[j.SIGNATURE],this.createToolHotkeyHandler((function(){if(r().featureFlags.customizableUI)Object(p.a)(n,i.SIGNATURE);else{o(w.a.setToolbarGroup("toolbarGroup-FillAndSign",!1));var e=Object(b.a)().querySelector('[data-element="signatureToolGroupButton"] .Button');null==e||e.click();var t=Object(b.a)().querySelector(".signature-row-content");null==t||t.click()}}))),Y[j.SQUIGGLY],this.createToolHotkeyHandler((function(){l.a.getSelectedText()?Object(h.a)(o,window.Core.Annotations.TextSquigglyAnnotation):Object(p.a)(n,"AnnotationCreateTextSquiggly")}))),Y[j.HIGHLIGHT],this.createToolHotkeyHandler((function(){l.a.getSelectedText()?Object(h.a)(o,window.Core.Annotations.TextHighlightAnnotation):Object(p.a)(n,"AnnotationCreateTextHighlight")}))),Y[j.STRIKEOUT],this.createToolHotkeyHandler((function(){l.a.getSelectedText()?Object(h.a)(o,window.Core.Annotations.TextStrikeoutAnnotation):Object(p.a)(n,"AnnotationCreateTextStrikeout")}))),L(L(L(L(e,Y[j.UNDERLINE],this.createToolHotkeyHandler((function(){l.a.getSelectedText()?Object(h.a)(o,window.Core.Annotations.TextUnderlineAnnotation):Object(p.a)(n,"AnnotationCreateTextUnderline")}))),Y[j.HOME],(function(){if(!g()&&!l.a.isContinuousDisplayMode(e)){var e=E.a.getActiveDocumentViewerKey(r());Object(v.a)(1,e)}})),Y[j.END],this.createToolHotkeyHandler((function(){if(!g()&&!l.a.isContinuousDisplayMode(e)){var e=E.a.getActiveDocumentViewerKey(r()),t=E.a.getTotalPages(r());Object(v.a)(t,e)}}))),Y[j.CLOSE],(function(){$&&($(),$=null)}))},createToolHotkeyHandler:function(e){var t=this.store.getState;return function(){var n=E.a.getOpenElements(t()),o=l.a.getToolMode().name,r=o===window.Core.Tools.ToolNames.SIGNATURE&&n.signatureModal;g()||r||e.apply(void 0,arguments)}},getShortcutKeyMap:function(){var e=this.store.getState;return E.a.getShortcutKeyMap(e())},setShortcutKey:function(e,t){var n=this.store.dispatch,o=A({},this.getShortcutKeyMap());this.off(o[e]),l.a.getAnnotationManager().isReadOnlyModeEnabled()||this.on(t,this.keyHandlerMap[Y[e]]),o[e]=t,n(w.a.setShortcutKeyMap(o))},hasConflict:function(e,t){var n,o=this.getShortcutKeyMap(),r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=P(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(Object.keys(o).filter((function(t){return t!==e})).map((function(e){return o[e]})));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===t||Z(i).includes(t))return!0}}catch(e){r.e(e)}finally{r.f()}return!1},enableShortcut:function(e){this.setShortcutKey(e,this.getShortcutKeyMap()[e])},disableShortcut:function(e){this.off(this.getShortcutKeyMap()[e])},restoreHotkeys:function(){var e=A({},Q);for(var t in this.on(),G)!1===e[G[t]]&&this.off(G[t])},setViewOnlyMode:function(e){var t=this,n=this.getShortcutKeyMap();if(e)this.originalUnbindedHotkeysMap=A({},J),this.preViewOnlyEnabledShortcuts={},Object.keys(n).forEach((function(e){var o=n[e];if(o){var r=o.toLowerCase(),i=!0;if(r.includes(", "))i=!Z(r).some((function(e){return!1===t.originalUnbindedHotkeysMap[e]}));else i=!1!==t.originalUnbindedHotkeysMap[r];t.preViewOnlyEnabledShortcuts[e]=i}})),this.off(),N().forEach((function(e){var o=n[e];if(o&&t.preViewOnlyEnabledShortcuts[e]){var r=t.keyHandlerMap[Y[e]];r&&t.on(o,r)}}));else{if(this.off(),this.originalUnbindedHotkeysMap){for(var o in J)delete J[o];Object.assign(J,this.originalUnbindedHotkeysMap)}Object.keys(n).forEach((function(e){var o,r=n[e],i=null===(o=t.preViewOnlyEnabledShortcuts)||void 0===o?void 0:o[e];if(r&&!1!==i){var a=t.keyHandlerMap[Y[e]];a&&t.on(r,a)}})),delete this.preViewOnlyEnabledShortcuts,delete this.originalUnbindedHotkeysMap}}};function ne(e,t){if(!e||!Array.isArray(t))return!1;var n=X[e];return n&&t.includes(n)}var oe=function(e){$=e},re=function(){return $};t.g=Object.create(te)},function(e,t,n){n(658),n(664),n(665),n(666),n(667),n(668)},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return p}));n(9),n(10),n(26),n(40),n(24),n(41),n(42),n(8),n(56);var o,r=n(45),i=n(54),a=n(23);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function u(){}function s(){}function d(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(c(t={},o,(function(){return this})),t),f=d.prototype=u.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,r,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=d,c(f,"constructor",d),c(d,"constructor",s),s.displayName="GeneratorFunction",c(d,r,"GeneratorFunction"),c(f),c(f,r,"Generator"),c(f,o,(function(){return this})),c(f,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:m}})()}function c(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(c=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){c(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function u(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}var s=function(){return o||(o=new window.Core.EventHandler),o},d=function(){var e,t=(e=l().m((function e(t,n){var o,c,u=arguments;return l().w((function(e){for(;;)switch(e.n){case 0:if(o=u.length>2&&void 0!==u[2]?u[2]:null,!CustomEvent||r.f){e.n=2;break}if(t!==i.a.VISIBILITY_CHANGED||!0!==n.isVisible){e.n=1;break}return e.n=1,new Promise((function(e){var t='[data-element="'.concat(n.element,'"]'),o=Object(a.a)().querySelector(t);if(o)return e();var r=new MutationObserver((function(){(o=Object(a.a)().querySelector(t))&&(r.disconnect(),e())}));r.observe(Object(a.a)(),{childList:!0,subtree:!0})}));case 1:c=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}),e.n=3;break;case 2:(c=document.createEvent("Event")).initEvent(t,!0,!0),c.detail=n;case 3:if(!o){e.n=4;break}o.dispatchEvent(c),e.n=6;break;case 4:return e.n=5,s().triggerAsync(t,c);case 5:window.dispatchEvent(c);case 6:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){u(i,o,r,a,l,"next",e)}function l(e){u(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}();t.a=d;var p=function(e){d(i.a.LOAD_ERROR,e)}},function(e,t,n){var o=n(52),r=n(158).f,i=n(159),a=n(112),l=n(424),c=n(504),u=n(278);e.exports=function(e,t){var n,s,d,p,f,m=e.target,h=e.global,b=e.stat;if(n=h?o:b?o[m]||l(m,{}):(o[m]||{}).prototype)for(s in t){if(p=t[s],d=e.noTargetGet?(f=r(n,s))&&f.value:n[s],!u(h?s:m+(b?".":"#")+s,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,s,p,e)}}},function(e,t,n){var o=n(58),r=n(528);o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o={IMAGE:"image",PDF:"pdf",OFFICE:"office",LEGACY_OFFICE:"legacyOffice",OFFICE_EDITOR:"officeEditor",WEBVIEWER_SERVER:"webviewerServer",XOD:"xod",CONTENT_EDIT:"contentEdit",ALL:"all",SPREADSHEET_EDITOR:"spreadsheetEditor"}},function(e,t,n){"use strict";n(9),n(77),n(26),n(59);var o=n(2),r=n.n(o),i=n(0),a=n.n(i),l=n(6),c=n(4),u=["type","children","dataElement","ariaLabel"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var d={id:r.a.string,children:r.a.node,dataElement:r.a.string,type:r.a.string,ariaLabel:r.a.string};var p=a.a.forwardRef((function(e,t){var n=e.type,o=void 0===n?"div":n,r=e.children,i=e.dataElement,d=e.ariaLabel,p=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,u);return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{return Object(l.e)(e)}catch(e){e.message}return t}((function(e){return c.a.isElementDisabled(e,i)}))?null:"button"===o?a.a.createElement("button",s({ref:t,"data-element":i,"aria-label":d},p),r):a.a.createElement("div",s({ref:t,"data-element":i},p),r)}));p.displayName="DataElementWrapper",p.propTypes=d;var f=p;t.a=f},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));n(9),n(10),n(14),n(34),n(27),n(12),n(49),n(24),n(48),n(50),n(11),n(31),n(13),n(32),n(118),n(33),n(30),n(35),n(8),n(17),n(115);var o,r=n(0),i=n.n(r),a=n(5),l=n(7),c=n(43),u=n(15),s=n.n(u),d=n(78);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=m(m(m(m(m({},(h(h(h(h(h(h(h(h(h(h(o={},l.u.UNDO,{dataElement:"undoButton",presetDataElement:a.a.UNDO_PRESET_BUTTON,icon:"icon-operation-undo",label:"action.undo",title:"action.undo",hidden:!1}),l.u.REDO,{dataElement:"redoButton",presetDataElement:a.a.REDO_PRESET_BUTTON,icon:"icon-operation-redo",label:"action.redo",title:"action.redo",hidden:!1}),l.u.FORM_FIELD_EDIT,{dataElement:"formFieldEditButton",presetDataElement:a.a.FORM_FIELD_EDIT_PRESET_BUTTON,icon:"ic-fill-and-sign",label:"action.formFieldEditMode",title:"action.formFieldEditMode",hidden:!1}),l.u.CONTENT_EDIT,{dataElement:"contentEditButton",presetDataElement:a.a.CONTENT_EDIT_PRESET_BUTTON,icon:"icon-content-edit",label:"action.contentEditMode",title:"action.contentEditMode",hidden:!1}),l.u.NEW_DOCUMENT,{dataElement:a.a.NEW_DOCUMENT_BUTTON,presetDataElement:a.a.NEW_DOCUMENT_PRESET_BUTTON,icon:"icon-plus-sign",label:"action.newDocument",title:"action.newDocument",isActive:!1,hidden:!1}),l.u.FILE_PICKER,{dataElement:a.a.FILE_PICKER_BUTTON,presetDataElement:a.a.FILE_PICKER_PRESET_BUTTON,icon:"icon-header-file-picker-line",label:"action.openFile",title:"action.openFile",hidden:!1}),l.u.DOWNLOAD,{dataElement:a.a.DOWNLOAD_BUTTON,presetDataElement:a.a.DOWNLOAD_PRESET_BUTTON,icon:"icon-download",label:"action.download",title:"action.download",hidden:!1}),l.u.SAVE_AS,{dataElement:a.a.SAVE_AS_BUTTON,presetDataElement:a.a.SAVE_AS_PRESET_BUTTON,icon:"icon-save",label:"saveModal.saveAs",title:"saveModal.saveAs",isActive:!1,hidden:!1}),l.u.PRINT,{dataElement:a.a.PRINT_BUTTON,presetDataElement:a.a.PRINT_PRESET_BUTTON,icon:"icon-header-print-line",label:"action.print",title:"action.print",isActive:!1,hidden:!1}),l.u.CREATE_PORTFOLIO,{dataElement:a.a.CREATE_PORTFOLIO_BUTTON,presetDataElement:a.a.CREATE_PORTFOLIO_PRESET_BUTTON,icon:"icon-pdf-portfolio",label:"portfolio.createPDFPortfolio",title:"portfolio.createPDFPortfolio",isActive:!1,hidden:!1}),h(h(h(h(h(h(h(h(h(h(o,l.u.SETTINGS,{dataElement:a.a.SETTINGS_BUTTON,presetDataElement:a.a.SETTINGS_PRESET_BUTTON,icon:"icon-header-settings-line",label:"option.settings.settings",title:"option.settings.settings",isActive:!1,hidden:!1}),l.u.FULLSCREEN,{dataElement:a.a.FULLSCREEN_BUTTON,presetDataElement:a.a.FULLSCREEN_PRESET_BUTTON,icon:"icon-header-full-screen",label:"action.enterFullscreen",title:"action.enterFullscreen",hidden:!1}),l.u.TOGGLE_ACCESSIBILITY_MODE,{dataElement:l.u.TOGGLE_ACCESSIBILITY_MODE,presetDataElement:a.a.TOGGLE_ACCESSIBILITY_MODE_PRESET_BUTTON,icon:"icon-accessibility-mode",label:"accessibility.accessibilityMode",title:"accessibility.accessibilityMode",hidden:!1}),l.u.BOLD,{dataElement:"boldButton",presetDataElement:a.a.BOLD_PRESET_BUTTON,icon:"icon-text-bold",label:"officeEditor.bold",title:"officeEditor.bold",hidden:!1}),l.u.ITALIC,{dataElement:"italicButton",presetDataElement:a.a.ITALIC_PRESET_BUTTON,icon:"icon-text-italic",label:"officeEditor.italic",title:"officeEditor.italic",hidden:!1}),l.u.UNDERLINE,{dataElement:"underlineButton",presetDataElement:a.a.UNDERLINE_PRESET_BUTTON,icon:"icon-text-underline",label:"officeEditor.underline",title:"officeEditor.underline",hidden:!1}),l.u.STRIKETHROUGH,{dataElement:"strikethroughButton",presetDataElement:a.a.STRIKETHROUGH_PRESET_BUTTON,icon:"icon-tool-text-manipulation-strikethrough",label:"spreadsheetEditor.strikethrough",title:"spreadsheetEditor.strikethrough",hidden:!1}),l.u.STRIKEOUT,{dataElement:"strikeoutButton",presetDataElement:a.a.STRIKEOUT_PRESET_BUTTON,icon:"icon-tool-text-manipulation-strikethrough",label:"spreadsheetEditor.strikeout",title:"spreadsheetEditor.strikeout",hidden:!1}),l.u.INCREASE_INDENT,{dataElement:"increaseIndentButton",presetDataElement:a.a.INCREASE_INDENT_PRESET_BUTTON,icon:"ic-indent-increase",label:"officeEditor.increaseIndent",title:"officeEditor.increaseIndent",hidden:!1}),l.u.DECREASE_INDENT,{dataElement:"decreaseIndentButton",presetDataElement:a.a.DECREASE_INDENT_PRESET_BUTTON,icon:"ic-indent-decrease",label:"officeEditor.decreaseIndent",title:"officeEditor.decreaseIndent",hidden:!1}),h(h(h(h(h(h(h(h(h(h(o,l.u.OE_TOGGLE_NON_PRINTING_CHARACTERS,{dataElement:l.u.OE_TOGGLE_NON_PRINTING_CHARACTERS,presetDataElement:a.a.OFFICE_EDITOR_TOGGLE_NON_PRINTING_CHARACTERS_BUTTON,icon:"icon-office-editor-toggle-non-printing-characters",label:"officeEditor.nonPrintingCharacters",title:"officeEditor.nonPrintingCharacters",hidden:!1}),l.u.ALIGN_LEFT,{dataElement:"alignLeftButton",presetDataElement:a.a.JUSTIFY_LEFT_PRESET_BUTTON,icon:"icon-menu-left-align",label:"officeEditor.leftAlign",title:"officeEditor.leftAlign",hidden:!1}),l.u.ALIGN_CENTER,{dataElement:"alignCenterButton",presetDataElement:a.a.JUSTIFY_CENTER_PRESET_BUTTON,icon:"icon-menu-center-align",label:"officeEditor.centerAlign",title:"officeEditor.centerAlign",hidden:!1}),l.u.ALIGN_RIGHT,{dataElement:"alignRightButton",presetDataElement:a.a.JUSTIFY_RIGHT_PRESET_BUTTON,icon:"icon-menu-right-align",label:"officeEditor.rightAlign",title:"officeEditor.rightAlign",hidden:!1}),l.u.JUSTIFY_BOTH,{dataElement:"justifyBothButton",presetDataElement:a.a.JUSTIFY_BOTH_PRESET_BUTTON,icon:"icon-menu-both-align",label:"officeEditor.justify",title:"officeEditor.justify",hidden:!1}),l.u.INSERT_IMAGE,{dataElement:l.u.INSERT_IMAGE,presetDataElement:a.a.OFFICE_EDITOR_TOOLS_HEADER_INSERT_IMAGE,icon:"icon-tool-image-line",label:"officeEditor.image",title:"officeEditor.insertImage"}),l.u.OE_COLOR_PICKER,{dataElement:a.a.OFFICE_EDITOR_FLYOUT_COLOR_PICKER,presetDataElement:a.a.OFFICE_EDITOR_COLOR_PICKER_PRESET_BUTTON,icon:"icon-office-editor-circle",label:"officeEditor.textColor",title:"officeEditor.textColor",hidden:!1}),l.u.COMPARE,{dataElement:"comparePanelToggle",presetDataElement:"comparePanelToggle",title:"action.comparePages",label:"action.comparePages",icon:"icon-header-compare"}),l.u.NEW_SPREADSHEET,{dataElement:l.u.NEW_SPREADSHEET,presetDataElement:a.a.NEW_SPREADSHEET_PRESET_BUTTON,icon:"icon-plus-sign",label:"action.newSpreadsheetDocument",title:"action.newSpreadsheetDocument",isActive:!1}),l.u.CELL_MERGE_TOGGLE,{dataElement:"cellMergeToggle",presetDataElement:a.a.MERGE_TOGGLE_BUTTON,icon:"ic-merge",label:"spreadsheetEditor.merge",title:"spreadsheetEditor.merge",hidden:!1}),h(h(h(h(h(h(h(h(h(o,l.u.CELL_UNMERGE_TOGGLE,{dataElement:"cellUnmergeToggle",presetDataElement:a.a.UNMERGE_TOGGLE_BUTTON,icon:"ic-unmerge",label:"spreadsheetEditor.unmerge",title:"spreadsheetEditor.unmerge",hidden:!1}),l.u.CELL_FORMAT_CURRENCY,{dataElement:"cellFormatAsCurrencyButton",presetDataElement:a.a.CELL_FORMAT_CURRENCY_BUTTON,icon:"ic-currency-dollar",label:"spreadsheetEditor.formatAsCurrency",title:"spreadsheetEditor.formatAsCurrency",hidden:!1}),l.u.CELL_COPY,{dataElement:"cellCopy",presetDataElement:a.a.CELL_COPY_BUTTON,icon:"icon-copy",label:"action.copy",title:"action.copy",hidden:!1}),l.u.CELL_CUT,{dataElement:"cellCut",presetDataElement:a.a.CELL_CUT_BUTTON,icon:"icon-cut",label:"action.cut",title:"action.cut",hidden:!1}),l.u.CELL_PASTE,{dataElement:"cellPaste",presetDataElement:a.a.CELL_PASTE_BUTTON,icon:"icon-paste",label:"action.paste",title:"action.paste",hidden:!1}),l.u.ALIGN_TOP,{dataElement:l.u.ALIGN_TOP,presetDataElement:a.a.CELL_TEXT_ALIGN_TOP_BUTTON,icon:"ic-align-top-ios",label:"spreadsheetEditor.topAlign",title:"spreadsheetEditor.topAlign",isActive:!1}),l.u.ALIGN_MIDDLE,{dataElement:l.u.ALIGN_MIDDLE,presetDataElement:a.a.CELL_TEXT_ALIGN_MIDDLE_BUTTON,icon:"ic-align-middle-ios",label:"spreadsheetEditor.middleAlign",title:"spreadsheetEditor.middleAlign",isActive:!1}),l.u.ALIGN_BOTTOM,{dataElement:l.u.ALIGN_BOTTOM,presetDataElement:a.a.CELL_TEXT_ALIGN_BOTTOM_BUTTON,icon:"ic-align-bottom-ios",label:"spreadsheetEditor.bottomAlign",title:"spreadsheetEditor.bottomAlign",isActive:!1}),l.u.SPREADSHEET_EDITOR_INSERT_IMAGE_BUTTON,{dataElement:"spreadsheetEditorInsertImageButton",presetDataElement:a.a.SPREADSHEET_EDITOR_INSERT_IMAGE_BUTTON,icon:"icon-tool-image-line"}))),l.b.reduce((function(e,t){if("divider"===t)return e;var n=t.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}));return e[t]={dataElement:"".concat(t),presetDataElement:"".concat(t,"PresetButton"),icon:"ic-".concat(n),label:"spreadsheetEditor.".concat(t),title:"spreadsheetEditor.".concat(t),isActive:!1},e}),{})),l.e.reduce((function(e,t){if("divider"===t)return e;var n=t.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}));return e[t]={dataElement:"".concat(t),presetDataElement:"".concat(t,"PresetButton"),icon:"ic-text-".concat(n),label:"spreadsheetEditor.".concat(t),title:"spreadsheetEditor.".concat(t),isActive:!1},e}),{})),Object.keys(l.c).reduce((function(e,t){if("divider"===t)return e;var n=t.toLowerCase();return e["".concat(t)]={dataElement:"".concat(t),presetDataElement:"".concat(t),icon:"ic-border-".concat(n),label:"spreadsheetEditor.".concat(n),title:"spreadsheetEditor.".concat(n),isActive:!1},e}),{})),l.d.reduce((function(e,t){if("divider"===t)return e;var n=t.icon,o=t.label;if(!n){var r=o.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}));r=r.replace(/-format/g,""),n="ic-".concat(r)}return e[o]={dataElement:o,presetDataElement:"".concat(o,"PresetButton"),icon:n,label:"spreadsheetEditor.".concat(o),title:"spreadsheetEditor.".concat(o),isActive:!1},e}),{})),g=function(e){var t=e.buttonType,n=e.isDisabled,o=e.onClick,r=e.isFullScreen,a=e.isActive,u=e.style,p=e.className,f=m({},b[t]);t===l.u.FULLSCREEN&&(f.icon=r?"icon-header-full-screen-exit":"icon-header-full-screen",f.title=r?"action.exitFullscreen":"action.enterFullscreen");var g=e.dataElement||f.presetDataElement,y=e.icon||f.icon,v=e.title||f.title;return i.a.createElement(c.a,{className:s()(h(h({PresetButton:!0},g,!0),p,!0)),dataElement:g,img:y,title:v,onClick:o,disabled:n,isActive:a,style:u,onClickAnnouncement:Object(d.d)(v)})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=3,r=2,i=1},function(e,t,n){"use strict";var o=n(58),r=n(70),i=n(435),a=n(129),l=n(97),c=n(436),u=r("".indexOf);o({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(l(a(this)),l(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.d(t,"s",(function(){return y})),n.d(t,"p",(function(){return v})),n.d(t,"q",(function(){return w})),n.d(t,"d",(function(){return E})),n.d(t,"g",(function(){return C})),n.d(t,"f",(function(){return O})),n.d(t,"l",(function(){return T})),n.d(t,"m",(function(){return x})),n.d(t,"c",(function(){return A})),n.d(t,"b",(function(){return k})),n.d(t,"k",(function(){return L})),n.d(t,"o",(function(){return M})),n.d(t,"a",(function(){return R})),n.d(t,"t",(function(){return N})),n.d(t,"e",(function(){return D})),n.d(t,"n",(function(){return F})),n.d(t,"j",(function(){return B})),n.d(t,"h",(function(){return H})),n.d(t,"r",(function(){return V})),n.d(t,"u",(function(){return U})),n.d(t,"i",(function(){return G}));n(9),n(10),n(14),n(32),n(38),n(34),n(82),n(27),n(46),n(12),n(84),n(44),n(118),n(22),n(33),n(18),n(26),n(30),n(633),n(266),n(40),n(49),n(24),n(48),n(50),n(41),n(35),n(42),n(8),n(88),n(137),n(56),n(19),n(64),n(11),n(31),n(13),n(93);var o=n(1),r=n(60),i=n(25),a=n(107),l=n(537),c=n(174),u=n(5);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return p(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(p(t={},o,(function(){return this})),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,r,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,r,"GeneratorFunction"),p(f),p(f,r,"Generator"),p(f,o,(function(){return this})),p(f,"toString",(function(){return"[object Generator]"})),(d=function(){return{w:i,m:m}})()}function p(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(p=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){p(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){b(i,o,r,a,l,"next",e)}function l(e){b(i,o,r,a,l,"throw",e)}a(void 0)}))}}function y(e){return i.h.includes(e)}function v(){var e;return(null===(e=o.a.getDocument())||void 0===e?void 0:e.getType())===r.a.OFFICE_EDITOR}function w(){var e;return(null===(e=o.a.getDocument())||void 0===e?void 0:e.getType())===r.a.SPREADSHEET_EDITOR}var E=function(e,t,n){var o=t?t/n:e;switch(Object.values(i.p).reduce((function(e,t){var n=Math.abs(e-o),r=Math.abs(t-o);return n===r?e<t?e:t:r<n?t:e}))){case 1:return"Single";case 1.15:return"1.15";case 1.5:return"1.5";case 2:return"Double";default:return"Single"}},C=function(e){var t=e||{},n=t.pointSize,o=t.color;if(!n||!o)return"Normal Text";var r="".concat(n,"pt"),l=a.b.black;return l&&(l=Object(c.e)(o.r,o.g,o.b).slice(0,-2)),Object.keys(i.b).find((function(e){return i.b[e].fontSize===r&&i.b[e].color===l}))||"Normal Text"},O=function(e){return e?new window.Core.Annotations.Color(e.r,e.g,e.b,1):i.d},T=function(){return Object.keys(i.p).map((function(e){var t=e.toLowerCase().split(".").join("");return{label:"officeEditor.lineSpacingOptions.".concat(t),onClick:function(){S(e)},dataElement:"line-spacing-button-".concat(t)}}))},S=function(e){var t=i.p[e];o.a.getOfficeEditor().updateParagraphStyle({lineHeightMultiplier:t})},x=function(e,t){return t.map((function(t){var n=e.toLowerCase();return{label:"officeEditor.".concat(n,"Dropdown.").concat(t.enum),onClick:function(){o.a.getOfficeEditor().setListPreset(t.enum)},dataElement:"office-editor-list-type-".concat(n,"-").concat(t.enum),icon:t.img}}))},A=[{key:"pageBreak",label:"".concat(i.z,"pageBreak"),description:"".concat(i.z,"pageBreakDescription"),icon:"icon-office-editor-page-break-split",onClick:function(){return o.a.getOfficeEditor().insertPageBreak()}},{key:"sectionBreakNextPage",label:"".concat(i.z,"sectionBreakNextPage"),description:"".concat(i.z,"sectionBreakNextPageDescription"),icon:"icon-office-editor-page-break",onClick:function(){return o.a.getOfficeEditor().insertSectionBreakNextPage()}},{key:"sectionBreakContinuous",label:"".concat(i.z,"sectionBreakContinuous"),description:"".concat(i.z,"sectionBreakContinuousDescription"),icon:"icon-page-manipulation-extract",onClick:function(){return o.a.getOfficeEditor().insertSectionBreakContinuous()}}];function _(e,t){return P.apply(this,arguments)}function P(){return(P=g(d().m((function e(t,n){var r,a,l,c,u;return d().w((function(e){for(;;)switch(e.p=e.n){case 0:return r=this.top,a=this.left,l=this.bottom,c=this.right,e.p=1,e.n=2,o.a.getOfficeEditor().setSectionMargins({top:r,bottom:l,left:a,right:c},i.o.CM);case 2:e.n=4;break;case 3:e.p=3,u=e.v,console.error("Error applying margins:",u),N(t,n,i.C.MARGIN);case 4:return e.a(2)}}),e,this,[[1,3]])})))).apply(this,arguments)}var k=[h(h(h(h(h({key:"normal",label:"".concat(i.z,"normal")},i.r.TOP,i.t.NORMAL),i.r.BOTTOM,i.t.NORMAL),i.r.LEFT,i.t.NORMAL),i.r.RIGHT,i.t.NORMAL),"onClick",_),h(h(h(h(h({key:"narrow",label:"".concat(i.z,"narrow")},i.r.TOP,i.t.NARROW),i.r.BOTTOM,i.t.NARROW),i.r.LEFT,i.t.NARROW),i.r.RIGHT,i.t.NARROW),"onClick",_),h(h(h(h(h({key:"moderate",label:"".concat(i.z,"moderate")},i.r.TOP,i.t.NORMAL),i.r.BOTTOM,i.t.NORMAL),i.r.LEFT,i.t.MODERATE),i.r.RIGHT,i.t.MODERATE),"onClick",_),h(h(h(h(h({key:"wide",label:"".concat(i.z,"wide")},i.r.TOP,i.t.NORMAL),i.r.BOTTOM,i.t.NORMAL),i.r.LEFT,i.t.WIDE),i.r.RIGHT,i.t.WIDE),"onClick",_),{key:"customMargins",label:"".concat(i.z,"customMargins"),description:"".concat(i.z,"customMarginsDescription"),onClick:function(e,t){e(t.openElement(u.a.OFFICE_EDITOR_MARGINS_MODAL))}}],L=function(e){return k.map((function(t){return"customMargins"===t.key?t:m(m({},t),Object(l.a)(Object.values(i.r),(function(n){var o=D(t[n],i.o.CM,e);return V(o)})))}))},M=function(e){var t=Object.keys(i.o).find((function(t){return i.o[t]===e}));return i.s[t]||i.s.CM};function j(e,t){return I.apply(this,arguments)}function I(){return(I=g(d().m((function e(t,n){var r,a;return d().w((function(e){for(;;)switch(e.p=e.n){case 0:return r=this.numberOfColumns,e.p=1,e.n=2,o.a.getOfficeEditor().setEqualSectionColumns(r);case 2:e.n=4;break;case 3:e.p=3,a=e.v,console.error("Error setting equal section columns to ".concat(r,":"),a),N(t,n,i.C.COLUMN);case 4:return e.a(2)}}),e,this,[[1,3]])})))).apply(this,arguments)}var R=[{key:"singleColumn",label:"".concat(i.z,"singleColumn"),numberOfColumns:1,onClick:j},{key:"twoColumn",label:"".concat(i.z,"twoColumn"),numberOfColumns:2,onClick:j},{key:"threeColumn",label:"".concat(i.z,"threeColumn"),numberOfColumns:3,onClick:j},{key:"customColumn",label:"".concat(i.z,"customColumn"),description:"".concat(i.z,"customColumnDescription"),onClick:function(e,t){e(t.openElement(u.a.OFFICE_EDITOR_COLUMNS_MODAL))}}],N=function(e,t,n){var o;switch(n){case i.C.COLUMN:o="warning.officeEditorPageLayout.columnsMessage";break;case i.C.MARGIN:o="warning.officeEditorPageLayout.marginsMessage";break;default:o=""}var r={message:o,title:"warning.officeEditorPageLayout.title",confirmBtnTxt:"action.ok"};e(t.showWarningMessage(r))},D=window.Core.Document.OfficeEditor.Layout.convertBetweenUnits,F=function(e){return D(i.u,i.o.PHYSICAL_POINT,e)},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return null==e||isNaN(e)||0===e?"0":parseFloat(e.toFixed(t)).toString()},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(null==e||isNaN(e))return 0;var n=Math.pow(10,t);return Math.floor(e*n)/n},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return null==e||isNaN(e)?0:parseFloat(e.toFixed(t))},U=function(e,t){if(!Number.isFinite(e)||e<=0)return 0;var n=Math.max(0,t);return e>n?V(n):e},G=function(){setTimeout((function(){o.a.getOfficeEditor().focusContent()}),0)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u}));n(38);var o=n(23),r=n(226),i=n(117),a=function(){var e;return window.isApryseWebViewerWebComponent?(null===(e=Object(o.a)())||void 0===e?void 0:e.host.clientWidth)<=i.a:Object(r.a)(["(max-width: ".concat(i.a,"px)")],[!0],!1)},l=function(){var e,t;return window.isApryseWebViewerWebComponent?(null===(e=Object(o.a)())||void 0===e?void 0:e.host.clientWidth)>i.a&&(null===(t=Object(o.a)())||void 0===t?void 0:t.host.clientWidth)<=i.b:Object(r.a)(["(min-width: ".concat(i.a+1,"px) and (max-width: ").concat(i.b,"px)")],[!0],!1)},c=function(){var e;return window.isApryseWebViewerWebComponent?(null===(e=Object(o.a)())||void 0===e?void 0:e.host.clientWidth)<=i.b:Object(r.a)(["(max-width: ".concat(i.b,"px)")],[!0],!1)},u=function(){var e;return window.isApryseWebViewerWebComponent?(null===(e=Object(o.a)())||void 0===e?void 0:e.host.clientWidth)>i.b:Object(r.a)(["(min-width: ".concat(i.b+1,"px)")],[!0],!1)}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(27),n(12),n(33),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(11),n(31),n(13);var o=n(0),r=n.n(o),i=n(306),a=n(6),l=n(15),c=n.n(l),u=n(2),s=n.n(u),d=n(51),p=(n(578),n(155)),f=n(4),m=n(103),h=n(7);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=Object(o.forwardRef)((function(e,t){var n,o,l,u=Object(a.e)((function(t){return f.a.getCustomElementOverrides(t,e.dataElement)}));if(u){u=y({},u);var s=Object(m.b)(u);s&&(u.icon=s)}var b=y(y({},e),u),g=b.label,w=b.secondaryLabel,E=b.title,C=b.dataElement,O=b.disabled,T=b.additionalClass,S=void 0===T?"":T,x=b.ariaKeyshortcuts,A=b.children,_=b.index,P=b.isChild,k=b.elementDOM,L=b.onKeyDownHandler,M=b.onClickHandler,j=b.isActive,I=(null===(n=u)||void 0===n?void 0:n.icon)||(null===(o=u)||void 0===o?void 0:o.img)||e.icon;if(!u&&(null===(l=e.flyoutItem)||void 0===l?void 0:l.type)===h.k.PRESET_BUTTON&&O){var R=Object(m.b)(e.flyoutItem,e.allFlyoutItems,O);R&&(I=R)}var N=Object(i.a)().t;return r.a.createElement("li",{key:g,ref:t,draggable:e.draggable,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,className:c()(v({"flyout-item-container":!0,disabled:O,active:j},S,!0))},function(){if(k)return r.a.createElement("div",{className:"custom-element-wrapper"},I,k);var t=null!=g?g:E,n="string"==typeof t?N(t):t,o="string"==typeof n?n:null,i="active"===e.additionalClass;return r.a.createElement("button",{className:"flyout-item",disabled:O,onClick:function(t){var n,o;null===(n=Object(p.b)())||void 0===n||n(C,{type:p.a.BUTTON}),null!==(o=u)&&void 0!==o&&o.onClick?u.onClick(t):M(e,P,_)(t)},"aria-disabled":O,onKeyDown:L,"data-element":C,"aria-label":o,"aria-pressed":i},r.a.createElement("div",{className:"icon-label-wrapper"},I,n&&r.a.createElement("span",{className:"flyout-item-label"},n)),x&&r.a.createElement("span",{className:"hotkey-wrapper"},"(".concat(x,")")),w&&r.a.createElement("span",{className:"secondary-label"},w),A&&r.a.createElement(d.a,{className:"icon-open-submenu",glyph:"icon-chevron-right"}))}())}));w.propTypes={label:s.a.oneOfType([s.a.string,s.a.object]),secondaryLabel:s.a.string,title:s.a.string,dataElement:s.a.string,disabled:s.a.bool,additionalClass:s.a.string,icon:s.a.node,ariaKeyshortcuts:s.a.string,children:s.a.array,index:s.a.number,isChild:s.a.bool,elementDOM:s.a.node,onKeyDownHandler:s.a.func,onClickHandler:s.a.func,draggable:s.a.bool,onDragStart:s.a.func,onDragEnd:s.a.func,flyoutItem:s.a.object,allFlyoutItems:s.a.array},w.displayName="FlyoutItemContainer";var E=w;t.a=E},function(e,t,n){"use strict";t.a={Measurement:"Measurement",Ribbons:"Ribbons",Annotations:"Annotations",Download:"Download",FilePicker:"FilePicker",LocalStorage:"LocalStorage",NotesPanel:"NotesPanel",InlineComment:"InlineComment",RightClickAnnotationPopup:"RightClickAnnotationPopup",Print:"Print",Redaction:"Redaction",TextSelection:"TextSelection",TouchScrollLock:"TouchScrollLock",Copy:"Copy",MultipleViewerMerging:"MultipleViewerMerging",ThumbnailMerging:"ThumbnailMerging",ThumbnailReordering:"ThumbnailReordering",ThumbnailMultiselect:"ThumbnailMultiselect",PageNavigation:"PageNavigation",MouseWheelZoom:"MouseWheelZoom",Search:"Search",MathSymbols:"MathSymbols",OutlineEditing:"OutlineEditing",NotesPanelVirtualizedList:"NotesPanelVirtualizedList",NotesShowLastUpdatedDate:"NotesShowLastUpdatedDate",MultiTab:"MultiTab",ChangeView:"ChangeView",ContentEdit:"ContentEdit",MultiViewerMode:"MultiViewerMode",Initials:"Initials",SavedSignaturesTab:"SavedSignaturesTab",Panel:"Panel",LegacyRichTextPopup:"LegacyRichTextPopup",ComparePages:"ComparePages",Portfolio:"Portfolio"}},function(e,t,n){"use strict";var o=n(45);t.a=o.h||o.a?"Pan":"AnnotationEdit"},function(e,t,n){var o=n(272),r=Function.prototype,i=r.bind,a=r.call,l=o&&i.bind(a,a);e.exports=o?function(e){return e&&l(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(34),n(82),n(124),n(27),n(21),n(46),n(20),n(12),n(44),n(22),n(33),n(18),n(16),n(30),n(24),n(8),n(17),n(19),n(64),n(11),n(31),n(13),n(93);var o=n(1),r=n(15),i=n.n(r),a=n(51),l=n(148),c=n(2),u=n.n(c),s=n(0),d=n.n(s),p=n(306),f=n(61),m=n(608),h=n.n(m);n(1085);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C={up:"down",down:"up",left:"right",right:"left"},O={id:u.a.string.isRequired,items:u.a.array,images:u.a.array,width:u.a.oneOfType([u.a.string,u.a.number]),height:u.a.oneOfType([u.a.string,u.a.number]),columns:u.a.number,currentSelectionKey:u.a.string,translationPrefix:u.a.string,getTranslationLabel:u.a.func,onClickItem:u.a.func,dataElement:u.a.string,disabled:u.a.bool,getCustomItemStyle:u.a.func,applyCustomStyleToButton:u.a.bool,placeholder:u.a.string,maxHeight:u.a.number,getKey:u.a.func,getDisplayValue:u.a.func,className:u.a.string,onOpened:u.a.func,onClosed:u.a.func,arrowDirection:u.a.string,disableFocusing:u.a.bool,renderItem:u.a.func,renderSelectedItem:u.a.func,labelledById:u.a.string,showLabelInList:u.a.bool,isFlyoutItem:u.a.bool,onKeyDownHandler:u.a.func,onFocus:u.a.func,stopPropagationOnMouseDown:u.a.bool,ariaLabel:u.a.string},T=0,S=1,x=2,A=3,_=4,P=5,k=6,L=7,M=8,j=10,I=11,R=12,N=13;function D(e){var t=e.id,n=void 0===t?"":t,r=e.items,c=e.images,u=e.width,m=void 0===u?100:u,b=e.height,w=e.columns,E=void 0===w?1:w,O=e.currentSelectionKey,D=e.translationPrefix,B=e.getTranslationLabel,H=e.onClickItem,V=void 0===H?function(){}:H,U=e.dataElement,G=e.disabled,W=void 0!==G&&G,z=e.applyCustomStyleToButton,Z=void 0===z||z,Y=e.getCustomItemStyle,q=void 0===Y?function(){return{}}:Y,K=e.placeholder,$=void 0===K?null:K,X=e.maxHeight,J=e.getKey,Q=void 0===J?function(e){return e}:J,ee=e.getDisplayValue,te=void 0===ee?function(e){return e}:ee,ne=e.className,oe=void 0===ne?"":ne,re=e.ariaLabel,ie=e.hasInput,ae=void 0!==ie&&ie,le=e.displayButton,ce=void 0===le?null:le,ue=e.customDataValidator,se=void 0===ue?function(){return!0}:ue,de=e.isSearchEnabled,pe=void 0===de||de,fe=e.onOpened,me=void 0===fe?function(){}:fe,he=e.onClosed,be=void 0===he?function(){}:he,ge=e.arrowDirection,ye=void 0===ge?"down":ge,ve=e.children,we=e.disableFocusing,Ee=void 0!==we&&we,Ce=e.renderItem,Oe=void 0===Ce?function(e,t){return d.a.createElement(d.a.Fragment,null,t(e))}:Ce,Te=e.renderSelectedItem,Se=void 0===Te?function(e,t){return d.a.createElement(d.a.Fragment,null,t(e))}:Te,xe=e.labelledById,Ae=e.showLabelInList,_e=void 0!==Ae&&Ae,Pe=e.isFlyoutItem,ke=void 0!==Pe&&Pe,Le=e.onKeyDownHandler,Me=void 0===Le?null:Le,je=e.onFocus,Ie=void 0===je?null:je,Re=e.stopPropagationOnMouseDown,Ne=void 0!==Re&&Re,De=Object(p.a)(),Fe=De.t,Be=De.ready,He=Object(s.useRef)(null),Ve=Object(s.useRef)(null),Ue=Object(s.useRef)(null),Ge=v(Object(s.useState)(!1),2),We=Ge[0],ze=Ge[1],Ze=v(Object(s.useState)(""),2),Ye=Ze[0],qe=Ze[1],Ke=v(Object(s.useState)(-1),2),$e=Ke[0],Xe=Ke[1],Je=v(Object(s.useState)([]),2),Qe=Je[0],et=Je[1],tt=v(Object(s.useState)(r),2),nt=tt[0],ot=tt[1],rt=v(Object(s.useState)(""),2),it=rt[0],at=rt[1],lt=Object(s.useRef)([]);Object(s.useEffect)((function(){var e=[];c&&c.length>0?e=c.map((function(e){return e.key})):r&&r.length>0&&(e=r.map((function(e){return Q(e)}))),et(e),Xe(e.findIndex((function(e){return e===O}))),ot(r)}),[O,r,c]),Object(s.useEffect)((function(){We&&Xe(Qe.findIndex((function(e){return e===O})))}),[We]);var ct=c&&c.length>0;ct&&(Q=function(e){return e.key});var ut=function(e,t){var n=e.offsetHeight,o=e.offsetTop,r=t.offsetHeight,i=t.scrollTop,a=o+n>i+r;o<i?t.scrollTo(0,o):a&&t.scrollTo(0,o-r+n)},st=function(e){return e&&e.clientHeight<e.scrollHeight},dt=Object(s.useCallback)((function(){return ze(!1)}),[]),pt=Object(s.useCallback)((function(e){var t,n,r,i;if(!ae||e.target!==(null==Ue?void 0:Ue.current)){Ee||Ve.current.focus(),e.preventDefault(),ze(!W&&function(e){return!e}),!ae||We||Ee||setTimeout((function(){var e;null==Ue||null===(e=Ue.current)||void 0===e||e.focus()}));var a=null===(t=He.current)||void 0===t?void 0:t.scrollHeight;X&&(a=Math.min(a,X));var l=null==Ve||null===(n=Ve.current)||void 0===n?void 0:n.getBoundingClientRect(),c=null==He||null===(r=He.current)||void 0===r||null===(i=r.closest("body"))||void 0===i?void 0:i.getBoundingClientRect();if(null!==o.a&&void 0!==o.a&&o.a.getDocumentViewer()&&(c=o.a.getScrollViewElement().getBoundingClientRect()),a&&!We){var u="left"===ye||"right"===ye?l.height:0,s=c.bottom>=l.bottom+a,d=c.top<=l.top-a;if(s)He.current.style.top="".concat(l.height-u,"px"),He.current.style.maxHeight=X?"".concat(X,"px"):"";else if(d)He.current.style.top="-".concat(a-u,"px"),He.current.style.maxHeight=X?"".concat(X,"px"):"";else{var p=l.top,f=c.bottom-l.bottom,m=function(e){var t=[X,a,e].filter((function(e){return h()(e)})),n=Math.min.apply(Math,y(t));return Math.max(n,24)};if(f>=p){var b=m(f);He.current.style.top="".concat(l.height-u,"px"),He.current.style.maxHeight="".concat(b,"px")}else{var g=m(p);He.current.style.top="-".concat(g-u,"px"),He.current.style.maxHeight="".concat(g,"px")}He.current.style.overflowY="auto"}"left"===ye?He.current.style.left="-".concat(l.width,"px"):"right"===ye&&(He.current.style.left="".concat(l.width,"px"))}else He.current.style.top="",He.current.style.maxHeight=X?"".concat(X,"px"):"";if(st(He.current)){var v=lt.current[$e];v&&ut(v,He.current)}}}),[ae,We,W,$e]);Object(s.useEffect)((function(){!We&&null!=He&&He.current&&(He.current.style.top="",He.current.scrollTop=0)}),[We]),Object(s.useEffect)((function(){var e=function(){ze(!1)};return window.addEventListener("blur",e),function(){window.removeEventListener("blur",e)}}),[]),Object(s.useEffect)((function(){We?me():(qe(""),be()),We&&ae&&null!=Ue&&Ue.current&&(Ue.current.value=O,Ee||Ue.current.select())}),[We,Ue.current,O,ae]);var ft=Object(s.useCallback)((function(e){Ve.current.contains(e.target)||ze(!1)}),[]);Object(l.a)(He,ft);var mt=Object(s.useCallback)((function(e,t,n,o){e.preventDefault(),e.stopPropagation(),V(t,n),ze(!1),Ee||Ve.current.focus(),null!=Ue&&Ue.current&&(Ue.current.value=o)}),[V,Ue.current]),ht=function(e){return Be&&e?(t=D,n=te(e),B?Fe(B(n)):Fe("".concat(t,".").concat(n),n)):"";var t,n},bt=function(e,t){var n=q(e);return t&&(n.lineHeight="".concat(b||28,"px")),n},gt=function(e){Ne&&e.stopPropagation()};Object(s.useEffect)((function(){pe&&ot(r.filter((function(e){return ht(e).toLowerCase().includes(Ye.toLowerCase())})))}),[Ye,pe,Qe,r]),Object(s.useEffect)((function(){0===nt.length?at(Fe("message.noResults")):at("")}),[nt]),Object(s.useEffect)((function(){if(pe)Xe(0);else{var e=Qe.findIndex((function(e){return e===Ye}));Xe(e)}}),[Ye,pe]),Object(s.useEffect)((function(){We||Xe(Qe.findIndex((function(e){return e===O})))}),[We,Qe,O]);var yt,vt,wt;if(yt=!!(vt=(ct?c:r).find((function(e){return Q(e)===O}))),ct){var Et,Ct,Ot=(null===(Et=vt)||void 0===Et?void 0:Et.src)||"",Tt=(null===(Ct=vt)||void 0===Ct?void 0:Ct.className)||"";wt=d.a.createElement(a.a,{glyph:Ot,className:Tt})}else ve||(yt?wt=Se(vt,ht):ae&&O&&(yt=!!O,wt=O,vt=O));var St=Object(s.useMemo)((function(){return ct?c.map((function(e,t){var o=Q(e);return d.a.createElement(f.a,{key:o,id:"".concat(n,"-").concat(o),role:"option","aria-label":o,"aria-selected":o===O,dataElement:"dropdown-item-".concat(o),ref:function(e){return lt.current[t]=e},className:i()("Dropdown__item",{selected:o===O,active:t===$e}),tabIndex:We?void 0:-1,onClick:function(e){return mt(e,o)}},d.a.createElement(a.a,{glyph:e.src,className:e.className}))})):ve?void 0:nt.map((function(e,t){var o=Q(e),r=ht(e),a=!!e.font;return d.a.createElement(f.a,{key:o,role:"option","aria-label":a?e.font:null,id:"".concat(n,"-").concat(o),"aria-selected":o===O,dataElement:"dropdown-item-".concat(o),className:i()("Dropdown__item",{selected:o===O,active:t===$e}),onClick:function(e){return mt(e,o,t,r)},onMouseDown:gt,tabIndex:We?0:-1,ref:function(e){return lt.current[t]=e},style:bt(e,X)},Oe(e,ht))}))}),[O,We,r,mt,Ye,D,$e,c,nt,Oe]),xt={width:"".concat(m,"px")};b&&(xt.height="".concat(b,"px"));var At={};X&&(At.maxHeight="".concat(X,"px")),100!==m&&(At.width="".concat(m,"px"));var _t=Object(s.useCallback)((function(e){if(We&&ae){return d.a.createElement("input",{className:"Dropdown__input",role:"combobox","aria-expanded":We,"aria-controls":"".concat(n,"-dropdown"),onBlur:function(e){var t,n,o;(null===(t=e.relatedTarget)||void 0===t||null===(n=t.dataset)||void 0===n||null===(o=n.element)||void 0===o?void 0:o.includes("dropdown-item"))||qe("")},onChange:function(e){e.preventDefault(),Ue.current.value=e.target.value,qe(e.target.value)},ref:Ue,onFocus:Ie,onKeyDown:function(t){if("Enter"===t.key&&We&&Ue.current){var n,o=Ue.current.value,i=o;if(se(o)||(i=e),r.length>0){var a=r.find((function(e){return ht(e).toLowerCase()===o.toLowerCase()}));a&&(i=a)}V(i,-1),null==Ue||null===(n=Ue.current)||void 0===n||n.blur(),ze(!1)}},"aria-activedescendant":We?"".concat(n,"-").concat(nt[$e]):null})}return e}),[ae,Ue,Ve,V,We,vt,se,n,Qe,$e,nt]),Pt=function(e){var t,n=function(e,t,n){var o=e.key,r=e.altKey,i=e.ctrlKey,a=e.metaKey;if(Me){var l=ke&&!t&&["ArrowDown","ArrowUp"].includes(o),c=ke&&["Escape","Tab"].includes(o);if(l||c)return N}if(!t&&["ArrowDown","ArrowUp","Enter"," "].includes(o))return P;if("Home"===o)return x;if("End"===o)return A;if("Backspace"===o||"Clear"===o||1===o.length&&" "!==o&&!r&&!i&&!a)return j;if(t){if("ArrowUp"===o&&r)return S;if("ArrowDown"===o&&!r)return _;if("ArrowUp"===o)return M;if("PageUp"===o)return L;if("PageDown"===o)return k;if("Escape"===o)return T;if("Enter"===o||" "===o||"Tab"===o)return S;if("ArrowRight"===o||"ArrowLeft"===o)return n?I:R}}(e,We,ae);switch(n){case N:return Me(e);case _:case M:return e.preventDefault(),e.stopPropagation(),function(e){var t=$e;if(e===_){var n=Math.max(Qe.length-1,nt.length-1);$e<n&&(t=$e+1)}else e===M&&(t=Math.max(0,$e-1));if(Xe(t),st(He.current)){var o=lt.current[t];ut(o,He.current)}}(n);case P:return e.preventDefault(),e.stopPropagation(),pt(e);case S:return e.preventDefault(),e.stopPropagation(),(t=Qe.length!==nt.length&&0===c.length?nt[$e]:Qe[$e])||(t=Ye),V(t,$e),void ze(!1);case T:return e.preventDefault(),e.stopPropagation(),ze(!1);case I:return void e.stopPropagation();case R:return ze(!1)}};xe=_e?"".concat(n,"-dropdown-label"):xe;var kt="id-no-result";return $e>=0&&(c.length>0&&c[$e]?kt="".concat(n,"-").concat(Q(c[$e])):nt.length>0&&nt[$e]&&(kt="".concat(n,"-").concat(Q(nt[$e])))),d.a.createElement(f.a,{id:n,className:"Dropdown__wrapper ".concat(oe," ").concat(We?"open":""),dataElement:U,disabled:W},!ce&&d.a.createElement("div",{className:i()(g(g({Dropdown:!0},oe,oe),"disabled",W)),role:"combobox","aria-haspopup":"listbox","aria-describedby":c.length>0?kt:null,"aria-expanded":We,"aria-activedescendant":We?kt:null,"aria-labelledby":xe,"aria-label":re,"aria-controls":"".concat(n,"-dropdown"),style:xt,onMouseDown:pt,onTouchEnd:pt,onKeyDown:Pt,ref:Ve,"aria-disabled":W,disabled:W,tabIndex:W?-1:0},d.a.createElement("div",{className:"picked-option"},d.a.createElement("div",{className:"picked-option-text",style:yt&&Z?q(vt):{}},_t(yt?wt:$||"")),d.a.createElement(a.a,{className:"arrow",disabled:W,glyph:"icon-chevron-".concat(We?C[ye]:ye),ariaHidden:!0}))),ce&&d.a.createElement("div",{ref:Ve,className:"display-button",role:"combobox","aria-expanded":We,"aria-controls":"".concat(n,"-dropdown"),"aria-labelledby":xe,"aria-label":re,tabIndex:W?-1:0,"aria-activedescendant":We?kt:null,onClick:pt,onKeyDown:Pt,onMouseDown:gt},ce(We)),d.a.createElement("div",{className:i()("Dropdown__items",{hide:!We,"dropdown-items-with-custom-display":ce,"dropdown-items-with-label":_e}),ref:He,role:"listbox",id:"".concat(n,"-dropdown"),style:At},d.a.createElement("div",{role:"group","aria-labelledby":xe},_e&&d.a.createElement("div",{className:"Dropdown__label",id:xe},Fe("".concat(D,".dropdownLabel"))),ve?d.a.cloneElement(ve,{onClose:dt}):St.length>0?E>1?F(St,E):St:d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{role:"option",id:"id-no-result","aria-disabled":"true","aria-selected":"true",className:i()("Dropdown__item","selected","active"),"data-testid":"sig-no-result"},Fe("message.noResults"))))),d.a.createElement("div",{"aria-live":"polite",style:{position:"absolute",insetInlineStart:"-9999px"}},it))}var F=function(e,t){var n=[],o=[];return e.forEach((function(e,r){r%t==0&&o.length>0&&(n.push(d.a.createElement("tr",{key:"row-".concat(r)},o)),o=[]),o.push(d.a.createElement("td",{key:r},e))})),o.length>0&&n.push(d.a.createElement("tr",{key:"row-".concat(e.length+1)},o)),d.a.createElement("table",null,d.a.createElement("tbody",null,n))};D.propTypes=O,D.defaultProps={items:[],images:[]};var B=D;t.a=B},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(46),n(12),n(94),n(33),n(30),n(24),n(35),n(8),n(56),n(64),n(11),n(31),n(13);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var a=["wc--toolData","wc-viewer","webviewer","default-toolData"],l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.localStorageEnabled=void 0!==window.localStorage&&null!==window.localStorage}catch(e){console.error("window.localStorage unavailable. Disabling local storage."),this.localStorageEnabled=!1}},(t=[{key:"setItem",value:function(e,t){var n=this;return new Promise((function(o){n.localStorageEnabled?(window.localStorage.setItem(e,t),o()):(console.warn("Local storage is disabled. Cannot set item:",e),o())}))}},{key:"setItemSynchronous",value:function(e,t){this.localStorageEnabled?window.localStorage.setItem(e,t):console.warn("Local storage is disabled. Cannot set item:",e)}},{key:"getItem",value:function(e){var t=this;return new Promise((function(n){t.localStorageEnabled?n(window.localStorage.getItem(e)):(console.warn("Local storage is disabled. Cannot get item:",e),n(null))}))}},{key:"getItemSynchronous",value:function(e){return this.localStorageEnabled?window.localStorage.getItem(e):(console.warn("Local storage is disabled. Cannot get item:",e),null)}},{key:"removeKey",value:function(e){var t=this;return new Promise((function(n){t.localStorageEnabled?(window.localStorage.removeItem(e),n()):(console.warn("Local storage is disabled. Cannot remove item:",e),n())}))}},{key:"removeKeySynchronous",value:function(e){this.localStorageEnabled?window.localStorage.removeItem(e):console.warn("Local storage is disabled. Cannot remove item:",e)}},{key:"enableLocalStorage",value:function(){this.localStorageEnabled=!0}},{key:"disableLocalStorage",value:function(){Object.keys(window.localStorage).forEach((function(e){a.some((function(t){return e.includes(t)}))&&window.localStorage.removeItem(e)})),this.localStorageEnabled=!1}},{key:"isLocalStorageEnabled",value:function(){return this.localStorageEnabled}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();t.a=new l},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c}));var o=n(65),r=.05,i=99.99,a=function(){return r},l=function(){return Object(o.p)()?2:i},c=[.1,.25,.5,1,1.25,1.5,2,4,8,16,64];t.a={setMinZoomLevel:function(e){r=e},setMaxZoomLevel:function(e){i=e},getMinZoomLevel:a,getMaxZoomLevel:l}},function(e,t,n){"use strict";function o(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return o[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"k",(function(){return s})),n.d(t,"m",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return b}));n(82),n(84),n(44),n(94),n(35),n(8),n(17);var o=n(5),r=window.Core.SpreadsheetEditor.SpreadsheetEditorEditMode,i=["8","9","10","11","12","14","18","24","30","36","48","60","72"],a={Left:"left",Center:"center",Right:"right",Top:"top",Middle:"middle",Bottom:"bottom"},l={Copy:"copy",Paste:"paste",Cut:"cut"},c=function(e,t){return e.some((function(e){return e===t}))},u={1:"top",2:"middle",3:"bottom"},s={1:"left",2:"center",3:"right"},d={1:"overflow",2:"wrap",3:"clip"},p={calendarFormat:"MM/dd/yyyy",clockHourFormat:"hh:mm:ss AM/PM",calendarTimeFormat:"MM/dd/yyyy h:mm:ss",currencyFormat:"$0.00",currencyRoundedFormat:"$0",financialFormat:"#,##0.00;(#,##0.00)",accountingFormat:"_($* #,##0.00_);_($* (#,##0.00);",numberFormat:"#,##0.00",percentFormat:"0.00%",plainTextFormat:"@",automaticFormat:"General"},f="spreadsheet-editor",m=[o.a.CONTEXT_MENU_POPUP],h=[o.a.SEARCH_PANEL_REPLACE_CONTAINER],b=["jpg","jpeg","png","bmp","webp","gif"].map((function(e){return".".concat(e)})).join(", ")},function(e,t,n){"use strict";var o=n(58),r=n(70),i=n(277).indexOf,a=n(192),l=r([].indexOf),c=!!l&&1/l([1],1,-0)<0,u=a("indexOf");o({target:"Array",proto:!0,forced:c||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?l(this,e,t)||0:i(this,e,t)}})},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return f}));n(9),n(10),n(14),n(38),n(21),n(20),n(12),n(22),n(386),n(18),n(16),n(8),n(17),n(19),n(11),n(13),n(93);var o=n(23),r=n(1),i=n(306);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function c(e,t){var n=-1;if(!t)return n;for(var o=0;o<e.length;o++)if(e[o]===t){n=o;break}return n}function u(e,t){"Escape"===e.key&&t(e)}function s(e){var t=a(Object(i.a)(),1)[0];return t("action.buttonPressed",{buttonName:t(e)})}function d(e){if(e){var t=document.createElement("div"),n="speak-".concat(Date.now());t.setAttribute("id",n),t.setAttribute("aria-live","assertive"),t.classList.add("visually-hidden");var r=window.isApryseWebViewerWebComponent?Object(o.a)():document.body;r.appendChild(t),window.setTimeout((function(){Object(o.a)().getElementById(n).innerText=e}),100),window.setTimeout((function(){r.removeChild(Object(o.a)().getElementById(n))}),1e3)}}function p(){var e,t=null===(e=r.a.getDocumentViewer())||void 0===e?void 0:e.getAccessibleReadingOrderManager();null==t||t.endAccessibleReadingOrderMode()}function f(e,t){var n=e.getState(),o=n.viewer.activeDocumentViewerKey;n.viewer.shouldAddA11yContentToDOM&&r.a.getDocument(o).loadPageText(t,(function(e){var n="pageText".concat(t),i=r.a.getViewerElement(o).querySelector("#pageContainer".concat(t)),a=i.querySelector("#".concat(n));a&&i.removeChild(a);var l=document.createElement("div");l.tabIndex=0,l.textContent="Page ".concat(t,".\n").concat(e,"\nEnd of page ").concat(t,"."),l.style="font-size: 5px; overflow: auto; position: absolute; z-index: -99999; top: 0; bottom: 0;",l.id=n,i.prepend(l)}))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return y}));n(9),n(10),n(14),n(82),n(21),n(20),n(12),n(22),n(146),n(18),n(16),n(35),n(8),n(137),n(17),n(19),n(11),n(13);var o=n(1),r=n(74),i=n(23);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function c(e){var t=function(e){var t={};e.sort((function(e,t){return e.startZoom-t.startZoom}));for(var n=0;n<e.length;n++){var o=e[n],r=e[n+1];t["".concat(o.step/100)]=r?[o.startZoom/100,r.startZoom/100]:[o.startZoom/100,null]}return t}(Object(i.c)().instance.UI.getZoomStepFactors()),n=Object.keys(t).find((function(n){var o=t[n];return function(e,t){var n=a(t,2),o=n[0],r=n[1];if(null===o)return e<r;if(null===r)return e>=o;return e>=o&&e<r}(e,o)}));return parseFloat(n)}function u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t?Object(i.a)().querySelector("#DocumentContainer".concat(n)):Object(i.a)().querySelectorAll(".DocumentContainer")[0],r=t?Object(i.a)().querySelector("#Document".concat(n)):Object(i.a)().querySelectorAll(".document")[0],a=window.innerWidth/2,l=window.innerHeight/2,c=(a+o.scrollLeft-r.offsetLeft)*e-a+o.offsetLeft,u=(l+o.scrollTop-r.offsetTop)*e-l+o.offsetTop;return{x:c,y:u}}var s=[],d=-1;function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=t/e,a=u(i,n,r),l=a.x,c=a.y;o.a.zoomTo(t,l,c,r),d=t}function f(){s=[]}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f(),o.a.fitToWidth(e)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f(),o.a.fitToPage(e)}function b(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=o.a.getZoom(t);if(d>0&&n!==d&&f(),n!==Object(r.c)()){var i=c(n);s.length>0&&s[s.length-1]<0?i=Math.abs(s.pop()):s.push(i);var a=Math.min(n+i,Object(r.c)());p(n,a,e,t)}}function g(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=o.a.getZoom(t);if(d>0&&n!==d&&f(),n!==Object(r.d)()){var i=c(n);s.length>0&&s[s.length-1]>0?i=s.pop():s.push(-1*i);var a=Math.max(n-i,Object(r.d)());p(n,a,e,t)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;f();var r=o.a.getZoom(n);p(r,e,t,n)}},function(e,t,n){"use strict";n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return b}));n(34),n(12),n(44),n(8),n(88),n(17),n(116),n(11),n(13);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=n(4),c=n(3),u=n(174),s=n(101),d=function(e){var t,n;if(!e)return e;var o=e;return null!==(t=o)&&void 0!==t&&t.toHexString&&(o=o.toHexString()),null!==(n=o)&&void 0!==n&&n.toLowerCase&&(o=o.toLowerCase()),o},p=function(e){return!!e&&0===e.A},f=function(e){if(e===s.a)return new window.Core.Annotations.Color(255,255,255,0);if(/^#?[0-9A-F]{6}$/i.test(e)){var t=Object(u.b)(e);return new window.Core.Annotations.Color(t.r,t.g,t.b,t.a)}return e},m=r.a.createElement("svg",{width:"100%",height:"100%",className:a()("transparent")},r.a.createElement("line",{stroke:"#d82e28",x1:"0",y1:"100%",x2:"100%",y2:"0",strokeWidth:"2",strokeLinecap:"round"})),h=function(e,t){var n=l.a.getCustomColor(t.getState());return e(c.a.setCustomColor(null)),n},b=function(e){var t=new Set;return Object.values(e).map((function(e){var t;return null==e||null===(t=e.color)||void 0===t?void 0:t.toLowerCase()})).filter((function(e){return!!e&&(!t.has(e)&&(t.add(e),!0))}))}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(12),n(33),n(30),n(24),n(8),n(11),n(13);var o=n(6),r=n(15),i=n.n(r),a=n(43);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=Object(o.b)((function(e,t){var n=t.isNotClickableSelector,o=t.className,r=t.disabled;return{className:i()(c({ActionButton:!0},o,!!o)),disabled:r||n&&n(e)}}),(function(e,t){return{onClick:t.shouldPassActiveDocumentViewerKeyToOnClickHandler||!t.onClick?t.onClick:function(){return t.onClick(e)}}}))(a.a);t.a=u},function(e,t,n){"use strict";var o=n(58),r=n(126).find,i=n(217),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){var o=n(52),r=n(242),i=n(95),a=n(275),l=n(240),c=n(499),u=r("wks"),s=o.Symbol,d=s&&s.for,p=c?s:s&&s.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!l&&"string"!=typeof u[e]){var t="Symbol."+e;l&&i(s,e)?u[e]=s[e]:u[e]=c&&d?d(t):p(t)}return u[e]}},function(e,t,n){"use strict";var o=n(58),r=n(70),i=n(273),a=n(139),l=n(192),c=r([].join),u=i!=Object,s=l("join",",");o({target:"Array",proto:!0,forced:u||!s},{join:function(e){return c(a(this),void 0===e?",":e)}})},function(e,t,n){var o=n(272),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},function(e,t,n){var o=n(58),r=n(150),i=n(177),a=n(516),l=n(430),c=n(99),u=n(100),s=n(167),d=n(71),p=r("Reflect","construct"),f=Object.prototype,m=[].push,h=d((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),b=!d((function(){p((function(){}))})),g=h||b;o({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){l(e),c(t);var n=arguments.length<3?e:l(arguments[2]);if(b&&!h)return p(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return i(m,o,t),new(i(a,e,o))}var r=n.prototype,d=s(u(r)?r:f),g=i(e,d,t);return u(g)?g:d}})},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,n){var o=n(58),r=n(534).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){var o=n(71);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var o=n(132),r=function(e){return function(t){if(t){var n=t.nativeEvent,r=t.currentTarget.getAttribute("data-element");if(!r)return console.warn("You used the useFocusHandler hook on an element without a data-element attribute. Please add a dataElement for the focus transfer to work correctly."),void e(t);"mouse"===n.pointerType||n.detail>0?o.a.clear():""!==n.pointerType&&void 0!==n.pointerType||o.a.push(r),e(t)}else e()}};t.a=r},function(e,t,n){"use strict";var o,r,i,a=n(446),l=n(89),c=n(52),u=n(87),s=n(100),d=n(95),p=n(213),f=n(241),m=n(159),h=n(112),b=n(104).f,g=n(166),y=n(244),v=n(218),w=n(83),E=n(275),C=c.Int8Array,O=C&&C.prototype,T=c.Uint8ClampedArray,S=T&&T.prototype,x=C&&y(C),A=O&&y(O),_=Object.prototype,P=c.TypeError,k=w("toStringTag"),L=E("TYPED_ARRAY_TAG"),M=E("TYPED_ARRAY_CONSTRUCTOR"),j=a&&!!v&&"Opera"!==p(c.opera),I=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},D=function(e){if(!s(e))return!1;var t=p(e);return d(R,t)||d(N,t)};for(o in R)(i=(r=c[o])&&r.prototype)?m(i,M,r):j=!1;for(o in N)(i=(r=c[o])&&r.prototype)&&m(i,M,r);if((!j||!u(x)||x===Function.prototype)&&(x=function(){throw P("Incorrect invocation")},j))for(o in R)c[o]&&v(c[o],x);if((!j||!A||A===_)&&(A=x.prototype,j))for(o in R)c[o]&&v(c[o].prototype,A);if(j&&y(S)!==A&&v(S,A),l&&!d(A,k))for(o in I=!0,b(A,k,{get:function(){return s(this)?this[L]:void 0}}),R)c[o]&&m(c[o],L,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_CONSTRUCTOR:M,TYPED_ARRAY_TAG:I&&L,aTypedArray:function(e){if(D(e))return e;throw P("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!v||g(x,e)))return e;throw P(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,o){if(l){if(n)for(var r in R){var i=c[r];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}A[e]&&!n||h(A,e,n?t:j&&O[e]||t,o)}},exportTypedArrayStaticMethod:function(e,t,n){var o,r;if(l){if(v){if(n)for(o in R)if((r=c[o])&&d(r,e))try{delete r[e]}catch(e){}if(x[e]&&!n)return;try{return h(x,e,n?t:j&&x[e]||t)}catch(e){}}for(o in R)!(r=c[o])||r[e]&&!n||h(r,e,t)}},isView:function(e){if(!s(e))return!1;var t=p(e);return"DataView"===t||d(R,t)||d(N,t)},isTypedArray:D,TypedArray:x,TypedArrayPrototype:A}},function(e,t,n){"use strict";var o={FULL_SIGNATURE:window.Core.Tools.SignatureCreateTool.SignatureTypes.FULL_SIGNATURE,INITIALS:window.Core.Tools.SignatureCreateTool.SignatureTypes.INITIALS};t.a=o},function(e,t,n){n(686),n(687)},function(e,t,n){"use strict";var o=n(58),r=n(126).some;o({target:"Array",proto:!0,forced:!n(192)("some")},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(70),r=n(108),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(26),n(16),n(59),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(4),a=n(6),l=n(3),c=n(2),u=n.n(c),s=(n(1180),n(43)),d=n(90),p=n(66),f=n(15),m=n.n(f);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var y=function(e){var t,n=Object(o.useRef)(),c=Object(p.b)(),u=e.dataElement,f=e.title,g=e.disabled,y=e.img,v=e.label,w=e.toggleElement,E=e.setFlyoutTriggerRef,C=void 0===E?null:E,O=e.onToggle,T=e.className,S=e.onClick,x=void 0===S?null:S,A=Object(a.e)((function(e){return i.a.isElementOpen(e,w)})),_=Object(a.e)(i.a.getFlyoutMap,a.c),P=Object(a.e)((function(e){return i.a.isElementDisabled(e,w)})),k=Object(a.e)((function(e){return i.a.isElementDisabled(e,u)||i.a.isDisabledViewOnly(e,w)})),L=null===(t=Object(a.e)(i.a.getFeatureFlags))||void 0===t?void 0:t.customizableUI,M=b(Object(o.useState)(A),2),j=M[0],I=M[1],R=b(Object(o.useState)(g),2),N=R[0],D=R[1],F=!(null==_||!_[w]);Object(o.useEffect)((function(){I(A),O&&O(A)}),[A]),Object(o.useEffect)((function(){D(P||g)}),[P,g]);var B=Object(a.d)(),H=Object(d.a)((function(e){e.stopPropagation(),x&&x(e),F&&(C?C():B(l.a.setFlyoutToggleElement(u))),B(l.a.toggleElement(w))}));return k?null:r.a.createElement("div",{className:m()({ToggleElementButton:!0,"legacy-ui":!L,"is-mobile":c}),ref:n},r.a.createElement(s.a,h({isActive:j,dataElement:u,img:y,label:v,title:f,onClick:H,disabled:N,className:T,ariaPressed:F?void 0:j,ariaExpanded:F?j:void 0},e),e.children))};y.propTypes={dataElement:u.a.string.isRequired,title:u.a.string,disabled:u.a.bool,img:u.a.string,label:u.a.oneOfType([u.a.string,u.a.number]),toggleElement:u.a.string.isRequired,setFlyoutTriggerRef:u.a.func,className:u.a.string,onToggle:u.a.func,onClick:u.a.func};var v=y;t.a=v},function(e,t,n){var o=n(52),r=n(213),i=o.String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";n(16);var o=n(1),r=n(297),i=n(3),a=n(4),l=n(5);t.a=function(e,t){var n,c=e.dispatch,u=(0,e.getState)(),s=u.featureFlags.customizableUI,d=(null===(n=a.a.getToolButtonObject(u,t))||void 0===n?void 0:n.group)||"";if(c(d?i.a.openElement(l.a.TOOLS_OVERLAY):i.a.closeElement(l.a.TOOLS_OVERLAY)),o.a.getToolMode().name===t&&Object(r.a)(t))c(i.a.toggleElement(l.a.TOOL_STYLE_POPUP));else{if(c(i.a.closeElement(l.a.TOOL_STYLE_POPUP)),c(i.a.setActiveToolGroup(d)),s){var p=a.a.getRibbonAssociatedWithTool(u,t);p&&e.dispatch(i.a.setActiveCustomRibbon(p))}o.a.setToolMode(t)}}},function(e,t,n){var o=n(52),r=n(100),i=o.String,a=o.TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not an object")}},function(e,t,n){var o=n(87);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c}));var o=["#e44234","#ff8d00","#ffcd45","#5cc96e","#25d2d1","#597ce2","#c544ce","#7d2e25","#a84f1d","#e99e38","#347842","#167e7d","#354a87","#76287b","#ffffff","#cdcdcd","#9c9c9c","#696969","#272727","#000000"],r=["#000000","#272727","#696969","#9c9c9c","#cdcdcd","#ffffff","#7d2e25","#a84f1d","#e99e38","#347842","#167e7d","#354a87","#76287b","#e44234","#ff8d00","#ffcd45","#5cc96e","#25d2d1","#597ce2","#c544ce"],i="#FFFFFF00",a="#000000",l="#000000",c={verticalAlignment:2,horizontalAlignment:1,wrapText:3,font:{fontFace:"Arial",pointSize:8,bold:!1,italic:!1,underline:!1,strikeout:!1,color:a},backgroundColor:null,getCellBorder:function(){return{}}}},function(e,t,n){var o=n(245),r=n(1183),i=n(1185),a=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,s,d,p,f,m=0,h=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=c,o=u;return c=u=void 0,m=t,d=e.apply(o,n)}function v(e){return m=e,p=setTimeout(E,t),h?y(e):d}function w(e){var n=e-f;return void 0===f||n>=t||n<0||b&&e-m>=s}function E(){var e=r();if(w(e))return C(e);p=setTimeout(E,function(e){var n=t-(e-f);return b?l(n,s-(e-m)):n}(e))}function C(e){return p=void 0,g&&c?y(e):(c=u=void 0,d)}function O(){var e=r(),n=w(e);if(c=arguments,u=this,f=e,n){if(void 0===p)return v(f);if(b)return clearTimeout(p),p=setTimeout(E,t),y(f)}return void 0===p&&(p=setTimeout(E,t)),d}return t=i(t)||0,o(n)&&(h=!!n.leading,s=(b="maxWait"in n)?a(i(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g),O.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=f=u=p=void 0},O.flush=function(){return void 0===p?d:C(r())},O}},function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return E})),n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return T}));n(9),n(10),n(14),n(32),n(125),n(34),n(27),n(46),n(12),n(44),n(33),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(88),n(474),n(17),n(19),n(64),n(11),n(115),n(172),n(136),n(31),n(13);var o,r=n(0),i=n.n(r),a=n(1),l=n(7),c=n(4),u=n(3),s=n(51),d=n(303),p=n(62),f=n(5),m=n(15),h=n.n(m);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){o=e},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onClick,r=void 0===n?void 0:n,i=t.children,s=void 0===i?void 0:i,m=t.useOverrideClickOnly,h=void 0!==m&&m,b=t.extraProps,g=void 0===b?{}:b,v=t.skipCheck,w=void 0!==v&&v,C=e.properties||e.props||e,T=C.type,x=C.label,A=C.title,_=C.dataElement,P=C.img,k=C.icon,L=C.items,M=C.toolName,j=(null==C?void 0:C.dataElement)&&o&&c.a.isElementDisabled(o.getState(),_);if(!w&&(!C||!T||!Object.values(l.k).includes(T)||j))return null;if(T===l.k.DIVIDER)return"divider";S(g),S(C);var I=y(y({label:x||A||(_?O(_):""),onClick:function(){!h&&C.onClick&&C.onClick(),r&&r()},icon:k||P,children:s},g),C);switch(T){case l.k.STATEFUL_BUTTON:return C;case l.k.FLYOUT:delete I.items,I.children=C.items;break;case l.k.BUTTON:I.className="FlyoutButton";break;case l.k.TOGGLE_BUTTON:var R=c.a.getFlyoutMap(o.getState())[C.toggleElement];if(R){I.children=R.items;break}I.onClick=function(){o.dispatch(u.a.toggleElement(C.toggleElement))};break;case l.k.VIEW_CONTROLS:var N,D=c.a.getFlyoutMap(o.getState()),F=null===(N=D[f.a.VIEW_CONTROLS_FLYOUT])||void 0===N?void 0:N.items;I.children=F;break;case l.k.ZOOM:var B=c.a.getZoomList(o.getState());I.className="ZoomFlyoutMenu",I.icon="icon-magnifying-glass",I.children=Object(d.a)({zoomOptionsList:B,dispatch:o.dispatch,size:1});break;case l.k.RIBBON_GROUP:I.className="FlyoutRibbonGroup",I.label="option.toolbarGroup.flyoutLabel",I.children=L;break;case l.k.GROUPED_ITEMS:case l.k.MODULAR_HEADER:I.className="FlyoutGroupedItems",I.children=L.map((function(e){return E(e)}));break;case l.k.TOOL_BUTTON:I.className="FlyoutToolButton",I.toolName=M,I.icon=P,I.label=x;break;case l.k.PRESET_BUTTON:var H,V,U,G,W=p.b[C.buttonType];W||(W=p.b[C.dataElement]);var z=C.dataElement||(null===(H=W)||void 0===H?void 0:H.dataElement),Z=C.img||(null===(V=W)||void 0===V?void 0:V.icon),Y=C.title||(null===(U=W)||void 0===U?void 0:U.title);I.label=null===(G=W)||void 0===G?void 0:G.label,I.dataElement=z,I.icon=Z,I.title=Y,I.type=T;break;case l.k.PAGE_CONTROLS:var q,K=c.a.getFlyoutMap(o.getState()),$=null===(q=K[f.a.PAGE_CONTROLS_FLYOUT])||void 0===q?void 0:q.items;I.children=$;break;case l.k.PAGE_NAVIGATION_BUTTON:var X=o.getState(),J=X.viewer.activeDocumentViewerKey,Q=I.dataElement===f.a.PREVIOUS_PAGE_BUTTON?1===a.a.getCurrentPage():a.a.getCurrentPage()===X.document.totalPages[J];I.disabled=Q;break;case l.k.FONT_SIZE_DROPDOWN:I.type=T,I.className="FontSizeDropdown";break;case l.k.FONT_FAMILY_DROPDOWN:I.type=T,I.className="FontFamilyDropdown";break;case l.k.STYLE_PRESET_DROPDOWN:I.type=T,I.className="StylePresetDropdown";break;case l.k.OFFICE_EDITOR_MODE_DROPDOWN:I.type=T,I.className="OfficeEditorModeDropdown"}return I},C=function(e){var t,n,o;return e===l.i.DIVIDER?l.i.DIVIDER:"string"==typeof e&&e!==l.i.DIVIDER?l.i.LABEL:e.toolName?l.i.TOOL_BUTTON:e.dataElement===l.i.ZOOM_OPTIONS_BUTTON||"ZoomFlyoutMenu"===e.className?l.i.ZOOM_OPTIONS_BUTTON:null!==(t=e.dataElement)&&void 0!==t&&t.includes("zoom-button-")?l.i.ZOOM_BUTTON:null!==(n=e.dataElement)&&void 0!==n&&n.includes("line-spacing-button-")?l.i.LINE_SPACING_OPTIONS_BUTTON:e.dataElement===l.i.PAGE_NAVIGATION_INPUT?l.i.PAGE_NAVIGATION_INPUT:null!==(o=e.dataElement)&&void 0!==o&&o.includes("office-editor-list-type-")?l.i.LIST_TYPE_BUTTON:e.tabPanel?l.i.TAB_PANEL_ITEM:e.toolbarGroup?l.i.RIBBON_ITEM:e.buttonType?l.i.PRESET_BUTTON:l.i.BUTTON},O=function(e){try{var t=new RegExp("([^[\\p{L}\\d]+|(?<=[\\p{Ll}\\d])(?=\\p{Lu})|(?<=\\p{Lu})(?=\\p{Lu}[\\p{Ll}\\d])|(?<=[\\p{L}\\d])(?=\\p{Lu}[\\p{Ll}\\d]))","gu");return e.replace(t," ")}catch(t){return e}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[e],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.every((function(e){return!e.icon&&!e.img&&!e.toolName})),r=!e.icon&&!e.img&&!e.toolName;if(r&&o)return null;var a=e.icon?e.icon:e.img,l=null==a?void 0:a.trim().startsWith("data:"),c=a&&!l&&(!a.includes(".")||a.startsWith("<svg"));return c?i.a.createElement(s.a,{className:h()({"menu-icon":!0,disabled:n}),glyph:a}):a&&!c?i.a.createElement("img",{className:h()({"menu-icon":!0,disabled:n}),alt:"Flyout item icon",src:a}):i.a.createElement("div",{className:h()({"menu-icon":!0,disabled:n})})},S=function(e){for(var t in e)void 0!==e[t]&&null!==e[t]||delete e[t]}},function(e,t,n){var o=n(52),r=n(89),i=n(501),a=n(502),l=n(99),c=n(274),u=o.TypeError,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=r?a?function(e,t,n){if(l(e),t=c(t),l(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=d(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(l(e),t=c(t),l(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",o="second",r="minute",i="hour",a="day",l="week",c="month",u="quarter",s="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},b=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},g={s:b,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+b(o,2,"0")+":"+b(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(o,c),i=n-r<0,a=t.clone().add(o+(i?-1:1),c);return+(-(o+(n-r)/(i?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:s,w:l,d:a,D:d,h:i,m:r,s:o,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",v={};v[y]=h;var w=function(e){return e instanceof T},E=function e(t,n,o){var r;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();v[i]&&(r=i),n&&(v[i]=n,r=i);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var l=t.name;v[l]=t,r=l}return!o&&r&&(y=r),r||!o&&y},C=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},O=g;O.l=E,O.i=w,O.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function h(e){this.$L=E(e.locale,null,!0),this.parse(e)}var b=h.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(f);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return O},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},b.isAfter=function(e,t){return C(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<C(e)},b.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var n=this,u=!!O.u(t)||t,p=O.p(e),f=function(e,t){var o=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?o:o.endOf(a)},m=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,b=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(p){case s:return u?f(1,0):f(31,11);case c:return u?f(1,b):f(0,b+1);case l:var v=this.$locale().weekStart||0,w=(h<v?h+7:h)-v;return f(u?g-w:g+(6-w),b);case a:case d:return m(y+"Hours",0);case i:return m(y+"Minutes",1);case r:return m(y+"Seconds",2);case o:return m(y+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var l,u=O.p(e),p="set"+(this.$u?"UTC":""),f=(l={},l[a]=p+"Date",l[d]=p+"Date",l[c]=p+"Month",l[s]=p+"FullYear",l[i]=p+"Hours",l[r]=p+"Minutes",l[o]=p+"Seconds",l[n]=p+"Milliseconds",l)[u],m=u===a?this.$D+(t-this.$W):t;if(u===c||u===s){var h=this.clone().set(d,1);h.$d[f](m),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[O.p(e)]()},b.add=function(n,u){var d,p=this;n=Number(n);var f=O.p(u),m=function(e){var t=C(p);return O.w(t.date(t.date()+Math.round(e*n)),p)};if(f===c)return this.set(c,this.$M+n);if(f===s)return this.set(s,this.$y+n);if(f===a)return m(1);if(f===l)return m(7);var h=(d={},d[r]=e,d[i]=t,d[o]=1e3,d)[f]||1,b=this.$d.getTime()+n*h;return O.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var o=e||"YYYY-MM-DDTHH:mm:ssZ",r=O.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,u=n.months,s=function(e,n,r,i){return e&&(e[n]||e(t,o))||r[n].slice(0,i)},d=function(e){return O.s(i%12||12,e,"0")},f=n.meridiem||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:O.s(l+1,2,"0"),MMM:s(n.monthsShort,l,u,3),MMMM:s(u,l),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:s(n.weekdaysMin,this.$W,c,2),ddd:s(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:O.s(i,2,"0"),h:d(1),hh:d(2),a:f(i,a,!0),A:f(i,a,!1),m:String(a),mm:O.s(a,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:r};return o.replace(m,(function(e,t){return t||h[e]||r.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(n,d,p){var f,m=O.p(d),h=C(n),b=(h.utcOffset()-this.utcOffset())*e,g=this-h,y=O.m(this,h);return y=(f={},f[s]=y/12,f[c]=y,f[u]=y/3,f[l]=(g-b)/6048e5,f[a]=(g-b)/864e5,f[i]=g/t,f[r]=g/e,f[o]=g/1e3,f)[m]||g,p?y:O.a(y)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return v[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=E(e,t,!0);return o&&(n.$L=o),n},b.clone=function(){return O.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},h}(),S=T.prototype;return C.prototype=S,[["$ms",n],["$s",o],["$m",r],["$H",i],["$W",a],["$M",c],["$y",s],["$D",d]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=E,C.isDayjs=w,C.unix=function(e){return C(1e3*e)},C.en=v[y],C.Ls=v,C.p={},C}()},function(e,t,n){"use strict";n(9),n(10),n(14),n(124),n(27),n(21),n(77),n(20),n(12),n(22),n(128),n(18),n(26),n(16),n(59),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(6);n(34),n(46),n(64),n(31);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c,u,s,d,p,f,m,h=(c=[],u=!1,s=function(e){u=e,c.forEach((function(e){return e()}))},d=function(e){"Tab"===e.key&&(s(!0),f())},p=function(){s(!1),m()},f=function(){window.removeEventListener("keydown",d),window.addEventListener("mousedown",p)},m=function(){window.removeEventListener("mousedown",p),window.addEventListener("keydown",d)},{get value(){return u},subscribe:function(e){return c.includes(e)||c.push(e),1===c.length&&(u?f():m()),function(){0===(c=c.filter((function(t){return t!==e}))).length&&(window.removeEventListener("mousedown",p),window.removeEventListener("keydown",d))}}}),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Object(o.useState)(e.value),n=a(t,2),r=n[0],i=n[1];return Object(o.useEffect)((function(){return e.subscribe((function(){return i(e.value)}))}),[e]),r},g=n(4),y=n(15),v=n.n(y),w=n(486),E=n(373),C=n(51),O=(n(644),n(2)),T=n.n(O),S=["label","leftLabel","className","children","id","radio","isSwitch","center","disabledLabelChange","onChange","onFocus","onBlur","checked","disabled","name","dataElement"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var P=function(){var e=[];return{subscribe:function(t,n){return e.forEach((function(e){e.name===t&&e.subscriber()})),e.push({name:t,subscriber:n}),function(){var t=e.findIndex((function(e){return e.subscriber===n}));t>-1&&e.splice(t,1)}}}}(),k=Object(o.forwardRef)((function(e,t){var n=e.label,a=e.leftLabel,l=e.className,c=e.children,u=e.id,s=e.radio,d=e.isSwitch,p=e.center,f=e.disabledLabelChange,m=e.onChange,h=e.onFocus,y=e.onBlur,O=e.checked,T=e.disabled,_=e.name,k=e.dataElement,L=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,S),M=Object(o.useRef)(null),j=b(),I=Object(w.a)(h,y),R=I.focused,N=I.handleOnFocus,D=I.handleOnBlur,F=Object(E.a)(u),B=A(Object(o.useState)(O),2),H=B[0],V=B[1],U=Object(i.e)((function(e){return g.a.isElementDisabled(e,k)}));Object(o.useImperativeHandle)(t,(function(){return M.current})),Object(o.useEffect)((function(){void 0!==O&&V(O)}),[O]);Object(o.useEffect)((function(){if(_&&s)return P.subscribe(_,(function(){M.current&&M.current.checked!==H&&V(M.current.checked)}))}),[H,_,s]);var G=v()("ui__base ui__choice",{"ui__choice--radio":s,"ui__choice--leftLabel":a,"ui__choice--checked":H,"ui__choice--center":p,"ui__choice--disabled":T},l),W=v()("ui__choice__input",{"ui__choice__input--switch":d}),z=d?v()("ui__choice__input__switch",{"ui__choice__input__switch--checked":H,"ui__choice__input__switch--disabled":T,"ui__choice__input__switch--focus":j&&R}):v()("ui__choice__input__check",{"ui__choice__input__check--checked":H,"ui__choice__input__check--disabled":T,"ui__choice__input__check--focus":j&&R}),Z=v()("ui__choice__label",{"ui__choice__label--disabled":T&&f}),Y=Object(o.useMemo)((function(){return n?r.a.createElement("label",{className:Z,htmlFor:F},n):null}),[n,Z,F]);return U?null:r.a.createElement("span",{className:G},a&&Y,r.a.createElement("span",{className:W},d?r.a.createElement("div",{className:z},r.a.createElement("div",{className:"ui__choice__input__toggle"})):r.a.createElement("div",{className:z},H&&!s&&r.a.createElement(C.a,{glyph:"icon-check",className:"ui__choice__input__icon"})),r.a.createElement("input",x({},L,{id:F,type:s?"radio":"checkbox",ref:M,checked:O,disabled:T,name:_,onChange:function(e){void 0===O&&V(e.target.checked),null==m||m(e)},onFocus:N,onBlur:D}),c)),!a&&Y)}));k.displayName="Choice",k.propTypes={dataElement:T.a.string,label:T.a.node,leftLabel:T.a.bool,radio:T.a.bool,isSwitch:T.a.bool,center:T.a.bool,disabledLabelChange:T.a.bool,className:T.a.string,id:T.a.string,onChange:T.a.func,onFocus:T.a.func,onBlur:T.a.func,checked:T.a.bool,disabled:T.a.bool,name:T.a.string,children:T.a.node};var L=k;t.a=L},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o={black:"#000000",white:"#FFFFFF",blue1LightMode:"#E7EDF3",blue1DarkDarkMode:"#192530",blue5:"#2B73AB",blue6:"#1A466B",gray0:"#FFFFFF",gray2:"#F1F3F5",gray4:"#CFD4DA",gray5:"#ADB5BD",gray6:"#818A92",gray7:"#697077",gray8:"#485056",gray9:"#343A40",gray10:"#21242A"},r={"text-color":o.gray9,"primary-button-hover":o.blue6},i=["#F1A099","#FFC67B","#FFE6A2","#80E5B1","#92E8E8","#A6A1E6","#E2A1E6","#E44234","#FF8D00","#FFCD45","#00CC63","#25D2D1","#4E7DE9","#C544CE","#88271F","#B54800","#F69A00","#007A3B","#167E7D","#2E4B8B","#76287B","#FFFFFF","#CDCDCD","#9C9C9C","#696969","#272727","#000000","transparency"]},function(e,t,n){var o=n(52),r=n(129),i=o.Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(27),n(46),n(12),n(33),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(64),n(11),n(31),n(13);var o=n(205),r=n(1),i=n(57),a=(n(307),n(308),n(309),n(16),n(238)),l=n.n(a),c=function(e,t){return null!=t&&t.extension?t.extension.toLowerCase():e?e instanceof File?e.name.split(".").pop().toLowerCase():(e instanceof Blob||e instanceof ArrayBuffer)&&null!=t&&t.filename?t.filename.split(".").pop().toLowerCase():l()(e)?e.split("?")[0].split("#")[0].split(".").pop().toLowerCase():null:null},u=n(39),s=n(3),d=n(5),p=n(7);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;(n=h(h({},g()),n)).docId=n.docId||n.documentId||null;var a=n.onLoadingProgress;if(n.onLoadingProgress=function(t){a&&a(t),e(s.a.setLoadingProgress(t))},n.password=y(n.password,e),n.xodOptions=v(n),"onError"in n){var l=n.onError;n.onError=function(e){Object(i.b)(e),l(e)}}else n.onError=i.b;e(s.a.closeElement(d.a.PASSWORD_MODAL));var u,f=c(t,n),m=n.initialMode===p.z.DOCX_EDITOR||n.enableOfficeEditing,b=n.initialMode===p.z.SPREADSHEET_EDITOR;return m&&p.x.includes(f)||b&&p.y.includes(f)?n.enableOfficeEditing=!0:n.enableOfficeEditing=!1,t?u=r.a.loadDocument(t,n,o).catch((function(){})):b?u=r.a.loadBlankSpreadsheet(n):m&&(u=r.a.loadBlankOfficeEditorDocument(n)),e(s.a.openElement(d.a.PROGRESS_MODAL)),u};var g=function(){return{startOffline:Object(u.a)("startOffline",!1),azureWorkaround:Object(u.a)("azureWorkaround",!1),webviewerServerURL:Object(u.a)("webviewerServerURL",""),fallbackToClientSide:Object(u.a)("fallbackToClientSide",!1),singleServerMode:Object(u.a)("singleServerMode",!1),webviewerServerRangeRequests:Object(u.a)("wvsRange",!0),forceClientSideInit:Object(u.a)("forceClientSideInit",!1),disableWebsockets:Object(u.a)("disableWebsockets",!1),cacheKey:Object(u.a)("cacheKey",null),officeOptions:JSON.parse(Object(u.a)("officeOptions",null)),rasterizerOptions:JSON.parse(Object(u.a)("rasterizerOptions",null)),streaming:Object(u.a)("streaming",null),useDownloader:Object(u.a)("useDownloader",!0),backendType:Object(u.a)("pdf",null),loadAsPDF:Object(u.a)("loadAsPDF",null),initialMode:Object(u.a)("initialMode",null),enableOfficeEditing:Object(u.a)("enableOfficeEditing",!1)}},y=function(e,t){var n,r=!1;return function(i){t(s.a.setPasswordAttempts(n++)),e||(e=""),r||"string"!=typeof e?(r&&1!==n&&console.error("Wrong password has been passed as an argument. WebViewer will open password modal."),Object(o.setCheckPasswordFunction)(i),t(s.a.openElement(d.a.PASSWORD_MODAL))):(i(e),r=!0,n=0)}},v=function(e){var t=e.xodOptions||{};return e.decryptOptions&&(t.decrypt=window.Core.Encryption.decrypt,t.decryptOptions=e.decryptOptions),e.decrypt&&(t.decrypt=e.decrypt),null!==e.streaming&&(t.streaming="true"===e.streaming||!0===e.streaming),e.azureWorkaround&&(t.azureWorkaround=e.azureWorkaround),e.startOffline&&(t.startOffline=e.startOffline),t}},function(e,t,n){"use strict";n(38),n(386),n(164),n(26),n(16),n(1186),n(40),n(35),n(137),n(93);var o=n(1),r=n(45),i=n(143),a=n(53),l=n(74),c=n(73),u="tap",s="doubleTap",d="pinch",p="pan",f="swipe",m={initialize:function(e,t){this.document=e,this.container=t,this.allowSwipe=!0,this.allowHorizontalSwipe=!0,this.allowVerticalSwipe=!1,this.verticalMomentum=0,this.horziontalMomentum=0,this.verticalLock=!1,this.horziontalLock=!1,this.enableTouchScrollLock=!0,this.startingScrollLeft=null,this.startingScrollTop=null,this._useNativeScroll=!1;try{var n=c.a.getItemSynchronous("webviewer-useNativeScroll");n&&(this._useNativeScroll=JSON.parse(n))}catch(e){console.warn("localStorage could not be accessed. ".concat(e.message))}this.touch={clientX:0,clientY:0,distance:0,horizontalDistance:0,verticalDistance:0,scale:1,zoom:1,type:""},this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.handleTouchCancel=this.handleTouchCancel.bind(this),this.container.addEventListener("touchstart",this.handleTouchStart,{passive:!1}),this.container.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.container.addEventListener("touchend",this.handleTouchEnd,{passive:!1}),this.container.addEventListener("touchcancel",this.handleTouchCancel,{passive:!1})},terminate:function(){this.container.removeEventListener("touchstart",this.handleTouchStart),this.container.removeEventListener("touchmove",this.handleTouchMove),this.container.removeEventListener("touchend",this.handleTouchEnd),this.container.removeEventListener("touchcancel",this.handleTouchCancel)},handleTouchStart:function(e){if("Pan"===o.a.getToolMode().name&&o.a.getDocumentViewer().isStylusModeEnabled()&&"stylus"===e.touches[0].touchType)return o.a.setToolMode(o.a.getTool("Pan").previouslyUsedTool.name),void function(e,t){if(!e.annotation){var n=t.clientX,o=t.clientY,r=t.screenX,i=t.screenY,a=t.pageX,l=t.pageY;e.pointerType="pen";var c=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,clientX:n,clientY:o,screenX:r,screenY:i,pageX:a,pageY:l,button:0,buttons:1});e.mouseLeftDown(c)}}(o.a.getToolMode(),e.touches[0]);switch(e.touches.length){case 1:var t=e.touches[0],n=this.container.clientWidth,i=this.document.clientWidth,a=this.touch.type===u&&this.getDistance(this.touch,t)<=10;this.touch={clientX:t.clientX,clientY:t.clientY,distance:0,scale:n/i,zoom:o.a.getZoom(),type:a?s:u,touchStartTimeStamp:Date.now(),stopMomentumScroll:!0,touchMoveCount:0},this.startingScrollLeft=this.container.scrollLeft,this.startingScrollTop=this.container.scrollTop,clearTimeout(this.doubleTapTimeout);break;case 2:e.cancelable&&e.preventDefault();var l=e.touches[0],c=e.touches[1],d=(l.clientX+c.clientX)/2,p=(l.clientY+c.clientY)/2,f=d-this.document.offsetLeft+this.container.scrollLeft,m=p-this.document.offsetTop+this.container.scrollTop;this.touch={previousPinchScale:0,marginLeft:this.document.offsetLeft,marginTop:parseFloat(window.getComputedStyle(this.document).marginTop),clientX:d,clientY:p,docX:f,docY:m,distance:this.getDistance(l,c),scale:1,zoom:o.a.getZoom(),touchStartTimeStamp:Date.now(),stopMomentumScroll:!0,touchMoveCount:0},r.h||(this.document.style.transformOrigin="".concat(f,"px ").concat(m,"px")),this.startingScrollLeft=this.container.scrollLeft,this.startingScrollTop=this.container.scrollTop}},axisLockThreshold:8,isScrollingVertically:function(){return Math.abs(this.verticalMomentum)>0&&0===this.horziontalMomentum||Math.abs(this.touch.verticalDistance)>this.axisLockThreshold*Math.abs(this.touch.horizontalDistance)},isScrollingHorziontally:function(){return Math.abs(this.horziontalMomentum)>0&&0===this.verticalMomentum||Math.abs(this.touch.horizontalDistance)>this.axisLockThreshold*Math.abs(this.touch.verticalDistance)},canLockScrolling:function(){var e=this.container,t=this.document,n=t.clientWidth<e.clientWidth||t.clientHeight<e.clientHeight,o=this.verticalLock||this.horziontalLock;return!n&&this.enableTouchScrollLock&&this.touch.touchMoveCount<6&&!o},handleScroll:function(e){this.useNativeScroll||(this.touch.horizontalDistance=this.touch.clientX-e.clientX,this.touch.verticalDistance=this.touch.clientY-e.clientY,this.canLockScrolling()&&(this.verticalLock=this.isScrollingVertically(),this.horziontalLock=this.isScrollingHorziontally()),this.enableTouchScrollLock&&(this.verticalLock&&(this.container.scrollTo(this.startingScrollLeft,this.container.scrollTop),this.touch.horizontalDistance=0),this.horziontalLock&&(this.container.scrollTo(this.container.scrollLeft,this.startingScrollTop),this.touch.verticalDistance=0)))},handleTouchMove:function(e){switch(e.touches.length){case 1:e.cancelable&&e.preventDefault();var t=e.touches[0];this.getDistance(this.touch,t)>10&&(this.touch.type=f),this.handleScroll(t),this.touch.touchMoveCount++;break;case 2:var n=e.touches[0],i=e.touches[1],a=o.a.getTool("Pan"),c=a.isPanning(),u=a.isPinching();if(c){this.touch.type=p,e.cancelable&&e.preventDefault();var s={clientX:(n.clientX+i.clientX)/2,clientY:(n.clientY+i.clientY)/2};this.getDistance(this.touch,s)>10&&(this.touch.type=f),this.handleScroll(s),this.touch.touchMoveCount++;break}if(u){if(this.touch.type=d,e.cancelable&&e.preventDefault(),this.touch.scale=this.getDistance(n,i)/this.touch.distance,this.touch.scale*this.touch.zoom<Object(l.d)()?this.touch.scale=Object(l.d)()/this.touch.zoom:this.touch.scale*this.touch.zoom>Object(l.c)()&&(this.touch.scale=Object(l.c)()/this.touch.zoom),r.h){var m=(this.touch.marginLeft-this.container.offsetLeft+(1-this.touch.scale)*this.touch.docX)/this.touch.scale,h=(this.touch.marginTop+(1-this.touch.scale)*this.touch.docY)/this.touch.scale;this.document.style.marginLeft="".concat(m,"px"),this.document.style.marginTop="".concat(h,"px"),this.document.style.zoom=this.touch.scale}else this.document.style.transform="scale(".concat(this.touch.scale,")");break}}},handleTouchEnd:function(e){var t=this;switch(this.touch.type){case u:this.doubleTapTimeout=setTimeout((function(){t.touch.type=""}),300),this.horziontalLock=!1,this.verticalLock=!1;break;case f:var n=!o.a.getDocumentViewer().isStylusModeEnabled(),a=this.isUsingAnnotationTools()&&n,c=this.isUsingPen()&&!n,p=this.container,m=this.document;if(!this.allowSwipe||a||c||o.a.getSelectedText().length||o.a.getSelectedAnnotations().length)return this.horziontalLock=!1,void(this.verticalLock=!1);var h=this.reachedBoundary(),b=h.reachedLeft,g=h.reachedTop,y=h.reachedRight,v=h.reachedBottom,w=.1*this.container.clientWidth,E=function(e){var t=e.horizontalDistance,n=e.verticalDistance,o=e.reachedLeft,r=e.reachedRight,i=e.reachedTop,a=e.reachedBottom,l=e.threshold,c=!1,u=!1,s=!1,d=!1;return Math.abs(t)>=Math.abs(n)?(c=r&&t>l,u=o&&t<-l):(s=a&&n>l,d=i&&n<-l),{swipedToRight:c,swipedToLeft:u,swipedToBottom:s,swipedToTop:d}}({horizontalDistance:this.touch.horizontalDistance,verticalDistance:this.touch.verticalDistance,reachedLeft:b,reachedRight:y,reachedTop:g,reachedBottom:v,threshold:w}),C=E.swipedToRight,O=E.swipedToLeft,T=E.swipedToBottom,S=E.swipedToTop,x=o.a.getCurrentPage(),A=o.a.getTotalPages(),_=Object(i.a)(),P=1===x,k=x===A,L=!o.a.isContinuousDisplayMode(),M=m.clientWidth<p.clientWidth||m.clientHeight<p.clientHeight,j=L&&!P&&(O&&this.allowHorizontalSwipe||S&&this.allowVerticalSwipe)&&M,I=L&&!k&&(C&&this.allowHorizontalSwipe||T&&this.allowVerticalSwipe)&&M;if(j)o.a.setCurrentPage(Math.max(1,x-_));else if(I)o.a.setCurrentPage(Math.min(A,x+_));else if(!this.useNativeScroll){var R=(Date.now()-this.touch.touchStartTimeStamp)/1e3;R<.2?(this.touch.stopMomentumScroll=!1,this.startMomentumScroll(R)):(this.horziontalLock=!1,this.verticalLock=!1)}break;case s:var N=o.a.getAnnotationByMouseEvent(e),D=N&&N instanceof window.Core.Annotations.FreeTextAnnotation;if(this.isUsingAnnotationTools()){var F,B=o.a.getToolMode();null===(F=B.finish)||void 0===F||F.call(B)}else if(!D){this.oldZoom?(this.touch.scale=Math.max(this.oldZoom/this.touch.zoom,Object(l.d)()/this.touch.zoom),this.oldZoom=null):(this.touch.scale=Math.min(3,Object(l.c)()/this.touch.zoom),this.oldZoom=this.touch.zoom);var H=o.a.getZoom()*this.touch.scale,V=this.getPointAfterScale(),U=V.x,G=V.y;o.a.zoomTo(H,U,G)}D&&o.a.getAnnotationManager().trigger("annotationDoubleClicked",N);break;case d:if(this.touch.previousPinchScale===this.touch.scale)return;this.touch.previousPinchScale=this.touch.scale,r.h?(this.document.style.zoom=1,this.document.style.margin="auto"):this.document.style.transform="none";var W=o.a.getZoom()*this.touch.scale,z=this.getPointAfterScale(),Z=z.x,Y=z.y;o.a.zoomTo(W,Z,Y)}this.touch.touchMoveCount=0,this.verticalMomentum=0,this.horziontalMomentum=0},handleTouchCancel:function(e){this.handleTouchEnd(e)},startMomentumScroll:function(e){var t=this,n=1,o=this.container.scrollLeft,r=this.container.scrollTop,i=this.touch.horizontalDistance/e/1.85,a=this.touch.verticalDistance/e/1.85,l=function(){var e=t.easeOutQuad(n,o,i,70),c=t.easeOutQuad(n,r,a,70);t.verticalMomentum=a,t.horziontalMomentum=i;var u=!t.touch.touchMoveCount,s=t.container.scrollLeft-e,d=t.container.scrollTop-c,p=Math.abs(s)<1&&Math.abs(d)<1;t.container.scrollLeft=e,t.container.scrollTop=c,u&&p&&(t.horziontalLock=!1,t.verticalLock=!1),n<70&&!t.touch.stopMomentumScroll&&(n++,requestAnimationFrame(l)),u&&70===n&&(t.horziontalLock=!1,t.verticalLock=!1,t.verticalMomentum=0,t.horziontalMomentum=0)};requestAnimationFrame(l)},easeOutQuad:function(e,t,n,o){return-n*(e/=o)*(e-2)+t},reachedBoundary:function(){var e=this.container,t=e.clientHeight,n=e.clientWidth,o=e.scrollLeft,r=e.scrollTop,i=this.document;return{reachedLeft:o<=0,reachedTop:r<=0,reachedBottom:t+r>=i.clientHeight,reachedRight:n+o>=i.clientWidth}},getDistance:function(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointAfterScale:function(){return{x:(this.touch.clientX+this.container.scrollLeft-this.document.offsetLeft)*this.touch.scale-this.touch.clientX+this.container.offsetLeft,y:(this.touch.clientY+this.container.scrollTop-this.document.offsetTop)*this.touch.scale-this.touch.clientY+this.container.offsetTop}},isUsingAnnotationTools:function(){var e=o.a.getToolMode();return Object(a.e)(Object(a.j)(e.name)).annotationCheck},isUsingPen:function(){return o.a.getToolMode().pointerType&&"pen"===o.a.getToolMode().pointerType},get useNativeScroll(){return this._useNativeScroll},set useNativeScroll(e){this._useNativeScroll=e;try{c.a.setItemSynchronous("webviewer-useNativeScroll",JSON.stringify(this._useNativeScroll))}catch(e){console.warn("localStorage could not be accessed. ".concat(e.message))}}};t.a=Object.create(m)},function(e,t,n){var o=n(58),r=n(634);o({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){var o=n(52),r=n(87),i=n(159),a=n(503),l=n(424);e.exports=function(e,t,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,d=!!c&&!!c.noTargetGet,p=c&&void 0!==c.name?c.name:t;return r(n)&&a(n,p,c),e===o?(s?e[t]=n:l(t,n),e):(u?!d&&e[t]&&(s=!0):delete e[t],s?e[t]=n:i(e,t,n),e)}},function(e,t,n){var o=n(152);e.exports=function(e){return o(e.length)}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(21),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(24),n(8),n(17),n(19),n(11),n(13);var o=n(1);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}t.a=function(e,t,n){var r,l=[],c=a(o.a.getToolsFromAllDocumentViewers(e));try{for(c.s();!(r=c.n()).done;){var u=r.value;u&&l.push(u)}}catch(e){c.e(e)}finally{c.f()}l.forEach((function(e){e.setStyles(i({},t,n))}))}},function(e,t,n){"use strict";var o=n(177),r=n(85),i=n(70),a=n(336),l=n(71),c=n(99),u=n(87),s=n(151),d=n(152),p=n(97),f=n(129),m=n(438),h=n(188),b=n(523),g=n(337),y=n(83)("replace"),v=Math.max,w=Math.min,E=i([].concat),C=i([].push),O=i("".indexOf),T=i("".slice),S="$0"==="a".replace(/./,"$0"),x=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var i=x?"$":"$0";return[function(e,n){var o=f(this),i=null==e?void 0:h(e,y);return i?r(i,e,o,n):r(t,p(o),e,n)},function(e,r){var a=c(this),l=p(e);if("string"==typeof r&&-1===O(r,i)&&-1===O(r,"$<")){var f=n(t,a,l,r);if(f.done)return f.value}var h=u(r);h||(r=p(r));var y=a.global;if(y){var S=a.unicode;a.lastIndex=0}for(var x=[];;){var A=g(a,l);if(null===A)break;if(C(x,A),!y)break;""===p(A[0])&&(a.lastIndex=m(l,d(a.lastIndex),S))}for(var _,P="",k=0,L=0;L<x.length;L++){for(var M=p((A=x[L])[0]),j=v(w(s(A.index),l.length),0),I=[],R=1;R<A.length;R++)C(I,void 0===(_=A[R])?_:String(_));var N=A.groups;if(h){var D=E([M],I,j,l);void 0!==N&&C(D,N);var F=p(o(r,void 0,D))}else F=b(M,l,j,I,N,r);j>=k&&(P+=T(l,k,j)+F,k=j+M.length)}return P+T(l,k)}]}),!!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!S||x)},function(e,t,n){n(684)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var o=640,r=900},function(e,t,n){"use strict";var o=n(58),r=n(442).left,i=n(192),a=n(212),l=n(314);o({target:"Array",proto:!0,forced:!i("reduce")||!l&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(82),n(27),n(21),n(46),n(77),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(64),n(11),n(115),n(31),n(13),n(93);var o=n(0),r=n.n(o),i=n(122),a=n.n(i),l=n(2),c=n.n(l),u=n(306),s=n(55),d=n(6),p=n(4),f=n(300),m=n(57),h=n(45),b=n(23),g=n(54);n(1072);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T={children:c.a.element.isRequired,content:c.a.string,hideShortcut:c.a.bool,forcePosition:c.a.string,hideOnClick:c.a.bool,xOffset:c.a.number},S=function(e,t){return t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>=e.top&&t.clientY<=e.bottom},x=Object(o.forwardRef)((function(e,t){var n=e.content,i=void 0===n?"":n,l=e.children,c=e.hideShortcut,y=e.forcePosition,v=e.hideOnClick,E=void 0===v||v,O=e.xOffset,T=void 0===O?0:O,x=Object(o.useRef)(null),A=Object(o.useRef)(!1),_=Object(o.useRef)(null);Object(o.useImperativeHandle)(t,(function(){return _.current}));var P=Object(d.e)((function(e){return p.a.isElementDisabled(e,"tooltip")})),k=Object(o.useRef)(null),L=C(Object(o.useState)(!1),2),M=L[0],j=L[1],I=C(Object(o.useState)(0),2),R=I[0],N=I[1],D=C(Object(o.useState)({top:0,left:0}),2),F=D[0],B=D[1],H=C(Object(o.useState)("bottom"),2),V=H[0],U=H[1],G=C(Object(u.a)(),3),W=G[0],z=G[1],Z=G[2];Object(o.useEffect)((function(){var e,t,n,o=function(){clearTimeout(x.current),A.current||(x.current=setTimeout((function(){Object(s.l)(l),j(!0),Object(m.a)(g.a.TOOLTIP_OPENED)}),250))},r=function(){clearTimeout(x.current),j(!1)},a=function(){A.current=!1,r()},l=function(){A.current=!0,r()},c=function(e){var t,n;if(null!==(t=_.current)&&void 0!==t&&t.contains(e.target)||null!==(n=k.current)&&void 0!==n&&n.contains(e.target))o();else{var i,a,l=null===(i=_.current)||void 0===i?void 0:i.getBoundingClientRect(),c=null===(a=k.current)||void 0===a?void 0:a.getBoundingClientRect(),u=l&&S(l,e),s=c&&S(c,e),d=c&&l&&{top:Math.min(l.top,c.top),bottom:Math.max(l.bottom,c.bottom),left:Math[l.bottom<c.top?"max":"min"](l.left,c.left),right:Math[l.bottom<c.top?"min":"max"](l.right,c.right)},p=d&&S(d,e);u||s||p||(A.current=!1,r())}};(Object(b.a)().addEventListener("pointermove",c),E)&&(null===(e=_.current)||void 0===e||e.addEventListener("click",l));"action.cancel"===_.current.ariaLabel||"action.cancel"===i||_.current.parentElement.parentElement.className.includes("TextPopup")||(null===(t=_.current)||void 0===t||t.addEventListener("focus",o),null===(n=_.current)||void 0===n||n.addEventListener("blur",a));var u=new MutationObserver((function(e){var t=e[e.length-1];t&&"disabled"===t.attributeName&&t.target.disabled&&setTimeout((function(){r()}),300)}));return u.observe(_.current,{attributes:!0,childList:!1,characterData:!1}),function(){var e,t,n;(r(),u.disconnect(),Object(b.a)().removeEventListener("pointermove",c),E)&&(null===(n=_.current)||void 0===n||n.removeEventListener("click",l));null===(e=_.current)||void 0===e||e.removeEventListener("focus",o),null===(t=_.current)||void 0===t||t.removeEventListener("blur",a)}}),[_,E]),Object(o.useLayoutEffect)((function(){var e=_.current,t=k.current;M&&e&&t?(!function(){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=0,i=0;if(window.isApryseWebViewerWebComponent){var a=Object(b.a)().host.getBoundingClientRect();r=a.x,i=a.y}var l={bottom:{top:n.bottom-i,left:n.left+n.width/2-o.width/2-r},bottomLeft:{top:n.bottom-i,left:n.left-r},top:{top:n.top-o.height-i,left:n.left+n.width/2-o.width/2-r},topLeft:{top:n.top-o.height-i,left:n.left-r},left:{top:n.top+n.height/2-o.height/2-i,left:n.left-o.width-r},right:{top:n.top+n.height/2-o.height/2-i,left:n.right-r}},c=Object.keys(l).find((function(e){if(y)return e===y;var t=l[e],n=t.top,r=t.left;return n>0&&n+o.height<window.innerHeight&&r>0&&r+o.width<window.innerWidth}))||"bottom",u=l[c],s=u.top,d=u.left,p=Object(f.a)(),m=p.scaleX,h=p.scaleY;B({top:s/h,left:(d+T)/m}),U(c)}(),setTimeout((function(){N(1)}),50)):N(0)}),[_,M]);var Y=h.h||h.a,q=r.a.cloneElement(l,{ref:_}),K=W(i),$=i.slice(i.indexOf(".")+1);h.o&&"redo"===$&&($="redo_windows");var X=s.g.isActive($),J=-1===W("shortcut.".concat($)).indexOf("."),Q=(Z?z.getFixedT("en"):function(e){return e})("shortcut.".concat($));return h.j&&(Q=Q.replace("Ctrl","Cmd")),X||(J=!1),r.a.createElement(r.a.Fragment,null,q,M&&K&&!Y&&!P&&a.a.createPortal(r.a.createElement("div",{className:"tooltip--".concat(V),style:w({opacity:R},F),ref:k,"data-element":"tooltip"},r.a.createElement("div",{className:"tooltip__content"},K,J&&!c&&r.a.createElement("span",{className:"tooltip__shortcut"},Q))),Object(b.a)().querySelector("#app")))}));x.displayName="Tooltip",x.propTypes=T;var A=r.a.memo(x);t.a=A},function(e,t,n){"use strict";n.d(t,"e",(function(){return I})),n.d(t,"a",(function(){return R})),n.d(t,"f",(function(){return N})),n.d(t,"l",(function(){return D})),n.d(t,"i",(function(){return F})),n.d(t,"m",(function(){return B})),n.d(t,"j",(function(){return H})),n.d(t,"b",(function(){return V})),n.d(t,"n",(function(){return U})),n.d(t,"h",(function(){return G})),n.d(t,"o",(function(){return W})),n.d(t,"k",(function(){return z})),n.d(t,"c",(function(){return Z})),n.d(t,"g",(function(){return Y}));n(9),n(10),n(14),n(38),n(125),n(82),n(27),n(46),n(12),n(18),n(26),n(40),n(24),n(41),n(35),n(42),n(8),n(88),n(56),n(19),n(64),n(11),n(31),n(13),n(93);var o=n(1),r=n(39),i=(n(21),n(20),n(44),n(22),n(16),n(17),n(5));function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c=function(e){var t=["thumbnailsPanel",i.a.OUTLINE_PANEL,"layersPanel",i.a.BOOKMARK_PANEL,"signaturePanel",i.a.NOTES_PANEL,i.a.PORTFOLIO_PANEL],n=e.viewer.customPanels.map((function(e){return e.panel.dataElement}));return[].concat(t,a(n))},u=n(3),s=n(4),d=n(60),p=n(63),f=n(169),m=n(479),h=n(29),b=n(144),g=n(55),y=n(23),v=n(65),w=n(28),E=n(270),C=n(25),O=n(76),T=n(7),S=n(161),x=n(257);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(A(e)+" is not iterable")}function P(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return k(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(k(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,k(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,k(d,"constructor",u),k(u,"constructor",c),c.displayName="GeneratorFunction",k(u,r,"GeneratorFunction"),k(d),k(d,r,"Generator"),k(d,o,(function(){return this})),k(d,"toString",(function(){return"[object Generator]"})),(P=function(){return{w:i,m:p}})()}function k(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(k=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){k(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function L(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function M(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){L(i,o,r,a,l,"next",e)}function l(e){L(i,o,r,a,l,"throw",e)}a(void 0)}))}}var j=Object(r.a)("notesInLeftPanel",!1),I=(t.d=function(e,t){return M(P().m((function n(){var r;return P().w((function(n){for(;;)switch(n.n){case 0:(r=e.dispatch)(u.a.openElement("pageNavOverlay")),r(u.a.setZoom(o.a.getZoom(t),t)),r(u.a.setThumbnailSelectingPages(!1));case 1:return n.a(2)}}),n)})))},function(e){return function(){o.a.enableRedaction(Object(r.a)("enableRedaction",!1)||o.a.isCreateRedactionEnabled()),o.a.isCreateRedactionEnabled()?(e(u.a.enableElement("redactionToolGroupButton",p.a)),e(u.a.enableElement("pageRedactionToolGroupButton",p.a))):(e(u.a.disableElement("redactionToolGroupButton",p.c)),e(u.a.disableElement("pageRedactionToolGroupButton",p.c)))}}),R=function(e,t){return M(P().m((function n(){var r,i,a,l,c,d,p,f,m,b;return P().w((function(n){for(;;)switch(n.n){case 0:if(r=e.dispatch,i=e.getState,a=o.a.getDocumentViewer(t),!o.a.isFullPDFEnabled()){n.n=3;break}return l=window.Core.PDFNet,c=!1,d=function(){c=!0},f=(p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};return t.promise=new Promise((function(n,o){t.resolve=n,t.reject=o,e&&n()})),t})(!0),a.addEventListener("beginRendering",(function(){return f=p()})),a.addEventListener("finishedRendering",(function(){return f.resolve()})),m=function(){if(c)throw a.removeEventListener("documentUnloaded",d),new Error("setPageLabels is cancelled because the document got closed.")},a.addEventListener("documentUnloaded",d,{once:!0}),m(),n.n=1,a.getDocument().getPDFDoc();case 1:if(b=n.v){n.n=2;break}return n.a(2);case 2:l.initialize().then(M(P().m((function e(){var t,n,a,c,d,p;return P().w((function(e){for(;;)switch(e.n){case 0:return n=[],a=function(){var e=M(P().m((function e(){var n,i,a;return P().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,m(),e.n=1,b.getPageCount();case 1:if(t=e.v,n=o.a.getTotalPages(),t===n){e.n=2;break}throw i=h.a.t("message.errorLoadingDocument",{totalPageCount:t,displayedPageCount:n}),r(u.a.showErrorMessage(i)),new Error("pdfDoc.getPageCount() returns ".concat(t," and this does not match with documentViewer.getPageCount() which returns ").concat(n,"."));case 2:e.n=4;break;case 3:e.p=3,a=e.v,console.warn(a);case 4:return e.a(2)}}),e,null,[[0,3]])})));return function(){return e.apply(this,arguments)}}(),e.n=1,f.promise;case 1:return e.n=2,l.runWithCleanup(a);case 2:c=P().m((function e(t){var o;return P().w((function(e){for(;;)switch(e.n){case 0:return o=function(){var e=M(P().m((function e(){var o,r,i;return P().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,m(),e.n=1,b.getPageLabel(t);case 1:return o=e.v,m(),e.n=2,o.getLabelTitle(t);case 2:r=e.v,n.push(r.length>0?r:t.toString()),e.n=4;break;case 3:e.p=3,i=e.v,console.warn(i);case 4:return e.a(2)}}),e,null,[[0,3]])})));return function(){return e.apply(this,arguments)}}(),e.n=1,f.promise;case 1:return e.n=2,l.runWithCleanup(o);case 2:return e.a(2)}}),e)})),d=1;case 3:if(!(d<=t)){e.n=5;break}return e.d(_(c(d)),4);case 4:d++,e.n=3;break;case 5:m(),p=Object(x.a)(t),s.a.getPageLabels(i()).every((function(e,t){return e===p[t]}))&&r(u.a.setPageLabels(n));case 6:return e.a(2)}}),e)}))));case 3:return n.a(2)}}),n)})))},N=function(e,t){return function(){var n,r=null===(n=o.a.getDocumentViewer(t).getDocument())||void 0===n?void 0:n.getDocumentCompletePromise();null==r||r.then((function(){e(u.a.closeElement(i.a.PASSWORD_MODAL))}))}},D=function(e){return function(){e(u.a.setLoadingProgress(1)),setTimeout((function(){e(u.a.closeElement(i.a.PROGRESS_MODAL)),e(u.a.resetLoadingProgress())}),300)}},F=function(e,t){return function(){var n=e.dispatch,r=e.getState;o.a.getDocumentViewer(t).getAnnotationManager().getFieldManager().setPrintHandler((function(){Object(f.a)(n,s.a.useClientSidePrint(r()),s.a.isEmbedPrintSupported(r()),s.a.getSortStrategy(r()),s.a.getColorMap(r()))}))}},B=function(){return function(){Object(r.a)("a",!1)?o.a.getDocumentViewers().forEach((function(e){e.getDocument()&&Object(v.p)()||e.enableAnnotations()})):o.a.getDocumentViewers().forEach((function(e){return e.disableAnnotations()}))}},H=function(){return function(){Object(y.c)().instance.UI.loadedFromServer=!1,Object(y.c)().instance.UI.serverFailed=!1}},V=function(e){return function(){var t=o.a.getDocument(),n=t.getType();n===d.a.PDF||n===d.a.WEBVIEWER_SERVER&&!t.isWebViewerServerDocument()?(e(u.a.enableElement("cropToolGroupButton",p.a)),e(u.a.enableElement("contentEditButton",p.a)),e(u.a.enableElement("addParagraphToolGroupButton",p.a))):n===d.a.IMAGE?(e(u.a.disableElement("contentEditButton",p.a)),e(u.a.disableElement("addParagraphToolGroupButton",p.a))):(e(u.a.disableElement("cropToolGroupButton",p.a)),e(u.a.disableElement("contentEditButton",p.a)),e(u.a.disableElement("addParagraphToolGroupButton",p.a)))}},U=function(e,t){return function(){o.a.getDocument(t).addEventListener("bookmarksUpdated",(function(){return o.a.getOutlines((function(t){return e(u.a.setOutlines(t))}),t)})),m.a.setDoc(o.a.getDocument(t))}},G=function(e,t){var n=t.dispatch,o=t.getState(),r=o.featureFlags.customizableUI;if((r?s.a.getActiveTabInPanel(o,w.e.TABS):s.a.getActiveLeftPanel(o))===e){var i=c(o).find((function(e){return!s.a.isElementDisabled(o,e)}));n(r?u.a.setActiveTabInPanel(i,w.e.TABS):u.a.setActiveLeftPanel(i))}},W=function(e){return M(P().m((function t(){var n,o;return P().w((function(t){for(;;)switch(t.n){case 0:return n=e.dispatch,t.n=1,Object(E.f)();case 1:o=t.v,n(u.a.setPortfolio(o)),0===o.length&&G(i.a.PORTFOLIO_PANEL,e);case 2:return t.a(2)}}),t)})))},z=function(e){return function(){var t=o.a.getDocumentViewer(e);Object(r.a)("enableCompositionInput",!1)&&t.enableCompositionInput()}},Z=function(e){return function(){var t=e.getState,n=e.dispatch,a=o.a.getDocument(),l=o.a.getTool("OfficeEditorContentSelect"),c=function(e){return s.a.getIsCustomUIEnabled(e.getState())}(e),d=function(e){var o=s.a.getUIConfiguration(t());o!==e&&(n(u.a.stashComponents(o)),n(u.a.restoreComponents(e)))},f=function(e){n(u.a.setOfficeEditorEditMode(e)),e===C.B.VIEW_ONLY||e===C.B.PREVIEW?(n(c?u.a.disableElement(i.a.OFFICE_EDITOR_TOOLS_HEADER,p.c):u.a.closeElement(i.a.OFFICE_EDITOR_TOOLS_HEADER)),n(u.a.disableElements([i.a.CONTEXT_MENU_POPUP,i.a.NOTE_MULTI_SELECT_MODE_BUTTON,i.a.SEARCH_PANEL_REPLACE_CONTAINER],p.c))):(n(c?u.a.enableElement(i.a.OFFICE_EDITOR_TOOLS_HEADER,p.c):u.a.openElement(i.a.OFFICE_EDITOR_TOOLS_HEADER)),n(u.a.enableElements([i.a.CONTEXT_MENU_POPUP,i.a.NOTE_MULTI_SELECT_MODE_BUTTON,i.a.SEARCH_PANEL_REPLACE_CONTAINER],p.c))),e===C.B.REVIEWING||e===C.B.PREVIEW?n(u.a.openElement(c?i.a.OFFICE_EDITOR_REVIEW_PANEL:i.a.LEFT_PANEL)):n(u.a.closeElement(c?i.a.OFFICE_EDITOR_REVIEW_PANEL:i.a.LEFT_PANEL))},m=function(e){n(u.a.setOfficeEditorActiveStream(e))};Object(v.p)()?function(){(function(e){return s.a.getIsOfficeEditorHeaderEnabled(e.getState())})(e)||(d(T.z.DOCX_EDITOR),n(u.a.setIsOfficeEditorHeaderEnabled(!0)),n(u.a.disableSpreadsheetEditorMode()),n(u.a.setUIConfiguration(T.z.DOCX_EDITOR))),n(u.a.setIsOfficeEditorMode(!0)),n(u.a.enableElements(C.i,p.c)),n(u.a.disableElements(C.h,p.c)),b.a.unbind("*",C.x),b.a.setScope(C.x);var i=g.d[g.e.SEARCH];Object(b.a)(i,C.x,g.g.keyHandlerMap[i]);var c=g.d[g.e.SET_HEADER_FOCUS];Object(b.a)(c,C.x,g.g.keyHandlerMap[c]);var h=Object(r.a)("officeEditorOptions","{}"),y=JSON.parse(h).initialEditMode||C.B.EDITING;Object.values(C.B).includes(y)||(console.warn("Invalid initialEditMode parameter: ".concat(y,". Default to Editing mode.")),y=C.B.EDITING),a.getOfficeEditor().setEditMode(y),f(y),a.addEventListener("editModeUpdated",f),m(C.k.BODY),l.addEventListener("activeStreamChanged",m),a.addEventListener("editOperationStarted",(function(e){switch(e.source){case C.g.HEADER_FOOTER:o.a.getOfficeEditor().setEditMode("viewOnly");break;case C.g.REPLACE:n(u.a.setOfficeEditorIsReplaceInProgress(!0))}n(u.a.openElement("loadingModal"))})),a.addEventListener("editOperationEnded",(function(e){switch(e.source){case C.g.HEADER_FOOTER:o.a.getOfficeEditor().setEditMode("editing");break;case C.g.REPLACE:n(u.a.setOfficeEditorIsReplaceInProgress(!1))}n(u.a.closeElement("loadingModal"))})),o.a.zoomTo(1,0,0),j=s.a.getNotesInLeftPanel(t()),n(u.a.setNotesInLeftPanel(!0)),n(u.a.setClearSearchOnPanelClose(!0))}():Object(v.q)()?function(){c||(console.warn("Spreadsheet Editor requires Modular UI. Enabling it now."),n(u.a.enableFeatureFlag(S.a.CUSTOMIZABLE_UI)));var e=Object(r.a)("spreadsheetEditorOptions","{}"),a=s.a.getSpreadsheetEditorEditMode(t()),l=JSON.parse(e).initialEditMode||a||O.h.VIEW_ONLY;Object.values(O.h).includes(l)||(console.warn("Invalid initialEditMode parameter: ".concat(l,". Default to view mode.")),l=O.h.VIEW_ONLY),n(u.a.setSpreadsheetEditorEditMode(l)),o.a.getDocumentViewer().getSpreadsheetEditorManager().setEditMode(l),l===O.h.VIEW_ONLY?n(u.a.disableElements([i.a.SEARCH_PANEL_REPLACE_CONTAINER],p.b)):n(u.a.enableElements([i.a.SEARCH_PANEL_REPLACE_CONTAINER],p.b)),d(T.z.SPREADSHEET_EDITOR),n(u.a.disableElements(O.d)),b.a.unbind("*",O.g),b.a.setScope(O.g),n(u.a.enableSpreadsheetEditorMode()),n(u.a.setUIConfiguration(T.z.SPREADSHEET_EDITOR))}():function(){d(T.z.DEFAULT),n(u.a.setUIConfiguration(T.z.DEFAULT)),n(u.a.disableSpreadsheetEditorMode());var e=s.a.getGenericPanels(t()),o=c?e:[];n(u.a.setGenericPanels(o)),a.removeEventListener("editModeUpdated",f),l.removeEventListener("activeStreamChanged",m),b.a.setScope(g.h),n(u.a.setNotesInLeftPanel(j)),n(u.a.setIsOfficeEditorHeaderEnabled(!1))}()}},Y=function(e,t){return function(){var n=e.dispatch;(function(e){var t=e.isWebViewerServerDocument(),n=e.getType()===d.a.WEBVIEWER_SERVER;return t&&n})(o.a.getDocumentViewer(t).getDocument())&&(n(u.a.disableElement(i.a.LAYERS_PANEL_BUTTON,p.b)),n(u.a.disableElement(i.a.LAYERS_PANEL,p.b)))}}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(21),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(24),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=(n(1215),n(51)),a=n(15),l=n.n(a),c=n(2),u=n.n(c);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var m=function(e){var t=e.header,n=e.children,a=e.className,c=e.role,s=e.style,f=e.headingLevel,h=void 0===f?2:f,b=e.isInitiallyExpanded,g=void 0===b||b,y=e.isExpanded,v=e.onToggle,w=e.ariaControls,E=e.expansionDescription;m.propTypes={header:u.a.oneOfType([u.a.func,u.a.node]).isRequired,children:u.a.node.isRequired,className:u.a.string,role:u.a.string,style:u.a.object,headingLevel:u.a.oneOfType([u.a.number,u.a.string]),isInitiallyExpanded:u.a.bool,isExpanded:u.a.bool,onToggle:u.a.func,ariaControls:u.a.string,expansionDescription:u.a.string};var C=p(Object(o.useState)(g),2),O=C[0],T=C[1];Object(o.useEffect)((function(){void 0!==y&&T(y)}),[y]);var S="h".concat(h),x="function"==typeof t?t():t,A=E||t;return r.a.createElement("div",{className:l()(d({CollapsibleSection:!0},a,!!a)),role:c,style:s},r.a.createElement(S,{className:"collapsible-page-group-header"},r.a.createElement("button",{onClick:function(){var e=!O;T(e),v&&v(e)},"aria-expanded":O,"aria-controls":w,"aria-label":A},x,r.a.createElement(i.a,{className:"arrow",glyph:"icon-chevron-".concat(O?"up":"down")}))),O&&r.a.createElement("div",{className:"collapsible-content"},n))},h=m;t.a=h},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(674)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var o=n(58),r=n(126).findIndex,i=n(217),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";var o=n(58),r=n(126).every;o({target:"Array",proto:!0,forced:!n(192)("every")},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(168),r=n(70),i=n(273),a=n(108),l=n(113),c=n(281),u=r([].push),s=function(e){var t=1==e,n=2==e,r=3==e,s=4==e,d=6==e,p=7==e,f=5==e||d;return function(m,h,b,g){for(var y,v,w=a(m),E=i(w),C=o(h,b),O=l(E),T=0,S=g||c,x=t?S(m,O):n||p?S(m,0):void 0;O>T;T++)if((f||T in E)&&(v=C(y=E[T],T,w),e))if(t)x[T]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return T;case 2:u(x,y)}else switch(e){case 4:return!1;case 7:u(x,y)}return d?-1:r||s?s:x}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(e,t,n){"use strict";n.d(t,"o",(function(){return T})),n.d(t,"p",(function(){return S})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return A})),n.d(t,"m",(function(){return _})),n.d(t,"e",(function(){return P})),n.d(t,"b",(function(){return k})),n.d(t,"i",(function(){return L})),n.d(t,"j",(function(){return M})),n.d(t,"k",(function(){return j})),n.d(t,"l",(function(){return N})),n.d(t,"a",(function(){return D})),n.d(t,"n",(function(){return F})),n.d(t,"h",(function(){return B})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return R}));n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(21),n(20),n(12),n(44),n(22),n(146),n(33),n(18),n(26),n(16),n(30),n(40),n(49),n(24),n(48),n(50),n(41),n(35),n(42),n(8),n(56),n(17),n(19),n(11),n(31),n(13);var o=n(291),r=n(1),i=n(175),a=n(3),l=n(29),c=n(60),u=n(156),s=n(5),d=n(78);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return m(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(m(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,m(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,m(d,"constructor",u),m(u,"constructor",c),c.displayName="GeneratorFunction",m(u,r,"GeneratorFunction"),m(d),m(d,r,"Generator"),m(d,o,(function(){return this})),m(d,"toString",(function(){return"[object Generator]"})),(f=function(){return{w:i,m:p}})()}function m(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(m=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function h(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){h(i,o,r,a,l,"next",e)}function l(e){h(i,o,r,a,l,"throw",e)}a(void 0)}))}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=window.Core.PageRotation,o=n.E_0,r=n.E_90,i=n.E_180,a=n.E_270;switch(e){case a:return t?i:o;case i:return t?r:a;case r:return t?o:i;default:return t?a:r}},O=function(e,t){if(s=r.a.getDocument(),d=null==s?void 0:s.type,c.a.PDF===d||c.a.IMAGE===d||d===c.a.WEBVIEWER_SERVER&&!s.isWebViewerServerDocument()){var n=t?window.Core.PageRotation.E_270:window.Core.PageRotation.E_90;r.a.rotatePages(e,n)}else{var o,i=r.a.getDocumentViewer(),a=i.getPageRotations(),l=w(e);try{for(l.s();!(o=l.n()).done;){var u=o.value;i.setRotation(C(a[u],t),u)}}catch(e){l.e(e)}finally{l.f()}}var s,d},T=function(e){O(e,!1),Object(d.a)("".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.rotatedClockwise")," ").concat(l.a.t("action.rotationIs")," ").concat((r.a.getDocument().getPageRotation(r.a.getCurrentPage())+90)%360," degrees"))},S=function(e){O(e,!0),Object(d.a)("".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.rotatedCounterClockwise")," ").concat(l.a.t("action.rotationIs")," ").concat((r.a.getDocument().getPageRotation(r.a.getCurrentPage())+270)%360," degrees"))},x=function(e,t,n){r.a.insertBlankPages(e,t,n)},A=function(e,t,n){r.a.insertBlankPages(e.map((function(e){return e+1})),t,n)},_=function(e){e(a.a.closeElement(s.a.PAGE_MANIPULATION_OVERLAY)),e(a.a.openElement("pageReplacementModal"))},P=function(e,t){var n=l.a.t("warning.extractPage.message"),c=l.a.t("warning.extractPage.title"),u=l.a.t("warning.extractPage.confirmBtn"),s=l.a.t("warning.extractPage.secondaryBtn"),p="".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.extracted")),f="".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.deleted")),m={message:n,title:c,confirmBtnText:u,onConfirm:function(){return Object(o.a)(e).then((function(e){Object(i.saveAs)(e,"extractedDocument.pdf"),Object(d.a)(p+f)}))},secondaryBtnText:s,onSecondary:function(){Object(o.a)(e).then((function(n){Object(i.saveAs)(n,"extractedDocument.pdf"),r.a.removePages(e).then((function(){t(a.a.setSelectedPageThumbnails([]))})),Object(d.a)(p)}))}};t(a.a.showWarningMessage(m))},k=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o="".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.deleted"));if(n){var i=l.a.t("warning.deletePage.deleteMessage"),c=l.a.t("warning.deletePage.deleteTitle"),u=l.a.t("action.ok"),s={message:i,title:c,confirmBtnText:u,onConfirm:function(){return r.a.removePages(e).then((function(){t(a.a.setSelectedPageThumbnails([])),t(a.a.setShiftKeyThumbnailsPivotIndex()),Object(d.a)(o)}))}};r.a.getDocumentViewer().getPageCount()===e.length&&(s={message:i=l.a.t("warning.deletePage.deleteLastPageMessage"),title:c,confirmBtnText:u,onConfirm:function(){return Promise.resolve()}}),t(a.a.showWarningMessage(s))}else r.a.removePages(e).then((function(){t(a.a.setSelectedPageThumbnails([])),t(a.a.setShiftKeyThumbnailsPivotIndex()),Object(d.a)(o)}))},L=function(e){r.a.movePages(e,r.a.getTotalPages()+1),Object(d.a)("".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.movedToBottomOfDocument")))},M=function(e){r.a.movePages(e,0),Object(d.a)("".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.movedToTopofDocument")))},j=function(e,t){if(0===e.length){var n=l.a.t("warning.selectPage.selectTitle"),o={message:l.a.t("warning.selectPage.selectMessage"),title:n,confirmBtnText:l.a.t("action.ok"),onConfirm:function(){return Promise.resolve()},keepOpen:["leftPanel"]};return t(a.a.showWarningMessage(o)),!0}return!1},I=function(e,t){var n=l.a.t("insertPageModal.warning.title"),o={message:l.a.t("insertPageModal.warning.message"),title:n,confirmBtnText:l.a.t("action.ok"),onConfirm:e,keepOpen:["leftPanel"]};t(a.a.showWarningMessage(o))},R=function(e,t){var n=l.a.t("option.pageReplacementModal.warning.title"),o={message:l.a.t("option.pageReplacementModal.warning.message"),title:n,confirmBtnText:l.a.t("action.ok"),onConfirm:e,keepOpen:["leftPanel"]};t(a.a.showWarningMessage(o))},N=function(e,t){r.a.applyRedactions(D(e,t))},D=function(e,t){var n,o=[],i=r.a.getDocument(),a=w(e);try{for(a.s();!(n=a.n()).done;){var l=n.value,c=i.getPageInfo(l),s=i.getPageRotation(l);if(c){var d=void 0,p=void 0;90===s||270===s?(d=c.height,p=c.width):(d=c.width,p=c.height);var f=new window.Core.Annotations.RedactionAnnotation(y({PageNumber:l,Rect:new window.Core.Annotations.Rect(0,0,d,p)},t));f.type=u.c.FULL_PAGE,f.setCustomData("trn-redaction-type",u.c.FULL_PAGE),f.Author=r.a.getCurrentUser(),o.push(f)}}}catch(e){a.e(e)}finally{a.f()}return r.a.getAnnotationManager().addAnnotations(o),r.a.getAnnotationManager().drawAnnotationsFromList(o),o},F=function(){var e=b(f().m((function e(t,n,o){var i,a,l;return f().w((function(e){for(;;)switch(e.n){case 0:if(i=r.a.getDocument(),a=i.getPageCount(),l=n.sort((function(e,t){return e-t})),1!==a&&l.length!==a){e.n=3;break}return e.n=1,i.insertPages(t,o);case 1:return e.n=2,i.removePages(l);case 2:e.n=5;break;case 3:return e.n=4,i.removePages(l);case 4:return e.n=5,i.insertPages(t,o,l[0]);case 5:return e.a(2)}}),e)})));return function(t,n,o){return e.apply(this,arguments)}}(),B=function(){var e=b(f().m((function e(t,n){var o,i,a=arguments;return f().w((function(e){for(;;)switch(e.n){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:null,i=r.a.getDocument(),e.n=1,i.insertPages(t,n,o);case 1:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";var o=n(58),r=n(52),i=n(190),a=n(151),l=n(113),c=n(108),u=n(281),s=n(214),d=n(282)("splice"),p=r.TypeError,f=Math.max,m=Math.min;o({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,o,r,d,h,b,g=c(this),y=l(g),v=i(e,y),w=arguments.length;if(0===w?n=o=0:1===w?(n=0,o=y-v):(n=w-2,o=m(f(a(t),0),y-v)),y+n-o>9007199254740991)throw p("Maximum allowed length exceeded");for(r=u(g,o),d=0;d<o;d++)(h=v+d)in g&&s(r,d,g[h]);if(r.length=o,n<o){for(d=v;d<y-o;d++)b=d+n,(h=d+o)in g?g[b]=g[h]:delete g[b];for(d=y;d>y-o+n;d--)delete g[d-1]}else if(n>o)for(d=y-o;d>v;d--)b=d+n-1,(h=d+o-1)in g?g[b]=g[h]:delete g[b];for(d=0;d<n;d++)g[d+v]=arguments[d+2];return g.length=y-o+n,r}})},function(e,t,n){var o=n(52).TypeError;e.exports=function(e){if(null==e)throw o("Can't call method on "+e);return e}},function(e,t,n){var o=n(102),r=n(245);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),o(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var o=n(7),r=n(29),i=function(e){var t="rtl"===r.a.dir();return e===o.p.LEFT||!t&&!e||function(e,t){return t?e===o.p.END:e===o.p.START}(e,t)},a=function(e){var t="rtl"===r.a.dir();return e===o.p.RIGHT||t&&!e||function(e,t){return t?e===o.p.START:e===o.p.END}(e,t)},l=function(e,t){var n=i(e),o=i(t),r=a(e),l=a(t);return n&&o||r&&l},c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!e&&"rtl"===r.a.dir();return t?"icon-chevron-right":"icon-chevron-left"},u=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!e&&"rtl"===r.a.dir();return t?"icon-chevron-left":"icon-chevron-right"}},function(e,t,n){"use strict";var o,r=(o=[],{push:function(e){o.push(e)},pop:function(){return o.length>0?o.pop():null},clear:function(){o=[]},getStack:function(){return o}});t.a=r},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var o=["toolbarGroup-Edit","toolbarGroup-Forms","toolbarGroup-EditText"],r=["Content","AddParagraphTool","FormField","Crop"],i={SYNC:"SYNC",SKIP_UNMATCHED:"SKIP_UNMATCHED"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=[{className:"linestyle-image",key:"None",src:"icon-linestyle-none"},{className:"linestyle-image shift-alignment",key:"ClosedArrow",src:"icon-linestyle-start-arrow-closed"},{className:"linestyle-image shift-alignment",key:"OpenArrow",src:"icon-linestyle-start-arrow-open"},{className:"linestyle-image shift-alignment",key:"ROpenArrow",src:"icon-linestyle-start-arrow-open-reverse"},{className:"linestyle-image shift-alignment",key:"RClosedArrow",src:"icon-linestyle-start-arrow-closed-reverse"},{className:"linestyle-image shift-alignment",key:"Butt",src:"icon-linestyle-start-butt"},{className:"linestyle-image shift-alignment",key:"Circle",src:"icon-linestyle-start-circle"},{className:"linestyle-image shift-alignment",key:"Diamond",src:"icon-linestyle-start-diamond"},{className:"linestyle-image shift-alignment",key:"Square",src:"icon-linestyle-start-square"},{className:"linestyle-image shift-alignment",key:"Slash",src:"icon-linestyle-start-slash"}],r=[{className:"linestyle-image",key:"solid",src:"icon-linestyle-solid-line"},{className:"linestyle-image shift-alignment",key:"dash,2,2",src:"icon-linestyle-dash-2-2"},{className:"linestyle-image shift-alignment",key:"dash,4,4",src:"icon-linestyle-dash-4-4"},{className:"linestyle-image shift-alignment",key:"dash,6,6",src:"icon-linestyle-dash-6-6"},{className:"linestyle-image shift-alignment",key:"dash,1,4,8,4",src:"icon-linestyle-dash-1-4-8-4"},{className:"linestyle-image shift-alignment",key:"dash,3,6,10,6",src:"icon-linestyle-dash-3-6-10-6"},{className:"linestyle-image shift-alignment",key:"dash,4,6,10,6",src:"icon-linestyle-dash-4-6-10-6"}],i=[{className:"linestyle-image",key:"None",src:"icon-linestyle-none"},{className:"linestyle-image shift-alignment",key:"ClosedArrow",src:"icon-linestyle-end-arrow-closed"},{className:"linestyle-image shift-alignment",key:"OpenArrow",src:"icon-linestyle-end-arrow-open"},{className:"linestyle-image shift-alignment",key:"ROpenArrow",src:"icon-linestyle-end-arrow-open-reverse"},{className:"linestyle-image shift-alignment",key:"RClosedArrow",src:"icon-linestyle-end-arrow-closed-reverse"},{className:"linestyle-image shift-alignment",key:"Butt",src:"icon-linestyle-end-butt"},{className:"linestyle-image shift-alignment",key:"Circle",src:"icon-linestyle-end-circle"},{className:"linestyle-image shift-alignment",key:"Diamond",src:"icon-linestyle-end-diamond"},{className:"linestyle-image shift-alignment",key:"Square",src:"icon-linestyle-end-square"},{className:"linestyle-image shift-alignment",key:"Slash",src:"icon-linestyle-end-slash"}],a={className:"linestyle-image shift-alignment",key:"cloudy",src:"icon-linestyle-cloudy-line"}},function(e,t,n){"use strict";n.r(t),n.d(t,"isStyleButtonActive",(function(){return B})),n.d(t,"getPointSizeSelectionKey",(function(){return H})),n.d(t,"getCursorStyleToPreset",(function(){return V})),n.d(t,"getCurrentFontFace",(function(){return U})),n.d(t,"getLineSpacing",(function(){return G})),n.d(t,"getActiveColor",(function(){return W})),n.d(t,"getActiveListType",(function(){return z})),n.d(t,"getIsOfficeEditorMode",(function(){return Z})),n.d(t,"isJustificationButtonActive",(function(){return Y})),n.d(t,"isNonPrintingCharactersEnabled",(function(){return q})),n.d(t,"isOfficeEditorUndoEnabled",(function(){return K})),n.d(t,"isOfficeEditorRedoEnabled",(function(){return $})),n.d(t,"getOfficeEditorIsReplaceInProgress",(function(){return X})),n.d(t,"getViewOnlyWhitelist",(function(){return J})),n.d(t,"isDisabledViewOnly",(function(){return Q})),n.d(t,"isToolDisabledViewOnly",(function(){return ee})),n.d(t,"getGenericPanel",(function(){return ne})),n.d(t,"getEnabledTabPanelTabs",(function(){return oe})),n.d(t,"getVisibleTabPanelTabs",(function(){return re})),n.d(t,"getModularComponent",(function(){return ie})),n.d(t,"getScaleOverlayPosition",(function(){return ae})),n.d(t,"getDefaultPrintMargins",(function(){return le})),n.d(t,"getColors",(function(){return ce})),n.d(t,"getCustomElementSize",(function(){return ue})),n.d(t,"getActiveFlyout",(function(){return se})),n.d(t,"getFlyoutPosition",(function(){return de})),n.d(t,"getFlyoutMap",(function(){return pe})),n.d(t,"getFlyout",(function(){return fe})),n.d(t,"getFlyoutToggleElement",(function(){return me})),n.d(t,"getInitialsOffset",(function(){return he})),n.d(t,"isSavedSignaturesTabEnabled",(function(){return be})),n.d(t,"getSyncViewer",(function(){return ge})),n.d(t,"isCompareStarted",(function(){return ye})),n.d(t,"isComparisonDisabled",(function(){return ve})),n.d(t,"getIsComparisonOverlayEnabled",(function(){return we})),n.d(t,"getActiveDocumentViewerKey",(function(){return Ee})),n.d(t,"isMultiViewerMode",(function(){return Ce})),n.d(t,"isMultiViewerReady",(function(){return Oe})),n.d(t,"getGenericPanels",(function(){return Te})),n.d(t,"getActiveTabInPanel",(function(){return Se})),n.d(t,"shouldShowApplyCropWarning",(function(){return xe})),n.d(t,"shouldShowApplySnippingWarning",(function(){return Ae})),n.d(t,"getPresetCropDimensions",(function(){return _e})),n.d(t,"getPresetNewPageDimensions",(function(){return Pe})),n.d(t,"getDateTimeFormats",(function(){return ke})),n.d(t,"getThumbnailSelectionMode",(function(){return Le})),n.d(t,"getFonts",(function(){return Me})),n.d(t,"getTabs",(function(){return je})),n.d(t,"getActiveTab",(function(){return Ie})),n.d(t,"getIsMultiTab",(function(){return Re})),n.d(t,"getTabManager",(function(){return Ne})),n.d(t,"getTabNameHandler",(function(){return De})),n.d(t,"getIsHighContrastMode",(function(){return Fe})),n.d(t,"getLastPickedToolForGroup",(function(){return Be})),n.d(t,"getStandardStamps",(function(){return He})),n.d(t,"getCustomStamps",(function(){return Ve})),n.d(t,"getSelectedStampIndex",(function(){return Ue})),n.d(t,"getLastSelectedStampIndex",(function(){return Ge})),n.d(t,"getSelectedStamp",(function(){return We})),n.d(t,"getSavedSignatures",(function(){return ze})),n.d(t,"getDisplayedSignatures",(function(){return Ze})),n.d(t,"getSelectedDisplayedSignatureIndex",(function(){return Ye})),n.d(t,"getSelectedDisplayedSignature",(function(){return qe})),n.d(t,"getDisplayedSignaturesFilterFunction",(function(){return Ke})),n.d(t,"getSignatureMode",(function(){return $e})),n.d(t,"getSavedInitials",(function(){return Xe})),n.d(t,"getSelectedDisplayedInitialsIndex",(function(){return Je})),n.d(t,"getIsInitialsModeEnabled",(function(){return Qe})),n.d(t,"getDisplayedInitial",(function(){return et})),n.d(t,"getAutoFocusNoteOnAnnotationSelection",(function(){return tt})),n.d(t,"getNotesInLeftPanel",(function(){return nt})),n.d(t,"getLeftPanelWidth",(function(){return ot})),n.d(t,"getSearchPanelWidth",(function(){return rt})),n.d(t,"getNotesPanelWidth",(function(){return it})),n.d(t,"getDeleteScaleInfo",(function(){return at})),n.d(t,"getRedactionPanelWidth",(function(){return lt})),n.d(t,"getWv3dPropertiesPanelWidth",(function(){return ct})),n.d(t,"getComparePanelWidth",(function(){return ut})),n.d(t,"getTextEditingPanelWidth",(function(){return st})),n.d(t,"getMobilePanelSize",(function(){return dt})),n.d(t,"getLeftPanelWidthWithResizeBar",(function(){return pt})),n.d(t,"getSearchPanelWidthWithResizeBar",(function(){return ft})),n.d(t,"getNotesPanelWidthWithResizeBar",(function(){return mt})),n.d(t,"getComparePanelWidthWithResizeBar",(function(){return ht})),n.d(t,"getDocumentContentContainerWidthStyle",(function(){return bt})),n.d(t,"getOpenGenericPanel",(function(){return gt})),n.d(t,"getGenericPanelsOnTheSameLocation",(function(){return yt})),n.d(t,"getDocumentContainerLeftMargin",(function(){return vt})),n.d(t,"getDocumentContainerRightMargin",(function(){return wt})),n.d(t,"getCalibrationInfo",(function(){return Et})),n.d(t,"getIsAddingNewScale",(function(){return Ct})),n.d(t,"getMeasurementScalePreset",(function(){return Ot})),n.d(t,"getIsMultipleScalesMode",(function(){return Tt})),n.d(t,"getIsNotesPanelMultiSelectEnabled",(function(){return St})),n.d(t,"getDocumentContainerWidth",(function(){return xt})),n.d(t,"getDocumentContainerHeight",(function(){return At})),n.d(t,"isElementDisabled",(function(){return _t})),n.d(t,"isElementOpen",(function(){return Pt})),n.d(t,"isElementHidden",(function(){return kt})),n.d(t,"allButtonsInGroupDisabled",(function(){return Lt})),n.d(t,"getToolbarHeaders",(function(){return Mt})),n.d(t,"getSelectedScale",(function(){return jt})),n.d(t,"getCustomHeadersAdditionalProperties",(function(){return It})),n.d(t,"getEnabledToolbarGroups",(function(){return Rt})),n.d(t,"getCurrentToolbarGroup",(function(){return Nt})),n.d(t,"getActiveGroupedItems",(function(){return Dt})),n.d(t,"getFixedGroupedItems",(function(){return Ft})),n.d(t,"getToolsAssociatedWithRibbon",(function(){return Ht})),n.d(t,"getRibbonAssociatedWithTool",(function(){return Vt})),n.d(t,"getToggleButtonsAssociatedWithRibbon",(function(){return Ut})),n.d(t,"getRibbonAssociatedWithToggleButton",(function(){return Gt})),n.d(t,"getLastActiveToolForRibbon",(function(){return Wt})),n.d(t,"getFirstToolForRibbon",(function(){return zt})),n.d(t,"isToolDisabled",(function(){return Zt})),n.d(t,"getFirstToolForGroupedItems",(function(){return Yt})),n.d(t,"getActiveCustomRibbon",(function(){return qt})),n.d(t,"getActiveHeaders",(function(){return Kt})),n.d(t,"getActiveTheme",(function(){return $t})),n.d(t,"getTimezone",(function(){return Xt})),n.d(t,"getDefaultHeaderItems",(function(){return Jt})),n.d(t,"getHydratedHeader",(function(){return en})),n.d(t,"getModularComponents",(function(){return tn})),n.d(t,"getModularHeaders",(function(){return nn})),n.d(t,"getHydratedHeaders",(function(){return an})),n.d(t,"getTopHeaders",(function(){return ln})),n.d(t,"getBottomHeaders",(function(){return cn})),n.d(t,"getLeftHeader",(function(){return un})),n.d(t,"getRightHeader",(function(){return sn})),n.d(t,"getActiveTopHeaders",(function(){return dn})),n.d(t,"getActiveBottomHeaders",(function(){return pn})),n.d(t,"getTopHeadersHeight",(function(){return fn})),n.d(t,"getBottomHeadersHeight",(function(){return mn})),n.d(t,"getRightHeaderWidth",(function(){return hn})),n.d(t,"getLeftHeaderWidth",(function(){return bn})),n.d(t,"getBottomHeadersWidth",(function(){return gn})),n.d(t,"getActiveLeftHeaderWidth",(function(){return yn})),n.d(t,"getActiveRightHeaderWidth",(function(){return vn})),n.d(t,"getTopFloatingContainerHeight",(function(){return wn})),n.d(t,"getBottomFloatingContainerHeight",(function(){return En})),n.d(t,"getFloatingHeaders",(function(){return Cn})),n.d(t,"getTopStartFloatingHeaders",(function(){return On})),n.d(t,"getBottomStartFloatingHeaders",(function(){return Tn})),n.d(t,"getTopEndFloatingHeaders",(function(){return Sn})),n.d(t,"getBottomEndFloatingHeaders",(function(){return xn})),n.d(t,"getActiveHeaderItems",(function(){return An})),n.d(t,"getDisabledElementPriority",(function(){return _n})),n.d(t,"getToolsHeaderItems",(function(){return Pn})),n.d(t,"getAlwaysVisibleGroupedItems",(function(){return kn})),n.d(t,"getDisabledElements",(function(){return Ln})),n.d(t,"getEnabledRibbonItems",(function(){return Mn})),n.d(t,"getModularComponentFunctions",(function(){return jn})),n.d(t,"getToolbarGroupItems",(function(){return In})),n.d(t,"getToolButtonObjects",(function(){return Rn})),n.d(t,"isToolGroupReorderingEnabled",(function(){return Nn})),n.d(t,"isNoteSubmissionWithEnterEnabled",(function(){return Dn})),n.d(t,"isNotesPanelTextCollapsingEnabled",(function(){return Fn})),n.d(t,"isNotesPanelRepliesCollapsingEnabled",(function(){return Bn})),n.d(t,"isCommentThreadExpansionEnabled",(function(){return Hn})),n.d(t,"getActiveToolNamesForActiveToolGroup",(function(){return Vn})),n.d(t,"getToolButtonDataElements",(function(){return Un})),n.d(t,"getToolButtonObject",(function(){return Gn})),n.d(t,"getToolButtonDataElement",(function(){return Wn})),n.d(t,"getToolNamesByGroup",(function(){return zn})),n.d(t,"getToolNameByDataElement",(function(){return Zn})),n.d(t,"getActiveToolName",(function(){return Yn})),n.d(t,"getActiveToolStyles",(function(){return qn})),n.d(t,"getCustomColor",(function(){return Kn})),n.d(t,"getCustomColors",(function(){return $n})),n.d(t,"getActiveLeftPanel",(function(){return Xn})),n.d(t,"isAnyCustomPanelOpen",(function(){return Jn})),n.d(t,"getActiveToolGroup",(function(){return Qn})),n.d(t,"getNotePopupId",(function(){return eo})),n.d(t,"getFitMode",(function(){return to})),n.d(t,"getZoom",(function(){return no})),n.d(t,"getDisplayMode",(function(){return oo})),n.d(t,"getCurrentPage",(function(){return ro})),n.d(t,"getCurrentPageLabel",(function(){return io})),n.d(t,"getSortStrategy",(function(){return ao})),n.d(t,"getRotation",(function(){return lo})),n.d(t,"getNoteDateFormat",(function(){return co})),n.d(t,"getPrintedNoteDateFormat",(function(){return uo})),n.d(t,"isFullScreen",(function(){return so})),n.d(t,"doesDocumentAutoLoad",(function(){return po})),n.d(t,"isDocumentReadOnly",(function(){return fo})),n.d(t,"isViewOnly",(function(){return mo})),n.d(t,"getCustomPanels",(function(){return ho})),n.d(t,"getCustomModals",(function(){return bo})),n.d(t,"getPageLabels",(function(){return go})),n.d(t,"isCustomPageLabelsEnabled",(function(){return yo})),n.d(t,"getSelectedThumbnailPageIndexes",(function(){return vo})),n.d(t,"getShiftKeyThumbnailPivotIndex",(function(){return wo})),n.d(t,"getDisabledCustomPanelTabs",(function(){return Eo})),n.d(t,"getDisabledToolNames",(function(){return Co})),n.d(t,"isEmbedPrintSupported",(function(){return Oo})),n.d(t,"useClientSidePrint",(function(){return To})),n.d(t,"shouldAutoExpandOutlines",(function(){return So})),n.d(t,"isAnnotationNumberingEnabled",(function(){return xo})),n.d(t,"isBookmarkIconShortcutVisible",(function(){return Ao})),n.d(t,"getColorMap",(function(){return _o})),n.d(t,"getCursorOverlayData",(function(){return Po})),n.d(t,"getOpenElements",(function(){return ko})),n.d(t,"getcurrentStyleTab",(function(){return Lo})),n.d(t,"getIconColor",(function(){return Mo})),n.d(t,"getCustomNoteFilter",(function(){return jo})),n.d(t,"getInternalNoteFilter",(function(){return Io})),n.d(t,"getInlineCommentFilter",(function(){return Ro})),n.d(t,"getIsReplyDisabled",(function(){return No})),n.d(t,"getZoomList",(function(){return Do})),n.d(t,"getMeasurementUnits",(function(){return Fo})),n.d(t,"getIsNoteEditing",(function(){return Bo})),n.d(t,"getMaxSignaturesCount",(function(){return Ho})),n.d(t,"getUserData",(function(){return Vo})),n.d(t,"getIsMentionEnabled",(function(){return Uo})),n.d(t,"getSignatureFonts",(function(){return Go})),n.d(t,"getSelectedTab",(function(){return Wo})),n.d(t,"getCustomElementOverrides",(function(){return zo})),n.d(t,"getPopupItems",(function(){return Zo})),n.d(t,"getMenuOverlayItems",(function(){return Yo})),n.d(t,"getIsThumbnailMergingEnabled",(function(){return qo})),n.d(t,"getIsThumbnailReorderingEnabled",(function(){return Ko})),n.d(t,"isThumbnailMultiselectEnabled",(function(){return $o})),n.d(t,"getIsMultipleViewerMerging",(function(){return Xo})),n.d(t,"getEnableNotesPanelVirtualizedList",(function(){return Jo})),n.d(t,"notesShowLastUpdatedDate",(function(){return Qo})),n.d(t,"getAllowPageNavigation",(function(){return er})),n.d(t,"getCustomMeasurementOverlay",(function(){return tr})),n.d(t,"getAnnotationContentOverlayHandler",(function(){return nr})),n.d(t,"getEnableMouseWheelZoom",(function(){return or})),n.d(t,"isReaderMode",(function(){return rr})),n.d(t,"getCertificates",(function(){return ir})),n.d(t,"getTrustListKey",(function(){return ar})),n.d(t,"getValidationModalWidgetName",(function(){return lr})),n.d(t,"getVerificationResult",(function(){return cr})),n.d(t,"getIsRevocationCheckingEnabled",(function(){return ur})),n.d(t,"getRevocationProxyPrefix",(function(){return sr})),n.d(t,"isThumbnailSelectingPages",(function(){return dr})),n.d(t,"getWatermarkModalOptions",(function(){return pr})),n.d(t,"getZoomStepFactors",(function(){return fr})),n.d(t,"getWarningMessage",(function(){return mr})),n.d(t,"getWarningTitle",(function(){return hr})),n.d(t,"getWarningConfirmEvent",(function(){return br})),n.d(t,"getWarningConfirmBtnText",(function(){return gr})),n.d(t,"getWarningSecondaryEvent",(function(){return yr})),n.d(t,"getWarningSecondaryBtnText",(function(){return vr})),n.d(t,"getWarningSecondaryBtnClass",(function(){return wr})),n.d(t,"getWarningCancelEvent",(function(){return Er})),n.d(t,"getShowAskAgainCheckbox",(function(){return Cr})),n.d(t,"getShowDeleteTabWarning",(function(){return Or})),n.d(t,"isAccessibleMode",(function(){return Tr})),n.d(t,"shouldAddA11yContentToDOM",(function(){return Sr})),n.d(t,"getDisabledFeaturesInAccessibleReadingMode",(function(){return xr})),n.d(t,"getWarningTemplateStrings",(function(){return Ar})),n.d(t,"getWarningModalClass",(function(){return _r})),n.d(t,"getWarningCloseEvent",(function(){return Pr})),n.d(t,"getErrorMessage",(function(){return kr})),n.d(t,"getErrorTitle",(function(){return Lr})),n.d(t,"getPasswordAttempts",(function(){return Mr})),n.d(t,"getPrintQuality",(function(){return jr})),n.d(t,"getDefaultPrintOptions",(function(){return Ir})),n.d(t,"getTotalPages",(function(){return Rr})),n.d(t,"getOutlines",(function(){return Nr})),n.d(t,"getOutlineEditingEnabled",(function(){return Dr})),n.d(t,"getBookmarks",(function(){return Fr})),n.d(t,"getPortfolio",(function(){return Br})),n.d(t,"getLayers",(function(){return Hr})),n.d(t,"getLoadingProgress",(function(){return Vr})),n.d(t,"getUserName",(function(){return Ur})),n.d(t,"getServerUrl",(function(){return Gr})),n.d(t,"getSearchValue",(function(){return Wr})),n.d(t,"shouldClearSearchPanelOnClose",(function(){return zr})),n.d(t,"isCaseSensitive",(function(){return Zr})),n.d(t,"getReplaceValue",(function(){return Yr})),n.d(t,"getNextResultValue",(function(){return qr})),n.d(t,"isWholeWord",(function(){return Kr})),n.d(t,"isWildcard",(function(){return $r})),n.d(t,"isSearchUp",(function(){return Xr})),n.d(t,"isSearchInProgress",(function(){return Jr})),n.d(t,"isAmbientString",(function(){return Qr})),n.d(t,"isRegex",(function(){return ei})),n.d(t,"isProcessingSearchResults",(function(){return ti})),n.d(t,"getRedactionSearchPatterns",(function(){return ni})),n.d(t,"getNoteTransformFunction",(function(){return oi})),n.d(t,"getCustomNoteSelectionFunction",(function(){return ri})),n.d(t,"getCustomApplyRedactionsHandler",(function(){return ii})),n.d(t,"getCustomMultiViewerSyncHandler",(function(){return ai})),n.d(t,"getCustomMultiViewerAcceptedFileFormats",(function(){return li})),n.d(t,"isSnapModeEnabled",(function(){return ci})),n.d(t,"getUnreadAnnotationIdSet",(function(){return ui})),n.d(t,"getCurrentLanguage",(function(){return si})),n.d(t,"shouldFadePageNavigationComponent",(function(){return di})),n.d(t,"isWidgetHighlightingEnabled",(function(){return pi})),n.d(t,"isContentEditWarningHidden",(function(){return fi})),n.d(t,"areContentEditWorkersLoaded",(function(){return mi})),n.d(t,"getCurrentContentBeingEdited",(function(){return hi})),n.d(t,"isContentEditingEnabled",(function(){return bi})),n.d(t,"getFeatureFlags",(function(){return gi})),n.d(t,"isRightClickAnnotationPopupEnabled",(function(){return yi})),n.d(t,"isInDesktopOnlyMode",(function(){return vi})),n.d(t,"getPanelWidth",(function(){return wi})),n.d(t,"pageDeletionConfirmationModalEnabled",(function(){return Ei})),n.d(t,"getPageReplacementFileList",(function(){return Ci})),n.d(t,"getPageManipulationOverlayItems",(function(){return Oi})),n.d(t,"getMultiPageManipulationControlsItems",(function(){return Ti})),n.d(t,"getPageManipulationOverlayAlternativePosition",(function(){return Si})),n.d(t,"openingPageManipulationOverlayByRightClickEnabled",(function(){return xi})),n.d(t,"getThumbnailControlMenuItems",(function(){return Ai})),n.d(t,"shouldShowPresets",(function(){return _i})),n.d(t,"shouldResetAudioPlaybackPosition",(function(){return Pi})),n.d(t,"getActiveSoundAnnotation",(function(){return ki})),n.d(t,"getEmbeddedJSPopupStyle",(function(){return Li})),n.d(t,"getWv3dPropertiesPanelModelData",(function(){return Mi})),n.d(t,"getWv3dPropertiesPanelSchema",(function(){return ji})),n.d(t,"getOfficeEditorCursorProperties",(function(){return Ii})),n.d(t,"getOfficeEditorSelectionProperties",(function(){return Ri})),n.d(t,"isCursorInTable",(function(){return Ni})),n.d(t,"getOfficeEditorEditMode",(function(){return Di})),n.d(t,"getOfficeEditorActiveStream",(function(){return Fi})),n.d(t,"getOfficeEditorUnitMeasurement",(function(){return Bi})),n.d(t,"getAvailableFontFaces",(function(){return Hi})),n.d(t,"getCSSFontValues",(function(){return Vi})),n.d(t,"getContentBoxEditor",(function(){return Ui})),n.d(t,"getAnnotationFilters",(function(){return Gi})),n.d(t,"getNotesPanelCustomHeaderOptions",(function(){return Wi})),n.d(t,"getNotesPanelCustomEmptyPanel",(function(){return zi})),n.d(t,"isReplyAttachmentPreviewEnabled",(function(){return Zi})),n.d(t,"getReplyAttachmentHandler",(function(){return Yi})),n.d(t,"getCustomSettings",(function(){return qi})),n.d(t,"isToolDefaultStyleUpdateFromAnnotationPopupEnabled",(function(){return Ki})),n.d(t,"isAnnotationToolStyleSyncingEnabled",(function(){return $i})),n.d(t,"getShortcutKeyMap",(function(){return Xi})),n.d(t,"getMultiViewerSyncScrollMode",(function(){return Ji})),n.d(t,"getCompareAnnotationsMap",(function(){return Qi})),n.d(t,"getTextSignatureQuality",(function(){return ea})),n.d(t,"getIsMeasurementAnnotationFilterEnabled",(function(){return ta})),n.d(t,"isRightPanelOpen",(function(){return na})),n.d(t,"isLeftPanelOpen",(function(){return oa})),n.d(t,"getOpenRightPanelWidth",(function(){return ra})),n.d(t,"getIsShowComparisonButtonEnabled",(function(){return ia})),n.d(t,"getIsMultiViewerModeAvailable",(function(){return aa})),n.d(t,"getMaxPasswordAttempts",(function(){return la})),n.d(t,"isKeyboardOpen",(function(){return ca})),n.d(t,"canUndo",(function(){return ua})),n.d(t,"canRedo",(function(){return sa})),n.d(t,"spreadsheetEditorCanUndo",(function(){return da})),n.d(t,"spreadsheetEditorCanRedo",(function(){return pa})),n.d(t,"getIsCustomUIEnabled",(function(){return fa})),n.d(t,"getIsOfficeEditorHeaderEnabled",(function(){return ma})),n.d(t,"isSpreadsheetEditorModeEnabled",(function(){return ha})),n.d(t,"getUIConfiguration",(function(){return ba})),n.d(t,"getActiveCellRange",(function(){return ga})),n.d(t,"getCellFormula",(function(){return ya})),n.d(t,"getStringCellValue",(function(){return va})),n.d(t,"getSpreadsheetEditorEditMode",(function(){return wa})),n.d(t,"getActiveCellRangeVerticalAlignment",(function(){return Ea})),n.d(t,"getActiveCellRangeHorizontalAlignment",(function(){return Ca})),n.d(t,"getActiveCellRangeWrapText",(function(){return Oa})),n.d(t,"getActiveCellRangeFontStyle",(function(){return Ta})),n.d(t,"getActiveCellFormatType",(function(){return Sa})),n.d(t,"getActiveCellBorderStyle",(function(){return xa})),n.d(t,"getSelectedBorderColorOption",(function(){return Aa})),n.d(t,"getSelectedBorderStyleListOption",(function(){return _a})),n.d(t,"getTextColors",(function(){return Pa})),n.d(t,"getCustomTextColors",(function(){return ka})),n.d(t,"getBorderColors",(function(){return La})),n.d(t,"getCustomBorderColors",(function(){return Ma})),n.d(t,"getCellBackgroundColors",(function(){return ja})),n.d(t,"getCustomCellBackgroundColors",(function(){return Ia})),n.d(t,"getIsSingleCell",(function(){return Ra})),n.d(t,"getIsCellRangeMerged",(function(){return Na})),n.d(t,"getCellBackgroundColor",(function(){return Da})),n.d(t,"getCanCopy",(function(){return Fa})),n.d(t,"getCanPaste",(function(){return Ba})),n.d(t,"getCanCut",(function(){return Ha})),n.d(t,"getAvailableSpreadsheetEditorFontFaces",(function(){return Va})),n.d(t,"getSpreadsheetEditorCSSFontValues",(function(){return Ua})),n.d(t,"hasPanelInItems",(function(){return Ga})),n.d(t,"getIsPanelInFlyout",(function(){return Wa}));n(9),n(10),n(14),n(32),n(38),n(125),n(34),n(82),n(27),n(21),n(46),n(20),n(12),n(44),n(118),n(22),n(94),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(88),n(17),n(19),n(116),n(383),n(64),n(11),n(390),n(172),n(31),n(13);var o=n(45),r=n(263),i=n(28),a=n(7),l=n(5),c=n(363),u=n(1),s=n(25),d=n(65),p=function(e){return f(e)&&u.a.getOfficeEditor()},f=function(e){return e.viewer.isOfficeEditorMode},m=n(39),h=Object.defineProperty,b=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))g.call(t,n)&&v(e,n,t[n]);if(b)for(var n of b(t))y.call(t,n)&&v(e,n,t[n]);return e};function E(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var C=e=>Array.isArray(e)?e:[e];function O(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function T(e,t){const n=[],{length:o}=e;for(let r=0;r<o;r++)n.push(e[r].apply(null,t));return n}Symbol(),Object.getPrototypeOf({});var S="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function x(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:o}=t;let r,i=0;function a(){var t,a;let l=n;const{length:c}=arguments;for(let e=0,t=c;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=l.o;null===e&&(l.o=e=new WeakMap);const n=e.get(t);void 0===n?(l={s:0,v:void 0,o:null,p:null},e.set(t,l)):l=n}else{let e=l.p;null===e&&(l.p=e=new Map);const n=e.get(t);void 0===n?(l={s:0,v:void 0,o:null,p:null},e.set(t,l)):l=n}}const u=l;let s;if(1===l.s)s=l.v;else if(s=e.apply(null,arguments),i++,o){const e=null!=(a=null==(t=null==r?void 0:r.deref)?void 0:t.call(r))?a:r;null!=e&&o(e,s)&&(s=e,0!==i&&i--);r="object"==typeof s&&null!==s||"function"==typeof s?new S(s):s}return u.s=1,u.v=s,s}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function A(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,o=(...e)=>{let t,o=0,r=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),E(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l=w(w({},n),i),{memoize:c,memoizeOptions:u=[],argsMemoize:s=x,argsMemoizeOptions:d=[],devModeChecks:p={}}=l,f=C(u),m=C(d),h=O(e),b=c((function(){return o++,a.apply(null,arguments)}),...f);const g=s((function(){r++;const e=T(h,arguments);return t=b.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:a,memoizedResultFunc:b,dependencies:h,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>t,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:c,argsMemoize:s})};return Object.assign(o,{withTypes:()=>o}),o}var _=A(x),P=Object.assign((e,t=_)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,o)=>(e[n[o]]=t,e),{}))},{withTypes:()=>P}),k=n(131);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=L(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=D(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function D(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var B=function(e,t){if(!t||!p(e))return!1;var n=u.a.getOfficeEditor().isTextSelected(),o=Ii(e),r=Ri(e),i=n?r:o;return"underline"===t?"single"===i.underlineStyle:i[t]},H=function(e){if(!p(e))return"";var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e),r=(t?o:n).pointSize;return void 0===r?"":r.toString()},V=function(e){if(!p(e))return"";var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e),r=t?o:n;return Object(d.g)(r)},U=function(e){if(!p(e))return"";var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e);return(t?o:n).fontFace||""},G=function(e){if(!p(e))return"";var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e),r=t?o:n,i=r.paragraphProperties.lineHeight,a=r.paragraphProperties.lineHeightMultiplier,l=n.paragraphProperties.fontPointSize||s.f;return Object(d.d)(a,i,l)},W=function(e){if(!p(e))return s.d;var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e),r=t?o:n;return Object(d.f)(r.color)},z=function(e){if(!p(e))return!1;var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e);return(t?o:n).paragraphProperties.listType},Z=f,Y=function(e,t){if(!t||!p(e))return!1;var n=u.a.getOfficeEditor().isTextSelected(),o=Ii(e),r=Ri(e);return(n?r:o).paragraphProperties.justification===t},q=function(e){return!!p(e)&&u.a.getOfficeEditor().getIsNonPrintingCharactersEnabled()},K=function(e){return e.officeEditor.canUndo},$=function(e){return e.officeEditor.canRedo},X=function(e){return e.officeEditor.isReplaceInProgress},J=function(e){return e.viewer.viewOnlyWhitelist},Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e.viewer.isViewOnly)return!1;if(!t)return!1;var o=e.viewer.viewOnlyWhitelist;if(o.dataElement.includes(t))return!1;if(o.dataElementBlacklist.includes(t))return!0;var r=ie(e,t);if(r){if(r.type===a.k.DIVIDER)return n;var i;if(o[r.type])return!(null!==(i=o[r.type])&&void 0!==i&&i.includes(r.toolName||r.buttonType||t));var l=[a.k.TOGGLE_BUTTON,a.k.GROUPED_ITEMS,a.k.RIBBON_ITEM,a.k.RIBBON_GROUP,a.k.MODULAR_HEADER];if(l.includes(r.type)){var c,u=N(te(r));try{for(u.s();!(c=u.n()).done;){var s=c.value;if(!Q(e,s,!0))return!1}}catch(e){u.e(e)}finally{u.f()}return!0}return!1}var d=fe(e,t);if(d){var p,f=N(d.items);try{for(f.s();!(p=f.n()).done;){var m=p.value;if("divider"!==m){if(null==m||!m.dataElement)return!1;if(!Q(e,m.dataElement,!0))return!1}}}catch(e){f.e(e)}finally{f.f()}return!0}var h=ne(e,t);if(h){if("tabPanel"===h.render){var b=h.panelsList.some((function(e){return o.panel.includes(e.render||e.dataElement)}));if(!b)return!0}return!o.panel.includes(h.render||t)}var g=t.endsWith("Modal");if(g)return!o.modal.includes(t);var y=t.endsWith("Overlay");return!!y&&!o.overlay.includes(t)},ee=function(e,t){var n,o=null===(n=Rn(e)[t])||void 0===n?void 0:n.dataElement;return Q(e,o)},te=function(e){switch(e.type){case a.k.TOGGLE_BUTTON:return[e.toggleElement];case a.k.GROUPED_ITEMS:case a.k.RIBBON_GROUP:case a.k.MODULAR_HEADER:return e.items;case a.k.RIBBON_ITEM:return e.groupedItems;default:return[]}},ne=function(e,t){return e.viewer.genericPanels.find((function(e){return e.dataElement===t||e.render===t}))},oe=function(e,t){var n=e.viewer.disabledElements;return ne(e,t).panelsList.filter((function(o){var r,a,l,c,u=null===(r=n[o.render])||void 0===r?void 0:r.disabled,s=null===(a=n["".concat(o.render,"-").concat(t)])||void 0===a?void 0:a.disabled,d=Q(e,o.render),p=o.render===i.e.PORTFOLIO&&0===(null===(l=e.document)||void 0===l||null===(c=l.portfolio)||void 0===c?void 0:c.length);return!(u||s||d||p)}))},re=function(e,t){var n=[],o=oe(e,t);return null==o||o.forEach((function(t){var o=t.render;if("string"==typeof o){if(!ne(e,o))return void console.warn("Panel ".concat(o," is not a valid custom panel"));n.push(o)}else"function"==typeof o&&n.push(t.dataElement)})),n},ie=function(e,t){return e.viewer.modularComponents[t]},ae=function(e){return e.viewer.scaleOverlayPosition},le=function(e){return e.viewer.defaultPrintMargins},ce=function(e,t,n){return n=n?n.toLowerCase():n,t&&e.viewer.toolColorOverrides[t]?e.viewer.toolColorOverrides[t]:"text"===n?e.viewer.textColors:e.viewer.colors},ue=function(e,t){var n;return(null===(n=e.viewer.customElementSizes)||void 0===n?void 0:n[t])||0},se=function(e){return e.viewer.activeFlyout},de=function(e){return e.viewer.flyoutPosition},pe=function(e){return e.viewer.flyoutMap},fe=function(e,t){return e.viewer.flyoutMap[t]},me=function(e){return e.viewer.flyoutToggleElement},he=function(e){return e.viewer.initalsOffset},be=function(e){return e.viewer.savedSignatureTabEnabled},ge=function(e){return e.viewer.syncViewer},ye=function(e){return e.viewer.isCompareStarted},ve=function(e){return e.advanced.disableMultiViewerComparison},we=function(e){return e.viewer.isComparisonOverlayEnabled},Ee=function(e){return e.viewer.isMultiViewerMode&&e.viewer.activeDocumentViewerKey?e.viewer.activeDocumentViewerKey:1},Ce=function(e){return e.viewer.isMultiViewerMode},Oe=function(e){return e.viewer.isMultiViewerReady},Te=function(e,t){return t?e.viewer.genericPanels.filter((function(e){return Object(k.e)(t,e.location)})):e.viewer.genericPanels},Se=function(e,t){return e.viewer.activeTabInPanel[t]},xe=function(e){return e.viewer.shouldShowApplyCropWarning},Ae=function(e){return e.viewer.shouldShowApplySnippingWarning},_e=function(e){return e.viewer.presetCropDimensions},Pe=function(e){return e.viewer.presetNewPageDimensions},ke=function(e){return e.viewer.dateTimeFormats},Le=function(e){return e.viewer.thumbnailSelectionMode},Me=function(e){return e.viewer.fonts},je=function(e){return e.viewer.tabs},Ie=function(e){return e.viewer.activeTab},Re=function(e){return e.viewer.isMultiTab},Ne=function(e){return e.viewer.TabManager},De=function(e){return e.viewer.tabNameHandler},Fe=function(e){return e.viewer.highContrastMode},Be=function(e,t){return e.viewer.lastPickedToolForGroup[t]},He=function(e){return e.viewer.standardStamps},Ve=function(e){return e.viewer.customStamps},Ue=function(e){return e.viewer.selectedStampIndex},Ge=function(e){return e.viewer.lastSelectedStampIndex},We=function(e){var t=He(e),n=Ve(e),o=Ue(e),r=t[o];return!r&&n.length&&(r=n[o-t.length]),r},ze=function(e){return e.viewer.savedSignatures},Ze=function(e){return e.viewer.savedSignatures.filter(e.viewer.displayedSignaturesFilterFunction)},Ye=function(e){return e.viewer.selectedDisplayedSignatureIndex},qe=function(e){return Ze(e)[Ye(e)]},Ke=function(e){return e.viewer.displayedSignaturesFilterFunction},$e=function(e){return e.viewer.signatureMode},Xe=function(e){return e.viewer.savedInitials},Je=function(e){return e.viewer.selectedDisplayedInitialsIndex},Qe=function(e){return e.viewer.isInitialsModeEnabled},et=function(e){return e.viewer.savedInitials[e.viewer.selectedDisplayedInitialsIndex]},tt=function(e){return e.viewer.autoFocusNoteOnAnnotationSelection},nt=function(e){return e.viewer.notesInLeftPanel},ot=function(e){return e.viewer.panelWidths.leftPanel},rt=function(e){return e.viewer.panelWidths.searchPanel},it=function(e){return e.viewer.panelWidths.notesPanel},at=function(e){return e.viewer.deleteScale},lt=function(e){return e.viewer.panelWidths.redactionPanel},ct=function(e){return e.viewer.panelWidths.wv3dPropertiesPanel},ut=function(e){return e.viewer.panelWidths.comparePanel},st=function(e){return e.viewer.panelWidths.textEditingPanel},dt=function(e){return e.viewer.mobilePanelSize},pt=function(e){return e.viewer.panelWidths.leftPanel+i.b},ft=function(e){return e.viewer.panelWidths.searchPanel+i.b},mt=function(e){return e.viewer.panelWidths.notesPanel+i.b},ht=function(e){return e.viewer.panelWidths.comparePanel+i.b},bt=function(e){var t=mt(e),n=ft(e),o=pt(e),r=st(e),i=ct(e),l=ht(e),c=lt(e),u=nt(e),s=Pt(e,"leftPanel"),d=Pt(e,"notesPanel"),p=Pt(e,"searchPanel"),f=Pt(e,"redactionPanel"),m=Pt(e,"textEditingPanel"),h=Pt(e,"wv3dPropertiesPanel"),b=Pt(e,"comparePanel"),g=gt(e,a.p.LEFT),y=gt(e,a.p.RIGHT),v=gi(e).customizableUI,w=0+(!v&&(s?o:0)+(d&&!u?t:0)+(p?n:0)+(f?c:0)+(m?r:0)+(h?i:0)+(b?l:0))+(v&&(g?wi(e,g):0)+(y?wi(e,y):0)),E=vn(e),C=yn(e);return"calc(100% - ".concat(w+(C+E),"px)")},gt=function(e,t){var n=e.viewer.genericPanels,r=[i.e.SIGNATURE_LIST,i.e.RUBBER_STAMP,i.e.STYLE,i.e.NOTES,i.e.SEARCH,i.e.TEXT_EDITING,i.e.TABS,i.e.REDACTION,i.e.FORM_FIELD,i.e.INDEX];return t&&(n=e.viewer.genericPanels.filter((function(e){return Object(o.k)()?Object(k.e)(t,e.location)&&!r.includes(e.dataElement):Object(k.e)(t,e.location)}))),n.map((function(e){return e.dataElement})).find((function(t){return!0===Pt(e,t)}))},yt=function(e,t){if(fa(e)){var n=Te(e),o=n.find((function(e){return t===e.dataElement}));return n.filter((function(e){return Object(k.e)(null==o?void 0:o.location,e.location)&&e.dataElement!==(null==o?void 0:o.dataElement)}))}return[]},vt=function(e){if(fa(e)){var t=gt(e,a.p.LEFT);return t?wi(e,t):0}return 0+(Pt(e,"leftPanel")?pt(e):0)},wt=function(e){if(fa(e)){var t=gt(e,a.p.RIGHT);return t?wi(e,t):0}return 0},Et=function(e){return e.viewer.calibrationInfo},Ct=function(e){return e.viewer.isAddingNewScale},Ot=function(e){return e.viewer.measurementScalePreset},Tt=function(e){return e.viewer.isMultipleScalesMode},St=function(e){return e.viewer.isNotesPanelMultiSelectEnabled},xt=function(e){return e.viewer.documentContainerWidth},At=function(e){return e.viewer.documentContainerHeight},_t=function(e,t){var n,o;return null===(n=e.viewer)||void 0===n||null===(o=n.disabledElements[t])||void 0===o?void 0:o.disabled},Pt=function(e,t){var n,o,r;return!(null===(n=e.viewer)||void 0===n||!n.openElements[t]||null!==(o=e.viewer)&&void 0!==o&&null!==(r=o.disabledElements[t])&&void 0!==r&&r.disabled)},kt=function(e,t){var n;return null===(n=e.viewer)||void 0===n?void 0:n.hiddenElements[t]},Lt=function(e,t){var n=Rn(e);return Object.values(n).filter((function(e){return e.group===t})).map((function(e){return e.dataElement})).every((function(t){return _t(e,t)}))},Mt=function(e){return e.viewer.headers},jt=function(e){return e.viewer.selectedScale},It=function(e){return e.viewer.customHeadersAdditionalProperties},Rt=function(e){return function(e){return Object.keys(e.viewer.headers).filter((function(e){return e.includes("toolbarGroup-")}))}(e).filter((function(t){var n=e.viewer.headers[t],o=function(e){return e.reduce((function(e,t){return t.children?e.push.apply(e,R(o(t.children))):e.push(t),e}),[])},r=o(n).filter((function(e){var t=e.dataElement;return t&&t.includes("ToolGroupButton")})),i=!t.includes("toolbarGroup-View")&&r.every((function(t){var n=t.dataElement;return _t(e,n)}));return!_t(e,"".concat(t))&&!i}))},Nt=function(e){return e.viewer.toolbarGroup},Dt=function(e){return e.viewer.activeGroupedItems},Ft=function(e){return e.viewer.fixedGroupedItems};function Bt(e,t,n,o){var r=e.viewer.modularComponents[t];if(!r)return[];var i=r.groupedItems,l=[],c=function(t){var r=(e.viewer.modularComponents[t]||{}).items;r&&r.forEach((function(t){var r=e.viewer.modularComponents[t];r&&(r.type===n?l.push(o(r)):r.type===a.k.GROUPED_ITEMS&&c(t))}))};return i.forEach((function(e){c(e)})),l}var Ht=function(e,t){return Bt(e,t,a.k.TOOL_BUTTON,(function(e){return e.toolName}))},Vt=function(e,t){var n,o=e.viewer.modularComponents,r=N(Object.values(o).filter((function(e){return e.type===a.k.RIBBON_ITEM})).map((function(e){return e.dataElement})));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Ht(e,i).includes(t))return i}}catch(e){r.e(e)}finally{r.f()}return null},Ut=function(e,t){return Bt(e,t,a.k.TOGGLE_BUTTON,(function(e){return e.dataElement}))},Gt=function(e,t){var n,o=e.viewer.modularComponents,r=N(Object.values(o).filter((function(e){return e.type===a.k.RIBBON_ITEM})).map((function(e){return e.dataElement})));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Ut(e,i).includes(t))return i}}catch(e){r.e(e)}finally{r.f()}return null},Wt=function(e,t){var n=e.viewer.lastActiveToolForRibbon[t];if(n&&!Zt(e,n))return n},zt=function(e,t){var n,o=N(Ht(e,t));try{for(o.s();!(n=o.n()).done;){var r=n.value;if(!Zt(e,r))return r}}catch(e){o.e(e)}finally{o.f()}},Zt=function(e,t){var n=Wn(e,t);return!n||_t(e,n)},Yt=function(e,t){var n=e.viewer.modularComponents,o=Object(c.b)(e,t),r="";return null==o||o.find((function(t){var o=n[t],i=o.type,l=o.toolName,c=o.dataElement;return!(i!==a.k.TOOL_BUTTON||!l||_t(e,c))&&(r=l,l)})),r},qt=function(e){return e.viewer.activeCustomRibbon},Kt=_([function(e){return e.viewer.modularHeaders},function(e){return e.viewer.activeGroupedItems},function(e){return e.viewer.fixedGroupedItems},function(e){return e.viewer.modularComponents},function(e){return e.viewer.disabledElements}],(function(e,t,n,o,r){var i=new Set(t),l=new Set(n),c=function(e){var t=o[e];if(!t)return!1;var n=t.type,r=t.dataElement;return n!==a.k.GROUPED_ITEMS||i.has(r)||l.has(r)};return Object.values(e).filter((function(e){var t,n,o=e.items,i=e.dataElement;return(null===(t=r[i])||void 0===t||!t.disabled)&&(!(null!==(n=r[i])&&void 0!==n&&n.disabled)&&(null==o?void 0:o.length)&&o.some(c))}))})),$t=function(e){return e.viewer.activeTheme},Xt=function(e){return e.viewer.timezone},Jt=function(e){return e.viewer.headers.default},Qt=function(e,t){return e.map((function(e){var n=t[e];if(!n)return null;var o=j({},n);return n.items&&n.items.length>0&&(o.items=Qt(n.items,t)),o})).filter((function(e){return null!==e}))},en=function(e,t){var n=e.viewer.modularHeaders[t];if(!n)return null;var o=e.viewer.modularComponents;return j(j({},n),{},{items:Qt(n.items,o)})},tn=function(e){return e.viewer.modularComponents},nn=function(e){return e.viewer.modularHeaders},on=function(e){return _([nn,tn],(function(t,n){var o=Object.values(t);return(e?o.filter((function(t){return t.placement===e})):o).map((function(e){return j(j({},e),{},{items:Qt(e.items,n)})}))}))},rn=I(I(I(I({all:on()},a.q.TOP,on(a.q.TOP)),a.q.BOTTOM,on(a.q.BOTTOM)),a.q.LEFT,on(a.q.LEFT)),a.q.RIGHT,on(a.q.RIGHT)),an=function(e,t){return t?rn[t](e):rn.all(e)},ln=function(e){return rn[a.q.TOP](e)},cn=function(e){return rn[a.q.BOTTOM](e)},un=function(e){return rn[a.q.LEFT](e)},sn=function(e){return rn[a.q.RIGHT](e)},dn=_([Kt],(function(e){return e.filter((function(e){return e.placement===a.q.TOP})).filter((function(e){return!e.float}))})),pn=_([Kt],(function(e){return e.filter((function(e){return e.placement===a.q.BOTTOM})).filter((function(e){return!e.float}))})),fn=_([dn,function(e){return e.viewer.modularHeadersHeight.topHeaders}],(function(e,t){return e.length*t})),mn=_([pn,function(e){return e.viewer.modularHeadersHeight.bottomHeaders},function(e){return e.viewer.isSpreadsheetEditorModeEnabled}],(function(e,t,n){return e.length*t+(n?t:0)})),hn=function(e){return e.viewer.modularHeadersWidth.rightHeader},bn=function(e){return e.viewer.modularHeadersWidth.leftHeader},gn=function(e){return e.viewer.modularHeadersWidth.bottomHeaders},yn=function(e){var t=Kt(e);return(null==t?void 0:t.some((function(e){return e.placement===a.q.LEFT})))?bn(e):0},vn=function(e){var t=Kt(e);return(null==t?void 0:t.some((function(e){return e.placement===a.q.RIGHT})))?hn(e):0},wn=function(e){return e.viewer.floatingContainersDimensions.topFloatingContainerHeight},En=function(e){return e.viewer.floatingContainersDimensions.bottomFloatingContainerHeight},Cn=function(e,t,n){return Object.values(e.viewer.modularHeaders).filter((function(e){return e.placement===t&&e.position===n&&e.float}))},On=function(e){return Cn(e,a.q.TOP,a.r.START)},Tn=function(e){return Cn(e,a.q.BOTTOM,a.r.START)},Sn=function(e){return Cn(e,a.q.TOP,a.r.END)},xn=function(e){return Cn(e,a.q.BOTTOM,a.r.END)},An=function(e){return e.viewer.headers[e.viewer.activeHeaderGroup]},_n=function(e,t){var n;return null===(n=e.viewer.disabledElements[t])||void 0===n?void 0:n.priority},Pn=function(e){var t=Nt(e);return e.viewer.headers[t]||[]},kn=function(e){var t=e.viewer.modularComponents;return Object.keys(t).filter((function(e){return t[e].alwaysVisible}))},Ln=function(e){return e.viewer.disabledElements},Mn=_([tn,Ln],(function(e,t){return Object.keys(e).filter((function(n){var o;return e[n].type===a.k.RIBBON_ITEM&&!(null!==(o=t[n])&&void 0!==o&&o.disabled)}))})),jn=function(e){return e.viewer.modularComponentFunctions},In=function(e){return function(t){return t.viewer.headers[e]}},Rn=function(e){return e.viewer.toolButtonObjects},Nn=function(e){return e.viewer.enableToolGroupReordering},Dn=function(e){return e.viewer.enableNoteSubmissionWithEnter},Fn=function(e){return e.viewer.isNotesPanelTextCollapsingEnabled},Bn=function(e){return e.viewer.isNotesPanelRepliesCollapsingEnabled},Hn=function(e){return e.viewer.isCommentThreadExpansionEnabled},Vn=function(e){var t=e.viewer.activeToolGroup,n=Rn(e);return Object.keys(n).filter((function(o){var r=n[o],i=r.group,a=r.dataElement;return i===t&&!_t(e,a)}))},Un=function(e,t){var n=Rn(e);return t.map((function(e){var t;return null===(t=n[e])||void 0===t?void 0:t.dataElement})).filter(Boolean)},Gn=function(e,t){return Rn(e)[t]},Wn=function(e,t){var n;return null===(n=Gn(e,t))||void 0===n?void 0:n.dataElement},zn=function(e,t){var n=Rn(e);return Object.keys(n).filter((function(e){return n[e].group===t}))},Zn=function(e,t){var n=Rn(e);return Object.keys(n).find((function(e){return n[e].dataElement===t}))},Yn=function(e){return e.viewer.activeToolName},qn=function(e){return e.viewer.activeToolStyles},Kn=function(e){return e.viewer.customColor},$n=function(e){return e.viewer.customColors},Xn=function(e){return e.viewer.activeLeftPanel},Jn=function(e){return e.viewer.genericPanels.some((function(t){return e.viewer.openElements[t.dataElement]}))},Qn=function(e){return e.viewer.activeToolGroup},eo=function(e){return e.viewer.notePopupId},to=function(e){return e.viewer.fitMode},no=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.viewer.zoomLevels[t]},oo=function(e){return e.viewer.displayMode},ro=function(e){return e.viewer.currentPage},io=function(e){var t,n=go(e),o=ro(e);return null!==(t=null==n?void 0:n[o-1])&&void 0!==t?t:""},ao=function(e){return e.viewer.sortStrategy},lo=function(e){return e.viewer.rotation},co=function(e){return e.viewer.noteDateFormat||r.a},uo=function(e){return e.viewer.printedNoteDateFormat||r.b},so=function(e){return e.viewer.isFullScreen},po=function(e){return e.viewer.doesAutoLoad},fo=function(e){return e.viewer.isReadOnly},mo=function(e){return e.viewer.isViewOnly},ho=function(e){return e.viewer.customPanels},bo=function(e){return e.viewer.customModals},go=function(e){return e.viewer.pageLabels},yo=function(e){return e.viewer.isCustomPageLabelsEnabled},vo=function(e){return e.viewer.selectedThumbnailPageIndexes},wo=function(e){return e.viewer.shiftKeyThumbnailPivotIndex},Eo=function(e){return e.viewer.customPanels.reduce((function(t,n){var o,r=n.tab;return null!==(o=e.viewer.disabledElements[r.dataElement])&&void 0!==o&&o.disabled&&t.push(r.dataElement),t}),[])},Co=function(e){var t=Ln(e);return Object.keys(t).filter((function(t){return _t(e,t)})).map((function(t){return Zn(e,t)})).filter(Boolean)},Oo=function(e){return!o.a&&e.viewer.useEmbeddedPrint},To=function(e){return e.viewer.useClientSidePrint},So=function(e){return e.viewer.autoExpandOutlines},xo=function(e){return e.viewer.isAnnotationNumberingEnabled},Ao=function(e){return e.viewer.bookmarkIconShortcutVisibility},_o=function(e){return e.viewer.colorMap},Po=function(e){return e.viewer.cursorOverlay},ko=function(e){return e.viewer.openElements},Lo=function(e,t){var n;return null===(n=e.viewer.colorMap[t])||void 0===n?void 0:n.currentStyleTab},Mo=function(e,t){var n;return null===(n=e.viewer.colorMap[t])||void 0===n?void 0:n.iconColor},jo=function(e){return e.viewer.customNoteFilter},Io=function(e){return e.viewer.internalNoteFilter},Ro=function(e){return e.viewer.inlineCommentFilter},No=function(e){return e.viewer.isReplyDisabledFunc},Do=function(e){return e.viewer.zoomList},Fo=function(e){return e.viewer.measurementUnits},Bo=function(e){return e.viewer.isNoteEditing},Ho=function(e){return e.viewer.maxSignaturesCount},Vo=function(e){return e.viewer.userData},Uo=function(e){return!!e.viewer.userData},Go=function(e){return e.viewer.signatureFonts},Wo=function(e,t){return e.viewer.tab[t]},zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.viewer.customElementOverrides[t]},Zo=function(e,t){var n=e.viewer.modularPopups[t];return n?n.filter((function(t){if(!e.viewer.isViewOnly)return!0;var n=null==t?void 0:t.dataElement;return!(n&&!e.viewer.viewOnlyWhitelist.dataElement.includes(n))||(!!e.viewer.viewOnlyWhitelist.dataElementBlacklist.includes(n)||e.viewer.viewOnlyWhitelist.popup.includes(n))})):[]},Yo=function(e){return e.viewer.menuOverlay},qo=function(e){return e.viewer.isThumbnailMerging},Ko=function(e){return e.viewer.isThumbnailReordering},$o=function(e){return e.viewer.isThumbnailMultiselect},Xo=function(e){return e.viewer.isMultipleViewerMerging},Jo=function(e){return e.viewer.enableNotesPanelVirtualizedList},Qo=function(e){return e.viewer.notesShowLastUpdatedDate},er=function(e){return e.viewer.allowPageNavigation},tr=function(e){return e.viewer.customMeasurementOverlay},nr=function(e){return e.viewer.annotationContentOverlayHandler},or=function(e){return e.viewer.enableMouseWheelZoom},rr=function(e){return e.viewer.isReaderMode},ir=function(e){return e.digitalSignatureValidation.certificates},ar=function(e){return e.digitalSignatureValidation.trustListKey},lr=function(e){return e.digitalSignatureValidation.validationModalWidgetName},cr=function(e,t){return e.digitalSignatureValidation.verificationResult[t]||{}},ur=function(e){return e.digitalSignatureValidation.isRevocationCheckingEnabled},sr=function(e){return e.digitalSignatureValidation.revocationProxyPrefix},dr=function(e){return e.viewer.thumbnailSelectingPages},pr=function(e){return e.viewer.watermarkModalOptions},fr=function(e){return e.viewer.zoomStepFactors},mr=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.message)||""},hr=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.title)||""},br=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onConfirm},gr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.confirmBtnText},yr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onSecondary},vr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.secondaryBtnText},wr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.secondaryBtnClass},Er=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onCancel},Cr=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.showAskAgainCheckbox)||!1},Or=function(e){var t,n;return null===(t=null===(n=e.viewer.warning)||void 0===n?void 0:n.showDeleteTabWarning)||void 0===t||t},Tr=function(e){return e.viewer.isAccessibleMode},Sr=function(e){return e.viewer.shouldAddA11yContentToDOM},xr=function(e){return e.viewer.disabledFeaturesInAccessibleReadingMode},Ar=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.templateStrings)||{}},_r=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.modalClass)||""},Pr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onClose},kr=function(e){return e.viewer.errorMessage||""},Lr=function(e){return e.viewer.errorTitle||""},Mr=function(e){return e.document.passwordAttempts},jr=function(e){return e.document.printQuality},Ir=function(e){return e.document.defaultPrintOptions},Rr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.document.totalPages[t]},Nr=function(e){return e.document.outlines},Dr=function(e){return e.viewer.isOutlineEditingEnabled},Fr=function(e){return e.document.bookmarks},Br=function(e){return e.document.portfolio},Hr=function(e){return e.document.layers},Vr=function(e){return e.document.loadingProgress},Ur=function(e){return e.user.name},Gr=function(e){return e.advanced.serverUrl},Wr=function(e){return e.search.value},zr=function(e){return e.search.clearSearchPanelOnClose},Zr=function(e){return e.search.isCaseSensitive},Yr=function(e){return e.search.replaceValue},qr=function(e){return e.search.nextResult},Kr=function(e){return e.search.isWholeWord},$r=function(e){return e.search.isWildcard},Xr=function(e){return e.search.isSearchUp},Jr=function(e){return e.search.isSearchInProgress},Qr=function(e){return e.search.isAmbientString},ei=function(e){return e.search.isRegex},ti=function(e){return e.search.isProcessingSearchResults},ni=function(e){return e.search.redactionSearchPatterns},oi=function(e){return e.viewer.noteTransformFunction},ri=function(e){return e.viewer.customNoteFunction},ii=function(e){return e.viewer.customApplyRedactionsHandler},ai=function(e){return e.viewer.customMultiViewerSyncHandler},li=function(e){return e.viewer.customMultiViewerAcceptedFileFormats},ci=function(e){return!!e.viewer.snapMode[e.viewer.activeToolName]},ui=function(e){return e.viewer.unreadAnnotationIdSet},si=function(e){return e.viewer.currentLanguage},di=function(e){return e.viewer.fadePageNavigationComponent},pi=function(e){return e.viewer.isWidgetHighlightingEnabled},fi=function(e){return e.viewer.hideContentEditWarning},mi=function(e){return e.viewer.contentEditWorkersLoaded},hi=function(e){return e.viewer.currentContentBeingEdited},bi=function(e){return e.viewer.isContentEditingEnabled},gi=function(e){return e.featureFlags},yi=function(e){return e.viewer.enableRightClickAnnotationPopup},vi=function(e){return e.viewer.isInDesktopOnlyMode},wi=function(e,t){return e.viewer.panelWidths[t]||i.d},Ei=function(e){return e.viewer.pageDeletionConfirmationModalEnabled},Ci=function(e){return e.viewer.pageReplacementFileList},Oi=function(e){return e.viewer.pageManipulationOverlay},Ti=function(e){return e.viewer.multiPageManipulationControls},Si=function(e){return e.viewer.pageManipulationOverlayAlternativePosition},xi=function(e){return e.viewer.pageManipulationOverlayOpenByRightClick},Ai=function(e){return e.viewer.thumbnailControlMenu},_i=function(e){var t,n=e.viewer.toolButtonObjects[e.viewer.activeToolName];return null===(t=null==n?void 0:n.showPresets)||void 0===t||t},Pi=function(e){return e.viewer.shouldResetAudioPlaybackPosition},ki=function(e){return e.viewer.activeSoundAnnotation},Li=function(e){return e.viewer.embeddedJSPopupStyle},Mi=function(e){return e.wv3dPropertiesPanel.modelData},ji=function(e){return e.wv3dPropertiesPanel.schema},Ii=function(e){return e.officeEditor.cursorProperties},Ri=function(e){return e.officeEditor.selectionProperties},Ni=function(e){return Ii(e).locationProperties.inTable},Di=function(e){return e.officeEditor.editMode},Fi=function(e){return e.officeEditor.stream},Bi=function(e){return e.officeEditor.unitMeasurement},Hi=function(e){return e.officeEditor.availableFontFaces},Vi=function(e){return e.officeEditor.cssFontValues},Ui=function(e){return e.viewer.contentBoxEditor},Gi=function(e){return e.viewer.annotationFilters},Wi=function(e){return e.viewer.notesPanelCustomHeaderOptions},zi=function(e){return e.viewer.notesPanelCustomEmptyPanel},Zi=function(e){return e.viewer.replyAttachmentPreviewEnabled},Yi=function(e){return e.viewer.replyAttachmentHandler},qi=function(e){return e.viewer.customSettings},Ki=function(e){return e.viewer.toolDefaultStyleUpdateFromAnnotationPopupEnabled},$i=function(e){return e.viewer.annotationToolStyleSyncingEnabled},Xi=function(e){return e.viewer.shortcutKeyMap},Ji=function(e){return e.viewer.multiViewerSyncScrollMode},Qi=function(e){return e.viewer.compareAnnotationsMap},ea=function(e){return e.viewer.textSignatureCanvasMultiplier},ta=function(e){return e.viewer.isMeasurementAnnotationFilterEnabled},na=function(e){var t=gt(e,a.p.RIGHT);return(null==t?void 0:t.length)>0},oa=function(e){var t=gt(e,a.p.LEFT);return(null==t?void 0:t.length)>0},ra=function(e){if(fa(e))return na(e)?wt(e):0;for(var t=0,n=[{name:l.a.NOTES_PANEL,isOpen:Pt,getWidth:mt},{name:l.a.SEARCH_PANEL,isOpen:Pt,getWidth:ft},{name:l.a.TEXT_EDITING_PANEL,isOpen:Pt,getWidth:st},{name:l.a.WV3D_PROPERTIES_PANEL,isOpen:Pt,getWidth:ct},{name:l.a.COMPARE_PANEL,isOpen:Pt,getWidth:ht},{name:l.a.REDACTION_PANEL,isOpen:Pt,getWidth:lt}];t<n.length;t++){var o=n[t];if(o.isOpen(e,o.name))return o.getWidth(e)}return 0},ia=function(e){return e.viewer.isShowComparisonButtonEnabled},aa=function(e){return e.viewer.isMultiViewerModeAvailable},la=function(e){return e.document.maxPasswordAttempts},ca=function(e){return e.viewer.isKeyboardOpen},ua=function(e){return e.viewer.canUndo[e.viewer.activeDocumentViewerKey]},sa=function(e){return e.viewer.canRedo[e.viewer.activeDocumentViewerKey]},da=function(e){return e.spreadsheetEditor.canUndo},pa=function(e){return e.spreadsheetEditor.canRedo},fa=function(e){return"legacy"!=Object(m.a)("ui","default")||gi(e).customizableUI},ma=function(e){return e.viewer.isOfficeEditorHeaderEnabled},ha=function(e){return e.viewer.isSpreadsheetEditorModeEnabled},ba=function(e){return e.viewer.uiConfiguration},ga=function(e){return e.spreadsheetEditor.activeCellRange},ya=function(e){return e.spreadsheetEditor.cellProperties.cellFormula},va=function(e){return e.spreadsheetEditor.cellProperties.stringCellValue},wa=function(e){return e.spreadsheetEditor.editMode},Ea=function(e){return e.spreadsheetEditor.cellProperties.styles.verticalAlignment},Ca=function(e){return e.spreadsheetEditor.cellProperties.styles.horizontalAlignment},Oa=function(e){return e.spreadsheetEditor.cellProperties.styles.wrapText},Ta=function(e,t){return e.spreadsheetEditor.cellProperties.styles.font[t]},Sa=function(e){return e.spreadsheetEditor.cellProperties.styles.formatType},xa=function(e){return e.spreadsheetEditor.cellProperties.styles.border},Aa=function(e){return e.spreadsheetEditor.selectedBorderColorOption},_a=function(e){return e.spreadsheetEditor.selectedBorderStyleListOption},Pa=function(e){return e.spreadsheetEditor.textColors},ka=function(e){return e.spreadsheetEditor.customTextColors},La=function(e){return e.spreadsheetEditor.borderColors},Ma=function(e){return e.spreadsheetEditor.customBorderColors},ja=function(e){return e.spreadsheetEditor.cellBackgroundColors},Ia=function(e){return e.spreadsheetEditor.customCellBackgroundColors},Ra=function(e){return e.spreadsheetEditor.cellProperties.isSingleCell},Na=function(e){return e.spreadsheetEditor.cellProperties.styles.isCellRangeMerged},Da=function(e){return e.spreadsheetEditor.cellProperties.styles.backgroundColor},Fa=function(e){return e.spreadsheetEditor.cellProperties.canCopy},Ba=function(e){return e.spreadsheetEditor.cellProperties.canPaste},Ha=function(e){return e.spreadsheetEditor.cellProperties.canCut},Va=function(e){return e.spreadsheetEditor.availableFontFaces},Ua=function(e){return e.spreadsheetEditor.cssFontValues},Ga=function(e,t){return!(!e||!Array.isArray(e))&&e.some((function(e){return!!e&&(!!("object"===L(e)&&e.props&&e.hasOwnProperty("key")&&e.props.isFlyout&&e.key.startsWith(t))||("object"===L(e)&&e.render===t||!!e.children&&Ga(e.children,t)))}))},Wa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e.viewer.flyoutMap;for(var r in o){var i=o[r],a=(null==i?void 0:i.items)&&Ga(i.items,t)&&!n.includes(null==i?void 0:i.dataElement);if(a)return i}return null}},function(e,t,n){"use strict";var o=n(58),r=n(340).trim;o({target:"String",proto:!0,forced:n(688)("trim")},{trim:function(){return r(this)}})},function(e,t,n){var o=n(58),r=n(535);o({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(e,t){e.exports=!1},function(e,t,n){var o=n(273),r=n(129);e.exports=function(e){return o(r(e))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return D})),n.d(t,"a",(function(){return V}));n(9),n(10),n(14),n(32),n(38),n(34),n(82),n(124),n(27),n(21),n(46),n(20),n(12),n(268),n(44),n(118),n(22),n(94),n(128),n(33),n(18),n(26),n(16),n(30),n(40),n(49),n(24),n(48),n(50),n(41),n(35),n(42),n(8),n(111),n(56),n(17),n(19),n(64),n(11),n(182),n(115),n(31),n(13),n(93);var o=n(1),r=n(60),i=n(109),a=n(162),l=n(3),c=n(4),u=n(39),s=n(57),d=n(186),p=n(54),f=n(238),m=n.n(f),h=n(5),b=n(23);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return O(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(O(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,O(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,O(d,"constructor",u),O(u,"constructor",c),c.displayName="GeneratorFunction",O(u,r,"GeneratorFunction"),O(d),O(d,r,"Generator"),O(d,o,(function(){return this})),O(d,"toString",(function(){return"[object Generator]"})),(C=function(){return{w:i,m:p}})()}function O(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(O=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){O(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function x(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}function P(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function M(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){M(i,o,r,a,l,"next",e)}function l(e){M(i,o,r,a,l,"throw",e)}a(void 0)}))}}var I={flags:window.Core.SaveOptions.INCREMENTAL},R=function(){return function(e,t){var n=t();if(!c.a.getIsMultiTab(n)||!c.a.getTabManager(n)){var r=o.a.getDocument(),i=[];if(r)i.push(r);else{var a=Object(u.a)("d","");(a=a?JSON.parse(a):"")&&(Array.isArray(a)?i=i.concat(a):i.push(a))}var d=new V(i,[],{dispatch:e,getState:t});e(l.a.setMultiTab(!0)),e(l.a.setTabManager(d)),setTimeout((function(){Object(s.a)(p.a.TAB_MANAGER_READY)}),300),o.a.addEventListener("documentLoaded",(function e(){var n=o.a.getDocument(),r=t();c.a.getTabs(r).some((function(e){var t;return(null===(t=e.options)||void 0===t?void 0:t.filename)===n.filename}))||n.getFileData(I).then((function(e){try{d.addTab(new File([e],n.getFilename()))}catch(e){console.error(e)}})),o.a.removeEventListener("documentLoaded",e)}))}}};function N(e,t){var n,o=null===(n=Object(u.a)("extension",null))||void 0===n?void 0:n.split(",");if(o&&1!==o.length&&o.length!==e.length)throw new Error("'initialDoc' array length doesn't match 'extension' array length.\n Please add an extension for each document or add one for all documents.\n ex:\n Webviewer({ initialDoc: ['pdf_doc', 'word_doc'], extension: ['pdf', 'docx'] })\n OR\n Webviewer({ initialDoc: ['pdf_doc1', 'pdf_doc2', 'pdf_doc3'], extension: ['pdf'] })");o&&1===o.length&&console.warn("Extension option '".concat(o[0],"' will be applied to all tabs from the constructor.")),t.dispatch(l.a.setMultiTab(!0));var r=new V(e,o,t);t.dispatch(l.a.setTabManager(r)),r.listenForAnnotChanges(),setTimeout((function(){Object(s.a)(p.a.TAB_MANAGER_READY)}),300)}function D(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e){var n=e.lastIndexOf(".");return-1!==n&&(e=e.substring(0,n)),t?e.replace(/\s+/g,"").toLowerCase():e}}function F(e,t,n){return B.apply(this,arguments)}function B(){return(B=j(C().m((function e(t,n,o){var r;return C().w((function(e){for(;;)switch(e.n){case 0:return r=t.transaction("files","readwrite"),r.objectStore("files").put(n,o),e.n=1,r.commit();case 1:return e.a(2)}}),e)})))).apply(this,arguments)}function H(e){var t=e.filter((function(e){return e.options.filename.includes("untitled-")}));if(0===t.length)return 1;var n=t.map((function(e){var t=e.options.filename.match(/\d+/);return t?parseInt(t[0]):0}));return Math.max.apply(Math,P(n))+1}var V=function(){return x((function e(t,n,i){var a=this;T(this,e),A(this,"db",void 0),A(this,"store",void 0),A(this,"useDB",void 0),A(this,"tabLoadPromise",void 0),A(this,"getViewerState",(function(e){var t={},n=e.viewer;return t.documentContainerWidth=n.documentContainerWidth,t.documentContainerHeight=n.documentContainerHeight,t.isNotesPanelOpen=c.a.isElementOpen(e,"notesPanel"),t.isLeftPanelOpen=c.a.isElementOpen(e,"leftPanel"),t.isSearchPanelOpen=c.a.isElementOpen(e,"searchPanel"),t.activeToolName=n.activeToolName,t})),A(this,"listenToDocumentDownloaded",function(){var e=j(C().m((function e(t){var n,r,i,l,c,u,d;return C().w((function(e){for(;;)switch(e.n){case 0:n=a.store.getState().viewer,r=n.tabs,i=n.activeTab,l=r.find((function(e){return e.id===i})),c=function(){l.changes.hasUnsavedChanges=!1},u=function(e){"refresh"!==e.source&&(l.changes.hasUnsavedChanges=!0)},Object(s.c)().addEventListener(p.a.FILE_DOWNLOADED,c),t.addEventListener("pagesUpdated",u),d=function(){Object(s.c)().removeEventListener(p.a.FILE_DOWNLOADED,c),t.removeEventListener("pagesUpdated",u)},o.a.addEventListener("documentUnloaded",d,{once:!0});case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.store=i;var u=this.store.getState();this.useDB=!u.advanced.disableIndexedDB;var d=u.viewer,f=d.tabs,h=d.isMultiTab;if(this.useDB){var b=indexedDB.open("WebViewer Files",1);b.onerror=e.indexedDBNotSupported,b.onsuccess=j(C().m((function t(){return C().w((function(t){for(;;)switch(t.n){case 0:a.db=b.result,a.db.onerror=e.throwError;case 1:return t.a(2)}}),t)}))),b.onupgradeneeded=function(e){e.target.result.createObjectStore("files")}}h&&c.a.getTabManager(u)||(t.forEach((function(e,t){var o=n&&m()(e)?n[n.length>1?t:0]:void 0,r="Document ".concat(f.length+1);m()(e)?r=e.substring(e.lastIndexOf("/")+1):e instanceof window.Core.Document&&e.getFilename&&e.getFilename()&&(r=e.getFilename()),f.push(new U(f.length,e,a,{filename:r,extension:o},a.useDB))})),this.store.dispatch(l.a.setTabs(f)),this.prepareTabEventListeners(),o.a.addEventListener("documentLoaded",j(C().m((function e(){var t,n,c,u,s,d,p,f,m,h,b,g,y,v,w;return C().w((function(e){for(;;)switch(e.n){case 0:return t=a.store.getState(),n=t.viewer,c=n.tabs,u=n.activeTab,s=i.dispatch,d=c.find((function(e){return e.id===u})),e.n=1,o.a.getDocument().getType();case 1:if((p=e.v)!==r.a.PDF&&p!==r.a.OFFICE){e.n=4;break}return g=F,y=a.db,e.n=2,o.a.getDocument().getFileData(I);case 2:return v=e.v,w=d.id,e.n=3,g(y,v,w);case 3:f=H(c),d.options.filename=o.a.getDocument().getFilename()||"untitled-".concat(f),(m=new U(u,o.a.getDocument(),d.tabManager,d.options,d.useDB)).saveData.docInDB=!0,h=c.findIndex((function(e){return e.id===d.id})),c[h]=m,b=P(c),s(l.a.setTabs(b));case 4:return e.a(2)}}),e)})))))}),[{key:"prepareTabEventListeners",value:function(){var e=this,t=o.a.getDocumentViewer(1);t.addEventListener("finishedRendering",(function(){e.listenForAnnotChanges(),e.listenToDocumentDownloaded(t)}),{once:!0})}},{key:"setActiveTab",value:(i=j(C().m((function e(t){var n,r,i,u,d,f,m,b,g,y=arguments;return C().w((function(e){for(;;)switch(e.n){case 0:if(n=!(y.length>1&&void 0!==y[1])||y[1],this.store.dispatch(l.a.openElement(h.a.PROGRESS_MODAL)),this.store.dispatch(Object(a.setLoadingProgress)(0)),r=this.store.getState(),i=r.viewer,u=i.tabs,d=i.activeTab,f=u.find((function(e){return e.id===d})),m=c.a.isElementOpen(r,h.a.MULTITABS_EMPTY_PAGE),this.prepareTabEventListeners(),b=u.find((function(e){return e.id===t}))){e.n=1;break}return e.a(2,console.error("Tab id not found: ".concat(t)));case 1:return e.n=2,this.waitForTabToLoad();case 2:return e.n=3,Object(s.a)(p.a.BEFORE_TAB_CHANGED,{currentTab:f?{src:f.src,options:f.options,id:f.id,annotationsChanged:f.changes.annotations,hasUnsavedChanges:f.changes.hasUnsavedChanges}:null,nextTab:{src:b.src,options:b.options,id:b.id}});case 3:if(g=this.getViewerState(r),!f){e.n=5;break}if(!n){e.n=4;break}return e.n=4,f.saveCurrentActiveTabState(this.db);case 4:return e.n=5,o.a.closeDocument();case 5:return this.store.dispatch(l.a.setActiveTab(t)),m&&this.store.dispatch(l.a.closeElement(h.a.MULTITABS_EMPTY_PAGE)),this.tabLoadPromise=b.load(this.store.dispatch,this.db,g),e.n=6,this.tabLoadPromise;case 6:return e.a(2)}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"waitForTabToLoad",value:(n=j(C().m((function e(){return C().w((function(e){for(;;)switch(e.n){case 0:if(!this.tabLoadPromise){e.n=2;break}return e.n=1,this.tabLoadPromise;case 1:this.tabLoadPromise=null;case 2:return e.a(2)}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"showDeleteWarning",value:function(e){var t=this,n={message:"warning.closeFile.message",title:"warning.closeFile.title",onConfirm:function(){Object(d.a)(t.store.dispatch).then((function(){e.changes.hasUnsavedChanges=!1,t.deleteTab(e.id)}))},onSecondary:function(){e.changes.hasUnsavedChanges=!1,t.deleteTab(e.id)},confirmBtnText:"action.download",secondaryBtnText:"warning.closeFile.rejectDownloadButton",secondaryBtnClass:"secondary-btn-custom",showAskAgainCheckbox:!0,onClose:function(e){e&&t.store.dispatch(l.a.disableDeleteTabWarning())}};this.store.dispatch(l.a.showWarningMessage(n))}},{key:"deleteTab",value:(t=j(C().m((function e(t){var n,r,i,a,u,d,f,m,h;return C().w((function(e){for(;;)switch(e.n){case 0:if(n=this.store.getState(),r=n.viewer,i=r.tabs,a=r.activeTab,u=i.find((function(e){return e.id===t})),!c.a.getShowDeleteTabWarning(n)||!u.changes.hasUnsavedChanges){e.n=1;break}this.showDeleteWarning(u),e.n=8;break;case 1:return d=i.filter((function(e){return e.id===t})),f=E(d,1),m=f[0],h=i.filter((function(e){return e.id!==t})),e.n=2,Object(s.a)(p.a.BEFORE_TAB_DELETED,{src:m.src,options:m.options,id:m.id});case 2:if(m.delete(this.db),this.store.dispatch(l.a.setTabs(h)),!(t===a&&h.length>0)){e.n=4;break}return e.n=3,this.setActiveTab(h[0].id);case 3:e.n=7;break;case 4:if(0!==h.length){e.n=7;break}return e.n=5,this.waitForTabToLoad();case 5:return e.n=6,o.a.closeDocument();case 6:this.store.dispatch(l.a.setActiveTab(null));case 7:return e.n=8,Object(s.a)(p.a.TAB_DELETED,{src:m.src,options:m.options,id:m.id});case 8:return e.a(2)}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"addTab",value:(e=j(C().m((function e(t){var n,o,r,i,a,c,u,d,f=arguments;return C().w((function(e){for(;;)switch(e.n){case 0:if(n=f.length>1&&void 0!==f[1]?f[1]:{},o=n.saveCurrentActiveTabState||n.saveCurrent,r=!1===n.useDB?n.useDB&&this.useDB:this.useDB,i=n.setActive||n.load,a=this.store.getState().viewer.tabs,c=a.reduce((function(e,t){return t.id>e?t.id:e}),0),"filename"in n||(n.filename="Document ".concat(c+2),m()(t)?n.filename=t.substring(t.lastIndexOf("/")+1):t instanceof window.Core.Document&&t.getFilename&&t.getFilename()?n.filename=t.getFilename():(t instanceof File||"[object File]"===Object.prototype.toString.call(t))&&(n.filename=t.name)),u=new U(c+1,t,this,n,r),d=[].concat(P(a),[u]),this.store.dispatch(l.a.setTabs(d)),!i){e.n=1;break}return e.n=1,this.setActiveTab(u.id,o);case 1:return e.n=2,Object(s.a)(p.a.TAB_ADDED,{src:u.src,options:u.options,id:u.id});case 2:return e.a(2,u.id)}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"moveTab",value:function(e,t){var n=P(this.store.getState().viewer.tabs),o=n.splice(e,1)[0];n.splice(t,0,o),this.store.dispatch(l.a.setTabs(n)),Object(s.a)(p.a.TAB_MOVED,{src:o.src,options:o.options,id:o.id,prevIndex:e,newIndex:t})}},{key:"listenForAnnotChanges",value:function(){var e=this,t=function(t,n,o){if(!o.imported){var i=e.store.getState().viewer,a=i.tabs,l=i.activeTab,c=a.find((function(e){return e.id===l}));c&&(c.changes.annotations=!0,c.changes.hasUnsavedChanges=!0),r()}},n=function(){var t=e.store.getState().viewer,n=t.tabs,o=t.activeTab,i=n.find((function(e){return e.id===o}));i&&(i.changes.annotations=!0,i.changes.hasUnsavedChanges=!0),r()};o.a.addEventListener("annotationChanged",t),o.a.addEventListener("fieldChanged",n,{once:!0});var r=function(){o.a.removeEventListener("annotationChanged",t),o.a.removeEventListener("fieldChanged",n)};o.a.addEventListener("documentUnloaded",r,{once:!0})}},{key:Symbol.iterator,value:C().m((function e(){var t,n,o,r,i;return C().w((function(e){for(;;)switch(e.p=e.n){case 0:t=this.store.getState().viewer.tabs,n=w(t),e.p=1,n.s();case 2:if((o=n.n()).done){e.n=4;break}return r=o.value,e.n=3,r;case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,i=e.v,n.e(i);case 6:return e.p=6,n.f(),e.f(6);case 7:return e.a(2)}}),e,this,[[1,5,6,7]])}))},{key:"map",value:function(e){var t,n=[],o=0,r=w(this.store.getState().viewer.tabs);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(e(i,o++))}}catch(e){r.e(e)}finally{r.f()}return n}}],[{key:"throwError",value:function(){console.warn("File database has encountered an error. File data will not be saved when switching tabs")}},{key:"indexedDBNotSupported",value:function(){console.warn("IndexedDB is not supported, file data will not be saved")}}]);var e,t,n,i}();A(V,"MAX_FILE_SIZE",25e7);var U=function(){return x((function e(t,n,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];T(this,e),A(this,"disabled",!1),A(this,"saveData",{annotInDB:!1,docInDB:!1,scrollTop:void 0,scrollLeft:void 0,page:null,annots:null}),A(this,"changes",{annotations:!1,hasUnsavedChanges:!1}),A(this,"id",void 0),A(this,"src",void 0),A(this,"options",void 0),A(this,"useDB",void 0),A(this,"tabManager",void 0),this.id=t,this.src=n,this.options=r,this.useDB=i,this.tabManager=o}),[{key:"preLoad",value:(h=j(C().m((function e(t){var n,o,r,i,a;return C().w((function(e){for(;;)switch(e.n){case 0:if(this.useDB){e.n=1;break}return e.a(2,console.error("Cant preload tab with useDB = false"));case 1:return e.n=2,fetch(this.src);case 2:return n=e.v,this.saveData.docInDB=!0,o=F,r=t,e.n=3,n.arrayBuffer();case 3:return i=e.v,a=this.id,e.n=4,o(r,i,a);case 4:return e.a(2)}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"load",value:(m=j(C().m((function e(t,n,o){var r,a=this;return C().w((function(e){for(;;)switch(e.n){case 0:if(r=this.saveData.annotInDB||this.saveData.annots,this.options.loadAnnotations=!r,this.restorePageDataOnLoad(o,t),!r){e.n=1;break}return e.n=1,this.restoreAnnotDataOnLoad(n);case 1:if(!this.useDB||!this.saveData.docInDB){e.n=3;break}return e.n=2,new Promise((function(e){var o=n.transaction("files","readonly"),r=o.objectStore("files").get(a.id);a.id&&(a.options.docId=a.id.toString()),r.onsuccess=j(C().m((function n(){var o;return C().w((function(n){for(;;)switch(n.n){case 0:return o=r.result,n.n=1,Object(i.a)(t,o,a.options);case 1:e();case 2:return n.a(2)}}),n)}))),o.commit()}));case 2:e.n=4;break;case 3:return e.n=4,Object(i.a)(t,this.src,this.options);case 4:return e.a(2)}}),e,this)}))),function(e,t,n){return m.apply(this,arguments)})},{key:"saveCurrentActiveTabState",value:(f=j(C().m((function e(t){var n,i,a;return C().w((function(e){for(;;)switch(e.n){case 0:if(this.disabled=!0,this.savePageData(),n=o.a.getDocument(),i=(null==n?void 0:n.type)===r.a.PDF&&n.arePagesAltered(),a=this.src instanceof window.Core.Document&&this.src.type!==r.a.IMAGE,!this.useDB||!i&&!a){e.n=2;break}return e.n=1,this.saveFileData(t,n);case 1:e.n=5;break;case 2:if(!this.changes.annotations){e.n=5;break}if(!this.useDB){e.n=4;break}return e.n=3,this.saveAnnotDataInDB(t);case 3:e.n=5;break;case 4:return e.n=5,this.saveAnnotData();case 5:this.disabled=!1;case 6:return e.a(2)}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"saveFileData",value:(d=j(C().m((function e(t,n){var r,i;return C().w((function(e){for(;;)switch(e.n){case 0:return this.saveData.annotInDB=!1,e.n=1,o.a.exportAnnotations();case 1:return r=e.v,e.n=2,n.getFileData(v({xfdfString:r,finishedWithDocument:!0},I));case 2:return i=e.v,this.saveData.docInDB=!0,e.n=3,F(t,i,this.id);case 3:return e.a(2)}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"saveAnnotData",value:(u=j(C().m((function e(){var t;return C().w((function(e){for(;;)switch(e.n){case 0:return this.saveData.annotInDB=!1,e.n=1,o.a.exportAnnotations({options:{fields:!0,widgets:!0,links:!0}});case 1:(t=e.v)&&(this.saveData.annots=t);case 2:return e.a(2)}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"saveAnnotDataInDB",value:(a=j(C().m((function e(t){var n,r,i;return C().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,o.a.exportAnnotations({options:{fields:!0,widgets:!0,links:!0}});case 1:if(!(n=e.v)){e.n=3;break}return r=n,(i=t.transaction("files","readwrite")).objectStore("files").put(r,"".concat(this.id,"-annots")),e.n=2,i.commit();case 2:this.saveData.annotInDB=!0;case 3:return e.a(2)}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"savePageData",value:function(){var e=Object(b.a)().getElementById("app").getElementsByClassName("DocumentContainer")[0];this.saveData.scrollTop=e.scrollTop,this.saveData.scrollLeft=e.scrollLeft,this.saveData.page=o.a.getCurrentPage();this.saveData.zoom=Math.floor(1e4*o.a.getZoom())/1e4}},{key:"restorePageDataOnLoad",value:function(e,t){var n=this,r=Object(b.a)().getElementById("app").getElementsByClassName("DocumentContainer")[0],i=function(){var e=j(C().m((function e(){return C().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,o.a.getDocument().getDocumentCompletePromise();case 1:r.scrollTo({top:n.saveData.scrollTop,left:n.saveData.scrollLeft});case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();e.isNotesPanelOpen&&t(l.a.openElement("notesPanel")),e.isLeftPanelOpen&&t(l.a.openElement("leftPanel")),e.isSearchPanelOpen&&t(l.a.openElement("searchPanel")),e.activeToolName&&o.a.setToolMode(e.activeToolName);var a=function(){var e=j(C().m((function e(){return C().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,o.a.getDocument().getDocumentCompletePromise();case 1:if(!n.saveData.zoom){e.n=2;break}return e.n=2,o.a.zoomTo(n.saveData.zoom);case 2:if(!n.saveData.page){e.n=3;break}return e.n=3,o.a.setCurrentPage(n.saveData.page);case 3:return e.n=4,Object(s.a)(p.a.AFTER_TAB_CHANGED,{currentTab:n.src?{src:n.src,options:n.options,id:n.id,annotationsChanged:n.changes.annotations,hasUnsavedChanges:n.changes.hasUnsavedChanges}:null});case 4:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();o.a.addEventListener("documentLoaded",a,{once:!0}),!isNaN(this.saveData.scrollTop)&&o.a.addEventListener("finishedRendering",i,{once:!0});o.a.addEventListener("documentUnloaded",(function(){o.a.removeEventListener("documentLoaded",a),o.a.removeEventListener("finishedRendering",i)}),{once:!0})}},{key:"updateAnnotations",value:(n=j(C().m((function e(t){var n,r,i,a,l;return C().w((function(e){for(;;)switch(e.n){case 0:if(n=this.tabManager.store.getState(),(r=c.a.getActiveTab(n))===this.id){e.n=1;break}return e.a(2,c.a.getTabs(n).find((function(e){return e.id===r})).updateAnnotations(t));case 1:if(!this.saveData.annotInDB){e.n=3;break}return i=t.transaction("files","readwrite"),a=i.objectStore("files"),(l=a.get("".concat(this.id,"-annots"))).onsuccess=j(C().m((function e(){return C().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,o.a.getDocument().getDocumentCompletePromise();case 1:return e.n=2,o.a.getAnnotationManager().importAnnotations(l.result);case 2:return e.a(2)}}),e)}))),e.n=2,i.commit();case 2:e.n=5;break;case 3:if(!this.saveData.annots){e.n=5;break}return e.n=4,o.a.getDocument().getDocumentCompletePromise();case 4:return e.n=5,o.a.getAnnotationManager().importAnnotations(this.saveData.annots);case 5:return e.a(2)}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"restoreAnnotDataOnLoad",value:(t=j(C().m((function e(t){var n,r,i=this;return C().w((function(e){for(;;)switch(e.n){case 0:n=function(){return i.updateAnnotations(t)},r=function(){o.a.removeEventListener("documentLoaded",n)},o.a.addEventListener("documentLoaded",n,{once:!0}),o.a.addEventListener("documentUnloaded",r,{once:!0});case 1:return e.a(2)}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"delete",value:(e=j(C().m((function e(t){var n,o;return C().w((function(e){for(;;)switch(e.n){case 0:if(!this.useDB){e.n=1;break}return n=t.transaction("files","readwrite"),(o=n.objectStore("files")).delete(this.id),o.delete("".concat(this.id,"-annot-states")),o.delete("".concat(this.id,"-annots")),e.n=1,n.commit();case 1:return e.a(2)}}),e,this)}))),function(t){return e.apply(this,arguments)})}]);var e,t,n,a,u,d,f,m,h}()},function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return w}));n(9),n(10),n(14),n(32),n(21),n(46),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(59),n(24),n(8),n(17),n(19),n(64),n(11),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(15),l=n.n(a),c=n(2),u=n.n(c),s=n(3),d=n(4);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var b=r.a.createContext(),g=r.a.memo((function(e){return r.a.createElement(b.Provider,{value:e.id},e.children)}));g.displayName="Tabs",g.propTypes={id:u.a.string.isRequired,children:u.a.node.isRequired};var y=function(e){var t=e.children,n=e.dataElement,a=Object(o.useContext)(b),c=m(Object(i.e)((function(e){return[d.a.isElementDisabled(e,n),d.a.getSelectedTab(e,a)===n]}),i.c),2),u=c[0],h=c[1],g=Object(i.d)(),y={className:l()(f({selected:h},t.props.className,!!t.props.className)),onClick:function(){var e,o;null===(e=(o=t.props).onClick)||void 0===e||e.call(o),g(s.a.setSelectedTab(a,n))},"aria-selected":h,"aria-current":h?"page":null};return y="function"===p(t.type.type||t.type)?Object.assign(y,{isTabSelected:h,dataElement:n}):Object.assign(y,{"data-element":n}),u?null:r.a.cloneElement(t,y)};y.propTypes={children:u.a.node.isRequired,index:u.a.number,dataElement:u.a.string.isRequired};var v=function(e){var t=e.dataElement,n=e.children,o=m(Object(i.e)((function(e){return[d.a.isElementDisabled(e,t)]})),1)[0];return r.a.createElement("div",{"data-element":t},o?null:n)};v.propTypes={children:u.a.node.isRequired,dataElement:u.a.string.isRequired};var w=function(e){var t=e.children,n=e.dataElement,a=Object(o.useContext)(b),l=m(Object(i.e)((function(e){return[d.a.isElementDisabled(e,n),d.a.getSelectedTab(e,a).includes(n)]}),i.c),2),c=l[0],u=l[1];return c?null:r.a.createElement("div",{className:"tab-panel","data-element":n,style:{display:u?"":"none"}},"function"==typeof t.type?r.a.cloneElement(t,{isTabPanelSelected:u}):t)};w.propTypes={children:u.a.node.isRequired,dataElement:u.a.string.isRequired}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var o=n(1);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={Single:1,Continuous:1,Facing:2,FacingContinuous:2,CoverFacing:2,Cover:2};return t[o.a.getDisplayMode(e)]||1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));
|
|
6
|
+
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=r.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var l in o)n.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){var o=n(89),r=n(243).EXISTS,i=n(70),a=n(104).f,l=Function.prototype,c=i(l.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(u.exec);o&&!r&&a(l,"name",{configurable:!0,get:function(){try{return s(u,c(this))[1]}catch(e){return""}}})},function(e,t,n){"use strict";var o=n(58),r=n(334);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){var o=n(70),r=n(112),i=Date.prototype,a=o(i.toString),l=o(i.getTime);"Invalid Date"!=String(new Date(NaN))&&r(i,"toString",(function(){var e=l(this);return e==e?a(this):"Invalid Date"}))},function(e,t,n){"use strict";var o=n(243).PROPER,r=n(112),i=n(99),a=n(97),l=n(71),c=n(439),u=RegExp.prototype.toString,s=l((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=o&&"toString"!=u.name;(s||d)&&r(RegExp.prototype,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},function(e,t,n){n(58)({target:"Array",stat:!0},{isArray:n(215)})},function(e,t,n){var o=n(58),r=n(529);o({target:"Array",stat:!0,forced:!n(333)((function(e){Array.from(e)}))},{from:r})},function(e,t,n){"use strict";var o=n(58),r=n(52),i=n(215),a=n(331),l=n(100),c=n(190),u=n(113),s=n(139),d=n(214),p=n(83),f=n(282),m=n(216),h=f("slice"),b=p("species"),g=r.Array,y=Math.max;o({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,o,r,p=s(this),f=u(p),h=c(e,f),v=c(void 0===t?f:t,f);if(i(p)&&(n=p.constructor,(a(n)&&(n===g||i(n.prototype))||l(n)&&null===(n=n[b]))&&(n=void 0),n===g||void 0===n))return m(p,h,v);for(o=new(void 0===n?g:n)(y(v-h,0)),r=0;h<v;h++,r++)h in p&&d(o,r,p[h]);return o.length=r,o}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return s}));var o;n(9),n(10),n(14),n(27),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(31),n(13);function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var l=function(){var e,t;if(!window.isApryseWebViewerWebComponent)return document;if(o)return o;if(0===(t=document.getElementsByTagName("apryse-webviewer")).length&&(t=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,o=[];return n.querySelectorAll(t).forEach((function(e){return o.push(e)})),n.querySelectorAll("*").forEach((function(n){n.shadowRoot&&o.push.apply(o,r(e(t,n.shadowRoot)))})),o}("apryse-webviewer")),null!==(e=t)&&void 0!==e&&e.length){var n,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}(t);try{for(a.s();!(n=a.n()).done;){var l=n.value.shadowRoot;if(l&&!l.mounted)return l.mounted=!0,o=l}}catch(e){a.e(e)}finally{a.f()}}console.error("Cannot find root node")},c=function(){var e=l().host;return e?e.getAttribute("id"):"default"},u=function(){return window.isApryseWebViewerWebComponent?o?o.host:l().host:window},s=function(){return window.isApryseWebViewerWebComponent?u().getBoundingClientRect():window.document.documentElement.getBoundingClientRect()};t.a=l},function(e,t,n){var o=n(58),r=n(89),i=n(104).f;o({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!r},{defineProperty:i})},function(e,t,n){"use strict";n.d(t,"l",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"n",(function(){return a})),n.d(t,"q",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"v",(function(){return d})),n.d(t,"A",(function(){return p})),n.d(t,"y",(function(){return f})),n.d(t,"B",(function(){return m})),n.d(t,"k",(function(){return h})),n.d(t,"j",(function(){return b})),n.d(t,"x",(function(){return g})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return v})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return E})),n.d(t,"m",(function(){return C})),n.d(t,"o",(function(){return O})),n.d(t,"g",(function(){return T})),n.d(t,"s",(function(){return S})),n.d(t,"t",(function(){return x})),n.d(t,"c",(function(){return A})),n.d(t,"r",(function(){return _})),n.d(t,"C",(function(){return P})),n.d(t,"D",(function(){return k})),n.d(t,"e",(function(){return L})),n.d(t,"u",(function(){return M})),n.d(t,"z",(function(){return j})),n.d(t,"w",(function(){return I}));n(84),n(44),n(8);var o=n(5),r={MAX:1638,MIN:2},i={Single:1,1.15:1.15,1.5:1.5,Double:2},a={Left:"left",Center:"center",Right:"right",Both:"both"},l={Ordered:"ordered",Unordered:"unordered"},c=11,u=new window.Core.Annotations.Color(0,0,0,1),s=window.Core.Document.OfficeEditor.ListStylePresets,d=[{enum:s.BULLET,img:"icon-office-editor-list-style-bullet"},{enum:s.BULLET_SQUARE,img:"icon-office-editor-list-style-square"},{enum:s.SQUARE_BULLET,img:"icon-office-editor-list-style-square-bullet"},{enum:s.DIAMOND,img:"icon-office-editor-list-style-diamond"},{enum:s.CHECK,img:"icon-office-editor-list-style-check"},{enum:s.ARROW,img:"icon-office-editor-list-style-arrow"}],p=[{enum:s.NUMBER_LATIN_ROMAN_1,img:"icon-office-editor-list-style-number-latin-1"},{enum:s.NUMBER_DECIMAL,img:"icon-office-editor-list-style-number-decimal"},{enum:s.NUMBER_LATIN_ROMAN_2,img:"icon-office-editor-list-style-number-latin-2"},{enum:s.LATIN_ROMAN,img:"icon-office-editor-list-style-latin-roman"},{enum:s.ROMAN_LATIN_NUMBER,img:"icon-office-editor-list-style-roman-latin"}],f="officeEditorTrackedChangeUID",m=window.Core.Document.OfficeEditor.EditMode,h=window.Core.Document.OfficeEditor.EditingStreamType,b=window.Core.Document.OfficeEditor.EditOperationSource,g="office-editor",y=["toggleNotesButton","toolsHeader","viewControlsButton","textPopup","marqueeToolButton",o.a.OUTLINE_PANEL_BUTTON,o.a.OUTLINE_PANEL,o.a.LEFT_PANEL_BUTTON,o.a.ANNOTATION_POPUP,o.a.NotesPanel.DefaultHeader.FILTER_ANNOTATION_BUTTON,o.a.ANNOTATION_NOTE_CONNECTOR_LINE,o.a.ANNOTATION_CONTENT_OVERLAY],v=[o.a.OFFICE_EDITOR_TOOLS_HEADER,o.a.INLINE_COMMENT_POPUP,o.a.SEARCH_PANEL_REPLACE_CONTAINER],w=["8","9","10","11","12","14","18","24","30","36","48","60","72"],E={"Normal Text":{fontSize:"11pt",color:"#000000"},Title:{fontSize:"26pt",color:"#000000"},Subtitle:{fontSize:"15pt",color:"#666666"},"Heading 1":{fontSize:"20pt",color:"#000000"},"Heading 2":{fontSize:"16pt",color:"#000000"},"Heading 3":{fontSize:"14pt",color:"#434343"},"Heading 4":{fontSize:"12pt",color:"#666666"},"Heading 5":{fontSize:"11pt",color:"#666666"}},C=100,O=window.Core.Document.OfficeEditor.LayoutUnits,T=window.Core.Document.OfficeEditor.EditOperationSource,S={CM:"cm",MM:"mm",INCH:'"',PHYSICAL_POINT:"pt"},x={NORMAL:2.54,NARROW:1.27,MODERATE:1.905,WIDE:5.08},A={WIDTH:"width",SPACING:"spacing"},_={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},P={COLUMN:"column",MARGIN:"margin"},k=window.Core.Document.OfficeEditor.VERTICAL_MARGIN_LIMIT,L=window.Core.Document.OfficeEditor.DEFAULT_COLUMN_SPACING_IN_POINTS,M=window.Core.Document.OfficeEditor.MINIMUM_COLUMN_WIDTH_IN_POINTS,j="officeEditor.",I=["jpg","jpeg","png","bmp"].map((function(e){return".".concat(e)})).join(", ")},function(e,t,n){var o=n(58),r=n(516);o({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(e,t,n){"use strict";var o=n(58),r=n(511);o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s}));var o;n(9),n(10),n(14),n(12),n(24),n(8),n(11),n(13),n(32),n(33),n(30);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=264,l=14,c={OUTLINE:"outlinesPanel",SIGNATURE:"signaturePanel",BOOKMARKS:"bookmarksPanel",FILE_ATTACHMENT:"fileAttachmentPanel",THUMBNAIL:"thumbnailsPanel",LAYERS:"layersPanel",TEXT_EDITING:"textEditingPanel",CHANGE_LIST:"changeListPanel",STYLE:"stylePanel",REDACTION:"redactionPanel",SEARCH:"searchPanel",NOTES:"notesPanel",INDEX:"indexPanel",TABS:"tabPanel",SIGNATURE_LIST:"signatureListPanel",RUBBER_STAMP:"rubberStampPanel",PORTFOLIO:"portfolioPanel",FORM_FIELD:"formFieldPanel"},u=(i(i(i(i(i(i(i(i(i(i(o={},c.OUTLINE,{icon:"icon-panel-outlines",title:"component.outlinesPanel"}),c.SIGNATURE,{icon:"icon-tool-signature",title:"component.signaturePanel"}),c.BOOKMARKS,{icon:"ic-bookmark",title:"component.bookmarksPanel"}),c.FILE_ATTACHMENT,{icon:"ic_fileattachment_24px",title:"component.attachmentPanel"}),c.THUMBNAIL,{icon:"icon-panel-thumbnail-line",title:"component.thumbnailsPanel"}),c.LAYERS,{icon:"ic-layer",title:"component.layersPanel"}),c.TEXT_EDITING,{icon:"icon-content-edit",title:"action.contentEditMode"}),c.CHANGE_LIST,{icon:"icon-header-compare",title:"component.comparePanel"}),c.STYLE,{icon:"icon-style-panel-toggle",title:"action.style"}),c.REDACTION,{icon:"icon-redact-panel",title:"annotation.redact"}),i(i(i(i(i(o,c.SEARCH,{icon:"icon-header-search",title:"component.searchPanel"}),c.NOTES,{icon:"icon-header-chat-line",title:"component.notesPanel"}),c.PORTFOLIO,{icon:"icon-pdf-portfolio",title:"portfolio.portfolioPanelTitle"}),c.SIGNATURE_LIST,{icon:"icon-tool-signature",title:"signatureListPanel.header"}),c.RUBBER_STAMP,{icon:"icon-tool-stamp-line",title:"annotation.rubberStamp"})),s={FULL_SIZE:"full-size",HALF_SIZE:"half-size",SMALL_SIZE:"small-size"}},function(e,t,n){"use strict";var o=n(142),r=n(338);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}var a=n(170),l=n(171),c=n(255),u=n(293),s=n(181),d=n(294),p={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},f=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.init(t,n)}return Object(l.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||p,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),m=function(){function e(){Object(a.a)(this,e),this.observers={}}return Object(l.a)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(this.observers[e]){var r=[].concat(this.observers[e]);r.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function h(){var e,t,n=new Promise((function(n,o){e=n,t=o}));return n.resolve=e,n.reject=t,n}function b(e){return null==e?"":""+e}function g(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function y(e,t,n){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:o(i.shift())}}function v(e,t,n){var o=y(e,t,Object);o.obj[o.k]=n}function w(e,t){var n=y(e,t),o=n.obj,r=n.k;if(o)return o[r]}function E(e,t,n){var o=w(e,n);return void 0!==o?o:w(t,n)}function C(e,t,n){for(var o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?n&&(e[o]=t[o]):C(e[o],t[o],n):e[o]=t[o]);return e}function O(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function S(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return T[e]})):e}var x="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(a.a)(this,t),n=Object(c.a)(this,Object(u.a)(t).call(this)),x&&m.call(Object(s.a)(n)),n.data=e||{},n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(i=e.split(".")),w(this.data,i)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=t,t=(a=e.split("."))[1]),this.addNamespaces(t),v(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},l=[e,t];e.indexOf(".")>-1&&(o=n,n=t,t=(l=e.split("."))[1]),this.addNamespaces(t);var c=w(this.data,l)||{};o?C(c,n,r):c=i({},c,n),v(this.data,l,c),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(m),_={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))})),t}},P={},k=function(e){function t(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(this,t),n=Object(c.a)(this,Object(u.a)(t).call(this)),x&&m.call(Object(s.a)(n)),g(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Object(s.a)(n)),n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=f.create("translator"),n}return Object(d.a)(t,e),Object(l.a)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:r};var a=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift()),e=a.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,n,r){var a=this;if("object"!==Object(o.a)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var l=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],n),u=c.key,s=c.namespaces,d=s[s.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(f){var m=n.nsSeparator||this.options.nsSeparator;return d+m+u}return u}var h=this.resolve(e,n),b=h&&h.res,g=h&&h.usedKey||u,y=h&&h.exactUsedKey||u,v=Object.prototype.toString.apply(b),w=["[object Number]","[object Function]","[object RegExp]"],E=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,O="string"!=typeof b&&"boolean"!=typeof b&&"number"!=typeof b;if(C&&b&&O&&w.indexOf(v)<0&&("string"!=typeof E||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,b,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(l){var T="[object Array]"===v,S=T?[]:{},x=T?y:g;for(var A in b)if(Object.prototype.hasOwnProperty.call(b,A)){var _="".concat(x).concat(l).concat(A);S[A]=this.translate(_,i({},n,{joinArrays:!1,ns:s})),S[A]===_&&(S[A]=b[A])}b=S}}else if(C&&"string"==typeof E&&"[object Array]"===v)(b=b.join(E))&&(b=this.extendTranslation(b,e,n,r));else{var P=!1,k=!1,L=void 0!==n.count&&"string"!=typeof n.count,M=t.hasDefaultValue(n),j=L?this.pluralResolver.getSuffix(p,n.count):"",I=n["defaultValue".concat(j)]||n.defaultValue;!this.isValidLookup(b)&&M&&(P=!0,b=I),this.isValidLookup(b)||(k=!0,b=u);var R=M&&I!==b&&this.options.updateMissing;if(k||P||R){if(this.logger.log(R?"updateKey":"missingKey",p,d,u,R?I:b),l){var N=this.resolve(u,i({},n,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var B=0;B<F.length;B++)D.push(F[B]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var H=function(e,t,o){a.options.missingKeyHandler?a.options.missingKeyHandler(e,d,t,R?o:b,R,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,d,t,R?o:b,R,n),a.emit("missingKey",e,d,t,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?D.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){H([e],u+t,n["defaultValue".concat(t)]||I)}))})):H(D,u,I))}b=this.extendTranslation(b,e,n,h,r),k&&b===u&&this.options.appendNamespaceToMissingKey&&(b="".concat(d,":").concat(u)),k&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(b))}return b}},{key:"extendTranslation",value:function(e,t,n,o,r){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var l,c=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var u=e.match(this.interpolator.nestingRegexp);l=u&&u.length}var s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s=i({},this.options.interpolation.defaultVariables,s)),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),c){var d=e.match(this.interpolator.nestingRegexp);l<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return r&&r[0]===o[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):a.translate.apply(a,o.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,f="string"==typeof p?[p]:p;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=_.handle(f,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:o},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,o,r,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,l),u=c.key;n=u;var s=c.namespaces;a.options.fallbackNS&&(s=s.concat(a.options.fallbackNS));var d=void 0!==l.count&&"string"!=typeof l.count,p=void 0!==l.context&&"string"==typeof l.context&&""!==l.context,f=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);s.forEach((function(e){a.isValidLookup(t)||(i=e,!P["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(P["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!a.isValidLookup(t)){r=n;var i,c,s=u,f=[s];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(f,u,n,e,l);else d&&(i=a.pluralResolver.getSuffix(n,l.count)),d&&p&&f.push(s+i),p&&f.push(s+="".concat(a.options.contextSeparator).concat(l.context)),d&&f.push(s+=i);for(;c=f.pop();)a.isValidLookup(t)||(o=c,t=a.getResource(n,e,c,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}(m);function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}var M=function(){function e(t){Object(a.a)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=f.create("languageUtils")}return Object(l.a)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=L(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var o=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(o)||(t=o)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var o=n.getLanguagePartFromCode(e);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(o))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),o.forEach((function(e){r.indexOf(e)<0&&i(n.formatLanguageCode(e))})),r}}]),e}(),j=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function R(){var e={};return j.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:I[t.fc]}}))})),e}var N=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.languageUtils=t,this.options=n,this.logger=f.create("pluralResolver"),this.rules=R()}return Object(l.a)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,o=this.getRule(e);if(o){var r=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),i=o.numbers[r];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),D=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e),this.logger=f.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Object(l.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:S,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?O(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?O(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?O(t.nestingPrefix):t.nestingPrefixEscaped||O("$t("),this.nestingSuffix=t.nestingSuffix?O(t.nestingSuffix):t.nestingSuffixEscaped||O(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,l=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var s=function(e){if(e.indexOf(l.formatSeparator)<0){var r=E(t,c,e);return l.alwaysFormat?l.format(r,void 0,n):r}var i=e.split(l.formatSeparator),a=i.shift().trim(),u=i.join(l.formatSeparator).trim();return l.format(E(t,c,a),u,n,o)};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?u(l.escape(e)):u(e)}}].forEach((function(t){for(a=0;r=t.regex.exec(e);){if(void 0===(i=s(r[1].trim())))if("function"==typeof d){var n=d(e,r,o);i="string"==typeof n?n:""}else{if(p){i=r[0];continue}l.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=b(i));if(e=e.replace(r[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,o,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=i({},a);function c(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var o=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(o[1]);e=o[0],r=(r=this.interpolate(r,l)).replace(/'/g,'"');try{l=JSON.parse(r),t&&(l=i({},t,l))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete l.defaultValue,e}for(l.applyPostProcessor=!1,delete l.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],s=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),u=d,s=!0}if((o=t(c.call(this,n[1].trim(),l),l))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=b(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),s&&(o=u.reduce((function(e,t){return r.format(e,t,a.lng,a)}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();var F=function(e){function t(e,n,o){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(a.a)(this,t),r=Object(c.a)(this,Object(u.a)(t).call(this)),x&&m.call(Object(s.a)(r)),r.backend=e,r.store=n,r.services=o,r.languageUtils=o.languageUtils,r.options=i,r.logger=f.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(o,i.backend,i),r}return Object(d.a)(t,e),Object(l.a)(t,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i=[],a=[],l=[],c=[];return e.forEach((function(e){var o=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[l]=2:r.state[l]<0||(1===r.state[l]?a.indexOf(l)<0&&a.push(l):(r.state[l]=1,o=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),c.indexOf(t)<0&&c.push(t)))})),o||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:o}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,n){var o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var o,l,c,u,s,d;o=n.loaded,l=i,u=y(o,[r],Object),s=u.obj,d=u.k,s[d]=s[d]||[],c&&(s[d]=s[d].concat(l)),c||s[d].push(l),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(l,c){l&&c&&r<5?setTimeout((function(){o.read.call(o,e,t,n,r+1,2*i,a)}),i):a(l,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(function(o,a){o&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(r," failed"),o),!o&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,o,a)}))}},{key:"saveMissing",value:function(e,t,n,o,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,i({},a,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),t}(m);function B(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Object(o.a)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Object(o.a)(e[2])||"object"===Object(o.a)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function H(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function V(){}var U=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Object(a.a)(this,t),e=Object(c.a)(this,Object(u.a)(t).call(this)),x&&m.call(Object(s.a)(e)),e.options=H(n),e.services={},e.logger=f,e.modules={external:[]},o&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,o),Object(c.a)(e,Object(s.a)(e));setTimeout((function(){e.init(n,o)}),0)}return e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},B(),this.options,H(t)),this.format=this.options.interpolation.format,n||(n=V),!this.options.isClone){this.modules.logger?f.init(o(this.modules.logger),this.options):f.init(null,this.options);var r=new M(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=f,a.resourceStore=this.store,a.languageUtils=r,a.pluralResolver=new N(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new D(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new F(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))})),this.modules.languageDetector&&(a.languageDetector=o(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=o(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new k(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=h(),d=function(){var t=function(t,o){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(o),n(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V,o=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return o();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(r)a(r);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(e,t,n){var o=h();return e||(e=this.languages),t||(t=this.options.ns),n||(n=V),this.services.backendConnector.reload(e,t,(function(e){o.resolve(),n(e)})),o}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&_.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var o=h();this.emit("languageChanging",e);var r=function(e){var r="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);r&&(n.language||(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r)),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,(function(e){!function(e,r){r?(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,o.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var a;if("object"!==Object(o.a)(r)){for(var l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];a=n.options.overloadTranslationOptionHandler([t,r].concat(c))}else a=i({},r);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===o||2===o};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!this.hasResourceBundle(o,e)||(!this.services.backendConnector.backend||!(!a(o,e)||r&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=h();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),t&&t(e)})),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=h();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter((function(e){return o.indexOf(e)<0}));return r.length?(this.options.preload=o.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V,r=i({},this.options,n,{isClone:!0}),a=new t(r),l=["store","services","language"];return l.forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new k(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];a.emit.apply(a,[e].concat(n))})),a.init(r,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(m));t.a=U},function(e,t,n){"use strict";var o=n(89),r=n(52),i=n(70),a=n(278),l=n(112),c=n(95),u=n(339),s=n(166),d=n(239),p=n(422),f=n(71),m=n(189).f,h=n(158).f,b=n(104).f,g=n(533),y=n(340).trim,v=r.Number,w=v.prototype,E=r.TypeError,C=i("".slice),O=i("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:S(t)},S=function(e){var t,n,o,r,i,a,l,c,u=p(e,"number");if(d(u))throw E("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=y(u),43===(t=O(u,0))||45===t){if(88===(n=O(u,2))||120===n)return NaN}else if(48===t){switch(O(u,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+u}for(a=(i=C(u,2)).length,l=0;l<a;l++)if((c=O(i,l))<48||c>r)return NaN;return parseInt(i,o)}return+u};if(a("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var x,A=function(e){var t=arguments.length<1?0:v(T(e)),n=this;return s(w,n)&&f((function(){g(n)}))?u(Object(t),n,A):t},_=o?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),P=0;_.length>P;P++)c(v,x=_[P])&&!c(A,x)&&b(A,x,h(v,x));A.prototype=w,w.constructor=A,l(r,"Number",A,{constructor:!0})}},function(e,t,n){var o=n(52),r=n(524),i=n(525),a=n(511),l=n(159),c=function(e){if(e&&e.forEach!==a)try{l(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in r)r[u]&&c(o[u]&&o[u].prototype);c(i)},function(e,t,n){var o=n(330),r=n(509);o("toPrimitive"),r()},function(e,t,n){var o=n(95),r=n(112),i=n(680),a=n(83)("toPrimitive"),l=Date.prototype;o(l,a)||r(l,a,i)},function(e,t,n){"use strict";var o=n(58),r=n(126).filter;o({target:"Array",proto:!0,forced:!n(282)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(58),r=n(108),i=n(279);o({target:"Object",stat:!0,forced:n(71)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},function(e,t,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],c=t.base?i[0]+t.base:i[0],u=n[c]||0,s="".concat(c," ").concat(u);n[c]=u+1;var d=l(s),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:s,updater:b(p,t),references:1}),o.push(s)}return o}function u(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var s,d=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function p(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var m=null,h=0;function b(e,t){var n,o,r;if(t.singleton){var i=h++;n=m||(m=u(t)),o=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=u(t),o=f.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=l(n[o]);a[r].references--}for(var i=c(e,t),u=0;u<n.length;u++){var s=l(n[u]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}n=i}}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[n].concat(i).concat([r]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";var o=n(58),r=n(52),i=n(71),a=n(215),l=n(100),c=n(108),u=n(113),s=n(214),d=n(281),p=n(282),f=n(83),m=n(212),h=f("isConcatSpreadable"),b=r.TypeError,g=m>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=p("concat"),v=function(e){if(!l(e))return!1;var t=e[h];return void 0!==t?!!t:a(e)};o({target:"Array",proto:!0,arity:1,forced:!g||!y},{concat:function(e){var t,n,o,r,i,a=c(this),l=d(a,0),p=0;for(t=-1,o=arguments.length;t<o;t++)if(v(i=-1===t?a:arguments[t])){if(p+(r=u(i))>9007199254740991)throw b("Maximum allowed index exceeded");for(n=0;n<r;n++,p++)n in i&&s(l,p,i[n])}else{if(p>=9007199254740991)throw b("Maximum allowed index exceeded");s(l,p++,i)}return l.length=p,l}})},function(e,t,n){"use strict";n(9),n(10),n(14),n(20),n(12),n(164),n(35),n(8),n(116),n(11),n(136),n(13);var o=n(23);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=function(e){return void 0===e},a={d:"initialDoc",filepicker:"showLocalFilePicker",pdfnet:"fullAPI",user:"annotationUser",a:"enableAnnotations",azureWorkaround:"enableAzureWorkaround",admin:"isAdminUser",l:"licenseKey",pdf:"backendType",office:"backendType",legacyOffice:"backendType",p:"externalPath",did:"documentId",toolbar:"showToolbarControl"},l=new Set(["initialDoc"]),c=function(e){var t=a[e]?a[e]:e,n=Object(o.c)();if(n)return function(e,t){if(i(e)||null===e)return;if(Array.isArray(e))return JSON.stringify(e);var n="".concat(e).trim();if(!n)return n;try{return JSON.parse(n),n}catch(e){return l.has(t)?JSON.stringify(n):n}}(n.getAttribute(t),t)};t.a=window.isApryseWebViewerWebComponent?function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r(t),o=c(e);if("boolean"===n&&!i(o)){if("true"===o||"1"===o)return!0;if("false"===o||"0"===o)return!1}return o||t}:window.Core.getHashParameter},function(e,t,n){n(58)({target:"Object",stat:!0,sham:!n(89)},{create:n(167)})},function(e,t,n){var o=n(58),r=n(71),i=n(108),a=n(244),l=n(514);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!l},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){n(58)({target:"Object",stat:!0},{setPrototypeOf:n(218)})},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(27),n(21),n(46),n(77),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(64),n(11),n(172),n(136),n(31),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(15),l=n.n(a),c=n(2),u=n.n(c),s=n(306),d=n(119),p=n(51),f=n(55),m=n(4),h=n(155),b=n(78);n(318);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T=function(e){null==e||e.stopPropagation(),null==e||e.preventDefault()},S={isActive:u.a.bool,mediaQueryClassName:u.a.string,img:u.a.string,label:u.a.oneOfType([u.a.string,u.a.number,u.a.node]),title:u.a.string,color:u.a.string,dataElement:u.a.string,className:u.a.string,onClick:u.a.func,onDoubleClick:u.a.func,onMouseUp:u.a.func,isSubmitType:u.a.bool,ariaLabel:u.a.string,ariaControls:u.a.string,role:u.a.string,hideTooltipShortcut:u.a.bool,useI18String:u.a.bool,shouldPassActiveDocumentViewerKeyToOnClickHandler:u.a.bool,children:u.a.node},x=function(e){var t=E(Object(i.e)((function(t){var n;return[m.a.isElementDisabled(t,e.dataElement),null===(n=m.a.getFeatureFlags(t))||void 0===n?void 0:n.customizableUI,m.a.getCustomElementOverrides(t,e.dataElement),m.a.getActiveDocumentViewerKey(t)]}),i.c),4),n=t[0],o=t[1],a=t[2],c=void 0===a?{}:a,u=t[3],g=void 0===u?1:u,y=v(v({},e),c),O=y.disable,S=y.disabled,x=y.isActive,A=y.mediaQueryClassName,_=y.img,P=y.tabIndex,k=y.label,L=y.useI18String,M=void 0===L||L,j=y.color,I=y.dataElement,R=y.onClick,N=y.onDoubleClick,D=y.onMouseUp,F=y.className,B=y.title,H=y.style,V=y.ariaLabel,U=y.ariaLabelledby,G=y.ariaControls,W=y.ariaCurrent,z=y.ariaPressed,Z=y.ariaExpanded,Y=y.ariaSelected,q=y.role,K=y.strokeColor,$=y.fillColor,X=y.hideTooltipShortcut,J=y.iconClassName,Q=y.forceTooltipPosition,ee=y.isSubmitType,te=y.hideOnClick,ne=y.shouldPassActiveDocumentViewerKeyToOnClickHandler,oe=y.onClickAnnouncement,re=y.onKeyDownHandler,ie=E(Object(s.a)(),1)[0],ae={};if(c&&c.hidden&&c.hidden.length){var le,ce=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=C(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(c.hidden);try{for(ce.s();!(le=ce.n()).done;){var ue=le.value;ae["hide-in-".concat(ue)]=!0}}catch(e){ce.e(e)}finally{ce.f()}}var se,de=V||(B?ie(B):void 0),pe=G||"",fe=B?B.slice(B.indexOf(".")+1):void 0,me=fe?Object(f.n)(fe):void 0,he=null==_?void 0:_.trim().startsWith("data:"),be=_,ge=O||S;se=ne?function(){var e;if(Object(b.a)(oe),null===(e=Object(h.b)())||void 0===e||e(I,{type:h.a.BUTTON}),R)return R(g)}:function(e){var t;if(Object(b.a)(oe),null===(t=Object(h.b)())||void 0===t||t(I,{type:h.a.BUTTON}),R)return R(e)};var ye=_&&!he&&(!_.includes(".")||_.startsWith("<svg")),ve=!!B,we=r.a.createElement("button",{className:l()(v(v(w(w({Button:!0,active:x&&!ge,disabled:ge},A,A),F,F),ae),{},{"modular-ui":o,"icon-only":ye&&!k})),style:H,"data-element":I,onClick:ge?T:se,onDoubleClick:ge?T:N,onMouseUp:ge?T:D,onKeyDown:ge?T:re,"aria-label":de,"aria-labelledby":U,"aria-controls":pe||void 0,role:q,tabIndex:P,type:ee?"submit":"button",disabled:ge,"aria-disabled":ge,"aria-keyshortcuts":me,"aria-pressed":z,"aria-expanded":Z,"aria-selected":Y,"aria-current":W},ye&&r.a.createElement(p.a,{disabled:ge,glyph:be,color:j,fillColor:$,strokeColor:K,className:J}),be&&!ye&&r.a.createElement("img",{src:be}),k&&(M?r.a.createElement("span",null,ie(k)):r.a.createElement("span",null,k)),e.children);return n?null:ve?r.a.createElement(d.a,{content:B,hideShortcut:X||ge,forcePosition:Q,hideOnClick:te},we):we};x.propTypes=S;var A=r.a.memo(x);t.a=A},function(e,t,n){"use strict";var o=n(58),r=n(126).map;o({target:"Array",proto:!0,forced:!n(282)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.d(t,"k",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"i",(function(){return b})),n.d(t,"a",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return v})),n.d(t,"j",(function(){return w})),n.d(t,"o",(function(){return E})),n.d(t,"n",(function(){return C})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return T}));n(77),n(17),n(182);var o,r,i,a=n(117),l=n(23),c=window.isApryseWebViewerWebComponent,u=function(){var e;return window.innerWidth<a.a||c&&(null===(e=Object(l.a)())||void 0===e?void 0:e.host.clientWidth)<a.a},s=navigator.userAgent.indexOf("Edge")>-1,d=(navigator.userAgent.indexOf("Edg/"),navigator.userAgent.indexOf("Trident/7.0")>-1),p=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,f=s||d,m="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,h=window.navigator.userAgent.match(/(iPad|iPhone|iPod)/i)||m,b=!!document.documentElement.webkitRequestFullScreen,g=window.navigator.userAgent.match(/Android/i),y=h||g||window.navigator.userAgent.match(/webOS|BlackBerry|IEMobile|Opera Mini/i),v=function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/i)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||window.navigator.userAgent.match(/Android/i)||window.navigator.userAgent.match(/webOS|BlackBerry|IEMobile|Opera Mini/i)},w=navigator.appVersion.indexOf("Mac")>-1,E=navigator.appVersion.indexOf("Windows")>-1,C=(o=window.navigator.userAgent.match(/OPR/),r=window.navigator.userAgent.match(/Maxthon/),i=window.navigator.userAgent.match(/Edge/),window.navigator.userAgent.match(/Chrome\/(.*?) /),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||/^((?!chrome|android).)*$/.test(navigator.userAgent)&&h),O=window.navigator.userAgent.match(/CriOS\/(.*?) /),T=window.navigator.userAgent.match(/(FxiOS)\/(.*?) /)},function(e,t,n){"use strict";var o=n(58),r=n(277).includes,i=n(71),a=n(217);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},,function(e,t,n){var o=n(58),r=n(71),i=n(139),a=n(158).f,l=n(89),c=r((function(){a(1)}));o({target:"Object",stat:!0,forced:!l||c,sham:!l},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){var o=n(58),r=n(89),i=n(427).f;o({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!r},{defineProperties:i})},function(e,t,n){var o=n(58),r=n(89),i=n(505),a=n(139),l=n(158),c=n(214);o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,o=a(e),r=l.f,u=i(o),s={},d=0;u.length>d;)void 0!==(n=r(o,t=u[d++]))&&c(s,t,n);return s}})},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(77),n(12),n(33),n(26),n(30),n(40),n(24),n(41),n(42),n(8),n(86),n(17),n(11),n(115),n(384),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(15),c=n.n(l);n(1080);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function d(e,t,n){return t=p(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var b=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=d(this,t)).icon=r.a.createRef(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),o=t,(i=[{key:"componentDidMount",value:function(){this.updateSvg()}},{key:"componentDidUpdate",value:function(e){this.props.glyph!==e.glyph&&this.updateSvg()}},{key:"updateSvg",value:function(){if(this.isInlineSvg()){for(var e=this.icon.current;e.firstChild;)e.removeChild(e.firstChild);var t=(new DOMParser).parseFromString(this.props.glyph,"image/svg+xml").querySelector("svg");e.appendChild(t)}}},{key:"isInlineSvg",value:function(){var e=this.props.glyph;return e&&0===e.indexOf("<svg")}},{key:"render",value:function(){var e,t=this.props,o=t.className,i=void 0===o?"":o,a=t.color,l=t.glyph,u=t.fillColor,s=void 0===u?"":u,d=t.strokeColor,p=void 0===d?"":d,f=t.disabled,h=t.dataElement,b=t.ariaLabel,g=!a||"rgba(255, 255, 255, 1)"!==a&&"rgb(255, 255, 255)"!==a?void 0:"drop-shadow(0 0 .5px #333)";try{e=this.isInlineSvg()?l:n(445)("./".concat(this.props.glyph,".svg"))}catch(t){e=void 0}var y={filter:g};return f||(y.color="rgba(0, 0, 0, 0)"===a?"#808080":a,s&&(e=e.replace('fill="none"','fill="#'.concat(s,'"'))),p&&(e=e.replaceAll('fill="stroke"','fill="#'.concat(p,'"')))),b&&(e=e.replace("<svg",'<svg aria-label="'.concat(b,'"'))),r.a.createElement("div",{ref:this.icon,className:c()(m(m(m({Icon:!0},i,!0),s,!0),"disabled",f)),style:y,"data-element":h,"aria-hidden":this.props.ariaHidden,dangerouslySetInnerHTML:{__html:e}})}}])&&s(o.prototype,i),a&&s(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,i,a}(r.a.PureComponent);m(b,"propTypes",{className:a.a.string,color:a.a.string,glyph:a.a.string.isRequired,fillColor:a.a.string,strokeColor:a.a.string,disabled:a.a.bool,dataElement:a.a.string,ariaHidden:a.a.bool,ariaLabel:a.a.string}),b.defaultProps={ariaHidden:!0};var g=b;t.a=g},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(123))},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"l",(function(){return v})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return E}));n(9),n(10),n(14),n(21),n(20),n(22),n(18),n(16),n(24),n(17),n(19),n(32),n(34),n(82),n(27),n(46),n(12),n(84),n(118),n(33),n(30),n(35),n(8),n(116),n(64),n(11),n(31),n(13);var o,r=n(25);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={SIGNATURE:"signature",FREE_HAND:"freeHand",FREE_HAND_HIGHLIGHT:"freeHandHighlight",FREE_TEXT:"freeText",MARK_INSERT_TEXT:"markInsertText",MARK_REPLACE_TEXT:"markReplaceText",DATE_FREE_TEXT:"dateFreeText",DISTANCE_MEASUREMENT:"distanceMeasurement",PERIMETER_MEASUREMENT:"perimeterMeasurement",ARC_MEASUREMENT:"arcMeasurement",RECTANGULAR_AREA_MEASUREMENT:"rectangularAreaMeasurement",CLOUDY_RECTANGULAR_AREA_MEASUREMENT:"cloudyRectangularAreaMeasurement",AREA_MEASUREMENT:"areaMeasurement",ELLIPSE_MEASUREMENT:"ellipseMeasurement",COUNT_MEASUREMENT:"countMeasurement",CALLOUT:"callout",LINE:"line",ARROW:"arrow",POLYGON:"polygon",CLOUD:"cloud",HIGHLIGHT:"highlight",UNDERLINE:"underline",SQUIGGLY:"squiggly",STRIKEOUT:"strikeout",REDACTION:"redaction",RECTANGLE:"rectangle",ELLIPSE:"ellipse",POLYLINE:"polyline",STICKY_NOTE:"stickyNote",STAMP:"stamp",IMAGE:"image",EDIT:"edit",PAN:"pan",CONTENT_EDIT_TOOL:"ContentEditTool",ADD_IMAGE_CONTENT:"AddImageContentTool",ADD_PARAGRAPH_TOOL:"AddParagraphTool",TEXT_SELECT:"textSelect",MARQUEE_ZOOM_TOOL:"marqueeZoomTool",MULTI_STYLE:"MultiStyle",ERASER:"eraser",CROP_PAGE:"cropPage",FILE_ATTACHMENT:"fileattachment",SOUND:"sound",THREE_D_ANNOTATION:"threeDAnnotation",TEXT_FIELD:"textField",SIGNATURE_FORM_FIELD:"signatureFormField",CHECK_BOX_FORM_FIELD:"checkBoxFormField",RADIO_BUTTON_FORM_FIELD:"radioButtonFormField",LIST_BOX_FORM_FIELD:"listBoxFormField",COMBO_BOX_FORM_FIELD:"comboBoxFormField",PUSH_BUTTON_FORM_FIELD:"pushButtonFormField",ARC:"arc",CHANGE_VIEW:"changeView",TRACKED_CHANGE:"trackedChange"},s=(c(c(c(c(c(c(c(c(c(c(o={},u.SIGNATURE,{icon:"icon-tool-signature",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateSignature"],annotationCheck:function(e){return e instanceof window.Core.Annotations.SignatureWidgetAnnotation&&"Widget"===e.Subject}}),u.FREE_HAND,{icon:"icon-tool-pen-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateFreeHand","AnnotationCreateFreeHand2","AnnotationCreateFreeHand3","AnnotationCreateFreeHand4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeHandAnnotation}}),u.FREE_HAND_HIGHLIGHT,{icon:"icon-tool-pen-highlight",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateFreeHandHighlight","AnnotationCreateFreeHandHighlight2","AnnotationCreateFreeHandHighlight3","AnnotationCreateFreeHandHighlight4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeHandAnnotation}}),u.FREE_TEXT,{icon:"icon-tool-text-free-text",iconColor:"TextColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateFreeText","AnnotationCreateFreeText2","AnnotationCreateFreeText3","AnnotationCreateFreeText4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeText}}),u.MARK_INSERT_TEXT,{icon:"ic-insert text",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateMarkInsertText","AnnotationCreateMarkInsertText2","AnnotationCreateMarkInsertText3","AnnotationCreateMarkInsertText4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.CaretAnnotation}}),u.MARK_REPLACE_TEXT,{icon:"ic-replace text",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateMarkReplaceText","AnnotationCreateMarkReplaceText2","AnnotationCreateMarkReplaceText3","AnnotationCreateMarkReplaceText4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.CaretAnnotation}}),u.DATE_FREE_TEXT,{icon:"icon-tool-fill-and-sign-calendar",iconColor:"TextColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateDateFreeText","AnnotationCreateDateFreeText2","AnnotationCreateDateFreeText3","AnnotationCreateDateFreeText4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeText}}),u.DISTANCE_MEASUREMENT,{icon:"icon-tool-measurement-distance-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateDistanceMeasurement","AnnotationCreateDistanceMeasurement2","AnnotationCreateDistanceMeasurement3","AnnotationCreateDistanceMeasurement4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.LineAnnotation&&"LineDimension"===e.IT&&e.Measure}}),u.PERIMETER_MEASUREMENT,{icon:"icon-tool-measurement-perimeter",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreatePerimeterMeasurement","AnnotationCreatePerimeterMeasurement2","AnnotationCreatePerimeterMeasurement3","AnnotationCreatePerimeterMeasurement4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.PolylineAnnotation&&"PolyLineDimension"===e.IT&&e.Measure}}),u.ARC_MEASUREMENT,{icon:"icon-tool-measurement-arc",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateArcMeasurement","AnnotationCreateArcMeasurement2","AnnotationCreateArcMeasurement3","AnnotationCreateArcMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.ArcAnnotation&&"ArcDimension"===e.IT&&e.Measure}}),c(c(c(c(c(c(c(c(c(c(o,u.RECTANGULAR_AREA_MEASUREMENT,{icon:"ic_annotation_rectangular_area_black_24px",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateRectangularAreaMeasurement","AnnotationCreateRectangularAreaMeasurement2","AnnotationCreateRectangularAreaMeasurement3","AnnotationCreateRectangularAreaMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"PolygonDimension"===e.IT&&e.Measure&&e.isRectangularPolygon()}}),u.CLOUDY_RECTANGULAR_AREA_MEASUREMENT,{icon:"ic_annotation_cloudy_rectangular_area_black_24px",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateCloudyRectangularAreaMeasurement","AnnotationCreateCloudyRectangularAreaMeasurement2","AnnotationCreateCloudyRectangularAreaMeasurement3","AnnotationCreateCloudyRectangularAreaMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"PolygonDimension"===e.IT&&e.Measure&&e.isRectangularPolygon()}}),u.AREA_MEASUREMENT,{icon:"icon-tool-measurement-area-polygon-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateAreaMeasurement","AnnotationCreateAreaMeasurement2","AnnotationCreateAreaMeasurement3","AnnotationCreateAreaMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"PolygonDimension"===e.IT&&e.Measure}}),u.ELLIPSE_MEASUREMENT,{icon:"ic_annotation_ellipse_area_black",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateEllipseMeasurement","AnnotationCreateEllipseMeasurement2","AnnotationCreateEllipseMeasurement3","AnnotationCreateEllipseMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.EllipseAnnotation&&"EllipseDimension"===e.IT&&e.Measure}}),u.COUNT_MEASUREMENT,{icon:"ic_check_black_24px",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateCountMeasurement","AnnotationCreateCountMeasurement2","AnnotationCreateCountMeasurement3","AnnotationCreateCountMeasurement4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StickyAnnotation&&e.getCustomData("trn-is-count")}}),u.CALLOUT,{icon:"icon-tool-callout-line",iconColor:"StrokeColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateCallout","AnnotationCreateCallout2","AnnotationCreateCallout3","AnnotationCreateCallout4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeTextCallout}}),u.LINE,{icon:"icon-tool-shape-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateLine","AnnotationCreateLine2","AnnotationCreateLine3","AnnotationCreateLine4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.LineAnnotation&&"LineArrow"!==e.IT}}),u.ARROW,{icon:"icon-tool-shape-arrow",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateArrow","AnnotationCreateArrow2","AnnotationCreateArrow3","AnnotationCreateArrow4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.LineAnnotation&&"LineArrow"===e.IT}}),u.POLYGON,{icon:"icon-tool-shape-polygon",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreatePolygon","AnnotationCreatePolygon2","AnnotationCreatePolygon3","AnnotationCreatePolygon4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"cloudy"!==e.Style}}),u.CLOUD,{icon:"icon-tool-shape-cloud",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreatePolygonCloud","AnnotationCreatePolygonCloud2","AnnotationCreatePolygonCloud3","AnnotationCreatePolygonCloud4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.PolygonAnnotation&&"cloudy"===e.Style}}),c(c(c(c(c(c(c(c(c(c(o,u.HIGHLIGHT,{icon:"icon-tool-text-manipulation-highlight",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateTextHighlight","AnnotationCreateTextHighlight2","AnnotationCreateTextHighlight3","AnnotationCreateTextHighlight4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextHighlightAnnotation&&""===e.getCustomData(r.y)}}),u.UNDERLINE,{icon:"icon-tool-text-manipulation-underline",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateTextUnderline","AnnotationCreateTextUnderline2","AnnotationCreateTextUnderline3","AnnotationCreateTextUnderline4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextUnderlineAnnotation}}),u.SQUIGGLY,{icon:"icon-tool-text-manipulation-squiggly",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateTextSquiggly","AnnotationCreateTextSquiggly2","AnnotationCreateTextSquiggly3","AnnotationCreateTextSquiggly4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextSquigglyAnnotation}}),u.STRIKEOUT,{icon:"icon-tool-text-manipulation-strikethrough",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateTextStrikeout","AnnotationCreateTextStrikeout2","AnnotationCreateTextStrikeout3","AnnotationCreateTextStrikeout4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextStrikeoutAnnotation}}),u.REDACTION,{icon:"icon-tool-select-area-redaction",iconColor:"StrokeColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["AnnotationCreateRedaction","AnnotationCreateRedaction2","AnnotationCreateRedaction3","AnnotationCreateRedaction4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.RedactionAnnotation}}),u.RECTANGLE,{icon:"icon-tool-shape-rectangle",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateRectangle","AnnotationCreateRectangle2","AnnotationCreateRectangle3","AnnotationCreateRectangle4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.RectangleAnnotation}}),u.ELLIPSE,{icon:"icon-tool-shape-oval",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["AnnotationCreateEllipse","AnnotationCreateEllipse2","AnnotationCreateEllipse3","AnnotationCreateEllipse4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.EllipseAnnotation}}),u.ARC,{icon:"icon-tool-arc",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateArc","AnnotationCreateArc2","AnnotationCreateArc3","AnnotationCreateArc4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.ArcAnnotation}}),u.POLYLINE,{icon:"icon-tool-shape-polyline",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreatePolyline","AnnotationCreatePolyline2","AnnotationCreatePolyline3","AnnotationCreatePolyline4"],hasLineEndings:!0,annotationCheck:function(e){return e instanceof window.Core.Annotations.PolylineAnnotation}}),u.STICKY_NOTE,{icon:"icon-tool-comment-line",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateSticky","AnnotationCreateSticky2","AnnotationCreateSticky3","AnnotationCreateSticky4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StickyAnnotation}}),c(c(c(c(c(c(c(c(c(c(o,u.CHANGE_VIEW,{icon:"icon-tool-changeview",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateChangeViewTool","AnnotationCreateChangeViewTool2","AnnotationCreateChangeViewTool3","AnnotationCreateChangeViewTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StampAnnotation&&e.ViewState}}),u.IMAGE,{icon:"icon-tool-image-line",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationCreateRubberStamp"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StampAnnotation&&"AnnotationCreateStamp"===e.ToolName}}),u.STAMP,{icon:"icon-tool-stamp-line",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationCreateStamp"],annotationCheck:function(e){return e instanceof window.Core.Annotations.StampAnnotation}}),u.EDIT,{icon:"ic_select_black_24px",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationEdit"],annotationCheck:null}),u.PAN,{icon:"icon-header-pan",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["Pan"],annotationCheck:null}),u.CONTENT_EDIT_TOOL,{icon:"ic_edit_page_24px",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["ContentEditTool"],annotationCheck:null}),u.ADD_PARAGRAPH,{icon:"ic-paragraph",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AddParagraphTool"],annotationCheck:null}),u.ADD_IMAGE_CONTENT,{icon:"icon-tool-image-line",iconColor:null,currentPalette:null,availablePalettes:[],toolNames:["AddImageContentTool"],annotationCheck:null}),u.TEXT_SELECT,{icon:"textselect_cursor",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["TextSelect"],annotationCheck:null}),u.MARQUEE_ZOOM_TOOL,{icon:null,iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["MarqueeZoomTool"],annotationCheck:null}),c(c(c(c(c(c(c(c(c(c(o,u.MULTI_STYLE,{icon:"",iconColor:null,validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:null,styleTabs:[],toolNames:[],annotationCheck:null}),u.ERASER,{icon:"ic_annotation_eraser_black_24px",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationEraserTool"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FreeHandAnnotation}}),u.CROP_PAGE,{icon:"ic_crop_black_24px",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["CropPage"],annotationCheck:null}),u.FILE_ATTACHMENT,{icon:"ic_fileattachment_24px",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["AnnotationCreateFileAttachment"],annotationCheck:function(e){return e instanceof window.Core.Annotations.FileAttachmentAnnotation}}),u.SOUND,{icon:"ic_sound_24px",iconColor:"FillColor",validStyleTabs:["FillColor","StrokeColor"],currentStyleTab:"FillColor",styleTabs:["FillColor","StrokeColor"],toolNames:[],annotationCheck:function(e){return e instanceof window.Core.Annotations.SoundAnnotation}}),u.THREE_D_ANNOTATION,{icon:"icon-tool-model3d",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:["AnnotationCreateThreeD"],annotationCheck:function(e){return e instanceof window.Core.Annotations.Model3DAnnotation}}),u.TEXT_FIELD,{icon:"icon-form-field-text",iconColor:"TextColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"TextColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["TextFormFieldCreateTool","TextFormFieldCreateTool2","TextFormFieldCreateTool3","TextFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextWidgetAnnotation}}),u.SIGNATURE_FORM_FIELD,{icon:"icon-form-field-signature",iconColor:"StrokeColor",validStyleTabs:["StrokeColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor"],toolNames:["SignatureFormFieldCreateTool","SignatureFormFieldCreateTool2","SignatureFormFieldCreateTool3","SignatureFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.SignatureWidgetAnnotation}}),u.CHECK_BOX_FORM_FIELD,{icon:"icon-form-field-checkbox",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["CheckBoxFormFieldCreateTool","CheckBoxFormFieldCreateTool2","CheckBoxFormFieldCreateTool3","CheckBoxFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.CheckButtonWidgetAnnotation}}),u.RADIO_BUTTON_FORM_FIELD,{icon:"icon-form-field-radiobutton",iconColor:"StrokeColor",validStyleTabs:["StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["StrokeColor","FillColor"],toolNames:["RadioButtonFormFieldCreateTool","RadioButtonFormFieldCreateTool2","RadioButtonFormFieldCreateTool3","RadioButtonFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.RadioButtonWidgetAnnotation}}),c(c(c(c(o,u.LIST_BOX_FORM_FIELD,{icon:"icon-form-field-listbox",iconColor:"StrokeColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["ListBoxFormFieldCreateTool","ListBoxFormFieldCreateTool2","ListBoxFormFieldCreateTool3","ListBoxFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.ListWidgetAnnotation}}),u.COMBO_BOX_FORM_FIELD,{icon:"icon-form-field-combobox",iconColor:"StrokeColor",validStyleTabs:["TextColor","StrokeColor","FillColor"],currentStyleTab:"StrokeColor",styleTabs:["TextColor","StrokeColor","FillColor"],toolNames:["ComboBoxFormFieldCreateTool","ComboBoxFormFieldCreateTool2","ComboBoxFormFieldCreateTool3","ComboBoxFormFieldCreateTool4"],annotationCheck:function(e){return e instanceof window.Core.Annotations.ChoiceWidgetAnnotation}}),u.PUSH_BUTTON_FORM_FIELD,{icon:"icon-form-field-button",iconColor:null,validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:[],annotationCheck:function(e){return e instanceof window.Core.Annotations.PushButtonWidgetAnnotation}}),u.TRACKED_CHANGE,{icon:"ic-edit-page",iconColor:"FillColor",validStyleTabs:[],currentStyleTab:null,styleTabs:[],toolNames:[],annotationCheck:function(e){return e instanceof window.Core.Annotations.TextHighlightAnnotation&&e.getCustomData(r.y)}})),d=function(e){return Object.keys(s).find((function(t){return s[t].toolNames.includes(e)}))},p=function(e){return Object.keys(s).find((function(t){var n=s[t].annotationCheck;return null==n?void 0:n(e)}))},f=function(e){return s[p(e)].toolNames[0]},m=function(e){return s[e].toolNames},h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object.keys(s).reduce((function(e,n){return e[n]={},t.forEach((function(t){e[n][t]=s[n][t]})),e}),{})},b=function(e,t,n){var o=e.toolName,r=e.buttonImage,i=e.toolObject,a=o,l=["TextColor","StrokeColor","FillColor"].filter((function(e){var t;return null==i||null===(t=i.defaults)||void 0===t?void 0:t[e]}));s[a]={icon:r,iconColor:l[0],currentStyleTab:l[0],styleTabs:l,toolNames:[o],annotationCheck:n?function(e){return n(e)}:t?function(e){return e instanceof t}:null}},g=function(e){return s[e]||{icon:"ic_fileattachment_24px"}},y=function(){return s},v=function(e,t,n){if(void 0===s[e])return console.error("The annotation key is invalid. Please provide a valid annotation key. Valid annotation keys can be retrieved through instance.UI.AnnotationKeys.");t=a(new Set(t));var o=s[e].validStyleTabs;return t.filter((function(e){return!o.includes(e)})).length>0?console.error("Please provide new valid annotation style tabs. The valid tabs are: ".concat(s[e].validStyleTabs.join(", "))):n&&!t.includes(n)?console.error("Initial tab is not valid. Valid initial tabs are: ".concat(t.join(", "))):(s[e].styleTabs=t,s[e].currentStyleTab=n||t[0],!0)},w={SIGNATURE:"signature",FREE_HAND:"freeHand",FREE_HAND_HIGHLIGHT:"freeHandHighlight",FREE_TEXT:"freeText",DATE_FREE_TEXT:"dateFreeText",DISTANCE_MEASUREMENT:"distanceMeasurement",PERIMETER_MEASUREMENT:"perimeterMeasurement",ARC_MEASUREMENT:"arcMeasurement",RECTANGULAR_AREA_MEASUREMENT:"rectangularAreaMeasurement",CLOUDY_RECTANGULAR_AREA_MEASUREMENT:"cloudyRectangularAreaMeasurement",AREA_MEASUREMENT:"areaMeasurement",ELLIPSE_MEASUREMENT:"ellipseMeasurement",COUNT_MEASUREMENT:"countMeasurement",CALLOUT:"callout",LINE:"line",ARROW:"arrow",POLYGON:"polygon",CLOUD:"cloud",HIGHLIGHT:"highlight",UNDERLINE:"underline",SQUIGGLY:"squiggly",STRIKEOUT:"strikeout",REDACTION:"redaction",RECTANGLE:"rectangle",ELLIPSE:"ellipse",ARC:"arc",POLYLINE:"polyline",STICKYNOTE:"stickyNote",IMAGE:"image",STAMP:"stamp",EDIT:"edit",PAN:"pan",CONTENT_EDIT_TOOL:"contentEditTool",ADD_PARAGRAPH_TOOL:"addParagraphTool",TEXT_SELECT:"textSelect",MARQUEE_ZOOM_TOOL:"marqueeZoomTool",ERASER:"eraser",CROP_PAGE:"cropPage",FILE_ATTACHMENT:"fileAttachment",SOUND:"sound",THREE_D_ANNOTATION:"threeDAnnotation",TEXT_FIELD:"textField",SIGNATURE_FORM_FIELD:"signatureFormField",CHECK_BOX_FORM_FIELD:"checkBoxFormField",RADIO_BUTTON_FORM_FIELD:"radioButtonFormField",LIST_BOX_FORM_FIELD:"listBoxFormField",COMBO_BOX_FORM_FIELD:"comboBoxFormField"},E={TEXT_COLOR:"TextColor",STROKE_COLOR:"StrokeColor",FILL_COLOR:"FillColor"}},function(e,t,n){"use strict";t.a={ANNOTATION_FILTER_CHANGED:"annotationFilterChanged",DOCUMENT_MERGED:"documentMerged",FILE_DOWNLOADED:"fileDownloaded",LOAD_ERROR:"loaderror",DRAG_OUTLINE:"dragOutline",DROP_OUTLINE:"dropOutline",PANEL_RESIZED:"panelResized",THEME_CHANGED:"themeChanged",TOOLBAR_GROUP_CHANGED:"toolbarGroupChanged",SELECTED_THUMBNAIL_CHANGED:"selectedThumbnailChanged",THUMBNAIL_DRAGGED:"thumbnailDragged",THUMBNAIL_DROPPED:"thumbnailDropped",USER_BOOKMARKS_CHANGED:"userBookmarksChanged",OUTLINE_BOOKMARKS_CHANGED:"outlineBookmarksChanged",VIEWER_LOADED:"viewerLoaded",VISIBILITY_CHANGED:"visibilityChanged",FULLSCREEN_MODE_TOGGLED:"fullscreenModeToggled",BEFORE_TAB_CHANGED:"beforeTabChanged",AFTER_TAB_CHANGED:"afterTabChanged",TAB_DELETED:"tabDeleted",BEFORE_TAB_DELETED:"beforeTabDeleted",TAB_ADDED:"tabAdded",TAB_MOVED:"tabMoved",LANGUAGE_CHANGED:"languageChanged",MULTI_VIEWER_READY:"multiViewerReady",COMPARE_ANNOTATIONS_LOADED:"compareAnnotationsLoaded",TAB_MANAGER_READY:"onTabManagerReady",MODULAR_UI_IMPORTED:"modularUIImported",TOOLTIP_OPENED:"tooltipOpened"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"e",(function(){return j})),n.d(t,"m",(function(){return R})),n.d(t,"j",(function(){return N})),n.d(t,"c",(function(){return B})),n.d(t,"n",(function(){return V})),n.d(t,"b",(function(){return G})),n.d(t,"f",(function(){return W})),n.d(t,"d",(function(){return Y})),n.d(t,"h",(function(){return ee})),n.d(t,"k",(function(){return ne})),n.d(t,"l",(function(){return oe})),n.d(t,"i",(function(){return re}));n(9),n(10),n(14),n(21),n(22),n(18),n(49),n(24),n(48),n(50),n(19),n(11),n(13),n(32),n(34),n(82),n(27),n(46),n(20),n(12),n(84),n(44),n(118),n(94),n(33),n(16),n(30),n(59),n(40),n(173),n(483),n(35),n(8),n(17),n(64),n(115),n(31);var o,r,i,a=n(144),l=n(1),c=n(29),u=n(45),s=n(295),d=n(548),p=n(98),f=n(79),m=n(169),h=n(299),b=n(23),g=function(){var e,t,n=l.a.getAnnotationsList().filter((function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation})).some((function(e){var t;return null===(t=e.getEditor())||void 0===t?void 0:t.hasFocus()})),o=Object(b.a)().activeElement;return o&&(o instanceof window.HTMLInputElement||o instanceof window.HTMLTextAreaElement||o.className.includes("ql-editor")||n||"input"===(null==o||null===(e=o.tagName)||void 0===e?void 0:e.toLowerCase())&&"text"===(null==o?void 0:o.getAttribute("type"))||"textarea"===(null==o||null===(t=o.tagName)||void 0===t?void 0:t.toLowerCase()))},y=n(143),v=n(145),w=n(3),E=n(4),C=n(5),O=n(132),T=n(7);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function L(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M={DEFAULT:"viewer",SPREADSHEET:"spreadsheet"},j={ROTATE_CLOCKWISE:"rotateClockwise",ROTATE_COUNTER_CLOCKWISE:"rotateCounterClockwise",NUMPAD_ROTATE_CLOCKWISE:"numpadRotateClockwise",NUMPAD_ROTATE_COUNTER_CLOCKWISE:"numpadRotateCounterClockwise",COPY:"copy",PASTE:"paste",CUT:"cut",UNDO:"undo",REDO:"redo",OPEN_FILE:"openFile",SEARCH:"search",ZOOM_IN:"zoomIn",ZOOM_OUT:"zoomOut",NUMPAD_ZOOM_IN:"numpadZoomIn",NUMPAD_ZOOM_OUT:"numpadZoomOut",SET_HEADER_FOCUS:"setHeaderFocus",FIT_SCREEN_WIDTH:"fitScreenWidth",PRINT:"print",BOOKMARK:"bookmark",PREVIOUS_PAGE:"previousPage",NEXT_PAGE:"nextPage",UP:"up",DOWN:"down",SWITCH_PAN:"switchPan",SELECT:"select",PAN:"pan",ARROW:"arrow",CALLOUT:"callout",ERASER:"eraser",FREEHAND:"freehand",IMAGE:"image",LINE:"line",STICKY_NOTE:"stickyNote",ELLIPSE:"ellipse",RECTANGLE:"rectangle",RUBBER_STAMP:"rubberStamp",FREETEXT:"freetext",SIGNATURE:"signature",SQUIGGLY:"squiggly",HIGHLIGHT:"highlight",STRIKEOUT:"strikeout",UNDERLINE:"underline",HOME:"home",END:"end",CLOSE:"close",SELECT_ALL:"selectAll",MOVE_TO_EDGE_UP:"moveToEdgeUp",MOVE_TO_EDGE_DOWN:"moveToEdgeDown",MOVE_TO_EDGE_LEFT:"moveToEdgeLeft",MOVE_TO_EDGE_RIGHT:"moveToEdgeRight",ADJUST_SELECTION_UP:"adjustSelectionUp",ADJUST_SELECTION_DOWN:"adjustSelectionDown",ADJUST_SELECTION_LEFT:"adjustSelectionLeft",ADJUST_SELECTION_RIGHT:"adjustSelectionRight",LEFT:"left",RIGHT:"right",ENTER:"enter",TAB:"tab",DELETE:"delete"},I=[j.ROTATE_CLOCKWISE,j.ROTATE_COUNTER_CLOCKWISE,j.COPY,j.OPEN_FILE,j.SEARCH,j.ZOOM_IN,j.ZOOM_OUT,j.SET_HEADER_FOCUS,j.FIT_SCREEN_WIDTH,j.PRINT,j.BOOKMARK,j.PREVIOUS_PAGE,j.NEXT_PAGE,j.UP,j.DOWN,j.SWITCH_PAN,j.SELECT,j.PAN,j.CLOSE,j.NUMPAD_ROTATE_CLOCKWISE,j.NUMPAD_ROTATE_COUNTER_CLOCKWISE,j.NUMPAD_ZOOM_IN,j.NUMPAD_ZOOM_OUT,j.HOME,j.END],R=function(e){return I=e},N=function(){return I},D=[[j.ROTATE_CLOCKWISE,"option.settings.rotateDocumentClockwise"],[j.ROTATE_COUNTER_CLOCKWISE,"option.settings.rotateDocumentCounterclockwise"],[j.COPY,"option.settings.copyText"],[j.PASTE,"option.settings.pasteText"],[j.UNDO,"option.settings.undoChange"],[j.REDO,"option.settings.redoChange"],[j.OPEN_FILE,"option.settings.openFile"],[j.SEARCH,"option.settings.openSearch"],[j.ZOOM_IN,"option.settings.zoomIn"],[j.ZOOM_OUT,"option.settings.zoomOut"],[j.SET_HEADER_FOCUS,"option.settings.setHeaderFocus"],[j.FIT_SCREEN_WIDTH,"option.settings.fitScreenWidth"],[j.PRINT,"option.settings.print"],[j.BOOKMARK,"option.settings.bookmarkOpenPanel"],[j.PREVIOUS_PAGE,"option.settings.goToPreviousPage"],[j.NEXT_PAGE,"option.settings.goToNextPage"],[j.UP,"option.settings.goToPreviousPageArrowUp"],[j.DOWN,"option.settings.goToNextPageArrowDown"],[j.SWITCH_PAN,"option.settings.holdSwitchPan"],[j.SELECT,"option.settings.selectAnnotationEdit"],[j.PAN,"option.settings.selectPan"],[j.ARROW,"option.settings.selectCreateArrowTool"],[j.CALLOUT,"option.settings.selectCreateCalloutTool"],[j.ERASER,"option.settings.selectEraserTool"],[j.FREEHAND,"option.settings.selectCreateFreeHandTool"],[j.IMAGE,"option.settings.selectCreateStampTool"],[j.LINE,"option.settings.selectCreateLineTool"],[j.STICKY_NOTE,"option.settings.selectCreateStickyTool"],[j.ELLIPSE,"option.settings.selectCreateEllipseTool"],[j.RECTANGLE,"option.settings.selectCreateRectangleTool"],[j.RUBBER_STAMP,"option.settings.selectCreateRubberStampTool"],[j.FREETEXT,"option.settings.selectCreateFreeTextTool"],[j.SIGNATURE,"option.settings.openSignatureModal"],[j.SQUIGGLY,"option.settings.selectCreateTextSquigglyTool"],[j.HIGHLIGHT,"option.settings.selectCreateTextHighlightTool"],[j.STRIKEOUT,"option.settings.selectCreateTextStrikeoutTool"],[j.UNDERLINE,"option.settings.selectCreateTextUnderlineTool"],[j.CLOSE,"option.settings.close"]],F=[[j.COPY,"option.settings.spreadsheetEditor.copyText"],[j.CUT,"option.settings.spreadsheetEditor.cutText"],[j.PASTE,"option.settings.spreadsheetEditor.pasteText"],[j.UNDO,"option.settings.spreadsheetEditor.undoChange"],[j.REDO,"option.settings.spreadsheetEditor.redoChange"],[j.SELECT_ALL,"option.settings.spreadsheetEditor.selectAll"],[j.MOVE_TO_EDGE_UP,"option.settings.spreadsheetEditor.moveToEdgeUp"],[j.MOVE_TO_EDGE_DOWN,"option.settings.spreadsheetEditor.moveToEdgeDown"],[j.MOVE_TO_EDGE_LEFT,"option.settings.spreadsheetEditor.moveToEdgeLeft"],[j.MOVE_TO_EDGE_RIGHT,"option.settings.spreadsheetEditor.moveToEdgeRight"],[j.ADJUST_SELECTION_UP,"option.settings.spreadsheetEditor.adjustSelectionUp"],[j.ADJUST_SELECTION_DOWN,"option.settings.spreadsheetEditor.adjustSelectionDown"],[j.ADJUST_SELECTION_LEFT,"option.settings.spreadsheetEditor.adjustSelectionLeft"],[j.ADJUST_SELECTION_RIGHT,"option.settings.spreadsheetEditor.adjustSelectionRight"],[j.UP,"option.settings.spreadsheetEditor.up"],[j.DOWN,"option.settings.spreadsheetEditor.down"],[j.LEFT,"option.settings.spreadsheetEditor.left"],[j.RIGHT,"option.settings.spreadsheetEditor.right"],[j.ENTER,"option.settings.spreadsheetEditor.enter"],[j.TAB,"option.settings.spreadsheetEditor.tab"],[j.DELETE,"option.settings.spreadsheetEditor.delete"]],B=L(L({},M.DEFAULT,D),M.SPREADSHEET,F),H=(L(L(L(L(L(L(L(L(L(L(o={},j.ROTATE_CLOCKWISE,"Control+Shift+="),j.ROTATE_COUNTER_CLOCKWISE,"Control+Shift+-"),j.NUMPAD_ROTATE_CLOCKWISE,"Control+Shift+Num_Add"),j.NUMPAD_ROTATE_COUNTER_CLOCKWISE,"Control+Shift+Num_Subract"),j.COPY,"Control+C"),j.UNDO,"Control+Z"),j.REDO,"Control+Shift+Z"),j.ZOOM_IN,"Control+="),j.ZOOM_OUT,"Control+-"),j.NUMPAD_ZOOM_IN,"Control+Num_Add"),L(L(L(L(L(L(L(L(L(L(o,j.NUMPAD_ZOOM_OUT,"Control+Num_Subract"),j.SET_HEADER_FOCUS,"Control+Alt+Shift+M"),j.SELECT,"Escape"),j.PAN,"P"),j.ARROW,"A"),j.CALLOUT,"C"),j.ERASER,"E"),j.FREEHAND,"F"),j.IMAGE,"I"),j.LINE,"L"),L(L(L(L(L(L(L(L(L(L(o,j.STICKY_NOTE,"N"),j.ELLIPSE,"O"),j.RECTANGLE,"R"),j.FREETEXT,"T"),j.SIGNATURE,"S"),j.SQUIGGLY,"G"),j.HIGHLIGHT,"H"),j.STRIKEOUT,"K"),j.UNDERLINE,"U"),"delete","Delete"),L(L(L(L(L(L(L(o,"richText.bold","Control+B"),"richText.italic","Control+I"),"richText.underline","Control+U"),"richText.strikeout","Control+K"),j.HOME,"Home"),j.END,"End"),j.CLOSE,"X"));function V(e){var t=H[e];if(t)return u.j&&(t=t.replace("Control","Meta")),t}var U=function(){},G={CTRL_SHIFT_EQUAL:"ctrl+shift+=",COMMAND_SHIFT_EQUAL:"command+shift+=",CTRL_SHIFT_MINUS:"ctrl+shift+-",COMMAND_SHIFT_MINUS:"command+shift+-",CTRL_SHIFT_NUM_ADD:"ctrl+shift+num_add",COMMAND_SHIFT_NUM_ADD:"command+shift+num_add",CTRL_SHIFT_NUM_SUBTRACT:"ctrl+shift+num_subtract",COMMAND_SHIFT_NUM_SUBTRACT:"command+shift+num_subtract",CTRL_ALT_SHIFT_M:"ctrl+alt+shift+m",COMMAND_ALT_SHIFT_M:"command+alt+shift+m",CTRL_C:"ctrl+c",COMMAND_C:"command+c",CTRL_X:"ctrl+x",COMMAND_X:"command+x",CTRL_V:"ctrl+v",COMMAND_V:"command+v",CTRL_Z:"ctrl+z",COMMAND_Z:"command+z",CTRL_Y:"ctrl+y",COMMAND_SHIFT_Z:"command+shift+z",CTRL_O:"ctrl+o",COMMAND_O:"command+o",CTRL_F:"ctrl+f",COMMAND_F:"command+f",CTRL_EQUAL:"ctrl+=",COMMAND_EQUAL:"command+=",CTRL_MINUS:"ctrl+-",COMMAND_MINUS:"command+-",CTRL_NUM_ADD:"ctrl+num_add",COMMAND_NUM_ADD:"command+num_add",CTRL_NUM_SUBTRACT:"ctrl+num_subtract",COMMAND_NUM_SUBTRACT:"command+num_subtract",CTRL_UP:"ctrl+up",COMMAND_UP:"command+up",CTRL_DOWN:"ctrl+down",COMMAND_DOWN:"command+down",CTRL_LEFT:"ctrl+left",COMMAND_LEFT:"command+left",CTRL_RIGHT:"ctrl+right",COMMAND_RIGHT:"command+right",CTRL_A:"ctrl+a",COMMAND_A:"command+a",SHIFT_UP:"shift+up",SHIFT_DOWN:"shift+down",SHIFT_LEFT:"shift+left",SHIFT_RIGHT:"shift+right",CTRL_0:"ctrl+0",COMMAND_0:"command+0",CTRL_P:"ctrl+p",COMMAND_P:"command+p",CTRL_B:"ctrl+b",COMMAND_B:"command+b",ENTER:"enter",PAGE_UP:"pageup",PAGE_DOWN:"pagedown",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",TAB:"tab",SPACE:"space",ESCAPE:"escape",HOME:"home",END:"end",DELETE:"delete",P:"p",A:"a",C:"c",E:"e",F:"f",I:"i",L:"l",N:"n",O:"o",R:"r",Q:"q",T:"t",S:"s",G:"g",H:"h",K:"k",U:"u",X:"x"},W=(L(L(L(L(L(L(L(L(L(L(r={},j.COPY,z(G.CTRL_C,G.COMMAND_C)),j.PASTE,z(G.CTRL_V,G.COMMAND_V)),j.CUT,z(G.CTRL_X,G.COMMAND_X)),j.UNDO,z(G.CTRL_Z,G.COMMAND_Z)),j.REDO,G.CTRL_Y),j.SELECT_ALL,z(G.CTRL_A,G.COMMAND_A)),j.MOVE_TO_EDGE_UP,z(G.CTRL_UP,G.COMMAND_UP)),j.MOVE_TO_EDGE_DOWN,z(G.CTRL_DOWN,G.COMMAND_DOWN)),j.MOVE_TO_EDGE_LEFT,z(G.CTRL_LEFT,G.COMMAND_LEFT)),j.MOVE_TO_EDGE_RIGHT,z(G.CTRL_RIGHT,G.COMMAND_RIGHT)),L(L(L(L(L(L(L(L(L(L(r,j.ADJUST_SELECTION_UP,G.SHIFT_UP),j.ADJUST_SELECTION_DOWN,G.SHIFT_DOWN),j.ADJUST_SELECTION_LEFT,G.SHIFT_LEFT),j.ADJUST_SELECTION_RIGHT,G.SHIFT_RIGHT),j.UP,G.UP),j.DOWN,G.DOWN),j.LEFT,G.LEFT),j.RIGHT,G.RIGHT),j.ENTER,G.ENTER),j.TAB,G.TAB),L(r,j.DELETE,G.DELETE));function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join(", ")}function Z(e){return e.split(", ")}var Y=(L(L(L(L(L(L(L(L(L(L(i={},j.ROTATE_CLOCKWISE,z(G.CTRL_SHIFT_EQUAL,G.COMMAND_SHIFT_EQUAL)),j.ROTATE_COUNTER_CLOCKWISE,z(G.CTRL_SHIFT_MINUS,G.COMMAND_SHIFT_MINUS)),j.NUMPAD_ROTATE_CLOCKWISE,z(G.CTRL_SHIFT_NUM_ADD,G.COMMAND_SHIFT_NUM_ADD)),j.NUMPAD_ROTATE_COUNTER_CLOCKWISE,z(G.CTRL_SHIFT_NUM_SUBTRACT,G.COMMAND_SHIFT_NUM_SUBTRACT)),j.COPY,z(G.CTRL_C,G.COMMAND_C)),j.PASTE,z(G.CTRL_V,G.COMMAND_V)),j.UNDO,z(G.CTRL_Z,G.COMMAND_Z)),j.REDO,z(G.CTRL_Y,G.COMMAND_SHIFT_Z)),j.OPEN_FILE,z(G.CTRL_O,G.COMMAND_O)),j.SEARCH,z(G.CTRL_F,G.COMMAND_F)),L(L(L(L(L(L(L(L(L(L(i,j.ZOOM_IN,z(G.CTRL_EQUAL,G.COMMAND_EQUAL)),j.ZOOM_OUT,z(G.CTRL_MINUS,G.COMMAND_MINUS)),j.NUMPAD_ZOOM_IN,z(G.CTRL_NUM_ADD,G.COMMAND_NUM_ADD)),j.NUMPAD_ZOOM_OUT,z(G.CTRL_NUM_SUBTRACT,G.COMMAND_NUM_SUBTRACT)),j.SET_HEADER_FOCUS,z(G.CTRL_ALT_SHIFT_M,G.COMMAND_ALT_SHIFT_M)),j.FIT_SCREEN_WIDTH,z(G.CTRL_0,G.COMMAND_0)),j.PRINT,z(G.CTRL_P,G.COMMAND_P)),j.BOOKMARK,z(G.CTRL_B,G.COMMAND_B)),j.PREVIOUS_PAGE,G.PAGE_UP),j.NEXT_PAGE,G.PAGE_DOWN),L(L(L(L(L(L(L(L(L(L(i,j.UP,G.UP),j.DOWN,G.DOWN),j.SWITCH_PAN,G.SPACE),j.SELECT,G.ESCAPE),j.PAN,G.P),j.ARROW,G.A),j.CALLOUT,G.C),j.ERASER,G.E),j.FREEHAND,G.F),j.IMAGE,G.I),L(L(L(L(L(L(L(L(L(L(i,j.LINE,G.L),j.STICKY_NOTE,G.N),j.ELLIPSE,G.O),j.RECTANGLE,G.R),j.RUBBER_STAMP,G.Q),j.FREETEXT,G.T),j.SIGNATURE,G.S),j.SQUIGGLY,G.G),j.HIGHLIGHT,G.H),j.STRIKEOUT,G.K),L(L(L(L(i,j.UNDERLINE,G.U),j.HOME,G.HOME),j.END,G.END),j.CLOSE,G.X)),q={AnnotationEdit:G.ESCAPE,Pan:G.P,AnnotationCreateArrow:G.A,AnnotationCreateCallout:G.C,AnnotationEraserTool:G.E,AnnotationCreateFreeHand:G.F,AnnotationCreateStamp:G.I,AnnotationCreateLine:G.L,AnnotationCreateSticky:G.N,AnnotationCreateEllipse:G.O,AnnotationCreateRectangle:G.R,AnnotationCreateFreeText:G.T,AnnotationCreateSignature:G.S,AnnotationCreateTextSquiggly:G.G,AnnotationCreateTextHighlight:G.H,AnnotationCreateTextStrikeout:G.K,AnnotationCreateTextUnderline:G.U,AnnotationCreateRubberStamp:G.Q};var K,$,X=(K=Object.fromEntries(Object.entries(q).map((function(e){var t=_(e,2),n=t[0];return[t[1],n]}))),Object.entries(Y).reduce((function(e,t){var n=_(t,2),o=n[0],r=n[1];return K[r]&&(e[o]=K[r]),e}),{})),J={},Q={},ee="viewer",te={initialize:function(e){var t=this;a.a.filter=function(){return!0},this.store=e,this.keyHandlerMap=this.createKeyHandlerMap(),this.previousKeyHandlerMap=this.keyHandlerMap,this.prevToolName=null;var n=this.getShortcutKeyMap();Object.keys(n).forEach((function(e){t.on(n[e],t.keyHandlerMap[Y[e]])})),this.didInitializeAllKeys=!0,a.a.setScope(ee),this.formBuilderDisabledKeys={}},on:function(e,t){var n=this;!!l.a.getToolModeMap()[e]&&(e=q[e]),e&&"string"==typeof e&&(e=e.toLocaleLowerCase());function o(e,t){var n=t.keyup,o=void 0===n?U:n,r=t.keydown,i=void 0===r?t:r;Object(a.a)(e,{keyup:!0,scope:ee},(function(e){var t,n="Escape"===e.key||e.key===Y[j.CLOSE];((null===(t=e.currentTarget.activeElement)||void 0===t?void 0:t.shadowRoot)===Object(b.a)()||!window.isApryseWebViewerWebComponent||n)&&("keyup"===e.type&&o(e),"keydown"===e.type&&i(e))}))}if(t||(t=function(e){var t;if(null==e?void 0:e.includes("+")){var o=Object.keys(n.keyHandlerMap).find((function(t){return null==t?void 0:t.includes(e)}));o&&(t=n.keyHandlerMap[o])}else t=n.keyHandlerMap[e];return t}(e)),e&&t||this.didInitializeAllKeys||(this.keyHandlerMap=this.createKeyHandlerMap(),this.prevToolName=null,Object.keys(this.keyHandlerMap).forEach((function(e){J[e]||o(e,n.keyHandlerMap[e])})),this.didInitializeAllKeys=!0),e)J[e.toLocaleLowerCase()]=!0;else for(var r in G)J[G[r]]=!0;e&&t&&o(e,t)},off:function(e,t){if(Q=A({},J),!!!l.a.getToolModeMap()[e]||(e=q[e])){if(e)J[e.toLocaleLowerCase()]=!1;else{for(var n in G)J[G[n]]=!1;this.didInitializeAllKeys=!1}a.a.unbind(e,t)}},isActive:function(e){var t,n=H[e];return!n||(t=u.j?n.replace("Control","command").toLocaleLowerCase():n.replace("Control","ctrl").toLocaleLowerCase(),J[t])},createKeyHandlerMap:function(){var e,t=this,n=this.store,o=n.dispatch,r=n.getState,i=window.Core.Tools.ToolNames;return L(L(L(L(L(L(L(L(L(L(e={},Y[j.ROTATE_CLOCKWISE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),l.a.rotateClockwise(t)})),Y[j.ROTATE_COUNTER_CLOCKWISE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),l.a.rotateCounterClockwise(t)})),Y[j.NUMPAD_ROTATE_CLOCKWISE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),l.a.rotateClockwise(t)})),Y[j.NUMPAD_ROTATE_COUNTER_CLOCKWISE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),l.a.rotateCounterClockwise(t)})),Y[j.COPY],(function(){var e=E.a.getActiveDocumentViewerKey(r());l.a.getSelectedText(e)?(Object(d.a)(e),o(w.a.closeElement("textPopup"))):l.a.getSelectedAnnotations(e).length&&l.a.updateCopiedAnnotations(e)})),Y[j.PASTE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());g()||(e.preventDefault(),l.a.pasteCopiedAnnotations(t))})),Y[j.UNDO],(function(e){var t=E.a.getActiveDocumentViewerKey(r());g()||(e.preventDefault(),l.a.undo(t))})),Y[j.REDO],(function(e){var t=E.a.getActiveDocumentViewerKey(r());g()||(e.preventDefault(),l.a.redo(t))})),Y[j.OPEN_FILE],(function(e){e.preventDefault(),Object(s.a)()})),Y[j.SEARCH],(function(e){e.preventDefault(),E.a.isElementOpen(r(),"notesPanel")&&o(w.a.closeElement("notesPanel")),E.a.isElementOpen(r(),"redactionPanel")&&o(w.a.closeElement("redactionPanel")),E.a.isElementOpen(r(),"textEditingPanel")&&o(w.a.closeElement("textEditingPanel")),E.a.isElementOpen(r(),"wv3dPropertiesPanel")&&o(w.a.closeElement("wv3dPropertiesPanel")),o(w.a.toggleElement("searchPanel"))})),L(L(L(L(L(L(L(L(L(L(e,Y[j.ZOOM_IN],(function(e){e.preventDefault();var t=r(),n=E.a.getActiveDocumentViewerKey(t),o=E.a.isMultiViewerMode(t);Object(f.d)(o,n)})),Y[j.ZOOM_OUT],(function(e){e.preventDefault();var t=r(),n=E.a.getActiveDocumentViewerKey(t),o=E.a.isMultiViewerMode(t);Object(f.e)(o,n)})),Y[j.NUMPAD_ZOOM_IN],(function(e){e.preventDefault();var t=r(),n=E.a.getActiveDocumentViewerKey(t),o=E.a.isMultiViewerMode(t);Object(f.d)(o,n)})),Y[j.NUMPAD_ZOOM_OUT],(function(e){e.preventDefault();var t=r(),n=E.a.getActiveDocumentViewerKey(t),o=E.a.isMultiViewerMode(t);Object(f.e)(o,n)})),Y[j.SET_HEADER_FOCUS],(function(e){var t,n;e.preventDefault();var o=r(),i=null===(t=E.a.getFeatureFlags(o))||void 0===t?void 0:t.customizableUI,a=E.a.getActiveHeaders(o),l=i?null===(n=a[0])||void 0===n?void 0:n.dataElement:"header",c=Object(b.a)().querySelector('[data-element="'.concat(l,'"]'));null==c||c.focus()})),Y[j.FIT_SCREEN_WIDTH],(function(e){e.preventDefault();var t=E.a.getActiveDocumentViewerKey(r());u.k?l.a.fitToWidth(t):l.a.fitToPage(t)})),Y[j.PRINT],(function(e){e.preventDefault(),Object(m.a)(o,E.a.isEmbedPrintSupported(r()),E.a.getSortStrategy(r()),E.a.getColorMap(r()))})),Y[j.BOOKMARK],(function(e){if(e.preventDefault(),!E.a.isElementDisabled(r(),C.a.BOOKMARK_PANEL)){o(w.a.openElement(C.a.LEFT_PANEL)),o(w.a.setActiveLeftPanel(C.a.BOOKMARK_PANEL));var t=l.a.getUserBookmarks(),n=l.a.getCurrentPage()-1;t[n]||l.a.addUserBookmark(n,c.a.t("message.untitled"))}})),Y[j.PREVIOUS_PAGE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),Object(v.a)(l.a.getCurrentPage()-Object(y.a)(),t)})),Y[j.NEXT_PAGE],(function(e){var t=E.a.getActiveDocumentViewerKey(r());e.preventDefault(),Object(v.a)(l.a.getCurrentPage()+Object(y.a)(),t)})),L(L(L(L(L(L(L(L(L(L(e,Y[j.UP],(function(){var e=E.a.getActiveDocumentViewerKey(r());if(!g()&&!l.a.isContinuousDisplayMode(e)){var t=l.a.getScrollViewElement(e),n=t.scrollHeight,o=t.clientHeight;if(0===t.scrollTop){var i=l.a.getCurrentPage(e);Object(v.a)(i-Object(y.a)(),e),i>1&&(t.scrollTop=n-o)}}})),Y[j.DOWN],(function(){var e=E.a.getActiveDocumentViewerKey(r());if(!g()&&!l.a.isContinuousDisplayMode(e)){var t=l.a.getScrollViewElement(e),n=t.scrollTop,o=t.clientHeight,i=t.scrollHeight;Math.abs(n+o-i)<=1&&Object(v.a)(l.a.getCurrentPage(e)+Object(y.a)())}})),Y[j.SWITCH_PAN],{keyup:this.createToolHotkeyHandler((function(e){e.preventDefault(),Object(p.a)(n,t.prevToolName),t.prevToolName=null})),keydown:this.createToolHotkeyHandler((function(e){e.preventDefault(),"Pan"!==l.a.getToolMode().name&&(t.prevToolName=l.a.getToolMode().name,Object(p.a)(n,"Pan"))}))}),Y[j.SELECT],(function(e){if(e.preventDefault(),!O.a.getStack().length){Object(p.a)(n,"AnnotationEdit","");var t=E.a.getIsPanelInFlyout(r(),T.j.RUBBER_STAMP_PANEL),i=E.a.getIsPanelInFlyout(r(),T.j.SIGNATURE_LIST_PANEL);o(w.a.closeElements([C.a.ANNOTATION_POPUP,C.a.TEXT_POPUP,C.a.CONTEXT_MENU_POPUP,"toolStylePopup",C.a.ANNOTATION_STYLE_POPUP,C.a.SIGNATURE_MODAL,"customStampModal",C.a.PRINT_MODAL,"rubberStampOverlay",C.a.FILTER_MODAL,C.a.SIGNATURE_LIST_PANEL,C.a.RUBBER_STAMP_PANEL,null==t?void 0:t.dataElement,null==i?void 0:i.dataElement]))}})),Y[j.PAN],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.PAN)}))),Y[j.ARROW],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.ARROW)}))),Y[j.CALLOUT],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.CALLOUT)}))),Y[j.ERASER],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.ERASER)}))),Y[j.FREEHAND],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.FREEHAND)}))),Y[j.IMAGE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.STAMP)}))),L(L(L(L(L(L(L(L(L(L(e,Y[j.LINE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.LINE)}))),Y[j.STICKY_NOTE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.STICKY)}))),Y[j.ELLIPSE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.ELLIPSE)}))),Y[j.RECTANGLE],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.RECTANGLE)}))),Y[j.RUBBER_STAMP],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.RUBBER_STAMP)}))),Y[j.FREETEXT],this.createToolHotkeyHandler((function(){Object(p.a)(n,i.FREETEXT)}))),Y[j.SIGNATURE],this.createToolHotkeyHandler((function(){if(r().featureFlags.customizableUI)Object(p.a)(n,i.SIGNATURE);else{o(w.a.setToolbarGroup("toolbarGroup-FillAndSign",!1));var e=Object(b.a)().querySelector('[data-element="signatureToolGroupButton"] .Button');null==e||e.click();var t=Object(b.a)().querySelector(".signature-row-content");null==t||t.click()}}))),Y[j.SQUIGGLY],this.createToolHotkeyHandler((function(){l.a.getSelectedText()?Object(h.a)(o,window.Core.Annotations.TextSquigglyAnnotation):Object(p.a)(n,"AnnotationCreateTextSquiggly")}))),Y[j.HIGHLIGHT],this.createToolHotkeyHandler((function(){l.a.getSelectedText()?Object(h.a)(o,window.Core.Annotations.TextHighlightAnnotation):Object(p.a)(n,"AnnotationCreateTextHighlight")}))),Y[j.STRIKEOUT],this.createToolHotkeyHandler((function(){l.a.getSelectedText()?Object(h.a)(o,window.Core.Annotations.TextStrikeoutAnnotation):Object(p.a)(n,"AnnotationCreateTextStrikeout")}))),L(L(L(L(e,Y[j.UNDERLINE],this.createToolHotkeyHandler((function(){l.a.getSelectedText()?Object(h.a)(o,window.Core.Annotations.TextUnderlineAnnotation):Object(p.a)(n,"AnnotationCreateTextUnderline")}))),Y[j.HOME],(function(){if(!g()&&!l.a.isContinuousDisplayMode(e)){var e=E.a.getActiveDocumentViewerKey(r());Object(v.a)(1,e)}})),Y[j.END],this.createToolHotkeyHandler((function(){if(!g()&&!l.a.isContinuousDisplayMode(e)){var e=E.a.getActiveDocumentViewerKey(r()),t=E.a.getTotalPages(r());Object(v.a)(t,e)}}))),Y[j.CLOSE],(function(){$&&($(),$=null)}))},createToolHotkeyHandler:function(e){var t=this.store.getState;return function(){var n=E.a.getOpenElements(t()),o=l.a.getToolMode().name,r=o===window.Core.Tools.ToolNames.SIGNATURE&&n.signatureModal;g()||r||e.apply(void 0,arguments)}},getShortcutKeyMap:function(){var e=this.store.getState;return E.a.getShortcutKeyMap(e())},setShortcutKey:function(e,t){var n=this.store.dispatch,o=A({},this.getShortcutKeyMap());this.off(o[e]),l.a.getAnnotationManager().isReadOnlyModeEnabled()||this.on(t,this.keyHandlerMap[Y[e]]),o[e]=t,n(w.a.setShortcutKeyMap(o))},hasConflict:function(e,t){var n,o=this.getShortcutKeyMap(),r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=P(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(Object.keys(o).filter((function(t){return t!==e})).map((function(e){return o[e]})));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===t||Z(i).includes(t))return!0}}catch(e){r.e(e)}finally{r.f()}return!1},enableShortcut:function(e){this.setShortcutKey(e,this.getShortcutKeyMap()[e])},disableShortcut:function(e){this.off(this.getShortcutKeyMap()[e])},restoreHotkeys:function(){var e=A({},Q);for(var t in this.on(),G)!1===e[G[t]]&&this.off(G[t])},setViewOnlyMode:function(e){var t=this,n=this.getShortcutKeyMap();if(e)this.originalUnbindedHotkeysMap=A({},J),this.preViewOnlyEnabledShortcuts={},Object.keys(n).forEach((function(e){var o=n[e];if(o){var r=o.toLowerCase(),i=!0;if(r.includes(", "))i=!Z(r).some((function(e){return!1===t.originalUnbindedHotkeysMap[e]}));else i=!1!==t.originalUnbindedHotkeysMap[r];t.preViewOnlyEnabledShortcuts[e]=i}})),this.off(),N().forEach((function(e){var o=n[e];if(o&&t.preViewOnlyEnabledShortcuts[e]){var r=t.keyHandlerMap[Y[e]];r&&t.on(o,r)}}));else{if(this.off(),this.originalUnbindedHotkeysMap){for(var o in J)delete J[o];Object.assign(J,this.originalUnbindedHotkeysMap)}Object.keys(n).forEach((function(e){var o,r=n[e],i=null===(o=t.preViewOnlyEnabledShortcuts)||void 0===o?void 0:o[e];if(r&&!1!==i){var a=t.keyHandlerMap[Y[e]];a&&t.on(r,a)}})),delete this.preViewOnlyEnabledShortcuts,delete this.originalUnbindedHotkeysMap}}};function ne(e,t){if(!e||!Array.isArray(t))return!1;var n=X[e];return n&&t.includes(n)}var oe=function(e){$=e},re=function(){return $};t.g=Object.create(te)},function(e,t,n){n(658),n(664),n(665),n(666),n(667),n(668)},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return p}));n(9),n(10),n(26),n(40),n(24),n(41),n(42),n(8),n(56);var o,r=n(45),i=n(54),a=n(23);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function u(){}function s(){}function d(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(c(t={},o,(function(){return this})),t),f=d.prototype=u.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,r,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=d,c(f,"constructor",d),c(d,"constructor",s),s.displayName="GeneratorFunction",c(d,r,"GeneratorFunction"),c(f),c(f,r,"Generator"),c(f,o,(function(){return this})),c(f,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:m}})()}function c(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(c=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){c(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function u(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}var s=function(){return o||(o=new window.Core.EventHandler),o},d=function(){var e,t=(e=l().m((function e(t,n){var o,c,u=arguments;return l().w((function(e){for(;;)switch(e.n){case 0:if(o=u.length>2&&void 0!==u[2]?u[2]:null,!CustomEvent||r.f){e.n=2;break}if(t!==i.a.VISIBILITY_CHANGED||!0!==n.isVisible){e.n=1;break}return e.n=1,new Promise((function(e){var t='[data-element="'.concat(n.element,'"]'),o=Object(a.a)().querySelector(t);if(o)return e();var r=new MutationObserver((function(){(o=Object(a.a)().querySelector(t))&&(r.disconnect(),e())}));r.observe(Object(a.a)(),{childList:!0,subtree:!0})}));case 1:c=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}),e.n=3;break;case 2:(c=document.createEvent("Event")).initEvent(t,!0,!0),c.detail=n;case 3:if(!o){e.n=4;break}o.dispatchEvent(c),e.n=6;break;case 4:return e.n=5,s().triggerAsync(t,c);case 5:window.dispatchEvent(c);case 6:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){u(i,o,r,a,l,"next",e)}function l(e){u(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}();t.a=d;var p=function(e){d(i.a.LOAD_ERROR,e)}},function(e,t,n){var o=n(52),r=n(158).f,i=n(159),a=n(112),l=n(424),c=n(504),u=n(278);e.exports=function(e,t){var n,s,d,p,f,m=e.target,h=e.global,b=e.stat;if(n=h?o:b?o[m]||l(m,{}):(o[m]||{}).prototype)for(s in t){if(p=t[s],d=e.noTargetGet?(f=r(n,s))&&f.value:n[s],!u(h?s:m+(b?".":"#")+s,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,s,p,e)}}},function(e,t,n){var o=n(58),r=n(528);o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o={IMAGE:"image",PDF:"pdf",OFFICE:"office",LEGACY_OFFICE:"legacyOffice",OFFICE_EDITOR:"officeEditor",WEBVIEWER_SERVER:"webviewerServer",XOD:"xod",CONTENT_EDIT:"contentEdit",ALL:"all",SPREADSHEET_EDITOR:"spreadsheetEditor"}},function(e,t,n){"use strict";n(9),n(77),n(26),n(59);var o=n(2),r=n.n(o),i=n(0),a=n.n(i),l=n(6),c=n(4),u=["type","children","dataElement","ariaLabel"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var d={id:r.a.string,children:r.a.node,dataElement:r.a.string,type:r.a.string,ariaLabel:r.a.string};var p=a.a.forwardRef((function(e,t){var n=e.type,o=void 0===n?"div":n,r=e.children,i=e.dataElement,d=e.ariaLabel,p=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,u);return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{return Object(l.e)(e)}catch(e){e.message}return t}((function(e){return c.a.isElementDisabled(e,i)}))?null:"button"===o?a.a.createElement("button",s({ref:t,"data-element":i,"aria-label":d},p),r):a.a.createElement("div",s({ref:t,"data-element":i},p),r)}));p.displayName="DataElementWrapper",p.propTypes=d;var f=p;t.a=f},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));n(9),n(10),n(14),n(34),n(27),n(12),n(49),n(24),n(48),n(50),n(11),n(31),n(13),n(32),n(118),n(33),n(30),n(35),n(8),n(17),n(115);var o,r=n(0),i=n.n(r),a=n(5),l=n(7),c=n(43),u=n(15),s=n.n(u),d=n(78);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=m(m(m(m(m({},(h(h(h(h(h(h(h(h(h(h(o={},l.u.UNDO,{dataElement:"undoButton",presetDataElement:a.a.UNDO_PRESET_BUTTON,icon:"icon-operation-undo",label:"action.undo",title:"action.undo",hidden:!1}),l.u.REDO,{dataElement:"redoButton",presetDataElement:a.a.REDO_PRESET_BUTTON,icon:"icon-operation-redo",label:"action.redo",title:"action.redo",hidden:!1}),l.u.FORM_FIELD_EDIT,{dataElement:"formFieldEditButton",presetDataElement:a.a.FORM_FIELD_EDIT_PRESET_BUTTON,icon:"ic-fill-and-sign",label:"action.formFieldEditMode",title:"action.formFieldEditMode",hidden:!1}),l.u.CONTENT_EDIT,{dataElement:"contentEditButton",presetDataElement:a.a.CONTENT_EDIT_PRESET_BUTTON,icon:"icon-content-edit",label:"action.contentEditMode",title:"action.contentEditMode",hidden:!1}),l.u.NEW_DOCUMENT,{dataElement:a.a.NEW_DOCUMENT_BUTTON,presetDataElement:a.a.NEW_DOCUMENT_PRESET_BUTTON,icon:"icon-plus-sign",label:"action.newDocument",title:"action.newDocument",isActive:!1,hidden:!1}),l.u.FILE_PICKER,{dataElement:a.a.FILE_PICKER_BUTTON,presetDataElement:a.a.FILE_PICKER_PRESET_BUTTON,icon:"icon-header-file-picker-line",label:"action.openFile",title:"action.openFile",hidden:!1}),l.u.DOWNLOAD,{dataElement:a.a.DOWNLOAD_BUTTON,presetDataElement:a.a.DOWNLOAD_PRESET_BUTTON,icon:"icon-download",label:"action.download",title:"action.download",hidden:!1}),l.u.SAVE_AS,{dataElement:a.a.SAVE_AS_BUTTON,presetDataElement:a.a.SAVE_AS_PRESET_BUTTON,icon:"icon-save",label:"saveModal.saveAs",title:"saveModal.saveAs",isActive:!1,hidden:!1}),l.u.PRINT,{dataElement:a.a.PRINT_BUTTON,presetDataElement:a.a.PRINT_PRESET_BUTTON,icon:"icon-header-print-line",label:"action.print",title:"action.print",isActive:!1,hidden:!1}),l.u.CREATE_PORTFOLIO,{dataElement:a.a.CREATE_PORTFOLIO_BUTTON,presetDataElement:a.a.CREATE_PORTFOLIO_PRESET_BUTTON,icon:"icon-pdf-portfolio",label:"portfolio.createPDFPortfolio",title:"portfolio.createPDFPortfolio",isActive:!1,hidden:!1}),h(h(h(h(h(h(h(h(h(h(o,l.u.SETTINGS,{dataElement:a.a.SETTINGS_BUTTON,presetDataElement:a.a.SETTINGS_PRESET_BUTTON,icon:"icon-header-settings-line",label:"option.settings.settings",title:"option.settings.settings",isActive:!1,hidden:!1}),l.u.FULLSCREEN,{dataElement:a.a.FULLSCREEN_BUTTON,presetDataElement:a.a.FULLSCREEN_PRESET_BUTTON,icon:"icon-header-full-screen",label:"action.enterFullscreen",title:"action.enterFullscreen",hidden:!1}),l.u.TOGGLE_ACCESSIBILITY_MODE,{dataElement:l.u.TOGGLE_ACCESSIBILITY_MODE,presetDataElement:a.a.TOGGLE_ACCESSIBILITY_MODE_PRESET_BUTTON,icon:"icon-accessibility-mode",label:"accessibility.accessibilityMode",title:"accessibility.accessibilityMode",hidden:!1}),l.u.BOLD,{dataElement:"boldButton",presetDataElement:a.a.BOLD_PRESET_BUTTON,icon:"icon-text-bold",label:"officeEditor.bold",title:"officeEditor.bold",hidden:!1}),l.u.ITALIC,{dataElement:"italicButton",presetDataElement:a.a.ITALIC_PRESET_BUTTON,icon:"icon-text-italic",label:"officeEditor.italic",title:"officeEditor.italic",hidden:!1}),l.u.UNDERLINE,{dataElement:"underlineButton",presetDataElement:a.a.UNDERLINE_PRESET_BUTTON,icon:"icon-text-underline",label:"officeEditor.underline",title:"officeEditor.underline",hidden:!1}),l.u.STRIKETHROUGH,{dataElement:"strikethroughButton",presetDataElement:a.a.STRIKETHROUGH_PRESET_BUTTON,icon:"icon-tool-text-manipulation-strikethrough",label:"spreadsheetEditor.strikethrough",title:"spreadsheetEditor.strikethrough",hidden:!1}),l.u.STRIKEOUT,{dataElement:"strikeoutButton",presetDataElement:a.a.STRIKEOUT_PRESET_BUTTON,icon:"icon-tool-text-manipulation-strikethrough",label:"spreadsheetEditor.strikeout",title:"spreadsheetEditor.strikeout",hidden:!1}),l.u.INCREASE_INDENT,{dataElement:"increaseIndentButton",presetDataElement:a.a.INCREASE_INDENT_PRESET_BUTTON,icon:"ic-indent-increase",label:"officeEditor.increaseIndent",title:"officeEditor.increaseIndent",hidden:!1}),l.u.DECREASE_INDENT,{dataElement:"decreaseIndentButton",presetDataElement:a.a.DECREASE_INDENT_PRESET_BUTTON,icon:"ic-indent-decrease",label:"officeEditor.decreaseIndent",title:"officeEditor.decreaseIndent",hidden:!1}),h(h(h(h(h(h(h(h(h(h(o,l.u.OE_TOGGLE_NON_PRINTING_CHARACTERS,{dataElement:l.u.OE_TOGGLE_NON_PRINTING_CHARACTERS,presetDataElement:a.a.OFFICE_EDITOR_TOGGLE_NON_PRINTING_CHARACTERS_BUTTON,icon:"icon-office-editor-toggle-non-printing-characters",label:"officeEditor.nonPrintingCharacters",title:"officeEditor.nonPrintingCharacters",hidden:!1}),l.u.ALIGN_LEFT,{dataElement:"alignLeftButton",presetDataElement:a.a.JUSTIFY_LEFT_PRESET_BUTTON,icon:"icon-menu-left-align",label:"officeEditor.leftAlign",title:"officeEditor.leftAlign",hidden:!1}),l.u.ALIGN_CENTER,{dataElement:"alignCenterButton",presetDataElement:a.a.JUSTIFY_CENTER_PRESET_BUTTON,icon:"icon-menu-center-align",label:"officeEditor.centerAlign",title:"officeEditor.centerAlign",hidden:!1}),l.u.ALIGN_RIGHT,{dataElement:"alignRightButton",presetDataElement:a.a.JUSTIFY_RIGHT_PRESET_BUTTON,icon:"icon-menu-right-align",label:"officeEditor.rightAlign",title:"officeEditor.rightAlign",hidden:!1}),l.u.JUSTIFY_BOTH,{dataElement:"justifyBothButton",presetDataElement:a.a.JUSTIFY_BOTH_PRESET_BUTTON,icon:"icon-menu-both-align",label:"officeEditor.justify",title:"officeEditor.justify",hidden:!1}),l.u.INSERT_IMAGE,{dataElement:l.u.INSERT_IMAGE,presetDataElement:a.a.OFFICE_EDITOR_TOOLS_HEADER_INSERT_IMAGE,icon:"icon-tool-image-line",label:"officeEditor.image",title:"officeEditor.insertImage"}),l.u.OE_COLOR_PICKER,{dataElement:a.a.OFFICE_EDITOR_FLYOUT_COLOR_PICKER,presetDataElement:a.a.OFFICE_EDITOR_COLOR_PICKER_PRESET_BUTTON,icon:"icon-office-editor-circle",label:"officeEditor.textColor",title:"officeEditor.textColor",hidden:!1}),l.u.COMPARE,{dataElement:"comparePanelToggle",presetDataElement:"comparePanelToggle",title:"action.comparePages",label:"action.comparePages",icon:"icon-header-compare"}),l.u.NEW_SPREADSHEET,{dataElement:l.u.NEW_SPREADSHEET,presetDataElement:a.a.NEW_SPREADSHEET_PRESET_BUTTON,icon:"icon-plus-sign",label:"action.newSpreadsheetDocument",title:"action.newSpreadsheetDocument",isActive:!1}),l.u.CELL_MERGE_TOGGLE,{dataElement:"cellMergeToggle",presetDataElement:a.a.MERGE_TOGGLE_BUTTON,icon:"ic-merge",label:"spreadsheetEditor.merge",title:"spreadsheetEditor.merge",hidden:!1}),h(h(h(h(h(h(h(h(h(o,l.u.CELL_UNMERGE_TOGGLE,{dataElement:"cellUnmergeToggle",presetDataElement:a.a.UNMERGE_TOGGLE_BUTTON,icon:"ic-unmerge",label:"spreadsheetEditor.unmerge",title:"spreadsheetEditor.unmerge",hidden:!1}),l.u.CELL_FORMAT_CURRENCY,{dataElement:"cellFormatAsCurrencyButton",presetDataElement:a.a.CELL_FORMAT_CURRENCY_BUTTON,icon:"ic-currency-dollar",label:"spreadsheetEditor.formatAsCurrency",title:"spreadsheetEditor.formatAsCurrency",hidden:!1}),l.u.CELL_COPY,{dataElement:"cellCopy",presetDataElement:a.a.CELL_COPY_BUTTON,icon:"icon-copy",label:"action.copy",title:"action.copy",hidden:!1}),l.u.CELL_CUT,{dataElement:"cellCut",presetDataElement:a.a.CELL_CUT_BUTTON,icon:"icon-cut",label:"action.cut",title:"action.cut",hidden:!1}),l.u.CELL_PASTE,{dataElement:"cellPaste",presetDataElement:a.a.CELL_PASTE_BUTTON,icon:"icon-paste",label:"action.paste",title:"action.paste",hidden:!1}),l.u.ALIGN_TOP,{dataElement:l.u.ALIGN_TOP,presetDataElement:a.a.CELL_TEXT_ALIGN_TOP_BUTTON,icon:"ic-align-top-ios",label:"spreadsheetEditor.topAlign",title:"spreadsheetEditor.topAlign",isActive:!1}),l.u.ALIGN_MIDDLE,{dataElement:l.u.ALIGN_MIDDLE,presetDataElement:a.a.CELL_TEXT_ALIGN_MIDDLE_BUTTON,icon:"ic-align-middle-ios",label:"spreadsheetEditor.middleAlign",title:"spreadsheetEditor.middleAlign",isActive:!1}),l.u.ALIGN_BOTTOM,{dataElement:l.u.ALIGN_BOTTOM,presetDataElement:a.a.CELL_TEXT_ALIGN_BOTTOM_BUTTON,icon:"ic-align-bottom-ios",label:"spreadsheetEditor.bottomAlign",title:"spreadsheetEditor.bottomAlign",isActive:!1}),l.u.SPREADSHEET_EDITOR_INSERT_IMAGE_BUTTON,{dataElement:"spreadsheetEditorInsertImageButton",presetDataElement:a.a.SPREADSHEET_EDITOR_INSERT_IMAGE_BUTTON,icon:"icon-tool-image-line"}))),l.b.reduce((function(e,t){if("divider"===t)return e;var n=t.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}));return e[t]={dataElement:"".concat(t),presetDataElement:"".concat(t,"PresetButton"),icon:"ic-".concat(n),label:"spreadsheetEditor.".concat(t),title:"spreadsheetEditor.".concat(t),isActive:!1},e}),{})),l.e.reduce((function(e,t){if("divider"===t)return e;var n=t.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}));return e[t]={dataElement:"".concat(t),presetDataElement:"".concat(t,"PresetButton"),icon:"ic-text-".concat(n),label:"spreadsheetEditor.".concat(t),title:"spreadsheetEditor.".concat(t),isActive:!1},e}),{})),Object.keys(l.c).reduce((function(e,t){if("divider"===t)return e;var n=t.toLowerCase();return e["".concat(t)]={dataElement:"".concat(t),presetDataElement:"".concat(t),icon:"ic-border-".concat(n),label:"spreadsheetEditor.".concat(n),title:"spreadsheetEditor.".concat(n),isActive:!1},e}),{})),l.d.reduce((function(e,t){if("divider"===t)return e;var n=t.icon,o=t.label;if(!n){var r=o.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}));r=r.replace(/-format/g,""),n="ic-".concat(r)}return e[o]={dataElement:o,presetDataElement:"".concat(o,"PresetButton"),icon:n,label:"spreadsheetEditor.".concat(o),title:"spreadsheetEditor.".concat(o),isActive:!1},e}),{})),g=function(e){var t=e.buttonType,n=e.isDisabled,o=e.onClick,r=e.isFullScreen,a=e.isActive,u=e.style,p=e.className,f=m({},b[t]);t===l.u.FULLSCREEN&&(f.icon=r?"icon-header-full-screen-exit":"icon-header-full-screen",f.title=r?"action.exitFullscreen":"action.enterFullscreen");var g=e.dataElement||f.presetDataElement,y=e.icon||f.icon,v=e.title||f.title;return i.a.createElement(c.a,{className:s()(h(h({PresetButton:!0},g,!0),p,!0)),dataElement:g,img:y,title:v,onClick:o,disabled:n,isActive:a,style:u,onClickAnnouncement:Object(d.d)(v)})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=3,r=2,i=1},function(e,t,n){"use strict";var o=n(58),r=n(70),i=n(435),a=n(129),l=n(97),c=n(436),u=r("".indexOf);o({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(l(a(this)),l(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.d(t,"s",(function(){return y})),n.d(t,"p",(function(){return v})),n.d(t,"q",(function(){return w})),n.d(t,"d",(function(){return E})),n.d(t,"g",(function(){return C})),n.d(t,"f",(function(){return O})),n.d(t,"l",(function(){return T})),n.d(t,"m",(function(){return x})),n.d(t,"c",(function(){return A})),n.d(t,"b",(function(){return k})),n.d(t,"k",(function(){return L})),n.d(t,"o",(function(){return M})),n.d(t,"a",(function(){return R})),n.d(t,"t",(function(){return N})),n.d(t,"e",(function(){return D})),n.d(t,"n",(function(){return F})),n.d(t,"j",(function(){return B})),n.d(t,"h",(function(){return H})),n.d(t,"r",(function(){return V})),n.d(t,"u",(function(){return U})),n.d(t,"i",(function(){return G}));n(9),n(10),n(14),n(32),n(38),n(34),n(82),n(27),n(46),n(12),n(84),n(44),n(118),n(22),n(33),n(18),n(26),n(30),n(633),n(266),n(40),n(49),n(24),n(48),n(50),n(41),n(35),n(42),n(8),n(88),n(137),n(56),n(19),n(64),n(11),n(31),n(13),n(93);var o=n(1),r=n(60),i=n(25),a=n(107),l=n(537),c=n(174),u=n(5);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return p(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(p(t={},o,(function(){return this})),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,r,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,r,"GeneratorFunction"),p(f),p(f,r,"Generator"),p(f,o,(function(){return this})),p(f,"toString",(function(){return"[object Generator]"})),(d=function(){return{w:i,m:m}})()}function p(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(p=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){p(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){b(i,o,r,a,l,"next",e)}function l(e){b(i,o,r,a,l,"throw",e)}a(void 0)}))}}function y(e){return i.h.includes(e)}function v(){var e;return(null===(e=o.a.getDocument())||void 0===e?void 0:e.getType())===r.a.OFFICE_EDITOR}function w(){var e;return(null===(e=o.a.getDocument())||void 0===e?void 0:e.getType())===r.a.SPREADSHEET_EDITOR}var E=function(e,t,n){var o=t?t/n:e;switch(Object.values(i.p).reduce((function(e,t){var n=Math.abs(e-o),r=Math.abs(t-o);return n===r?e<t?e:t:r<n?t:e}))){case 1:return"Single";case 1.15:return"1.15";case 1.5:return"1.5";case 2:return"Double";default:return"Single"}},C=function(e){var t=e||{},n=t.pointSize,o=t.color;if(!n||!o)return"Normal Text";var r="".concat(n,"pt"),l=a.b.black;return l&&(l=Object(c.e)(o.r,o.g,o.b).slice(0,-2)),Object.keys(i.b).find((function(e){return i.b[e].fontSize===r&&i.b[e].color===l}))||"Normal Text"},O=function(e){return e?new window.Core.Annotations.Color(e.r,e.g,e.b,1):i.d},T=function(){return Object.keys(i.p).map((function(e){var t=e.toLowerCase().split(".").join("");return{label:"officeEditor.lineSpacingOptions.".concat(t),onClick:function(){S(e)},dataElement:"line-spacing-button-".concat(t)}}))},S=function(e){var t=i.p[e];o.a.getOfficeEditor().updateParagraphStyle({lineHeightMultiplier:t})},x=function(e,t){return t.map((function(t){var n=e.toLowerCase();return{label:"officeEditor.".concat(n,"Dropdown.").concat(t.enum),onClick:function(){o.a.getOfficeEditor().setListPreset(t.enum)},dataElement:"office-editor-list-type-".concat(n,"-").concat(t.enum),icon:t.img}}))},A=[{key:"pageBreak",label:"".concat(i.z,"pageBreak"),description:"".concat(i.z,"pageBreakDescription"),icon:"icon-office-editor-page-break-split",onClick:function(){return o.a.getOfficeEditor().insertPageBreak()}},{key:"sectionBreakNextPage",label:"".concat(i.z,"sectionBreakNextPage"),description:"".concat(i.z,"sectionBreakNextPageDescription"),icon:"icon-office-editor-page-break",onClick:function(){return o.a.getOfficeEditor().insertSectionBreakNextPage()}},{key:"sectionBreakContinuous",label:"".concat(i.z,"sectionBreakContinuous"),description:"".concat(i.z,"sectionBreakContinuousDescription"),icon:"icon-page-manipulation-extract",onClick:function(){return o.a.getOfficeEditor().insertSectionBreakContinuous()}}];function _(e,t){return P.apply(this,arguments)}function P(){return(P=g(d().m((function e(t,n){var r,a,l,c,u;return d().w((function(e){for(;;)switch(e.p=e.n){case 0:return r=this.top,a=this.left,l=this.bottom,c=this.right,e.p=1,e.n=2,o.a.getOfficeEditor().setSectionMargins({top:r,bottom:l,left:a,right:c},i.o.CM);case 2:e.n=4;break;case 3:e.p=3,u=e.v,console.error("Error applying margins:",u),N(t,n,i.C.MARGIN);case 4:return e.a(2)}}),e,this,[[1,3]])})))).apply(this,arguments)}var k=[h(h(h(h(h({key:"normal",label:"".concat(i.z,"normal")},i.r.TOP,i.t.NORMAL),i.r.BOTTOM,i.t.NORMAL),i.r.LEFT,i.t.NORMAL),i.r.RIGHT,i.t.NORMAL),"onClick",_),h(h(h(h(h({key:"narrow",label:"".concat(i.z,"narrow")},i.r.TOP,i.t.NARROW),i.r.BOTTOM,i.t.NARROW),i.r.LEFT,i.t.NARROW),i.r.RIGHT,i.t.NARROW),"onClick",_),h(h(h(h(h({key:"moderate",label:"".concat(i.z,"moderate")},i.r.TOP,i.t.NORMAL),i.r.BOTTOM,i.t.NORMAL),i.r.LEFT,i.t.MODERATE),i.r.RIGHT,i.t.MODERATE),"onClick",_),h(h(h(h(h({key:"wide",label:"".concat(i.z,"wide")},i.r.TOP,i.t.NORMAL),i.r.BOTTOM,i.t.NORMAL),i.r.LEFT,i.t.WIDE),i.r.RIGHT,i.t.WIDE),"onClick",_),{key:"customMargins",label:"".concat(i.z,"customMargins"),description:"".concat(i.z,"customMarginsDescription"),onClick:function(e,t){e(t.openElement(u.a.OFFICE_EDITOR_MARGINS_MODAL))}}],L=function(e){return k.map((function(t){return"customMargins"===t.key?t:m(m({},t),Object(l.a)(Object.values(i.r),(function(n){var o=D(t[n],i.o.CM,e);return V(o)})))}))},M=function(e){var t=Object.keys(i.o).find((function(t){return i.o[t]===e}));return i.s[t]||i.s.CM};function j(e,t){return I.apply(this,arguments)}function I(){return(I=g(d().m((function e(t,n){var r,a;return d().w((function(e){for(;;)switch(e.p=e.n){case 0:return r=this.numberOfColumns,e.p=1,e.n=2,o.a.getOfficeEditor().setEqualSectionColumns(r);case 2:e.n=4;break;case 3:e.p=3,a=e.v,console.error("Error setting equal section columns to ".concat(r,":"),a),N(t,n,i.C.COLUMN);case 4:return e.a(2)}}),e,this,[[1,3]])})))).apply(this,arguments)}var R=[{key:"singleColumn",label:"".concat(i.z,"singleColumn"),numberOfColumns:1,onClick:j},{key:"twoColumn",label:"".concat(i.z,"twoColumn"),numberOfColumns:2,onClick:j},{key:"threeColumn",label:"".concat(i.z,"threeColumn"),numberOfColumns:3,onClick:j},{key:"customColumn",label:"".concat(i.z,"customColumn"),description:"".concat(i.z,"customColumnDescription"),onClick:function(e,t){e(t.openElement(u.a.OFFICE_EDITOR_COLUMNS_MODAL))}}],N=function(e,t,n){var o;switch(n){case i.C.COLUMN:o="warning.officeEditorPageLayout.columnsMessage";break;case i.C.MARGIN:o="warning.officeEditorPageLayout.marginsMessage";break;default:o=""}var r={message:o,title:"warning.officeEditorPageLayout.title",confirmBtnTxt:"action.ok"};e(t.showWarningMessage(r))},D=window.Core.Document.OfficeEditor.Layout.convertBetweenUnits,F=function(e){return D(i.u,i.o.PHYSICAL_POINT,e)},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return null==e||isNaN(e)||0===e?"0":parseFloat(e.toFixed(t)).toString()},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(null==e||isNaN(e))return 0;var n=Math.pow(10,t);return Math.floor(e*n)/n},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return null==e||isNaN(e)?0:parseFloat(e.toFixed(t))},U=function(e,t){if(!Number.isFinite(e)||e<=0)return 0;var n=Math.max(0,t);return e>n?V(n):e},G=function(){setTimeout((function(){o.a.getOfficeEditor().focusContent()}),0)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u}));n(38);var o=n(23),r=n(226),i=n(117),a=function(){var e;return window.isApryseWebViewerWebComponent?(null===(e=Object(o.a)())||void 0===e?void 0:e.host.clientWidth)<=i.a:Object(r.a)(["(max-width: ".concat(i.a,"px)")],[!0],!1)},l=function(){var e,t;return window.isApryseWebViewerWebComponent?(null===(e=Object(o.a)())||void 0===e?void 0:e.host.clientWidth)>i.a&&(null===(t=Object(o.a)())||void 0===t?void 0:t.host.clientWidth)<=i.b:Object(r.a)(["(min-width: ".concat(i.a+1,"px) and (max-width: ").concat(i.b,"px)")],[!0],!1)},c=function(){var e;return window.isApryseWebViewerWebComponent?(null===(e=Object(o.a)())||void 0===e?void 0:e.host.clientWidth)<=i.b:Object(r.a)(["(max-width: ".concat(i.b,"px)")],[!0],!1)},u=function(){var e;return window.isApryseWebViewerWebComponent?(null===(e=Object(o.a)())||void 0===e?void 0:e.host.clientWidth)>i.b:Object(r.a)(["(min-width: ".concat(i.b+1,"px)")],[!0],!1)}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(27),n(12),n(33),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(11),n(31),n(13);var o=n(0),r=n.n(o),i=n(306),a=n(6),l=n(15),c=n.n(l),u=n(2),s=n.n(u),d=n(51),p=(n(578),n(155)),f=n(4),m=n(103),h=n(7);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=Object(o.forwardRef)((function(e,t){var n,o,l,u=Object(a.e)((function(t){return f.a.getCustomElementOverrides(t,e.dataElement)}));if(u){u=y({},u);var s=Object(m.b)(u);s&&(u.icon=s)}var b=y(y({},e),u),g=b.label,w=b.secondaryLabel,E=b.title,C=b.dataElement,O=b.disabled,T=b.additionalClass,S=void 0===T?"":T,x=b.ariaKeyshortcuts,A=b.children,_=b.index,P=b.isChild,k=b.elementDOM,L=b.onKeyDownHandler,M=b.onClickHandler,j=b.isActive,I=(null===(n=u)||void 0===n?void 0:n.icon)||(null===(o=u)||void 0===o?void 0:o.img)||e.icon;if(!u&&(null===(l=e.flyoutItem)||void 0===l?void 0:l.type)===h.k.PRESET_BUTTON&&O){var R=Object(m.b)(e.flyoutItem,e.allFlyoutItems,O);R&&(I=R)}var N=Object(i.a)().t;return r.a.createElement("li",{key:g,ref:t,draggable:e.draggable,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,className:c()(v({"flyout-item-container":!0,disabled:O,active:j},S,!0))},function(){if(k)return r.a.createElement("div",{className:"custom-element-wrapper"},I,k);var t=null!=g?g:E,n="string"==typeof t?N(t):t,o="string"==typeof n?n:null,i="active"===e.additionalClass;return r.a.createElement("button",{className:"flyout-item",disabled:O,onClick:function(t){var n,o;null===(n=Object(p.b)())||void 0===n||n(C,{type:p.a.BUTTON}),null!==(o=u)&&void 0!==o&&o.onClick?u.onClick(t):M(e,P,_)(t)},"aria-disabled":O,onKeyDown:L,"data-element":C,"aria-label":o,"aria-pressed":i},r.a.createElement("div",{className:"icon-label-wrapper"},I,n&&r.a.createElement("span",{className:"flyout-item-label"},n)),x&&r.a.createElement("span",{className:"hotkey-wrapper"},"(".concat(x,")")),w&&r.a.createElement("span",{className:"secondary-label"},w),A&&r.a.createElement(d.a,{className:"icon-open-submenu",glyph:"icon-chevron-right"}))}())}));w.propTypes={label:s.a.oneOfType([s.a.string,s.a.object]),secondaryLabel:s.a.string,title:s.a.string,dataElement:s.a.string,disabled:s.a.bool,additionalClass:s.a.string,icon:s.a.node,ariaKeyshortcuts:s.a.string,children:s.a.array,index:s.a.number,isChild:s.a.bool,elementDOM:s.a.node,onKeyDownHandler:s.a.func,onClickHandler:s.a.func,draggable:s.a.bool,onDragStart:s.a.func,onDragEnd:s.a.func,flyoutItem:s.a.object,allFlyoutItems:s.a.array},w.displayName="FlyoutItemContainer";var E=w;t.a=E},function(e,t,n){"use strict";t.a={Measurement:"Measurement",Ribbons:"Ribbons",Annotations:"Annotations",Download:"Download",FilePicker:"FilePicker",LocalStorage:"LocalStorage",NotesPanel:"NotesPanel",InlineComment:"InlineComment",RightClickAnnotationPopup:"RightClickAnnotationPopup",Print:"Print",Redaction:"Redaction",TextSelection:"TextSelection",TouchScrollLock:"TouchScrollLock",Copy:"Copy",MultipleViewerMerging:"MultipleViewerMerging",ThumbnailMerging:"ThumbnailMerging",ThumbnailReordering:"ThumbnailReordering",ThumbnailMultiselect:"ThumbnailMultiselect",PageNavigation:"PageNavigation",MouseWheelZoom:"MouseWheelZoom",Search:"Search",MathSymbols:"MathSymbols",OutlineEditing:"OutlineEditing",NotesPanelVirtualizedList:"NotesPanelVirtualizedList",NotesShowLastUpdatedDate:"NotesShowLastUpdatedDate",MultiTab:"MultiTab",ChangeView:"ChangeView",ContentEdit:"ContentEdit",MultiViewerMode:"MultiViewerMode",Initials:"Initials",SavedSignaturesTab:"SavedSignaturesTab",Panel:"Panel",LegacyRichTextPopup:"LegacyRichTextPopup",ComparePages:"ComparePages",Portfolio:"Portfolio"}},function(e,t,n){"use strict";var o=n(45);t.a=o.h||o.a?"Pan":"AnnotationEdit"},function(e,t,n){var o=n(272),r=Function.prototype,i=r.bind,a=r.call,l=o&&i.bind(a,a);e.exports=o?function(e){return e&&l(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(34),n(82),n(124),n(27),n(21),n(46),n(20),n(12),n(44),n(22),n(33),n(18),n(16),n(30),n(24),n(8),n(17),n(19),n(64),n(11),n(31),n(13),n(93);var o=n(1),r=n(15),i=n.n(r),a=n(51),l=n(148),c=n(2),u=n.n(c),s=n(0),d=n.n(s),p=n(306),f=n(61),m=n(608),h=n.n(m);n(1085);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C={up:"down",down:"up",left:"right",right:"left"},O={id:u.a.string.isRequired,items:u.a.array,images:u.a.array,width:u.a.oneOfType([u.a.string,u.a.number]),height:u.a.oneOfType([u.a.string,u.a.number]),columns:u.a.number,currentSelectionKey:u.a.string,translationPrefix:u.a.string,getTranslationLabel:u.a.func,onClickItem:u.a.func,dataElement:u.a.string,disabled:u.a.bool,getCustomItemStyle:u.a.func,applyCustomStyleToButton:u.a.bool,placeholder:u.a.string,maxHeight:u.a.number,getKey:u.a.func,getDisplayValue:u.a.func,className:u.a.string,onOpened:u.a.func,onClosed:u.a.func,arrowDirection:u.a.string,disableFocusing:u.a.bool,renderItem:u.a.func,renderSelectedItem:u.a.func,labelledById:u.a.string,showLabelInList:u.a.bool,isFlyoutItem:u.a.bool,onKeyDownHandler:u.a.func,onFocus:u.a.func,stopPropagationOnMouseDown:u.a.bool,ariaLabel:u.a.string},T=0,S=1,x=2,A=3,_=4,P=5,k=6,L=7,M=8,j=10,I=11,R=12,N=13;function D(e){var t=e.id,n=void 0===t?"":t,r=e.items,c=e.images,u=e.width,m=void 0===u?100:u,b=e.height,w=e.columns,E=void 0===w?1:w,O=e.currentSelectionKey,D=e.translationPrefix,B=e.getTranslationLabel,H=e.onClickItem,V=void 0===H?function(){}:H,U=e.dataElement,G=e.disabled,W=void 0!==G&&G,z=e.applyCustomStyleToButton,Z=void 0===z||z,Y=e.getCustomItemStyle,q=void 0===Y?function(){return{}}:Y,K=e.placeholder,$=void 0===K?null:K,X=e.maxHeight,J=e.getKey,Q=void 0===J?function(e){return e}:J,ee=e.getDisplayValue,te=void 0===ee?function(e){return e}:ee,ne=e.className,oe=void 0===ne?"":ne,re=e.ariaLabel,ie=e.hasInput,ae=void 0!==ie&&ie,le=e.displayButton,ce=void 0===le?null:le,ue=e.customDataValidator,se=void 0===ue?function(){return!0}:ue,de=e.isSearchEnabled,pe=void 0===de||de,fe=e.onOpened,me=void 0===fe?function(){}:fe,he=e.onClosed,be=void 0===he?function(){}:he,ge=e.arrowDirection,ye=void 0===ge?"down":ge,ve=e.children,we=e.disableFocusing,Ee=void 0!==we&&we,Ce=e.renderItem,Oe=void 0===Ce?function(e,t){return d.a.createElement(d.a.Fragment,null,t(e))}:Ce,Te=e.renderSelectedItem,Se=void 0===Te?function(e,t){return d.a.createElement(d.a.Fragment,null,t(e))}:Te,xe=e.labelledById,Ae=e.showLabelInList,_e=void 0!==Ae&&Ae,Pe=e.isFlyoutItem,ke=void 0!==Pe&&Pe,Le=e.onKeyDownHandler,Me=void 0===Le?null:Le,je=e.onFocus,Ie=void 0===je?null:je,Re=e.stopPropagationOnMouseDown,Ne=void 0!==Re&&Re,De=Object(p.a)(),Fe=De.t,Be=De.ready,He=Object(s.useRef)(null),Ve=Object(s.useRef)(null),Ue=Object(s.useRef)(null),Ge=v(Object(s.useState)(!1),2),We=Ge[0],ze=Ge[1],Ze=v(Object(s.useState)(""),2),Ye=Ze[0],qe=Ze[1],Ke=v(Object(s.useState)(-1),2),$e=Ke[0],Xe=Ke[1],Je=v(Object(s.useState)([]),2),Qe=Je[0],et=Je[1],tt=v(Object(s.useState)(r),2),nt=tt[0],ot=tt[1],rt=v(Object(s.useState)(""),2),it=rt[0],at=rt[1],lt=Object(s.useRef)([]);Object(s.useEffect)((function(){var e=[];c&&c.length>0?e=c.map((function(e){return e.key})):r&&r.length>0&&(e=r.map((function(e){return Q(e)}))),et(e),Xe(e.findIndex((function(e){return e===O}))),ot(r)}),[O,r,c]),Object(s.useEffect)((function(){We&&Xe(Qe.findIndex((function(e){return e===O})))}),[We]);var ct=c&&c.length>0;ct&&(Q=function(e){return e.key});var ut=function(e,t){var n=e.offsetHeight,o=e.offsetTop,r=t.offsetHeight,i=t.scrollTop,a=o+n>i+r;o<i?t.scrollTo(0,o):a&&t.scrollTo(0,o-r+n)},st=function(e){return e&&e.clientHeight<e.scrollHeight},dt=Object(s.useCallback)((function(){return ze(!1)}),[]),pt=Object(s.useCallback)((function(e){var t,n,r,i;if(!ae||e.target!==(null==Ue?void 0:Ue.current)){Ee||Ve.current.focus(),e.preventDefault(),ze(!W&&function(e){return!e}),!ae||We||Ee||setTimeout((function(){var e;null==Ue||null===(e=Ue.current)||void 0===e||e.focus()}));var a=null===(t=He.current)||void 0===t?void 0:t.scrollHeight;X&&(a=Math.min(a,X));var l=null==Ve||null===(n=Ve.current)||void 0===n?void 0:n.getBoundingClientRect(),c=null==He||null===(r=He.current)||void 0===r||null===(i=r.closest("body"))||void 0===i?void 0:i.getBoundingClientRect();if(null!==o.a&&void 0!==o.a&&o.a.getDocumentViewer()&&(c=o.a.getScrollViewElement().getBoundingClientRect()),a&&!We){var u="left"===ye||"right"===ye?l.height:0,s=c.bottom>=l.bottom+a,d=c.top<=l.top-a;if(s)He.current.style.top="".concat(l.height-u,"px"),He.current.style.maxHeight=X?"".concat(X,"px"):"";else if(d)He.current.style.top="-".concat(a-u,"px"),He.current.style.maxHeight=X?"".concat(X,"px"):"";else{var p=l.top,f=c.bottom-l.bottom,m=function(e){var t=[X,a,e].filter((function(e){return h()(e)})),n=Math.min.apply(Math,y(t));return Math.max(n,24)};if(f>=p){var b=m(f);He.current.style.top="".concat(l.height-u,"px"),He.current.style.maxHeight="".concat(b,"px")}else{var g=m(p);He.current.style.top="-".concat(g-u,"px"),He.current.style.maxHeight="".concat(g,"px")}He.current.style.overflowY="auto"}"left"===ye?He.current.style.left="-".concat(l.width,"px"):"right"===ye&&(He.current.style.left="".concat(l.width,"px"))}else He.current.style.top="",He.current.style.maxHeight=X?"".concat(X,"px"):"";if(st(He.current)){var v=lt.current[$e];v&&ut(v,He.current)}}}),[ae,We,W,$e]);Object(s.useEffect)((function(){!We&&null!=He&&He.current&&(He.current.style.top="",He.current.scrollTop=0)}),[We]),Object(s.useEffect)((function(){var e=function(){ze(!1)};return window.addEventListener("blur",e),function(){window.removeEventListener("blur",e)}}),[]),Object(s.useEffect)((function(){We?me():(qe(""),be()),We&&ae&&null!=Ue&&Ue.current&&(Ue.current.value=O,Ee||Ue.current.select())}),[We,Ue.current,O,ae]);var ft=Object(s.useCallback)((function(e){Ve.current.contains(e.target)||ze(!1)}),[]);Object(l.a)(He,ft);var mt=Object(s.useCallback)((function(e,t,n,o){e.preventDefault(),e.stopPropagation(),V(t,n),ze(!1),Ee||Ve.current.focus(),null!=Ue&&Ue.current&&(Ue.current.value=o)}),[V,Ue.current]),ht=function(e){return Be&&e?(t=D,n=te(e),B?Fe(B(n)):Fe("".concat(t,".").concat(n),n)):"";var t,n},bt=function(e,t){var n=q(e);return t&&(n.lineHeight="".concat(b||28,"px")),n},gt=function(e){Ne&&e.stopPropagation()};Object(s.useEffect)((function(){pe&&ot(r.filter((function(e){return ht(e).toLowerCase().includes(Ye.toLowerCase())})))}),[Ye,pe,Qe,r]),Object(s.useEffect)((function(){0===nt.length?at(Fe("message.noResults")):at("")}),[nt]),Object(s.useEffect)((function(){if(pe)Xe(0);else{var e=Qe.findIndex((function(e){return e===Ye}));Xe(e)}}),[Ye,pe]),Object(s.useEffect)((function(){We||Xe(Qe.findIndex((function(e){return e===O})))}),[We,Qe,O]);var yt,vt,wt;if(yt=!!(vt=(ct?c:r).find((function(e){return Q(e)===O}))),ct){var Et,Ct,Ot=(null===(Et=vt)||void 0===Et?void 0:Et.src)||"",Tt=(null===(Ct=vt)||void 0===Ct?void 0:Ct.className)||"";wt=d.a.createElement(a.a,{glyph:Ot,className:Tt})}else ve||(yt?wt=Se(vt,ht):ae&&O&&(yt=!!O,wt=O,vt=O));var St=Object(s.useMemo)((function(){return ct?c.map((function(e,t){var o=Q(e);return d.a.createElement(f.a,{key:o,id:"".concat(n,"-").concat(o),role:"option","aria-label":o,"aria-selected":o===O,dataElement:"dropdown-item-".concat(o),ref:function(e){return lt.current[t]=e},className:i()("Dropdown__item",{selected:o===O,active:t===$e}),tabIndex:We?void 0:-1,onClick:function(e){return mt(e,o)}},d.a.createElement(a.a,{glyph:e.src,className:e.className}))})):ve?void 0:nt.map((function(e,t){var o=Q(e),r=ht(e),a=!!e.font;return d.a.createElement(f.a,{key:o,role:"option","aria-label":a?e.font:null,id:"".concat(n,"-").concat(o),"aria-selected":o===O,dataElement:"dropdown-item-".concat(o),className:i()("Dropdown__item",{selected:o===O,active:t===$e}),onClick:function(e){return mt(e,o,t,r)},onMouseDown:gt,tabIndex:We?0:-1,ref:function(e){return lt.current[t]=e},style:bt(e,X)},Oe(e,ht))}))}),[O,We,r,mt,Ye,D,$e,c,nt,Oe]),xt={width:"".concat(m,"px")};b&&(xt.height="".concat(b,"px"));var At={};X&&(At.maxHeight="".concat(X,"px")),100!==m&&(At.width="".concat(m,"px"));var _t=Object(s.useCallback)((function(e){if(We&&ae){return d.a.createElement("input",{className:"Dropdown__input",role:"combobox","aria-expanded":We,"aria-controls":"".concat(n,"-dropdown"),onBlur:function(e){var t,n,o;(null===(t=e.relatedTarget)||void 0===t||null===(n=t.dataset)||void 0===n||null===(o=n.element)||void 0===o?void 0:o.includes("dropdown-item"))||qe("")},onChange:function(e){e.preventDefault(),Ue.current.value=e.target.value,qe(e.target.value)},ref:Ue,onFocus:Ie,onKeyDown:function(t){if("Enter"===t.key&&We&&Ue.current){var n,o=Ue.current.value,i=o;if(se(o)||(i=e),r.length>0){var a=r.find((function(e){return ht(e).toLowerCase()===o.toLowerCase()}));a&&(i=a)}V(i,-1),null==Ue||null===(n=Ue.current)||void 0===n||n.blur(),ze(!1)}},"aria-activedescendant":We?"".concat(n,"-").concat(nt[$e]):null})}return e}),[ae,Ue,Ve,V,We,vt,se,n,Qe,$e,nt]),Pt=function(e){var t,n=function(e,t,n){var o=e.key,r=e.altKey,i=e.ctrlKey,a=e.metaKey;if(Me){var l=ke&&!t&&["ArrowDown","ArrowUp"].includes(o),c=ke&&["Escape","Tab"].includes(o);if(l||c)return N}if(!t&&["ArrowDown","ArrowUp","Enter"," "].includes(o))return P;if("Home"===o)return x;if("End"===o)return A;if("Backspace"===o||"Clear"===o||1===o.length&&" "!==o&&!r&&!i&&!a)return j;if(t){if("ArrowUp"===o&&r)return S;if("ArrowDown"===o&&!r)return _;if("ArrowUp"===o)return M;if("PageUp"===o)return L;if("PageDown"===o)return k;if("Escape"===o)return T;if("Enter"===o||" "===o||"Tab"===o)return S;if("ArrowRight"===o||"ArrowLeft"===o)return n?I:R}}(e,We,ae);switch(n){case N:return Me(e);case _:case M:return e.preventDefault(),e.stopPropagation(),function(e){var t=$e;if(e===_){var n=Math.max(Qe.length-1,nt.length-1);$e<n&&(t=$e+1)}else e===M&&(t=Math.max(0,$e-1));if(Xe(t),st(He.current)){var o=lt.current[t];ut(o,He.current)}}(n);case P:return e.preventDefault(),e.stopPropagation(),pt(e);case S:return e.preventDefault(),e.stopPropagation(),(t=Qe.length!==nt.length&&0===c.length?nt[$e]:Qe[$e])||(t=Ye),V(t,$e),void ze(!1);case T:return e.preventDefault(),e.stopPropagation(),ze(!1);case I:return void e.stopPropagation();case R:return ze(!1)}};xe=_e?"".concat(n,"-dropdown-label"):xe;var kt="id-no-result";return $e>=0&&(c.length>0&&c[$e]?kt="".concat(n,"-").concat(Q(c[$e])):nt.length>0&&nt[$e]&&(kt="".concat(n,"-").concat(Q(nt[$e])))),d.a.createElement(f.a,{id:n,className:"Dropdown__wrapper ".concat(oe," ").concat(We?"open":""),dataElement:U,disabled:W},!ce&&d.a.createElement("div",{className:i()(g(g({Dropdown:!0},oe,oe),"disabled",W)),role:"combobox","aria-haspopup":"listbox","aria-describedby":c.length>0?kt:null,"aria-expanded":We,"aria-activedescendant":We?kt:null,"aria-labelledby":xe,"aria-label":re,"aria-controls":"".concat(n,"-dropdown"),style:xt,onMouseDown:pt,onTouchEnd:pt,onKeyDown:Pt,ref:Ve,"aria-disabled":W,disabled:W,tabIndex:W?-1:0},d.a.createElement("div",{className:"picked-option"},d.a.createElement("div",{className:"picked-option-text",style:yt&&Z?q(vt):{}},_t(yt?wt:$||"")),d.a.createElement(a.a,{className:"arrow",disabled:W,glyph:"icon-chevron-".concat(We?C[ye]:ye),ariaHidden:!0}))),ce&&d.a.createElement("div",{ref:Ve,className:"display-button",role:"combobox","aria-expanded":We,"aria-controls":"".concat(n,"-dropdown"),"aria-labelledby":xe,"aria-label":re,tabIndex:W?-1:0,"aria-activedescendant":We?kt:null,onClick:pt,onKeyDown:Pt,onMouseDown:gt},ce(We)),d.a.createElement("div",{className:i()("Dropdown__items",{hide:!We,"dropdown-items-with-custom-display":ce,"dropdown-items-with-label":_e}),ref:He,role:"listbox",id:"".concat(n,"-dropdown"),style:At},d.a.createElement("div",{role:"group","aria-labelledby":xe},_e&&d.a.createElement("div",{className:"Dropdown__label",id:xe},Fe("".concat(D,".dropdownLabel"))),ve?d.a.cloneElement(ve,{onClose:dt}):St.length>0?E>1?F(St,E):St:d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{role:"option",id:"id-no-result","aria-disabled":"true","aria-selected":"true",className:i()("Dropdown__item","selected","active"),"data-testid":"sig-no-result"},Fe("message.noResults"))))),d.a.createElement("div",{"aria-live":"polite",style:{position:"absolute",insetInlineStart:"-9999px"}},it))}var F=function(e,t){var n=[],o=[];return e.forEach((function(e,r){r%t==0&&o.length>0&&(n.push(d.a.createElement("tr",{key:"row-".concat(r)},o)),o=[]),o.push(d.a.createElement("td",{key:r},e))})),o.length>0&&n.push(d.a.createElement("tr",{key:"row-".concat(e.length+1)},o)),d.a.createElement("table",null,d.a.createElement("tbody",null,n))};D.propTypes=O,D.defaultProps={items:[],images:[]};var B=D;t.a=B},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(46),n(12),n(94),n(33),n(30),n(24),n(35),n(8),n(56),n(64),n(11),n(31),n(13);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var a=["wc--toolData","wc-viewer","webviewer","default-toolData"],l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.localStorageEnabled=void 0!==window.localStorage&&null!==window.localStorage}catch(e){console.error("window.localStorage unavailable. Disabling local storage."),this.localStorageEnabled=!1}},(t=[{key:"setItem",value:function(e,t){var n=this;return new Promise((function(o){n.localStorageEnabled?(window.localStorage.setItem(e,t),o()):(console.warn("Local storage is disabled. Cannot set item:",e),o())}))}},{key:"setItemSynchronous",value:function(e,t){this.localStorageEnabled?window.localStorage.setItem(e,t):console.warn("Local storage is disabled. Cannot set item:",e)}},{key:"getItem",value:function(e){var t=this;return new Promise((function(n){t.localStorageEnabled?n(window.localStorage.getItem(e)):(console.warn("Local storage is disabled. Cannot get item:",e),n(null))}))}},{key:"getItemSynchronous",value:function(e){return this.localStorageEnabled?window.localStorage.getItem(e):(console.warn("Local storage is disabled. Cannot get item:",e),null)}},{key:"removeKey",value:function(e){var t=this;return new Promise((function(n){t.localStorageEnabled?(window.localStorage.removeItem(e),n()):(console.warn("Local storage is disabled. Cannot remove item:",e),n())}))}},{key:"removeKeySynchronous",value:function(e){this.localStorageEnabled?window.localStorage.removeItem(e):console.warn("Local storage is disabled. Cannot remove item:",e)}},{key:"enableLocalStorage",value:function(){this.localStorageEnabled=!0}},{key:"disableLocalStorage",value:function(){Object.keys(window.localStorage).forEach((function(e){a.some((function(t){return e.includes(t)}))&&window.localStorage.removeItem(e)})),this.localStorageEnabled=!1}},{key:"isLocalStorageEnabled",value:function(){return this.localStorageEnabled}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();t.a=new l},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c}));var o=n(65),r=.05,i=99.99,a=function(){return r},l=function(){return Object(o.p)()?2:i},c=[.1,.25,.5,1,1.25,1.5,2,4,8,16,64];t.a={setMinZoomLevel:function(e){r=e},setMaxZoomLevel:function(e){i=e},getMinZoomLevel:a,getMaxZoomLevel:l}},function(e,t,n){"use strict";function o(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return o[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"k",(function(){return s})),n.d(t,"m",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return b}));n(82),n(84),n(44),n(94),n(35),n(8),n(17);var o=n(5),r=window.Core.SpreadsheetEditor.SpreadsheetEditorEditMode,i=["8","9","10","11","12","14","18","24","30","36","48","60","72"],a={Left:"left",Center:"center",Right:"right",Top:"top",Middle:"middle",Bottom:"bottom"},l={Copy:"copy",Paste:"paste",Cut:"cut"},c=function(e,t){return e.some((function(e){return e===t}))},u={1:"top",2:"middle",3:"bottom"},s={1:"left",2:"center",3:"right"},d={1:"overflow",2:"wrap",3:"clip"},p={calendarFormat:"MM/dd/yyyy",clockHourFormat:"hh:mm:ss AM/PM",calendarTimeFormat:"MM/dd/yyyy h:mm:ss",currencyFormat:"$0.00",currencyRoundedFormat:"$0",financialFormat:"#,##0.00;(#,##0.00)",accountingFormat:"_($* #,##0.00_);_($* (#,##0.00);",numberFormat:"#,##0.00",percentFormat:"0.00%",plainTextFormat:"@",automaticFormat:"General"},f="spreadsheet-editor",m=[o.a.CONTEXT_MENU_POPUP],h=[o.a.SEARCH_PANEL_REPLACE_CONTAINER],b=["jpg","jpeg","png","bmp","webp","gif"].map((function(e){return".".concat(e)})).join(", ")},function(e,t,n){"use strict";var o=n(58),r=n(70),i=n(277).indexOf,a=n(192),l=r([].indexOf),c=!!l&&1/l([1],1,-0)<0,u=a("indexOf");o({target:"Array",proto:!0,forced:c||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?l(this,e,t)||0:i(this,e,t)}})},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return f}));n(9),n(10),n(14),n(38),n(21),n(20),n(12),n(22),n(386),n(18),n(16),n(8),n(17),n(19),n(11),n(13),n(93);var o=n(23),r=n(1),i=n(306);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function c(e,t){var n=-1;if(!t)return n;for(var o=0;o<e.length;o++)if(e[o]===t){n=o;break}return n}function u(e,t){"Escape"===e.key&&t(e)}function s(e){var t=a(Object(i.a)(),1)[0];return t("action.buttonPressed",{buttonName:t(e)})}function d(e){if(e){var t=document.createElement("div"),n="speak-".concat(Date.now());t.setAttribute("id",n),t.setAttribute("aria-live","assertive"),t.classList.add("visually-hidden");var r=window.isApryseWebViewerWebComponent?Object(o.a)():document.body;r.appendChild(t),window.setTimeout((function(){Object(o.a)().getElementById(n).innerText=e}),100),window.setTimeout((function(){r.removeChild(Object(o.a)().getElementById(n))}),1e3)}}function p(){var e,t=null===(e=r.a.getDocumentViewer())||void 0===e?void 0:e.getAccessibleReadingOrderManager();null==t||t.endAccessibleReadingOrderMode()}function f(e,t){var n=e.getState(),o=n.viewer.activeDocumentViewerKey;n.viewer.shouldAddA11yContentToDOM&&r.a.getDocument(o).loadPageText(t,(function(e){var n="pageText".concat(t),i=r.a.getViewerElement(o).querySelector("#pageContainer".concat(t)),a=i.querySelector("#".concat(n));a&&i.removeChild(a);var l=document.createElement("div");l.tabIndex=0,l.textContent="Page ".concat(t,".\n").concat(e,"\nEnd of page ").concat(t,"."),l.style="font-size: 5px; overflow: auto; position: absolute; z-index: -99999; top: 0; bottom: 0;",l.id=n,i.prepend(l)}))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return y}));n(9),n(10),n(14),n(82),n(21),n(20),n(12),n(22),n(146),n(18),n(16),n(35),n(8),n(137),n(17),n(19),n(11),n(13);var o=n(1),r=n(74),i=n(23);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function c(e){var t=function(e){var t={};e.sort((function(e,t){return e.startZoom-t.startZoom}));for(var n=0;n<e.length;n++){var o=e[n],r=e[n+1];t["".concat(o.step/100)]=r?[o.startZoom/100,r.startZoom/100]:[o.startZoom/100,null]}return t}(Object(i.c)().instance.UI.getZoomStepFactors()),n=Object.keys(t).find((function(n){var o=t[n];return function(e,t){var n=a(t,2),o=n[0],r=n[1];if(null===o)return e<r;if(null===r)return e>=o;return e>=o&&e<r}(e,o)}));return parseFloat(n)}function u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t?Object(i.a)().querySelector("#DocumentContainer".concat(n)):Object(i.a)().querySelectorAll(".DocumentContainer")[0],r=t?Object(i.a)().querySelector("#Document".concat(n)):Object(i.a)().querySelectorAll(".document")[0],a=window.innerWidth/2,l=window.innerHeight/2,c=(a+o.scrollLeft-r.offsetLeft)*e-a+o.offsetLeft,u=(l+o.scrollTop-r.offsetTop)*e-l+o.offsetTop;return{x:c,y:u}}var s=[],d=-1;function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=t/e,a=u(i,n,r),l=a.x,c=a.y;o.a.zoomTo(t,l,c,r),d=t}function f(){s=[]}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f(),o.a.fitToWidth(e)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;f(),o.a.fitToPage(e)}function b(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=o.a.getZoom(t);if(d>0&&n!==d&&f(),n!==Object(r.c)()){var i=c(n);s.length>0&&s[s.length-1]<0?i=Math.abs(s.pop()):s.push(i);var a=Math.min(n+i,Object(r.c)());p(n,a,e,t)}}function g(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=o.a.getZoom(t);if(d>0&&n!==d&&f(),n!==Object(r.d)()){var i=c(n);s.length>0&&s[s.length-1]>0?i=s.pop():s.push(-1*i);var a=Math.max(n-i,Object(r.d)());p(n,a,e,t)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;f();var r=o.a.getZoom(n);p(r,e,t,n)}},function(e,t,n){"use strict";n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return b}));n(34),n(12),n(44),n(8),n(88),n(17),n(116),n(11),n(13);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=n(4),c=n(3),u=n(174),s=n(101),d=function(e){var t,n;if(!e)return e;var o=e;return null!==(t=o)&&void 0!==t&&t.toHexString&&(o=o.toHexString()),null!==(n=o)&&void 0!==n&&n.toLowerCase&&(o=o.toLowerCase()),o},p=function(e){return!!e&&0===e.A},f=function(e){if(e===s.a)return new window.Core.Annotations.Color(255,255,255,0);if(/^#?[0-9A-F]{6}$/i.test(e)){var t=Object(u.b)(e);return new window.Core.Annotations.Color(t.r,t.g,t.b,t.a)}return e},m=r.a.createElement("svg",{width:"100%",height:"100%",className:a()("transparent")},r.a.createElement("line",{stroke:"#d82e28",x1:"0",y1:"100%",x2:"100%",y2:"0",strokeWidth:"2",strokeLinecap:"round"})),h=function(e,t){var n=l.a.getCustomColor(t.getState());return e(c.a.setCustomColor(null)),n},b=function(e){var t=new Set;return Object.values(e).map((function(e){var t;return null==e||null===(t=e.color)||void 0===t?void 0:t.toLowerCase()})).filter((function(e){return!!e&&(!t.has(e)&&(t.add(e),!0))}))}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(12),n(33),n(30),n(24),n(8),n(11),n(13);var o=n(6),r=n(15),i=n.n(r),a=n(43);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=Object(o.b)((function(e,t){var n=t.isNotClickableSelector,o=t.className,r=t.disabled;return{className:i()(c({ActionButton:!0},o,!!o)),disabled:r||n&&n(e)}}),(function(e,t){return{onClick:t.shouldPassActiveDocumentViewerKeyToOnClickHandler||!t.onClick?t.onClick:function(){return t.onClick(e)}}}))(a.a);t.a=u},function(e,t,n){"use strict";var o=n(58),r=n(126).find,i=n(217),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){var o=n(52),r=n(242),i=n(95),a=n(275),l=n(240),c=n(499),u=r("wks"),s=o.Symbol,d=s&&s.for,p=c?s:s&&s.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!l&&"string"!=typeof u[e]){var t="Symbol."+e;l&&i(s,e)?u[e]=s[e]:u[e]=c&&d?d(t):p(t)}return u[e]}},function(e,t,n){"use strict";var o=n(58),r=n(70),i=n(273),a=n(139),l=n(192),c=r([].join),u=i!=Object,s=l("join",",");o({target:"Array",proto:!0,forced:u||!s},{join:function(e){return c(a(this),void 0===e?",":e)}})},function(e,t,n){var o=n(272),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},function(e,t,n){var o=n(58),r=n(150),i=n(177),a=n(516),l=n(430),c=n(99),u=n(100),s=n(167),d=n(71),p=r("Reflect","construct"),f=Object.prototype,m=[].push,h=d((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),b=!d((function(){p((function(){}))})),g=h||b;o({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){l(e),c(t);var n=arguments.length<3?e:l(arguments[2]);if(b&&!h)return p(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return i(m,o,t),new(i(a,e,o))}var r=n.prototype,d=s(u(r)?r:f),g=i(e,d,t);return u(g)?g:d}})},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,n){var o=n(58),r=n(534).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){var o=n(71);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var o=n(132),r=function(e){return function(t){if(t){var n=t.nativeEvent,r=t.currentTarget.getAttribute("data-element");if(!r)return console.warn("You used the useFocusHandler hook on an element without a data-element attribute. Please add a dataElement for the focus transfer to work correctly."),void e(t);"mouse"===n.pointerType||n.detail>0?o.a.clear():""!==n.pointerType&&void 0!==n.pointerType||o.a.push(r),e(t)}else e()}};t.a=r},function(e,t,n){"use strict";var o,r,i,a=n(446),l=n(89),c=n(52),u=n(87),s=n(100),d=n(95),p=n(213),f=n(241),m=n(159),h=n(112),b=n(104).f,g=n(166),y=n(244),v=n(218),w=n(83),E=n(275),C=c.Int8Array,O=C&&C.prototype,T=c.Uint8ClampedArray,S=T&&T.prototype,x=C&&y(C),A=O&&y(O),_=Object.prototype,P=c.TypeError,k=w("toStringTag"),L=E("TYPED_ARRAY_TAG"),M=E("TYPED_ARRAY_CONSTRUCTOR"),j=a&&!!v&&"Opera"!==p(c.opera),I=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},D=function(e){if(!s(e))return!1;var t=p(e);return d(R,t)||d(N,t)};for(o in R)(i=(r=c[o])&&r.prototype)?m(i,M,r):j=!1;for(o in N)(i=(r=c[o])&&r.prototype)&&m(i,M,r);if((!j||!u(x)||x===Function.prototype)&&(x=function(){throw P("Incorrect invocation")},j))for(o in R)c[o]&&v(c[o],x);if((!j||!A||A===_)&&(A=x.prototype,j))for(o in R)c[o]&&v(c[o].prototype,A);if(j&&y(S)!==A&&v(S,A),l&&!d(A,k))for(o in I=!0,b(A,k,{get:function(){return s(this)?this[L]:void 0}}),R)c[o]&&m(c[o],L,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_CONSTRUCTOR:M,TYPED_ARRAY_TAG:I&&L,aTypedArray:function(e){if(D(e))return e;throw P("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!v||g(x,e)))return e;throw P(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,o){if(l){if(n)for(var r in R){var i=c[r];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}A[e]&&!n||h(A,e,n?t:j&&O[e]||t,o)}},exportTypedArrayStaticMethod:function(e,t,n){var o,r;if(l){if(v){if(n)for(o in R)if((r=c[o])&&d(r,e))try{delete r[e]}catch(e){}if(x[e]&&!n)return;try{return h(x,e,n?t:j&&x[e]||t)}catch(e){}}for(o in R)!(r=c[o])||r[e]&&!n||h(r,e,t)}},isView:function(e){if(!s(e))return!1;var t=p(e);return"DataView"===t||d(R,t)||d(N,t)},isTypedArray:D,TypedArray:x,TypedArrayPrototype:A}},function(e,t,n){"use strict";var o={FULL_SIGNATURE:window.Core.Tools.SignatureCreateTool.SignatureTypes.FULL_SIGNATURE,INITIALS:window.Core.Tools.SignatureCreateTool.SignatureTypes.INITIALS};t.a=o},function(e,t,n){n(686),n(687)},function(e,t,n){"use strict";var o=n(58),r=n(126).some;o({target:"Array",proto:!0,forced:!n(192)("some")},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(70),r=n(108),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(26),n(16),n(59),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(4),a=n(6),l=n(3),c=n(2),u=n.n(c),s=(n(1180),n(43)),d=n(90),p=n(66),f=n(15),m=n.n(f);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var y=function(e){var t,n=Object(o.useRef)(),c=Object(p.b)(),u=e.dataElement,f=e.title,g=e.disabled,y=e.img,v=e.label,w=e.toggleElement,E=e.setFlyoutTriggerRef,C=void 0===E?null:E,O=e.onToggle,T=e.className,S=e.onClick,x=void 0===S?null:S,A=Object(a.e)((function(e){return i.a.isElementOpen(e,w)})),_=Object(a.e)(i.a.getFlyoutMap,a.c),P=Object(a.e)((function(e){return i.a.isElementDisabled(e,w)})),k=Object(a.e)((function(e){return i.a.isElementDisabled(e,u)||i.a.isDisabledViewOnly(e,w)})),L=null===(t=Object(a.e)(i.a.getFeatureFlags))||void 0===t?void 0:t.customizableUI,M=b(Object(o.useState)(A),2),j=M[0],I=M[1],R=b(Object(o.useState)(g),2),N=R[0],D=R[1],F=!(null==_||!_[w]);Object(o.useEffect)((function(){I(A),O&&O(A)}),[A]),Object(o.useEffect)((function(){D(P||g)}),[P,g]);var B=Object(a.d)(),H=Object(d.a)((function(e){e.stopPropagation(),x&&x(e),F&&(C?C():B(l.a.setFlyoutToggleElement(u))),B(l.a.toggleElement(w))}));return k?null:r.a.createElement("div",{className:m()({ToggleElementButton:!0,"legacy-ui":!L,"is-mobile":c}),ref:n},r.a.createElement(s.a,h({isActive:j,dataElement:u,img:y,label:v,title:f,onClick:H,disabled:N,className:T,ariaPressed:F?void 0:j,ariaExpanded:F?j:void 0},e),e.children))};y.propTypes={dataElement:u.a.string.isRequired,title:u.a.string,disabled:u.a.bool,img:u.a.string,label:u.a.oneOfType([u.a.string,u.a.number]),toggleElement:u.a.string.isRequired,setFlyoutTriggerRef:u.a.func,className:u.a.string,onToggle:u.a.func,onClick:u.a.func};var v=y;t.a=v},function(e,t,n){var o=n(52),r=n(213),i=o.String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";n(16);var o=n(1),r=n(297),i=n(3),a=n(4),l=n(5);t.a=function(e,t){var n,c=e.dispatch,u=(0,e.getState)(),s=u.featureFlags.customizableUI,d=(null===(n=a.a.getToolButtonObject(u,t))||void 0===n?void 0:n.group)||"";if(c(d?i.a.openElement(l.a.TOOLS_OVERLAY):i.a.closeElement(l.a.TOOLS_OVERLAY)),o.a.getToolMode().name===t&&Object(r.a)(t))c(i.a.toggleElement(l.a.TOOL_STYLE_POPUP));else{if(c(i.a.closeElement(l.a.TOOL_STYLE_POPUP)),c(i.a.setActiveToolGroup(d)),s){var p=a.a.getRibbonAssociatedWithTool(u,t);p&&e.dispatch(i.a.setActiveCustomRibbon(p))}o.a.setToolMode(t)}}},function(e,t,n){var o=n(52),r=n(100),i=o.String,a=o.TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not an object")}},function(e,t,n){var o=n(87);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c}));var o=["#e44234","#ff8d00","#ffcd45","#5cc96e","#25d2d1","#597ce2","#c544ce","#7d2e25","#a84f1d","#e99e38","#347842","#167e7d","#354a87","#76287b","#ffffff","#cdcdcd","#9c9c9c","#696969","#272727","#000000"],r=["#000000","#272727","#696969","#9c9c9c","#cdcdcd","#ffffff","#7d2e25","#a84f1d","#e99e38","#347842","#167e7d","#354a87","#76287b","#e44234","#ff8d00","#ffcd45","#5cc96e","#25d2d1","#597ce2","#c544ce"],i="#FFFFFF00",a="#000000",l="#000000",c={verticalAlignment:2,horizontalAlignment:1,wrapText:3,font:{fontFace:"Arial",pointSize:8,bold:!1,italic:!1,underline:!1,strikeout:!1,color:a},backgroundColor:null,getCellBorder:function(){return{}}}},function(e,t,n){var o=n(245),r=n(1183),i=n(1185),a=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,s,d,p,f,m=0,h=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=c,o=u;return c=u=void 0,m=t,d=e.apply(o,n)}function v(e){return m=e,p=setTimeout(E,t),h?y(e):d}function w(e){var n=e-f;return void 0===f||n>=t||n<0||b&&e-m>=s}function E(){var e=r();if(w(e))return C(e);p=setTimeout(E,function(e){var n=t-(e-f);return b?l(n,s-(e-m)):n}(e))}function C(e){return p=void 0,g&&c?y(e):(c=u=void 0,d)}function O(){var e=r(),n=w(e);if(c=arguments,u=this,f=e,n){if(void 0===p)return v(f);if(b)return clearTimeout(p),p=setTimeout(E,t),y(f)}return void 0===p&&(p=setTimeout(E,t)),d}return t=i(t)||0,o(n)&&(h=!!n.leading,s=(b="maxWait"in n)?a(i(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g),O.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=f=u=p=void 0},O.flush=function(){return void 0===p?d:C(r())},O}},function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return E})),n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return T}));n(9),n(10),n(14),n(32),n(125),n(34),n(27),n(46),n(12),n(44),n(33),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(88),n(474),n(17),n(19),n(64),n(11),n(115),n(172),n(136),n(31),n(13);var o,r=n(0),i=n.n(r),a=n(1),l=n(7),c=n(4),u=n(3),s=n(51),d=n(303),p=n(62),f=n(5),m=n(15),h=n.n(m);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){o=e},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onClick,r=void 0===n?void 0:n,i=t.children,s=void 0===i?void 0:i,m=t.useOverrideClickOnly,h=void 0!==m&&m,b=t.extraProps,g=void 0===b?{}:b,v=t.skipCheck,w=void 0!==v&&v,C=e.properties||e.props||e,T=C.type,x=C.label,A=C.title,_=C.dataElement,P=C.img,k=C.icon,L=C.items,M=C.toolName,j=(null==C?void 0:C.dataElement)&&o&&c.a.isElementDisabled(o.getState(),_);if(!w&&(!C||!T||!Object.values(l.k).includes(T)||j))return null;if(T===l.k.DIVIDER)return"divider";S(g),S(C);var I=y(y({label:x||A||(_?O(_):""),onClick:function(){!h&&C.onClick&&C.onClick(),r&&r()},icon:k||P,children:s},g),C);switch(T){case l.k.STATEFUL_BUTTON:return C;case l.k.FLYOUT:delete I.items,I.children=C.items;break;case l.k.BUTTON:I.className="FlyoutButton";break;case l.k.TOGGLE_BUTTON:var R=c.a.getFlyoutMap(o.getState())[C.toggleElement];if(R){I.children=R.items;break}I.onClick=function(){o.dispatch(u.a.toggleElement(C.toggleElement))};break;case l.k.VIEW_CONTROLS:var N,D=c.a.getFlyoutMap(o.getState()),F=null===(N=D[f.a.VIEW_CONTROLS_FLYOUT])||void 0===N?void 0:N.items;I.children=F;break;case l.k.ZOOM:var B=c.a.getZoomList(o.getState());I.className="ZoomFlyoutMenu",I.icon="icon-magnifying-glass",I.children=Object(d.a)({zoomOptionsList:B,dispatch:o.dispatch,size:1});break;case l.k.RIBBON_GROUP:I.className="FlyoutRibbonGroup",I.label="option.toolbarGroup.flyoutLabel",I.children=L;break;case l.k.GROUPED_ITEMS:case l.k.MODULAR_HEADER:I.className="FlyoutGroupedItems",I.children=L.map((function(e){return E(e)}));break;case l.k.TOOL_BUTTON:I.className="FlyoutToolButton",I.toolName=M,I.icon=P,I.label=x;break;case l.k.PRESET_BUTTON:var H,V,U,G,W=p.b[C.buttonType];W||(W=p.b[C.dataElement]);var z=C.dataElement||(null===(H=W)||void 0===H?void 0:H.dataElement),Z=C.img||(null===(V=W)||void 0===V?void 0:V.icon),Y=C.title||(null===(U=W)||void 0===U?void 0:U.title);I.label=null===(G=W)||void 0===G?void 0:G.label,I.dataElement=z,I.icon=Z,I.title=Y,I.type=T;break;case l.k.PAGE_CONTROLS:var q,K=c.a.getFlyoutMap(o.getState()),$=null===(q=K[f.a.PAGE_CONTROLS_FLYOUT])||void 0===q?void 0:q.items;I.children=$;break;case l.k.PAGE_NAVIGATION_BUTTON:var X=o.getState(),J=X.viewer.activeDocumentViewerKey,Q=I.dataElement===f.a.PREVIOUS_PAGE_BUTTON?1===a.a.getCurrentPage():a.a.getCurrentPage()===X.document.totalPages[J];I.disabled=Q;break;case l.k.FONT_SIZE_DROPDOWN:I.type=T,I.className="FontSizeDropdown";break;case l.k.FONT_FAMILY_DROPDOWN:I.type=T,I.className="FontFamilyDropdown";break;case l.k.STYLE_PRESET_DROPDOWN:I.type=T,I.className="StylePresetDropdown";break;case l.k.OFFICE_EDITOR_MODE_DROPDOWN:I.type=T,I.className="OfficeEditorModeDropdown"}return I},C=function(e){var t,n,o;return e===l.i.DIVIDER?l.i.DIVIDER:"string"==typeof e&&e!==l.i.DIVIDER?l.i.LABEL:e.toolName?l.i.TOOL_BUTTON:e.dataElement===l.i.ZOOM_OPTIONS_BUTTON||"ZoomFlyoutMenu"===e.className?l.i.ZOOM_OPTIONS_BUTTON:null!==(t=e.dataElement)&&void 0!==t&&t.includes("zoom-button-")?l.i.ZOOM_BUTTON:null!==(n=e.dataElement)&&void 0!==n&&n.includes("line-spacing-button-")?l.i.LINE_SPACING_OPTIONS_BUTTON:e.dataElement===l.i.PAGE_NAVIGATION_INPUT?l.i.PAGE_NAVIGATION_INPUT:null!==(o=e.dataElement)&&void 0!==o&&o.includes("office-editor-list-type-")?l.i.LIST_TYPE_BUTTON:e.tabPanel?l.i.TAB_PANEL_ITEM:e.toolbarGroup?l.i.RIBBON_ITEM:e.buttonType?l.i.PRESET_BUTTON:l.i.BUTTON},O=function(e){try{var t=new RegExp("([^[\\p{L}\\d]+|(?<=[\\p{Ll}\\d])(?=\\p{Lu})|(?<=\\p{Lu})(?=\\p{Lu}[\\p{Ll}\\d])|(?<=[\\p{L}\\d])(?=\\p{Lu}[\\p{Ll}\\d]))","gu");return e.replace(t," ")}catch(t){return e}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[e],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.every((function(e){return!e.icon&&!e.img&&!e.toolName})),r=!e.icon&&!e.img&&!e.toolName;if(r&&o)return null;var a=e.icon?e.icon:e.img,l=null==a?void 0:a.trim().startsWith("data:"),c=a&&!l&&(!a.includes(".")||a.startsWith("<svg"));return c?i.a.createElement(s.a,{className:h()({"menu-icon":!0,disabled:n}),glyph:a}):a&&!c?i.a.createElement("img",{className:h()({"menu-icon":!0,disabled:n}),alt:"Flyout item icon",src:a}):i.a.createElement("div",{className:h()({"menu-icon":!0,disabled:n})})},S=function(e){for(var t in e)void 0!==e[t]&&null!==e[t]||delete e[t]}},function(e,t,n){var o=n(52),r=n(89),i=n(501),a=n(502),l=n(99),c=n(274),u=o.TypeError,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=r?a?function(e,t,n){if(l(e),t=c(t),l(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=d(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(l(e),t=c(t),l(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",o="second",r="minute",i="hour",a="day",l="week",c="month",u="quarter",s="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},b=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},g={s:b,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+b(o,2,"0")+":"+b(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(o,c),i=n-r<0,a=t.clone().add(o+(i?-1:1),c);return+(-(o+(n-r)/(i?r-a:a-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:s,w:l,d:a,D:d,h:i,m:r,s:o,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",v={};v[y]=h;var w=function(e){return e instanceof T},E=function e(t,n,o){var r;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();v[i]&&(r=i),n&&(v[i]=n,r=i);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var l=t.name;v[l]=t,r=l}return!o&&r&&(y=r),r||!o&&y},C=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},O=g;O.l=E,O.i=w,O.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function h(e){this.$L=E(e.locale,null,!0),this.parse(e)}var b=h.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(f);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return O},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},b.isAfter=function(e,t){return C(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<C(e)},b.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var n=this,u=!!O.u(t)||t,p=O.p(e),f=function(e,t){var o=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?o:o.endOf(a)},m=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,b=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(p){case s:return u?f(1,0):f(31,11);case c:return u?f(1,b):f(0,b+1);case l:var v=this.$locale().weekStart||0,w=(h<v?h+7:h)-v;return f(u?g-w:g+(6-w),b);case a:case d:return m(y+"Hours",0);case i:return m(y+"Minutes",1);case r:return m(y+"Seconds",2);case o:return m(y+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var l,u=O.p(e),p="set"+(this.$u?"UTC":""),f=(l={},l[a]=p+"Date",l[d]=p+"Date",l[c]=p+"Month",l[s]=p+"FullYear",l[i]=p+"Hours",l[r]=p+"Minutes",l[o]=p+"Seconds",l[n]=p+"Milliseconds",l)[u],m=u===a?this.$D+(t-this.$W):t;if(u===c||u===s){var h=this.clone().set(d,1);h.$d[f](m),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[O.p(e)]()},b.add=function(n,u){var d,p=this;n=Number(n);var f=O.p(u),m=function(e){var t=C(p);return O.w(t.date(t.date()+Math.round(e*n)),p)};if(f===c)return this.set(c,this.$M+n);if(f===s)return this.set(s,this.$y+n);if(f===a)return m(1);if(f===l)return m(7);var h=(d={},d[r]=e,d[i]=t,d[o]=1e3,d)[f]||1,b=this.$d.getTime()+n*h;return O.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var o=e||"YYYY-MM-DDTHH:mm:ssZ",r=O.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,u=n.months,s=function(e,n,r,i){return e&&(e[n]||e(t,o))||r[n].slice(0,i)},d=function(e){return O.s(i%12||12,e,"0")},f=n.meridiem||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:O.s(l+1,2,"0"),MMM:s(n.monthsShort,l,u,3),MMMM:s(u,l),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:s(n.weekdaysMin,this.$W,c,2),ddd:s(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:O.s(i,2,"0"),h:d(1),hh:d(2),a:f(i,a,!0),A:f(i,a,!1),m:String(a),mm:O.s(a,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:r};return o.replace(m,(function(e,t){return t||h[e]||r.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(n,d,p){var f,m=O.p(d),h=C(n),b=(h.utcOffset()-this.utcOffset())*e,g=this-h,y=O.m(this,h);return y=(f={},f[s]=y/12,f[c]=y,f[u]=y/3,f[l]=(g-b)/6048e5,f[a]=(g-b)/864e5,f[i]=g/t,f[r]=g/e,f[o]=g/1e3,f)[m]||g,p?y:O.a(y)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return v[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=E(e,t,!0);return o&&(n.$L=o),n},b.clone=function(){return O.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},h}(),S=T.prototype;return C.prototype=S,[["$ms",n],["$s",o],["$m",r],["$H",i],["$W",a],["$M",c],["$y",s],["$D",d]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=E,C.isDayjs=w,C.unix=function(e){return C(1e3*e)},C.en=v[y],C.Ls=v,C.p={},C}()},function(e,t,n){"use strict";n(9),n(10),n(14),n(124),n(27),n(21),n(77),n(20),n(12),n(22),n(128),n(18),n(26),n(16),n(59),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(6);n(34),n(46),n(64),n(31);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c,u,s,d,p,f,m,h=(c=[],u=!1,s=function(e){u=e,c.forEach((function(e){return e()}))},d=function(e){"Tab"===e.key&&(s(!0),f())},p=function(){s(!1),m()},f=function(){window.removeEventListener("keydown",d),window.addEventListener("mousedown",p)},m=function(){window.removeEventListener("mousedown",p),window.addEventListener("keydown",d)},{get value(){return u},subscribe:function(e){return c.includes(e)||c.push(e),1===c.length&&(u?f():m()),function(){0===(c=c.filter((function(t){return t!==e}))).length&&(window.removeEventListener("mousedown",p),window.removeEventListener("keydown",d))}}}),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Object(o.useState)(e.value),n=a(t,2),r=n[0],i=n[1];return Object(o.useEffect)((function(){return e.subscribe((function(){return i(e.value)}))}),[e]),r},g=n(4),y=n(15),v=n.n(y),w=n(486),E=n(373),C=n(51),O=(n(644),n(2)),T=n.n(O),S=["label","leftLabel","className","children","id","radio","isSwitch","center","disabledLabelChange","onChange","onFocus","onBlur","checked","disabled","name","dataElement"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var P=function(){var e=[];return{subscribe:function(t,n){return e.forEach((function(e){e.name===t&&e.subscriber()})),e.push({name:t,subscriber:n}),function(){var t=e.findIndex((function(e){return e.subscriber===n}));t>-1&&e.splice(t,1)}}}}(),k=Object(o.forwardRef)((function(e,t){var n=e.label,a=e.leftLabel,l=e.className,c=e.children,u=e.id,s=e.radio,d=e.isSwitch,p=e.center,f=e.disabledLabelChange,m=e.onChange,h=e.onFocus,y=e.onBlur,O=e.checked,T=e.disabled,_=e.name,k=e.dataElement,L=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,S),M=Object(o.useRef)(null),j=b(),I=Object(w.a)(h,y),R=I.focused,N=I.handleOnFocus,D=I.handleOnBlur,F=Object(E.a)(u),B=A(Object(o.useState)(O),2),H=B[0],V=B[1],U=Object(i.e)((function(e){return g.a.isElementDisabled(e,k)}));Object(o.useImperativeHandle)(t,(function(){return M.current})),Object(o.useEffect)((function(){void 0!==O&&V(O)}),[O]);Object(o.useEffect)((function(){if(_&&s)return P.subscribe(_,(function(){M.current&&M.current.checked!==H&&V(M.current.checked)}))}),[H,_,s]);var G=v()("ui__base ui__choice",{"ui__choice--radio":s,"ui__choice--leftLabel":a,"ui__choice--checked":H,"ui__choice--center":p,"ui__choice--disabled":T},l),W=v()("ui__choice__input",{"ui__choice__input--switch":d}),z=d?v()("ui__choice__input__switch",{"ui__choice__input__switch--checked":H,"ui__choice__input__switch--disabled":T,"ui__choice__input__switch--focus":j&&R}):v()("ui__choice__input__check",{"ui__choice__input__check--checked":H,"ui__choice__input__check--disabled":T,"ui__choice__input__check--focus":j&&R}),Z=v()("ui__choice__label",{"ui__choice__label--disabled":T&&f}),Y=Object(o.useMemo)((function(){return n?r.a.createElement("label",{className:Z,htmlFor:F},n):null}),[n,Z,F]);return U?null:r.a.createElement("span",{className:G},a&&Y,r.a.createElement("span",{className:W},d?r.a.createElement("div",{className:z},r.a.createElement("div",{className:"ui__choice__input__toggle"})):r.a.createElement("div",{className:z},H&&!s&&r.a.createElement(C.a,{glyph:"icon-check",className:"ui__choice__input__icon"})),r.a.createElement("input",x({},L,{id:F,type:s?"radio":"checkbox",ref:M,checked:O,disabled:T,name:_,onChange:function(e){void 0===O&&V(e.target.checked),null==m||m(e)},onFocus:N,onBlur:D}),c)),!a&&Y)}));k.displayName="Choice",k.propTypes={dataElement:T.a.string,label:T.a.node,leftLabel:T.a.bool,radio:T.a.bool,isSwitch:T.a.bool,center:T.a.bool,disabledLabelChange:T.a.bool,className:T.a.string,id:T.a.string,onChange:T.a.func,onFocus:T.a.func,onBlur:T.a.func,checked:T.a.bool,disabled:T.a.bool,name:T.a.string,children:T.a.node};var L=k;t.a=L},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o={black:"#000000",white:"#FFFFFF",blue1LightMode:"#E7EDF3",blue1DarkDarkMode:"#192530",blue5:"#2B73AB",blue6:"#1A466B",gray0:"#FFFFFF",gray2:"#F1F3F5",gray4:"#CFD4DA",gray5:"#ADB5BD",gray6:"#818A92",gray7:"#697077",gray8:"#485056",gray9:"#343A40",gray10:"#21242A"},r={"text-color":o.gray9,"primary-button-hover":o.blue6},i=["#F1A099","#FFC67B","#FFE6A2","#80E5B1","#92E8E8","#A6A1E6","#E2A1E6","#E44234","#FF8D00","#FFCD45","#00CC63","#25D2D1","#4E7DE9","#C544CE","#88271F","#B54800","#F69A00","#007A3B","#167E7D","#2E4B8B","#76287B","#FFFFFF","#CDCDCD","#9C9C9C","#696969","#272727","#000000","transparency"]},function(e,t,n){var o=n(52),r=n(129),i=o.Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(27),n(46),n(12),n(33),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(64),n(11),n(31),n(13);var o=n(205),r=n(1),i=n(57),a=(n(307),n(308),n(309),n(16),n(238)),l=n.n(a),c=function(e,t){return null!=t&&t.extension?t.extension.toLowerCase():e?e instanceof File?e.name.split(".").pop().toLowerCase():(e instanceof Blob||e instanceof ArrayBuffer)&&null!=t&&t.filename?t.filename.split(".").pop().toLowerCase():l()(e)?e.split("?")[0].split("#")[0].split(".").pop().toLowerCase():null:null},u=n(39),s=n(3),d=n(5),p=n(7);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;(n=h(h({},g()),n)).docId=n.docId||n.documentId||null;var a=n.onLoadingProgress;if(n.onLoadingProgress=function(t){a&&a(t),e(s.a.setLoadingProgress(t))},n.password=y(n.password,e),n.xodOptions=v(n),"onError"in n){var l=n.onError;n.onError=function(e){Object(i.b)(e),l(e)}}else n.onError=i.b;e(s.a.closeElement(d.a.PASSWORD_MODAL));var u,f=c(t,n),m=n.initialMode===p.z.DOCX_EDITOR||n.enableOfficeEditing,b=n.initialMode===p.z.SPREADSHEET_EDITOR;return m&&p.x.includes(f)||b&&p.y.includes(f)?n.enableOfficeEditing=!0:n.enableOfficeEditing=!1,t?u=r.a.loadDocument(t,n,o).catch((function(){})):b?u=r.a.loadBlankSpreadsheet(n):m&&(u=r.a.loadBlankOfficeEditorDocument(n)),e(s.a.openElement(d.a.PROGRESS_MODAL)),u};var g=function(){return{startOffline:Object(u.a)("startOffline",!1),azureWorkaround:Object(u.a)("azureWorkaround",!1),webviewerServerURL:Object(u.a)("webviewerServerURL",""),fallbackToClientSide:Object(u.a)("fallbackToClientSide",!1),singleServerMode:Object(u.a)("singleServerMode",!1),webviewerServerRangeRequests:Object(u.a)("wvsRange",!0),forceClientSideInit:Object(u.a)("forceClientSideInit",!1),disableWebsockets:Object(u.a)("disableWebsockets",!1),cacheKey:Object(u.a)("cacheKey",null),officeOptions:JSON.parse(Object(u.a)("officeOptions",null)),rasterizerOptions:JSON.parse(Object(u.a)("rasterizerOptions",null)),streaming:Object(u.a)("streaming",null),useDownloader:Object(u.a)("useDownloader",!0),backendType:Object(u.a)("pdf",null),loadAsPDF:Object(u.a)("loadAsPDF",null),initialMode:Object(u.a)("initialMode",null),enableOfficeEditing:Object(u.a)("enableOfficeEditing",!1)}},y=function(e,t){var n,r=!1;return function(i){t(s.a.setPasswordAttempts(n++)),e||(e=""),r||"string"!=typeof e?(r&&1!==n&&console.error("Wrong password has been passed as an argument. WebViewer will open password modal."),Object(o.setCheckPasswordFunction)(i),t(s.a.openElement(d.a.PASSWORD_MODAL))):(i(e),r=!0,n=0)}},v=function(e){var t=e.xodOptions||{};return e.decryptOptions&&(t.decrypt=window.Core.Encryption.decrypt,t.decryptOptions=e.decryptOptions),e.decrypt&&(t.decrypt=e.decrypt),null!==e.streaming&&(t.streaming="true"===e.streaming||!0===e.streaming),e.azureWorkaround&&(t.azureWorkaround=e.azureWorkaround),e.startOffline&&(t.startOffline=e.startOffline),t}},function(e,t,n){"use strict";n(38),n(386),n(164),n(26),n(16),n(1186),n(40),n(35),n(137),n(93);var o=n(1),r=n(45),i=n(143),a=n(53),l=n(74),c=n(73),u="tap",s="doubleTap",d="pinch",p="pan",f="swipe",m={initialize:function(e,t){this.document=e,this.container=t,this.allowSwipe=!0,this.allowHorizontalSwipe=!0,this.allowVerticalSwipe=!1,this.verticalMomentum=0,this.horziontalMomentum=0,this.verticalLock=!1,this.horziontalLock=!1,this.enableTouchScrollLock=!0,this.startingScrollLeft=null,this.startingScrollTop=null,this._useNativeScroll=!1;try{var n=c.a.getItemSynchronous("webviewer-useNativeScroll");n&&(this._useNativeScroll=JSON.parse(n))}catch(e){console.warn("localStorage could not be accessed. ".concat(e.message))}this.touch={clientX:0,clientY:0,distance:0,horizontalDistance:0,verticalDistance:0,scale:1,zoom:1,type:""},this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.handleTouchCancel=this.handleTouchCancel.bind(this),this.container.addEventListener("touchstart",this.handleTouchStart,{passive:!1}),this.container.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.container.addEventListener("touchend",this.handleTouchEnd,{passive:!1}),this.container.addEventListener("touchcancel",this.handleTouchCancel,{passive:!1})},terminate:function(){this.container.removeEventListener("touchstart",this.handleTouchStart),this.container.removeEventListener("touchmove",this.handleTouchMove),this.container.removeEventListener("touchend",this.handleTouchEnd),this.container.removeEventListener("touchcancel",this.handleTouchCancel)},handleTouchStart:function(e){if("Pan"===o.a.getToolMode().name&&o.a.getDocumentViewer().isStylusModeEnabled()&&"stylus"===e.touches[0].touchType)return o.a.setToolMode(o.a.getTool("Pan").previouslyUsedTool.name),void function(e,t){if(!e.annotation){var n=t.clientX,o=t.clientY,r=t.screenX,i=t.screenY,a=t.pageX,l=t.pageY;e.pointerType="pen";var c=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,clientX:n,clientY:o,screenX:r,screenY:i,pageX:a,pageY:l,button:0,buttons:1});e.mouseLeftDown(c)}}(o.a.getToolMode(),e.touches[0]);switch(e.touches.length){case 1:var t=e.touches[0],n=this.container.clientWidth,i=this.document.clientWidth,a=this.touch.type===u&&this.getDistance(this.touch,t)<=10;this.touch={clientX:t.clientX,clientY:t.clientY,distance:0,scale:n/i,zoom:o.a.getZoom(),type:a?s:u,touchStartTimeStamp:Date.now(),stopMomentumScroll:!0,touchMoveCount:0},this.startingScrollLeft=this.container.scrollLeft,this.startingScrollTop=this.container.scrollTop,clearTimeout(this.doubleTapTimeout);break;case 2:e.cancelable&&e.preventDefault();var l=e.touches[0],c=e.touches[1],d=(l.clientX+c.clientX)/2,p=(l.clientY+c.clientY)/2,f=d-this.document.offsetLeft+this.container.scrollLeft,m=p-this.document.offsetTop+this.container.scrollTop;this.touch={previousPinchScale:0,marginLeft:this.document.offsetLeft,marginTop:parseFloat(window.getComputedStyle(this.document).marginTop),clientX:d,clientY:p,docX:f,docY:m,distance:this.getDistance(l,c),scale:1,zoom:o.a.getZoom(),touchStartTimeStamp:Date.now(),stopMomentumScroll:!0,touchMoveCount:0},r.h||(this.document.style.transformOrigin="".concat(f,"px ").concat(m,"px")),this.startingScrollLeft=this.container.scrollLeft,this.startingScrollTop=this.container.scrollTop}},axisLockThreshold:8,isScrollingVertically:function(){return Math.abs(this.verticalMomentum)>0&&0===this.horziontalMomentum||Math.abs(this.touch.verticalDistance)>this.axisLockThreshold*Math.abs(this.touch.horizontalDistance)},isScrollingHorziontally:function(){return Math.abs(this.horziontalMomentum)>0&&0===this.verticalMomentum||Math.abs(this.touch.horizontalDistance)>this.axisLockThreshold*Math.abs(this.touch.verticalDistance)},canLockScrolling:function(){var e=this.container,t=this.document,n=t.clientWidth<e.clientWidth||t.clientHeight<e.clientHeight,o=this.verticalLock||this.horziontalLock;return!n&&this.enableTouchScrollLock&&this.touch.touchMoveCount<6&&!o},handleScroll:function(e){this.useNativeScroll||(this.touch.horizontalDistance=this.touch.clientX-e.clientX,this.touch.verticalDistance=this.touch.clientY-e.clientY,this.canLockScrolling()&&(this.verticalLock=this.isScrollingVertically(),this.horziontalLock=this.isScrollingHorziontally()),this.enableTouchScrollLock&&(this.verticalLock&&(this.container.scrollTo(this.startingScrollLeft,this.container.scrollTop),this.touch.horizontalDistance=0),this.horziontalLock&&(this.container.scrollTo(this.container.scrollLeft,this.startingScrollTop),this.touch.verticalDistance=0)))},handleTouchMove:function(e){switch(e.touches.length){case 1:e.cancelable&&e.preventDefault();var t=e.touches[0];this.getDistance(this.touch,t)>10&&(this.touch.type=f),this.handleScroll(t),this.touch.touchMoveCount++;break;case 2:var n=e.touches[0],i=e.touches[1],a=o.a.getTool("Pan"),c=a.isPanning(),u=a.isPinching();if(c){this.touch.type=p,e.cancelable&&e.preventDefault();var s={clientX:(n.clientX+i.clientX)/2,clientY:(n.clientY+i.clientY)/2};this.getDistance(this.touch,s)>10&&(this.touch.type=f),this.handleScroll(s),this.touch.touchMoveCount++;break}if(u){if(this.touch.type=d,e.cancelable&&e.preventDefault(),this.touch.scale=this.getDistance(n,i)/this.touch.distance,this.touch.scale*this.touch.zoom<Object(l.d)()?this.touch.scale=Object(l.d)()/this.touch.zoom:this.touch.scale*this.touch.zoom>Object(l.c)()&&(this.touch.scale=Object(l.c)()/this.touch.zoom),r.h){var m=(this.touch.marginLeft-this.container.offsetLeft+(1-this.touch.scale)*this.touch.docX)/this.touch.scale,h=(this.touch.marginTop+(1-this.touch.scale)*this.touch.docY)/this.touch.scale;this.document.style.marginLeft="".concat(m,"px"),this.document.style.marginTop="".concat(h,"px"),this.document.style.zoom=this.touch.scale}else this.document.style.transform="scale(".concat(this.touch.scale,")");break}}},handleTouchEnd:function(e){var t=this;switch(this.touch.type){case u:this.doubleTapTimeout=setTimeout((function(){t.touch.type=""}),300),this.horziontalLock=!1,this.verticalLock=!1;break;case f:var n=!o.a.getDocumentViewer().isStylusModeEnabled(),a=this.isUsingAnnotationTools()&&n,c=this.isUsingPen()&&!n,p=this.container,m=this.document;if(!this.allowSwipe||a||c||o.a.getSelectedText().length||o.a.getSelectedAnnotations().length)return this.horziontalLock=!1,void(this.verticalLock=!1);var h=this.reachedBoundary(),b=h.reachedLeft,g=h.reachedTop,y=h.reachedRight,v=h.reachedBottom,w=.1*this.container.clientWidth,E=function(e){var t=e.horizontalDistance,n=e.verticalDistance,o=e.reachedLeft,r=e.reachedRight,i=e.reachedTop,a=e.reachedBottom,l=e.threshold,c=!1,u=!1,s=!1,d=!1;return Math.abs(t)>=Math.abs(n)?(c=r&&t>l,u=o&&t<-l):(s=a&&n>l,d=i&&n<-l),{swipedToRight:c,swipedToLeft:u,swipedToBottom:s,swipedToTop:d}}({horizontalDistance:this.touch.horizontalDistance,verticalDistance:this.touch.verticalDistance,reachedLeft:b,reachedRight:y,reachedTop:g,reachedBottom:v,threshold:w}),C=E.swipedToRight,O=E.swipedToLeft,T=E.swipedToBottom,S=E.swipedToTop,x=o.a.getCurrentPage(),A=o.a.getTotalPages(),_=Object(i.a)(),P=1===x,k=x===A,L=!o.a.isContinuousDisplayMode(),M=m.clientWidth<p.clientWidth||m.clientHeight<p.clientHeight,j=L&&!P&&(O&&this.allowHorizontalSwipe||S&&this.allowVerticalSwipe)&&M,I=L&&!k&&(C&&this.allowHorizontalSwipe||T&&this.allowVerticalSwipe)&&M;if(j)o.a.setCurrentPage(Math.max(1,x-_));else if(I)o.a.setCurrentPage(Math.min(A,x+_));else if(!this.useNativeScroll){var R=(Date.now()-this.touch.touchStartTimeStamp)/1e3;R<.2?(this.touch.stopMomentumScroll=!1,this.startMomentumScroll(R)):(this.horziontalLock=!1,this.verticalLock=!1)}break;case s:var N=o.a.getAnnotationByMouseEvent(e),D=N&&N instanceof window.Core.Annotations.FreeTextAnnotation;if(this.isUsingAnnotationTools()){var F,B=o.a.getToolMode();null===(F=B.finish)||void 0===F||F.call(B)}else if(!D){this.oldZoom?(this.touch.scale=Math.max(this.oldZoom/this.touch.zoom,Object(l.d)()/this.touch.zoom),this.oldZoom=null):(this.touch.scale=Math.min(3,Object(l.c)()/this.touch.zoom),this.oldZoom=this.touch.zoom);var H=o.a.getZoom()*this.touch.scale,V=this.getPointAfterScale(),U=V.x,G=V.y;o.a.zoomTo(H,U,G)}D&&o.a.getAnnotationManager().trigger("annotationDoubleClicked",N);break;case d:if(this.touch.previousPinchScale===this.touch.scale)return;this.touch.previousPinchScale=this.touch.scale,r.h?(this.document.style.zoom=1,this.document.style.margin="auto"):this.document.style.transform="none";var W=o.a.getZoom()*this.touch.scale,z=this.getPointAfterScale(),Z=z.x,Y=z.y;o.a.zoomTo(W,Z,Y)}this.touch.touchMoveCount=0,this.verticalMomentum=0,this.horziontalMomentum=0},handleTouchCancel:function(e){this.handleTouchEnd(e)},startMomentumScroll:function(e){var t=this,n=1,o=this.container.scrollLeft,r=this.container.scrollTop,i=this.touch.horizontalDistance/e/1.85,a=this.touch.verticalDistance/e/1.85,l=function(){var e=t.easeOutQuad(n,o,i,70),c=t.easeOutQuad(n,r,a,70);t.verticalMomentum=a,t.horziontalMomentum=i;var u=!t.touch.touchMoveCount,s=t.container.scrollLeft-e,d=t.container.scrollTop-c,p=Math.abs(s)<1&&Math.abs(d)<1;t.container.scrollLeft=e,t.container.scrollTop=c,u&&p&&(t.horziontalLock=!1,t.verticalLock=!1),n<70&&!t.touch.stopMomentumScroll&&(n++,requestAnimationFrame(l)),u&&70===n&&(t.horziontalLock=!1,t.verticalLock=!1,t.verticalMomentum=0,t.horziontalMomentum=0)};requestAnimationFrame(l)},easeOutQuad:function(e,t,n,o){return-n*(e/=o)*(e-2)+t},reachedBoundary:function(){var e=this.container,t=e.clientHeight,n=e.clientWidth,o=e.scrollLeft,r=e.scrollTop,i=this.document;return{reachedLeft:o<=0,reachedTop:r<=0,reachedBottom:t+r>=i.clientHeight,reachedRight:n+o>=i.clientWidth}},getDistance:function(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)},getPointAfterScale:function(){return{x:(this.touch.clientX+this.container.scrollLeft-this.document.offsetLeft)*this.touch.scale-this.touch.clientX+this.container.offsetLeft,y:(this.touch.clientY+this.container.scrollTop-this.document.offsetTop)*this.touch.scale-this.touch.clientY+this.container.offsetTop}},isUsingAnnotationTools:function(){var e=o.a.getToolMode();return Object(a.e)(Object(a.j)(e.name)).annotationCheck},isUsingPen:function(){return o.a.getToolMode().pointerType&&"pen"===o.a.getToolMode().pointerType},get useNativeScroll(){return this._useNativeScroll},set useNativeScroll(e){this._useNativeScroll=e;try{c.a.setItemSynchronous("webviewer-useNativeScroll",JSON.stringify(this._useNativeScroll))}catch(e){console.warn("localStorage could not be accessed. ".concat(e.message))}}};t.a=Object.create(m)},function(e,t,n){var o=n(58),r=n(634);o({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){var o=n(52),r=n(87),i=n(159),a=n(503),l=n(424);e.exports=function(e,t,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,d=!!c&&!!c.noTargetGet,p=c&&void 0!==c.name?c.name:t;return r(n)&&a(n,p,c),e===o?(s?e[t]=n:l(t,n),e):(u?!d&&e[t]&&(s=!0):delete e[t],s?e[t]=n:i(e,t,n),e)}},function(e,t,n){var o=n(152);e.exports=function(e){return o(e.length)}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(21),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(24),n(8),n(17),n(19),n(11),n(13);var o=n(1);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}t.a=function(e,t,n){var r,l=[],c=a(o.a.getToolsFromAllDocumentViewers(e));try{for(c.s();!(r=c.n()).done;){var u=r.value;u&&l.push(u)}}catch(e){c.e(e)}finally{c.f()}l.forEach((function(e){e.setStyles(i({},t,n))}))}},function(e,t,n){"use strict";var o=n(177),r=n(85),i=n(70),a=n(336),l=n(71),c=n(99),u=n(87),s=n(151),d=n(152),p=n(97),f=n(129),m=n(438),h=n(188),b=n(523),g=n(337),y=n(83)("replace"),v=Math.max,w=Math.min,E=i([].concat),C=i([].push),O=i("".indexOf),T=i("".slice),S="$0"==="a".replace(/./,"$0"),x=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var i=x?"$":"$0";return[function(e,n){var o=f(this),i=null==e?void 0:h(e,y);return i?r(i,e,o,n):r(t,p(o),e,n)},function(e,r){var a=c(this),l=p(e);if("string"==typeof r&&-1===O(r,i)&&-1===O(r,"$<")){var f=n(t,a,l,r);if(f.done)return f.value}var h=u(r);h||(r=p(r));var y=a.global;if(y){var S=a.unicode;a.lastIndex=0}for(var x=[];;){var A=g(a,l);if(null===A)break;if(C(x,A),!y)break;""===p(A[0])&&(a.lastIndex=m(l,d(a.lastIndex),S))}for(var _,P="",k=0,L=0;L<x.length;L++){for(var M=p((A=x[L])[0]),j=v(w(s(A.index),l.length),0),I=[],R=1;R<A.length;R++)C(I,void 0===(_=A[R])?_:String(_));var N=A.groups;if(h){var D=E([M],I,j,l);void 0!==N&&C(D,N);var F=p(o(r,void 0,D))}else F=b(M,l,j,I,N,r);j>=k&&(P+=T(l,k,j)+F,k=j+M.length)}return P+T(l,k)}]}),!!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!S||x)},function(e,t,n){n(684)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var o=640,r=900},function(e,t,n){"use strict";var o=n(58),r=n(442).left,i=n(192),a=n(212),l=n(314);o({target:"Array",proto:!0,forced:!i("reduce")||!l&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(82),n(27),n(21),n(46),n(77),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(64),n(11),n(115),n(31),n(13),n(93);var o=n(0),r=n.n(o),i=n(122),a=n.n(i),l=n(2),c=n.n(l),u=n(306),s=n(55),d=n(6),p=n(4),f=n(300),m=n(57),h=n(45),b=n(23),g=n(54);n(1072);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T={children:c.a.element.isRequired,content:c.a.string,hideShortcut:c.a.bool,forcePosition:c.a.string,hideOnClick:c.a.bool,xOffset:c.a.number},S=function(e,t){return t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>=e.top&&t.clientY<=e.bottom},x=Object(o.forwardRef)((function(e,t){var n=e.content,i=void 0===n?"":n,l=e.children,c=e.hideShortcut,y=e.forcePosition,v=e.hideOnClick,E=void 0===v||v,O=e.xOffset,T=void 0===O?0:O,x=Object(o.useRef)(null),A=Object(o.useRef)(!1),_=Object(o.useRef)(null),P=Object(o.useRef)(!1),k=Object(o.useRef)(0);Object(o.useImperativeHandle)(t,(function(){return _.current}));var L=Object(d.e)((function(e){return p.a.isElementDisabled(e,"tooltip")})),M=Object(o.useRef)(null),j=C(Object(o.useState)(!1),2),I=j[0],R=j[1],N=C(Object(o.useState)(0),2),D=N[0],F=N[1],B=C(Object(o.useState)({top:0,left:0}),2),H=B[0],V=B[1],U=C(Object(o.useState)("bottom"),2),G=U[0],W=U[1],z=C(Object(u.a)(),3),Z=z[0],Y=z[1],q=z[2],K=function(e){P.current!==e&&(P.current=e,R(e))},$=function(e){k.current!==e&&(k.current=e,F(e))};Object(o.useEffect)((function(){var e,t,n,o=function(){clearTimeout(x.current),A.current||(x.current=setTimeout((function(){Object(s.l)(l),K(!0),Object(m.a)(g.a.TOOLTIP_OPENED)}),250))},r=function(){clearTimeout(x.current),K(!1),$(0)},a=function(){A.current=!1,r()},l=function(){A.current=!0,r()},c=function(e){var t,n;if(null!==(t=_.current)&&void 0!==t&&t.contains(e.target)||null!==(n=M.current)&&void 0!==n&&n.contains(e.target))o();else{var i,a,l=null===(i=_.current)||void 0===i?void 0:i.getBoundingClientRect(),c=null===(a=M.current)||void 0===a?void 0:a.getBoundingClientRect(),u=l&&S(l,e),s=c&&S(c,e),d=c&&l&&{top:Math.min(l.top,c.top),bottom:Math.max(l.bottom,c.bottom),left:Math[l.bottom<c.top?"max":"min"](l.left,c.left),right:Math[l.bottom<c.top?"min":"max"](l.right,c.right)},p=d&&S(d,e);u||s||p||(A.current=!1,r())}};(Object(b.a)().addEventListener("pointermove",c),E)&&(null===(e=_.current)||void 0===e||e.addEventListener("click",l));"action.cancel"===_.current.ariaLabel||"action.cancel"===i||_.current.parentElement.parentElement.className.includes("TextPopup")||(null===(t=_.current)||void 0===t||t.addEventListener("focus",o),null===(n=_.current)||void 0===n||n.addEventListener("blur",a));var u=new MutationObserver((function(e){var t=e[e.length-1];t&&"disabled"===t.attributeName&&t.target.disabled&&setTimeout((function(){r()}),300)}));return u.observe(_.current,{attributes:!0,childList:!1,characterData:!1}),function(){var e,t,n;(r(),u.disconnect(),Object(b.a)().removeEventListener("pointermove",c),E)&&(null===(n=_.current)||void 0===n||n.removeEventListener("click",l));null===(e=_.current)||void 0===e||e.removeEventListener("focus",o),null===(t=_.current)||void 0===t||t.removeEventListener("blur",a)}}),[_,E]),Object(o.useLayoutEffect)((function(){var e=_.current,t=M.current;I&&e&&t?(!function(){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=0,i=0;if(window.isApryseWebViewerWebComponent){var a=Object(b.a)().host.getBoundingClientRect();r=a.x,i=a.y}var l={bottom:{top:n.bottom-i,left:n.left+n.width/2-o.width/2-r},bottomLeft:{top:n.bottom-i,left:n.left-r},top:{top:n.top-o.height-i,left:n.left+n.width/2-o.width/2-r},topLeft:{top:n.top-o.height-i,left:n.left-r},left:{top:n.top+n.height/2-o.height/2-i,left:n.left-o.width-r},right:{top:n.top+n.height/2-o.height/2-i,left:n.right-r}},c=Object.keys(l).find((function(e){if(y)return e===y;var t=l[e],n=t.top,r=t.left;return n>0&&n+o.height<window.innerHeight&&r>0&&r+o.width<window.innerWidth}))||"bottom",u=l[c],s=u.top,d=u.left,p=Object(f.a)(),m=p.scaleX,h=p.scaleY;V({top:s/h,left:(d+T)/m}),W(c)}(),setTimeout((function(){$(1)}),50)):$(0)}),[_,I]);var X=h.h||h.a,J=r.a.cloneElement(l,{ref:_}),Q=Z(i),ee=i.slice(i.indexOf(".")+1);h.o&&"redo"===ee&&(ee="redo_windows");var te=s.g.isActive(ee),ne=-1===Z("shortcut.".concat(ee)).indexOf("."),oe=(q?Y.getFixedT("en"):function(e){return e})("shortcut.".concat(ee));return h.j&&(oe=oe.replace("Ctrl","Cmd")),te||(ne=!1),r.a.createElement(r.a.Fragment,null,J,I&&Q&&!X&&!L&&a.a.createPortal(r.a.createElement("div",{className:"tooltip--".concat(G),style:w({opacity:D},H),ref:M,"data-element":"tooltip"},r.a.createElement("div",{className:"tooltip__content"},Q,ne&&!c&&r.a.createElement("span",{className:"tooltip__shortcut"},oe))),Object(b.a)().querySelector("#app")))}));x.displayName="Tooltip",x.propTypes=T;var A=r.a.memo(x);t.a=A},function(e,t,n){"use strict";n.d(t,"e",(function(){return I})),n.d(t,"a",(function(){return R})),n.d(t,"f",(function(){return N})),n.d(t,"l",(function(){return D})),n.d(t,"i",(function(){return F})),n.d(t,"m",(function(){return B})),n.d(t,"j",(function(){return H})),n.d(t,"b",(function(){return V})),n.d(t,"n",(function(){return U})),n.d(t,"h",(function(){return G})),n.d(t,"o",(function(){return W})),n.d(t,"k",(function(){return z})),n.d(t,"c",(function(){return Z})),n.d(t,"g",(function(){return Y}));n(9),n(10),n(14),n(38),n(125),n(82),n(27),n(46),n(12),n(18),n(26),n(40),n(24),n(41),n(35),n(42),n(8),n(88),n(56),n(19),n(64),n(11),n(31),n(13),n(93);var o=n(1),r=n(39),i=(n(21),n(20),n(44),n(22),n(16),n(17),n(5));function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c=function(e){var t=["thumbnailsPanel",i.a.OUTLINE_PANEL,"layersPanel",i.a.BOOKMARK_PANEL,"signaturePanel",i.a.NOTES_PANEL,i.a.PORTFOLIO_PANEL],n=e.viewer.customPanels.map((function(e){return e.panel.dataElement}));return[].concat(t,a(n))},u=n(3),s=n(4),d=n(60),p=n(63),f=n(169),m=n(479),h=n(29),b=n(144),g=n(55),y=n(23),v=n(65),w=n(28),E=n(270),C=n(25),O=n(76),T=n(7),S=n(161),x=n(257);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(A(e)+" is not iterable")}function P(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return k(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(k(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,k(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,k(d,"constructor",u),k(u,"constructor",c),c.displayName="GeneratorFunction",k(u,r,"GeneratorFunction"),k(d),k(d,r,"Generator"),k(d,o,(function(){return this})),k(d,"toString",(function(){return"[object Generator]"})),(P=function(){return{w:i,m:p}})()}function k(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(k=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){k(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function L(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function M(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){L(i,o,r,a,l,"next",e)}function l(e){L(i,o,r,a,l,"throw",e)}a(void 0)}))}}var j=Object(r.a)("notesInLeftPanel",!1),I=(t.d=function(e,t){return M(P().m((function n(){var r;return P().w((function(n){for(;;)switch(n.n){case 0:(r=e.dispatch)(u.a.openElement("pageNavOverlay")),r(u.a.setZoom(o.a.getZoom(t),t)),r(u.a.setThumbnailSelectingPages(!1));case 1:return n.a(2)}}),n)})))},function(e){return function(){o.a.enableRedaction(Object(r.a)("enableRedaction",!1)||o.a.isCreateRedactionEnabled()),o.a.isCreateRedactionEnabled()?(e(u.a.enableElement("redactionToolGroupButton",p.a)),e(u.a.enableElement("pageRedactionToolGroupButton",p.a))):(e(u.a.disableElement("redactionToolGroupButton",p.c)),e(u.a.disableElement("pageRedactionToolGroupButton",p.c)))}}),R=function(e,t){return M(P().m((function n(){var r,i,a,l,c,d,p,f,m,b;return P().w((function(n){for(;;)switch(n.n){case 0:if(r=e.dispatch,i=e.getState,a=o.a.getDocumentViewer(t),!o.a.isFullPDFEnabled()){n.n=3;break}return l=window.Core.PDFNet,c=!1,d=function(){c=!0},f=(p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};return t.promise=new Promise((function(n,o){t.resolve=n,t.reject=o,e&&n()})),t})(!0),a.addEventListener("beginRendering",(function(){return f=p()})),a.addEventListener("finishedRendering",(function(){return f.resolve()})),m=function(){if(c)throw a.removeEventListener("documentUnloaded",d),new Error("setPageLabels is cancelled because the document got closed.")},a.addEventListener("documentUnloaded",d,{once:!0}),m(),n.n=1,a.getDocument().getPDFDoc();case 1:if(b=n.v){n.n=2;break}return n.a(2);case 2:l.initialize().then(M(P().m((function e(){var t,n,a,c,d,p;return P().w((function(e){for(;;)switch(e.n){case 0:return n=[],a=function(){var e=M(P().m((function e(){var n,i,a;return P().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,m(),e.n=1,b.getPageCount();case 1:if(t=e.v,n=o.a.getTotalPages(),t===n){e.n=2;break}throw i=h.a.t("message.errorLoadingDocument",{totalPageCount:t,displayedPageCount:n}),r(u.a.showErrorMessage(i)),new Error("pdfDoc.getPageCount() returns ".concat(t," and this does not match with documentViewer.getPageCount() which returns ").concat(n,"."));case 2:e.n=4;break;case 3:e.p=3,a=e.v,console.warn(a);case 4:return e.a(2)}}),e,null,[[0,3]])})));return function(){return e.apply(this,arguments)}}(),e.n=1,f.promise;case 1:return e.n=2,l.runWithCleanup(a);case 2:c=P().m((function e(t){var o;return P().w((function(e){for(;;)switch(e.n){case 0:return o=function(){var e=M(P().m((function e(){var o,r,i;return P().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,m(),e.n=1,b.getPageLabel(t);case 1:return o=e.v,m(),e.n=2,o.getLabelTitle(t);case 2:r=e.v,n.push(r.length>0?r:t.toString()),e.n=4;break;case 3:e.p=3,i=e.v,console.warn(i);case 4:return e.a(2)}}),e,null,[[0,3]])})));return function(){return e.apply(this,arguments)}}(),e.n=1,f.promise;case 1:return e.n=2,l.runWithCleanup(o);case 2:return e.a(2)}}),e)})),d=1;case 3:if(!(d<=t)){e.n=5;break}return e.d(_(c(d)),4);case 4:d++,e.n=3;break;case 5:m(),p=Object(x.a)(t),s.a.getPageLabels(i()).every((function(e,t){return e===p[t]}))&&r(u.a.setPageLabels(n));case 6:return e.a(2)}}),e)}))));case 3:return n.a(2)}}),n)})))},N=function(e,t){return function(){var n,r=null===(n=o.a.getDocumentViewer(t).getDocument())||void 0===n?void 0:n.getDocumentCompletePromise();null==r||r.then((function(){e(u.a.closeElement(i.a.PASSWORD_MODAL))}))}},D=function(e){return function(){e(u.a.setLoadingProgress(1)),setTimeout((function(){e(u.a.closeElement(i.a.PROGRESS_MODAL)),e(u.a.resetLoadingProgress())}),300)}},F=function(e,t){return function(){var n=e.dispatch,r=e.getState;o.a.getDocumentViewer(t).getAnnotationManager().getFieldManager().setPrintHandler((function(){Object(f.a)(n,s.a.useClientSidePrint(r()),s.a.isEmbedPrintSupported(r()),s.a.getSortStrategy(r()),s.a.getColorMap(r()))}))}},B=function(){return function(){Object(r.a)("a",!1)?o.a.getDocumentViewers().forEach((function(e){e.getDocument()&&Object(v.p)()||e.enableAnnotations()})):o.a.getDocumentViewers().forEach((function(e){return e.disableAnnotations()}))}},H=function(){return function(){Object(y.c)().instance.UI.loadedFromServer=!1,Object(y.c)().instance.UI.serverFailed=!1}},V=function(e){return function(){var t=o.a.getDocument(),n=t.getType();n===d.a.PDF||n===d.a.WEBVIEWER_SERVER&&!t.isWebViewerServerDocument()?(e(u.a.enableElement("cropToolGroupButton",p.a)),e(u.a.enableElement("contentEditButton",p.a)),e(u.a.enableElement("addParagraphToolGroupButton",p.a))):n===d.a.IMAGE?(e(u.a.disableElement("contentEditButton",p.a)),e(u.a.disableElement("addParagraphToolGroupButton",p.a))):(e(u.a.disableElement("cropToolGroupButton",p.a)),e(u.a.disableElement("contentEditButton",p.a)),e(u.a.disableElement("addParagraphToolGroupButton",p.a)))}},U=function(e,t){return function(){o.a.getDocument(t).addEventListener("bookmarksUpdated",(function(){return o.a.getOutlines((function(t){return e(u.a.setOutlines(t))}),t)})),m.a.setDoc(o.a.getDocument(t))}},G=function(e,t){var n=t.dispatch,o=t.getState(),r=o.featureFlags.customizableUI;if((r?s.a.getActiveTabInPanel(o,w.e.TABS):s.a.getActiveLeftPanel(o))===e){var i=c(o).find((function(e){return!s.a.isElementDisabled(o,e)}));n(r?u.a.setActiveTabInPanel(i,w.e.TABS):u.a.setActiveLeftPanel(i))}},W=function(e){return M(P().m((function t(){var n,o;return P().w((function(t){for(;;)switch(t.n){case 0:return n=e.dispatch,t.n=1,Object(E.f)();case 1:o=t.v,n(u.a.setPortfolio(o)),0===o.length&&G(i.a.PORTFOLIO_PANEL,e);case 2:return t.a(2)}}),t)})))},z=function(e){return function(){var t=o.a.getDocumentViewer(e);Object(r.a)("enableCompositionInput",!1)&&t.enableCompositionInput()}},Z=function(e){return function(){var t=e.getState,n=e.dispatch,a=o.a.getDocument(),l=o.a.getTool("OfficeEditorContentSelect"),c=function(e){return s.a.getIsCustomUIEnabled(e.getState())}(e),d=function(e){var o=s.a.getUIConfiguration(t());o!==e&&(n(u.a.stashComponents(o)),n(u.a.restoreComponents(e)))},f=function(e){n(u.a.setOfficeEditorEditMode(e)),e===C.B.VIEW_ONLY||e===C.B.PREVIEW?(n(c?u.a.disableElement(i.a.OFFICE_EDITOR_TOOLS_HEADER,p.c):u.a.closeElement(i.a.OFFICE_EDITOR_TOOLS_HEADER)),n(u.a.disableElements([i.a.CONTEXT_MENU_POPUP,i.a.NOTE_MULTI_SELECT_MODE_BUTTON,i.a.SEARCH_PANEL_REPLACE_CONTAINER],p.c))):(n(c?u.a.enableElement(i.a.OFFICE_EDITOR_TOOLS_HEADER,p.c):u.a.openElement(i.a.OFFICE_EDITOR_TOOLS_HEADER)),n(u.a.enableElements([i.a.CONTEXT_MENU_POPUP,i.a.NOTE_MULTI_SELECT_MODE_BUTTON,i.a.SEARCH_PANEL_REPLACE_CONTAINER],p.c))),e===C.B.REVIEWING||e===C.B.PREVIEW?n(u.a.openElement(c?i.a.OFFICE_EDITOR_REVIEW_PANEL:i.a.LEFT_PANEL)):n(u.a.closeElement(c?i.a.OFFICE_EDITOR_REVIEW_PANEL:i.a.LEFT_PANEL))},m=function(e){n(u.a.setOfficeEditorActiveStream(e))};Object(v.p)()?function(){(function(e){return s.a.getIsOfficeEditorHeaderEnabled(e.getState())})(e)||(d(T.z.DOCX_EDITOR),n(u.a.setIsOfficeEditorHeaderEnabled(!0)),n(u.a.disableSpreadsheetEditorMode()),n(u.a.setUIConfiguration(T.z.DOCX_EDITOR))),n(u.a.setIsOfficeEditorMode(!0)),n(u.a.enableElements(C.i,p.c)),n(u.a.disableElements(C.h,p.c)),b.a.unbind("*",C.x),b.a.setScope(C.x);var i=g.d[g.e.SEARCH];Object(b.a)(i,C.x,g.g.keyHandlerMap[i]);var c=g.d[g.e.SET_HEADER_FOCUS];Object(b.a)(c,C.x,g.g.keyHandlerMap[c]);var h=Object(r.a)("officeEditorOptions","{}"),y=JSON.parse(h).initialEditMode||C.B.EDITING;Object.values(C.B).includes(y)||(console.warn("Invalid initialEditMode parameter: ".concat(y,". Default to Editing mode.")),y=C.B.EDITING),a.getOfficeEditor().setEditMode(y),f(y),a.addEventListener("editModeUpdated",f),m(C.k.BODY),l.addEventListener("activeStreamChanged",m),a.addEventListener("editOperationStarted",(function(e){switch(e.source){case C.g.HEADER_FOOTER:o.a.getOfficeEditor().setEditMode("viewOnly");break;case C.g.REPLACE:n(u.a.setOfficeEditorIsReplaceInProgress(!0))}n(u.a.openElement("loadingModal"))})),a.addEventListener("editOperationEnded",(function(e){switch(e.source){case C.g.HEADER_FOOTER:o.a.getOfficeEditor().setEditMode("editing");break;case C.g.REPLACE:n(u.a.setOfficeEditorIsReplaceInProgress(!1))}n(u.a.closeElement("loadingModal"))})),o.a.zoomTo(1,0,0),j=s.a.getNotesInLeftPanel(t()),n(u.a.setNotesInLeftPanel(!0)),n(u.a.setClearSearchOnPanelClose(!0))}():Object(v.q)()?function(){c||(console.warn("Spreadsheet Editor requires Modular UI. Enabling it now."),n(u.a.enableFeatureFlag(S.a.CUSTOMIZABLE_UI)));var e=Object(r.a)("spreadsheetEditorOptions","{}"),a=s.a.getSpreadsheetEditorEditMode(t()),l=JSON.parse(e).initialEditMode||a||O.h.VIEW_ONLY;Object.values(O.h).includes(l)||(console.warn("Invalid initialEditMode parameter: ".concat(l,". Default to view mode.")),l=O.h.VIEW_ONLY),n(u.a.setSpreadsheetEditorEditMode(l)),o.a.getDocumentViewer().getSpreadsheetEditorManager().setEditMode(l),l===O.h.VIEW_ONLY?n(u.a.disableElements([i.a.SEARCH_PANEL_REPLACE_CONTAINER],p.b)):n(u.a.enableElements([i.a.SEARCH_PANEL_REPLACE_CONTAINER],p.b)),d(T.z.SPREADSHEET_EDITOR),n(u.a.disableElements(O.d)),b.a.unbind("*",O.g),b.a.setScope(O.g),n(u.a.enableSpreadsheetEditorMode()),n(u.a.setUIConfiguration(T.z.SPREADSHEET_EDITOR))}():function(){d(T.z.DEFAULT),n(u.a.setUIConfiguration(T.z.DEFAULT)),n(u.a.disableSpreadsheetEditorMode());var e=s.a.getGenericPanels(t()),o=c?e:[];n(u.a.setGenericPanels(o)),a.removeEventListener("editModeUpdated",f),l.removeEventListener("activeStreamChanged",m),b.a.setScope(g.h),n(u.a.setNotesInLeftPanel(j)),n(u.a.setIsOfficeEditorHeaderEnabled(!1))}()}},Y=function(e,t){return function(){var n=e.dispatch;(function(e){var t=e.isWebViewerServerDocument(),n=e.getType()===d.a.WEBVIEWER_SERVER;return t&&n})(o.a.getDocumentViewer(t).getDocument())&&(n(u.a.disableElement(i.a.LAYERS_PANEL_BUTTON,p.b)),n(u.a.disableElement(i.a.LAYERS_PANEL,p.b)))}}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(21),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(24),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=(n(1215),n(51)),a=n(15),l=n.n(a),c=n(2),u=n.n(c);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var m=function(e){var t=e.header,n=e.children,a=e.className,c=e.role,s=e.style,f=e.headingLevel,h=void 0===f?2:f,b=e.isInitiallyExpanded,g=void 0===b||b,y=e.isExpanded,v=e.onToggle,w=e.ariaControls,E=e.expansionDescription;m.propTypes={header:u.a.oneOfType([u.a.func,u.a.node]).isRequired,children:u.a.node.isRequired,className:u.a.string,role:u.a.string,style:u.a.object,headingLevel:u.a.oneOfType([u.a.number,u.a.string]),isInitiallyExpanded:u.a.bool,isExpanded:u.a.bool,onToggle:u.a.func,ariaControls:u.a.string,expansionDescription:u.a.string};var C=p(Object(o.useState)(g),2),O=C[0],T=C[1];Object(o.useEffect)((function(){void 0!==y&&T(y)}),[y]);var S="h".concat(h),x="function"==typeof t?t():t,A=E||t;return r.a.createElement("div",{className:l()(d({CollapsibleSection:!0},a,!!a)),role:c,style:s},r.a.createElement(S,{className:"collapsible-page-group-header"},r.a.createElement("button",{onClick:function(){var e=!O;T(e),v&&v(e)},"aria-expanded":O,"aria-controls":w,"aria-label":A},x,r.a.createElement(i.a,{className:"arrow",glyph:"icon-chevron-".concat(O?"up":"down")}))),O&&r.a.createElement("div",{className:"collapsible-content"},n))},h=m;t.a=h},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(674)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var o=n(58),r=n(126).findIndex,i=n(217),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";var o=n(58),r=n(126).every;o({target:"Array",proto:!0,forced:!n(192)("every")},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var o=n(168),r=n(70),i=n(273),a=n(108),l=n(113),c=n(281),u=r([].push),s=function(e){var t=1==e,n=2==e,r=3==e,s=4==e,d=6==e,p=7==e,f=5==e||d;return function(m,h,b,g){for(var y,v,w=a(m),E=i(w),C=o(h,b),O=l(E),T=0,S=g||c,x=t?S(m,O):n||p?S(m,0):void 0;O>T;T++)if((f||T in E)&&(v=C(y=E[T],T,w),e))if(t)x[T]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return T;case 2:u(x,y)}else switch(e){case 4:return!1;case 7:u(x,y)}return d?-1:r||s?s:x}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(e,t,n){"use strict";n.d(t,"o",(function(){return T})),n.d(t,"p",(function(){return S})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return A})),n.d(t,"m",(function(){return _})),n.d(t,"e",(function(){return P})),n.d(t,"b",(function(){return k})),n.d(t,"i",(function(){return L})),n.d(t,"j",(function(){return M})),n.d(t,"k",(function(){return j})),n.d(t,"l",(function(){return N})),n.d(t,"a",(function(){return D})),n.d(t,"n",(function(){return F})),n.d(t,"h",(function(){return B})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return R}));n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(21),n(20),n(12),n(44),n(22),n(146),n(33),n(18),n(26),n(16),n(30),n(40),n(49),n(24),n(48),n(50),n(41),n(35),n(42),n(8),n(56),n(17),n(19),n(11),n(31),n(13);var o=n(291),r=n(1),i=n(175),a=n(3),l=n(29),c=n(60),u=n(156),s=n(5),d=n(78);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return m(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(m(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,m(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,m(d,"constructor",u),m(u,"constructor",c),c.displayName="GeneratorFunction",m(u,r,"GeneratorFunction"),m(d),m(d,r,"Generator"),m(d,o,(function(){return this})),m(d,"toString",(function(){return"[object Generator]"})),(f=function(){return{w:i,m:p}})()}function m(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(m=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function h(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){h(i,o,r,a,l,"next",e)}function l(e){h(i,o,r,a,l,"throw",e)}a(void 0)}))}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=window.Core.PageRotation,o=n.E_0,r=n.E_90,i=n.E_180,a=n.E_270;switch(e){case a:return t?i:o;case i:return t?r:a;case r:return t?o:i;default:return t?a:r}},O=function(e,t){if(s=r.a.getDocument(),d=null==s?void 0:s.type,c.a.PDF===d||c.a.IMAGE===d||d===c.a.WEBVIEWER_SERVER&&!s.isWebViewerServerDocument()){var n=t?window.Core.PageRotation.E_270:window.Core.PageRotation.E_90;r.a.rotatePages(e,n)}else{var o,i=r.a.getDocumentViewer(),a=i.getPageRotations(),l=w(e);try{for(l.s();!(o=l.n()).done;){var u=o.value;i.setRotation(C(a[u],t),u)}}catch(e){l.e(e)}finally{l.f()}}var s,d},T=function(e){O(e,!1),Object(d.a)("".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.rotatedClockwise")," ").concat(l.a.t("action.rotationIs")," ").concat((r.a.getDocument().getPageRotation(r.a.getCurrentPage())+90)%360," degrees"))},S=function(e){O(e,!0),Object(d.a)("".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.rotatedCounterClockwise")," ").concat(l.a.t("action.rotationIs")," ").concat((r.a.getDocument().getPageRotation(r.a.getCurrentPage())+270)%360," degrees"))},x=function(e,t,n){r.a.insertBlankPages(e,t,n)},A=function(e,t,n){r.a.insertBlankPages(e.map((function(e){return e+1})),t,n)},_=function(e){e(a.a.closeElement(s.a.PAGE_MANIPULATION_OVERLAY)),e(a.a.openElement("pageReplacementModal"))},P=function(e,t){var n=l.a.t("warning.extractPage.message"),c=l.a.t("warning.extractPage.title"),u=l.a.t("warning.extractPage.confirmBtn"),s=l.a.t("warning.extractPage.secondaryBtn"),p="".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.extracted")),f="".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.deleted")),m={message:n,title:c,confirmBtnText:u,onConfirm:function(){return Object(o.a)(e).then((function(e){Object(i.saveAs)(e,"extractedDocument.pdf"),Object(d.a)(p+f)}))},secondaryBtnText:s,onSecondary:function(){Object(o.a)(e).then((function(n){Object(i.saveAs)(n,"extractedDocument.pdf"),r.a.removePages(e).then((function(){t(a.a.setSelectedPageThumbnails([]))})),Object(d.a)(p)}))}};t(a.a.showWarningMessage(m))},k=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o="".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.deleted"));if(n){var i=l.a.t("warning.deletePage.deleteMessage"),c=l.a.t("warning.deletePage.deleteTitle"),u=l.a.t("action.ok"),s={message:i,title:c,confirmBtnText:u,onConfirm:function(){return r.a.removePages(e).then((function(){t(a.a.setSelectedPageThumbnails([])),t(a.a.setShiftKeyThumbnailsPivotIndex()),Object(d.a)(o)}))}};r.a.getDocumentViewer().getPageCount()===e.length&&(s={message:i=l.a.t("warning.deletePage.deleteLastPageMessage"),title:c,confirmBtnText:u,onConfirm:function(){return Promise.resolve()}}),t(a.a.showWarningMessage(s))}else r.a.removePages(e).then((function(){t(a.a.setSelectedPageThumbnails([])),t(a.a.setShiftKeyThumbnailsPivotIndex()),Object(d.a)(o)}))},L=function(e){r.a.movePages(e,r.a.getTotalPages()+1),Object(d.a)("".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.movedToBottomOfDocument")))},M=function(e){r.a.movePages(e,0),Object(d.a)("".concat(l.a.t("action.page")," ").concat(e," ").concat(l.a.t("action.movedToTopofDocument")))},j=function(e,t){if(0===e.length){var n=l.a.t("warning.selectPage.selectTitle"),o={message:l.a.t("warning.selectPage.selectMessage"),title:n,confirmBtnText:l.a.t("action.ok"),onConfirm:function(){return Promise.resolve()},keepOpen:["leftPanel"]};return t(a.a.showWarningMessage(o)),!0}return!1},I=function(e,t){var n=l.a.t("insertPageModal.warning.title"),o={message:l.a.t("insertPageModal.warning.message"),title:n,confirmBtnText:l.a.t("action.ok"),onConfirm:e,keepOpen:["leftPanel"]};t(a.a.showWarningMessage(o))},R=function(e,t){var n=l.a.t("option.pageReplacementModal.warning.title"),o={message:l.a.t("option.pageReplacementModal.warning.message"),title:n,confirmBtnText:l.a.t("action.ok"),onConfirm:e,keepOpen:["leftPanel"]};t(a.a.showWarningMessage(o))},N=function(e,t){r.a.applyRedactions(D(e,t))},D=function(e,t){var n,o=[],i=r.a.getDocument(),a=w(e);try{for(a.s();!(n=a.n()).done;){var l=n.value,c=i.getPageInfo(l),s=i.getPageRotation(l);if(c){var d=void 0,p=void 0;90===s||270===s?(d=c.height,p=c.width):(d=c.width,p=c.height);var f=new window.Core.Annotations.RedactionAnnotation(y({PageNumber:l,Rect:new window.Core.Annotations.Rect(0,0,d,p)},t));f.type=u.c.FULL_PAGE,f.setCustomData("trn-redaction-type",u.c.FULL_PAGE),f.Author=r.a.getCurrentUser(),o.push(f)}}}catch(e){a.e(e)}finally{a.f()}return r.a.getAnnotationManager().addAnnotations(o),r.a.getAnnotationManager().drawAnnotationsFromList(o),o},F=function(){var e=b(f().m((function e(t,n,o){var i,a,l;return f().w((function(e){for(;;)switch(e.n){case 0:if(i=r.a.getDocument(),a=i.getPageCount(),l=n.sort((function(e,t){return e-t})),1!==a&&l.length!==a){e.n=3;break}return e.n=1,i.insertPages(t,o);case 1:return e.n=2,i.removePages(l);case 2:e.n=5;break;case 3:return e.n=4,i.removePages(l);case 4:return e.n=5,i.insertPages(t,o,l[0]);case 5:return e.a(2)}}),e)})));return function(t,n,o){return e.apply(this,arguments)}}(),B=function(){var e=b(f().m((function e(t,n){var o,i,a=arguments;return f().w((function(e){for(;;)switch(e.n){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:null,i=r.a.getDocument(),e.n=1,i.insertPages(t,n,o);case 1:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";var o=n(58),r=n(52),i=n(190),a=n(151),l=n(113),c=n(108),u=n(281),s=n(214),d=n(282)("splice"),p=r.TypeError,f=Math.max,m=Math.min;o({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,o,r,d,h,b,g=c(this),y=l(g),v=i(e,y),w=arguments.length;if(0===w?n=o=0:1===w?(n=0,o=y-v):(n=w-2,o=m(f(a(t),0),y-v)),y+n-o>9007199254740991)throw p("Maximum allowed length exceeded");for(r=u(g,o),d=0;d<o;d++)(h=v+d)in g&&s(r,d,g[h]);if(r.length=o,n<o){for(d=v;d<y-o;d++)b=d+n,(h=d+o)in g?g[b]=g[h]:delete g[b];for(d=y;d>y-o+n;d--)delete g[d-1]}else if(n>o)for(d=y-o;d>v;d--)b=d+n-1,(h=d+o-1)in g?g[b]=g[h]:delete g[b];for(d=0;d<n;d++)g[d+v]=arguments[d+2];return g.length=y-o+n,r}})},function(e,t,n){var o=n(52).TypeError;e.exports=function(e){if(null==e)throw o("Can't call method on "+e);return e}},function(e,t,n){var o=n(102),r=n(245);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),o(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var o=n(7),r=n(29),i=function(e){var t="rtl"===r.a.dir();return e===o.p.LEFT||!t&&!e||function(e,t){return t?e===o.p.END:e===o.p.START}(e,t)},a=function(e){var t="rtl"===r.a.dir();return e===o.p.RIGHT||t&&!e||function(e,t){return t?e===o.p.START:e===o.p.END}(e,t)},l=function(e,t){var n=i(e),o=i(t),r=a(e),l=a(t);return n&&o||r&&l},c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!e&&"rtl"===r.a.dir();return t?"icon-chevron-right":"icon-chevron-left"},u=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!e&&"rtl"===r.a.dir();return t?"icon-chevron-left":"icon-chevron-right"}},function(e,t,n){"use strict";var o,r=(o=[],{push:function(e){o.push(e)},pop:function(){return o.length>0?o.pop():null},clear:function(){o=[]},getStack:function(){return o}});t.a=r},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var o=["toolbarGroup-Edit","toolbarGroup-Forms","toolbarGroup-EditText"],r=["Content","AddParagraphTool","FormField","Crop"],i={SYNC:"SYNC",SKIP_UNMATCHED:"SKIP_UNMATCHED"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=[{className:"linestyle-image",key:"None",src:"icon-linestyle-none"},{className:"linestyle-image shift-alignment",key:"ClosedArrow",src:"icon-linestyle-start-arrow-closed"},{className:"linestyle-image shift-alignment",key:"OpenArrow",src:"icon-linestyle-start-arrow-open"},{className:"linestyle-image shift-alignment",key:"ROpenArrow",src:"icon-linestyle-start-arrow-open-reverse"},{className:"linestyle-image shift-alignment",key:"RClosedArrow",src:"icon-linestyle-start-arrow-closed-reverse"},{className:"linestyle-image shift-alignment",key:"Butt",src:"icon-linestyle-start-butt"},{className:"linestyle-image shift-alignment",key:"Circle",src:"icon-linestyle-start-circle"},{className:"linestyle-image shift-alignment",key:"Diamond",src:"icon-linestyle-start-diamond"},{className:"linestyle-image shift-alignment",key:"Square",src:"icon-linestyle-start-square"},{className:"linestyle-image shift-alignment",key:"Slash",src:"icon-linestyle-start-slash"}],r=[{className:"linestyle-image",key:"solid",src:"icon-linestyle-solid-line"},{className:"linestyle-image shift-alignment",key:"dash,2,2",src:"icon-linestyle-dash-2-2"},{className:"linestyle-image shift-alignment",key:"dash,4,4",src:"icon-linestyle-dash-4-4"},{className:"linestyle-image shift-alignment",key:"dash,6,6",src:"icon-linestyle-dash-6-6"},{className:"linestyle-image shift-alignment",key:"dash,1,4,8,4",src:"icon-linestyle-dash-1-4-8-4"},{className:"linestyle-image shift-alignment",key:"dash,3,6,10,6",src:"icon-linestyle-dash-3-6-10-6"},{className:"linestyle-image shift-alignment",key:"dash,4,6,10,6",src:"icon-linestyle-dash-4-6-10-6"}],i=[{className:"linestyle-image",key:"None",src:"icon-linestyle-none"},{className:"linestyle-image shift-alignment",key:"ClosedArrow",src:"icon-linestyle-end-arrow-closed"},{className:"linestyle-image shift-alignment",key:"OpenArrow",src:"icon-linestyle-end-arrow-open"},{className:"linestyle-image shift-alignment",key:"ROpenArrow",src:"icon-linestyle-end-arrow-open-reverse"},{className:"linestyle-image shift-alignment",key:"RClosedArrow",src:"icon-linestyle-end-arrow-closed-reverse"},{className:"linestyle-image shift-alignment",key:"Butt",src:"icon-linestyle-end-butt"},{className:"linestyle-image shift-alignment",key:"Circle",src:"icon-linestyle-end-circle"},{className:"linestyle-image shift-alignment",key:"Diamond",src:"icon-linestyle-end-diamond"},{className:"linestyle-image shift-alignment",key:"Square",src:"icon-linestyle-end-square"},{className:"linestyle-image shift-alignment",key:"Slash",src:"icon-linestyle-end-slash"}],a={className:"linestyle-image shift-alignment",key:"cloudy",src:"icon-linestyle-cloudy-line"}},function(e,t,n){"use strict";n.r(t),n.d(t,"isStyleButtonActive",(function(){return B})),n.d(t,"getPointSizeSelectionKey",(function(){return H})),n.d(t,"getCursorStyleToPreset",(function(){return V})),n.d(t,"getCurrentFontFace",(function(){return U})),n.d(t,"getLineSpacing",(function(){return G})),n.d(t,"getActiveColor",(function(){return W})),n.d(t,"getActiveListType",(function(){return z})),n.d(t,"getIsOfficeEditorMode",(function(){return Z})),n.d(t,"isJustificationButtonActive",(function(){return Y})),n.d(t,"isNonPrintingCharactersEnabled",(function(){return q})),n.d(t,"isOfficeEditorUndoEnabled",(function(){return K})),n.d(t,"isOfficeEditorRedoEnabled",(function(){return $})),n.d(t,"getOfficeEditorIsReplaceInProgress",(function(){return X})),n.d(t,"getViewOnlyWhitelist",(function(){return J})),n.d(t,"isDisabledViewOnly",(function(){return Q})),n.d(t,"isToolDisabledViewOnly",(function(){return ee})),n.d(t,"getGenericPanel",(function(){return ne})),n.d(t,"getEnabledTabPanelTabs",(function(){return oe})),n.d(t,"getVisibleTabPanelTabs",(function(){return re})),n.d(t,"getModularComponent",(function(){return ie})),n.d(t,"getScaleOverlayPosition",(function(){return ae})),n.d(t,"getDefaultPrintMargins",(function(){return le})),n.d(t,"getColors",(function(){return ce})),n.d(t,"getCustomElementSize",(function(){return ue})),n.d(t,"getActiveFlyout",(function(){return se})),n.d(t,"getFlyoutPosition",(function(){return de})),n.d(t,"getFlyoutMap",(function(){return pe})),n.d(t,"getFlyout",(function(){return fe})),n.d(t,"getFlyoutToggleElement",(function(){return me})),n.d(t,"getInitialsOffset",(function(){return he})),n.d(t,"isSavedSignaturesTabEnabled",(function(){return be})),n.d(t,"getSyncViewer",(function(){return ge})),n.d(t,"isCompareStarted",(function(){return ye})),n.d(t,"isComparisonDisabled",(function(){return ve})),n.d(t,"getIsComparisonOverlayEnabled",(function(){return we})),n.d(t,"getActiveDocumentViewerKey",(function(){return Ee})),n.d(t,"isMultiViewerMode",(function(){return Ce})),n.d(t,"isMultiViewerReady",(function(){return Oe})),n.d(t,"getGenericPanels",(function(){return Te})),n.d(t,"getActiveTabInPanel",(function(){return Se})),n.d(t,"shouldShowApplyCropWarning",(function(){return xe})),n.d(t,"shouldShowApplySnippingWarning",(function(){return Ae})),n.d(t,"getPresetCropDimensions",(function(){return _e})),n.d(t,"getPresetNewPageDimensions",(function(){return Pe})),n.d(t,"getDateTimeFormats",(function(){return ke})),n.d(t,"getThumbnailSelectionMode",(function(){return Le})),n.d(t,"getFonts",(function(){return Me})),n.d(t,"getTabs",(function(){return je})),n.d(t,"getActiveTab",(function(){return Ie})),n.d(t,"getIsMultiTab",(function(){return Re})),n.d(t,"getTabManager",(function(){return Ne})),n.d(t,"getTabNameHandler",(function(){return De})),n.d(t,"getIsHighContrastMode",(function(){return Fe})),n.d(t,"getLastPickedToolForGroup",(function(){return Be})),n.d(t,"getStandardStamps",(function(){return He})),n.d(t,"getCustomStamps",(function(){return Ve})),n.d(t,"getSelectedStampIndex",(function(){return Ue})),n.d(t,"getLastSelectedStampIndex",(function(){return Ge})),n.d(t,"getSelectedStamp",(function(){return We})),n.d(t,"getSavedSignatures",(function(){return ze})),n.d(t,"getDisplayedSignatures",(function(){return Ze})),n.d(t,"getSelectedDisplayedSignatureIndex",(function(){return Ye})),n.d(t,"getSelectedDisplayedSignature",(function(){return qe})),n.d(t,"getDisplayedSignaturesFilterFunction",(function(){return Ke})),n.d(t,"getSignatureMode",(function(){return $e})),n.d(t,"getSavedInitials",(function(){return Xe})),n.d(t,"getSelectedDisplayedInitialsIndex",(function(){return Je})),n.d(t,"getIsInitialsModeEnabled",(function(){return Qe})),n.d(t,"getDisplayedInitial",(function(){return et})),n.d(t,"getAutoFocusNoteOnAnnotationSelection",(function(){return tt})),n.d(t,"getNotesInLeftPanel",(function(){return nt})),n.d(t,"getLeftPanelWidth",(function(){return ot})),n.d(t,"getSearchPanelWidth",(function(){return rt})),n.d(t,"getNotesPanelWidth",(function(){return it})),n.d(t,"getDeleteScaleInfo",(function(){return at})),n.d(t,"getRedactionPanelWidth",(function(){return lt})),n.d(t,"getWv3dPropertiesPanelWidth",(function(){return ct})),n.d(t,"getComparePanelWidth",(function(){return ut})),n.d(t,"getTextEditingPanelWidth",(function(){return st})),n.d(t,"getMobilePanelSize",(function(){return dt})),n.d(t,"getLeftPanelWidthWithResizeBar",(function(){return pt})),n.d(t,"getSearchPanelWidthWithResizeBar",(function(){return ft})),n.d(t,"getNotesPanelWidthWithResizeBar",(function(){return mt})),n.d(t,"getComparePanelWidthWithResizeBar",(function(){return ht})),n.d(t,"getDocumentContentContainerWidthStyle",(function(){return bt})),n.d(t,"getOpenGenericPanel",(function(){return gt})),n.d(t,"getGenericPanelsOnTheSameLocation",(function(){return yt})),n.d(t,"getDocumentContainerLeftMargin",(function(){return vt})),n.d(t,"getDocumentContainerRightMargin",(function(){return wt})),n.d(t,"getCalibrationInfo",(function(){return Et})),n.d(t,"getIsAddingNewScale",(function(){return Ct})),n.d(t,"getMeasurementScalePreset",(function(){return Ot})),n.d(t,"getIsMultipleScalesMode",(function(){return Tt})),n.d(t,"getIsNotesPanelMultiSelectEnabled",(function(){return St})),n.d(t,"getDocumentContainerWidth",(function(){return xt})),n.d(t,"getDocumentContainerHeight",(function(){return At})),n.d(t,"isElementDisabled",(function(){return _t})),n.d(t,"isElementOpen",(function(){return Pt})),n.d(t,"isElementHidden",(function(){return kt})),n.d(t,"allButtonsInGroupDisabled",(function(){return Lt})),n.d(t,"getToolbarHeaders",(function(){return Mt})),n.d(t,"getSelectedScale",(function(){return jt})),n.d(t,"getCustomHeadersAdditionalProperties",(function(){return It})),n.d(t,"getEnabledToolbarGroups",(function(){return Rt})),n.d(t,"getCurrentToolbarGroup",(function(){return Nt})),n.d(t,"getActiveGroupedItems",(function(){return Dt})),n.d(t,"getFixedGroupedItems",(function(){return Ft})),n.d(t,"getToolsAssociatedWithRibbon",(function(){return Ht})),n.d(t,"getRibbonAssociatedWithTool",(function(){return Vt})),n.d(t,"getToggleButtonsAssociatedWithRibbon",(function(){return Ut})),n.d(t,"getRibbonAssociatedWithToggleButton",(function(){return Gt})),n.d(t,"getLastActiveToolForRibbon",(function(){return Wt})),n.d(t,"getFirstToolForRibbon",(function(){return zt})),n.d(t,"isToolDisabled",(function(){return Zt})),n.d(t,"getFirstToolForGroupedItems",(function(){return Yt})),n.d(t,"getActiveCustomRibbon",(function(){return qt})),n.d(t,"getActiveHeaders",(function(){return Kt})),n.d(t,"getActiveTheme",(function(){return $t})),n.d(t,"getTimezone",(function(){return Xt})),n.d(t,"getDefaultHeaderItems",(function(){return Jt})),n.d(t,"getHydratedHeader",(function(){return en})),n.d(t,"getModularComponents",(function(){return tn})),n.d(t,"getModularHeaders",(function(){return nn})),n.d(t,"getHydratedHeaders",(function(){return an})),n.d(t,"getTopHeaders",(function(){return ln})),n.d(t,"getBottomHeaders",(function(){return cn})),n.d(t,"getLeftHeader",(function(){return un})),n.d(t,"getRightHeader",(function(){return sn})),n.d(t,"getActiveTopHeaders",(function(){return dn})),n.d(t,"getActiveBottomHeaders",(function(){return pn})),n.d(t,"getTopHeadersHeight",(function(){return fn})),n.d(t,"getBottomHeadersHeight",(function(){return mn})),n.d(t,"getRightHeaderWidth",(function(){return hn})),n.d(t,"getLeftHeaderWidth",(function(){return bn})),n.d(t,"getBottomHeadersWidth",(function(){return gn})),n.d(t,"getActiveLeftHeaderWidth",(function(){return yn})),n.d(t,"getActiveRightHeaderWidth",(function(){return vn})),n.d(t,"getTopFloatingContainerHeight",(function(){return wn})),n.d(t,"getBottomFloatingContainerHeight",(function(){return En})),n.d(t,"getFloatingHeaders",(function(){return Cn})),n.d(t,"getTopStartFloatingHeaders",(function(){return On})),n.d(t,"getBottomStartFloatingHeaders",(function(){return Tn})),n.d(t,"getTopEndFloatingHeaders",(function(){return Sn})),n.d(t,"getBottomEndFloatingHeaders",(function(){return xn})),n.d(t,"getActiveHeaderItems",(function(){return An})),n.d(t,"getDisabledElementPriority",(function(){return _n})),n.d(t,"getToolsHeaderItems",(function(){return Pn})),n.d(t,"getAlwaysVisibleGroupedItems",(function(){return kn})),n.d(t,"getDisabledElements",(function(){return Ln})),n.d(t,"getEnabledRibbonItems",(function(){return Mn})),n.d(t,"getModularComponentFunctions",(function(){return jn})),n.d(t,"getToolbarGroupItems",(function(){return In})),n.d(t,"getToolButtonObjects",(function(){return Rn})),n.d(t,"isToolGroupReorderingEnabled",(function(){return Nn})),n.d(t,"isNoteSubmissionWithEnterEnabled",(function(){return Dn})),n.d(t,"isNotesPanelTextCollapsingEnabled",(function(){return Fn})),n.d(t,"isNotesPanelRepliesCollapsingEnabled",(function(){return Bn})),n.d(t,"isCommentThreadExpansionEnabled",(function(){return Hn})),n.d(t,"getActiveToolNamesForActiveToolGroup",(function(){return Vn})),n.d(t,"getToolButtonDataElements",(function(){return Un})),n.d(t,"getToolButtonObject",(function(){return Gn})),n.d(t,"getToolButtonDataElement",(function(){return Wn})),n.d(t,"getToolNamesByGroup",(function(){return zn})),n.d(t,"getToolNameByDataElement",(function(){return Zn})),n.d(t,"getActiveToolName",(function(){return Yn})),n.d(t,"getActiveToolStyles",(function(){return qn})),n.d(t,"getCustomColor",(function(){return Kn})),n.d(t,"getCustomColors",(function(){return $n})),n.d(t,"getActiveLeftPanel",(function(){return Xn})),n.d(t,"isAnyCustomPanelOpen",(function(){return Jn})),n.d(t,"getActiveToolGroup",(function(){return Qn})),n.d(t,"getNotePopupId",(function(){return eo})),n.d(t,"getFitMode",(function(){return to})),n.d(t,"getZoom",(function(){return no})),n.d(t,"getDisplayMode",(function(){return oo})),n.d(t,"getCurrentPage",(function(){return ro})),n.d(t,"getCurrentPageLabel",(function(){return io})),n.d(t,"getSortStrategy",(function(){return ao})),n.d(t,"getRotation",(function(){return lo})),n.d(t,"getNoteDateFormat",(function(){return co})),n.d(t,"getPrintedNoteDateFormat",(function(){return uo})),n.d(t,"isFullScreen",(function(){return so})),n.d(t,"doesDocumentAutoLoad",(function(){return po})),n.d(t,"isDocumentReadOnly",(function(){return fo})),n.d(t,"isViewOnly",(function(){return mo})),n.d(t,"getCustomPanels",(function(){return ho})),n.d(t,"getCustomModals",(function(){return bo})),n.d(t,"getPageLabels",(function(){return go})),n.d(t,"isCustomPageLabelsEnabled",(function(){return yo})),n.d(t,"getSelectedThumbnailPageIndexes",(function(){return vo})),n.d(t,"getShiftKeyThumbnailPivotIndex",(function(){return wo})),n.d(t,"getDisabledCustomPanelTabs",(function(){return Eo})),n.d(t,"getDisabledToolNames",(function(){return Co})),n.d(t,"isEmbedPrintSupported",(function(){return Oo})),n.d(t,"useClientSidePrint",(function(){return To})),n.d(t,"shouldAutoExpandOutlines",(function(){return So})),n.d(t,"isAnnotationNumberingEnabled",(function(){return xo})),n.d(t,"isBookmarkIconShortcutVisible",(function(){return Ao})),n.d(t,"getColorMap",(function(){return _o})),n.d(t,"getCursorOverlayData",(function(){return Po})),n.d(t,"getOpenElements",(function(){return ko})),n.d(t,"getcurrentStyleTab",(function(){return Lo})),n.d(t,"getIconColor",(function(){return Mo})),n.d(t,"getCustomNoteFilter",(function(){return jo})),n.d(t,"getInternalNoteFilter",(function(){return Io})),n.d(t,"getInlineCommentFilter",(function(){return Ro})),n.d(t,"getIsReplyDisabled",(function(){return No})),n.d(t,"getZoomList",(function(){return Do})),n.d(t,"getMeasurementUnits",(function(){return Fo})),n.d(t,"getIsNoteEditing",(function(){return Bo})),n.d(t,"getMaxSignaturesCount",(function(){return Ho})),n.d(t,"getUserData",(function(){return Vo})),n.d(t,"getIsMentionEnabled",(function(){return Uo})),n.d(t,"getSignatureFonts",(function(){return Go})),n.d(t,"getSelectedTab",(function(){return Wo})),n.d(t,"getCustomElementOverrides",(function(){return zo})),n.d(t,"getPopupItems",(function(){return Zo})),n.d(t,"getMenuOverlayItems",(function(){return Yo})),n.d(t,"getIsThumbnailMergingEnabled",(function(){return qo})),n.d(t,"getIsThumbnailReorderingEnabled",(function(){return Ko})),n.d(t,"isThumbnailMultiselectEnabled",(function(){return $o})),n.d(t,"getIsMultipleViewerMerging",(function(){return Xo})),n.d(t,"getEnableNotesPanelVirtualizedList",(function(){return Jo})),n.d(t,"notesShowLastUpdatedDate",(function(){return Qo})),n.d(t,"getAllowPageNavigation",(function(){return er})),n.d(t,"getCustomMeasurementOverlay",(function(){return tr})),n.d(t,"getAnnotationContentOverlayHandler",(function(){return nr})),n.d(t,"getEnableMouseWheelZoom",(function(){return or})),n.d(t,"isReaderMode",(function(){return rr})),n.d(t,"getCertificates",(function(){return ir})),n.d(t,"getTrustListKey",(function(){return ar})),n.d(t,"getValidationModalWidgetName",(function(){return lr})),n.d(t,"getVerificationResult",(function(){return cr})),n.d(t,"getIsRevocationCheckingEnabled",(function(){return ur})),n.d(t,"getRevocationProxyPrefix",(function(){return sr})),n.d(t,"isThumbnailSelectingPages",(function(){return dr})),n.d(t,"getWatermarkModalOptions",(function(){return pr})),n.d(t,"getZoomStepFactors",(function(){return fr})),n.d(t,"getWarningMessage",(function(){return mr})),n.d(t,"getWarningTitle",(function(){return hr})),n.d(t,"getWarningConfirmEvent",(function(){return br})),n.d(t,"getWarningConfirmBtnText",(function(){return gr})),n.d(t,"getWarningSecondaryEvent",(function(){return yr})),n.d(t,"getWarningSecondaryBtnText",(function(){return vr})),n.d(t,"getWarningSecondaryBtnClass",(function(){return wr})),n.d(t,"getWarningCancelEvent",(function(){return Er})),n.d(t,"getShowAskAgainCheckbox",(function(){return Cr})),n.d(t,"getShowDeleteTabWarning",(function(){return Or})),n.d(t,"isAccessibleMode",(function(){return Tr})),n.d(t,"shouldAddA11yContentToDOM",(function(){return Sr})),n.d(t,"getDisabledFeaturesInAccessibleReadingMode",(function(){return xr})),n.d(t,"getWarningTemplateStrings",(function(){return Ar})),n.d(t,"getWarningModalClass",(function(){return _r})),n.d(t,"getWarningCloseEvent",(function(){return Pr})),n.d(t,"getErrorMessage",(function(){return kr})),n.d(t,"getErrorTitle",(function(){return Lr})),n.d(t,"getPasswordAttempts",(function(){return Mr})),n.d(t,"getPrintQuality",(function(){return jr})),n.d(t,"getDefaultPrintOptions",(function(){return Ir})),n.d(t,"getTotalPages",(function(){return Rr})),n.d(t,"getOutlines",(function(){return Nr})),n.d(t,"getOutlineEditingEnabled",(function(){return Dr})),n.d(t,"getBookmarks",(function(){return Fr})),n.d(t,"getPortfolio",(function(){return Br})),n.d(t,"getLayers",(function(){return Hr})),n.d(t,"getLoadingProgress",(function(){return Vr})),n.d(t,"getUserName",(function(){return Ur})),n.d(t,"getServerUrl",(function(){return Gr})),n.d(t,"getSearchValue",(function(){return Wr})),n.d(t,"shouldClearSearchPanelOnClose",(function(){return zr})),n.d(t,"isCaseSensitive",(function(){return Zr})),n.d(t,"getReplaceValue",(function(){return Yr})),n.d(t,"getNextResultValue",(function(){return qr})),n.d(t,"isWholeWord",(function(){return Kr})),n.d(t,"isWildcard",(function(){return $r})),n.d(t,"isSearchUp",(function(){return Xr})),n.d(t,"isSearchInProgress",(function(){return Jr})),n.d(t,"isAmbientString",(function(){return Qr})),n.d(t,"isRegex",(function(){return ei})),n.d(t,"isProcessingSearchResults",(function(){return ti})),n.d(t,"getRedactionSearchPatterns",(function(){return ni})),n.d(t,"getNoteTransformFunction",(function(){return oi})),n.d(t,"getCustomNoteSelectionFunction",(function(){return ri})),n.d(t,"getCustomApplyRedactionsHandler",(function(){return ii})),n.d(t,"getCustomMultiViewerSyncHandler",(function(){return ai})),n.d(t,"getCustomMultiViewerAcceptedFileFormats",(function(){return li})),n.d(t,"isSnapModeEnabled",(function(){return ci})),n.d(t,"getUnreadAnnotationIdSet",(function(){return ui})),n.d(t,"getCurrentLanguage",(function(){return si})),n.d(t,"shouldFadePageNavigationComponent",(function(){return di})),n.d(t,"isWidgetHighlightingEnabled",(function(){return pi})),n.d(t,"isContentEditWarningHidden",(function(){return fi})),n.d(t,"areContentEditWorkersLoaded",(function(){return mi})),n.d(t,"getCurrentContentBeingEdited",(function(){return hi})),n.d(t,"isContentEditingEnabled",(function(){return bi})),n.d(t,"getFeatureFlags",(function(){return gi})),n.d(t,"isRightClickAnnotationPopupEnabled",(function(){return yi})),n.d(t,"isInDesktopOnlyMode",(function(){return vi})),n.d(t,"getPanelWidth",(function(){return wi})),n.d(t,"pageDeletionConfirmationModalEnabled",(function(){return Ei})),n.d(t,"getPageReplacementFileList",(function(){return Ci})),n.d(t,"getPageManipulationOverlayItems",(function(){return Oi})),n.d(t,"getMultiPageManipulationControlsItems",(function(){return Ti})),n.d(t,"getPageManipulationOverlayAlternativePosition",(function(){return Si})),n.d(t,"openingPageManipulationOverlayByRightClickEnabled",(function(){return xi})),n.d(t,"getThumbnailControlMenuItems",(function(){return Ai})),n.d(t,"shouldShowPresets",(function(){return _i})),n.d(t,"shouldResetAudioPlaybackPosition",(function(){return Pi})),n.d(t,"getActiveSoundAnnotation",(function(){return ki})),n.d(t,"getEmbeddedJSPopupStyle",(function(){return Li})),n.d(t,"getWv3dPropertiesPanelModelData",(function(){return Mi})),n.d(t,"getWv3dPropertiesPanelSchema",(function(){return ji})),n.d(t,"getOfficeEditorCursorProperties",(function(){return Ii})),n.d(t,"getOfficeEditorSelectionProperties",(function(){return Ri})),n.d(t,"isCursorInTable",(function(){return Ni})),n.d(t,"getOfficeEditorEditMode",(function(){return Di})),n.d(t,"getOfficeEditorActiveStream",(function(){return Fi})),n.d(t,"getOfficeEditorUnitMeasurement",(function(){return Bi})),n.d(t,"getAvailableFontFaces",(function(){return Hi})),n.d(t,"getCSSFontValues",(function(){return Vi})),n.d(t,"getContentBoxEditor",(function(){return Ui})),n.d(t,"getAnnotationFilters",(function(){return Gi})),n.d(t,"getNotesPanelCustomHeaderOptions",(function(){return Wi})),n.d(t,"getNotesPanelCustomEmptyPanel",(function(){return zi})),n.d(t,"isReplyAttachmentPreviewEnabled",(function(){return Zi})),n.d(t,"getReplyAttachmentHandler",(function(){return Yi})),n.d(t,"getCustomSettings",(function(){return qi})),n.d(t,"isToolDefaultStyleUpdateFromAnnotationPopupEnabled",(function(){return Ki})),n.d(t,"isAnnotationToolStyleSyncingEnabled",(function(){return $i})),n.d(t,"getShortcutKeyMap",(function(){return Xi})),n.d(t,"getMultiViewerSyncScrollMode",(function(){return Ji})),n.d(t,"getCompareAnnotationsMap",(function(){return Qi})),n.d(t,"getTextSignatureQuality",(function(){return ea})),n.d(t,"getIsMeasurementAnnotationFilterEnabled",(function(){return ta})),n.d(t,"isRightPanelOpen",(function(){return na})),n.d(t,"isLeftPanelOpen",(function(){return oa})),n.d(t,"getOpenRightPanelWidth",(function(){return ra})),n.d(t,"getIsShowComparisonButtonEnabled",(function(){return ia})),n.d(t,"getIsMultiViewerModeAvailable",(function(){return aa})),n.d(t,"getMaxPasswordAttempts",(function(){return la})),n.d(t,"isKeyboardOpen",(function(){return ca})),n.d(t,"canUndo",(function(){return ua})),n.d(t,"canRedo",(function(){return sa})),n.d(t,"spreadsheetEditorCanUndo",(function(){return da})),n.d(t,"spreadsheetEditorCanRedo",(function(){return pa})),n.d(t,"getIsCustomUIEnabled",(function(){return fa})),n.d(t,"getIsOfficeEditorHeaderEnabled",(function(){return ma})),n.d(t,"isSpreadsheetEditorModeEnabled",(function(){return ha})),n.d(t,"getUIConfiguration",(function(){return ba})),n.d(t,"getActiveCellRange",(function(){return ga})),n.d(t,"getCellFormula",(function(){return ya})),n.d(t,"getStringCellValue",(function(){return va})),n.d(t,"getSpreadsheetEditorEditMode",(function(){return wa})),n.d(t,"getActiveCellRangeVerticalAlignment",(function(){return Ea})),n.d(t,"getActiveCellRangeHorizontalAlignment",(function(){return Ca})),n.d(t,"getActiveCellRangeWrapText",(function(){return Oa})),n.d(t,"getActiveCellRangeFontStyle",(function(){return Ta})),n.d(t,"getActiveCellFormatType",(function(){return Sa})),n.d(t,"getActiveCellBorderStyle",(function(){return xa})),n.d(t,"getSelectedBorderColorOption",(function(){return Aa})),n.d(t,"getSelectedBorderStyleListOption",(function(){return _a})),n.d(t,"getTextColors",(function(){return Pa})),n.d(t,"getCustomTextColors",(function(){return ka})),n.d(t,"getBorderColors",(function(){return La})),n.d(t,"getCustomBorderColors",(function(){return Ma})),n.d(t,"getCellBackgroundColors",(function(){return ja})),n.d(t,"getCustomCellBackgroundColors",(function(){return Ia})),n.d(t,"getIsSingleCell",(function(){return Ra})),n.d(t,"getIsCellRangeMerged",(function(){return Na})),n.d(t,"getCellBackgroundColor",(function(){return Da})),n.d(t,"getCanCopy",(function(){return Fa})),n.d(t,"getCanPaste",(function(){return Ba})),n.d(t,"getCanCut",(function(){return Ha})),n.d(t,"getAvailableSpreadsheetEditorFontFaces",(function(){return Va})),n.d(t,"getSpreadsheetEditorCSSFontValues",(function(){return Ua})),n.d(t,"hasPanelInItems",(function(){return Ga})),n.d(t,"getIsPanelInFlyout",(function(){return Wa}));n(9),n(10),n(14),n(32),n(38),n(125),n(34),n(82),n(27),n(21),n(46),n(20),n(12),n(44),n(118),n(22),n(94),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(88),n(17),n(19),n(116),n(383),n(64),n(11),n(390),n(172),n(31),n(13);var o=n(45),r=n(263),i=n(28),a=n(7),l=n(5),c=n(363),u=n(1),s=n(25),d=n(65),p=function(e){return f(e)&&u.a.getOfficeEditor()},f=function(e){return e.viewer.isOfficeEditorMode},m=n(39),h=Object.defineProperty,b=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))g.call(t,n)&&v(e,n,t[n]);if(b)for(var n of b(t))y.call(t,n)&&v(e,n,t[n]);return e};function E(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var C=e=>Array.isArray(e)?e:[e];function O(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function T(e,t){const n=[],{length:o}=e;for(let r=0;r<o;r++)n.push(e[r].apply(null,t));return n}Symbol(),Object.getPrototypeOf({});var S="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function x(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:o}=t;let r,i=0;function a(){var t,a;let l=n;const{length:c}=arguments;for(let e=0,t=c;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=l.o;null===e&&(l.o=e=new WeakMap);const n=e.get(t);void 0===n?(l={s:0,v:void 0,o:null,p:null},e.set(t,l)):l=n}else{let e=l.p;null===e&&(l.p=e=new Map);const n=e.get(t);void 0===n?(l={s:0,v:void 0,o:null,p:null},e.set(t,l)):l=n}}const u=l;let s;if(1===l.s)s=l.v;else if(s=e.apply(null,arguments),i++,o){const e=null!=(a=null==(t=null==r?void 0:r.deref)?void 0:t.call(r))?a:r;null!=e&&o(e,s)&&(s=e,0!==i&&i--);r="object"==typeof s&&null!==s||"function"==typeof s?new S(s):s}return u.s=1,u.v=s,s}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function A(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,o=(...e)=>{let t,o=0,r=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),E(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l=w(w({},n),i),{memoize:c,memoizeOptions:u=[],argsMemoize:s=x,argsMemoizeOptions:d=[],devModeChecks:p={}}=l,f=C(u),m=C(d),h=O(e),b=c((function(){return o++,a.apply(null,arguments)}),...f);const g=s((function(){r++;const e=T(h,arguments);return t=b.apply(null,e),t}),...m);return Object.assign(g,{resultFunc:a,memoizedResultFunc:b,dependencies:h,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>t,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:c,argsMemoize:s})};return Object.assign(o,{withTypes:()=>o}),o}var _=A(x),P=Object.assign((e,t=_)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,o)=>(e[n[o]]=t,e),{}))},{withTypes:()=>P}),k=n(131);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=L(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=D(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function D(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var B=function(e,t){if(!t||!p(e))return!1;var n=u.a.getOfficeEditor().isTextSelected(),o=Ii(e),r=Ri(e),i=n?r:o;return"underline"===t?"single"===i.underlineStyle:i[t]},H=function(e){if(!p(e))return"";var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e),r=(t?o:n).pointSize;return void 0===r?"":r.toString()},V=function(e){if(!p(e))return"";var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e),r=t?o:n;return Object(d.g)(r)},U=function(e){if(!p(e))return"";var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e);return(t?o:n).fontFace||""},G=function(e){if(!p(e))return"";var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e),r=t?o:n,i=r.paragraphProperties.lineHeight,a=r.paragraphProperties.lineHeightMultiplier,l=n.paragraphProperties.fontPointSize||s.f;return Object(d.d)(a,i,l)},W=function(e){if(!p(e))return s.d;var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e),r=t?o:n;return Object(d.f)(r.color)},z=function(e){if(!p(e))return!1;var t=u.a.getOfficeEditor().isTextSelected(),n=Ii(e),o=Ri(e);return(t?o:n).paragraphProperties.listType},Z=f,Y=function(e,t){if(!t||!p(e))return!1;var n=u.a.getOfficeEditor().isTextSelected(),o=Ii(e),r=Ri(e);return(n?r:o).paragraphProperties.justification===t},q=function(e){return!!p(e)&&u.a.getOfficeEditor().getIsNonPrintingCharactersEnabled()},K=function(e){return e.officeEditor.canUndo},$=function(e){return e.officeEditor.canRedo},X=function(e){return e.officeEditor.isReplaceInProgress},J=function(e){return e.viewer.viewOnlyWhitelist},Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e.viewer.isViewOnly)return!1;if(!t)return!1;var o=e.viewer.viewOnlyWhitelist;if(o.dataElement.includes(t))return!1;if(o.dataElementBlacklist.includes(t))return!0;var r=ie(e,t);if(r){if(r.type===a.k.DIVIDER)return n;var i;if(o[r.type])return!(null!==(i=o[r.type])&&void 0!==i&&i.includes(r.toolName||r.buttonType||t));var l=[a.k.TOGGLE_BUTTON,a.k.GROUPED_ITEMS,a.k.RIBBON_ITEM,a.k.RIBBON_GROUP,a.k.MODULAR_HEADER];if(l.includes(r.type)){var c,u=N(te(r));try{for(u.s();!(c=u.n()).done;){var s=c.value;if(!Q(e,s,!0))return!1}}catch(e){u.e(e)}finally{u.f()}return!0}return!1}var d=fe(e,t);if(d){var p,f=N(d.items);try{for(f.s();!(p=f.n()).done;){var m=p.value;if("divider"!==m){if(null==m||!m.dataElement)return!1;if(!Q(e,m.dataElement,!0))return!1}}}catch(e){f.e(e)}finally{f.f()}return!0}var h=ne(e,t);if(h){if("tabPanel"===h.render){var b=h.panelsList.some((function(e){return o.panel.includes(e.render||e.dataElement)}));if(!b)return!0}return!o.panel.includes(h.render||t)}var g=t.endsWith("Modal");if(g)return!o.modal.includes(t);var y=t.endsWith("Overlay");return!!y&&!o.overlay.includes(t)},ee=function(e,t){var n,o=null===(n=Rn(e)[t])||void 0===n?void 0:n.dataElement;return Q(e,o)},te=function(e){switch(e.type){case a.k.TOGGLE_BUTTON:return[e.toggleElement];case a.k.GROUPED_ITEMS:case a.k.RIBBON_GROUP:case a.k.MODULAR_HEADER:return e.items;case a.k.RIBBON_ITEM:return e.groupedItems;default:return[]}},ne=function(e,t){return e.viewer.genericPanels.find((function(e){return e.dataElement===t||e.render===t}))},oe=function(e,t){var n=e.viewer.disabledElements;return ne(e,t).panelsList.filter((function(o){var r,a,l,c,u=null===(r=n[o.render])||void 0===r?void 0:r.disabled,s=null===(a=n["".concat(o.render,"-").concat(t)])||void 0===a?void 0:a.disabled,d=Q(e,o.render),p=o.render===i.e.PORTFOLIO&&0===(null===(l=e.document)||void 0===l||null===(c=l.portfolio)||void 0===c?void 0:c.length);return!(u||s||d||p)}))},re=function(e,t){var n=[],o=oe(e,t);return null==o||o.forEach((function(t){var o=t.render;if("string"==typeof o){if(!ne(e,o))return void console.warn("Panel ".concat(o," is not a valid custom panel"));n.push(o)}else"function"==typeof o&&n.push(t.dataElement)})),n},ie=function(e,t){return e.viewer.modularComponents[t]},ae=function(e){return e.viewer.scaleOverlayPosition},le=function(e){return e.viewer.defaultPrintMargins},ce=function(e,t,n){return n=n?n.toLowerCase():n,t&&e.viewer.toolColorOverrides[t]?e.viewer.toolColorOverrides[t]:"text"===n?e.viewer.textColors:e.viewer.colors},ue=function(e,t){var n;return(null===(n=e.viewer.customElementSizes)||void 0===n?void 0:n[t])||0},se=function(e){return e.viewer.activeFlyout},de=function(e){return e.viewer.flyoutPosition},pe=function(e){return e.viewer.flyoutMap},fe=function(e,t){return e.viewer.flyoutMap[t]},me=function(e){return e.viewer.flyoutToggleElement},he=function(e){return e.viewer.initalsOffset},be=function(e){return e.viewer.savedSignatureTabEnabled},ge=function(e){return e.viewer.syncViewer},ye=function(e){return e.viewer.isCompareStarted},ve=function(e){return e.advanced.disableMultiViewerComparison},we=function(e){return e.viewer.isComparisonOverlayEnabled},Ee=function(e){return e.viewer.isMultiViewerMode&&e.viewer.activeDocumentViewerKey?e.viewer.activeDocumentViewerKey:1},Ce=function(e){return e.viewer.isMultiViewerMode},Oe=function(e){return e.viewer.isMultiViewerReady},Te=function(e,t){return t?e.viewer.genericPanels.filter((function(e){return Object(k.e)(t,e.location)})):e.viewer.genericPanels},Se=function(e,t){return e.viewer.activeTabInPanel[t]},xe=function(e){return e.viewer.shouldShowApplyCropWarning},Ae=function(e){return e.viewer.shouldShowApplySnippingWarning},_e=function(e){return e.viewer.presetCropDimensions},Pe=function(e){return e.viewer.presetNewPageDimensions},ke=function(e){return e.viewer.dateTimeFormats},Le=function(e){return e.viewer.thumbnailSelectionMode},Me=function(e){return e.viewer.fonts},je=function(e){return e.viewer.tabs},Ie=function(e){return e.viewer.activeTab},Re=function(e){return e.viewer.isMultiTab},Ne=function(e){return e.viewer.TabManager},De=function(e){return e.viewer.tabNameHandler},Fe=function(e){return e.viewer.highContrastMode},Be=function(e,t){return e.viewer.lastPickedToolForGroup[t]},He=function(e){return e.viewer.standardStamps},Ve=function(e){return e.viewer.customStamps},Ue=function(e){return e.viewer.selectedStampIndex},Ge=function(e){return e.viewer.lastSelectedStampIndex},We=function(e){var t=He(e),n=Ve(e),o=Ue(e),r=t[o];return!r&&n.length&&(r=n[o-t.length]),r},ze=function(e){return e.viewer.savedSignatures},Ze=function(e){return e.viewer.savedSignatures.filter(e.viewer.displayedSignaturesFilterFunction)},Ye=function(e){return e.viewer.selectedDisplayedSignatureIndex},qe=function(e){return Ze(e)[Ye(e)]},Ke=function(e){return e.viewer.displayedSignaturesFilterFunction},$e=function(e){return e.viewer.signatureMode},Xe=function(e){return e.viewer.savedInitials},Je=function(e){return e.viewer.selectedDisplayedInitialsIndex},Qe=function(e){return e.viewer.isInitialsModeEnabled},et=function(e){return e.viewer.savedInitials[e.viewer.selectedDisplayedInitialsIndex]},tt=function(e){return e.viewer.autoFocusNoteOnAnnotationSelection},nt=function(e){return e.viewer.notesInLeftPanel},ot=function(e){return e.viewer.panelWidths.leftPanel},rt=function(e){return e.viewer.panelWidths.searchPanel},it=function(e){return e.viewer.panelWidths.notesPanel},at=function(e){return e.viewer.deleteScale},lt=function(e){return e.viewer.panelWidths.redactionPanel},ct=function(e){return e.viewer.panelWidths.wv3dPropertiesPanel},ut=function(e){return e.viewer.panelWidths.comparePanel},st=function(e){return e.viewer.panelWidths.textEditingPanel},dt=function(e){return e.viewer.mobilePanelSize},pt=function(e){return e.viewer.panelWidths.leftPanel+i.b},ft=function(e){return e.viewer.panelWidths.searchPanel+i.b},mt=function(e){return e.viewer.panelWidths.notesPanel+i.b},ht=function(e){return e.viewer.panelWidths.comparePanel+i.b},bt=function(e){var t=mt(e),n=ft(e),o=pt(e),r=st(e),i=ct(e),l=ht(e),c=lt(e),u=nt(e),s=Pt(e,"leftPanel"),d=Pt(e,"notesPanel"),p=Pt(e,"searchPanel"),f=Pt(e,"redactionPanel"),m=Pt(e,"textEditingPanel"),h=Pt(e,"wv3dPropertiesPanel"),b=Pt(e,"comparePanel"),g=gt(e,a.p.LEFT),y=gt(e,a.p.RIGHT),v=gi(e).customizableUI,w=0+(!v&&(s?o:0)+(d&&!u?t:0)+(p?n:0)+(f?c:0)+(m?r:0)+(h?i:0)+(b?l:0))+(v&&(g?wi(e,g):0)+(y?wi(e,y):0)),E=vn(e),C=yn(e);return"calc(100% - ".concat(w+(C+E),"px)")},gt=function(e,t){var n=e.viewer.genericPanels,r=[i.e.SIGNATURE_LIST,i.e.RUBBER_STAMP,i.e.STYLE,i.e.NOTES,i.e.SEARCH,i.e.TEXT_EDITING,i.e.TABS,i.e.REDACTION,i.e.FORM_FIELD,i.e.INDEX];return t&&(n=e.viewer.genericPanels.filter((function(e){return Object(o.k)()?Object(k.e)(t,e.location)&&!r.includes(e.dataElement):Object(k.e)(t,e.location)}))),n.map((function(e){return e.dataElement})).find((function(t){return!0===Pt(e,t)}))},yt=function(e,t){if(fa(e)){var n=Te(e),o=n.find((function(e){return t===e.dataElement}));return n.filter((function(e){return Object(k.e)(null==o?void 0:o.location,e.location)&&e.dataElement!==(null==o?void 0:o.dataElement)}))}return[]},vt=function(e){if(fa(e)){var t=gt(e,a.p.LEFT);return t?wi(e,t):0}return 0+(Pt(e,"leftPanel")?pt(e):0)},wt=function(e){if(fa(e)){var t=gt(e,a.p.RIGHT);return t?wi(e,t):0}return 0},Et=function(e){return e.viewer.calibrationInfo},Ct=function(e){return e.viewer.isAddingNewScale},Ot=function(e){return e.viewer.measurementScalePreset},Tt=function(e){return e.viewer.isMultipleScalesMode},St=function(e){return e.viewer.isNotesPanelMultiSelectEnabled},xt=function(e){return e.viewer.documentContainerWidth},At=function(e){return e.viewer.documentContainerHeight},_t=function(e,t){var n,o;return null===(n=e.viewer)||void 0===n||null===(o=n.disabledElements[t])||void 0===o?void 0:o.disabled},Pt=function(e,t){var n,o,r;return!(null===(n=e.viewer)||void 0===n||!n.openElements[t]||null!==(o=e.viewer)&&void 0!==o&&null!==(r=o.disabledElements[t])&&void 0!==r&&r.disabled)},kt=function(e,t){var n;return null===(n=e.viewer)||void 0===n?void 0:n.hiddenElements[t]},Lt=function(e,t){var n=Rn(e);return Object.values(n).filter((function(e){return e.group===t})).map((function(e){return e.dataElement})).every((function(t){return _t(e,t)}))},Mt=function(e){return e.viewer.headers},jt=function(e){return e.viewer.selectedScale},It=function(e){return e.viewer.customHeadersAdditionalProperties},Rt=function(e){return function(e){return Object.keys(e.viewer.headers).filter((function(e){return e.includes("toolbarGroup-")}))}(e).filter((function(t){var n=e.viewer.headers[t],o=function(e){return e.reduce((function(e,t){return t.children?e.push.apply(e,R(o(t.children))):e.push(t),e}),[])},r=o(n).filter((function(e){var t=e.dataElement;return t&&t.includes("ToolGroupButton")})),i=!t.includes("toolbarGroup-View")&&r.every((function(t){var n=t.dataElement;return _t(e,n)}));return!_t(e,"".concat(t))&&!i}))},Nt=function(e){return e.viewer.toolbarGroup},Dt=function(e){return e.viewer.activeGroupedItems},Ft=function(e){return e.viewer.fixedGroupedItems};function Bt(e,t,n,o){var r=e.viewer.modularComponents[t];if(!r)return[];var i=r.groupedItems,l=[],c=function(t){var r=(e.viewer.modularComponents[t]||{}).items;r&&r.forEach((function(t){var r=e.viewer.modularComponents[t];r&&(r.type===n?l.push(o(r)):r.type===a.k.GROUPED_ITEMS&&c(t))}))};return i.forEach((function(e){c(e)})),l}var Ht=function(e,t){return Bt(e,t,a.k.TOOL_BUTTON,(function(e){return e.toolName}))},Vt=function(e,t){var n,o=e.viewer.modularComponents,r=N(Object.values(o).filter((function(e){return e.type===a.k.RIBBON_ITEM})).map((function(e){return e.dataElement})));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Ht(e,i).includes(t))return i}}catch(e){r.e(e)}finally{r.f()}return null},Ut=function(e,t){return Bt(e,t,a.k.TOGGLE_BUTTON,(function(e){return e.dataElement}))},Gt=function(e,t){var n,o=e.viewer.modularComponents,r=N(Object.values(o).filter((function(e){return e.type===a.k.RIBBON_ITEM})).map((function(e){return e.dataElement})));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Ut(e,i).includes(t))return i}}catch(e){r.e(e)}finally{r.f()}return null},Wt=function(e,t){var n=e.viewer.lastActiveToolForRibbon[t];if(n&&!Zt(e,n))return n},zt=function(e,t){var n,o=N(Ht(e,t));try{for(o.s();!(n=o.n()).done;){var r=n.value;if(!Zt(e,r))return r}}catch(e){o.e(e)}finally{o.f()}},Zt=function(e,t){var n=Wn(e,t);return!n||_t(e,n)},Yt=function(e,t){var n=e.viewer.modularComponents,o=Object(c.b)(e,t),r="";return null==o||o.find((function(t){var o=n[t],i=o.type,l=o.toolName,c=o.dataElement;return!(i!==a.k.TOOL_BUTTON||!l||_t(e,c))&&(r=l,l)})),r},qt=function(e){return e.viewer.activeCustomRibbon},Kt=_([function(e){return e.viewer.modularHeaders},function(e){return e.viewer.activeGroupedItems},function(e){return e.viewer.fixedGroupedItems},function(e){return e.viewer.modularComponents},function(e){return e.viewer.disabledElements}],(function(e,t,n,o,r){var i=new Set(t),l=new Set(n),c=function(e){var t=o[e];if(!t)return!1;var n=t.type,r=t.dataElement;return n!==a.k.GROUPED_ITEMS||i.has(r)||l.has(r)};return Object.values(e).filter((function(e){var t,n,o=e.items,i=e.dataElement;return(null===(t=r[i])||void 0===t||!t.disabled)&&(!(null!==(n=r[i])&&void 0!==n&&n.disabled)&&(null==o?void 0:o.length)&&o.some(c))}))})),$t=function(e){return e.viewer.activeTheme},Xt=function(e){return e.viewer.timezone},Jt=function(e){return e.viewer.headers.default},Qt=function(e,t){return e.map((function(e){var n=t[e];if(!n)return null;var o=j({},n);return n.items&&n.items.length>0&&(o.items=Qt(n.items,t)),o})).filter((function(e){return null!==e}))},en=function(e,t){var n=e.viewer.modularHeaders[t];if(!n)return null;var o=e.viewer.modularComponents;return j(j({},n),{},{items:Qt(n.items,o)})},tn=function(e){return e.viewer.modularComponents},nn=function(e){return e.viewer.modularHeaders},on=function(e){return _([nn,tn],(function(t,n){var o=Object.values(t);return(e?o.filter((function(t){return t.placement===e})):o).map((function(e){return j(j({},e),{},{items:Qt(e.items,n)})}))}))},rn=I(I(I(I({all:on()},a.q.TOP,on(a.q.TOP)),a.q.BOTTOM,on(a.q.BOTTOM)),a.q.LEFT,on(a.q.LEFT)),a.q.RIGHT,on(a.q.RIGHT)),an=function(e,t){return t?rn[t](e):rn.all(e)},ln=function(e){return rn[a.q.TOP](e)},cn=function(e){return rn[a.q.BOTTOM](e)},un=function(e){return rn[a.q.LEFT](e)},sn=function(e){return rn[a.q.RIGHT](e)},dn=_([Kt],(function(e){return e.filter((function(e){return e.placement===a.q.TOP})).filter((function(e){return!e.float}))})),pn=_([Kt],(function(e){return e.filter((function(e){return e.placement===a.q.BOTTOM})).filter((function(e){return!e.float}))})),fn=_([dn,function(e){return e.viewer.modularHeadersHeight.topHeaders}],(function(e,t){return e.length*t})),mn=_([pn,function(e){return e.viewer.modularHeadersHeight.bottomHeaders},function(e){return e.viewer.isSpreadsheetEditorModeEnabled}],(function(e,t,n){return e.length*t+(n?t:0)})),hn=function(e){return e.viewer.modularHeadersWidth.rightHeader},bn=function(e){return e.viewer.modularHeadersWidth.leftHeader},gn=function(e){return e.viewer.modularHeadersWidth.bottomHeaders},yn=function(e){var t=Kt(e);return(null==t?void 0:t.some((function(e){return e.placement===a.q.LEFT})))?bn(e):0},vn=function(e){var t=Kt(e);return(null==t?void 0:t.some((function(e){return e.placement===a.q.RIGHT})))?hn(e):0},wn=function(e){return e.viewer.floatingContainersDimensions.topFloatingContainerHeight},En=function(e){return e.viewer.floatingContainersDimensions.bottomFloatingContainerHeight},Cn=function(e,t,n){return Object.values(e.viewer.modularHeaders).filter((function(e){return e.placement===t&&e.position===n&&e.float}))},On=function(e){return Cn(e,a.q.TOP,a.r.START)},Tn=function(e){return Cn(e,a.q.BOTTOM,a.r.START)},Sn=function(e){return Cn(e,a.q.TOP,a.r.END)},xn=function(e){return Cn(e,a.q.BOTTOM,a.r.END)},An=function(e){return e.viewer.headers[e.viewer.activeHeaderGroup]},_n=function(e,t){var n;return null===(n=e.viewer.disabledElements[t])||void 0===n?void 0:n.priority},Pn=function(e){var t=Nt(e);return e.viewer.headers[t]||[]},kn=function(e){var t=e.viewer.modularComponents;return Object.keys(t).filter((function(e){return t[e].alwaysVisible}))},Ln=function(e){return e.viewer.disabledElements},Mn=_([tn,Ln],(function(e,t){return Object.keys(e).filter((function(n){var o;return e[n].type===a.k.RIBBON_ITEM&&!(null!==(o=t[n])&&void 0!==o&&o.disabled)}))})),jn=function(e){return e.viewer.modularComponentFunctions},In=function(e){return function(t){return t.viewer.headers[e]}},Rn=function(e){return e.viewer.toolButtonObjects},Nn=function(e){return e.viewer.enableToolGroupReordering},Dn=function(e){return e.viewer.enableNoteSubmissionWithEnter},Fn=function(e){return e.viewer.isNotesPanelTextCollapsingEnabled},Bn=function(e){return e.viewer.isNotesPanelRepliesCollapsingEnabled},Hn=function(e){return e.viewer.isCommentThreadExpansionEnabled},Vn=function(e){var t=e.viewer.activeToolGroup,n=Rn(e);return Object.keys(n).filter((function(o){var r=n[o],i=r.group,a=r.dataElement;return i===t&&!_t(e,a)}))},Un=function(e,t){var n=Rn(e);return t.map((function(e){var t;return null===(t=n[e])||void 0===t?void 0:t.dataElement})).filter(Boolean)},Gn=function(e,t){return Rn(e)[t]},Wn=function(e,t){var n;return null===(n=Gn(e,t))||void 0===n?void 0:n.dataElement},zn=function(e,t){var n=Rn(e);return Object.keys(n).filter((function(e){return n[e].group===t}))},Zn=function(e,t){var n=Rn(e);return Object.keys(n).find((function(e){return n[e].dataElement===t}))},Yn=function(e){return e.viewer.activeToolName},qn=function(e){return e.viewer.activeToolStyles},Kn=function(e){return e.viewer.customColor},$n=function(e){return e.viewer.customColors},Xn=function(e){return e.viewer.activeLeftPanel},Jn=function(e){return e.viewer.genericPanels.some((function(t){return e.viewer.openElements[t.dataElement]}))},Qn=function(e){return e.viewer.activeToolGroup},eo=function(e){return e.viewer.notePopupId},to=function(e){return e.viewer.fitMode},no=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.viewer.zoomLevels[t]},oo=function(e){return e.viewer.displayMode},ro=function(e){return e.viewer.currentPage},io=function(e){var t,n=go(e),o=ro(e);return null!==(t=null==n?void 0:n[o-1])&&void 0!==t?t:""},ao=function(e){return e.viewer.sortStrategy},lo=function(e){return e.viewer.rotation},co=function(e){return e.viewer.noteDateFormat||r.a},uo=function(e){return e.viewer.printedNoteDateFormat||r.b},so=function(e){return e.viewer.isFullScreen},po=function(e){return e.viewer.doesAutoLoad},fo=function(e){return e.viewer.isReadOnly},mo=function(e){return e.viewer.isViewOnly},ho=function(e){return e.viewer.customPanels},bo=function(e){return e.viewer.customModals},go=function(e){return e.viewer.pageLabels},yo=function(e){return e.viewer.isCustomPageLabelsEnabled},vo=function(e){return e.viewer.selectedThumbnailPageIndexes},wo=function(e){return e.viewer.shiftKeyThumbnailPivotIndex},Eo=function(e){return e.viewer.customPanels.reduce((function(t,n){var o,r=n.tab;return null!==(o=e.viewer.disabledElements[r.dataElement])&&void 0!==o&&o.disabled&&t.push(r.dataElement),t}),[])},Co=function(e){var t=Ln(e);return Object.keys(t).filter((function(t){return _t(e,t)})).map((function(t){return Zn(e,t)})).filter(Boolean)},Oo=function(e){return!o.a&&e.viewer.useEmbeddedPrint},To=function(e){return e.viewer.useClientSidePrint},So=function(e){return e.viewer.autoExpandOutlines},xo=function(e){return e.viewer.isAnnotationNumberingEnabled},Ao=function(e){return e.viewer.bookmarkIconShortcutVisibility},_o=function(e){return e.viewer.colorMap},Po=function(e){return e.viewer.cursorOverlay},ko=function(e){return e.viewer.openElements},Lo=function(e,t){var n;return null===(n=e.viewer.colorMap[t])||void 0===n?void 0:n.currentStyleTab},Mo=function(e,t){var n;return null===(n=e.viewer.colorMap[t])||void 0===n?void 0:n.iconColor},jo=function(e){return e.viewer.customNoteFilter},Io=function(e){return e.viewer.internalNoteFilter},Ro=function(e){return e.viewer.inlineCommentFilter},No=function(e){return e.viewer.isReplyDisabledFunc},Do=function(e){return e.viewer.zoomList},Fo=function(e){return e.viewer.measurementUnits},Bo=function(e){return e.viewer.isNoteEditing},Ho=function(e){return e.viewer.maxSignaturesCount},Vo=function(e){return e.viewer.userData},Uo=function(e){return!!e.viewer.userData},Go=function(e){return e.viewer.signatureFonts},Wo=function(e,t){return e.viewer.tab[t]},zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.viewer.customElementOverrides[t]},Zo=function(e,t){var n=e.viewer.modularPopups[t];return n?n.filter((function(t){if(!e.viewer.isViewOnly)return!0;var n=null==t?void 0:t.dataElement;return!(n&&!e.viewer.viewOnlyWhitelist.dataElement.includes(n))||(!!e.viewer.viewOnlyWhitelist.dataElementBlacklist.includes(n)||e.viewer.viewOnlyWhitelist.popup.includes(n))})):[]},Yo=function(e){return e.viewer.menuOverlay},qo=function(e){return e.viewer.isThumbnailMerging},Ko=function(e){return e.viewer.isThumbnailReordering},$o=function(e){return e.viewer.isThumbnailMultiselect},Xo=function(e){return e.viewer.isMultipleViewerMerging},Jo=function(e){return e.viewer.enableNotesPanelVirtualizedList},Qo=function(e){return e.viewer.notesShowLastUpdatedDate},er=function(e){return e.viewer.allowPageNavigation},tr=function(e){return e.viewer.customMeasurementOverlay},nr=function(e){return e.viewer.annotationContentOverlayHandler},or=function(e){return e.viewer.enableMouseWheelZoom},rr=function(e){return e.viewer.isReaderMode},ir=function(e){return e.digitalSignatureValidation.certificates},ar=function(e){return e.digitalSignatureValidation.trustListKey},lr=function(e){return e.digitalSignatureValidation.validationModalWidgetName},cr=function(e,t){return e.digitalSignatureValidation.verificationResult[t]||{}},ur=function(e){return e.digitalSignatureValidation.isRevocationCheckingEnabled},sr=function(e){return e.digitalSignatureValidation.revocationProxyPrefix},dr=function(e){return e.viewer.thumbnailSelectingPages},pr=function(e){return e.viewer.watermarkModalOptions},fr=function(e){return e.viewer.zoomStepFactors},mr=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.message)||""},hr=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.title)||""},br=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onConfirm},gr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.confirmBtnText},yr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onSecondary},vr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.secondaryBtnText},wr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.secondaryBtnClass},Er=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onCancel},Cr=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.showAskAgainCheckbox)||!1},Or=function(e){var t,n;return null===(t=null===(n=e.viewer.warning)||void 0===n?void 0:n.showDeleteTabWarning)||void 0===t||t},Tr=function(e){return e.viewer.isAccessibleMode},Sr=function(e){return e.viewer.shouldAddA11yContentToDOM},xr=function(e){return e.viewer.disabledFeaturesInAccessibleReadingMode},Ar=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.templateStrings)||{}},_r=function(e){var t;return(null===(t=e.viewer.warning)||void 0===t?void 0:t.modalClass)||""},Pr=function(e){var t;return null===(t=e.viewer.warning)||void 0===t?void 0:t.onClose},kr=function(e){return e.viewer.errorMessage||""},Lr=function(e){return e.viewer.errorTitle||""},Mr=function(e){return e.document.passwordAttempts},jr=function(e){return e.document.printQuality},Ir=function(e){return e.document.defaultPrintOptions},Rr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.document.totalPages[t]},Nr=function(e){return e.document.outlines},Dr=function(e){return e.viewer.isOutlineEditingEnabled},Fr=function(e){return e.document.bookmarks},Br=function(e){return e.document.portfolio},Hr=function(e){return e.document.layers},Vr=function(e){return e.document.loadingProgress},Ur=function(e){return e.user.name},Gr=function(e){return e.advanced.serverUrl},Wr=function(e){return e.search.value},zr=function(e){return e.search.clearSearchPanelOnClose},Zr=function(e){return e.search.isCaseSensitive},Yr=function(e){return e.search.replaceValue},qr=function(e){return e.search.nextResult},Kr=function(e){return e.search.isWholeWord},$r=function(e){return e.search.isWildcard},Xr=function(e){return e.search.isSearchUp},Jr=function(e){return e.search.isSearchInProgress},Qr=function(e){return e.search.isAmbientString},ei=function(e){return e.search.isRegex},ti=function(e){return e.search.isProcessingSearchResults},ni=function(e){return e.search.redactionSearchPatterns},oi=function(e){return e.viewer.noteTransformFunction},ri=function(e){return e.viewer.customNoteFunction},ii=function(e){return e.viewer.customApplyRedactionsHandler},ai=function(e){return e.viewer.customMultiViewerSyncHandler},li=function(e){return e.viewer.customMultiViewerAcceptedFileFormats},ci=function(e){return!!e.viewer.snapMode[e.viewer.activeToolName]},ui=function(e){return e.viewer.unreadAnnotationIdSet},si=function(e){return e.viewer.currentLanguage},di=function(e){return e.viewer.fadePageNavigationComponent},pi=function(e){return e.viewer.isWidgetHighlightingEnabled},fi=function(e){return e.viewer.hideContentEditWarning},mi=function(e){return e.viewer.contentEditWorkersLoaded},hi=function(e){return e.viewer.currentContentBeingEdited},bi=function(e){return e.viewer.isContentEditingEnabled},gi=function(e){return e.featureFlags},yi=function(e){return e.viewer.enableRightClickAnnotationPopup},vi=function(e){return e.viewer.isInDesktopOnlyMode},wi=function(e,t){return e.viewer.panelWidths[t]||i.d},Ei=function(e){return e.viewer.pageDeletionConfirmationModalEnabled},Ci=function(e){return e.viewer.pageReplacementFileList},Oi=function(e){return e.viewer.pageManipulationOverlay},Ti=function(e){return e.viewer.multiPageManipulationControls},Si=function(e){return e.viewer.pageManipulationOverlayAlternativePosition},xi=function(e){return e.viewer.pageManipulationOverlayOpenByRightClick},Ai=function(e){return e.viewer.thumbnailControlMenu},_i=function(e){var t,n=e.viewer.toolButtonObjects[e.viewer.activeToolName];return null===(t=null==n?void 0:n.showPresets)||void 0===t||t},Pi=function(e){return e.viewer.shouldResetAudioPlaybackPosition},ki=function(e){return e.viewer.activeSoundAnnotation},Li=function(e){return e.viewer.embeddedJSPopupStyle},Mi=function(e){return e.wv3dPropertiesPanel.modelData},ji=function(e){return e.wv3dPropertiesPanel.schema},Ii=function(e){return e.officeEditor.cursorProperties},Ri=function(e){return e.officeEditor.selectionProperties},Ni=function(e){return Ii(e).locationProperties.inTable},Di=function(e){return e.officeEditor.editMode},Fi=function(e){return e.officeEditor.stream},Bi=function(e){return e.officeEditor.unitMeasurement},Hi=function(e){return e.officeEditor.availableFontFaces},Vi=function(e){return e.officeEditor.cssFontValues},Ui=function(e){return e.viewer.contentBoxEditor},Gi=function(e){return e.viewer.annotationFilters},Wi=function(e){return e.viewer.notesPanelCustomHeaderOptions},zi=function(e){return e.viewer.notesPanelCustomEmptyPanel},Zi=function(e){return e.viewer.replyAttachmentPreviewEnabled},Yi=function(e){return e.viewer.replyAttachmentHandler},qi=function(e){return e.viewer.customSettings},Ki=function(e){return e.viewer.toolDefaultStyleUpdateFromAnnotationPopupEnabled},$i=function(e){return e.viewer.annotationToolStyleSyncingEnabled},Xi=function(e){return e.viewer.shortcutKeyMap},Ji=function(e){return e.viewer.multiViewerSyncScrollMode},Qi=function(e){return e.viewer.compareAnnotationsMap},ea=function(e){return e.viewer.textSignatureCanvasMultiplier},ta=function(e){return e.viewer.isMeasurementAnnotationFilterEnabled},na=function(e){var t=gt(e,a.p.RIGHT);return(null==t?void 0:t.length)>0},oa=function(e){var t=gt(e,a.p.LEFT);return(null==t?void 0:t.length)>0},ra=function(e){if(fa(e))return na(e)?wt(e):0;for(var t=0,n=[{name:l.a.NOTES_PANEL,isOpen:Pt,getWidth:mt},{name:l.a.SEARCH_PANEL,isOpen:Pt,getWidth:ft},{name:l.a.TEXT_EDITING_PANEL,isOpen:Pt,getWidth:st},{name:l.a.WV3D_PROPERTIES_PANEL,isOpen:Pt,getWidth:ct},{name:l.a.COMPARE_PANEL,isOpen:Pt,getWidth:ht},{name:l.a.REDACTION_PANEL,isOpen:Pt,getWidth:lt}];t<n.length;t++){var o=n[t];if(o.isOpen(e,o.name))return o.getWidth(e)}return 0},ia=function(e){return e.viewer.isShowComparisonButtonEnabled},aa=function(e){return e.viewer.isMultiViewerModeAvailable},la=function(e){return e.document.maxPasswordAttempts},ca=function(e){return e.viewer.isKeyboardOpen},ua=function(e){return e.viewer.canUndo[e.viewer.activeDocumentViewerKey]},sa=function(e){return e.viewer.canRedo[e.viewer.activeDocumentViewerKey]},da=function(e){return e.spreadsheetEditor.canUndo},pa=function(e){return e.spreadsheetEditor.canRedo},fa=function(e){return"legacy"!=Object(m.a)("ui","default")||gi(e).customizableUI},ma=function(e){return e.viewer.isOfficeEditorHeaderEnabled},ha=function(e){return e.viewer.isSpreadsheetEditorModeEnabled},ba=function(e){return e.viewer.uiConfiguration},ga=function(e){return e.spreadsheetEditor.activeCellRange},ya=function(e){return e.spreadsheetEditor.cellProperties.cellFormula},va=function(e){return e.spreadsheetEditor.cellProperties.stringCellValue},wa=function(e){return e.spreadsheetEditor.editMode},Ea=function(e){return e.spreadsheetEditor.cellProperties.styles.verticalAlignment},Ca=function(e){return e.spreadsheetEditor.cellProperties.styles.horizontalAlignment},Oa=function(e){return e.spreadsheetEditor.cellProperties.styles.wrapText},Ta=function(e,t){return e.spreadsheetEditor.cellProperties.styles.font[t]},Sa=function(e){return e.spreadsheetEditor.cellProperties.styles.formatType},xa=function(e){return e.spreadsheetEditor.cellProperties.styles.border},Aa=function(e){return e.spreadsheetEditor.selectedBorderColorOption},_a=function(e){return e.spreadsheetEditor.selectedBorderStyleListOption},Pa=function(e){return e.spreadsheetEditor.textColors},ka=function(e){return e.spreadsheetEditor.customTextColors},La=function(e){return e.spreadsheetEditor.borderColors},Ma=function(e){return e.spreadsheetEditor.customBorderColors},ja=function(e){return e.spreadsheetEditor.cellBackgroundColors},Ia=function(e){return e.spreadsheetEditor.customCellBackgroundColors},Ra=function(e){return e.spreadsheetEditor.cellProperties.isSingleCell},Na=function(e){return e.spreadsheetEditor.cellProperties.styles.isCellRangeMerged},Da=function(e){return e.spreadsheetEditor.cellProperties.styles.backgroundColor},Fa=function(e){return e.spreadsheetEditor.cellProperties.canCopy},Ba=function(e){return e.spreadsheetEditor.cellProperties.canPaste},Ha=function(e){return e.spreadsheetEditor.cellProperties.canCut},Va=function(e){return e.spreadsheetEditor.availableFontFaces},Ua=function(e){return e.spreadsheetEditor.cssFontValues},Ga=function(e,t){return!(!e||!Array.isArray(e))&&e.some((function(e){return!!e&&(!!("object"===L(e)&&e.props&&e.hasOwnProperty("key")&&e.props.isFlyout&&e.key.startsWith(t))||("object"===L(e)&&e.render===t||!!e.children&&Ga(e.children,t)))}))},Wa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e.viewer.flyoutMap;for(var r in o){var i=o[r],a=(null==i?void 0:i.items)&&Ga(i.items,t)&&!n.includes(null==i?void 0:i.dataElement);if(a)return i}return null}},function(e,t,n){"use strict";var o=n(58),r=n(340).trim;o({target:"String",proto:!0,forced:n(688)("trim")},{trim:function(){return r(this)}})},function(e,t,n){var o=n(58),r=n(535);o({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(e,t){e.exports=!1},function(e,t,n){var o=n(273),r=n(129);e.exports=function(e){return o(r(e))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return D})),n.d(t,"a",(function(){return V}));n(9),n(10),n(14),n(32),n(38),n(34),n(82),n(124),n(27),n(21),n(46),n(20),n(12),n(268),n(44),n(118),n(22),n(94),n(128),n(33),n(18),n(26),n(16),n(30),n(40),n(49),n(24),n(48),n(50),n(41),n(35),n(42),n(8),n(111),n(56),n(17),n(19),n(64),n(11),n(182),n(115),n(31),n(13),n(93);var o=n(1),r=n(60),i=n(109),a=n(162),l=n(3),c=n(4),u=n(39),s=n(57),d=n(186),p=n(54),f=n(238),m=n.n(f),h=n(5),b=n(23);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return O(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(O(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,O(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,O(d,"constructor",u),O(u,"constructor",c),c.displayName="GeneratorFunction",O(u,r,"GeneratorFunction"),O(d),O(d,r,"Generator"),O(d,o,(function(){return this})),O(d,"toString",(function(){return"[object Generator]"})),(C=function(){return{w:i,m:p}})()}function O(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(O=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){O(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function x(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}function P(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function M(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){M(i,o,r,a,l,"next",e)}function l(e){M(i,o,r,a,l,"throw",e)}a(void 0)}))}}var I={flags:window.Core.SaveOptions.INCREMENTAL},R=function(){return function(e,t){var n=t();if(!c.a.getIsMultiTab(n)||!c.a.getTabManager(n)){var r=o.a.getDocument(),i=[];if(r)i.push(r);else{var a=Object(u.a)("d","");(a=a?JSON.parse(a):"")&&(Array.isArray(a)?i=i.concat(a):i.push(a))}var d=new V(i,[],{dispatch:e,getState:t});e(l.a.setMultiTab(!0)),e(l.a.setTabManager(d)),setTimeout((function(){Object(s.a)(p.a.TAB_MANAGER_READY)}),300),o.a.addEventListener("documentLoaded",(function e(){var n=o.a.getDocument(),r=t();c.a.getTabs(r).some((function(e){var t;return(null===(t=e.options)||void 0===t?void 0:t.filename)===n.filename}))||n.getFileData(I).then((function(e){try{d.addTab(new File([e],n.getFilename()))}catch(e){console.error(e)}})),o.a.removeEventListener("documentLoaded",e)}))}}};function N(e,t){var n,o=null===(n=Object(u.a)("extension",null))||void 0===n?void 0:n.split(",");if(o&&1!==o.length&&o.length!==e.length)throw new Error("'initialDoc' array length doesn't match 'extension' array length.\n Please add an extension for each document or add one for all documents.\n ex:\n Webviewer({ initialDoc: ['pdf_doc', 'word_doc'], extension: ['pdf', 'docx'] })\n OR\n Webviewer({ initialDoc: ['pdf_doc1', 'pdf_doc2', 'pdf_doc3'], extension: ['pdf'] })");o&&1===o.length&&console.warn("Extension option '".concat(o[0],"' will be applied to all tabs from the constructor.")),t.dispatch(l.a.setMultiTab(!0));var r=new V(e,o,t);t.dispatch(l.a.setTabManager(r)),r.listenForAnnotChanges(),setTimeout((function(){Object(s.a)(p.a.TAB_MANAGER_READY)}),300)}function D(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e){var n=e.lastIndexOf(".");return-1!==n&&(e=e.substring(0,n)),t?e.replace(/\s+/g,"").toLowerCase():e}}function F(e,t,n){return B.apply(this,arguments)}function B(){return(B=j(C().m((function e(t,n,o){var r;return C().w((function(e){for(;;)switch(e.n){case 0:return r=t.transaction("files","readwrite"),r.objectStore("files").put(n,o),e.n=1,r.commit();case 1:return e.a(2)}}),e)})))).apply(this,arguments)}function H(e){var t=e.filter((function(e){return e.options.filename.includes("untitled-")}));if(0===t.length)return 1;var n=t.map((function(e){var t=e.options.filename.match(/\d+/);return t?parseInt(t[0]):0}));return Math.max.apply(Math,P(n))+1}var V=function(){return x((function e(t,n,i){var a=this;T(this,e),A(this,"db",void 0),A(this,"store",void 0),A(this,"useDB",void 0),A(this,"tabLoadPromise",void 0),A(this,"getViewerState",(function(e){var t={},n=e.viewer;return t.documentContainerWidth=n.documentContainerWidth,t.documentContainerHeight=n.documentContainerHeight,t.isNotesPanelOpen=c.a.isElementOpen(e,"notesPanel"),t.isLeftPanelOpen=c.a.isElementOpen(e,"leftPanel"),t.isSearchPanelOpen=c.a.isElementOpen(e,"searchPanel"),t.activeToolName=n.activeToolName,t})),A(this,"listenToDocumentDownloaded",function(){var e=j(C().m((function e(t){var n,r,i,l,c,u,d;return C().w((function(e){for(;;)switch(e.n){case 0:n=a.store.getState().viewer,r=n.tabs,i=n.activeTab,l=r.find((function(e){return e.id===i})),c=function(){l.changes.hasUnsavedChanges=!1},u=function(e){"refresh"!==e.source&&(l.changes.hasUnsavedChanges=!0)},Object(s.c)().addEventListener(p.a.FILE_DOWNLOADED,c),t.addEventListener("pagesUpdated",u),d=function(){Object(s.c)().removeEventListener(p.a.FILE_DOWNLOADED,c),t.removeEventListener("pagesUpdated",u)},o.a.addEventListener("documentUnloaded",d,{once:!0});case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.store=i;var u=this.store.getState();this.useDB=!u.advanced.disableIndexedDB;var d=u.viewer,f=d.tabs,h=d.isMultiTab;if(this.useDB){var b=indexedDB.open("WebViewer Files",1);b.onerror=e.indexedDBNotSupported,b.onsuccess=j(C().m((function t(){return C().w((function(t){for(;;)switch(t.n){case 0:a.db=b.result,a.db.onerror=e.throwError;case 1:return t.a(2)}}),t)}))),b.onupgradeneeded=function(e){e.target.result.createObjectStore("files")}}h&&c.a.getTabManager(u)||(t.forEach((function(e,t){var o=n&&m()(e)?n[n.length>1?t:0]:void 0,r="Document ".concat(f.length+1);m()(e)?r=e.substring(e.lastIndexOf("/")+1):e instanceof window.Core.Document&&e.getFilename&&e.getFilename()&&(r=e.getFilename()),f.push(new U(f.length,e,a,{filename:r,extension:o},a.useDB))})),this.store.dispatch(l.a.setTabs(f)),this.prepareTabEventListeners(),o.a.addEventListener("documentLoaded",j(C().m((function e(){var t,n,c,u,s,d,p,f,m,h,b,g,y,v,w;return C().w((function(e){for(;;)switch(e.n){case 0:return t=a.store.getState(),n=t.viewer,c=n.tabs,u=n.activeTab,s=i.dispatch,d=c.find((function(e){return e.id===u})),e.n=1,o.a.getDocument().getType();case 1:if((p=e.v)!==r.a.PDF&&p!==r.a.OFFICE){e.n=4;break}return g=F,y=a.db,e.n=2,o.a.getDocument().getFileData(I);case 2:return v=e.v,w=d.id,e.n=3,g(y,v,w);case 3:f=H(c),d.options.filename=o.a.getDocument().getFilename()||"untitled-".concat(f),(m=new U(u,o.a.getDocument(),d.tabManager,d.options,d.useDB)).saveData.docInDB=!0,h=c.findIndex((function(e){return e.id===d.id})),c[h]=m,b=P(c),s(l.a.setTabs(b));case 4:return e.a(2)}}),e)})))))}),[{key:"prepareTabEventListeners",value:function(){var e=this,t=o.a.getDocumentViewer(1);t.addEventListener("finishedRendering",(function(){e.listenForAnnotChanges(),e.listenToDocumentDownloaded(t)}),{once:!0})}},{key:"setActiveTab",value:(i=j(C().m((function e(t){var n,r,i,u,d,f,m,b,g,y=arguments;return C().w((function(e){for(;;)switch(e.n){case 0:if(n=!(y.length>1&&void 0!==y[1])||y[1],this.store.dispatch(l.a.openElement(h.a.PROGRESS_MODAL)),this.store.dispatch(Object(a.setLoadingProgress)(0)),r=this.store.getState(),i=r.viewer,u=i.tabs,d=i.activeTab,f=u.find((function(e){return e.id===d})),m=c.a.isElementOpen(r,h.a.MULTITABS_EMPTY_PAGE),this.prepareTabEventListeners(),b=u.find((function(e){return e.id===t}))){e.n=1;break}return e.a(2,console.error("Tab id not found: ".concat(t)));case 1:return e.n=2,this.waitForTabToLoad();case 2:return e.n=3,Object(s.a)(p.a.BEFORE_TAB_CHANGED,{currentTab:f?{src:f.src,options:f.options,id:f.id,annotationsChanged:f.changes.annotations,hasUnsavedChanges:f.changes.hasUnsavedChanges}:null,nextTab:{src:b.src,options:b.options,id:b.id}});case 3:if(g=this.getViewerState(r),!f){e.n=5;break}if(!n){e.n=4;break}return e.n=4,f.saveCurrentActiveTabState(this.db);case 4:return e.n=5,o.a.closeDocument();case 5:return this.store.dispatch(l.a.setActiveTab(t)),m&&this.store.dispatch(l.a.closeElement(h.a.MULTITABS_EMPTY_PAGE)),this.tabLoadPromise=b.load(this.store.dispatch,this.db,g),e.n=6,this.tabLoadPromise;case 6:return e.a(2)}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"waitForTabToLoad",value:(n=j(C().m((function e(){return C().w((function(e){for(;;)switch(e.n){case 0:if(!this.tabLoadPromise){e.n=2;break}return e.n=1,this.tabLoadPromise;case 1:this.tabLoadPromise=null;case 2:return e.a(2)}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"showDeleteWarning",value:function(e){var t=this,n={message:"warning.closeFile.message",title:"warning.closeFile.title",onConfirm:function(){Object(d.a)(t.store.dispatch).then((function(){e.changes.hasUnsavedChanges=!1,t.deleteTab(e.id)}))},onSecondary:function(){e.changes.hasUnsavedChanges=!1,t.deleteTab(e.id)},confirmBtnText:"action.download",secondaryBtnText:"warning.closeFile.rejectDownloadButton",secondaryBtnClass:"secondary-btn-custom",showAskAgainCheckbox:!0,onClose:function(e){e&&t.store.dispatch(l.a.disableDeleteTabWarning())}};this.store.dispatch(l.a.showWarningMessage(n))}},{key:"deleteTab",value:(t=j(C().m((function e(t){var n,r,i,a,u,d,f,m,h;return C().w((function(e){for(;;)switch(e.n){case 0:if(n=this.store.getState(),r=n.viewer,i=r.tabs,a=r.activeTab,u=i.find((function(e){return e.id===t})),!c.a.getShowDeleteTabWarning(n)||!u.changes.hasUnsavedChanges){e.n=1;break}this.showDeleteWarning(u),e.n=8;break;case 1:return d=i.filter((function(e){return e.id===t})),f=E(d,1),m=f[0],h=i.filter((function(e){return e.id!==t})),e.n=2,Object(s.a)(p.a.BEFORE_TAB_DELETED,{src:m.src,options:m.options,id:m.id});case 2:if(m.delete(this.db),this.store.dispatch(l.a.setTabs(h)),!(t===a&&h.length>0)){e.n=4;break}return e.n=3,this.setActiveTab(h[0].id);case 3:e.n=7;break;case 4:if(0!==h.length){e.n=7;break}return e.n=5,this.waitForTabToLoad();case 5:return e.n=6,o.a.closeDocument();case 6:this.store.dispatch(l.a.setActiveTab(null));case 7:return e.n=8,Object(s.a)(p.a.TAB_DELETED,{src:m.src,options:m.options,id:m.id});case 8:return e.a(2)}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"addTab",value:(e=j(C().m((function e(t){var n,o,r,i,a,c,u,d,f=arguments;return C().w((function(e){for(;;)switch(e.n){case 0:if(n=f.length>1&&void 0!==f[1]?f[1]:{},o=n.saveCurrentActiveTabState||n.saveCurrent,r=!1===n.useDB?n.useDB&&this.useDB:this.useDB,i=n.setActive||n.load,a=this.store.getState().viewer.tabs,c=a.reduce((function(e,t){return t.id>e?t.id:e}),0),"filename"in n||(n.filename="Document ".concat(c+2),m()(t)?n.filename=t.substring(t.lastIndexOf("/")+1):t instanceof window.Core.Document&&t.getFilename&&t.getFilename()?n.filename=t.getFilename():(t instanceof File||"[object File]"===Object.prototype.toString.call(t))&&(n.filename=t.name)),u=new U(c+1,t,this,n,r),d=[].concat(P(a),[u]),this.store.dispatch(l.a.setTabs(d)),!i){e.n=1;break}return e.n=1,this.setActiveTab(u.id,o);case 1:return e.n=2,Object(s.a)(p.a.TAB_ADDED,{src:u.src,options:u.options,id:u.id});case 2:return e.a(2,u.id)}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"moveTab",value:function(e,t){var n=P(this.store.getState().viewer.tabs),o=n.splice(e,1)[0];n.splice(t,0,o),this.store.dispatch(l.a.setTabs(n)),Object(s.a)(p.a.TAB_MOVED,{src:o.src,options:o.options,id:o.id,prevIndex:e,newIndex:t})}},{key:"listenForAnnotChanges",value:function(){var e=this,t=function(t,n,o){if(!o.imported){var i=e.store.getState().viewer,a=i.tabs,l=i.activeTab,c=a.find((function(e){return e.id===l}));c&&(c.changes.annotations=!0,c.changes.hasUnsavedChanges=!0),r()}},n=function(){var t=e.store.getState().viewer,n=t.tabs,o=t.activeTab,i=n.find((function(e){return e.id===o}));i&&(i.changes.annotations=!0,i.changes.hasUnsavedChanges=!0),r()};o.a.addEventListener("annotationChanged",t),o.a.addEventListener("fieldChanged",n,{once:!0});var r=function(){o.a.removeEventListener("annotationChanged",t),o.a.removeEventListener("fieldChanged",n)};o.a.addEventListener("documentUnloaded",r,{once:!0})}},{key:Symbol.iterator,value:C().m((function e(){var t,n,o,r,i;return C().w((function(e){for(;;)switch(e.p=e.n){case 0:t=this.store.getState().viewer.tabs,n=w(t),e.p=1,n.s();case 2:if((o=n.n()).done){e.n=4;break}return r=o.value,e.n=3,r;case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,i=e.v,n.e(i);case 6:return e.p=6,n.f(),e.f(6);case 7:return e.a(2)}}),e,this,[[1,5,6,7]])}))},{key:"map",value:function(e){var t,n=[],o=0,r=w(this.store.getState().viewer.tabs);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(e(i,o++))}}catch(e){r.e(e)}finally{r.f()}return n}}],[{key:"throwError",value:function(){console.warn("File database has encountered an error. File data will not be saved when switching tabs")}},{key:"indexedDBNotSupported",value:function(){console.warn("IndexedDB is not supported, file data will not be saved")}}]);var e,t,n,i}();A(V,"MAX_FILE_SIZE",25e7);var U=function(){return x((function e(t,n,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];T(this,e),A(this,"disabled",!1),A(this,"saveData",{annotInDB:!1,docInDB:!1,scrollTop:void 0,scrollLeft:void 0,page:null,annots:null}),A(this,"changes",{annotations:!1,hasUnsavedChanges:!1}),A(this,"id",void 0),A(this,"src",void 0),A(this,"options",void 0),A(this,"useDB",void 0),A(this,"tabManager",void 0),this.id=t,this.src=n,this.options=r,this.useDB=i,this.tabManager=o}),[{key:"preLoad",value:(h=j(C().m((function e(t){var n,o,r,i,a;return C().w((function(e){for(;;)switch(e.n){case 0:if(this.useDB){e.n=1;break}return e.a(2,console.error("Cant preload tab with useDB = false"));case 1:return e.n=2,fetch(this.src);case 2:return n=e.v,this.saveData.docInDB=!0,o=F,r=t,e.n=3,n.arrayBuffer();case 3:return i=e.v,a=this.id,e.n=4,o(r,i,a);case 4:return e.a(2)}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"load",value:(m=j(C().m((function e(t,n,o){var r,a=this;return C().w((function(e){for(;;)switch(e.n){case 0:if(r=this.saveData.annotInDB||this.saveData.annots,this.options.loadAnnotations=!r,this.restorePageDataOnLoad(o,t),!r){e.n=1;break}return e.n=1,this.restoreAnnotDataOnLoad(n);case 1:if(!this.useDB||!this.saveData.docInDB){e.n=3;break}return e.n=2,new Promise((function(e){var o=n.transaction("files","readonly"),r=o.objectStore("files").get(a.id);a.id&&(a.options.docId=a.id.toString()),r.onsuccess=j(C().m((function n(){var o;return C().w((function(n){for(;;)switch(n.n){case 0:return o=r.result,n.n=1,Object(i.a)(t,o,a.options);case 1:e();case 2:return n.a(2)}}),n)}))),o.commit()}));case 2:e.n=4;break;case 3:return e.n=4,Object(i.a)(t,this.src,this.options);case 4:return e.a(2)}}),e,this)}))),function(e,t,n){return m.apply(this,arguments)})},{key:"saveCurrentActiveTabState",value:(f=j(C().m((function e(t){var n,i,a;return C().w((function(e){for(;;)switch(e.n){case 0:if(this.disabled=!0,this.savePageData(),n=o.a.getDocument(),i=(null==n?void 0:n.type)===r.a.PDF&&n.arePagesAltered(),a=this.src instanceof window.Core.Document&&this.src.type!==r.a.IMAGE,!this.useDB||!i&&!a){e.n=2;break}return e.n=1,this.saveFileData(t,n);case 1:e.n=5;break;case 2:if(!this.changes.annotations){e.n=5;break}if(!this.useDB){e.n=4;break}return e.n=3,this.saveAnnotDataInDB(t);case 3:e.n=5;break;case 4:return e.n=5,this.saveAnnotData();case 5:this.disabled=!1;case 6:return e.a(2)}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"saveFileData",value:(d=j(C().m((function e(t,n){var r,i;return C().w((function(e){for(;;)switch(e.n){case 0:return this.saveData.annotInDB=!1,e.n=1,o.a.exportAnnotations();case 1:return r=e.v,e.n=2,n.getFileData(v({xfdfString:r,finishedWithDocument:!0},I));case 2:return i=e.v,this.saveData.docInDB=!0,e.n=3,F(t,i,this.id);case 3:return e.a(2)}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"saveAnnotData",value:(u=j(C().m((function e(){var t;return C().w((function(e){for(;;)switch(e.n){case 0:return this.saveData.annotInDB=!1,e.n=1,o.a.exportAnnotations({options:{fields:!0,widgets:!0,links:!0}});case 1:(t=e.v)&&(this.saveData.annots=t);case 2:return e.a(2)}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"saveAnnotDataInDB",value:(a=j(C().m((function e(t){var n,r,i;return C().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,o.a.exportAnnotations({options:{fields:!0,widgets:!0,links:!0}});case 1:if(!(n=e.v)){e.n=3;break}return r=n,(i=t.transaction("files","readwrite")).objectStore("files").put(r,"".concat(this.id,"-annots")),e.n=2,i.commit();case 2:this.saveData.annotInDB=!0;case 3:return e.a(2)}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"savePageData",value:function(){var e=Object(b.a)().getElementById("app").getElementsByClassName("DocumentContainer")[0];this.saveData.scrollTop=e.scrollTop,this.saveData.scrollLeft=e.scrollLeft,this.saveData.page=o.a.getCurrentPage();this.saveData.zoom=Math.floor(1e4*o.a.getZoom())/1e4}},{key:"restorePageDataOnLoad",value:function(e,t){var n=this,r=Object(b.a)().getElementById("app").getElementsByClassName("DocumentContainer")[0],i=function(){var e=j(C().m((function e(){return C().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,o.a.getDocument().getDocumentCompletePromise();case 1:r.scrollTo({top:n.saveData.scrollTop,left:n.saveData.scrollLeft});case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();e.isNotesPanelOpen&&t(l.a.openElement("notesPanel")),e.isLeftPanelOpen&&t(l.a.openElement("leftPanel")),e.isSearchPanelOpen&&t(l.a.openElement("searchPanel")),e.activeToolName&&o.a.setToolMode(e.activeToolName);var a=function(){var e=j(C().m((function e(){return C().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,o.a.getDocument().getDocumentCompletePromise();case 1:if(!n.saveData.zoom){e.n=2;break}return e.n=2,o.a.zoomTo(n.saveData.zoom);case 2:if(!n.saveData.page){e.n=3;break}return e.n=3,o.a.setCurrentPage(n.saveData.page);case 3:return e.n=4,Object(s.a)(p.a.AFTER_TAB_CHANGED,{currentTab:n.src?{src:n.src,options:n.options,id:n.id,annotationsChanged:n.changes.annotations,hasUnsavedChanges:n.changes.hasUnsavedChanges}:null});case 4:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();o.a.addEventListener("documentLoaded",a,{once:!0}),!isNaN(this.saveData.scrollTop)&&o.a.addEventListener("finishedRendering",i,{once:!0});o.a.addEventListener("documentUnloaded",(function(){o.a.removeEventListener("documentLoaded",a),o.a.removeEventListener("finishedRendering",i)}),{once:!0})}},{key:"updateAnnotations",value:(n=j(C().m((function e(t){var n,r,i,a,l;return C().w((function(e){for(;;)switch(e.n){case 0:if(n=this.tabManager.store.getState(),(r=c.a.getActiveTab(n))===this.id){e.n=1;break}return e.a(2,c.a.getTabs(n).find((function(e){return e.id===r})).updateAnnotations(t));case 1:if(!this.saveData.annotInDB){e.n=3;break}return i=t.transaction("files","readwrite"),a=i.objectStore("files"),(l=a.get("".concat(this.id,"-annots"))).onsuccess=j(C().m((function e(){return C().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,o.a.getDocument().getDocumentCompletePromise();case 1:return e.n=2,o.a.getAnnotationManager().importAnnotations(l.result);case 2:return e.a(2)}}),e)}))),e.n=2,i.commit();case 2:e.n=5;break;case 3:if(!this.saveData.annots){e.n=5;break}return e.n=4,o.a.getDocument().getDocumentCompletePromise();case 4:return e.n=5,o.a.getAnnotationManager().importAnnotations(this.saveData.annots);case 5:return e.a(2)}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"restoreAnnotDataOnLoad",value:(t=j(C().m((function e(t){var n,r,i=this;return C().w((function(e){for(;;)switch(e.n){case 0:n=function(){return i.updateAnnotations(t)},r=function(){o.a.removeEventListener("documentLoaded",n)},o.a.addEventListener("documentLoaded",n,{once:!0}),o.a.addEventListener("documentUnloaded",r,{once:!0});case 1:return e.a(2)}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"delete",value:(e=j(C().m((function e(t){var n,o;return C().w((function(e){for(;;)switch(e.n){case 0:if(!this.useDB){e.n=1;break}return n=t.transaction("files","readwrite"),(o=n.objectStore("files")).delete(this.id),o.delete("".concat(this.id,"-annot-states")),o.delete("".concat(this.id,"-annots")),e.n=1,n.commit();case 1:return e.a(2)}}),e,this)}))),function(t){return e.apply(this,arguments)})}]);var e,t,n,a,u,d,f,m,h}()},function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return w}));n(9),n(10),n(14),n(32),n(21),n(46),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(59),n(24),n(8),n(17),n(19),n(64),n(11),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(15),l=n.n(a),c=n(2),u=n.n(c),s=n(3),d=n(4);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var b=r.a.createContext(),g=r.a.memo((function(e){return r.a.createElement(b.Provider,{value:e.id},e.children)}));g.displayName="Tabs",g.propTypes={id:u.a.string.isRequired,children:u.a.node.isRequired};var y=function(e){var t=e.children,n=e.dataElement,a=Object(o.useContext)(b),c=m(Object(i.e)((function(e){return[d.a.isElementDisabled(e,n),d.a.getSelectedTab(e,a)===n]}),i.c),2),u=c[0],h=c[1],g=Object(i.d)(),y={className:l()(f({selected:h},t.props.className,!!t.props.className)),onClick:function(){var e,o;null===(e=(o=t.props).onClick)||void 0===e||e.call(o),g(s.a.setSelectedTab(a,n))},"aria-selected":h,"aria-current":h?"page":null};return y="function"===p(t.type.type||t.type)?Object.assign(y,{isTabSelected:h,dataElement:n}):Object.assign(y,{"data-element":n}),u?null:r.a.cloneElement(t,y)};y.propTypes={children:u.a.node.isRequired,index:u.a.number,dataElement:u.a.string.isRequired};var v=function(e){var t=e.dataElement,n=e.children,o=m(Object(i.e)((function(e){return[d.a.isElementDisabled(e,t)]})),1)[0];return r.a.createElement("div",{"data-element":t},o?null:n)};v.propTypes={children:u.a.node.isRequired,dataElement:u.a.string.isRequired};var w=function(e){var t=e.children,n=e.dataElement,a=Object(o.useContext)(b),l=m(Object(i.e)((function(e){return[d.a.isElementDisabled(e,n),d.a.getSelectedTab(e,a).includes(n)]}),i.c),2),c=l[0],u=l[1];return c?null:r.a.createElement("div",{className:"tab-panel","data-element":n,style:{display:u?"":"none"}},"function"==typeof t.type?r.a.cloneElement(t,{isTabPanelSelected:u}):t)};w.propTypes={children:u.a.node.isRequired,dataElement:u.a.string.isRequired}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var o=n(1);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={Single:1,Continuous:1,Facing:2,FacingContinuous:2,CoverFacing:2,Cover:2};return t[o.a.getDisplayMode(e)]||1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));
|
|
7
7
|
/**!
|
|
8
8
|
* hotkeys-js v3.10.1
|
|
9
9
|
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
|
|
@@ -19,7 +19,7 @@ var o="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("
|
|
|
19
19
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
20
20
|
* @license MIT
|
|
21
21
|
*/
|
|
22
|
-
var o=n(1154),r=n(1155),i=n(560);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,o):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|m(t,n),r=(e=l(e,o)).write(t,n);r!==o&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return 0===(e=l(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?l(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(s(t),e=l(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=l(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(o)return H(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function b(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,o)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,o,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,o,r){var i,a=1,l=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,l/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var s=-1;for(i=n;i<l;i++)if(u(e,i)===u(t,-1===s?0:i-s)){if(-1===s&&(s=i),i-s+1===c)return s*a}else-1!==s&&(i-=i-s),s=-1}else for(n+c>l&&(n=l-c),i=n;i>=0;i--){for(var d=!0,p=0;p<c;p++)if(u(e,i+p)!==u(t,p)){d=!1;break}if(d)return i}return-1}function v(e,t,n,o){n=Number(n)||0;var r=e.length-n;o?(o=Number(o))>r&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a<o;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function w(e,t,n,o){return U(H(t,e.length-n),e,n,o)}function E(e,t,n,o){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function C(e,t,n,o){return E(e,t,n,o)}function O(e,t,n,o){return U(V(t),e,n,o)}function T(e,t,n,o){return U(function(e,t){for(var n,o,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function S(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r<n;){var i,a,l,c,u=e[r],s=null,d=u>239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(s=u);break;case 2:128==(192&(i=e[r+1]))&&(c=(31&u)<<6|63&i)>127&&(s=c);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(s=c);break;case 4:i=e[r+1],a=e[r+2],l=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&c<1114112&&(s=c)}null===s?(s=65533,d=1):s>65535&&(s-=65536,o.push(s>>>10&1023|55296),s=56320|1023&s),o.push(s),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,o){return s(t),t<=0?l(e,t):void 0!==n?"string"==typeof o?l(e,t).fill(n,o):l(e,t).fill(n):l(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,r),r+=a.length}return o},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):h.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,o,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),u=this.slice(o,r),s=e.slice(t,n),d=0;d<l;++d)if(u[d]!==s[d]){i=u[d],a=s[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(127&e[r]);return o}function _(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(e[r]);return o}function P(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var r="",i=t;i<n;++i)r+=B(e[i]);return r}function k(e,t,n){for(var o=e.slice(t,n),r="",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}function L(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,o,r,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function j(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r<i;++r)e[n+r]=(t&255<<8*(o?r:1-r))>>>8*(o?r:1-r)}function I(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r<i;++r)e[n+r]=t>>>8*(o?r:3-r)&255}function R(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,o,i){return i||R(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function D(e,t,n,o,i){return i||R(e,0,n,8),r.write(e,t,n,o,52,8),n+8}c.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var o=this[e+--t],r=1;t>0&&(r*=256);)o+=this[e+--t]*r;return o},c.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i<n&&(r*=256);)this[t+i]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var i=0,a=1,l=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},c.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var r,i=o-n;if(this===e&&n<t&&t<o)for(r=i-1;r>=0;--r)e[r+t]=this[r+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:H(new c(e,o).toString()),l=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var n;t=t||1/0;for(var o=e.length,r=null,i=[],a=0;a<o;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,o){for(var r=0;r<o&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(123))},function(e,t,n){function o(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===o(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===o(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===o(e)},t.isError=function(e){return"[object Error]"===o(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(289).Buffer.isBuffer},function(e,t,n){"use strict";n(9),n(10),n(34),n(27),n(12),n(94),n(307),n(308),n(309),n(26),n(209),n(40),n(24),n(41),n(42),n(8),n(56),n(11),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(31),n(13);var o=n(45),r=n(1);function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function l(n,o,r,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return a(s,"_invoke",function(n,o,r){var i,a,l,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,c}};function f(n,o){for(a=n,l=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(a=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,a=0))}if(r||n>1)return c;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),a=s,l=m;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(u=2,i){if(a||(r="next"),t=i[r]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(o,p))!==c)break}catch(t){i=e,a=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var c={};function u(){}function s(){}function d(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(a(t={},o,(function(){return this})),t),f=d.prototype=u.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,r,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=d,a(f,"constructor",d),a(d,"constructor",s),s.displayName="GeneratorFunction",a(d,r,"GeneratorFunction"),a(f),a(f,r,"Generator"),a(f,o,(function(){return this})),a(f,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:l,m:m}})()}function a(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(a=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){a(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function l(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}t.a=function(){var e,t=(e=i().m((function e(t){var n,a,l,c,u;return i().w((function(e){for(;;)switch(e.n){case 0:if(n=r.a.getDocumentViewer(),a=n.getDocument(),l=n.getAnnotationManager(),c=a.getPageCount(),!t.some((function(e){return e<1||e>c}))){e.n=1;break}return e.a(2,Promise.reject("Page out of range, please enter an array of numbers between 1 and ".concat(c)));case 1:return u=new Promise((function(e,n){try{var r=new Map;t.forEach((function(e){return r.set(e,!0)}));var i=l.getAnnotationsList().filter((function(e){return r.has(e.PageNumber)}));l.exportAnnotations({annotationList:i,widgets:!0,links:!0,fields:!0}).then((function(r){a.extractPages(t,r).then((function(t){var n=new Uint8Array(t),r="".concat(a.getFilename(),".pdf")||!1,i=null;i=o.e?new Blob([n],{type:"application/pdf"}):new File([n],r,{type:"application/pdf"}),e(i)})).catch((function(e){n(e)}))}))}catch(e){n(e)}})),e.a(2,u)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){l(i,o,r,a,c,"next",e)}function c(e){l(i,o,r,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()},function(e,t,n){"use strict";let o,r,i=n(221);class a extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let o=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new o(new r,this,e).stringify()}}a.registerLazyResult=e=>{o=e},a.registerProcessor=e=>{r=e},e.exports=a,a.default=a,i.registerRoot(a)},function(e,t,n){"use strict";function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(362);function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(o.a)(e,t)}},function(e,t,n){"use strict";var o=n(23);t.a=function(){var e;null===(e=Object(o.a)().querySelector("#file-picker"))||void 0===e||e.click()}},function(e,t,n){"use strict";var o=n(3),r=n(613),i=n.n(r);n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(12),n(33),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(11),n(31),n(13);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e,t,n,o){return e&&0!==e.length?(e.forEach((function(e,r){var i=d(e,"".concat(t,"-").concat(r),n||e.locked);e.children&&e.children.length>0&&(i.children=s(e.children,"".concat(i.id),i.disabled,[])),o.push(i)})),o):o},d=function(e,t,n){return c(c({},e),{},{children:[],prevVisibleState:!!e.visible,visible:!!e.visible,id:t,disabled:!!n,isLabel:void 0===e.visible&&void 0===e.obj})};t.a=function(e,t,n){var r,a;if(!i()(e,t)){var l=(a=[],(r=e)&&r.forEach((function(e,t){var n=d(e,"".concat(t),e.locked);a.push(n),n.children=s(e.children,"".concat(n.id),n.disabled,[])})),a);n(o.a.setLayers(l))}}},function(e,t,n){"use strict";n(35);var o=n(1);t.a=function(e){if("CropPage"===e||"SnippingTool"===e)return!1;var t=o.a.getTool(e);return!(null==t||!t.defaults)&&Object.keys(t.defaults).length>0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(1),r=n(23);function i(e){var t=o.a.getDisplayModeObject(),n=o.a.getScrollViewElement(),i=o.a.getViewerElement(),a=Object(r.a)().querySelector('[aria-label="Document Content"]'),l=window.isApryseWebViewerWebComponent,c=a?a.clientWidth:window.innerWidth,u=a?a.clientHeight:window.innerHeight,s=n.scrollLeft,d=i.offsetLeft;if(l){var p=Object(r.c)().getBoundingClientRect();c=p.width,u=p.height,s=n.scrollLeft,d=i.offsetLeft}var f=[];f[0]=t.windowToPageNoRotate({x:Math.max(s,d),y:Math.max(n.scrollTop,0)},e),f[1]=t.windowToPageNoRotate({x:Math.min(c,d+i.offsetWidth)+s,y:u+n.scrollTop},e);var m=Math.min(f[0].x,f[1].x),h=Math.min(f[0].y,f[1].y),b=Math.max(f[0].x,f[1].x),g=Math.max(f[0].y,f[1].y);return new window.Core.Math.Rect(m,h,b,g)}function a(e,t){if(e&&t){var n=e.x2-e.x1,o=e.y2-e.y1;return n>=t.width&&o>=t.height}}},function(e,t,n){"use strict";n(27),n(35),n(8),n(111),n(31);var o=n(1),r=n(153),i=n(53),a=n(3);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=l(t,n);o.a.clearSelection(n),o.a.addAnnotations(r,n),o.a.selectAnnotations(r,n),e(a.a.closeElement("textPopup"))};var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=o.a.getSelectedTextQuads(t);return Object.keys(r).forEach((function(i){i=parseInt(i,10);var a=c(e,i,r);!window.Core.Tools.TextAnnotationCreateTool.AUTO_SET_TEXT||a instanceof window.Core.Annotations.RedactionAnnotation||a.setContents(o.a.getSelectedText(t)),a.setCustomData("trn-annot-preview",o.a.getSelectedText(t)),a instanceof window.Core.Annotations.RedactionAnnotation&&(s(a),a.IsText=!0),u(a),n.push(a)})),n},c=function(e,t,n){var r=new e;return r.PageNumber=t,r.Quads=n[t],r.Author=o.a.getCurrentUser(),r},u=function(e){var t=Object(i.h)(e);if(t){var n=Object(r.a)(t);Object.keys(n).forEach((function(t){e[t]=n[t]}))}},s=function(e){var t=o.a.getToolModeMap().AnnotationCreateRedaction.defaults,n=void 0===t?{}:t;if(n){if(n.StrokeColor){var r=n.StrokeColor;e.StrokeColor=new window.Core.Annotations.Color(r.R,r.G,r.B,r.A)}if(n.StrokeThickness&&(e.StrokeThickness=n.StrokeThickness),n.FillColor){var i=n.FillColor;e.FillColor=new window.Core.Annotations.Color(i.R,i.G,i.B,i.A)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(23),r=function(){if(window.isApryseWebViewerWebComponent){var e=Object(o.a)().host,t=e.getBoundingClientRect();return{scaleX:t.width/e.offsetWidth,scaleY:t.height/e.offsetHeight}}return{scaleX:1,scaleY:1}}},function(e){e.exports=JSON.parse('{"name":"webviewer-ui","author":"Apryse Software Inc.","version":"11.9.0","description":"WebViewer UI built in React","main":"src/index.js","scripts":{"start":"npx babel-node ./dev-server.js","download-webviewer":"npx @pdftron/webviewer-downloader --core-only --path ./lib","postinstall":"cp ./node_modules/@storybook/react-dom-shim/dist/react-16.js ./node_modules/@storybook/react-dom-shim/dist/react-18.js && cp ./node_modules/@storybook/react-dom-shim/dist/react-16.mjs ./node_modules/@storybook/react-dom-shim/dist/react-18.mjs","lint":"eslint ./src --fix --ext .js,.jsx,.ts,.tsx","lint:ci":"eslint ./src --quiet --ext .js,.jsx,.ts,.tsx","clean":"rimraf build","bundle":"webpack --progress --config ./webpack.config.prod.js","build":"npm run clean && npm run bundle","translation":"node ./scripts/translate-i18n-files.js","storybook":"storybook dev -p 6006 --ci","build-storybook":"storybook build","jest":"npx jest","jest:watch":"jest --watch","lint:styles":"stylelint \'**/*.scss\'"},"dependencies":{"autolinker":"^3.11.1","blob-stream":"^0.1.3","canvas2pdf":"git+https://github.com/PDFTron/canvas2pdf.git","classnames":"^2.2.6","dayjs":"^1.8.19","dompurify":"^3.2.6","file-saver":"git+https://github.com/ZhijieZhang/FileSaver.js.git","hotkeys-js":"^3.10.0","html2canvas":"git+https://github.com/PDFTron/html2canvas.git#pdftron-alpha10","i18next":"^19.0.3","i18next-http-backend":"^1.0.16","quill-mention":"^6.1.1","react":"^17.0.0","react-color":"^2.19.3","react-dnd":"^14.0.2","react-dnd-html5-backend":"^14.0.0","react-dnd-touch-backend":"^16.0.0","react-dom":"^17.0.0","react-draggable":"^4.3.1","react-i18next":"^11.3.1","react-measure":"^2.3.0","react-onclickoutside":"^6.9.0","react-quill-new":"^3.4.6","react-redux":"^7.1.3","react-select":"^5.8.1","react-shadow-dom-retarget-events":"1.1.0","react-swipeable":"^5.5.1","react-virtualized":"^9.21.2","react-virtuoso":"^2.8.1","redux":"^4.0.5","redux-persist":"^6.0.0","redux-thunk":"^2.3.0","reselect":"^5.1.1","uuid":"^9.0.0"},"devDependencies":{"@babel/cli":"^7.8.3","@babel/core":"^7.8.3","@babel/eslint-parser":"^7.16.0","@babel/node":"^7.8.3","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-export-namespace-from":"^7.8.3","@babel/plugin-proposal-function-sent":"^7.8.3","@babel/plugin-proposal-numeric-separator":"^7.8.3","@babel/plugin-proposal-optional-chaining":"^7.8.3","@babel/plugin-proposal-throw-expressions":"^7.8.3","@babel/preset-env":"^7.8.3","@babel/preset-react":"^7.8.3","@chromatic-com/storybook":"^4.1.0","@google-cloud/translate":"^5.1.4","@hot-loader/react-dom":"^17.0.2","@pdftron/webviewer-downloader":"^1.4.2","@pdftron/webviewer-reading-mode":"1.0.8","@reduxjs/toolkit":"^1.8.1","@storybook/addon-a11y":"^9.1.1","@storybook/addon-docs":"^9.1.1","@storybook/addon-links":"^9.1.1","@storybook/addon-themes":"^9.1.1","@storybook/addon-webpack5-compiler-swc":"^3.0.0","@storybook/react-webpack5":"^9.1.1","@testing-library/jest-dom":"^5.11.4","@testing-library/react":"^10.4.9","@testing-library/react-hooks":"^5.0.3","@testing-library/user-event":"^12.7.3","babel-jest":"^29.5","babel-loader":"^8.0.6","body-parser":"^1.19.0","buffer":"^6.0.3","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.1.1","core-js":"^3.6.4","css-loader":"^3.4.2","cssnano":"^4.1.11","eslint":"^8.57.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-custom":"file:eslint-plugin-custom","eslint-plugin-cypress":"^3.5.0","eslint-plugin-import":"^2.30.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-no-unsanitized":"^4.1.0","eslint-plugin-react":"^7.35.2","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-storybook":"9.1.1","express":"^4.17.1","file-loader":"^5.0.2","identity-obj-proxy":"^3.0.0","ip":"^1.1.5","jest":"29.5","jest-canvas-mock":"^2.5.1","jest-environment-jsdom":"^29.5.0","mini-css-extract-plugin":"0.8.0","node-polyfill-webpack-plugin":"^3.0.0","open":"^8.4.0","postcss":"^8.4.38","postcss-import":"^12.0.1","postcss-loader":"^3.0.0","postcss-preset-env":"^6.7.0","process":"^0.11.10","prop-types":"^15.7.2","raw-loader":"^4.0.0","react-hot-loader":"^4.13.1","react-is":"^16.13.1","redux-devtools-extension":"^2.13.8","redux-logger":"^3.0.6","regenerator-runtime":"^0.13.9","rimraf":"^3.0.0","sass":"^1.34.0","sass-loader":"^8.0.2","storybook":"^9.1.1","storybook-addon-pseudo-states":"^9.1.1","storybook-addon-rtl":"^2.0.0","stream-browserify":"^3.0.0","style-loader":"^1.1.3","stylelint":"^13.13.1","svg-inline-loader":"^0.8.0","util":"^0.12.5","webpack":"^5.91.0","webpack-bundle-analyzer":"^3.6.0","webpack-cli":"^5.1.4","webpack-dev-middleware":"^7.2.1","webpack-hot-middleware":"^2.26.1"},"lint-staged":{"./src/**/*.{js,ts}":"eslint --fix","./src/**/*.scss":"npm run lint:styles"}}')},function(e,t,n){"use strict";var o=n(55);t.a={on:function(){o.g.on.apply(o.g,arguments)},off:function(){o.g.off.apply(o.g,arguments)},restoreHotkeys:function(){o.g.restoreHotkeys()},Keys:o.b}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));n(38),n(27),n(18),n(8),n(19),n(31);var o=n(79),r=n(3),i=n(1),a=n(7),l=function(){},c=function(e){var t,n=e.zoomOptionsList,i=e.isSpreadsheetEditorMode,c=void 0!==i&&i,s=e.isOfficeEditorMode,d=void 0!==s&&s,p=e.dispatch,f=e.size,m=void 0===f?0:f,h=e.onZoomChanged,b=u(p,m,void 0===h?l:h),g=b.onMarqueeZoom,y=b.onZoomInClicked,v=b.onZoomOutClicked,w=b.onClickZoomLevelOption,E={icon:"icon-header-zoom-fit-to-width",label:"action.fitToWidth",title:"action.fitToWidth",dataElement:"fitToWidthButton",onClick:function(){Object(o.b)(),p(r.a.closeElement("zoom-containerFlyout"))}},C={icon:"icon-header-zoom-fit-to-page",label:"action.fitToPage",title:"action.fitToPage",dataElement:"fitToPageButton",onClick:function(){Object(o.a)(),p(r.a.closeElement("zoom-containerFlyout"))},type:"customButton"},O={dataElement:"zoom-button-marquee-zoom",icon:"icon-header-zoom-marquee",toolName:"MarqueeZoomTool",label:"tool.Marquee",onClick:g,className:"marqueeButton"},T={icon:"icon-header-zoom-in-line",label:"action.zoomIn",dataElement:"zoomInButton",onClick:y,className:"zoomInButton"},S={icon:"icon-header-zoom-out-line",label:"action.zoomOut",dataElement:"zoomOutButton",onClick:v,className:"zoomOutButton"},x=[];if(n.forEach((function(e){var t={label:"".concat(100*e,"%"),onClick:function(){w(e)},dataElement:"zoom-button-".concat(100*e)};c&&e<=2&&x.push(t),c||x.push(t)})),0===m){t=(t=c?[]:[E,C,"divider"]).concat(x),c||d||(t.push("divider"),t.push(O))}else if(1===m){var A={dataElement:a.i.ZOOM_OPTIONS_BUTTON,children:x,type:a.i.ZOOM_OPTIONS_BUTTON};t=[A,T,S,E,C,O],c&&(t=[A,T,S]),d&&(t=[A,T,S,E,C])}return t},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,a=function(n){Object(o.f)(n),(0===t||1===t)&&e(r.a.closeElement("zoom-containerFlyout"))},c=function(){e(r.a.closeElement("zoom-containerFlyout"))},u=function(){return Math.ceil(100*i.a.getZoom()).toString()},s=function(){Object(o.d)(),n(u())},d=function(){Object(o.e)(),n(u())};return{onZoomInClicked:s,onZoomOutClicked:d,onMarqueeZoom:c,onClickZoomLevelOption:a}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return Z}));n(9),n(10),n(14),n(34),n(27),n(21),n(20),n(12),n(22),n(18),n(26),n(16),n(59),n(8),n(17),n(19),n(11),n(31),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(3),l=n(4),c=n(1),u=(n(38),n(46),n(30),n(646),n(35),n(64),n(15)),s=n.n(u),d=n(306),p=n(2),f=n.n(p),m=n(72),h=function(e){var t=e.yOffset,n=e.height,o=e.xOffset,i=e.width,a=e.unit,l=e.autoTrim,c=e.supportedUnits,u=e.autoTrimOptions,s=e.onDimensionChange,p=e.onUnitChange,f=e.autoTrimActive,h=e.setAutoTrimActive,b=e.onAutoTrimChange,g=Object(d.a)().t;return r.a.createElement("div",{className:"crop-dimensions"},r.a.createElement("div",{className:"crop-dimensions-input-container"},r.a.createElement("label",{className:"crop-dimensions-input"},r.a.createElement("span",{className:"dimensions-settings-title"},"W"),r.a.createElement("input",{name:"width","data-testid":"width-input",type:"number",min:"0",step:"any",className:"dimension-input-field",onChange:function(e){s(e.target.value,e.target.name),h(!1)},onKeyUp:function(e){s(e.target.value,e.target.name),h(!1)},value:i})),r.a.createElement("label",{className:"crop-dimensions-input"},r.a.createElement("span",{className:"dimensions-settings-title"},"H"),r.a.createElement("input",{name:"height","data-testid":"height-input",type:"number",min:"0",step:"any",className:"dimension-input-field",onChange:function(e){s(e.target.value,e.target.name),h(!1)},onKeyUp:function(e){s(e.target.value,e.target.name),h(!1)},value:n})),r.a.createElement("label",{className:"crop-dimensions-input"},r.a.createElement("span",{className:"dimensions-settings-title"},"X"),r.a.createElement("input",{name:"xOffset","data-testid":"xOffset-input",type:"number",min:"0",step:"any",className:"dimension-input-field",onChange:function(e){s(e.target.value,e.target.name),h(!1)},onKeyUp:function(e){s(e.target.value,e.target.name),h(!1)},value:o})),r.a.createElement("label",{className:"crop-dimensions-input"},r.a.createElement("span",{className:"dimensions-settings-title"},"Y"),r.a.createElement("input",{name:"yOffset","data-testid":"yOffset-input",type:"number",min:"0",step:"any",className:"dimension-input-field",onChange:function(e){s(e.target.value,e.target.name),h(!1)},onKeyUp:function(e){s(e.target.value,e.target.name),h(!1)},value:t}))),r.a.createElement("div",{className:"crop-dimensions-settings"},r.a.createElement("div",{className:"dimensions-settings-title-container"},r.a.createElement("label",{id:"crop-dimensions-unit-label",htmlFor:"document-crop-unit-dropdown",className:"dimensions-settings-title"},g("cropPopUp.dimensionInput.unitOfMeasurement"))),r.a.createElement(m.a,{id:"document-crop-unit-dropdown",labelledById:"crop-dimensions-unit-label",className:"document-crop-dropdown",ariaLabel:g("cropPopUp.dimensionInput.unitOfMeasurement"),items:Object.keys(c),currentSelectionKey:a,onClickItem:p})),r.a.createElement("div",{className:"crop-dimensions-settings"},r.a.createElement("div",{className:"dimensions-settings-title-container"},r.a.createElement("label",{id:"crop-auto-trim-label",htmlFor:"document-crop-auto-trim-dropdown",className:"dimensions-settings-title"},g("cropPopUp.dimensionInput.autoTrim"))),r.a.createElement(m.a,{id:"document-crop-auto-trim-dropdown",labelledById:"crop-auto-trim-label",className:"document-crop-dropdown",ariaLabel:g("cropPopUp.dimensionInput.autoTrim"),items:u,currentSelectionKey:l&&f?l:u[0],onClickItem:b})))},b=n(5),g=n(43),y=(n(454),n(106)),v=n(481),w=function(e){var t=e.cropMode,n=e.onCropModeChange,o=e.loadedDocumentPageCount,i=e.selectedPages,a=e.handlePageNumbersChanged,l=e.handlePageNumberError,c=Object(d.a)().t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(y.a,{label:c("cropPopUp.allPages"),name:"All","data-element":"allPagesCropRadioButton",onChange:function(){return n("ALL_PAGES")},checked:"ALL_PAGES"===t,radio:!0}),r.a.createElement(y.a,{label:c("cropPopUp.singlePage"),name:"SINGLE_PAGE","data-element":"singlePageCropRadioButton",onChange:function(){return n("SINGLE_PAGE")},checked:"SINGLE_PAGE"===t,radio:!0}),r.a.createElement("div",{className:"multi-page-crop-wrapper"},r.a.createElement(y.a,{label:c("cropPopUp.multiPage"),name:"MULTI_PAGE","data-element":"multiPageCropRadioButton",onChange:function(){return n("MULTI_PAGE")},checked:"MULTI_PAGE"===t,radio:!0}),"MULTI_PAGE"===t&&r.a.createElement("span",{className:"multi-page-crop-example"},"- ",c("option.thumbnailPanel.multiSelectPagesExample"))),"MULTI_PAGE"===t&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"document-crop-page-input-container"},r.a.createElement(v.a,{"data-element":"multiPageCropPageNumberInput",selectedPageNumbers:i,pageCount:o,onSelectedPageNumbersChange:a,onBlurHandler:a,onError:l})),r.a.createElement("div",{className:"section extra-space-section"})))},E=w;w.propTypes={cropMode:f.a.string.isRequired,onCropModeChange:f.a.func.isRequired,loadedDocumentPageCount:f.a.number,selectedPages:f.a.array,handlePageNumbersChanged:f.a.func.isRequired,handlePageNumberError:f.a.func.isRequired};var C=n(121);function O(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var S=function(e){var t=e.className,n=e.cropMode,o=e.onCropModeChange,i=e.loadedDocumentPageCount,a=e.selectedPages,l=e.handlePageNumbersChanged,c=e.handlePageNumberError,u=e.hasPageNumberError,p=e.handleApply,f=e.handleCancel,m=e.isCropping,y=e.yOffset,v=e.height,w=e.xOffset,T=e.width,S=e.unit,x=e.autoTrim,A=e.supportedUnits,_=e.onDimensionChange,P=e.onUnitChange,k=e.autoTrimActive,L=e.setAutoTrimActive,M=e.onAutoTrimChange,j=e.autoTrimDimensions,I=e.isCropDimensionsContainerActive,R=e.cropAnnotation,N=e.toggleCropDimensions,D=Object(d.a)().t;return r.a.createElement("div",{className:t,"data-element":b.a.DOCUMENT_CROP_POPUP},r.a.createElement("div",{className:"document-crop-mobile-section"},r.a.createElement("div",{className:"document-crop-mobile-container"},r.a.createElement(C.a,{header:D("cropPopUp.title"),isInitiallyExpanded:!1},r.a.createElement("div",{className:"document-crop-section"},r.a.createElement(E,{cropMode:n,onCropModeChange:o,loadedDocumentPageCount:i,selectedPages:a,handlePageNumbersChanged:l,handlePageNumberError:c}))),r.a.createElement(C.a,{className:s()({"crop-inactive":!R}),headingLevel:2,header:D("cropPopUp.cropDimensions"),isInitiallyExpanded:!1,isExpanded:Boolean(I&&R),toggleHandler:N},r.a.createElement("div",{className:"document-crop-section"},r.a.createElement(h,{yOffset:y,height:v,xOffset:w,width:T,unit:S,autoTrim:x,supportedUnits:A,autoTrimOptions:[D("cropPopUp.dimensionInput.autoTrimCustom")].concat(O(Object.keys(j))),onDimensionChange:_,onUnitChange:P,autoTrimActive:k,setAutoTrimActive:L,onAutoTrimChange:M}))),r.a.createElement("div",{className:"buttons"},r.a.createElement(g.a,{className:"cancel-button",dataElement:"cropCancelButton",onClick:f,label:D("action.cancel")}),r.a.createElement(g.a,{className:"save-button",dataElement:"cropApplyButton",onClick:p,disabled:!m||u,label:D("action.apply")})))))},x=S;S.propTypes={cropAnnotation:f.a.object,isCropping:f.a.bool,hasPageNumberError:f.a.bool,yOffset:f.a.oneOfType([f.a.string,f.a.number]),height:f.a.oneOfType([f.a.string,f.a.number]),xOffset:f.a.oneOfType([f.a.string,f.a.number]),width:f.a.oneOfType([f.a.string,f.a.number]),unit:f.a.string,autoTrim:f.a.string,supportedUnits:f.a.object,autoTrimDimensions:f.a.object,onDimensionChange:f.a.func,onUnitChange:f.a.func,autoTrimActive:f.a.bool,setAutoTrimActive:f.a.func,onAutoTrimChange:f.a.func,handleApply:f.a.func,handleCancel:f.a.func,className:f.a.string,cropMode:f.a.string,onCropModeChange:f.a.func,loadedDocumentPageCount:f.a.number,selectedPages:f.a.array,handlePageNumbersChanged:f.a.func,handlePageNumberError:f.a.func,toggleCropDimensions:f.a.func,isCropDimensionsContainerActive:f.a.bool};var A=n(90);function _(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var M=function(e){var t=e.cropAnnotation,n=e.cropMode,l=e.onCropModeChange,u=e.closeDocumentCropPopup,p=e.applyCrop,f=e.isCropping,m=e.getPageHeight,y=e.getPageWidth,v=e.isPageRotated,w=e.redrawCropAnnotations,O=e.isInDesktopOnlyMode,T=e.isMobile,S=e.getPageCount,k=e.getCurrentPage,L=e.selectedPages,M=e.onSelectedPagesChange,j=e.shouldShowApplyCropWarning,I=e.presetCropDimensions,R=Object(d.a)().t,N=s()({Popup:!0,DocumentCropPopup:!0,mobile:T}),D=S(),F=function(e){e.length>0&&xe(!1),M(e)},B=function(){xe(!0)},H={"Inches (in)":'"',"Centimeters (cm)":"cm","Millimeters (mm)":"mm"},V={'"':1,cm:2.54,mm:25.4,pt:72},U=P(Object(o.useState)(Object.getOwnPropertyNames(H)[0]),2),G=U[0],W=U[1],z=P(Object(o.useState)(!1),2),Z=z[0],Y=z[1],q=I,K=P(Object(o.useState)(null),2),$=K[0],X=K[1],J=P(Object(o.useState)(!1),2),Q=J[0],ee=J[1],te=function(e){return e/V[H[G]]*V.pt},ne=function(e,t){return(e/=V.pt)*V[H[t]]},oe=function(e){if(e){var t=0;(e=e.toString()).includes(".")&&t++,e.length>5+t&&(e=e.slice(0,5+t))}return e},re=P(Object(o.useState)(),2),ie=re[0],ae=re[1],le=P(Object(o.useState)(),2),ce=le[0],ue=le[1],se=P(Object(o.useState)(),2),de=se[0],pe=se[1],fe=P(Object(o.useState)(),2),me=fe[0],he=fe[1];Object(o.useEffect)((function(){if(t){ge(G);var e=function(){ae(Math.max(0,oe(ne(t.getY(),G)))),ue(Math.max(0,oe(ne(t.getHeight(),G)))),pe(Math.max(0,oe(ne(t.getX(),G)))),he(Math.max(0,oe(ne(t.getWidth(),G)))),Y(!1)};return c.a.addEventListener("annotationChanged",e),function(){c.a.removeEventListener("annotationChanged",e)}}}),[G,t]),Object(o.useEffect)((function(){t&&w(t.getRect())}),[Z]),Object(o.useEffect)((function(){if(t){var e=function(){ae(oe(ne(t.getY(),G))),ue(oe(ne(t.getHeight(),G))),pe(oe(ne(t.getX(),G))),he(oe(ne(t.getWidth(),G)))};return c.a.addEventListener("pagesUpdated",e),function(){c.a.removeEventListener("pagesUpdated",e)}}}),[]);var be=function(e,n){switch(e||(e=0),e=function(e,n){if(e<0)return 0;var o=t?t.getPageNumber():k();if(n)switch(n){case"xOffset":e=v(o)?Math.min(e,ne(m(o)-t.getWidth(),G)):Math.min(e,ne(y(o)-t.getWidth(),G));break;case"width":e=v(o)?Math.min(e,ne(m(o)-t.getX(),G)):Math.min(e,ne(y(o)-t.getX(),G));break;case"yOffset":e=v(o)?Math.min(e,ne(y(o)-t.getHeight(),G)):Math.min(e,ne(m(o)-t.getHeight(),G));break;case"height":e=v(o)?Math.min(e,ne(y(o)-t.getY(),G)):Math.min(e,ne(m(o)-t.getY(),G))}return e=Math.max(Number(e),0)}(e,n),n){case"yOffset":t.setY(te(e)),ae(oe(e));break;case"height":t.setHeight(te(e)),ue(oe(e));break;case"xOffset":t.setX(te(e)),pe(oe(e));break;case"width":t.setWidth(te(e)),he(oe(e))}t&&w(t.getRect())},ge=function(e){W(e),ae(oe(ne(t.getY(),e))),ue(oe(ne(t.getHeight(),e))),pe(oe(ne(t.getX(),e))),he(oe(ne(t.getWidth(),e)))},ye=function(e){if(e&&q.hasOwnProperty(e)){X(e),Y(!0);var n=q[e].yOffset*V[H[G]],o=Math.max(0,q[e].height*V[H[G]]),r=q[e].xOffset*V[H[G]],i=Math.max(0,q[e].width*V[H[G]]);t.setY(te(n)),ae(oe(n)),t.setX(te(r)),pe(oe(r)),t.setHeight(te(o)),ue(oe(o)),t.setWidth(te(i)),he(oe(i)),t&&w(t.getRect())}else X(void 0)},ve=Object(A.a)((function(e){j?Ce():p(e)})),we=Object(A.a)((function(e){f?Oe():u(e)})),Ee=Object(i.d)(),Ce=function(){var e=R("cropPopUp.cropModal.applyTitle"),t={message:R("cropPopUp.cropModal.applyMessage"),title:e,onConfirm:function(e){p(e)}};Ee(a.a.showWarningMessage(t))},Oe=function(){var e=R("cropPopUp.cropModal.cancelTitle"),t={message:R("cropPopUp.cropModal.cancelMessage"),title:e,onConfirm:function(e){u(e)}};Ee(a.a.showWarningMessage(t))},Te=P(Object(o.useState)(!1),2),Se=Te[0],xe=Te[1];return T&&!O?r.a.createElement(x,{className:N,cropMode:n,onCropModeChange:l,loadedDocumentPageCount:D,selectedPages:L,handlePageNumbersChanged:F,handlePageNumberError:B,hasPageNumberError:Se,handleApply:ve,handleCancel:we,isCropping:f,yOffset:ie,height:ce,xOffset:de,width:me,unit:G,autoTrim:$,supportedUnits:H,autoTrimOptions:[R("cropPopUp.dimensionInput.autoTrimCustom")].concat(_(Object.keys(q))),onDimensionChange:be,onUnitChange:ge,autoTrimActive:Z,setAutoTrimActive:Y,onAutoTrimChange:ye,autoTrimDimensions:q,isCropDimensionsContainerActive:Q,cropAnnotation:t,toggleCropDimensions:function(e){return ee(e)}}):r.a.createElement("div",{className:N,"data-element":b.a.DOCUMENT_CROP_POPUP},r.a.createElement("div",{className:"document-crop-section"},r.a.createElement("h1",{id:"document-crop-label",className:"menu-title"},R("cropPopUp.title")),r.a.createElement("div",{role:"group","aria-labelledby":"document-crop-label"},r.a.createElement(E,{cropMode:n,onCropModeChange:l,loadedDocumentPageCount:D,selectedPages:L,handlePageNumbersChanged:F,handlePageNumberError:B}))),r.a.createElement("div",{className:f&&t?"crop-active":"crop-inactive"},r.a.createElement("div",{className:"divider"}),r.a.createElement("div",{className:"document-crop-section"},r.a.createElement(C.a,{className:s()({"crop-inactive":!t}),header:R("cropPopUp.cropDimensions"),headingLevel:2,isInitiallyExpanded:!1,isExpanded:Q&&!!t,onToggle:function(e){return ee(e)}},r.a.createElement(h,{yOffset:ie,height:ce,xOffset:de,width:me,unit:G,autoTrim:$,supportedUnits:H,autoTrimOptions:[R("cropPopUp.dimensionInput.autoTrimCustom")].concat(_(Object.keys(q))),onDimensionChange:be,onUnitChange:ge,autoTrimActive:Z,setAutoTrimActive:Y,onAutoTrimChange:ye}))),r.a.createElement("div",{className:"divider"})),r.a.createElement("div",{className:"buttons"},r.a.createElement(g.a,{className:"cancel-button",dataElement:"cropCancelButton",onClick:we,label:R("action.cancel")}),r.a.createElement(g.a,{className:"save-button",dataElement:"cropApplyButton",onClick:ve,disabled:!f||Se,label:R("action.apply")})))};M.propTypes={cropAnnotation:f.a.object,cropMode:f.a.string.isRequired,onCropModeChange:f.a.func.isRequired,closeDocumentCropPopup:f.a.func.isRequired,applyCrop:f.a.func.isRequired,isCropping:f.a.bool.isRequired,getPageHeight:f.a.func.isRequired,getPageWidth:f.a.func.isRequired,isPageRotated:f.a.func.isRequired,redrawCropAnnotations:f.a.func.isRequired,isInDesktopOnlyMode:f.a.bool.isRequired,isMobile:f.a.bool.isRequired,getPageCount:f.a.func.isRequired,getCurrentPage:f.a.func.isRequired,selectedPages:f.a.array.isRequired,onSelectedPagesChange:f.a.func.isRequired,shouldShowApplyCropWarning:f.a.bool.isRequired,presetCropDimensions:f.a.object.isRequired};var j=M,I=n(185),R=n.n(I);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var F=function(e){var t=N(Object(o.useState)(null),2),n=t[0],r=t[1];return Object(o.useEffect)((function(){var t=function(t,n){var o=t[0];"add"===n&&o.ToolName===window.Core.Tools.ToolNames.CROP&&o instanceof window.Core.Annotations.RectangleAnnotation&&(r(o),e()),"delete"===n&&o.ToolName===window.Core.Tools.ToolNames.CROP&&o instanceof window.Core.Annotations.RectangleAnnotation&&r(null)},n=function(t,n){var o=t[0];"selected"===n&&o.ToolName===window.Core.Tools.ToolNames.CROP&&o instanceof window.Core.Annotations.RectangleAnnotation&&(r(o),e())};return c.a.addEventListener("annotationChanged",t),c.a.addEventListener("annotationSelected",n),function(){c.a.removeEventListener("annotationChanged",t),c.a.removeEventListener("annotationSelected",n)}}),[]),n},B=n(66),H=n(23),V=n(357),U=n(355);function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Z(e){e&&""===e.nativeEvent.pointerType&&Object(H.a)().querySelector(".active.ToolButton").focus()}t.a=function(){var e=c.a.getTool(window.Core.Tools.ToolNames.CROP),t=Object(i.e)(l.a.getActiveToolName),n=Object(i.e)((function(e){return l.a.isElementOpen(e,b.a.DOCUMENT_CROP_POPUP)})),u=Object(i.e)(l.a.isInDesktopOnlyMode),s=Object(i.e)(l.a.shouldShowApplyCropWarning),d=Object(i.e)(l.a.getPresetCropDimensions),p=t===window.Core.Tools.ToolNames.CROP&&n,f=Object(i.d)(),m=W(Object(o.useState)(e.getIsCropping()),2),h=m[0],g=m[1],y=["leftPanel","searchPanel","notesPanel","redactionPanel","textEditingPanel"],v=function(){f(a.a.openElement(b.a.DOCUMENT_CROP_POPUP)),A(e.getPagesToCrop()),f(a.a.closeElements(y)),g(e.getIsCropping())};Object(o.useEffect)((function(){var t=function(t,n){t instanceof Core.Tools.CropCreateTool?v():n instanceof Core.Tools.CropCreateTool&&(g(e.getIsCropping()),w())},n=function(e){T(e)};return e.addEventListener("cropModeChanged",n),c.a.addEventListener("toolModeUpdated",t),function(){e.removeEventListener("cropModeChanged",n),c.a.removeEventListener("toolModeUpdated",t)}}),[]);var w=function(){var e=Object(H.a)().querySelector("[data-element=header]");e&&(e.style.pointerEvents="",e.style.opacity="1");var t=Object(H.a)().querySelector("[data-element=toolsHeader]");t&&(t.style.pointerEvents="",t.style.opacity="1")},E=F(v);Object(o.useEffect)((function(){h?function(){var e=Object(H.a)().querySelector("[data-element=header]");e&&(e.style.pointerEvents="none",e.style.opacity="0.5");var t=Object(H.a)().querySelector("[data-element=toolsHeader]");t&&(t.style.pointerEvents="none",t.style.opacity="0.5")}():w()}),[h]);var C=W(Object(o.useState)(null),2),O=C[0],T=C[1];Object(o.useEffect)((function(){e.setCropMode("ALL_PAGES"),T("ALL_PAGES")}),[]);var S=W(Object(o.useState)(e.getPagesToCrop()),2),x=S[0],A=S[1],_=Object(o.useRef)(),P=Object(U.a)("top-right"),k=P.position,L=P.handleDrag,M=P.handleStop,I=P.containerRef,N=P.style,D=P.bounds,z=c.a.getDocumentViewer(1),Y=Object(o.useCallback)((function(t){e.reset(),"MULTI_PAGE"===O&&(setPagesToCrop([]),e.setPagesToCrop([])),f(a.a.closeElement(b.a.DOCUMENT_CROP_POPUP)),w(),c.a.setToolMode(window.Core.Tools.ToolNames.CROP),Z(t)}),[]);Object(o.useEffect)((function(){g(e.getIsCropping())}),[E]);var q=Object(o.useCallback)((function(e){return $(e)?c.a.getPageWidth(e):c.a.getPageHeight(e)}),[]),K=Object(o.useCallback)((function(e){return $(e)?c.a.getPageHeight(e):c.a.getPageWidth(e)}),[]),$=Object(o.useCallback)((function(e){return(null==z?void 0:z.getDocument().getPageRotation(e))%180!=0})),X=Object(o.useCallback)((function(){return null==z?void 0:z.getPageCount()})),J=Object(o.useCallback)((function(){return null==z?void 0:z.getCurrentPage()})),Q=Object(o.useCallback)((function(e){c.a.getAnnotationManager().getAnnotationsList().filter((function(e){return e.ToolName===window.Core.Tools.ToolNames.CROP})).forEach((function(t){t.setRect(e),c.a.getAnnotationManager().drawAnnotationsFromList([t])}))}),[]),ee={cropAnnotation:E,cropMode:O,onCropModeChange:function(t){e.setCropMode(t),T(t)},closeDocumentCropPopup:Y,applyCrop:function(t){e.applyCrop(),e.reset(),w(),Z(t)},isCropping:h,getPageHeight:q,getPageWidth:K,isPageRotated:$,redrawCropAnnotations:Q,isInDesktopOnlyMode:u,getPageCount:X,getCurrentPage:J,selectedPages:x,onSelectedPagesChange:function(t){t.length&&(A(t),e.setPagesToCrop(t),e.getIsCropping()&&"MULTI_PAGE"===O&&e.multiSelectAnnotations(t))},shouldShowApplyCropWarning:s,presetCropDimensions:d},te=Object(B.b)();return p&&c.a.getDocument()?te&&!u?r.a.createElement(V.a,null,r.a.createElement("div",{className:"DocumentCropPopupContainer",ref:_},r.a.createElement(j,G({},ee,{isMobile:!0})))):r.a.createElement(R.a,{cancel:"input, button, .collapsible-menu, .ui__choice__label",position:k,bounds:D,onDrag:L,onStop:M},r.a.createElement("div",{className:"DocumentCropPopupContainer",ref:function(e){_.current=e,I.current=e},style:N},r.a.createElement(j,ee))):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return G})),n.d(t,"d",(function(){return W})),n.d(t,"c",(function(){return Z}));n(9),n(10),n(14),n(27),n(21),n(46),n(20),n(12),n(22),n(307),n(308),n(309),n(18),n(26),n(16),n(40),n(24),n(173),n(41),n(42),n(8),n(56),n(17),n(19),n(11),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(31),n(13),n(93),n(311),n(312),n(313);var o=n(23),r=n(45),i=n(60),a=(n(34),n(77),n(44),n(118),n(209),n(35),n(298)),l=n(224),c=n(1);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return p(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(p(t={},o,(function(){return this})),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,r,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,r,"GeneratorFunction"),p(f),p(f,r,"Generator"),p(f,o,(function(){return this})),p(f,"toString",(function(){return"[object Generator]"})),(d=function(){return{w:i,m:m}})()}function p(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(p=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){p(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function f(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){f(i,o,r,a,l,"next",e)}function l(e){f(i,o,r,a,l,"throw",e)}a(void 0)}))}}var h=1,b=2,g=function(){var e=m(d().m((function e(t){var n,o,r,i;return d().w((function(e){for(;;)switch(e.n){case 0:if(n=t.getType(),!("pdf"===n)){e.n=2;break}return e.n=1,t.extractPages(P(t.getPageCount()));case 1:i=e.v,e.n=4;break;case 2:return e.n=3,t.getFileData({downloadType:"pdf",includeAnnotations:!1});case 3:i=e.v;case 4:return o=i,e.n=5,window.Core.createDocument(o,{extension:"pdf"});case 5:return r=e.v,e.a(2,r)}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(e,t,n){var o=!!(null==n?void 0:n.includeComments)||(null==n?void 0:n.includeAnnotations);return x(e,t,o)},v=function(){var e=m(d().m((function e(t){var n,o;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,L(t);case 1:return n=e.v,e.n=2,n.getFileData();case 2:return o=e.v,e.a(2,window.Core.createDocument(o,{extension:"pdf"}))}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=m(d().m((function e(t,n){var o;return d().w((function(e){for(;;)switch(e.n){case 0:if(n){e.n=1;break}return e.a(2,t);case 1:return t.setWatermark(n),e.n=2,k(t);case 2:return o=e.v,e.a(2,o)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),E=function(){var e=m(d().m((function e(t,n){var o,r,i,a,l,c,u;return d().w((function(e){for(;;)switch(e.n){case 0:if(o=n.includeComments,r=n.includeAnnotations,i=P(t.getPageCount()),o||!r){e.n=2;break}return e.n=1,t.formatDocumentForPrint(i,h);case 1:return a=e.v,e.a(2,a);case 2:if(o){e.n=3;break}return e.a(2,t);case 3:return e.n=4,t.formatDocumentForPrint(i,b);case 4:if(l=e.v,!r){e.n=5;break}return e.a(2,l);case 5:return c=P(l.getPageCount()),e.n=6,l.extractPages(c);case 6:return u=e.v,e.n=7,window.Core.createDocument(u,{extension:"pdf"});case 7:return e.a(2,e.v)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),C=function(){var e=m(d().m((function e(t,n){var o,r,i,a,l,c;return d().w((function(e){for(;;)switch(e.n){case 0:return o=P(n.getPageCount()),e.n=1,Promise.all([t.getLayersArray(),n.getLayersArray()]);case 1:return r=e.v,i=u(r,2),a=i[0],l=i[1],c=O(a,l),e.a(2,n.formatDocumentForPrint(o,b,c))}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),O=function(e,t){var n=new Map(e.map((function(e){return[e.name,e.visible]})));return t.forEach((function(e){null!=e&&e.name&&n.has(e.name)&&(e.visible=n.get(e.name))})),t},T=function(e,t){var n,o;return{x1:e.y1<0?0:e.x1,x2:(n=t.width-e.x2<0?0:t.width-e.x2)>t.width?0:n,y1:e.y1<0?0:e.y1,y2:(o=t.height-e.y2<0?0:t.height-e.y2)>t.height?0:o}},S=function(e,t){return Array.from({length:t},(function(e,t){return t+1})).filter((function(t){return t!==e}))},x=function(){var e=m(d().m((function e(t,n,o){var r,i,a,l;return d().w((function(e){for(;;)switch(e.n){case 0:if(!o){e.n=2;break}return r=t.getRegisteredAnnotationTypes(),i=Object.keys(r).reduce((function(e,t){return r[t].forEach((function(t){Object.getPrototypeOf(t.prototype)===window.Core.Annotations.CustomAnnotation.prototype&&(e.push({originalSerializationMode:t.SerializationType,customType:t}),t.SerializationType=window.Core.Annotations.CustomAnnotation.SerializationTypes.STAMP)})),e}),[]),a=t.getAnnotationsList().filter((function(e){return n.indexOf(e.PageNumber)>-1})),e.n=1,t.exportAnnotations({annotationList:a,widgets:!0,links:!0,fields:!0,generateInlineAppearances:!0});case 1:return l=e.v,i.forEach((function(e){e.customType.SerializationType=e.originalSerializationMode})),e.a(2,l);case 2:return e.a(2,'<?xml version="1.0" encoding="UTF-8" ?><xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"></xfdf>')}}),e)})));return function(t,n,o){return e.apply(this,arguments)}}(),A=function(){var e=m(d().m((function e(t,n,o){var r;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.extractPages(n,o);case 1:return r=e.v,e.a(2,window.Core.createDocument(r,{extension:"pdf"}))}}),e)})));return function(t,n,o){return e.apply(this,arguments)}}(),_=function(e){var t=e.getType(),n=e.getPrintablePDF();return"webviewerServer"===t&&n},P=function(e){return Array.from({length:e},(function(e,t){return t+1}))},k=function(){var e=m(d().m((function e(t,n){var o,r,i;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.getFileData(n);case 1:return o=e.v,r=new Blob([o],{type:"application/pdf"}),e.n=2,window.Core.createDocument(r,{extension:"pdf"});case 2:return i=e.v,e.a(2,i)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),L=function(){var e=m(d().m((function e(t){var n,o,r,i,l,u,s;return d().w((function(e){for(;;)switch(e.n){case 0:return n=c.a.getDocumentViewer(),o=n.getCurrentPage(),r=t.getPageCount(),i=Object(a.b)(o),l=c.a.getDocument().getPageInfo(o),u=T(i,l),e.n=1,t.cropPages([o],u.y1,u.y2,u.x1,u.x2);case 1:return s=S(o,r),e.n=2,t.removePages(s);case 2:return e.a(2,t)}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=m(d().m((function e(t,n,o,r,i){var a;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,I(t,r.isGrayscale);case 1:return e.n=2,R(n,o,r,i);case 2:return a=e.v,e.a(2,r.isGrayscale?Object(l.a)(a):a)}}),e)})));return function(t,n,o,r,i){return e.apply(this,arguments)}}(),j=function(){var e=m(d().m((function e(t,n,o,r,i){var a,c;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,I(t,r.isGrayscale);case 1:if(!r.isGrayscale){e.n=3;break}return e.n=2,Object(l.a)(n);case 2:c=e.v,e.n=4;break;case 3:c=n;case 4:return a=c,e.a(2,R(a,o,r,i))}}),e)})));return function(t,n,o,r,i){return e.apply(this,arguments)}}(),I=function(){var e=m(d().m((function e(t,n){var o,r;return d().w((function(e){for(;;)switch(e.n){case 0:if(o=_(t)&&t.isWebViewerServerDocument(),r=window.Core.PDFNet,!n||!o){e.n=1;break}return e.n=1,r.initialize();case 1:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),R=function(){var e=m(d().m((function e(t,n,o,r){var i;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,A(t,r,n);case 1:if(i=e.v,!o.isCurrentView){e.n=3;break}return e.n=2,v(i);case 2:i=e.v;case 3:return e.a(2,E(i,o))}}),e)})));return function(t,n,o,r){return e.apply(this,arguments)}}();function N(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return D(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(D(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,D(d,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,r,"GeneratorFunction"),D(d),D(d,r,"Generator"),D(d,o,(function(){return this})),D(d,"toString",(function(){return"[object Generator]"})),(N=function(){return{w:i,m:p}})()}function D(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(D=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){D(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function F(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){F(i,o,r,a,l,"next",e)}function l(e){F(i,o,r,a,l,"throw",e)}a(void 0)}))}}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var U=function(e){var t=[i.a.PDF].includes(c.a.getDocument().getType());return e&&t},G=function(e){Object.entries({maintainPageOrientation:"Embedded Printing does not support maintaining page orientation.",onProgress:"Embedded Printing does not support a callback function for printing"}).forEach((function(t){var n=H(t,2),o=n[0],r=n[1];e[o]&&console.warn(r)}))},W=function(){var e=B(N().m((function e(t,n,o){var r,i,a,l,c,u,s,d,p,f,m,h;return N().w((function(e){for(;;)switch(e.p=e.n){case 0:return r=t.includeAnnotations,i=t.includeComments,a=t.isCurrentView,l=t.isGrayscale,c=void 0!==l&&l,u=t.watermarkModalOptions,s=t.pagesToPrint,d=t.isAlwaysPrintAnnotationsInColorEnabled,p=null!=s?s:P(n.getPageCount()),f={includeAnnotations:r,includeComments:i,isCurrentView:a,isGrayscale:c,isAlwaysPrintAnnotationsInColorEnabled:d},e.p=1,e.n=2,z(n,o,p,f,u);case 2:return m=e.v,e.a(2,m);case 3:throw e.p=3,h=e.v,console.error("Error processing embedded print options:",h),h;case 4:return e.a(2)}}),e,null,[[1,3]])})));return function(t,n,o){return e.apply(this,arguments)}}(),z=function(){var e=B(N().m((function e(t,n,o,r,i){var a,l,c,u,s,d,p,f,m;return N().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,a=r.isAlwaysPrintAnnotationsInColorEnabled,l=!t.isWebViewerServerDocument(),e.n=1,g(t);case 1:if(c=e.v,!l){e.n=3;break}return e.n=2,C(t,c,o);case 2:p=e.v,e.n=4;break;case 3:p=c;case 4:return u=p,e.n=5,w(u,i);case 5:return s=e.v,e.n=6,y(n,o,r);case 6:if(d=e.v,!a){e.n=8;break}return e.n=7,j(t,s,d,r,o);case 7:f=e.v,e.n=10;break;case 8:return e.n=9,M(t,s,d,r,o);case 9:f=e.v;case 10:return e.a(2,f);case 11:throw e.p=11,m=e.v,console.error("Error creating embedded print pages:",m),m;case 12:return e.a(2)}}),e,null,[[0,11]])})));return function(t,n,o,r,i){return e.apply(this,arguments)}}(),Z=function(e){var t=r.h&&r.n?window.open():null;return e.getFileData({printDocument:!0}).then((function(e){var n=new Uint8Array(e);Y(n,t)})).catch((function(e){return console.error("Print Error status: ",e)}))},Y=function(e,t){var n=new Blob([e],{type:"application/pdf"}),r=Object(o.a)().getElementById("print-handler");if(r.src=URL.createObjectURL(n),!t)return new Promise((function(e){var t=function(){r.contentWindow.print(),r.removeEventListener("load",t),e()};r.addEventListener("load",t)}));t.location.href=r.src,setTimeout((function(){t.print()}),100)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(310),r=n.n(o),i=n(229),a=n.n(i),l=n(0),c=n(225),u=n(206);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,o=Object(l.useContext)(c.a)||{},i=o.i18n,a=o.defaultNS,s=n||i||Object(c.d)();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new c.b),!s){Object(u.d)("You will need to pass in an i18next instance by using initReactI18next");var p=function(e){return Array.isArray(e)?e[e.length-1]:e},f=[p,{},!1];return f.t=p,f.i18n={},f.ready=!1,f}s.options.react&&void 0!==s.options.react.wait&&Object(u.d)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var m=d(d(d({},Object(c.c)()),s.options.react),t),h=m.useSuspense,b=m.keyPrefix,g=e||a||s.options&&s.options.defaultNS;g="string"==typeof g?[g]:g||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(g);var y=(s.isInitialized||s.initializedStoreOnce)&&g.every((function(e){return Object(u.b)(e,s,m)}));function v(){return s.getFixedT(null,"fallback"===m.nsMode?g:g[0],b)}var w=Object(l.useState)(v),E=r()(w,2),C=E[0],O=E[1],T=Object(l.useRef)(!0);Object(l.useEffect)((function(){var e=m.bindI18n,t=m.bindI18nStore;function n(){T.current&&O(v)}return T.current=!0,y||h||Object(u.c)(s,g,(function(){T.current&&O(v)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){T.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,g.join()]);var S=Object(l.useRef)(!0);Object(l.useEffect)((function(){T.current&&!S.current&&O(v),S.current=!1}),[s]);var x=[C,s,y];if(x.t=C,x.i18n=s,x.ready=y,y)return x;if(!y&&!h)return x;throw new Promise((function(e){Object(u.c)(s,g,(function(){e()}))}))}},function(e,t,n){"use strict";var o=n(58),r=n(52),i=n(343),a=n(284),l=i.ArrayBuffer;o({global:!0,constructor:!0,forced:r.ArrayBuffer!==l},{ArrayBuffer:l}),a("ArrayBuffer")},function(e,t,n){"use strict";var o=n(58),r=n(70),i=n(71),a=n(343),l=n(99),c=n(190),u=n(152),s=n(321),d=a.ArrayBuffer,p=a.DataView,f=p.prototype,m=r(d.prototype.slice),h=r(f.getUint8),b=r(f.setUint8);o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new d(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(m&&void 0===t)return m(l(this),e);for(var n=l(this).byteLength,o=c(e,n),r=c(void 0===t?n:t,n),i=new(s(this,d))(u(r-o)),a=new p(this),f=new p(i),g=0;o<r;)b(f,g++,h(a,o++));return i}})},function(e,t,n){n(1065)},function(e,t,n){var o=n(1076),r=n(1077),i=n(642),a=n(1078);e.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n(670)},function(e,t,n){"use strict";var o=n(58),r=n(85);o({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},function(e,t,n){n(530)},function(e,t,n){var o=n(187),r=n(52);e.exports="process"==o(r.process)},function(e,t,n){var o=n(52).TypeError;e.exports=function(e,t){if(e<t)throw o("Not enough arguments");return e}},function(e,t,n){"use strict";var o=n(1);t.a=function(e){var t=window.Core.Annotations.FreeTextAnnotation;if(e instanceof t&&e.getAutoSizeType()!==t.AutoSizeTypes.NONE){var n=o.a.getDocument(),r=e.PageNumber,i=n.getPageInfo(r),a=n.getPageMatrix(r),l=n.getPageRotation(r);e.fitText(i,a,l)}}},function(e,t,n){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,o){var r=n.prototype,i=r.format;o.en.formats=e,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,o=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,o,r){var i=r&&r.toUpperCase();return o||n[r]||e[r]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return i.call(this,o)}}}()},function(e,t,n){var o=n(36),r=n(1082);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(12),n(44),n(33),n(26),n(16),n(30),n(266),n(59),n(40),n(24),n(41),n(35),n(42),n(8),n(137),n(111),n(86),n(11),n(31),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(2),l=n.n(a),c=n(29),u=(n(38),n(46),n(64),n(1563)),s=n(53),d=n(15),p=n.n(d),f=n(3),m=n(4),h=n(195),b=n(119);n(1092);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,T(o.key),o)}}function w(e,t,n){return t=E(t),function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}var S=function(e){function t(){var e;y(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return O(e=w(this,t,[].concat(o)),"setActivePalette",(function(t){var n=e.props;(0,n.setActivePalette)(n.colorMapKey,t)})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(t,e),function(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.t,o=t.colorPalette,i=t.colorMapKey,a=t.toolName,l=t.disableSeparator,c=Object(s.e)(i).styleTabs;return a&&(a.includes("Line")||a.includes("Arrow")||a.includes("Polyline"))?r.a.createElement("div",{className:"palette-options"},["StrokeColor","FillColor"].map((function(e,t){return r.a.createElement(r.a.Fragment,{key:t},r.a.createElement(b.a,{content:"option.annotationColor.".concat(e)},r.a.createElement("div",{className:p()({"palette-options-button":!0,active:o===e,disabled:"FillColor"===e})},n("option.annotationColor.".concat(e)))),t<1&&r.a.createElement("div",{className:"palette-options-divider"}))}))):c.length<2?l?null:r.a.createElement(h.a,null):r.a.createElement("div",{className:"palette-options"},c.map((function(t,i){return r.a.createElement(r.a.Fragment,{key:i},r.a.createElement(b.a,{content:"option.annotationColor.".concat(t)},r.a.createElement("button",{className:p()({"palette-options-button":!0,active:o===t}),onClick:function(){return e.setActivePalette(t)}},n("option.annotationColor.".concat(t)))),i<c.length-1&&r.a.createElement("div",{className:"palette-options-divider"}))})))}}])}(r.a.PureComponent);O(S,"propTypes",{style:l.a.object.isRequired,colorPalette:l.a.oneOf(["TextColor","StrokeColor","FillColor"]),colorMapKey:l.a.string.isRequired,setActivePalette:l.a.func.isRequired,t:l.a.func.isRequired,isTextColorPaletteDisabled:l.a.bool,isFillColorPaletteDisabled:l.a.bool,isBorderColorPaletteDisabled:l.a.bool});var x={setActivePalette:f.a.setActivePalette},A=Object(i.b)((function(e){return{isTextColorPaletteDisabled:m.a.isElementDisabled(e,"textColorPalette"),isFillColorPaletteDisabled:m.a.isElementDisabled(e,"fillColorPalette"),isBorderColorPaletteDisabled:m.a.isElementDisabled(e,"borderColorPalette")}}),x)(Object(u.a)(null,{wait:!1})(S)),_=n(194),P=n(358),k=n(320),L=(n(21),n(20),n(22),n(18),n(17),n(19),n(306)),M=n(72),j=(n(1100),n(134));function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var N=j.d.concat(j.a);function D(e){var t=e.onLineStyleChange,n=e.properties,i=e.isEllipse;if(!n||!n.hasOwnProperty("StrokeStyle"))return null;var a=I(Object(o.useState)(n.StrokeStyle),2),l=a[0],c=a[1],u=I(Object(L.a)(),1)[0];return r.a.createElement("div",{className:"StyleOption"},r.a.createElement("div",{className:"styles-container"},r.a.createElement("label",{className:"styles-title",htmlFor:"styleOptions"},u("option.styleOption.style")),r.a.createElement(M.a,{dataElement:"borderStylePicker",images:i?j.d:N,width:80,onClickItem:function(e){c(e),t("middle",e)},currentSelectionKey:l})))}D.propTypes={borderStyle:l.a.string,isEllipse:l.a.bool,properties:l.a.object,onLineStyleChange:l.a.func.isRequired};var F=D,B=n(51),H=n(251),V=n(376);n(1109);function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var W=j.d;var z=function(e){var t=e.properties,n=e.onLineStyleChange,i=U(Object(L.a)(),1)[0],a=U(Object(o.useState)(t.StartLineStyle),2),l=a[0],c=a[1],u=U(Object(o.useState)(t.EndLineStyle),2),s=u[0],d=u[1],p=U(Object(o.useState)(t.StrokeStyle),2),f=p[0],m=p[1];return r.a.createElement("div",{className:"LineStyleOptions"},r.a.createElement("div",{className:"LayoutTitle"},i("option.lineStyleOptions.title")),r.a.createElement("div",{className:"StyleContainer"},r.a.createElement(M.a,{id:"startLineStyleDropdown",dataElement:"startLineStyleDropdown",images:j.c,width:62,onClickItem:function(e){c(e),n("start",e)},currentSelectionKey:l}),r.a.createElement(M.a,{id:"middleLineStyleDropdown",dataElement:"middleLineStyleDropdown",images:W,width:62,onClickItem:function(e){m(e),n("middle",e)},currentSelectionKey:f}),r.a.createElement(M.a,{id:"endLineStyleDropdown",dataElement:"endLineStyleDropdown",images:j.b,width:62,onClickItem:function(e){d(e),n("end",e)},currentSelectionKey:s})))},Z=n(106),Y=n(265),q=n(5),K=n(60),$=n(609),X=n.n($),J=n(66),Q=n(45),ee=n(197),te=n(1);n(1112);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(){return(oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ue(o.key),o)}}function ie(e,t,n){return t=ae(t),function(e,t){if(t&&("object"==ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ae(e).constructor):t.apply(e,n))}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function le(e,t){return(le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ce(e,t,n){return(t=ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ne(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}var se=function(e){function t(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ce(o=ie(this,t,[e]),"onDocumentLoaded",(function(){var e;o.setState({document:te.a.getDocument(),documentType:null===(e=te.a.getDocument())||void 0===e?void 0:e.getType()})})),ce(o,"onSnappingChange",(function(e){if(te.a.isFullPDFEnabled()){var t=e.target.checked,n=t?te.a.getDocumentViewer().SnapMode.e_DefaultSnapMode|te.a.getDocumentViewer().SnapMode.POINT_ON_LINE:null;Object(ee.a)().forEach((function(e){var r;null===(r=e.setSnapMode)||void 0===r||r.call(e,n),o.props.onSnapModeChange&&o.props.onSnapModeChange({toolName:e.name,isEnabled:t})}))}})),ce(o,"updateSnapModeFromTool",(function(){if(te.a.isFullPDFEnabled()){var e=o.props.onSnapModeChange,t=te.a.getToolMode();if(t&&t.getSnapMode){var n=!!t.getSnapMode();e({toolName:t.name,isEnabled:n})}}})),ce(o,"renderSliders",(function(){var e=o.props,t=e.style,n=t.Opacity,i=t.StrokeThickness,a=t.FontSize,l=e.onSliderChange,c=e.isMeasure,u=void 0!==c&&c,s=e.isOpacitySliderDisabled,d=e.isStrokeThicknessSliderDisabled,p=e.isFontSizeSliderDisabled,f=e.currentStyleTab,m={};s||(m.Opacity={property:"Opacity",displayProperty:"opacity",value:100*n,getDisplayValue:function(e){return"".concat(Math.round(e),"%")},dataElement:q.a.OPACITY_SLIDER,withInputField:!0,inputFieldType:"number",min:0,max:100,step:1,getLocalValue:function(e){return parseInt(e)/100}}),d||(m.StrokeThickness={property:"StrokeThickness",displayProperty:"thickness",value:i,getDisplayValue:Y.a,dataElement:q.a.STROKE_THICKNESS_SLIDER,withInputField:!0,inputFieldType:"number",min:0,max:23,step:1,steps:Object(Y.b)(o.props.isFreeText)}),p||(m.FontSize={property:"FontSize",displayProperty:"text",value:a,getDisplayValue:function(e){return"".concat(Math.round(parseInt(e,10)),"pt")},dataElement:q.a.FONT_SIZE_SLIDER,min:5,max:45,step:1,withInputField:!0,inputFieldType:"number",getLocalValue:function(e){return"".concat(parseFloat(e).toFixed(2),"pt")}});var h={Opacity:n,StrokeThickness:i,FontSize:a};"TextColor"===f?h={Opacity:n,FontSize:a}:"StrokeColor"===f?h={Opacity:n,StrokeThickness:i}:"FillColor"===f&&(h={Opacity:n}),u&&(h.FontSize=a),s&&delete h.Opacity,(d||"markInsertText"===o.props.colorMapKey||"markReplaceText"===o.props.colorMapKey)&&delete h.StrokeThickness,p&&delete h.FontSize,h=X()(h,(function(e){return null!=e}));var b=Object.keys(h).map((function(e){var t=m[e];return r.a.createElement(k.a,oe({},t,{key:e,onSliderChange:l}))}));return r.a.createElement(r.a.Fragment,null,b.length>0&&r.a.createElement("div",{className:"sliders-container"},b))})),o.state={document:te.a.getDocument(),documentType:null===(n=te.a.getDocument())||void 0===n?void 0:n.getType()},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&le(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){te.a.addEventListener("documentLoaded",this.onDocumentLoaded),this.updateSnapModeFromTool()}},{key:"componentWillUnmount",value:function(){te.a.removeEventListener("documentLoaded",this.onDocumentLoaded)}},{key:"render",value:function(){var e,t=this.props,n=t.toolName,o=t.isColorPaletteDisabled,i=t.currentStyleTab,a=t.style,l=t.colorMapKey,u=t.onStyleChange,s=t.isStyleOptionDisabled,d=t.disableSeparator,f=t.hideSnapModeCheckbox,m=t.isFreeText,h=t.isEllipse,b=t.isTextStyleContainerActive,g=t.isColorsContainerActive,y=t.isLabelTextContainerActive,v=t.isLabelTextContainerDisabled,w=t.openElement,E=t.closeElement,C=t.properties,O=t.onPropertyChange,T=t.onRichTextStyleChange,S=t.isRedaction,x=t.fonts,k=t.showLineStyleOptions,L=t.onLineStyleChange,M=t.isSnapModeEnabled,j=t.isInFormBuilderAndNotFreeText,I=t.onFreeTextSizeToggle,R=t.isFreeTextAutoSize;S&&(a.Opacity=null,a.StrokeThickness=null);var N=a.Scale,D=a.Precision,U=a.Style,G=ce(ce(ce({},q.a.STYLE_POPUP_TEXT_STYLE_CONTAINER,b),q.a.STYLE_POPUP_COLORS_CONTAINER,g),q.a.STYLE_POPUP_LABEL_TEXT_CONTAINER,y),W=function(e){if(G[e])E(e);else if(w(e),Object(Q.k)())for(var t in G)t!==e&&E(t)},Y=function(){return W(q.a.STYLE_POPUP_LABEL_TEXT_CONTAINER)},$=function(){return W(q.a.STYLE_POPUP_TEXT_STYLE_CONTAINER)},X=function(){return W(q.a.STYLE_POPUP_COLORS_CONTAINER)},J=p()({Popup:!0,StylePopup:!0}),ee="TextColor"===i&&(m||S),te="TextColor"===i&&(m||S),ne=!(te&&!g),oe="TextColor"===i&&S,re=o||ne,ie="StrokeColor"!==i&&(m||S),ae=this.state.documentType===K.a.WEBVIEWER_SERVER&&!this.state.document.isWebViewerServerDocument(),le=(null===(e=this.state.documentType)||void 0===e?void 0:e.toLowerCase())===K.a.PDF||ae,ue=N&&D&&le&&!f;return r.a.createElement("div",{className:J,"data-element":"stylePopup"},i&&!o&&r.a.createElement(r.a.Fragment,null,r.a.createElement(A,{colorPalette:i,colorMapKey:l,style:a,toolName:n,disableSeparator:d}),oe&&!v&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"collapsible-menu",onClick:Y,onTouchStart:Y,role:"toolbar"},r.a.createElement("div",{className:"menu-title"},c.a.t("option.stylePopup.labelText")),r.a.createElement(B.a,{glyph:"icon-chevron-".concat(y?"up":"down")})),y&&r.a.createElement("div",{className:"menu-items"},r.a.createElement(V.a,{properties:C,onPropertyChange:O})),r.a.createElement("div",{className:"divider"})),ee&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"collapsible-menu",onClick:$,onTouchStart:$,role:"toolbar"},r.a.createElement("div",{className:"menu-title"},c.a.t("option.stylePopup.textStyle")),r.a.createElement(B.a,{glyph:"icon-chevron-".concat(b?"up":"down")})),b&&r.a.createElement("div",{className:"menu-items"},r.a.createElement(H.a,{fonts:x,onPropertyChange:O,onRichTextStyleChange:T,properties:C,isRedaction:S,isFreeText:m,onFreeTextSizeToggle:I,isFreeTextAutoSize:R})),r.a.createElement("div",{className:"divider"})),te&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"collapsible-menu",onClick:X,onTouchStart:X,role:"toolbar"},r.a.createElement("div",{className:"menu-title"},c.a.t("option.stylePopup.colors")),r.a.createElement(B.a,{glyph:"icon-chevron-".concat(g?"up":"down")}))),ne&&r.a.createElement(r.a.Fragment,null,r.a.createElement(_.a,{color:a[i],property:i,onStyleChange:u,colorMapKey:l,useMobileMinMaxWidth:!0}),r.a.createElement(P.a,{color:a[i],property:i,onStyleChange:u,enableEdit:!0}))),re&&this.renderSliders(),ue&&r.a.createElement("div",{className:"snapping-option"},r.a.createElement(Z.a,{dataElement:"measurementSnappingOption",id:"measurement-snapping",type:"checkbox",label:c.a.t("option.shared.enableSnapping"),checked:M,onChange:this.onSnappingChange})),k&&r.a.createElement(z,{properties:C,onLineStyleChange:L}),!s&&!k&&!ie&&"StrokeColor"===i&&!j&&r.a.createElement(F,{borderStyle:U,properties:C,isEllipse:h,onLineStyleChange:L}))}}])&&re(n.prototype,o),i&&re(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.a.PureComponent);ce(se,"propTypes",{style:l.a.object.isRequired,onStyleChange:l.a.func.isRequired,onPropertyChange:l.a.func.isRequired,onSliderChange:l.a.func.isRequired,onRichTextStyleChange:l.a.func,onLineStyleChange:l.a.func,isFreeText:l.a.bool,onFreeTextSizeToggle:l.a.func,isFreeTextAutoSize:l.a.bool,isEllipse:l.a.bool,isMeasure:l.a.bool,colorMapKey:l.a.string.isRequired,currentStyleTab:l.a.oneOf(["TextColor","StrokeColor","FillColor"]),isColorPaletteDisabled:l.a.bool,isOpacitySliderDisabled:l.a.bool,isStrokeThicknessSliderDisabled:l.a.bool,isFontSizeSliderDisabled:l.a.bool,isStyleOptionDisabled:l.a.bool,isStylePopupDisabled:l.a.bool,hideSnapModeCheckbox:l.a.bool,closeElement:l.a.func,openElement:l.a.func,onSnapModeChange:l.a.func,properties:l.a.object,isRedaction:l.a.bool,fonts:l.a.array,isSnapModeEnabled:l.a.bool,isInFormBuilderAndNotFreeText:l.a.bool});var de={closeElement:f.a.closeElement,openElement:f.a.openElement,onSnapModeChange:f.a.setEnableSnapMode},pe=Object(i.b)((function(e,t){var n=t.colorMapKey,o=t.isFreeText,r=t.isRedaction;return{currentStyleTab:m.a.getcurrentStyleTab(e,n),isStylePopupDisabled:m.a.isElementDisabled(e,q.a.STYLE_POPUP),isColorPaletteDisabled:m.a.isElementDisabled(e,q.a.COLOR_PALETTE),isOpacitySliderDisabled:m.a.isElementDisabled(e,q.a.OPACITY_SLIDER),isStrokeThicknessSliderDisabled:m.a.isElementDisabled(e,q.a.STROKE_THICKNESS_SLIDER),isFontSizeSliderDisabled:m.a.isElementDisabled(e,q.a.FONT_SIZE_SLIDER)||o||r,isStyleOptionDisabled:m.a.isElementDisabled(e,q.a.STYLE_OPTION),isTextStyleContainerActive:m.a.isElementOpen(e,q.a.STYLE_POPUP_TEXT_STYLE_CONTAINER),isColorsContainerActive:m.a.isElementOpen(e,q.a.STYLE_POPUP_COLORS_CONTAINER),isLabelTextContainerActive:m.a.isElementOpen(e,q.a.STYLE_POPUP_LABEL_TEXT_CONTAINER),isLabelTextContainerDisabled:m.a.isElementDisabled(e,q.a.STYLE_POPUP_LABEL_TEXT_CONTAINER),fonts:m.a.getFonts(e),isSnapModeEnabled:m.a.isSnapModeEnabled(e),isInFormBuilderAndNotFreeText:te.a.getFormFieldCreationManager().isInFormFieldCreationMode()&&!o}}),de)(se),fe=function(e){var t=Object(J.b)();return r.a.createElement(pe,oe({},e,{isMobile:t}))};t.a=fe},function(e,t,n){"use strict";n(9),n(10),n(14),n(38),n(124),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(137),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(306),a=n(2),l=n.n(a),c=(n(1098),n(234));function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var d={property:l.a.string.isRequired,value:l.a.oneOfType([l.a.number,l.a.string]),displayProperty:l.a.string.isRequired,getDisplayValue:l.a.func.isRequired,onSliderChange:l.a.func.isRequired,dataElement:l.a.string,withInputField:l.a.bool,inputFieldType:l.a.string,min:l.a.number,max:l.a.number,step:l.a.number,getLocalValue:l.a.func,shouldHideSliderTitle:l.a.bool,shouldHideSliderValue:l.a.bool,steps:l.a.array};function p(e){var t=e.step,n=void 0===t?1:t,a=e.displayProperty,l=e.steps,s=void 0===l?[]:l,d=e.dataElement,p=e.shouldHideSliderValue,f=e.shouldHideSliderTitle,m=e.getDisplayValue,h=e.withInputField,b=e.onSliderChange,g=e.property,y=e.getLocalValue,v=e.inputFieldType,w=void 0===v?"number":v,E=e.min,C=void 0===E?0:E,O=e.max,T=void 0===O?100:O,S=e.value;("string"==typeof S||S instanceof String)&&(S=parseFloat(S,10));var x=Object(o.useRef)(null),A=Object(o.useRef)(null),_=u(Object(i.a)(),1)[0],P=u(Object(o.useState)(!1),2),k=P[0],L=P[1],M=Object(c.a)(),j=0!==s.length,I=S,R=S;j&&(R=s.findIndex((function(e){return e>=S})),I=s[R]);var N=u(Object(o.useState)(R),2),D=N[0],F=N[1],B=u(Object(o.useState)(I),2),H=B[0],V=B[1],U=u(Object(o.useState)(S),2),G=U[0],W=U[1],z=function(e,t){var n=y?y(e):e;b(g,n,t)},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(e.target.value);M&&(n=T-(n-C));var o=j?s[n]:n;V(o),W(o),F(n),z(o,t)},Y=function(e){Z(e,!0)},q=function(e){var t=C,n=T;if(j&&(t=s[0],n=s[s.length-1]),!isNaN(e.target.value)&&""!==e.target.value){e.target.value>n&&(e.target.value=n);var o,r=e.target.value;if(e.target.value<t&&(r=t),j)o=s.findIndex((function(e){return e>=r}));else o=r;V(r),W(r),F(o),z(r,!0)}},K=function(e){"Enter"===e.key&&x.current.blur()};Object(o.useEffect)((function(){var e=(D-C)/(T-C)*100;A.current&&(A.current.style.background=M?"linear-gradient(to left, var(--slider-filled) ".concat(e,"%, var(--slider-background) ").concat(e,"%)"):"linear-gradient(to right, var(--slider-filled) ".concat(e,"%, var(--slider-background) ").concat(e,"%)"),A.current.style.direction=M?"ltr":"")}),[D,M,C,T]),Object(o.useEffect)((function(){var e=S,t=e;j&&(t=s.findIndex((function(t){return t>=e})));V(e),W(e),F(t)}),[S]);var $=_("option.slider.".concat(a),a);var X,J,Q=M?T-(D-C):D;return r.a.createElement("div",{className:"slider","data-element":d},!f&&r.a.createElement("div",{id:"slider-".concat($),className:"slider-property",onMouseDown:function(e){return e.preventDefault()}},$),r.a.createElement("div",{className:"slider-element-container"},r.a.createElement("div",{className:"slider-input"},r.a.createElement("input",{ref:A,style:{width:"100%"},"aria-label":$,"aria-valuemin":C,"aria-valuemax":T,"aria-valuenow":H,"aria-valuetext":"".concat($," ").concat(m(H)),type:"range",onChange:Z,onMouseUp:Y,onTouchEnd:Y,min:C,max:T,step:n,value:Q})),!p&&(h?(X=_("option.slider.".concat(a)),J="".concat(X," ").concat(m(H)),k&&"number"===w?r.a.createElement("div",{className:"slider-input-wrapper"},r.a.createElement("input",{ref:x,className:"slider-input-field is-editing","aria-label":J,autoFocus:!0,type:"text",min:C,max:T,step:n,onChange:q,defaultValue:G,onBlur:function(){L(!1)},onKeyDown:K})):r.a.createElement("input",{readOnly:!0,type:"text",className:"slider-input-field","aria-label":J,value:m(H),onFocus:L})):r.a.createElement("div",{className:"slider-value"},m(H)))))}p.propTypes=d;var f=p;t.a=f},function(e,t,n){var o=n(99),r=n(430),i=n(83)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||null==(n=o(a)[i])?t:r(n)}},function(e,t,n){"use strict";var o=n(1);t.a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return null===(e=o.a.getDocumentViewer(t).getDocument())||void 0===e?void 0:e.getType()}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=n(2),a=n.n(i);function l(e){var t=Object(o.useRef)(e);return Object(o.useEffect)((function(){t.current=e})),t}var c=n(78),u=function(){var e=document.activeElement;return e.shadowRoot&&(e=e.shadowRoot.activeElement),e},s=n(256);var d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.focusLastOnUnlock,i=Object(o.useRef)(null),a=null!==(e=n.overrideRef)&&void 0!==e?e:i,d=Object(o.useCallback)((function(){return a.current.querySelectorAll(s.a)}),[]),p=function(e){if(!e)return!1;for(;e;){var t=window.getComputedStyle(e);if("hidden"===t.visibility||"none"===t.display)return!1;e=e.parentElement}return!0},f=function(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if(p(n))return t}return-1},m=Object(o.useCallback)((function(e){if(t&&(!e||"Tab"===e.key)&&a.current){var n=d();if(!n.length)return null==e?void 0:e.preventDefault();var o=u(),r=Object(c.c)(n,o);if(-1===r||e){var i=f(n);return-1!==r&&(null!=e&&e.shiftKey||r!==i)?null!=e&&e.shiftKey&&0===r?(n[i].focus(),null==e?void 0:e.preventDefault()):void 0:(n[0].focus(),null==e?void 0:e.preventDefault())}}}),[d,t]),h=function(e){var t=e.target;return t.shadowRoot&&(t=e.composedPath()[0]),t},b=Object(o.useCallback)((function(e){if(t&&a.current){var n=d(),o=h(e);if(!n.length)return null==o?void 0:o.blur();var r=-1!==Object(c.c)(n,o),i=e&&a.current.contains(o);return!r&&i?n[0].focus():void 0}}),[d,t]);Object(o.useEffect)((function(){if("undefined"!=typeof window)return document.addEventListener("keydown",m),document.addEventListener("focusin",b),function(){document.removeEventListener("keydown",m),document.removeEventListener("focusin",b)}}),[b,m]);var g=l(r);return Object(o.useEffect)((function(){var e;if("undefined"!=typeof window&&t){var n,o=u();if(g.current&&(null===(n=a.current)||void 0===n||!n.contains(o)))return e=o,m(),function(){return e.focus()};m()}}),[g,m,t]),a},p={locked:a.a.bool,focusLastOnUnlock:a.a.shape({current:a.a.instanceOf(Element)}),children:a.a.element.isRequired},f=Object(o.forwardRef)((function(e,t){var n=e.locked,i=e.focusLastOnUnlock,a=e.children,l=d(n,{focusLastOnUnlock:i,overrideRef:t});return r.a.isValidElement(a)?Object(o.cloneElement)(a,{ref:l}):(console.warn("FocusTrap expects a single valid React element as its child."),null)}));f.propTypes=p,f.displayName="FocusTrap";var m=f;t.a=m},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},function(e,t,n){var o=n(52),r=n(100),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var o=n(70),r=n(87),i=n(423),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,t,n){var o=n(242),r=n(275),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(650),r=n(95),i=n(508),a=n(104).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var o=n(70),r=n(71),i=n(87),a=n(213),l=n(150),c=n(327),u=function(){},s=[],d=l("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=o(p.exec),m=!p.exec(u),h=function(e){if(!i(e))return!1;try{return d(u,s,e),!0}catch(e){return!1}},b=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(p,c(e))}catch(e){return!0}};b.sham=!0,e.exports=!d||r((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?b:h},function(e,t,n){var o=n(52),r=n(85),i=n(149),a=n(99),l=n(241),c=n(287),u=o.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(i(n))return a(r(n,e));throw u(l(e)+" is not iterable")}},function(e,t,n){var o=n(83)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var o,r,i=n(85),a=n(70),l=n(97),c=n(433),u=n(434),s=n(242),d=n(167),p=n(147).get,f=n(521),m=n(522),h=s("native-string-replace",String.prototype.replace),b=RegExp.prototype.exec,g=b,y=a("".charAt),v=a("".indexOf),w=a("".replace),E=a("".slice),C=(r=/b*/g,i(b,o=/a/,"a"),i(b,r,"a"),0!==o.lastIndex||0!==r.lastIndex),O=u.BROKEN_CARET,T=void 0!==/()??/.exec("")[1];(C||T||O||f||m)&&(g=function(e){var t,n,o,r,a,u,s,f=this,m=p(f),S=l(e),x=m.raw;if(x)return x.lastIndex=f.lastIndex,t=i(g,x,S),f.lastIndex=x.lastIndex,t;var A=m.groups,_=O&&f.sticky,P=i(c,f),k=f.source,L=0,M=S;if(_&&(P=w(P,"y",""),-1===v(P,"g")&&(P+="g"),M=E(S,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==y(S,f.lastIndex-1))&&(k="(?: "+k+")",M=" "+M,L++),n=new RegExp("^(?:"+k+")",P)),T&&(n=new RegExp("^"+k+"$(?!\\s)",P)),C&&(o=f.lastIndex),r=i(b,_?n:f,M),_?r?(r.input=E(r.input,L),r[0]=E(r[0],L),r.index=f.lastIndex,f.lastIndex+=r[0].length):f.lastIndex=0:C&&r&&(f.lastIndex=f.global?r.index+r[0].length:o),T&&r&&r.length>1&&i(h,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&A)for(r.groups=u=d(null),a=0;a<A.length;a++)u[(s=A[a])[0]]=r[s[1]];return r}),e.exports=g},function(e,t,n){var o=n(100),r=n(187),i=n(83)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},function(e,t,n){"use strict";n(17);var o=n(70),r=n(112),i=n(334),a=n(71),l=n(83),c=n(159),u=l("species"),s=RegExp.prototype;e.exports=function(e,t,n,d){var p=l(e),f=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!f||!m||n){var h=o(/./[p]),b=t(p,""[e],(function(e,t,n,r,a){var l=o(e),c=t.exec;return c===i||c===s.exec?f&&!a?{done:!0,value:h(t,n,r)}:{done:!0,value:l(n,t,r)}:{done:!1}}));r(String.prototype,e,b[0]),r(s,p,b[1])}d&&c(s[p],"sham",!0)}},function(e,t,n){var o=n(52),r=n(85),i=n(99),a=n(87),l=n(187),c=n(334),u=o.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var o=r(n,e,t);return null!==o&&i(o),o}if("RegExp"===l(e))return r(c,e,t);throw u("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(374);function r(e,t,n){return(t=Object(o.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var o=n(87),r=n(100),i=n(218);e.exports=function(e,t,n){var a,l;return i&&o(a=t.constructor)&&a!==n&&r(l=a.prototype)&&l!==n.prototype&&i(e,l),e}},function(e,t,n){var o=n(70),r=n(129),i=n(97),a=n(341),l=o("".replace),c="["+a+"]",u=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),d=function(e){return function(t){var n=i(r(t));return 1&e&&(n=l(n,u,"")),2&e&&(n=l(n,s,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var o=n(193),r=n(691),i=n(693),a=n(632);e.exports=function(e,t){return o(e)?e:r(e,t)?[e]:i(a(e))}},function(e,t,n){"use strict";var o=n(52),r=n(70),i=n(89),a=n(446),l=n(243),c=n(159),u=n(385),s=n(71),d=n(210),p=n(151),f=n(152),m=n(549),h=n(1064),b=n(244),g=n(218),y=n(189).f,v=n(104).f,w=n(447),E=n(280),C=n(191),O=n(147),T=l.PROPER,S=l.CONFIGURABLE,x=O.get,A=O.set,_=o.ArrayBuffer,P=_,k=P&&P.prototype,L=o.DataView,M=L&&L.prototype,j=Object.prototype,I=o.Array,R=o.RangeError,N=r(w),D=r([].reverse),F=h.pack,B=h.unpack,H=function(e){return[255&e]},V=function(e){return[255&e,e>>8&255]},U=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},W=function(e){return F(e,23,4)},z=function(e){return F(e,52,8)},Z=function(e,t){v(e.prototype,t,{get:function(){return x(this)[t]}})},Y=function(e,t,n,o){var r=m(n),i=x(e);if(r+t>i.byteLength)throw R("Wrong index");var a=x(i.buffer).bytes,l=r+i.byteOffset,c=E(a,l,l+t);return o?c:D(c)},q=function(e,t,n,o,r,i){var a=m(n),l=x(e);if(a+t>l.byteLength)throw R("Wrong index");for(var c=x(l.buffer).bytes,u=a+l.byteOffset,s=o(+r),d=0;d<t;d++)c[u+d]=s[i?d:t-d-1]};if(a){var K=T&&"ArrayBuffer"!==_.name;if(s((function(){_(1)}))&&s((function(){new _(-1)}))&&!s((function(){return new _,new _(1.5),new _(NaN),K&&!S})))K&&S&&c(_,"name","ArrayBuffer");else{(P=function(e){return d(this,k),new _(m(e))}).prototype=k;for(var $,X=y(_),J=0;X.length>J;)($=X[J++])in P||c(P,$,_[$]);k.constructor=P}g&&b(M)!==j&&g(M,j);var Q=new L(new P(2)),ee=r(M.setInt8);Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||u(M,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else k=(P=function(e){d(this,k);var t=m(e);A(this,{bytes:N(I(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,M=(L=function(e,t,n){d(this,M),d(e,k);var o=x(e).byteLength,r=p(t);if(r<0||r>o)throw R("Wrong offset");if(r+(n=void 0===n?o-r:f(n))>o)throw R("Wrong length");A(this,{buffer:e,byteLength:n,byteOffset:r}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=r)}).prototype,i&&(Z(P,"byteLength"),Z(L,"buffer"),Z(L,"byteLength"),Z(L,"byteOffset")),u(M,{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return G(Y(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return G(Y(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return B(Y(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return B(Y(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){q(this,1,e,H,t)},setUint8:function(e,t){q(this,1,e,H,t)},setInt16:function(e,t){q(this,2,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){q(this,2,e,V,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){q(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){q(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){q(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){q(this,8,e,z,t,arguments.length>2?arguments[2]:void 0)}});C(P,"ArrayBuffer"),C(L,"DataView"),e.exports={ArrayBuffer:P,DataView:L}},function(e,t,n){var o=n(91),r=n(321),i=o.TYPED_ARRAY_CONSTRUCTOR,a=o.aTypedArrayConstructor;e.exports=function(e){return a(r(e,e[i]))}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,o,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,l=arguments.length;switch(l){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,o)}));case 4:return t.nextTick((function(){e.call(null,n,o,r)}));default:for(i=new Array(l-1),a=0;a<i.length;)i[a++]=arguments[a];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,n(236))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){var o=n(543);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}},function(e,t,n){"use strict";let o=n(349);class r extends o{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=r,r.default=r},function(e,t,n){"use strict";let{isClean:o,my:r}=n(457),i=n(456),a=n(586),l=n(350);class c{constructor(e={}){this.raws={},this[o]=!1,this[r]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,n){let o=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let i=t[r],a=typeof i;"parent"===r&&"object"===a?n&&(o[r]=n):"source"===r?o[r]=i:Array.isArray(i)?o[r]=i.map(t=>e(t,o)):("object"===a&&null!==i&&(i=e(i)),o[r]=i)}return o}(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:o}=this.rangeBy(t);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new i(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let o=(t=this.toString()).indexOf(e.word);-1!==o&&(n=this.positionInside(o,t))}return n}positionInside(e,t){let n=t||this.toString(),o=this.source.start.column,r=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(o=1,r+=1):o+=1;return{column:o,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let o=this.toString(),r=o.indexOf(e.word);-1!==r&&(t=this.positionInside(r,o),n=this.positionInside(r+e.word.length,o))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new a).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},o=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let o=this[e];if(Array.isArray(o))n[e]=o.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof o&&o.toJSON)n[e]=o.toJSON(null,t);else if("source"===e){let i=t.get(o.input);null==i&&(i=r,t.set(o.input,r),r++),n[e]={end:o.end,inputId:i,start:o.start}}else n[e]=o}return o&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=l){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,n){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}get proxyOf(){return this}}e.exports=c,c.default=c},function(e,t,n){"use strict";let o=n(586);function r(e,t){new o(t).stringify(e)}e.exports=r,r.default=r},function(e,t,n){"use strict";let{SourceMapConsumer:o,SourceMapGenerator:r}=n(458),{fileURLToPath:i,pathToFileURL:a}=n(589),{isAbsolute:l,resolve:c}=n(459),{nanoid:u}=n(1380),s=n(585),d=n(456),p=n(590),f=Symbol("fromOffsetCache"),m=Boolean(o&&r),h=Boolean(c&&l);class b{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!h||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=c(t.from)),h&&m){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,o={}){let r,i,l;if(t&&"object"==typeof t){let e=t,o=n;if("number"==typeof e.offset){let o=this.fromOffset(e.offset);t=o.line,n=o.col}else t=e.line,n=e.column;if("number"==typeof o.offset){let e=this.fromOffset(o.offset);i=e.line,l=e.col}else i=o.line,l=o.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let c=this.origin(t,n,i,l);return r=c?new d(e,void 0===c.endLine?c.line:{column:c.column,line:c.line},void 0===c.endLine?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,o.plugin):new d(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:l,line:i},this.css,this.file,o.plugin),r.input={column:n,endColumn:l,endLine:i,line:t,source:this.css},this.file&&(a&&(r.input.url=a(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[f])n=this[f];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let o=0,r=e.length;o<r;o++)n[o]=t,t+=e[o].length+1;this[f]=n}t=n[n.length-1];let o=0;if(e>=t)o=n.length-1;else{let t,r=n.length-2;for(;o<r;)if(t=o+(r-o>>1),e<n[t])r=t-1;else{if(!(e>=n[t+1])){o=t;break}o=t+1}}return{col:e-n[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:c(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,o){if(!this.map)return!1;let r,c,u=this.map.consumer(),s=u.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof n&&(r=u.originalPositionFor({column:o,line:n})),c=l(s.source)?a(s.source):new URL(s.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let d={column:s.column,endColumn:r&&r.column,endLine:r&&r.line,line:s.line,url:c.toString()};if("file:"===c.protocol){if(!i)throw new Error("file: protocol is not available in this PostCSS build");d.file=i(c)}let p=u.sourceContentFor(s.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=b,b.default=b,s&&s.registerInput&&s.registerInput(b)},function(e,t,n){"use strict";let o=n(349);class r extends o{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},function(e,t,n){var o=n(444),r=n(542);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var l=-1,c=t.length;++l<c;){var u=t[l],s=i?i(n[u],e[u],u,n,e):void 0;void 0===s&&(s=e[u]),a?r(n,u,s):o(n,u,s)}return n}},function(e,t,n){"use strict";n(9),n(77),n(26),n(59);var o=n(0),r=n.n(o),i=n(6),a=n(2),l=n.n(a),c=n(43),u=n(4),s=n(3),d=n(66),p=["onClick","dataElement","isElementDisabled","isActive","ariaLabel","ariaExpanded","ariaPressed"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var m={dataElement:l.a.any,ariaExpanded:l.a.bool,ariaPressed:l.a.bool,ariaLabel:l.a.any,isElementDisabled:l.a.any,isActive:l.a.any,onClick:l.a.any},h=function(e){var t=e.onClick,n=e.dataElement,o=e.isElementDisabled,i=e.isActive,a=e.ariaLabel,l=e.ariaExpanded,u=void 0!==l&&l,s=e.ariaPressed,d=void 0!==s&&s,m=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,p);return o?null:r.a.createElement(c.a,f({},m,{isActive:i,dataElement:n,onClick:t,ariaLabel:a,ariaExpanded:u,ariaPressed:d}))},b=Object(i.b)((function(e,t){var n=u.a.isElementOpen(e,t.element);return{isElementDisabled:u.a.isElementDisabled(e,t.dataElement),isActive:n}}),(function(e,t){return{onClick:function(){e(s.a.toggleElement(t.element)),t.onClick&&t.onClick(e)}}}))(h);h.propTypes=m;var g=function(e){var t=Object(d.b)();return r.a.createElement(b,f({},e,{isMobile:t}))};t.a=g},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(27),n(21),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(11),n(31),n(13);var o=n(0),r=n(1),i=n(6),a=n(4);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var f=function(e,t){var n={top:0,bottom:e-20};return t.current?n.bottom-=t.current.getBoundingClientRect().height:n.bottom-=85,n};t.a=function(e){var t=d(Object(o.useState)({x:0,y:0}),2),n=t[0],l=t[1],c=Object(o.useRef)(null),s=Object(i.e)(a.a.getDocumentContainerWidth),p=Object(i.e)(a.a.getDocumentContainerHeight),m=r.a.getViewerElement(),h=r.a.getScrollViewElement(),b=Object(o.useCallback)((function(e,t){var n=t.x,o=t.y;l({x:n,y:o})}),[]),g=Object(o.useCallback)((function(e,t){var n=t.x,o=t.y;l({x:n,y:o})}),[]),y=function(e){var t=d(e.split("-"),2);return{verticalPosition:t[0],horizontalPosition:t[1]}},v=Object(o.useCallback)((function(){if(!e)return{left:0,top:0};var t=y(e),n=t.verticalPosition,o=t.horizontalPosition,r={left:0,top:0};return r.top=function(e,t,n,o,r){if("top"===e)return(null==n?void 0:n.offsetTop)+10||85;var i=400;return null!=t&&t.current&&(i=t.current.getBoundingClientRect().height),o+(null==r?void 0:r.offsetTop)-10-i||85}(n,c,m,p,h),r.left="right"===o?function(e,t,n){var o=.666*e;if(!t||null==n||!n.current)return o;var r=(null==t?void 0:t.offsetLeft)+(null==t?void 0:t.offsetWidth)+10||o,i=e-n.current.getBoundingClientRect().width-10;return Math.min(r,i)}(s,m,c):function(e,t,n){if(!e||null==t||!t.current)return 10;var o=t.current.getBoundingClientRect().width,r=(null==e?void 0:e.offsetLeft)-10-o||10;return n&&r<n.offsetLeft&&(r=n.offsetLeft+10),(!r||isNaN(r)||r<0)&&(r=10),r}(m,c,h),r}),[e,s,p,m,h]),w=Object(o.useCallback)((function(){var t;if(!e)return{top:0,bottom:0,left:0,right:0};var n,o=y(e),r=o.verticalPosition,i=o.horizontalPosition,a=v(),l=function(e,t,n){return"top"===e?f(t,n):"bottom"===e?function(e,t){var n={top:20-e,bottom:0};return t.current?n.top+=t.current.getBoundingClientRect().height:n.top+=85,n}(t,n):(console.warn("Invalid vertical position: ".concat(e,". Defaulting to top bounds.")),f(t,n))}(r,p,c);n="right"===i?function(e,t){var n={left:-e,right:e/3};return t&&(n.right=e-t.left),n}(s,a):function(e,t,n){var o={left:(null==e?void 0:e.offsetLeft)||0,right:t-10-35};return n&&(o.left=Math.max(0,(null==e?void 0:e.offsetLeft)-n.left+10),o.right-=n.left),o}(h,s,a);var d=u(u({},l),n);d.left=Math.max(d.left,-a.left);var m=(null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0,b=s-a.left-m;return d.right=Math.min(d.right,b),d}),[e,s,p,m,h,v]),E=Object(o.useCallback)((function(){l({x:0,y:0})}),[]);return e?{position:n,setPosition:l,handleDrag:b,handleStop:g,resetPosition:E,containerRef:c,style:v(),bounds:w()}:{position:n,setPosition:l,handleDrag:b,handleStop:g}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n(118),n(8);var o=[["en","English"],["ar","العربية"],["bn","বাংলা"],["cs","česky, čeština"],["de","Deutsch"],["el","Ελληνικά"],["es","Español"],["fa","فارسی"],["fr","Français"],["he","עברית"],["hi","हिन्दी"],["hu","Magyar"],["id","Bahasa Indonesia"],["it","Italiano"],["ja","日本語"],["ko","한국어"],["ms","Melayu"],["nl","Nederlands"],["pl","Polski"],["pt_br","Português"],["ro","Romanian"],["ru","Pусский"],["sv","Svenska"],["th","ไทย"],["tr","Türk"],["uk","українська"],["ur","اردو"],["vi","Tiếng Việt"],["zh_cn","简体中文"],["zh_tw","繁體中文"]],r=o.reduce((function(e,t){var n=t[0];return e[n.toUpperCase()]=n,e}),{});t.a=o},function(e,t,n){"use strict";n(1217);var o=n(0),r=n.n(o),i=n(2),a=function(e){var t=e.children;return r.a.createElement("div",{className:"MobilePopupWrapper","data-element":"mobile-popup-wrapper"},t)},l=a;a.propTypes={children:n.n(i).a.node.isRequired};t.a=l},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(21),n(20),n(12),n(22),n(33),n(18),n(26),n(16),n(30),n(40),n(49),n(24),n(48),n(50),n(41),n(35),n(42),n(56),n(17),n(19),n(11),n(31),n(13),n(38),n(34),n(46),n(77),n(8),n(64);var o=n(0),r=n.n(o),i=n(4),a=n(3),l=n(6),c=n(306),u=n(554),s=n(107);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=["property","onStyleChange","color","enableEdit"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return y(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(y(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,y(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,y(d,"constructor",u),y(u,"constructor",c),c.displayName="GeneratorFunction",y(u,r,"GeneratorFunction"),y(d),y(d,r,"Generator"),y(d,o,(function(){return this})),y(d,"toString",(function(){return"[object Generator]"})),(g=function(){return{w:i,m:p}})()}function y(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(y=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){y(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function v(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function w(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){v(i,o,r,a,l,"next",e)}function l(e){v(i,o,r,a,l,"throw",e)}a(void 0)}))}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T=function(e){var t=e.property,n=e.onStyleChange,d=e.color,f=e.enableEdit,h=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,p),y=Object(l.d)(),v=E(Object(c.a)(),1)[0],C=E(Object(o.useState)(""),2),O=C[0],T=C[1],S=E(Object(o.useState)(""),2),x=S[0],A=S[1],_=Object(l.e)(i.a.getCustomColor),P=Object(l.e)(i.a.getCustomColors);Object(o.useEffect)((function(){_&&d&&(O||k(_)!==k(d))&&M(_)}),[_,O]);var k=function(e){return e&&e.A?e.toHexString().toLowerCase():s.b.black},L=function(){var e=w(g().m((function e(t){var n,o,r,i;return g().w((function(e){for(;;)switch(e.n){case 0:n=v("warning.colorPicker.deleteMessage"),o=v("warning.colorPicker.deleteTitle"),r=v("action.ok"),i={message:n,title:o,confirmBtnText:r,onConfirm:function(){var e=w(g().m((function e(){return g().w((function(e){for(;;)switch(e.n){case 0:t&&t(),n=void 0,n=P.filter((function(e){return e!==x})),y(a.a.setCustomColors(n)),A(""),y(a.a.setCustomColor(null));case 1:return e.a(2)}var n}),e)})));return function(){return e.apply(this,arguments)}}()},y(a.a.showWarningMessage(i));case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(e){if(e){var o,r,i=k(e),l=P.includes(i),c=P.indexOf((null==d||null===(o=d.toHexString)||void 0===o||null===(r=o.call(d))||void 0===r?void 0:r.toLowerCase())||"");if("add"===O)l||y(a.a.setCustomColors([].concat(b(P),[i])));else if("update"===O&&!l){var u=b(P);u[c]=i,y(a.a.setCustomColors(u))}n(t,e)}},j=m(m({},h),{},{color:d,property:t,getHexColor:k,handleColorOnClick:function(e){n(t,new window.Core.Annotations.Color(e)),d&&0!==d.A&&d.toHexString().toLowerCase()&&e===d.toHexString().toLowerCase()&&y(a.a.setCustomColor(d))},customColors:P,openColorPicker:function(e){T(e?"add":"update"),y(a.a.openElement("ColorPickerModal"))},colorToBeDeleted:x,setColorToBeDeleted:A,openDeleteModal:L,enableEdit:f});return r.a.createElement(u.a,j)};t.a=T},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(77),n(12),n(33),n(26),n(30),n(59),n(40),n(24),n(41),n(42),n(8),n(86),n(11),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(15),c=n.n(l),u=n(6),s=n(43),d=n(69),p=n(1),f=n(153),m=n(178),h=n(53),b=n(3),g=n(4),y=n(66),v=n(61);n(1139);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function T(e,t,n){return t=S(t),function(e,t){if(t&&("object"==w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],S(e).constructor):t.apply(e,n))}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}var P=function(e){function t(){var e;C(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return A(e=T(this,t,[].concat(o)),"onClick",(function(){var t=e.props,n=t.setActiveToolGroup,o=t.isActive,r=t.closeElement,i=t.openElement,a=t.toolGroup,l=t.toolNames,c=t.lastPickedToolForGroup;o?(r("toolStylePopup"),p.a.setToolMode(d.a),n("")):(r("toolStylePopup"),"signatureTools"===a||"rubberStampTools"===a?p.a.setToolMode(d.a):p.a.setToolMode(c||l[0]),n(a),i("toolsOverlay"))})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e,t=this.props,n=t.toolNames,o=t.lastPickedToolForGroup,i=t.isActive,a=t.mediaQueryClassName,l=t.dataElement,u=t.toolButtonObjects,d=t.allButtonsInGroupDisabled,p=t.iconColorKey,h=t.showColor,b=t.title,g=o||n[0],y=this.props.img?this.props.img:null===(e=u[g])||void 0===e?void 0:e.img,w="",E="",C="";if("never"!==h&&i){var O,T,S=Object(f.a)(g);p&&(w=null===(O=S[p])||void 0===O||null===(T=O.toHexString)||void 0===T?void 0:T.call(O)),E=Object(m.a)(S.FillColor),C=Object(m.a)(S.StrokeColor),g.indexOf("AnnotationCreateFreeText")>-1&&0===(null==S?void 0:S.StrokeThickness)&&(C="ff000000")}return g.indexOf("AnnotationCreateRedaction")>-1&&!i&&(E="868E96"),d?null:r.a.createElement(v.a,{className:c()({"tool-group-button":!0,active:i}),dataElement:l},r.a.createElement(s.a,{title:b,mediaQueryClassName:a,isActive:i,img:y,color:w,fillColor:E,strokeColor:C,dataElement:l,onClick:this.onClick}))}}])&&O(n.prototype,o),i&&O(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.a.PureComponent);A(P,"propTypes",{activeToolName:a.a.string.isRequired,toolGroup:a.a.string.isRequired,mediaQueryClassName:a.a.string.isRequired,dataElement:a.a.string.isRequired,img:a.a.string,title:a.a.string,toolNames:a.a.arrayOf(a.a.string),toolButtonObjects:a.a.object,lastPickedToolForGroup:a.a.string,allButtonsInGroupDisabled:a.a.bool,openElement:a.a.func.isRequired,toggleElement:a.a.func.isRequired,closeElement:a.a.func.isRequired,setActiveToolGroup:a.a.func.isRequired,isActive:a.a.bool.isRequired,showColor:a.a.string,iconColorKey:a.a.string});var k={openElement:b.a.openElement,toggleElement:b.a.toggleElement,closeElement:b.a.closeElement,setActiveToolGroup:b.a.setActiveToolGroup},L=Object(u.b)((function(e,t){return{lastPickedToolForGroup:g.a.getLastPickedToolForGroup(e,t.toolGroup),savedSignatures:g.a.getSavedSignatures(e),isActive:g.a.getActiveToolGroup(e)===t.toolGroup,activeToolName:g.a.getActiveToolName(e),toolNames:g.a.getToolNamesByGroup(e,t.toolGroup),toolButtonObjects:g.a.getToolButtonObjects(e),allButtonsInGroupDisabled:g.a.allButtonsInGroupDisabled(e,t.toolGroup),iconColorKey:g.a.getIconColor(e,Object(h.j)(g.a.getActiveToolName(e)))}}),k)(P),M=function(e){var t=Object(y.c)();return r.a.createElement(L,E({},e,{isTabletAndMobile:t}))};t.a=M},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(21),n(20),n(12),n(84),n(22),n(33),n(18),n(26),n(16),n(30),n(59),n(24),n(8),n(17),n(19),n(11),n(136),n(13);var o=n(0),r=n.n(o),i=(n(318),n(558),n(15)),a=n.n(i),l=n(2),c=n.n(l),u=n(43),s=n(67),d=n(103);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var g=Object(o.forwardRef)((function(e,t){var n=e.dataElement,i=e.disabled,l=e.mount,c=e.unmount,p=e.states,b=e.style,g=e.className,y=e.isFlyoutItem,v=void 0!==y&&y,w=h(r.a.useState(),2)[1],E=r.a.useCallback((function(){return w({})}),[]),C=h(r.a.useState(e.initialState),2),O=C[0],T=C[1];Object(o.useEffect)((function(){return l&&l(S),function(){c&&c()}}));var S=function(e){e&&T(e),E()},x=function(){var t=e.dispatch;p[O].onClick(S,p[O],t)},A=p[O],_=A.title,P=A.img,k=A.getContent,L=A.isActive,M=k?k(p[O]):"",j=["StatefulButton",p[O].className?p[O].className:"",[g]].join(" ").trim();return v?r.a.createElement(s.a,m({},e,{ref:t,label:M||_,additionalClass:L&&L(e.flyoutItem)?"active":"",icon:Object(d.b)({icon:P},e.items),onClickHandler:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return function(t){var o;x(),null==e||null===(o=e.onClickHandler)||void 0===o||o.call.apply(o,[e].concat(n))(t)}},title:_,dataElement:n,disabled:i})):r.a.createElement(u.a,{className:a()(f({CustomButton:!0,Button:!0},j,!0)),isActive:L&&L(e),img:P,label:M,title:_,dataElement:n,onClick:x,disabled:i,style:b})}));g.propTypes={dataElement:c.a.string.isRequired,disabled:c.a.bool,isFlyoutItem:c.a.bool,onClickHandler:c.a.func,flyoutItem:c.a.object,items:c.a.array,initialState:c.a.string.isRequired,mount:c.a.func.isRequired,unmount:c.a.func,style:c.a.object,className:c.a.string,states:c.a.shape({activeState:c.a.shape({img:c.a.string,label:c.a.string,onClick:c.a.func.isRequired,title:c.a.string.isRequired,getContent:c.a.func.isRequired}),AnotherState:c.a.shape({img:c.a.string,label:c.a.string,onClick:c.a.func.isRequired,title:c.a.string.isRequired,getContent:c.a.func.isRequired})})},g.displayName="StatefulButton";var y=r.a.memo(g);t.a=y},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(21),n(46),n(77),n(20),n(12),n(22),n(33),n(18),n(26),n(16),n(30),n(59),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(116),n(11),n(31),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(1),l=n(15),c=n.n(l),u=n(2),s=n.n(u),d=n(43),p=n(3),f=n(4),m=n(53),h=n(69),b=n(7),g=n(5),y=n(153),v=n(178),w=n(55),E=n(103),C=n(67);n(318),n(1282);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var L=window.Core.Tools.ToolNames,M=Object(o.forwardRef)((function(e,t){var n=e.title,l=e.dataElement,u=e.label,s=e.img,O=e.disabled,P=e.className,k=e.preset,M=e.headerPlacement,j=e.toolName,I=e.isFlyoutItem,R=void 0!==I&&I,N=e.groupedItem,D=e.allFlyoutItems,F=void 0===D?[]:D,B=e.style,H=(Object(i.e)(f.a.getActiveToolStyles),Object(i.e)(f.a.getActiveToolName)),V=Object(i.e)((function(e){return f.a.getIconColor(e,Object(m.j)(j))})),U=Object(i.e)((function(e){return f.a.getToolButtonObject(e,j)}),i.c),G=Object(i.e)(f.a.getActiveGroupedItems,i.c),W=Object(i.e)((function(e){return f.a.isElementOpen(e,g.a.SIGNATURE_LIST_PANEL)})),z=Object(i.e)((function(e){return f.a.isElementOpen(e,g.a.RUBBER_STAMP_PANEL)})),Z=Object(i.e)((function(e){return f.a.getCustomElementOverrides(e,f.a.getToolButtonDataElement(e,j))}),i.c),Y=Object(i.e)((function(e){return f.a.getIsPanelInFlyout(e,b.j.RUBBER_STAMP_PANEL)}),i.c),q=Object(i.e)((function(e){return f.a.getIsPanelInFlyout(e,b.j.SIGNATURE_LIST_PANEL)}),i.c),K=Object(i.e)((function(e){return f.a.isElementOpen(e,null==q?void 0:q.dataElement)})),$=Object(i.e)((function(e){return f.a.isElementOpen(e,null==Y?void 0:Y.dataElement)})),X=Object(i.d)(),J=_(Object(o.useState)(H===j),2),Q=J[0],ee=J[1],te=[L.SIGNATURE,L.RUBBER_STAMP].includes(j),ne=function(e){e===j&&!te||te&&function(){var e=j===h.a;if(te){if(e||j===L.SIGNATURE)return q?K:W;if(e||j===L.RUBBER_STAMP)return Y?$:z}return!1}()?(ee(!0),re(e,"open")):ee(!1)};Object(o.useEffect)((function(){ne(H)}),[H,W,z,K,$]);var oe,re=function(e,t){var n,o=!1;if(e===L.SIGNATURE?q?(n=q.dataElement,o=!0):n=g.a.SIGNATURE_LIST_PANEL:e===L.RUBBER_STAMP&&(Y?(n=Y.dataElement,o=!0):n=g.a.RUBBER_STAMP_PANEL),n)if("open"===t){if(o)return void X(p.a.openFlyout(n,l));X(p.a.openElement(n))}else"close"===t&&X(p.a.closeElement(n))},ie=function(){if(N){var e=new Set([].concat(A(G),[N])),t=Array.from(e);X(p.a.setActiveGroupedItems(t))}Q?(ee(!1),re(j,"close"),a.a.setToolMode(h.a)):(re(j,"open"),a.a.setToolMode(j))},ae=s||(null==U?void 0:U.img),le=n||(null==U?void 0:U.title),ce="",ue="",se="",de=(null==Z?void 0:Z.showColor)||(null==U?void 0:U.showColor);if("always"===de||"active"===de&&Q){var pe,fe,me=Object(y.a)(j);ce=null==me||null===(pe=me[V])||void 0===pe||null===(fe=pe.toHexString)||void 0===fe?void 0:fe.call(pe),ue=Object(v.a)(null==me?void 0:me.FillColor),se=Object(v.a)(null==me?void 0:me.StrokeColor),j.indexOf(L.FREETEXT)>-1&&0===(null==me?void 0:me.StrokeThickness)&&(se="ff000000")}if([b.q.LEFT,b.q.RIGHT].includes(M)&&(oe=M===b.q.LEFT?b.q.RIGHT:b.q.LEFT),R){var he=le?le.slice(le.indexOf(".")+1):void 0,be=he?Object(w.n)(he):void 0,ge=u||le,ye=Object(E.b)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},U),F),ve=H===j;return r.a.createElement(C.a,T({},e,{ref:t,onClick:ie,label:ge,ariaKeyshortcuts:be,icon:ye,additionalClass:ve?"active":""}))}return r.a.createElement(d.a,{className:c()(x(x(x(x({ToolButton:!0,Button:!0},P,P),"confirm-button","confirm"===k),"cancel-button","cancel"===k),"button-with-label",u)),img:ae,label:u,title:le,dataElement:l,onClick:ie,disabled:O,forceTooltipPosition:oe,isActive:Q,color:ce,fillColor:ue,strokeColor:se,ariaCurrent:Q,ariaPressed:Q,style:B})}));M.propTypes={toolName:s.a.string.isRequired,dataElement:s.a.string,title:s.a.string,label:s.a.string,className:s.a.string,preset:s.a.string,headerPlacement:s.a.string,isFlyoutItem:s.a.bool,img:s.a.string,onClick:s.a.func,disabled:s.a.bool,groupedItem:s.a.string,allFlyoutItems:s.a.array,style:s.a.object},M.displayName="ToolButton";var j=M;t.a=j},function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d}));n(9),n(10),n(14),n(38),n(27),n(21),n(46),n(20),n(12),n(22),n(18),n(16),n(35),n(8),n(17),n(19),n(116),n(64),n(11),n(31),n(13);var o=n(7);function r(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c=function(e,t){return e.viewer.modularComponents[t]},u=function(e,t){var n=[],r=function(t){var a,l=i(t);try{for(l.s();!(a=l.n()).done;){var u=a.value,s=c(e,u);s&&s.type===o.k.GROUPED_ITEMS&&(n.push(u),r(s.items))}}catch(e){l.e(e)}finally{l.f()}};return(Array.isArray(t)?t:[t]).forEach((function(t){var n;r((null===(n=c(e,t))||void 0===n?void 0:n.items)||[])})),n},s=function(e,t){var n=Array.isArray(t)?t:[t],a=function(e,t){var n=[],r=function(a){var l,u=i(a);try{for(u.s();!(l=u.n()).done;){var s=l.value,d=c(e,s);d&&d.type===o.k.GROUPED_ITEMS&&d.items.includes(t)&&(n.push(s),r(s))}}catch(e){u.e(e)}finally{u.f()}};return r(Object.keys(e.viewer.modularComponents)),n}(e,t),l=u(e,t);return Array.from(new Set([].concat(r(n),r(a),r(l))))},d=function(e,t){var n,a=[o.k.BUTTON,o.k.STATEFUL_BUTTON,o.k.RIBBON_ITEM,o.k.DIVIDER,o.k.TOGGLE_BUTTON,o.k.TOOL_BUTTON,o.k.ZOOM,o.k.FLYOUT,o.k.PAGE_CONTROLS,o.k.PRESET_BUTTON,o.k.VIEW_CONTROLS,o.k.TABS_PANEL],l=[],s=u(e,t),d=i([t].concat(r(s)));try{for(d.s();!(n=d.n()).done;){var p,f,m=n.value,h=i((null===(p=c(e,m))||void 0===p?void 0:p.items)||[]);try{for(h.s();!(f=h.n()).done;){var b=f.value,g=c(e,b);g&&a.includes(g.type)&&l.push(b)}}catch(e){h.e(e)}finally{h.f()}}}catch(e){d.e(e)}finally{d.f()}return l}},function(e,t,n){"use strict";n(77),n(17),n(115),n(136);var o=n(470),r=n.n(o);t.a=function(e,t){var n="",o=t["text-decoration"],i=e.underline,a="none"!==o&&!r()(e.underline)&&!e.underline,l=e["line-through"],c="none"!==o&&!r()(e["line-through"])&&!e["line-through"];i?n=(null==o?void 0:o.indexOf("underline"))>-1?o:"".concat(o||""," underline").trim():a&&(n=o.replace(/underline|word/g,"").trim());l?n=(null==o?void 0:o.indexOf("line-through"))>-1?o:"".concat(o||""," line-through").trim():c&&(n=o.replace(/line-through/g,"").trim());return n}},function(e,t,n){"use strict";n(27),n(77),n(16),n(35),n(8),n(31);var o=n(302),r=n(1),i=n(63),a=n(366),l=n(3),c=n(4);t.a=function(e,t){return function(n){var u={AnnotationCreateTextUnderline:"textUnderlineToolButton",AnnotationCreateTextHighlight:"textHighlightToolButton",AnnotationCreateTextSquiggly:"textSquigglyToolButton",AnnotationCreateTextStrikeout:"textStrikeoutToolButton"},s=!1;void 0===n&&(n=Object(a.a)(),s=!0);var d="string"==typeof n?[n]:n,p=c.a.getToolButtonDataElements(t.getState(),d);s&&p.push("toolbarGroup-Forms"),Object.keys(u).forEach((function(e){-1!==d.indexOf(e)&&p.push(u[e])}));var f=r.a.getToolMode();!e&&n.indexOf(null==f?void 0:f.name)>-1&&r.a.setToolMode(window.Core.Tools.ToolNames.EDIT),e?(d.forEach((function(e){e&&o.a.on(e)})),t.dispatch(l.a.enableElements(p,i.c))):(d.forEach((function(e){e&&o.a.off(e)})),t.dispatch(l.a.disableElements(p,i.c)))}}},function(e,t,n){"use strict";n(27),n(16),n(35),n(8),n(31);var o=n(1);t.a=function(){var e=[],t=o.a.getToolModeMap();return Object.keys(t).forEach((function(n){var o=t[n];(o instanceof window.Core.Tools.GenericAnnotationCreateTool||o instanceof window.Core.Tools.TextAnnotationCreateTool||o.defaults)&&e.push(o.name)})),e}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(20),n(12),n(44),n(33),n(30),n(24),n(8),n(11),n(31),n(13);var o=n(1),r=n(73),i=n(110),a=n(55),l=n(140),c=n(68),u=n(63),s=n(3),d=n(198),p=n(199),f=n(368),m=n(4),h=n(5),b=n(60),g=n(322),y=n(65);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e,t){return function(n){var v,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.c,C=(w(w(w(w(w(w(w(w(w(w(v={},c.a.Ribbons,{dataElements:["ribbons"]}),c.a.Annotating,{dataElements:["toolsHeader","toggleToolsButton","linkButton","noteState",h.a.NOTE_MULTI_SELECT_MODE_BUTTON,"tools-header","markReplaceTextToolButton"],fn:function(){e?t.dispatch(s.a.enableRibbons()):t.dispatch(s.a.setReadOnlyRibbons())}}),c.a.Measurement,{dataElements:["toolbarGroup-Measure","measurementOverlay","distanceToolGroupButton","arcMeasurementToolGroupButton","perimeterToolGroupButton","areaToolGroupButton","rectangleAreaToolGroupButton","ellipseAreaToolGroupButton","countToolGroupButton","cloudyRectangleAreaToolGroupButton"]}),c.a.Annotations,{dataElements:["ribbons","notesPanel","toggleNotesButton","toggleToolsButton","toolsButton","linkButton","toolsHeader","toolsOverlay","default-ribbon-group","tools-header","notesPanelToggle","rubberStampPanel","stylePanel","signatureListPanel","markReplaceTextToolButton"],fn:function(){e?(o.a.showAnnotations(o.a.getAnnotationsList()),Object(d.a)(t)()):(o.a.hideAnnotations(o.a.getAnnotationsList()),Object(p.a)(t)())}}),c.a.Download,{dataElements:["downloadButton"],fn:function(){e?t.dispatch(s.a.enableDeleteTabWarning()):t.dispatch(s.a.disableDeleteTabWarning())}}),c.a.FilePicker,{dataElements:["filePickerHandler","filePickerButton"],fn:function(){e?a.g.enableShortcut(a.e.OPEN_FILE):a.g.disableShortcut(a.e.OPEN_FILE)}}),c.a.LocalStorage,{fn:function(){e?r.a.enableLocalStorage():r.a.disableLocalStorage()}}),c.a.NotesPanel,{dataElements:["notesPanelButton","notesPanel","toggleNotesButton","notesPanelToggle"]}),c.a.InlineComment,{dataElements:[h.a.INLINE_COMMENT_POPUP,h.a.INLINE_COMMENT_POPUP_EXPAND_BUTTON,h.a.INLINE_COMMENT_POPUP_CLOSE_BUTTON],fn:function(){e&&t.dispatch(s.a.setEnableRightClickAnnotationPopup(!0))}}),c.a.RightClickAnnotationPopup,{dataElements:[],fn:function(){e?t.dispatch(s.a.setEnableRightClickAnnotationPopup(!0)):(t.dispatch(s.a.disableElements([h.a.INLINE_COMMENT_POPUP,h.a.INLINE_COMMENT_POPUP_EXPAND_BUTTON,h.a.INLINE_COMMENT_POPUP_CLOSE_BUTTON],u.c)),t.dispatch(s.a.setEnableRightClickAnnotationPopup(!1)))}}),w(w(w(w(w(w(w(w(w(w(v,c.a.Print,{dataElements:["printButton","printModal"],fn:function(){e?a.g.enableShortcut(a.e.PRINT):a.g.disableShortcut(a.e.PRINT)}}),c.a.Redaction,{dataElements:["toolbarGroup-Redact","redactionToolGroupButton","redactionPanel","redactionPanelToggle","pageRedactionToolGroupButton"],fn:function(){if(e&&!o.a.isFullPDFEnabled())console.warn("Full api is not enabled, applying redactions is disabled");else{o.a.enableRedaction(e);var n=m.a.getCurrentToolbarGroup(t.getState());e||"toolbarGroup-Redact"!==n||Object(f.a)("AnnotationEdit")}}}),c.a.TextSelection,{dataElements:["textPopup","textSelectButton"],fn:function(){e||(o.a.clearSelection(),o.a.setToolMode("AnnotationEdit")),window.Core.Tools.Tool.ENABLE_TEXT_SELECTION=e}}),c.a.TouchScrollLock,{fn:function(){i.a.enableTouchScrollLock=e}}),c.a.Copy,{dataElements:["copyTextButton"],fn:function(){e?a.g.enableShortcut(a.e.COPY):a.g.disableShortcut(a.e.COPY)}}),c.a.MultipleViewerMerging,{fn:function(){t.dispatch(s.a.setIsMultipleViewerMerging(e))}}),c.a.ThumbnailMerging,{fn:function(){t.dispatch(s.a.setThumbnailMerging(e))}}),c.a.ThumbnailReordering,{fn:function(){t.dispatch(s.a.setThumbnailReordering(e))}}),c.a.ThumbnailMultiselect,{fn:function(){t.dispatch(s.a.setThumbnailMultiselect(e))}}),c.a.NotesPanelVirtualizedList,{fn:function(){t.dispatch(s.a.setEnableNotesPanelVirtualizedList(e))}}),w(w(w(w(w(w(w(w(w(w(v,c.a.PageNavigation,{fn:function(){e?(a.g.enableShortcut(a.e.UP),a.g.enableShortcut(a.e.DOWN),a.g.enableShortcut(a.e.PREVIOUS_PAGE),a.g.enableShortcut(a.e.NEXT_PAGE)):(a.g.disableShortcut(a.e.UP),a.g.disableShortcut(a.e.DOWN),a.g.disableShortcut(a.e.PREVIOUS_PAGE),a.g.disableShortcut(a.e.NEXT_PAGE),o.a.setDisplayMode("Single")),i.a.allowSwipe=e,t.dispatch(s.a.setAllowPageNavigation(e))}}),c.a.MouseWheelZoom,{fn:function(){t.dispatch(s.a.setMouseWheelZoom(e))}}),c.a.Search,{dataElements:["searchButton","searchPanelToggle"],fn:function(){e?a.g.enableShortcut(a.e.SEARCH):a.g.disableShortcut(a.e.SEARCH)}}),c.a.MathSymbols,{dataElements:["mathSymbolsButton","richTextPopup"]}),c.a.OutlineEditing,{dataElements:[h.a.OUTLINE_MULTI_SELECT,h.a.OUTLINE_ADD_NEW_BUTTON_CONTAINER,h.a.OUTLINE_ADD_NEW_BUTTON,h.a.OUTLINE_RENAME_BUTTON,h.a.OUTLINE_SET_DESTINATION_BUTTON,h.a.OUTLINE_DELETE_BUTTON,h.a.OUTLINE_MOVE_UP_BUTTON,h.a.OUTLINE_MOVE_DOWN_BUTTON,h.a.OUTLINE_MOVE_LEFT_BUTTON,h.a.OUTLINE_MOVE_RIGHT_BUTTON],fn:function(){Object(g.a)()===b.a.OFFICE&&console.warn("Outline Editing is not supported in Office Viewing mode"),t.dispatch(s.a.setIsOutlineEditing(e))}}),c.a.NotesShowLastUpdatedDate,{fn:function(){t.dispatch(s.a.setNotesShowLastUpdatedDate(e))}}),c.a.MultiTab,{fn:function(){Object(y.p)()?console.warn("Multi-tab is not supported in Office Editor mode"):e?(m.a.isMultiViewerMode(t.getState())&&(console.error("MultiTab and MultiViewerMode cannot be enabled at the same time, disabling MultiViewerMode"),t.dispatch(s.a.setIsMultiViewerMode(!1))),t.dispatch(Object(l.b)())):(t.dispatch(s.a.setMultiTab(!1)),t.dispatch(s.a.setTabManager(null)),t.dispatch(s.a.setTabs([])),t.dispatch(s.a.setActiveTab(0)))}}),c.a.ChangeView,{dataElements:["changeViewToolGroupButton"]}),c.a.ContentEdit,{dataElements:["toolbarGroup-EditText","addParagraphToolGroupButton","addImageContentToolGroupButton","contentEditButton","searchAndReplace"]}),c.a.MultiViewerMode,{fn:function(){e&&m.a.getIsMultiTab(t.getState())&&(console.error("MultiTab and MultiViewerMode cannot be enabled at the same time, disabling MultiTab"),t.dispatch(s.a.setMultiTab(!1)),t.dispatch(s.a.setTabManager(null)),t.dispatch(s.a.setTabs([])),t.dispatch(s.a.setActiveTab(0))),t.dispatch(s.a.setIsMultiViewerModeAvailable(e))}}),w(w(w(w(w(w(v,c.a.ComparePages,{dataElements:["comparePanelToggle"],fn:function(){t.dispatch(s.a.setComparePagesButtonEnabled(e))}}),c.a.Initials,{dataElements:["signatureOptionsDropdown","savedSignatureAndInitialsTabs"],fn:function(){var n=t.getState(),o=m.a.getDisplayedSignatures(n);(null==o?void 0:o.length)>0&&t.dispatch(s.a.setInitialsOffset(o.length)),t.dispatch(s.a.setInitialsMode(e))}}),c.a.SavedSignaturesTab,{dataElements:[h.a.SAVED_SIGNATURES_TAB],fn:function(){t.dispatch(s.a.setSavedSignaturesTabEnabled(e)),e||t.dispatch(s.a.setSelectedTab("signatureModal","inkSignaturePanelButton"))}}),c.a.Panel,{fn:function(){var n=t.getState().viewer.genericPanels.map((function(e){return e.dataElement}));e?t.dispatch(s.a.enableElements(n,E)):t.dispatch(s.a.disableElements(n,E))}}),c.a.LegacyRichTextPopup,{dataElements:[h.a.LEGACY_RICH_TEXT_POPUP]}),c.a.Portfolio,{fn:function(){if(e){if(!o.a.isFullPDFEnabled())return void console.warn("Full api is not enabled, portfolio is disabled");t.dispatch(s.a.enableElements([h.a.CREATE_PORTFOLIO_BUTTON,h.a.PORTFOLIO_PANEL_BUTTON,h.a.PORTFOLIO_PANEL],u.c))}else t.dispatch(s.a.disableElements([h.a.CREATE_PORTFOLIO_BUTTON,h.a.PORTFOLIO_PANEL_BUTTON,h.a.PORTFOLIO_PANEL],u.c))}}));Array.isArray(n)||(n=[n]),n.forEach((function(n){var o=C[n],r=o.dataElements,i=void 0===r?[]:r,a=o.fn,l=void 0===a?function(){}:a;e?t.dispatch(s.a.enableElements(i,E)):t.dispatch(s.a.disableElements(i,E)),l()}))}}},function(e,t,n){"use strict";var o=n(1),r=n(3),i=n(4);t.a=function(e){return function(t){var n=e.getState();if(n.featureFlags.customizableUI){var a=i.a.getRibbonAssociatedWithTool(n,t);a&&e.dispatch(r.a.setActiveCustomRibbon(a))}o.a.setToolMode(t)}}},function(e,t,n){"use strict";t.a=function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)}},function(e,t,n){"use strict";n(8),n(56);t.a=function(e){return new Promise((function(t,n){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){return t(o.result)},o.onerror=n}))}},function(e,t,n){"use strict";n(9),n(10),n(14),n(38),n(21),n(46),n(77),n(20),n(12),n(44),n(22),n(18),n(16),n(8),n(88),n(17),n(19),n(116),n(64),n(11),n(13);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=(n(581),n(306)),c=n(2),u=n.n(c),s=n(3),d=n(6),p=n(80),f=n(4),m=n(43),h=n(119),b=n(90),g=n(377),y=n(378),v=n(61);function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T={dataElement:u.a.string,color:u.a.any,ariaTypeLabel:u.a.string,activeTool:u.a.string,type:u.a.string,onColorChange:u.a.func,hasTransparentColor:u.a.bool},S=function(e){var t=e.dataElement,n=e.onColorChange,i=e.hasTransparentColor,c=void 0!==i&&i,u=e.color,C=e.activeTool,O=e.type,T=e.ariaTypeLabel,S=Object.values(window.Core.Tools.ToolNames).includes(C)?C:window.Core.Tools.ToolNames.EDIT,x=Object(l.a)().t,A=Object(d.d)(),_=Object(d.e)((function(e){return f.a.getColors(e,S,O)})),P=Object(d.e)(f.a.getCustomColors),k=Array.from(new Set([].concat(E(_),E(P)))),L=w(Object(o.useState)(),2),M=L[0],j=L[1],I=w(Object(o.useState)(!1),2),R=I[0],N=I[1],D=Object(o.useRef)(!0);Object(o.useEffect)((function(){D.current=!0}),[S,u]),Object(o.useEffect)((function(){u&&j(Object(p.e)(u))}),[u]);var F=Object(g.a)({colors:k,setSelectedColor:j,onColorChange:n,setColors:function(e){return A(s.a.setColors(e,S,O,!0))},useHex:!0}),B=Object(b.a)(F),H=Object(y.a)({selectedColor:M,colors:k,setSelectedColor:j,onColorChange:n,updateColorsAction:function(e){return A(s.a.setColors(e,S,O,!0))}}),V=k.map((function(e){return e.toLowerCase()}));c&&V.push("transparent"),M||j("transparent"),V.indexOf(M)>6&&!R&&D.current&&(N(!0),D.current=!1);var U=V.length<=7,G=!(M&&!V.includes(M)),W=V.length<=1||!G;return R||(V=V.slice(0,7)),r.a.createElement(v.a,{dataElement:t},r.a.createElement("div",{className:a()("ColorPalette")},V.map((function(e){return Object(p.e)(e)})).map((function(e,t){var o,i,l;return e?r.a.createElement(h.a,{content:"".concat(x("option.colorPalette.colorLabel")," ").concat(null==e||null===(o=e.toUpperCase)||void 0===o?void 0:o.call(e)),key:null==e||null===(i=e.toUpperCase)||void 0===i?void 0:i.call(e)},r.a.createElement("button",{className:"cell-container",onClick:function(){j(e),n(e)},"aria-label":"".concat(T," ").concat(x("option.colorPalette.colorLabel")," ").concat(null==e||null===(l=e.toUpperCase)||void 0===l?void 0:l.call(e)),"aria-current":Object(p.e)(M)===e||!Object(p.e)(M)&&"transparent"===e},r.a.createElement("div",{className:a()({"cell-outer":!0,active:Object(p.e)(M)===e||!Object(p.e)(M)&&"transparent"===e})},r.a.createElement("div",{className:a()({cell:!0,border:!0}),style:{backgroundColor:e}},"transparent"===e&&p.f)))):r.a.createElement("div",{key:t,className:"dummy-cell"})}))),r.a.createElement("div",{className:"palette-controls"},r.a.createElement("div",{className:"button-container"},r.a.createElement(m.a,{img:"icon-header-zoom-in-line",title:x("action.addNewColor"),onClick:B,className:"control-button",dataElement:"addCustomColor",ariaLabel:"".concat(T," ").concat(x("action.addNewColor")," ").concat(x("action.fromCustomColorPicker"))}),r.a.createElement(m.a,{img:"icon-delete-line",title:x("action.deleteColor"),onClick:H,disabled:W,className:"control-button",dataElement:"deleteSelectedColor",ariaLabel:"".concat(T," ").concat(x("action.deleteColor")," ").concat(M)}),r.a.createElement(m.a,{img:"icon-copy2",title:x("action.copySelectedColor"),onClick:function(){var e=Object(p.e)(M),t=[].concat(k,[e]);A(s.a.setColors(t,S,O,!0))},disabled:G,className:"control-button",dataElement:"copySelectedColor",ariaLabel:"".concat(T," ").concat(x("action.copySelectedColor")," ").concat(M)})),r.a.createElement("button",{className:a()("show-more-button control-button",{hidden:U}),onClick:function(){N(!R)},"aria-label":"".concat(T," ").concat(x(x(R?"action.showLessColors":"action.showMoreColors")))},x(R?"message.showLess":"message.showMore"))))};S.propTypes=T,t.a=S},function(e,t){e.exports=function(e){return null===e}},function(e,t,n){"use strict";var o=n(0),r=(n(38),n(18),n(8),n(19),0),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";return"".concat(e,"_").concat((r++).toString(16))},a=function(e){return Object(o.useMemo)((function(){return e||i("label")}),[e])};t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(142);function r(e){var t=function(e,t){if("object"!=Object(o.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Object(o.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(o.a)(t)?t:t+""}},function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13),n(93);var o=n(0),r=n(6),i=n(3),a=n(1),l=n(5);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}t.a=function(e){var t=Object(r.d)(),n=c(Object(o.useState)(null),2),u=n[0],s=n[1],d=c(Object(o.useState)(null),2),p=d[0],f=d[1];return Object(o.useEffect)((function(){var n=function(n,o){setTimeout((function(){o instanceof window.Core.Annotations.FreeTextAnnotation&&!o.getContentEditAnnotationId()&&o.ToolName!==window.Core.Tools.ToolNames.ADD_PARAGRAPH&&(s(o),f(n),e&&e([n,o]),t(i.a.openElements(l.a.RICH_TEXT_POPUP)))}),0)};return a.a.addEventListener("editorFocus",n),function(){a.a.removeEventListener("editorFocus",n)}}),[t]),{editor:p,annotation:u}}},function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(306);n(1107);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c=function(e){var t=e.onPropertyChange,n=e.properties,l=e.placeholderText,c=n.OverlayText||"",u=a(Object(o.useState)(c),2),s=u[0],d=u[1];Object(o.useEffect)((function(){d(c)}),[c]);var p=a(Object(i.a)(),1)[0];return r.a.createElement(r.a.Fragment,null,r.a.createElement("input",{className:"overlay-text-input",value:s,onChange:function(e){d(e.target.value),t("OverlayText",e.target.value)},onKeyDown:function(e){var t;"Enter"===e.key&&(null===(t=e.target)||void 0===t||t.blur())},placeholder:l||p("option.stylePopup.labelTextPlaceholder")}))};t.a=c},function(e,t,n){"use strict";n(9),n(10),n(14),n(38),n(21),n(46),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(64),n(11),n(13);var o=n(0),r=n(3),i=n(4),a=n(80),l=n(54),c=n(5),u=n(6),s=n(57),d=n(65);function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var m=function(e){var t=e.colors,n=e.setSelectedColor,f=void 0===n?function(){}:n,m=e.onColorChange,h=e.type,b=e.activeToolName,g=void 0===b?"":b,y=e.setColors,v=e.useHex,w=void 0!==v&&v,E=e.spreadsheetSetter,C=e.spreadsheetGetter,O=Object(u.d)(),T=Object(u.f)(),S=Object(u.e)(i.a.getCustomColors),x=Object(u.e)((function(e){return Object(d.q)()?i.a[C](e):[]}));return Object(o.useCallback)((function(){O(r.a.openElement(c.a.COLOR_PICKER_MODAL));var e=function(n){var o=n.detail,i=o.element,u=o.isVisible;if(i===c.a.COLOR_PICKER_MODAL&&!u){var h=Object(a.b)(O,T),b=Object(a.e)(h),g=w?b:h;if(b)if(t.includes(b))f(g),m(g);else{var v=[].concat(p(t),[b]);y(v),f(g),m(g);var C=Object(d.q)()?r.a[E]([].concat(p(x),[b])):r.a.setCustomColors([].concat(p(S),[b]));O(C)}Object(s.c)().removeEventListener(l.a.VISIBILITY_CHANGED,e)}};Object(s.c)().addEventListener(l.a.VISIBILITY_CHANGED,e)}),[t,h,g])};t.a=m},function(e,t,n){"use strict";n(9),n(10),n(14),n(34),n(21),n(77),n(20),n(12),n(22),n(128),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(80),r=n(65),i=n(6),a=n(4),l=n(3);function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var s=function(e){var t=e.selectedColor,n=e.colors,u=e.transformFn,s=void 0===u?function(e){return e}:u,d=e.setSelectedColor,p=e.onColorChange,f=e.updateColorsAction,m=e.spreadsheetSetter,h=e.spreadsheetGetter,b=Object(i.d)(),g=Object(i.e)(a.a.getCustomColors),y=Object(i.e)((function(e){return Object(r.q)()?a.a[h](e):[]}));return function(){var e=Object(o.e)(t),i=c(n),a=i.indexOf(e);if(a>-1){var u=a===i.length-1?a-1:a+1,h=s(i[u]);d&&d(i[u]),p(h);var v=(Object(r.q)()?y:g).filter((function(e){return e!==i[a]})),w=Object(r.q)()?l.a[m](v):l.a.setCustomColors(v);b(w),i.splice(a,1),f(i)}}};t.a=s},function(e,t,n){(function(t){var o=n(1153).Writable,r=n(1168),i=n(1171),a=t.URL||t.webkitURL||t.mozURL;function l(){if(!(this instanceof l))return new l;o.call(this),this._chunks=[],this._blob=null,this.length=0}r.inherits(l,o),l.prototype._write=function(e,t,n){e instanceof Uint8Array||(e=new Uint8Array(e)),this.length+=e.length,this._chunks.push(e),n()},l.prototype.toBlob=function(e){return e=e||"application/octet-stream",this._blob||(this._blob=new i(this._chunks,{type:e}),this._chunks=[]),this._blob.type!==e&&(this._blob=new i([this._blob],{type:e})),this._blob},l.prototype.toBlobURL=function(e){return a.createObjectURL(this.toBlob(e))},e.exports=l}).call(this,n(123))},function(e,t,n){(function(o){var r;if("function"==typeof fetch&&(void 0!==o&&o.fetch?r=o.fetch:"undefined"!=typeof window&&window.fetch&&(r=window.fetch)),"undefined"==typeof window||void 0===window.document){var i=r||n(1405);i.default&&(i=i.default),t.default=i,e.exports=t.default}}).call(this,n(123))},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(34),n(82),n(27),n(21),n(46),n(77),n(20),n(12),n(84),n(44),n(22),n(94),n(164),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(64),n(11),n(115),n(31),n(13);var o=n(1),r=n(3),i=n(4);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function f(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,b(o.key),o)}}function b(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var g=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"initialize",value:function(e,t){var n=this;this.store=e,this.events={},this.idMentionDataMap={},this.allowedTrailingCharacters=[" ","\n"],this.mentionLookupCallback=this.defaultMentionsSearchCallback,t.addEventListener("annotationChanged",(function(e,t,o){var r=o.imported;e.length&&n.getUserData().length&&("add"===t?r?n.handleAnnotationsAdded(e,r):n.handleAnnotationsAdded(e):"modify"===t?n.handleAnnotationsModified(e):"delete"===t&&n.handleAnnotationsDeleted(e))})),t.addEventListener("annotationIdChanged",(function(e,t,o){n.handleAnnotationIdChanged(e,t,o)}))}},{key:"handleAnnotationsAdded",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];e.forEach((function(e){var n=t.extractMentionDataFromAnnot(e);t.idMentionDataMap[e.Id]=n,o=o.concat(n.mentions)})),o.length&&!n&&this.trigger("mentionChanged",[o,"add"])}},{key:"handleAnnotationsModified",value:function(e){var t,n=this,o=[],r=[],i=[],a=p(e);try{for(a.s();!(t=a.n()).done;){var l=t.value,c=this.idMentionDataMap[l.Id]||{mentions:[],contentWithoutMentions:""},u=this.extractMentionDataFromAnnot(l),s=c.mentions,d=u.mentions;this.idMentionDataMap[l.Id]=u;var f,m=p(d);try{var h=function(){var e=f.value;!s.find((function(t){return n.isSameMention(t,e)}))&&o.push(e)};for(m.s();!(f=m.n()).done;)h()}catch(e){m.e(e)}finally{m.f()}var b,g=p(s);try{var y=function(){var e=b.value;!d.find((function(t){return n.isSameMention(e,t)}))&&i.push(e)};for(g.s();!(b=g.n()).done;)y()}catch(e){g.e(e)}finally{g.f()}s.length&&c.contentWithoutMentions!==u.contentWithoutMentions&&(r=r.concat(d))}}catch(e){a.e(e)}finally{a.f()}o.length&&this.trigger("mentionChanged",[o,"add"]),r.length&&this.trigger("mentionChanged",[r,"modify"]),i.length&&this.trigger("mentionChanged",[i,"delete"])}},{key:"handleAnnotationsDeleted",value:function(e){var t=this,n=[];e.forEach((function(e){t.idMentionDataMap[e.Id]&&(n=n.concat(t.idMentionDataMap[e.Id].mentions),delete t.idMentionDataMap[e.Id])})),n.length&&this.trigger("mentionChanged",[n,"delete"])}},{key:"handleAnnotationIdChanged",value:function(e,t,n){if(this.idMentionDataMap[t]){var o=this.idMentionDataMap[t];delete this.idMentionDataMap[t],this.idMentionDataMap[n]=o,o.mentions&&o.mentions.forEach((function(e){e.annotId=n}))}}},{key:"doesDeltaContainMention",value:function(e){return e.some((function(e){var t;return null===(t=e.insert)||void 0===t?void 0:t.mention}))}},{key:"getFormattedTextFromDeltas",value:function(e){var t=[];return e.forEach((function(e){if(e.insert)if("string"==typeof e.insert)t.push(e.insert);else if(e.insert.mention){var n=e.insert.mention,o="".concat(n.denotationChar,"[").concat(n.value,"](").concat(n.id,")");t.push(o)}})),t.join("")}},{key:"extractMentionDataFromStr",value:function(e){for(var t,n=/@\[(.*?)\]\((.*?)\)/g,o=[],r=e;null!==(t=n.exec(e));){var i=d(t,3),a=i[0],l=i[1],c=i[2];o.push(c),r=r.replace(a.slice(1),l)}return{plainTextValue:r,ids:o}}},{key:"extractMentionDataFromAnnot",value:function(e){var t=this,n=e.getCustomData("trn-mention"),o=this.getUserData(),r=e.getContents(),i={mentions:[],contentWithoutMentions:r};return""===n||(n=JSON.parse(n),o.forEach((function(o){n.ids.includes(o.id)&&t.isValidMention(r,o.value)&&(i.mentions.push(u(u({},o),{},{annotId:e.Id})),i.contentWithoutMentions=i.contentWithoutMentions.replace("@".concat(o.value),""))}))),i}},{key:"isValidMention",value:function(e,t){t="@".concat(t);var n=e.indexOf(t),o=e[n+t.length],r=void 0===o,i=this.getAllowedTrailingCharacters();return Array.isArray(i)&&-1===i.indexOf("\n")&&i.push("\n"),r||"*"===i||i.includes(o)}},{key:"isSameMention",value:function(e,t){for(var n in e)if(e[n]!==t[n])return!1;return!0}},{key:"createMentionReply",value:function(e,t){var n=this.extractMentionDataFromStr(t),r=n.plainTextValue,i=n.ids,a=new window.Core.Annotations.StickyAnnotation;return a.InReplyTo=e.Id,a.X=e.X,a.Y=e.Y,a.PageNumber=e.PageNumber,a.Author=o.a.getCurrentUser(),a.setContents(r||""),a.setCustomData("trn-mention",JSON.stringify({contents:t,ids:i})),e.addReply(a),a}},{key:"setUserData",value:function(e){e=e.map((function(e){return u(u({},e),{},{id:e.id||e.email||e.value})})),this.store.dispatch(r.a.setUserData(e))}},{key:"getUserData",value:function(){return i.a.getUserData(this.store.getState())}},{key:"setAllowedTrailingCharacters",value:function(e){this.allowedTrailingCharacters=e}},{key:"getAllowedTrailingCharacters",value:function(){return this.allowedTrailingCharacters}},{key:"on",value:function(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this}},{key:"off",value:function(e,t){return this.events?(void 0===e&&(this.events={}),this.events[e]?(this.events[e]=t?this.events[e].filter((function(e){return e!==t})):[],this):this):this}},{key:"one",value:function(e,t){var n=this,o=t;return t=function(){n.off(e,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];o.apply(n,i)},this.on(e,t)}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return this.events&&this.events[e]?(1===o.length&&Array.isArray(o[0])&&(o=o[0]),this.events[e].forEach((function(e){e.call.apply(e,[t].concat(l(o)))})),this):this}},{key:"addEventListener",value:function(){this.on.apply(this,arguments)}},{key:"setEventListener",value:function(){this.on.apply(this,arguments)}},{key:"removeEventListener",value:function(){this.off.apply(this,arguments)}},{key:"setMentionLookupCallback",value:function(e){this.mentionLookupCallback=e}},{key:"getMentionLookupCallback",value:function(){return this.mentionLookupCallback}},{key:"defaultMentionsSearchCallback",value:function(e,t){if(0===t.length)return e;var n=[],o=t.toLowerCase();return e.forEach((function(e){var t=e.value.toLowerCase().includes(o),r=e.id&&e.id.toLowerCase().includes(o),i=e.email&&e.email.toLowerCase().includes(o);(t||r||i)&&n.push(e)})),n}}])&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();t.a=new g},function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(306),a=n(154),l=n(43),c=n(324),u=n(2),s=n.n(u),d=(n(1149),n(163));function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var m=function(e){var t=e.onSwipedDown,n=e.onSwipedUp,o=e.closeHandler,i=e.swipeToClose,l=void 0!==i&&i,c=e.children;return l?r.a.createElement(a.a,{onSwipedUp:n||o,onSwipedDown:t||o,preventDefaultTouchmoveEvent:!0},c):c};m.propTypes={onSwipedDown:s.a.func,onSwipedUp:s.a.func,closeHandler:s.a.func,swipeToClose:s.a.bool,children:s.a.node};var h=r.a.forwardRef((function(e,t){var n=p(Object(i.a)(),1)[0],a=Object(d.a)(e.onCloseClick);Object(o.useEffect)((function(){var t=function(t){"Escape"===t.key&&e.isOpen&&a()};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[a,e.isOpen]);var u=e.accessibleLabel?n(e.accessibleLabel):n(e.title);return r.a.createElement(c.a,{locked:e.isOpen,ref:t},r.a.createElement("div",{className:"modal-container",onClick:e.containerOnClick,role:"dialog","aria-modal":"true","aria-label":u},r.a.createElement("div",{className:"wrapper"},r.a.createElement(m,e,r.a.createElement("div",{className:"swipe-indicator"}),e.title?r.a.createElement("div",{className:"header-container"},r.a.createElement("div",{className:"left-header"},r.a.createElement("h2",null,n(e.title)),e.backButtonDataElement&&r.a.createElement(l.a,{className:"back-button",dataElement:e.backButtonDataElement,title:n("action.back"),img:"icon-arrow-back",onClick:e.onBackClick,ariaLabel:n("action.back")})),r.a.createElement(l.a,{className:"close-button",dataElement:e.closeButtonDataElement,title:"action.close",img:"ic_close_black_24px",onClick:a,ariaLabel:n("action.close")})):null),e.children)))}));h.propTypes={title:s.a.string,isOpen:s.a.bool.isRequired,closeButtonDataElement:s.a.string,backButtonDataElement:s.a.string,onBackClick:s.a.func,onCloseClick:s.a.func.isRequired,containerOnClick:s.a.func,swipeToClose:s.a.bool,accessibleLabel:s.a.string,onSwipedUp:s.a.func,onSwipedDown:s.a.func},h.displayName="ModalWrapper";var b=h;t.a=b},function(e,t,n){"use strict";var o,r=n(58),i=n(70),a=n(158).f,l=n(152),c=n(97),u=n(435),s=n(129),d=n(436),p=n(138),f=i("".endsWith),m=i("".slice),h=Math.min,b=d("endsWith");r({target:"String",proto:!0,forced:!!(p||b||(o=a(String.prototype,"endsWith"),!o||o.writable))&&!b},{endsWith:function(e){var t=c(s(this));u(e);var n=arguments.length>1?arguments[1]:void 0,o=t.length,r=void 0===n?o:h(l(n),o),i=c(e);return f?f(t,i,r):m(t,r-i.length,r)===i}})},function(e,t,n){n(669)},function(e,t,n){var o=n(112);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){var o=n(58),r=n(52),i=n(70),a=r.Date,l=i(a.prototype.getTime);o({target:"Date",stat:!0},{now:function(){return l(new a)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(338);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";var o=n(677),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return o.isMemo(e)?a:l[e.$$typeof]||r}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=a;var u=Object.defineProperty,s=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=f(n);r&&r!==m&&e(t,r,o)}var a=s(n);d&&(a=a.concat(d(n)));for(var l=c(t),h=c(n),b=0;b<a.length;++b){var g=a[b];if(!(i[g]||o&&o[g]||h&&h[g]||l&&l[g])){var y=p(n,g);try{u(t,g,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";var o=n(58),r=n(415);o({target:"String",proto:!0,forced:n(416)("strike")},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var o=n(85),r=n(336),i=n(99),a=n(129),l=n(531),c=n(97),u=n(188),s=n(337);r("search",(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:u(t,e);return r?o(r,t,n):new RegExp(t)[e](c(n))},function(e){var o=i(this),r=c(e),a=n(t,o,r);if(a.done)return a.value;var u=o.lastIndex;l(u,0)||(o.lastIndex=0);var d=s(o,r);return l(o.lastIndex,u)||(o.lastIndex=u),null===d?-1:d.index}]}))},function(e,t,n){n(627)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(70),r=n(91),i=o(n(1069)),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).every,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(85),i=n(447),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("fill",(function(e){var t=arguments.length;return r(i,a(this),e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).filter,i=n(1070),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("filter",(function(e){var t=r(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).find,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).findIndex,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).forEach,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",(function(e){r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(277).includes,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(277).indexOf,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(52),r=n(71),i=n(70),a=n(91),l=n(12),c=n(83)("iterator"),u=o.Uint8Array,s=i(l.values),d=i(l.keys),p=i(l.entries),f=a.aTypedArray,m=a.exportTypedArrayMethod,h=u&&u.prototype,b=!r((function(){h[c].call([1])})),g=!!h&&h.values&&h[c]===h.values&&"values"===h.values.name,y=function(){return s(f(this))};m("entries",(function(){return p(f(this))}),b),m("keys",(function(){return d(f(this))}),b),m("values",y,b||!g,{name:"values"}),m(c,y,b||!g,{name:"values"})},function(e,t,n){"use strict";var o=n(91),r=n(70),i=o.aTypedArray,a=o.exportTypedArrayMethod,l=r([].join);a("join",(function(e){return l(i(this),e)}))},function(e,t,n){"use strict";var o=n(91),r=n(177),i=n(515),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return r(i,a(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,n){"use strict";var o=n(91),r=n(126).map,i=n(344),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},function(e,t,n){"use strict";var o=n(91),r=n(442).left,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return r(i(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(442).right,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return r(i(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=r(this).length,n=a(t/2),o=0;o<n;)e=this[o],this[o++]=this[--t],this[t]=e;return this}))},function(e,t,n){"use strict";var o=n(52),r=n(85),i=n(91),a=n(113),l=n(550),c=n(108),u=n(71),s=o.RangeError,d=o.Int8Array,p=d&&d.prototype,f=p&&p.set,m=i.aTypedArray,h=i.exportTypedArrayMethod,b=!u((function(){var e=new Uint8ClampedArray(2);return r(f,e,{length:1,0:3},1),3!==e[1]})),g=b&&i.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));h("set",(function(e){m(this);var t=l(arguments.length>1?arguments[1]:void 0,1),n=c(e);if(b)return r(f,this,n,t);var o=this.length,i=a(n),u=0;if(i+t>o)throw s("Wrong length");for(;u<i;)this[t+u]=n[u++]}),!b||g)},function(e,t,n){"use strict";var o=n(91),r=n(344),i=n(71),a=n(216),l=o.aTypedArray;(0,o.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(l(this),e,t),o=r(this),i=0,c=n.length,u=new o(c);c>i;)u[i]=n[i++];return u}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var o=n(91),r=n(126).some,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(52),r=n(70),i=n(71),a=n(149),l=n(440),c=n(91),u=n(538),s=n(539),d=n(212),p=n(540),f=c.aTypedArray,m=c.exportTypedArrayMethod,h=o.Uint16Array,b=h&&r(h.prototype.sort),g=!(!b||i((function(){b(new h(2),null)}))&&i((function(){b(new h(2),{})}))),y=!!b&&!i((function(){if(d)return d<74;if(u)return u<67;if(s)return!0;if(p)return p<602;var e,t,n=new h(516),o=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,o[e]=e-2*t+3;for(b(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==o[e])return!0}));m("sort",(function(e){return void 0!==e&&a(e),y?b(this,e):l(f(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||g)},function(e,t,n){"use strict";var o=n(91),r=n(152),i=n(190),a=n(344),l=o.aTypedArray;(0,o.exportTypedArrayMethod)("subarray",(function(e,t){var n=l(this),o=n.length,c=i(e,o);return new(a(n))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,r((void 0===t?o:i(t,o))-c))}))},function(e,t,n){"use strict";var o=n(52),r=n(177),i=n(91),a=n(71),l=n(216),c=o.Int8Array,u=i.aTypedArray,s=i.exportTypedArrayMethod,d=[].toLocaleString,p=!!c&&a((function(){d.call(new c(1))}));s("toLocaleString",(function(){return r(d,p?l(u(this)):u(this),l(arguments))}),a((function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var o=n(91).exportTypedArrayMethod,r=n(71),i=n(52),a=n(70),l=i.Uint8Array,c=l&&l.prototype||{},u=[].toString,s=a([].join);r((function(){u.call({})}))&&(u=function(){return s(this)});var d=c.toString!=u;o("toString",u,d)},function(e,t,n){var o=n(70),r=n(129),i=n(97),a=/"/g,l=o("".replace);e.exports=function(e,t,n,o){var c=i(r(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+l(i(o),a,""")+'"'),u+">"+c+"</"+t+">"}},function(e,t,n){var o=n(71);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";n(9),n(10),n(14),n(34),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(3),r=n(15),i=n.n(r),a=n(246),l=n(66),c=n(148),u=n(2),s=n.n(u),d=n(0),p=n.n(d),f=n(6),m=n(154),h=n(4),b=n(256),g=n(78);var y,v=n(23),w=n(5);n(1235);function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var O=[w.a.MENU_OVERLAY,"groupOverlay",w.a.VIEW_CONTROLS_OVERLAY,"searchOverlay","signatureOverlay",w.a.ZOOM_OVERLAY,"zoomOverlay1","zoomOverlay2","redactionOverlay","toolStylePopup",w.a.PAGE_MANIPULATION_OVERLAY,w.a.THUMBNAILS_CONTROL_MANIPULATE_POPUP,w.a.THUMBNAILS_CONTROL_MANIPULATE_POPUP_SMALL,"tabMenu"],T=[w.a.MENU_OVERLAY_BUTTON,w.a.VIEW_CONTROLS_OVERLAY_BUTTON,w.a.ZOOM_OVERLAY_BUTTON,"zoomOverlayButton1","zoomOverlayButton2",w.a.PAGE_MANIPULATION_OVERLAY_BUTTON,w.a.THUMBNAILS_CONTROL_ROTATE_POPUP_TRIGGER,w.a.THUMBNAILS_CONTROL_MANIPULATE_POPUP_TRIGGER,w.a.THUMBNAILS_CONTROL_MANIPULATE_POPUP_SMALL_TRIGGER,"tabTrigger"],S={menu:s.a.oneOf(O).isRequired,trigger:s.a.oneOf(T).isRequired,children:s.a.node.isRequired,onClose:s.a.func,ariaLabel:s.a.string},x=window.isApryseWebViewerWebComponent?null===(y=Object(v.a)())||void 0===y?void 0:y.host.clientHeight:window.innerHeight;function A(e){var t=e.menu,n=e.trigger,r=e.onClose,u=e.children,s=e.ariaLabel,y=Object(f.d)(),C=Object(d.useMemo)((function(){return O.filter((function(e){return e!==t}))}),[t]),T=Object(f.e)((function(e){return h.a.isElementDisabled(e,t)})),S=Object(f.e)((function(e){return h.a.isElementOpen(e,t)})),A=Object(f.e)((function(e){return h.a.isInDesktopOnlyMode(e)})),_=Object(f.e)((function(e){return h.a.getPageManipulationOverlayAlternativePosition(e)})),P=Object(d.useCallback)((function(){y(o.a.closeElements([t])),r&&r()}),[y,t,r]),k=Object(d.useRef)(null);!function(e,t,n){var o=Object(d.useCallback)((function(){return n.current.querySelectorAll(b.a)}),[n]);Object(d.useEffect)((function(){if(e){var n=document.activeElement,r=function(e){if("Tab"===e.key||"Escape"===e.key)return t(),void(n&&n.focus());if("ArrowUp"===e.key||"ArrowDown"===e.key){var r=o();if(0===r.length)return;var i=Object(g.c)(r,document.activeElement);"ArrowUp"===e.key&&-1===i&&(i=0),r[(i+("ArrowUp"===e.key?-1:1)+r.length)%r.length].focus(),document.documentElement.setAttribute("data-tabbing","true")}};return window.addEventListener("keydown",r),function(){return window.removeEventListener("keydown",r)}}}),[o,e,t])}(!T&&S,P,k);var L=Object(d.useCallback)((function(e){var t=Object(v.a)().querySelector('[data-element="'.concat(n,'"]'));(null==t?void 0:t.contains(e.target))||P()}),[P,n]);Object(c.a)(k,L);var M=E(Object(d.useState)((function(){return{left:0,right:"auto",top:"auto"}})),2),j=M[0],I=M[1],R=Object(l.b)(),N=Object(l.c)();if(Object(d.useLayoutEffect)((function(){if(S){y(o.a.closeElements(C));var e=function(){var e;n===w.a.PAGE_MANIPULATION_OVERLAY_BUTTON&&_?e=function(){var e=_,t=R&&N?14:6,n=e.top,o=n+t;if(n>100){var r=k.current.clientHeight;if(n+r>x){var i=x-r-t;o=i>0?i:0,e.top=o}}return e}():(e=Object(a.a)(n,k,R&&N)).maxHeight=x-e.top,I(e)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}}),[C,y,S,N,n,R]),T)return null;var D=i()("Overlay","FlyoutMenu",{mobile:R&&!A,closed:!S});return p.a.createElement(m.a,{onSwipedUp:P,onSwipedDown:P,preventDefaultTouchmoveEvent:!0},p.a.createElement("div",{className:D,"data-element":t,style:!R||A?j:void 0,ref:k,role:"listbox","aria-label":s},R&&!A&&p.a.createElement("div",{className:"swipe-indicator"}),u))}A.propTypes=S;t.a=A},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"h",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"q",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"k",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"f",(function(){return g})),n.d(t,"n",(function(){return y})),n.d(t,"p",(function(){return v})),n.d(t,"o",(function(){return w})),n.d(t,"e",(function(){return E})),n.d(t,"m",(function(){return C})),n.d(t,"j",(function(){return O})),n.d(t,"i",(function(){return T})),n.d(t,"c",(function(){return x})),n.d(t,"s",(function(){return A})),n.d(t,"l",(function(){return _}));n(9),n(10),n(14),n(32),n(46),n(12),n(44),n(33),n(30),n(24),n(8),n(17),n(64),n(11),n(182),n(13);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=window.Core.Scale,a={METRIC:"metric",IMPERIAL:"imperial"},l=[["1:10",new i([[1,"mm"],[10,"mm"]])],["1:20",new i([[1,"mm"],[20,"mm"]])],["1:50",new i([[1,"mm"],[50,"mm"]])],["1:100",new i([[1,"mm"],[100,"mm"]])],["1:200",new i([[1,"mm"],[200,"mm"]])],["1:500",new i([[1,"mm"],[500,"mm"]])],["1:1000",new i([[1,"mm"],[1e3,"mm"]])]],c=[['1/16"=1\'-0"',new i([[1/16,"in"],[1,"ft-in"]])],['3/32"=1\'-0"',new i([[3/32,"in"],[1,"ft-in"]])],['1/8"=1\'-0"',new i([[1/8,"in"],[1,"ft-in"]])],['3/16"=1\'-0"',new i([[3/16,"in"],[1,"ft-in"]])],['1/4"=1\'-0"',new i([[1/4,"in"],[1,"ft-in"]])],['3/8"=1\'-0"',new i([[3/8,"in"],[1,"ft-in"]])],['1/2"=1\'-0"',new i([[.5,"in"],[1,"ft-in"]])],['3/4"=1\'-0"',new i([[3/4,"in"],[1,"ft-in"]])],['1"=1\'-0"',new i([[1,"in"],[1,"ft-in"]])]],u=function(){return r(r({},a.METRIC,l),a.IMPERIAL,c)},s=[["1/8",.125],["1/16",.0625],["1/32",.03125],["1/64",.015625]],d={DECIMAL:"decimal",FRACTIONAL:"fractional"},p=r(r({},d.DECIMAL,[["0.1",.1],["0.01",.01],["0.001",.001],["0.0001",1e-4]]),d.FRACTIONAL,s),f={.125:"1/8",.0625:"1/16",.03125:"1/32",.015625:"1/64"},m=/^(\d+)?(\.)?(\d+)?$/,h=/^((\d+) )?((\d+)\/)?(\d+)"$/,b=/^((\d+)'-)?((\d+) )?((\d+)\/)?(\d+)"$/,g=/^((\d+)ft-)?(((\d+).)?(\d+))in$/,y=function(e){var t=e.match(g),n=0;return n+=t[2]?Number(t[2]):0,t[3]&&Number(t[3])&&(n+=Number(t[3])/12),n},v=function(e){var t=e.match(h),n=0;return n+=t[2]?Number(t[2]):0,t[5]&&Number(t[5])&&(t[4]&&Number(t[4])?n+=Number(t[4])/Number(t[5]):n+=Number(t[5])),n},w=function(e){var t=e.match(b),n=0;return n+=t[2]?Number(t[2]):0,n+=t[4]?Number(t[4])/12:0,t[7]&&Number(t[7])&&(t[6]&&Number(t[6])?n+=Number(t[6])/Number(t[7])/12:n+=Number(t[7])/12),n},E=["in","ft-in"],C=["mm","cm","m","km"],O=function(e){return s.map((function(e){return e[0]})).includes(e)||s.map((function(e){return e[1]})).includes(e)},T={in:'eg. 1 1/2"',"ft-in":"eg. 1'-1 1/2\"","ft-in decimal":"eg. 1ft-10.5in"},S={mm:.1,cm:1,m:100,km:1e5,mi:160394,yd:91.44,ft:30.48,in:2.54,"ft'":30.48,'in"':2.54,pt:.0352778,"ft-in":30.48},x=function(e,t,n){return e*S[t]/S[n]},A=r(r(r(r(r(r(r(r(r({},c[0][0],s[1]),c[1][0],s[2]),c[2][0],s[0]),c[3][0],s[1]),c[4][0],s[0]),c[5][0],s[0]),c[6][0],s[0]),c[7][0],s[0]),c[8][0],s[0]),_=new i({pageScale:{value:1,unit:"in"},worldScale:{value:1,unit:"in"}})},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){"use strict";n(27),n(8);var o=n(1);t.a=function(e){var t={};return["FillColor","StrokeColor","TextColor","Opacity","StrokeThickness","FontSize","Precision","Scale","Style"].forEach((function(n){var o=e[n];null!=o&&(t[n]=e[n])})),"highlight"!==e.elementName||o.a.isBlendModeSupported(e.BlendMode)||(t.Opacity=null),e instanceof window.Core.Annotations.WidgetAnnotation&&(t.Opacity=null),t}},function(e,t,n){"use strict";t.a={THUMBNAIL:"thumbnail",CHECKBOX:"checkbox"}},function(e,t,n){var o=n(52),r=n(85),i=n(100),a=n(239),l=n(188),c=n(500),u=n(83),s=o.TypeError,d=u("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,o=l(e,d);if(o){if(void 0===t&&(t="default"),n=r(o,e,t),!i(n)||a(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},function(e,t,n){var o=n(52),r=n(424),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},function(e,t,n){var o=n(52),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var o={};o[n(83)("toStringTag")]="z",e.exports="[object z]"===String(o)},function(e,t,n){var o=n(89),r=n(502),i=n(104),a=n(99),l=n(139),c=n(279);t.f=o&&!r?Object.defineProperties:function(e,t){a(e);for(var n,o=l(t),r=c(t),u=r.length,s=0;u>s;)i.f(e,n=r[s++],o[n]);return e}},function(e,t,n){var o=n(187),r=n(139),i=n(189).f,a=n(280),l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"Window"==o(e)?function(e){try{return i(e)}catch(e){return a(l)}}(e):i(r(e))}},function(e,t,n){"use strict";var o=n(58),r=n(85),i=n(138),a=n(243),l=n(87),c=n(512),u=n(244),s=n(218),d=n(191),p=n(159),f=n(112),m=n(83),h=n(283),b=n(513),g=a.PROPER,y=a.CONFIGURABLE,v=b.IteratorPrototype,w=b.BUGGY_SAFARI_ITERATORS,E=m("iterator"),C=function(){return this};e.exports=function(e,t,n,a,m,b,O){c(n,t,a);var T,S,x,A=function(e){if(e===m&&M)return M;if(!w&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},_=t+" Iterator",P=!1,k=e.prototype,L=k[E]||k["@@iterator"]||m&&k[m],M=!w&&L||A(m),j="Array"==t&&k.entries||L;if(j&&(T=u(j.call(new e)))!==Object.prototype&&T.next&&(i||u(T)===v||(s?s(T,v):l(T[E])||f(T,E,C)),d(T,_,!0,!0),i&&(h[_]=C)),g&&"values"==m&&L&&"values"!==L.name&&(!i&&y?p(k,"name","values"):(P=!0,M=function(){return r(L,this)})),m)if(S={values:A("values"),keys:b?M:A("keys"),entries:A("entries")},O)for(x in S)(w||P||!(x in k))&&f(k,x,S[x]);else o({target:t,proto:!0,forced:w||P},S);return i&&!O||k[E]===M||f(k,E,M,{name:m}),h[t]=M,S}},function(e,t,n){var o=n(52),r=n(331),i=n(241),a=o.TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not a constructor")}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var o=n(83),r=n(283),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){"use strict";var o=n(99);e.exports=function(){var e=o(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var o=n(71),r=n(52).RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),l=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:a,UNSUPPORTED_Y:i}},function(e,t,n){var o=n(52),r=n(335),i=o.TypeError;e.exports=function(e){if(r(e))throw i("The method doesn't accept regular expressions");return e}},function(e,t,n){var o=n(83)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var o=n(70),r=n(151),i=n(97),a=n(129),l=o("".charAt),c=o("".charCodeAt),u=o("".slice),s=function(e){return function(t,n){var o,s,d=i(a(t)),p=r(n),f=d.length;return p<0||p>=f?e?"":void 0:(o=c(d,p))<55296||o>56319||p+1===f||(s=c(d,p+1))<56320||s>57343?e?l(d,p):o:e?u(d,p,p+2):s-56320+(o-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!0)}},function(e,t,n){"use strict";var o=n(437).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){var o=n(85),r=n(95),i=n(166),a=n(433),l=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in l||r(e,"flags")||!i(l,e)?t:o(a,e)}},function(e,t,n){var o=n(280),r=Math.floor,i=function(e,t){var n=e.length,c=r(n/2);return n<8?a(e,t):l(e,i(o(e,0,c),t),i(o(e,c),t),t)},a=function(e,t){for(var n,o,r=e.length,i=1;i<r;){for(o=i,n=e[i];o&&t(e[o-1],n)>0;)e[o]=e[--o];o!==i++&&(e[o]=n)}return e},l=function(e,t,n,o){for(var r=t.length,i=n.length,a=0,l=0;a<r||l<i;)e[a+l]=a<r&&l<i?o(t[a],n[l])<=0?t[a++]:n[l++]:a<r?t[a++]:n[l++];return e};e.exports=i},function(e,t,n){"use strict";
|
|
22
|
+
var o=n(1154),r=n(1155),i=n(560);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=p(e,t);return e}(e,t,n,o):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|m(t,n),r=(e=l(e,o)).write(t,n);r!==o&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return 0===(e=l(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?l(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(s(t),e=l(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=l(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(o)return H(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function b(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,o)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,o,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,o,r){var i,a=1,l=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,l/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var s=-1;for(i=n;i<l;i++)if(u(e,i)===u(t,-1===s?0:i-s)){if(-1===s&&(s=i),i-s+1===c)return s*a}else-1!==s&&(i-=i-s),s=-1}else for(n+c>l&&(n=l-c),i=n;i>=0;i--){for(var d=!0,p=0;p<c;p++)if(u(e,i+p)!==u(t,p)){d=!1;break}if(d)return i}return-1}function v(e,t,n,o){n=Number(n)||0;var r=e.length-n;o?(o=Number(o))>r&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a<o;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function w(e,t,n,o){return U(H(t,e.length-n),e,n,o)}function E(e,t,n,o){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function C(e,t,n,o){return E(e,t,n,o)}function O(e,t,n,o){return U(V(t),e,n,o)}function T(e,t,n,o){return U(function(e,t){for(var n,o,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function S(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r<n;){var i,a,l,c,u=e[r],s=null,d=u>239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(s=u);break;case 2:128==(192&(i=e[r+1]))&&(c=(31&u)<<6|63&i)>127&&(s=c);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(s=c);break;case 4:i=e[r+1],a=e[r+2],l=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&c<1114112&&(s=c)}null===s?(s=65533,d=1):s>65535&&(s-=65536,o.push(s>>>10&1023|55296),s=56320|1023&s),o.push(s),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,o){return s(t),t<=0?l(e,t):void 0!==n?"string"==typeof o?l(e,t).fill(n,o):l(e,t).fill(n):l(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,r),r+=a.length}return o},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):h.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,o,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),u=this.slice(o,r),s=e.slice(t,n),d=0;d<l;++d)if(u[d]!==s[d]){i=u[d],a=s[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(127&e[r]);return o}function _(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(e[r]);return o}function P(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var r="",i=t;i<n;++i)r+=B(e[i]);return r}function k(e,t,n){for(var o=e.slice(t,n),r="",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}function L(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,o,r,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function j(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r<i;++r)e[n+r]=(t&255<<8*(o?r:1-r))>>>8*(o?r:1-r)}function I(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r<i;++r)e[n+r]=t>>>8*(o?r:3-r)&255}function R(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,o,i){return i||R(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function D(e,t,n,o,i){return i||R(e,0,n,8),r.write(e,t,n,o,52,8),n+8}c.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var o=this[e+--t],r=1;t>0&&(r*=256);)o+=this[e+--t]*r;return o},c.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i<n&&(r*=256);)this[t+i]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var i=0,a=1,l=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},c.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var r,i=o-n;if(this===e&&n<t&&t<o)for(r=i-1;r>=0;--r)e[r+t]=this[r+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:H(new c(e,o).toString()),l=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var n;t=t||1/0;for(var o=e.length,r=null,i=[],a=0;a<o;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,o){for(var r=0;r<o&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(123))},function(e,t,n){function o(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===o(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===o(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===o(e)},t.isError=function(e){return"[object Error]"===o(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(289).Buffer.isBuffer},function(e,t,n){"use strict";n(9),n(10),n(34),n(27),n(12),n(94),n(307),n(308),n(309),n(26),n(209),n(40),n(24),n(41),n(42),n(8),n(56),n(11),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(31),n(13);var o=n(45),r=n(1);function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function l(n,o,r,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return a(s,"_invoke",function(n,o,r){var i,a,l,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,c}};function f(n,o){for(a=n,l=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(a=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,a=0))}if(r||n>1)return c;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),a=s,l=m;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(u=2,i){if(a||(r="next"),t=i[r]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(o,p))!==c)break}catch(t){i=e,a=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var c={};function u(){}function s(){}function d(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(a(t={},o,(function(){return this})),t),f=d.prototype=u.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,r,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=d,a(f,"constructor",d),a(d,"constructor",s),s.displayName="GeneratorFunction",a(d,r,"GeneratorFunction"),a(f),a(f,r,"Generator"),a(f,o,(function(){return this})),a(f,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:l,m:m}})()}function a(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(a=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){a(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function l(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}t.a=function(){var e,t=(e=i().m((function e(t){var n,a,l,c,u;return i().w((function(e){for(;;)switch(e.n){case 0:if(n=r.a.getDocumentViewer(),a=n.getDocument(),l=n.getAnnotationManager(),c=a.getPageCount(),!t.some((function(e){return e<1||e>c}))){e.n=1;break}return e.a(2,Promise.reject("Page out of range, please enter an array of numbers between 1 and ".concat(c)));case 1:return u=new Promise((function(e,n){try{var r=new Map;t.forEach((function(e){return r.set(e,!0)}));var i=l.getAnnotationsList().filter((function(e){return r.has(e.PageNumber)}));l.exportAnnotations({annotationList:i,widgets:!0,links:!0,fields:!0}).then((function(r){a.extractPages(t,r).then((function(t){var n=new Uint8Array(t),r="".concat(a.getFilename(),".pdf")||!1,i=null;i=o.e?new Blob([n],{type:"application/pdf"}):new File([n],r,{type:"application/pdf"}),e(i)})).catch((function(e){n(e)}))}))}catch(e){n(e)}})),e.a(2,u)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){l(i,o,r,a,c,"next",e)}function c(e){l(i,o,r,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()},function(e,t,n){"use strict";let o,r,i=n(221);class a extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let o=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new o(new r,this,e).stringify()}}a.registerLazyResult=e=>{o=e},a.registerProcessor=e=>{r=e},e.exports=a,a.default=a,i.registerRoot(a)},function(e,t,n){"use strict";function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(362);function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(o.a)(e,t)}},function(e,t,n){"use strict";var o=n(23);t.a=function(){var e;null===(e=Object(o.a)().querySelector("#file-picker"))||void 0===e||e.click()}},function(e,t,n){"use strict";var o=n(3),r=n(613),i=n.n(r);n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(12),n(33),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(11),n(31),n(13);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e,t,n,o){return e&&0!==e.length?(e.forEach((function(e,r){var i=d(e,"".concat(t,"-").concat(r),n||e.locked);e.children&&e.children.length>0&&(i.children=s(e.children,"".concat(i.id),i.disabled,[])),o.push(i)})),o):o},d=function(e,t,n){return c(c({},e),{},{children:[],prevVisibleState:!!e.visible,visible:!!e.visible,id:t,disabled:!!n,isLabel:void 0===e.visible&&void 0===e.obj})};t.a=function(e,t,n){var r,a;if(!i()(e,t)){var l=(a=[],(r=e)&&r.forEach((function(e,t){var n=d(e,"".concat(t),e.locked);a.push(n),n.children=s(e.children,"".concat(n.id),n.disabled,[])})),a);n(o.a.setLayers(l))}}},function(e,t,n){"use strict";n(35);var o=n(1);t.a=function(e){if("CropPage"===e||"SnippingTool"===e)return!1;var t=o.a.getTool(e);return!(null==t||!t.defaults)&&Object.keys(t.defaults).length>0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(1),r=n(23);function i(e){var t=o.a.getDisplayModeObject(),n=o.a.getScrollViewElement(),i=o.a.getViewerElement(),a=Object(r.a)().querySelector('[aria-label="Document Content"]'),l=window.isApryseWebViewerWebComponent,c=a?a.clientWidth:window.innerWidth,u=a?a.clientHeight:window.innerHeight,s=n.scrollLeft,d=i.offsetLeft;if(l){var p=Object(r.c)().getBoundingClientRect();c=p.width,u=p.height,s=n.scrollLeft,d=i.offsetLeft}var f=[];f[0]=t.windowToPageNoRotate({x:Math.max(s,d),y:Math.max(n.scrollTop,0)},e),f[1]=t.windowToPageNoRotate({x:Math.min(c,d+i.offsetWidth)+s,y:u+n.scrollTop},e);var m=Math.min(f[0].x,f[1].x),h=Math.min(f[0].y,f[1].y),b=Math.max(f[0].x,f[1].x),g=Math.max(f[0].y,f[1].y);return new window.Core.Math.Rect(m,h,b,g)}function a(e,t){if(e&&t){var n=e.x2-e.x1,o=e.y2-e.y1;return n>=t.width&&o>=t.height}}},function(e,t,n){"use strict";n(27),n(35),n(8),n(111),n(31);var o=n(1),r=n(153),i=n(53),a=n(3);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=l(t,n);o.a.clearSelection(n),o.a.addAnnotations(r,n),o.a.selectAnnotations(r,n),e(a.a.closeElement("textPopup"))};var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=o.a.getSelectedTextQuads(t);return Object.keys(r).forEach((function(i){i=parseInt(i,10);var a=c(e,i,r);!window.Core.Tools.TextAnnotationCreateTool.AUTO_SET_TEXT||a instanceof window.Core.Annotations.RedactionAnnotation||a.setContents(o.a.getSelectedText(t)),a.setCustomData("trn-annot-preview",o.a.getSelectedText(t)),a instanceof window.Core.Annotations.RedactionAnnotation&&(s(a),a.IsText=!0),u(a),n.push(a)})),n},c=function(e,t,n){var r=new e;return r.PageNumber=t,r.Quads=n[t],r.Author=o.a.getCurrentUser(),r},u=function(e){var t=Object(i.h)(e);if(t){var n=Object(r.a)(t);Object.keys(n).forEach((function(t){e[t]=n[t]}))}},s=function(e){var t=o.a.getToolModeMap().AnnotationCreateRedaction.defaults,n=void 0===t?{}:t;if(n){if(n.StrokeColor){var r=n.StrokeColor;e.StrokeColor=new window.Core.Annotations.Color(r.R,r.G,r.B,r.A)}if(n.StrokeThickness&&(e.StrokeThickness=n.StrokeThickness),n.FillColor){var i=n.FillColor;e.FillColor=new window.Core.Annotations.Color(i.R,i.G,i.B,i.A)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(23),r=function(){if(window.isApryseWebViewerWebComponent){var e=Object(o.a)().host,t=e.getBoundingClientRect();return{scaleX:t.width/e.offsetWidth,scaleY:t.height/e.offsetHeight}}return{scaleX:1,scaleY:1}}},function(e){e.exports=JSON.parse('{"name":"webviewer-ui","author":"Apryse Software Inc.","version":"11.9.1","description":"WebViewer UI built in React","main":"src/index.js","scripts":{"start":"npx babel-node ./dev-server.js","download-webviewer":"npx @pdftron/webviewer-downloader --core-only --path ./lib","postinstall":"cp ./node_modules/@storybook/react-dom-shim/dist/react-16.js ./node_modules/@storybook/react-dom-shim/dist/react-18.js && cp ./node_modules/@storybook/react-dom-shim/dist/react-16.mjs ./node_modules/@storybook/react-dom-shim/dist/react-18.mjs","lint":"eslint ./src --fix --ext .js,.jsx,.ts,.tsx","lint:ci":"eslint ./src --quiet --ext .js,.jsx,.ts,.tsx","clean":"rimraf build","bundle":"webpack --progress --config ./webpack.config.prod.js","build":"npm run clean && npm run bundle","translation":"node ./scripts/translate-i18n-files.js","storybook":"storybook dev -p 6006 --ci","build-storybook":"storybook build","jest":"npx jest","jest:watch":"jest --watch","lint:styles":"stylelint \'**/*.scss\'"},"dependencies":{"autolinker":"^3.11.1","blob-stream":"^0.1.3","canvas2pdf":"git+https://github.com/PDFTron/canvas2pdf.git","classnames":"^2.2.6","dayjs":"^1.8.19","dompurify":"^3.2.6","file-saver":"git+https://github.com/ZhijieZhang/FileSaver.js.git","hotkeys-js":"^3.10.0","html2canvas":"git+https://github.com/PDFTron/html2canvas.git#pdftron-alpha10","i18next":"^19.0.3","i18next-http-backend":"^1.0.16","quill-mention":"^6.1.1","react":"^17.0.0","react-color":"^2.19.3","react-dnd":"^14.0.2","react-dnd-html5-backend":"^14.0.0","react-dnd-touch-backend":"^16.0.0","react-dom":"^17.0.0","react-draggable":"^4.3.1","react-i18next":"^11.3.1","react-measure":"^2.3.0","react-onclickoutside":"^6.9.0","react-quill-new":"^3.4.6","react-redux":"^7.1.3","react-select":"^5.8.1","react-shadow-dom-retarget-events":"1.1.0","react-swipeable":"^5.5.1","react-virtualized":"^9.21.2","react-virtuoso":"^2.8.1","redux":"^4.0.5","redux-persist":"^6.0.0","redux-thunk":"^2.3.0","reselect":"^5.1.1","uuid":"^9.0.0"},"devDependencies":{"@babel/cli":"^7.8.3","@babel/core":"^7.8.3","@babel/eslint-parser":"^7.16.0","@babel/node":"^7.8.3","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-export-namespace-from":"^7.8.3","@babel/plugin-proposal-function-sent":"^7.8.3","@babel/plugin-proposal-numeric-separator":"^7.8.3","@babel/plugin-proposal-optional-chaining":"^7.8.3","@babel/plugin-proposal-throw-expressions":"^7.8.3","@babel/preset-env":"^7.8.3","@babel/preset-react":"^7.8.3","@chromatic-com/storybook":"^4.1.0","@google-cloud/translate":"^5.1.4","@hot-loader/react-dom":"^17.0.2","@pdftron/webviewer-downloader":"^1.4.2","@pdftron/webviewer-reading-mode":"1.0.8","@reduxjs/toolkit":"^1.8.1","@storybook/addon-a11y":"^9.1.1","@storybook/addon-docs":"^9.1.1","@storybook/addon-links":"^9.1.1","@storybook/addon-themes":"^9.1.1","@storybook/addon-webpack5-compiler-swc":"^3.0.0","@storybook/react-webpack5":"^9.1.1","@testing-library/jest-dom":"^5.11.4","@testing-library/react":"^10.4.9","@testing-library/react-hooks":"^5.0.3","@testing-library/user-event":"^12.7.3","babel-jest":"^29.5","babel-loader":"^8.0.6","body-parser":"^1.19.0","buffer":"^6.0.3","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.1.1","core-js":"^3.6.4","css-loader":"^3.4.2","cssnano":"^4.1.11","eslint":"^8.57.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-custom":"file:eslint-plugin-custom","eslint-plugin-cypress":"^3.5.0","eslint-plugin-import":"^2.30.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-no-unsanitized":"^4.1.0","eslint-plugin-react":"^7.35.2","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-storybook":"9.1.1","express":"^4.17.1","file-loader":"^5.0.2","identity-obj-proxy":"^3.0.0","ip":"^1.1.5","jest":"29.5","jest-canvas-mock":"^2.5.1","jest-environment-jsdom":"^29.5.0","mini-css-extract-plugin":"0.8.0","node-polyfill-webpack-plugin":"^3.0.0","open":"^8.4.0","postcss":"^8.4.38","postcss-import":"^12.0.1","postcss-loader":"^3.0.0","postcss-preset-env":"^6.7.0","process":"^0.11.10","prop-types":"^15.7.2","raw-loader":"^4.0.0","react-hot-loader":"^4.13.1","react-is":"^16.13.1","redux-devtools-extension":"^2.13.8","redux-logger":"^3.0.6","regenerator-runtime":"^0.13.9","rimraf":"^3.0.0","sass":"^1.34.0","sass-loader":"^8.0.2","storybook":"^9.1.1","storybook-addon-pseudo-states":"^9.1.1","storybook-addon-rtl":"^2.0.0","stream-browserify":"^3.0.0","style-loader":"^1.1.3","stylelint":"^13.13.1","svg-inline-loader":"^0.8.0","util":"^0.12.5","webpack":"^5.91.0","webpack-bundle-analyzer":"^3.6.0","webpack-cli":"^5.1.4","webpack-dev-middleware":"^7.2.1","webpack-hot-middleware":"^2.26.1"},"lint-staged":{"./src/**/*.{js,ts}":"eslint --fix","./src/**/*.scss":"npm run lint:styles"}}')},function(e,t,n){"use strict";var o=n(55);t.a={on:function(){o.g.on.apply(o.g,arguments)},off:function(){o.g.off.apply(o.g,arguments)},restoreHotkeys:function(){o.g.restoreHotkeys()},Keys:o.b}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));n(38),n(27),n(18),n(8),n(19),n(31);var o=n(79),r=n(3),i=n(1),a=n(7),l=function(){},c=function(e){var t,n=e.zoomOptionsList,i=e.isSpreadsheetEditorMode,c=void 0!==i&&i,s=e.isOfficeEditorMode,d=void 0!==s&&s,p=e.dispatch,f=e.size,m=void 0===f?0:f,h=e.onZoomChanged,b=u(p,m,void 0===h?l:h),g=b.onMarqueeZoom,y=b.onZoomInClicked,v=b.onZoomOutClicked,w=b.onClickZoomLevelOption,E={icon:"icon-header-zoom-fit-to-width",label:"action.fitToWidth",title:"action.fitToWidth",dataElement:"fitToWidthButton",onClick:function(){Object(o.b)(),p(r.a.closeElement("zoom-containerFlyout"))}},C={icon:"icon-header-zoom-fit-to-page",label:"action.fitToPage",title:"action.fitToPage",dataElement:"fitToPageButton",onClick:function(){Object(o.a)(),p(r.a.closeElement("zoom-containerFlyout"))},type:"customButton"},O={dataElement:"zoom-button-marquee-zoom",icon:"icon-header-zoom-marquee",toolName:"MarqueeZoomTool",label:"tool.Marquee",onClick:g,className:"marqueeButton"},T={icon:"icon-header-zoom-in-line",label:"action.zoomIn",dataElement:"zoomInButton",onClick:y,className:"zoomInButton"},S={icon:"icon-header-zoom-out-line",label:"action.zoomOut",dataElement:"zoomOutButton",onClick:v,className:"zoomOutButton"},x=[];if(n.forEach((function(e){var t={label:"".concat(100*e,"%"),onClick:function(){w(e)},dataElement:"zoom-button-".concat(100*e)};c&&e<=2&&x.push(t),c||x.push(t)})),0===m){t=(t=c?[]:[E,C,"divider"]).concat(x),c||d||(t.push("divider"),t.push(O))}else if(1===m){var A={dataElement:a.i.ZOOM_OPTIONS_BUTTON,children:x,type:a.i.ZOOM_OPTIONS_BUTTON};t=[A,T,S,E,C,O],c&&(t=[A,T,S]),d&&(t=[A,T,S,E,C])}return t},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,a=function(n){Object(o.f)(n),(0===t||1===t)&&e(r.a.closeElement("zoom-containerFlyout"))},c=function(){e(r.a.closeElement("zoom-containerFlyout"))},u=function(){return Math.ceil(100*i.a.getZoom()).toString()},s=function(){Object(o.d)(),n(u())},d=function(){Object(o.e)(),n(u())};return{onZoomInClicked:s,onZoomOutClicked:d,onMarqueeZoom:c,onClickZoomLevelOption:a}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return Z}));n(9),n(10),n(14),n(34),n(27),n(21),n(20),n(12),n(22),n(18),n(26),n(16),n(59),n(8),n(17),n(19),n(11),n(31),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(3),l=n(4),c=n(1),u=(n(38),n(46),n(30),n(646),n(35),n(64),n(15)),s=n.n(u),d=n(306),p=n(2),f=n.n(p),m=n(72),h=function(e){var t=e.yOffset,n=e.height,o=e.xOffset,i=e.width,a=e.unit,l=e.autoTrim,c=e.supportedUnits,u=e.autoTrimOptions,s=e.onDimensionChange,p=e.onUnitChange,f=e.autoTrimActive,h=e.setAutoTrimActive,b=e.onAutoTrimChange,g=Object(d.a)().t;return r.a.createElement("div",{className:"crop-dimensions"},r.a.createElement("div",{className:"crop-dimensions-input-container"},r.a.createElement("label",{className:"crop-dimensions-input"},r.a.createElement("span",{className:"dimensions-settings-title"},"W"),r.a.createElement("input",{name:"width","data-testid":"width-input",type:"number",min:"0",step:"any",className:"dimension-input-field",onChange:function(e){s(e.target.value,e.target.name),h(!1)},onKeyUp:function(e){s(e.target.value,e.target.name),h(!1)},value:i})),r.a.createElement("label",{className:"crop-dimensions-input"},r.a.createElement("span",{className:"dimensions-settings-title"},"H"),r.a.createElement("input",{name:"height","data-testid":"height-input",type:"number",min:"0",step:"any",className:"dimension-input-field",onChange:function(e){s(e.target.value,e.target.name),h(!1)},onKeyUp:function(e){s(e.target.value,e.target.name),h(!1)},value:n})),r.a.createElement("label",{className:"crop-dimensions-input"},r.a.createElement("span",{className:"dimensions-settings-title"},"X"),r.a.createElement("input",{name:"xOffset","data-testid":"xOffset-input",type:"number",min:"0",step:"any",className:"dimension-input-field",onChange:function(e){s(e.target.value,e.target.name),h(!1)},onKeyUp:function(e){s(e.target.value,e.target.name),h(!1)},value:o})),r.a.createElement("label",{className:"crop-dimensions-input"},r.a.createElement("span",{className:"dimensions-settings-title"},"Y"),r.a.createElement("input",{name:"yOffset","data-testid":"yOffset-input",type:"number",min:"0",step:"any",className:"dimension-input-field",onChange:function(e){s(e.target.value,e.target.name),h(!1)},onKeyUp:function(e){s(e.target.value,e.target.name),h(!1)},value:t}))),r.a.createElement("div",{className:"crop-dimensions-settings"},r.a.createElement("div",{className:"dimensions-settings-title-container"},r.a.createElement("label",{id:"crop-dimensions-unit-label",htmlFor:"document-crop-unit-dropdown",className:"dimensions-settings-title"},g("cropPopUp.dimensionInput.unitOfMeasurement"))),r.a.createElement(m.a,{id:"document-crop-unit-dropdown",labelledById:"crop-dimensions-unit-label",className:"document-crop-dropdown",ariaLabel:g("cropPopUp.dimensionInput.unitOfMeasurement"),items:Object.keys(c),currentSelectionKey:a,onClickItem:p})),r.a.createElement("div",{className:"crop-dimensions-settings"},r.a.createElement("div",{className:"dimensions-settings-title-container"},r.a.createElement("label",{id:"crop-auto-trim-label",htmlFor:"document-crop-auto-trim-dropdown",className:"dimensions-settings-title"},g("cropPopUp.dimensionInput.autoTrim"))),r.a.createElement(m.a,{id:"document-crop-auto-trim-dropdown",labelledById:"crop-auto-trim-label",className:"document-crop-dropdown",ariaLabel:g("cropPopUp.dimensionInput.autoTrim"),items:u,currentSelectionKey:l&&f?l:u[0],onClickItem:b})))},b=n(5),g=n(43),y=(n(454),n(106)),v=n(481),w=function(e){var t=e.cropMode,n=e.onCropModeChange,o=e.loadedDocumentPageCount,i=e.selectedPages,a=e.handlePageNumbersChanged,l=e.handlePageNumberError,c=Object(d.a)().t;return r.a.createElement(r.a.Fragment,null,r.a.createElement(y.a,{label:c("cropPopUp.allPages"),name:"All","data-element":"allPagesCropRadioButton",onChange:function(){return n("ALL_PAGES")},checked:"ALL_PAGES"===t,radio:!0}),r.a.createElement(y.a,{label:c("cropPopUp.singlePage"),name:"SINGLE_PAGE","data-element":"singlePageCropRadioButton",onChange:function(){return n("SINGLE_PAGE")},checked:"SINGLE_PAGE"===t,radio:!0}),r.a.createElement("div",{className:"multi-page-crop-wrapper"},r.a.createElement(y.a,{label:c("cropPopUp.multiPage"),name:"MULTI_PAGE","data-element":"multiPageCropRadioButton",onChange:function(){return n("MULTI_PAGE")},checked:"MULTI_PAGE"===t,radio:!0}),"MULTI_PAGE"===t&&r.a.createElement("span",{className:"multi-page-crop-example"},"- ",c("option.thumbnailPanel.multiSelectPagesExample"))),"MULTI_PAGE"===t&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"document-crop-page-input-container"},r.a.createElement(v.a,{"data-element":"multiPageCropPageNumberInput",selectedPageNumbers:i,pageCount:o,onSelectedPageNumbersChange:a,onBlurHandler:a,onError:l})),r.a.createElement("div",{className:"section extra-space-section"})))},E=w;w.propTypes={cropMode:f.a.string.isRequired,onCropModeChange:f.a.func.isRequired,loadedDocumentPageCount:f.a.number,selectedPages:f.a.array,handlePageNumbersChanged:f.a.func.isRequired,handlePageNumberError:f.a.func.isRequired};var C=n(121);function O(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var S=function(e){var t=e.className,n=e.cropMode,o=e.onCropModeChange,i=e.loadedDocumentPageCount,a=e.selectedPages,l=e.handlePageNumbersChanged,c=e.handlePageNumberError,u=e.hasPageNumberError,p=e.handleApply,f=e.handleCancel,m=e.isCropping,y=e.yOffset,v=e.height,w=e.xOffset,T=e.width,S=e.unit,x=e.autoTrim,A=e.supportedUnits,_=e.onDimensionChange,P=e.onUnitChange,k=e.autoTrimActive,L=e.setAutoTrimActive,M=e.onAutoTrimChange,j=e.autoTrimDimensions,I=e.isCropDimensionsContainerActive,R=e.cropAnnotation,N=e.toggleCropDimensions,D=Object(d.a)().t;return r.a.createElement("div",{className:t,"data-element":b.a.DOCUMENT_CROP_POPUP},r.a.createElement("div",{className:"document-crop-mobile-section"},r.a.createElement("div",{className:"document-crop-mobile-container"},r.a.createElement(C.a,{header:D("cropPopUp.title"),isInitiallyExpanded:!1},r.a.createElement("div",{className:"document-crop-section"},r.a.createElement(E,{cropMode:n,onCropModeChange:o,loadedDocumentPageCount:i,selectedPages:a,handlePageNumbersChanged:l,handlePageNumberError:c}))),r.a.createElement(C.a,{className:s()({"crop-inactive":!R}),headingLevel:2,header:D("cropPopUp.cropDimensions"),isInitiallyExpanded:!1,isExpanded:Boolean(I&&R),toggleHandler:N},r.a.createElement("div",{className:"document-crop-section"},r.a.createElement(h,{yOffset:y,height:v,xOffset:w,width:T,unit:S,autoTrim:x,supportedUnits:A,autoTrimOptions:[D("cropPopUp.dimensionInput.autoTrimCustom")].concat(O(Object.keys(j))),onDimensionChange:_,onUnitChange:P,autoTrimActive:k,setAutoTrimActive:L,onAutoTrimChange:M}))),r.a.createElement("div",{className:"buttons"},r.a.createElement(g.a,{className:"cancel-button",dataElement:"cropCancelButton",onClick:f,label:D("action.cancel")}),r.a.createElement(g.a,{className:"save-button",dataElement:"cropApplyButton",onClick:p,disabled:!m||u,label:D("action.apply")})))))},x=S;S.propTypes={cropAnnotation:f.a.object,isCropping:f.a.bool,hasPageNumberError:f.a.bool,yOffset:f.a.oneOfType([f.a.string,f.a.number]),height:f.a.oneOfType([f.a.string,f.a.number]),xOffset:f.a.oneOfType([f.a.string,f.a.number]),width:f.a.oneOfType([f.a.string,f.a.number]),unit:f.a.string,autoTrim:f.a.string,supportedUnits:f.a.object,autoTrimDimensions:f.a.object,onDimensionChange:f.a.func,onUnitChange:f.a.func,autoTrimActive:f.a.bool,setAutoTrimActive:f.a.func,onAutoTrimChange:f.a.func,handleApply:f.a.func,handleCancel:f.a.func,className:f.a.string,cropMode:f.a.string,onCropModeChange:f.a.func,loadedDocumentPageCount:f.a.number,selectedPages:f.a.array,handlePageNumbersChanged:f.a.func,handlePageNumberError:f.a.func,toggleCropDimensions:f.a.func,isCropDimensionsContainerActive:f.a.bool};var A=n(90);function _(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var M=function(e){var t=e.cropAnnotation,n=e.cropMode,l=e.onCropModeChange,u=e.closeDocumentCropPopup,p=e.applyCrop,f=e.isCropping,m=e.getPageHeight,y=e.getPageWidth,v=e.isPageRotated,w=e.redrawCropAnnotations,O=e.isInDesktopOnlyMode,T=e.isMobile,S=e.getPageCount,k=e.getCurrentPage,L=e.selectedPages,M=e.onSelectedPagesChange,j=e.shouldShowApplyCropWarning,I=e.presetCropDimensions,R=Object(d.a)().t,N=s()({Popup:!0,DocumentCropPopup:!0,mobile:T}),D=S(),F=function(e){e.length>0&&xe(!1),M(e)},B=function(){xe(!0)},H={"Inches (in)":'"',"Centimeters (cm)":"cm","Millimeters (mm)":"mm"},V={'"':1,cm:2.54,mm:25.4,pt:72},U=P(Object(o.useState)(Object.getOwnPropertyNames(H)[0]),2),G=U[0],W=U[1],z=P(Object(o.useState)(!1),2),Z=z[0],Y=z[1],q=I,K=P(Object(o.useState)(null),2),$=K[0],X=K[1],J=P(Object(o.useState)(!1),2),Q=J[0],ee=J[1],te=function(e){return e/V[H[G]]*V.pt},ne=function(e,t){return(e/=V.pt)*V[H[t]]},oe=function(e){if(e){var t=0;(e=e.toString()).includes(".")&&t++,e.length>5+t&&(e=e.slice(0,5+t))}return e},re=P(Object(o.useState)(),2),ie=re[0],ae=re[1],le=P(Object(o.useState)(),2),ce=le[0],ue=le[1],se=P(Object(o.useState)(),2),de=se[0],pe=se[1],fe=P(Object(o.useState)(),2),me=fe[0],he=fe[1];Object(o.useEffect)((function(){if(t){ge(G);var e=function(){ae(Math.max(0,oe(ne(t.getY(),G)))),ue(Math.max(0,oe(ne(t.getHeight(),G)))),pe(Math.max(0,oe(ne(t.getX(),G)))),he(Math.max(0,oe(ne(t.getWidth(),G)))),Y(!1)};return c.a.addEventListener("annotationChanged",e),function(){c.a.removeEventListener("annotationChanged",e)}}}),[G,t]),Object(o.useEffect)((function(){t&&w(t.getRect())}),[Z]),Object(o.useEffect)((function(){if(t){var e=function(){ae(oe(ne(t.getY(),G))),ue(oe(ne(t.getHeight(),G))),pe(oe(ne(t.getX(),G))),he(oe(ne(t.getWidth(),G)))};return c.a.addEventListener("pagesUpdated",e),function(){c.a.removeEventListener("pagesUpdated",e)}}}),[]);var be=function(e,n){switch(e||(e=0),e=function(e,n){if(e<0)return 0;var o=t?t.getPageNumber():k();if(n)switch(n){case"xOffset":e=v(o)?Math.min(e,ne(m(o)-t.getWidth(),G)):Math.min(e,ne(y(o)-t.getWidth(),G));break;case"width":e=v(o)?Math.min(e,ne(m(o)-t.getX(),G)):Math.min(e,ne(y(o)-t.getX(),G));break;case"yOffset":e=v(o)?Math.min(e,ne(y(o)-t.getHeight(),G)):Math.min(e,ne(m(o)-t.getHeight(),G));break;case"height":e=v(o)?Math.min(e,ne(y(o)-t.getY(),G)):Math.min(e,ne(m(o)-t.getY(),G))}return e=Math.max(Number(e),0)}(e,n),n){case"yOffset":t.setY(te(e)),ae(oe(e));break;case"height":t.setHeight(te(e)),ue(oe(e));break;case"xOffset":t.setX(te(e)),pe(oe(e));break;case"width":t.setWidth(te(e)),he(oe(e))}t&&w(t.getRect())},ge=function(e){W(e),ae(oe(ne(t.getY(),e))),ue(oe(ne(t.getHeight(),e))),pe(oe(ne(t.getX(),e))),he(oe(ne(t.getWidth(),e)))},ye=function(e){if(e&&q.hasOwnProperty(e)){X(e),Y(!0);var n=q[e].yOffset*V[H[G]],o=Math.max(0,q[e].height*V[H[G]]),r=q[e].xOffset*V[H[G]],i=Math.max(0,q[e].width*V[H[G]]);t.setY(te(n)),ae(oe(n)),t.setX(te(r)),pe(oe(r)),t.setHeight(te(o)),ue(oe(o)),t.setWidth(te(i)),he(oe(i)),t&&w(t.getRect())}else X(void 0)},ve=Object(A.a)((function(e){j?Ce():p(e)})),we=Object(A.a)((function(e){f?Oe():u(e)})),Ee=Object(i.d)(),Ce=function(){var e=R("cropPopUp.cropModal.applyTitle"),t={message:R("cropPopUp.cropModal.applyMessage"),title:e,onConfirm:function(e){p(e)}};Ee(a.a.showWarningMessage(t))},Oe=function(){var e=R("cropPopUp.cropModal.cancelTitle"),t={message:R("cropPopUp.cropModal.cancelMessage"),title:e,onConfirm:function(e){u(e)}};Ee(a.a.showWarningMessage(t))},Te=P(Object(o.useState)(!1),2),Se=Te[0],xe=Te[1];return T&&!O?r.a.createElement(x,{className:N,cropMode:n,onCropModeChange:l,loadedDocumentPageCount:D,selectedPages:L,handlePageNumbersChanged:F,handlePageNumberError:B,hasPageNumberError:Se,handleApply:ve,handleCancel:we,isCropping:f,yOffset:ie,height:ce,xOffset:de,width:me,unit:G,autoTrim:$,supportedUnits:H,autoTrimOptions:[R("cropPopUp.dimensionInput.autoTrimCustom")].concat(_(Object.keys(q))),onDimensionChange:be,onUnitChange:ge,autoTrimActive:Z,setAutoTrimActive:Y,onAutoTrimChange:ye,autoTrimDimensions:q,isCropDimensionsContainerActive:Q,cropAnnotation:t,toggleCropDimensions:function(e){return ee(e)}}):r.a.createElement("div",{className:N,"data-element":b.a.DOCUMENT_CROP_POPUP},r.a.createElement("div",{className:"document-crop-section"},r.a.createElement("h1",{id:"document-crop-label",className:"menu-title"},R("cropPopUp.title")),r.a.createElement("div",{role:"group","aria-labelledby":"document-crop-label"},r.a.createElement(E,{cropMode:n,onCropModeChange:l,loadedDocumentPageCount:D,selectedPages:L,handlePageNumbersChanged:F,handlePageNumberError:B}))),r.a.createElement("div",{className:f&&t?"crop-active":"crop-inactive"},r.a.createElement("div",{className:"divider"}),r.a.createElement("div",{className:"document-crop-section"},r.a.createElement(C.a,{className:s()({"crop-inactive":!t}),header:R("cropPopUp.cropDimensions"),headingLevel:2,isInitiallyExpanded:!1,isExpanded:Q&&!!t,onToggle:function(e){return ee(e)}},r.a.createElement(h,{yOffset:ie,height:ce,xOffset:de,width:me,unit:G,autoTrim:$,supportedUnits:H,autoTrimOptions:[R("cropPopUp.dimensionInput.autoTrimCustom")].concat(_(Object.keys(q))),onDimensionChange:be,onUnitChange:ge,autoTrimActive:Z,setAutoTrimActive:Y,onAutoTrimChange:ye}))),r.a.createElement("div",{className:"divider"})),r.a.createElement("div",{className:"buttons"},r.a.createElement(g.a,{className:"cancel-button",dataElement:"cropCancelButton",onClick:we,label:R("action.cancel")}),r.a.createElement(g.a,{className:"save-button",dataElement:"cropApplyButton",onClick:ve,disabled:!f||Se,label:R("action.apply")})))};M.propTypes={cropAnnotation:f.a.object,cropMode:f.a.string.isRequired,onCropModeChange:f.a.func.isRequired,closeDocumentCropPopup:f.a.func.isRequired,applyCrop:f.a.func.isRequired,isCropping:f.a.bool.isRequired,getPageHeight:f.a.func.isRequired,getPageWidth:f.a.func.isRequired,isPageRotated:f.a.func.isRequired,redrawCropAnnotations:f.a.func.isRequired,isInDesktopOnlyMode:f.a.bool.isRequired,isMobile:f.a.bool.isRequired,getPageCount:f.a.func.isRequired,getCurrentPage:f.a.func.isRequired,selectedPages:f.a.array.isRequired,onSelectedPagesChange:f.a.func.isRequired,shouldShowApplyCropWarning:f.a.bool.isRequired,presetCropDimensions:f.a.object.isRequired};var j=M,I=n(185),R=n.n(I);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var F=function(e){var t=N(Object(o.useState)(null),2),n=t[0],r=t[1];return Object(o.useEffect)((function(){var t=function(t,n){var o=t[0];"add"===n&&o.ToolName===window.Core.Tools.ToolNames.CROP&&o instanceof window.Core.Annotations.RectangleAnnotation&&(r(o),e()),"delete"===n&&o.ToolName===window.Core.Tools.ToolNames.CROP&&o instanceof window.Core.Annotations.RectangleAnnotation&&r(null)},n=function(t,n){var o=t[0];"selected"===n&&o.ToolName===window.Core.Tools.ToolNames.CROP&&o instanceof window.Core.Annotations.RectangleAnnotation&&(r(o),e())};return c.a.addEventListener("annotationChanged",t),c.a.addEventListener("annotationSelected",n),function(){c.a.removeEventListener("annotationChanged",t),c.a.removeEventListener("annotationSelected",n)}}),[]),n},B=n(66),H=n(23),V=n(357),U=n(355);function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Z(e){e&&""===e.nativeEvent.pointerType&&Object(H.a)().querySelector(".active.ToolButton").focus()}t.a=function(){var e=c.a.getTool(window.Core.Tools.ToolNames.CROP),t=Object(i.e)(l.a.getActiveToolName),n=Object(i.e)((function(e){return l.a.isElementOpen(e,b.a.DOCUMENT_CROP_POPUP)})),u=Object(i.e)(l.a.isInDesktopOnlyMode),s=Object(i.e)(l.a.shouldShowApplyCropWarning),d=Object(i.e)(l.a.getPresetCropDimensions),p=t===window.Core.Tools.ToolNames.CROP&&n,f=Object(i.d)(),m=W(Object(o.useState)(e.getIsCropping()),2),h=m[0],g=m[1],y=["leftPanel","searchPanel","notesPanel","redactionPanel","textEditingPanel"],v=function(){f(a.a.openElement(b.a.DOCUMENT_CROP_POPUP)),A(e.getPagesToCrop()),f(a.a.closeElements(y)),g(e.getIsCropping())};Object(o.useEffect)((function(){var t=function(t,n){t instanceof Core.Tools.CropCreateTool?v():n instanceof Core.Tools.CropCreateTool&&(g(e.getIsCropping()),w())},n=function(e){T(e)};return e.addEventListener("cropModeChanged",n),c.a.addEventListener("toolModeUpdated",t),function(){e.removeEventListener("cropModeChanged",n),c.a.removeEventListener("toolModeUpdated",t)}}),[]);var w=function(){var e=Object(H.a)().querySelector("[data-element=header]");e&&(e.style.pointerEvents="",e.style.opacity="1");var t=Object(H.a)().querySelector("[data-element=toolsHeader]");t&&(t.style.pointerEvents="",t.style.opacity="1")},E=F(v);Object(o.useEffect)((function(){h?function(){var e=Object(H.a)().querySelector("[data-element=header]");e&&(e.style.pointerEvents="none",e.style.opacity="0.5");var t=Object(H.a)().querySelector("[data-element=toolsHeader]");t&&(t.style.pointerEvents="none",t.style.opacity="0.5")}():w()}),[h]);var C=W(Object(o.useState)(null),2),O=C[0],T=C[1];Object(o.useEffect)((function(){e.setCropMode("ALL_PAGES"),T("ALL_PAGES")}),[]);var S=W(Object(o.useState)(e.getPagesToCrop()),2),x=S[0],A=S[1],_=Object(o.useRef)(),P=Object(U.a)("top-right"),k=P.position,L=P.handleDrag,M=P.handleStop,I=P.containerRef,N=P.style,D=P.bounds,z=c.a.getDocumentViewer(1),Y=Object(o.useCallback)((function(t){e.reset(),"MULTI_PAGE"===O&&(setPagesToCrop([]),e.setPagesToCrop([])),f(a.a.closeElement(b.a.DOCUMENT_CROP_POPUP)),w(),c.a.setToolMode(window.Core.Tools.ToolNames.CROP),Z(t)}),[]);Object(o.useEffect)((function(){g(e.getIsCropping())}),[E]);var q=Object(o.useCallback)((function(e){return $(e)?c.a.getPageWidth(e):c.a.getPageHeight(e)}),[]),K=Object(o.useCallback)((function(e){return $(e)?c.a.getPageHeight(e):c.a.getPageWidth(e)}),[]),$=Object(o.useCallback)((function(e){return(null==z?void 0:z.getDocument().getPageRotation(e))%180!=0})),X=Object(o.useCallback)((function(){return null==z?void 0:z.getPageCount()})),J=Object(o.useCallback)((function(){return null==z?void 0:z.getCurrentPage()})),Q=Object(o.useCallback)((function(e){c.a.getAnnotationManager().getAnnotationsList().filter((function(e){return e.ToolName===window.Core.Tools.ToolNames.CROP})).forEach((function(t){t.setRect(e),c.a.getAnnotationManager().drawAnnotationsFromList([t])}))}),[]),ee={cropAnnotation:E,cropMode:O,onCropModeChange:function(t){e.setCropMode(t),T(t)},closeDocumentCropPopup:Y,applyCrop:function(t){e.applyCrop(),e.reset(),w(),Z(t)},isCropping:h,getPageHeight:q,getPageWidth:K,isPageRotated:$,redrawCropAnnotations:Q,isInDesktopOnlyMode:u,getPageCount:X,getCurrentPage:J,selectedPages:x,onSelectedPagesChange:function(t){t.length&&(A(t),e.setPagesToCrop(t),e.getIsCropping()&&"MULTI_PAGE"===O&&e.multiSelectAnnotations(t))},shouldShowApplyCropWarning:s,presetCropDimensions:d},te=Object(B.b)();return p&&c.a.getDocument()?te&&!u?r.a.createElement(V.a,null,r.a.createElement("div",{className:"DocumentCropPopupContainer",ref:_},r.a.createElement(j,G({},ee,{isMobile:!0})))):r.a.createElement(R.a,{cancel:"input, button, .collapsible-menu, .ui__choice__label",position:k,bounds:D,onDrag:L,onStop:M},r.a.createElement("div",{className:"DocumentCropPopupContainer",ref:function(e){_.current=e,I.current=e},style:N},r.a.createElement(j,ee))):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return G})),n.d(t,"d",(function(){return W})),n.d(t,"c",(function(){return Z}));n(9),n(10),n(14),n(27),n(21),n(46),n(20),n(12),n(22),n(307),n(308),n(309),n(18),n(26),n(16),n(40),n(24),n(173),n(41),n(42),n(8),n(56),n(17),n(19),n(11),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(31),n(13),n(93),n(311),n(312),n(313);var o=n(23),r=n(45),i=n(60),a=(n(34),n(77),n(44),n(118),n(209),n(35),n(298)),l=n(224),c=n(1);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return p(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(p(t={},o,(function(){return this})),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,r,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,r,"GeneratorFunction"),p(f),p(f,r,"Generator"),p(f,o,(function(){return this})),p(f,"toString",(function(){return"[object Generator]"})),(d=function(){return{w:i,m:m}})()}function p(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(p=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){p(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function f(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){f(i,o,r,a,l,"next",e)}function l(e){f(i,o,r,a,l,"throw",e)}a(void 0)}))}}var h=1,b=2,g=function(){var e=m(d().m((function e(t){var n,o,r,i;return d().w((function(e){for(;;)switch(e.n){case 0:if(n=t.getType(),!("pdf"===n)){e.n=2;break}return e.n=1,t.extractPages(P(t.getPageCount()));case 1:i=e.v,e.n=4;break;case 2:return e.n=3,t.getFileData({downloadType:"pdf",includeAnnotations:!1});case 3:i=e.v;case 4:return o=i,e.n=5,window.Core.createDocument(o,{extension:"pdf"});case 5:return r=e.v,e.a(2,r)}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(e,t,n){var o=!!(null==n?void 0:n.includeComments)||(null==n?void 0:n.includeAnnotations);return x(e,t,o)},v=function(){var e=m(d().m((function e(t){var n,o;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,L(t);case 1:return n=e.v,e.n=2,n.getFileData();case 2:return o=e.v,e.a(2,window.Core.createDocument(o,{extension:"pdf"}))}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=m(d().m((function e(t,n){var o;return d().w((function(e){for(;;)switch(e.n){case 0:if(n){e.n=1;break}return e.a(2,t);case 1:return t.setWatermark(n),e.n=2,k(t);case 2:return o=e.v,e.a(2,o)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),E=function(){var e=m(d().m((function e(t,n){var o,r,i,a,l,c,u;return d().w((function(e){for(;;)switch(e.n){case 0:if(o=n.includeComments,r=n.includeAnnotations,i=P(t.getPageCount()),o||!r){e.n=2;break}return e.n=1,t.formatDocumentForPrint(i,h);case 1:return a=e.v,e.a(2,a);case 2:if(o){e.n=3;break}return e.a(2,t);case 3:return e.n=4,t.formatDocumentForPrint(i,b);case 4:if(l=e.v,!r){e.n=5;break}return e.a(2,l);case 5:return c=P(l.getPageCount()),e.n=6,l.extractPages(c);case 6:return u=e.v,e.n=7,window.Core.createDocument(u,{extension:"pdf"});case 7:return e.a(2,e.v)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),C=function(){var e=m(d().m((function e(t,n){var o,r,i,a,l,c;return d().w((function(e){for(;;)switch(e.n){case 0:return o=P(n.getPageCount()),e.n=1,Promise.all([t.getLayersArray(),n.getLayersArray()]);case 1:return r=e.v,i=u(r,2),a=i[0],l=i[1],c=O(a,l),e.a(2,n.formatDocumentForPrint(o,b,c))}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),O=function(e,t){var n=new Map(e.map((function(e){return[e.name,e.visible]})));return t.forEach((function(e){null!=e&&e.name&&n.has(e.name)&&(e.visible=n.get(e.name))})),t},T=function(e,t){var n,o;return{x1:e.y1<0?0:e.x1,x2:(n=t.width-e.x2<0?0:t.width-e.x2)>t.width?0:n,y1:e.y1<0?0:e.y1,y2:(o=t.height-e.y2<0?0:t.height-e.y2)>t.height?0:o}},S=function(e,t){return Array.from({length:t},(function(e,t){return t+1})).filter((function(t){return t!==e}))},x=function(){var e=m(d().m((function e(t,n,o){var r,i,a,l;return d().w((function(e){for(;;)switch(e.n){case 0:if(!o){e.n=2;break}return r=t.getRegisteredAnnotationTypes(),i=Object.keys(r).reduce((function(e,t){return r[t].forEach((function(t){Object.getPrototypeOf(t.prototype)===window.Core.Annotations.CustomAnnotation.prototype&&(e.push({originalSerializationMode:t.SerializationType,customType:t}),t.SerializationType=window.Core.Annotations.CustomAnnotation.SerializationTypes.STAMP)})),e}),[]),a=t.getAnnotationsList().filter((function(e){return n.indexOf(e.PageNumber)>-1})),e.n=1,t.exportAnnotations({annotationList:a,widgets:!0,links:!0,fields:!0,generateInlineAppearances:!0});case 1:return l=e.v,i.forEach((function(e){e.customType.SerializationType=e.originalSerializationMode})),e.a(2,l);case 2:return e.a(2,'<?xml version="1.0" encoding="UTF-8" ?><xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"></xfdf>')}}),e)})));return function(t,n,o){return e.apply(this,arguments)}}(),A=function(){var e=m(d().m((function e(t,n,o){var r;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.extractPages(n,o);case 1:return r=e.v,e.a(2,window.Core.createDocument(r,{extension:"pdf"}))}}),e)})));return function(t,n,o){return e.apply(this,arguments)}}(),_=function(e){var t=e.getType(),n=e.getPrintablePDF();return"webviewerServer"===t&&n},P=function(e){return Array.from({length:e},(function(e,t){return t+1}))},k=function(){var e=m(d().m((function e(t,n){var o,r,i;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.getFileData(n);case 1:return o=e.v,r=new Blob([o],{type:"application/pdf"}),e.n=2,window.Core.createDocument(r,{extension:"pdf"});case 2:return i=e.v,e.a(2,i)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),L=function(){var e=m(d().m((function e(t){var n,o,r,i,l,u,s;return d().w((function(e){for(;;)switch(e.n){case 0:return n=c.a.getDocumentViewer(),o=n.getCurrentPage(),r=t.getPageCount(),i=Object(a.b)(o),l=c.a.getDocument().getPageInfo(o),u=T(i,l),e.n=1,t.cropPages([o],u.y1,u.y2,u.x1,u.x2);case 1:return s=S(o,r),e.n=2,t.removePages(s);case 2:return e.a(2,t)}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=m(d().m((function e(t,n,o,r,i){var a;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,I(t,r.isGrayscale);case 1:return e.n=2,R(n,o,r,i);case 2:return a=e.v,e.a(2,r.isGrayscale?Object(l.a)(a):a)}}),e)})));return function(t,n,o,r,i){return e.apply(this,arguments)}}(),j=function(){var e=m(d().m((function e(t,n,o,r,i){var a,c;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,I(t,r.isGrayscale);case 1:if(!r.isGrayscale){e.n=3;break}return e.n=2,Object(l.a)(n);case 2:c=e.v,e.n=4;break;case 3:c=n;case 4:return a=c,e.a(2,R(a,o,r,i))}}),e)})));return function(t,n,o,r,i){return e.apply(this,arguments)}}(),I=function(){var e=m(d().m((function e(t,n){var o,r;return d().w((function(e){for(;;)switch(e.n){case 0:if(o=_(t)&&t.isWebViewerServerDocument(),r=window.Core.PDFNet,!n||!o){e.n=1;break}return e.n=1,r.initialize();case 1:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),R=function(){var e=m(d().m((function e(t,n,o,r){var i;return d().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,A(t,r,n);case 1:if(i=e.v,!o.isCurrentView){e.n=3;break}return e.n=2,v(i);case 2:i=e.v;case 3:return e.a(2,E(i,o))}}),e)})));return function(t,n,o,r){return e.apply(this,arguments)}}();function N(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return D(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(D(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,D(d,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,r,"GeneratorFunction"),D(d),D(d,r,"Generator"),D(d,o,(function(){return this})),D(d,"toString",(function(){return"[object Generator]"})),(N=function(){return{w:i,m:p}})()}function D(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(D=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){D(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function F(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){F(i,o,r,a,l,"next",e)}function l(e){F(i,o,r,a,l,"throw",e)}a(void 0)}))}}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var U=function(e){var t=[i.a.PDF].includes(c.a.getDocument().getType());return e&&t},G=function(e){Object.entries({maintainPageOrientation:"Embedded Printing does not support maintaining page orientation.",onProgress:"Embedded Printing does not support a callback function for printing"}).forEach((function(t){var n=H(t,2),o=n[0],r=n[1];e[o]&&console.warn(r)}))},W=function(){var e=B(N().m((function e(t,n,o){var r,i,a,l,c,u,s,d,p,f,m,h;return N().w((function(e){for(;;)switch(e.p=e.n){case 0:return r=t.includeAnnotations,i=t.includeComments,a=t.isCurrentView,l=t.isGrayscale,c=void 0!==l&&l,u=t.watermarkModalOptions,s=t.pagesToPrint,d=t.isAlwaysPrintAnnotationsInColorEnabled,p=null!=s?s:P(n.getPageCount()),f={includeAnnotations:r,includeComments:i,isCurrentView:a,isGrayscale:c,isAlwaysPrintAnnotationsInColorEnabled:d},e.p=1,e.n=2,z(n,o,p,f,u);case 2:return m=e.v,e.a(2,m);case 3:throw e.p=3,h=e.v,console.error("Error processing embedded print options:",h),h;case 4:return e.a(2)}}),e,null,[[1,3]])})));return function(t,n,o){return e.apply(this,arguments)}}(),z=function(){var e=B(N().m((function e(t,n,o,r,i){var a,l,c,u,s,d,p,f,m;return N().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,a=r.isAlwaysPrintAnnotationsInColorEnabled,l=!t.isWebViewerServerDocument(),e.n=1,g(t);case 1:if(c=e.v,!l){e.n=3;break}return e.n=2,C(t,c,o);case 2:p=e.v,e.n=4;break;case 3:p=c;case 4:return u=p,e.n=5,w(u,i);case 5:return s=e.v,e.n=6,y(n,o,r);case 6:if(d=e.v,!a){e.n=8;break}return e.n=7,j(t,s,d,r,o);case 7:f=e.v,e.n=10;break;case 8:return e.n=9,M(t,s,d,r,o);case 9:f=e.v;case 10:return e.a(2,f);case 11:throw e.p=11,m=e.v,console.error("Error creating embedded print pages:",m),m;case 12:return e.a(2)}}),e,null,[[0,11]])})));return function(t,n,o,r,i){return e.apply(this,arguments)}}(),Z=function(e){var t=r.h&&r.n?window.open():null;return e.getFileData({printDocument:!0}).then((function(e){var n=new Uint8Array(e);Y(n,t)})).catch((function(e){return console.error("Print Error status: ",e)}))},Y=function(e,t){var n=new Blob([e],{type:"application/pdf"}),r=Object(o.a)().getElementById("print-handler");if(r.src=URL.createObjectURL(n),!t)return new Promise((function(e){var t=function(){r.contentWindow.print(),r.removeEventListener("load",t),e()};r.addEventListener("load",t)}));t.location.href=r.src,setTimeout((function(){t.print()}),100)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(310),r=n.n(o),i=n(229),a=n.n(i),l=n(0),c=n(225),u=n(206);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,o=Object(l.useContext)(c.a)||{},i=o.i18n,a=o.defaultNS,s=n||i||Object(c.d)();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new c.b),!s){Object(u.d)("You will need to pass in an i18next instance by using initReactI18next");var p=function(e){return Array.isArray(e)?e[e.length-1]:e},f=[p,{},!1];return f.t=p,f.i18n={},f.ready=!1,f}s.options.react&&void 0!==s.options.react.wait&&Object(u.d)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var m=d(d(d({},Object(c.c)()),s.options.react),t),h=m.useSuspense,b=m.keyPrefix,g=e||a||s.options&&s.options.defaultNS;g="string"==typeof g?[g]:g||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(g);var y=(s.isInitialized||s.initializedStoreOnce)&&g.every((function(e){return Object(u.b)(e,s,m)}));function v(){return s.getFixedT(null,"fallback"===m.nsMode?g:g[0],b)}var w=Object(l.useState)(v),E=r()(w,2),C=E[0],O=E[1],T=Object(l.useRef)(!0);Object(l.useEffect)((function(){var e=m.bindI18n,t=m.bindI18nStore;function n(){T.current&&O(v)}return T.current=!0,y||h||Object(u.c)(s,g,(function(){T.current&&O(v)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){T.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,g.join()]);var S=Object(l.useRef)(!0);Object(l.useEffect)((function(){T.current&&!S.current&&O(v),S.current=!1}),[s]);var x=[C,s,y];if(x.t=C,x.i18n=s,x.ready=y,y)return x;if(!y&&!h)return x;throw new Promise((function(e){Object(u.c)(s,g,(function(){e()}))}))}},function(e,t,n){"use strict";var o=n(58),r=n(52),i=n(343),a=n(284),l=i.ArrayBuffer;o({global:!0,constructor:!0,forced:r.ArrayBuffer!==l},{ArrayBuffer:l}),a("ArrayBuffer")},function(e,t,n){"use strict";var o=n(58),r=n(70),i=n(71),a=n(343),l=n(99),c=n(190),u=n(152),s=n(321),d=a.ArrayBuffer,p=a.DataView,f=p.prototype,m=r(d.prototype.slice),h=r(f.getUint8),b=r(f.setUint8);o({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new d(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(m&&void 0===t)return m(l(this),e);for(var n=l(this).byteLength,o=c(e,n),r=c(void 0===t?n:t,n),i=new(s(this,d))(u(r-o)),a=new p(this),f=new p(i),g=0;o<r;)b(f,g++,h(a,o++));return i}})},function(e,t,n){n(1065)},function(e,t,n){var o=n(1076),r=n(1077),i=n(642),a=n(1078);e.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n(670)},function(e,t,n){"use strict";var o=n(58),r=n(85);o({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},function(e,t,n){n(530)},function(e,t,n){var o=n(187),r=n(52);e.exports="process"==o(r.process)},function(e,t,n){var o=n(52).TypeError;e.exports=function(e,t){if(e<t)throw o("Not enough arguments");return e}},function(e,t,n){"use strict";var o=n(1);t.a=function(e){var t=window.Core.Annotations.FreeTextAnnotation;if(e instanceof t&&e.getAutoSizeType()!==t.AutoSizeTypes.NONE){var n=o.a.getDocument(),r=e.PageNumber,i=n.getPageInfo(r),a=n.getPageMatrix(r),l=n.getPageRotation(r);e.fitText(i,a,l)}}},function(e,t,n){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,o){var r=n.prototype,i=r.format;o.en.formats=e,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,o=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,o,r){var i=r&&r.toUpperCase();return o||n[r]||e[r]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return i.call(this,o)}}}()},function(e,t,n){var o=n(36),r=n(1082);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(12),n(44),n(33),n(26),n(16),n(30),n(266),n(59),n(40),n(24),n(41),n(35),n(42),n(8),n(137),n(111),n(86),n(11),n(31),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(2),l=n.n(a),c=n(29),u=(n(38),n(46),n(64),n(1563)),s=n(53),d=n(15),p=n.n(d),f=n(3),m=n(4),h=n(195),b=n(119);n(1092);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,T(o.key),o)}}function w(e,t,n){return t=E(t),function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}var S=function(e){function t(){var e;y(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return O(e=w(this,t,[].concat(o)),"setActivePalette",(function(t){var n=e.props;(0,n.setActivePalette)(n.colorMapKey,t)})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(t,e),function(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.t,o=t.colorPalette,i=t.colorMapKey,a=t.toolName,l=t.disableSeparator,c=Object(s.e)(i).styleTabs;return a&&(a.includes("Line")||a.includes("Arrow")||a.includes("Polyline"))?r.a.createElement("div",{className:"palette-options"},["StrokeColor","FillColor"].map((function(e,t){return r.a.createElement(r.a.Fragment,{key:t},r.a.createElement(b.a,{content:"option.annotationColor.".concat(e)},r.a.createElement("div",{className:p()({"palette-options-button":!0,active:o===e,disabled:"FillColor"===e})},n("option.annotationColor.".concat(e)))),t<1&&r.a.createElement("div",{className:"palette-options-divider"}))}))):c.length<2?l?null:r.a.createElement(h.a,null):r.a.createElement("div",{className:"palette-options"},c.map((function(t,i){return r.a.createElement(r.a.Fragment,{key:i},r.a.createElement(b.a,{content:"option.annotationColor.".concat(t)},r.a.createElement("button",{className:p()({"palette-options-button":!0,active:o===t}),onClick:function(){return e.setActivePalette(t)}},n("option.annotationColor.".concat(t)))),i<c.length-1&&r.a.createElement("div",{className:"palette-options-divider"}))})))}}])}(r.a.PureComponent);O(S,"propTypes",{style:l.a.object.isRequired,colorPalette:l.a.oneOf(["TextColor","StrokeColor","FillColor"]),colorMapKey:l.a.string.isRequired,setActivePalette:l.a.func.isRequired,t:l.a.func.isRequired,isTextColorPaletteDisabled:l.a.bool,isFillColorPaletteDisabled:l.a.bool,isBorderColorPaletteDisabled:l.a.bool});var x={setActivePalette:f.a.setActivePalette},A=Object(i.b)((function(e){return{isTextColorPaletteDisabled:m.a.isElementDisabled(e,"textColorPalette"),isFillColorPaletteDisabled:m.a.isElementDisabled(e,"fillColorPalette"),isBorderColorPaletteDisabled:m.a.isElementDisabled(e,"borderColorPalette")}}),x)(Object(u.a)(null,{wait:!1})(S)),_=n(194),P=n(358),k=n(320),L=(n(21),n(20),n(22),n(18),n(17),n(19),n(306)),M=n(72),j=(n(1100),n(134));function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var N=j.d.concat(j.a);function D(e){var t=e.onLineStyleChange,n=e.properties,i=e.isEllipse;if(!n||!n.hasOwnProperty("StrokeStyle"))return null;var a=I(Object(o.useState)(n.StrokeStyle),2),l=a[0],c=a[1],u=I(Object(L.a)(),1)[0];return r.a.createElement("div",{className:"StyleOption"},r.a.createElement("div",{className:"styles-container"},r.a.createElement("label",{className:"styles-title",htmlFor:"styleOptions"},u("option.styleOption.style")),r.a.createElement(M.a,{dataElement:"borderStylePicker",images:i?j.d:N,width:80,onClickItem:function(e){c(e),t("middle",e)},currentSelectionKey:l})))}D.propTypes={borderStyle:l.a.string,isEllipse:l.a.bool,properties:l.a.object,onLineStyleChange:l.a.func.isRequired};var F=D,B=n(51),H=n(251),V=n(376);n(1109);function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var W=j.d;var z=function(e){var t=e.properties,n=e.onLineStyleChange,i=U(Object(L.a)(),1)[0],a=U(Object(o.useState)(t.StartLineStyle),2),l=a[0],c=a[1],u=U(Object(o.useState)(t.EndLineStyle),2),s=u[0],d=u[1],p=U(Object(o.useState)(t.StrokeStyle),2),f=p[0],m=p[1];return r.a.createElement("div",{className:"LineStyleOptions"},r.a.createElement("div",{className:"LayoutTitle"},i("option.lineStyleOptions.title")),r.a.createElement("div",{className:"StyleContainer"},r.a.createElement(M.a,{id:"startLineStyleDropdown",dataElement:"startLineStyleDropdown",images:j.c,width:62,onClickItem:function(e){c(e),n("start",e)},currentSelectionKey:l}),r.a.createElement(M.a,{id:"middleLineStyleDropdown",dataElement:"middleLineStyleDropdown",images:W,width:62,onClickItem:function(e){m(e),n("middle",e)},currentSelectionKey:f}),r.a.createElement(M.a,{id:"endLineStyleDropdown",dataElement:"endLineStyleDropdown",images:j.b,width:62,onClickItem:function(e){d(e),n("end",e)},currentSelectionKey:s})))},Z=n(106),Y=n(265),q=n(5),K=n(60),$=n(609),X=n.n($),J=n(66),Q=n(45),ee=n(197),te=n(1);n(1112);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(){return(oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ue(o.key),o)}}function ie(e,t,n){return t=ae(t),function(e,t){if(t&&("object"==ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ae(e).constructor):t.apply(e,n))}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function le(e,t){return(le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ce(e,t,n){return(t=ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ne(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}var se=function(e){function t(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ce(o=ie(this,t,[e]),"onDocumentLoaded",(function(){var e;o.setState({document:te.a.getDocument(),documentType:null===(e=te.a.getDocument())||void 0===e?void 0:e.getType()})})),ce(o,"onSnappingChange",(function(e){if(te.a.isFullPDFEnabled()){var t=e.target.checked,n=t?te.a.getDocumentViewer().SnapMode.e_DefaultSnapMode|te.a.getDocumentViewer().SnapMode.POINT_ON_LINE:null;Object(ee.a)().forEach((function(e){var r;null===(r=e.setSnapMode)||void 0===r||r.call(e,n),o.props.onSnapModeChange&&o.props.onSnapModeChange({toolName:e.name,isEnabled:t})}))}})),ce(o,"updateSnapModeFromTool",(function(){if(te.a.isFullPDFEnabled()){var e=o.props.onSnapModeChange,t=te.a.getToolMode();if(t&&t.getSnapMode){var n=!!t.getSnapMode();e({toolName:t.name,isEnabled:n})}}})),ce(o,"renderSliders",(function(){var e=o.props,t=e.style,n=t.Opacity,i=t.StrokeThickness,a=t.FontSize,l=e.onSliderChange,c=e.isMeasure,u=void 0!==c&&c,s=e.isOpacitySliderDisabled,d=e.isStrokeThicknessSliderDisabled,p=e.isFontSizeSliderDisabled,f=e.currentStyleTab,m={};s||(m.Opacity={property:"Opacity",displayProperty:"opacity",value:100*n,getDisplayValue:function(e){return"".concat(Math.round(e),"%")},dataElement:q.a.OPACITY_SLIDER,withInputField:!0,inputFieldType:"number",min:0,max:100,step:1,getLocalValue:function(e){return parseInt(e)/100}}),d||(m.StrokeThickness={property:"StrokeThickness",displayProperty:"thickness",value:i,getDisplayValue:Y.a,dataElement:q.a.STROKE_THICKNESS_SLIDER,withInputField:!0,inputFieldType:"number",min:0,max:23,step:1,steps:Object(Y.b)(o.props.isFreeText)}),p||(m.FontSize={property:"FontSize",displayProperty:"text",value:a,getDisplayValue:function(e){return"".concat(Math.round(parseInt(e,10)),"pt")},dataElement:q.a.FONT_SIZE_SLIDER,min:5,max:45,step:1,withInputField:!0,inputFieldType:"number",getLocalValue:function(e){return"".concat(parseFloat(e).toFixed(2),"pt")}});var h={Opacity:n,StrokeThickness:i,FontSize:a};"TextColor"===f?h={Opacity:n,FontSize:a}:"StrokeColor"===f?h={Opacity:n,StrokeThickness:i}:"FillColor"===f&&(h={Opacity:n}),u&&(h.FontSize=a),s&&delete h.Opacity,(d||"markInsertText"===o.props.colorMapKey||"markReplaceText"===o.props.colorMapKey)&&delete h.StrokeThickness,p&&delete h.FontSize,h=X()(h,(function(e){return null!=e}));var b=Object.keys(h).map((function(e){var t=m[e];return r.a.createElement(k.a,oe({},t,{key:e,onSliderChange:l}))}));return r.a.createElement(r.a.Fragment,null,b.length>0&&r.a.createElement("div",{className:"sliders-container"},b))})),o.state={document:te.a.getDocument(),documentType:null===(n=te.a.getDocument())||void 0===n?void 0:n.getType()},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&le(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){te.a.addEventListener("documentLoaded",this.onDocumentLoaded),this.updateSnapModeFromTool()}},{key:"componentWillUnmount",value:function(){te.a.removeEventListener("documentLoaded",this.onDocumentLoaded)}},{key:"render",value:function(){var e,t=this.props,n=t.toolName,o=t.isColorPaletteDisabled,i=t.currentStyleTab,a=t.style,l=t.colorMapKey,u=t.onStyleChange,s=t.isStyleOptionDisabled,d=t.disableSeparator,f=t.hideSnapModeCheckbox,m=t.isFreeText,h=t.isEllipse,b=t.isTextStyleContainerActive,g=t.isColorsContainerActive,y=t.isLabelTextContainerActive,v=t.isLabelTextContainerDisabled,w=t.openElement,E=t.closeElement,C=t.properties,O=t.onPropertyChange,T=t.onRichTextStyleChange,S=t.isRedaction,x=t.fonts,k=t.showLineStyleOptions,L=t.onLineStyleChange,M=t.isSnapModeEnabled,j=t.isInFormBuilderAndNotFreeText,I=t.onFreeTextSizeToggle,R=t.isFreeTextAutoSize;S&&(a.Opacity=null,a.StrokeThickness=null);var N=a.Scale,D=a.Precision,U=a.Style,G=ce(ce(ce({},q.a.STYLE_POPUP_TEXT_STYLE_CONTAINER,b),q.a.STYLE_POPUP_COLORS_CONTAINER,g),q.a.STYLE_POPUP_LABEL_TEXT_CONTAINER,y),W=function(e){if(G[e])E(e);else if(w(e),Object(Q.k)())for(var t in G)t!==e&&E(t)},Y=function(){return W(q.a.STYLE_POPUP_LABEL_TEXT_CONTAINER)},$=function(){return W(q.a.STYLE_POPUP_TEXT_STYLE_CONTAINER)},X=function(){return W(q.a.STYLE_POPUP_COLORS_CONTAINER)},J=p()({Popup:!0,StylePopup:!0}),ee="TextColor"===i&&(m||S),te="TextColor"===i&&(m||S),ne=!(te&&!g),oe="TextColor"===i&&S,re=o||ne,ie="StrokeColor"!==i&&(m||S),ae=this.state.documentType===K.a.WEBVIEWER_SERVER&&!this.state.document.isWebViewerServerDocument(),le=(null===(e=this.state.documentType)||void 0===e?void 0:e.toLowerCase())===K.a.PDF||ae,ue=N&&D&&le&&!f;return r.a.createElement("div",{className:J,"data-element":"stylePopup"},i&&!o&&r.a.createElement(r.a.Fragment,null,r.a.createElement(A,{colorPalette:i,colorMapKey:l,style:a,toolName:n,disableSeparator:d}),oe&&!v&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"collapsible-menu",onClick:Y,onTouchStart:Y,role:"toolbar"},r.a.createElement("div",{className:"menu-title"},c.a.t("option.stylePopup.labelText")),r.a.createElement(B.a,{glyph:"icon-chevron-".concat(y?"up":"down")})),y&&r.a.createElement("div",{className:"menu-items"},r.a.createElement(V.a,{properties:C,onPropertyChange:O})),r.a.createElement("div",{className:"divider"})),ee&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"collapsible-menu",onClick:$,onTouchStart:$,role:"toolbar"},r.a.createElement("div",{className:"menu-title"},c.a.t("option.stylePopup.textStyle")),r.a.createElement(B.a,{glyph:"icon-chevron-".concat(b?"up":"down")})),b&&r.a.createElement("div",{className:"menu-items"},r.a.createElement(H.a,{fonts:x,onPropertyChange:O,onRichTextStyleChange:T,properties:C,isRedaction:S,isFreeText:m,onFreeTextSizeToggle:I,isFreeTextAutoSize:R})),r.a.createElement("div",{className:"divider"})),te&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"collapsible-menu",onClick:X,onTouchStart:X,role:"toolbar"},r.a.createElement("div",{className:"menu-title"},c.a.t("option.stylePopup.colors")),r.a.createElement(B.a,{glyph:"icon-chevron-".concat(g?"up":"down")}))),ne&&r.a.createElement(r.a.Fragment,null,r.a.createElement(_.a,{color:a[i],property:i,onStyleChange:u,colorMapKey:l,useMobileMinMaxWidth:!0}),r.a.createElement(P.a,{color:a[i],property:i,onStyleChange:u,enableEdit:!0}))),re&&this.renderSliders(),ue&&r.a.createElement("div",{className:"snapping-option"},r.a.createElement(Z.a,{dataElement:"measurementSnappingOption",id:"measurement-snapping",type:"checkbox",label:c.a.t("option.shared.enableSnapping"),checked:M,onChange:this.onSnappingChange})),k&&r.a.createElement(z,{properties:C,onLineStyleChange:L}),!s&&!k&&!ie&&"StrokeColor"===i&&!j&&r.a.createElement(F,{borderStyle:U,properties:C,isEllipse:h,onLineStyleChange:L}))}}])&&re(n.prototype,o),i&&re(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.a.PureComponent);ce(se,"propTypes",{style:l.a.object.isRequired,onStyleChange:l.a.func.isRequired,onPropertyChange:l.a.func.isRequired,onSliderChange:l.a.func.isRequired,onRichTextStyleChange:l.a.func,onLineStyleChange:l.a.func,isFreeText:l.a.bool,onFreeTextSizeToggle:l.a.func,isFreeTextAutoSize:l.a.bool,isEllipse:l.a.bool,isMeasure:l.a.bool,colorMapKey:l.a.string.isRequired,currentStyleTab:l.a.oneOf(["TextColor","StrokeColor","FillColor"]),isColorPaletteDisabled:l.a.bool,isOpacitySliderDisabled:l.a.bool,isStrokeThicknessSliderDisabled:l.a.bool,isFontSizeSliderDisabled:l.a.bool,isStyleOptionDisabled:l.a.bool,isStylePopupDisabled:l.a.bool,hideSnapModeCheckbox:l.a.bool,closeElement:l.a.func,openElement:l.a.func,onSnapModeChange:l.a.func,properties:l.a.object,isRedaction:l.a.bool,fonts:l.a.array,isSnapModeEnabled:l.a.bool,isInFormBuilderAndNotFreeText:l.a.bool});var de={closeElement:f.a.closeElement,openElement:f.a.openElement,onSnapModeChange:f.a.setEnableSnapMode},pe=Object(i.b)((function(e,t){var n=t.colorMapKey,o=t.isFreeText,r=t.isRedaction;return{currentStyleTab:m.a.getcurrentStyleTab(e,n),isStylePopupDisabled:m.a.isElementDisabled(e,q.a.STYLE_POPUP),isColorPaletteDisabled:m.a.isElementDisabled(e,q.a.COLOR_PALETTE),isOpacitySliderDisabled:m.a.isElementDisabled(e,q.a.OPACITY_SLIDER),isStrokeThicknessSliderDisabled:m.a.isElementDisabled(e,q.a.STROKE_THICKNESS_SLIDER),isFontSizeSliderDisabled:m.a.isElementDisabled(e,q.a.FONT_SIZE_SLIDER)||o||r,isStyleOptionDisabled:m.a.isElementDisabled(e,q.a.STYLE_OPTION),isTextStyleContainerActive:m.a.isElementOpen(e,q.a.STYLE_POPUP_TEXT_STYLE_CONTAINER),isColorsContainerActive:m.a.isElementOpen(e,q.a.STYLE_POPUP_COLORS_CONTAINER),isLabelTextContainerActive:m.a.isElementOpen(e,q.a.STYLE_POPUP_LABEL_TEXT_CONTAINER),isLabelTextContainerDisabled:m.a.isElementDisabled(e,q.a.STYLE_POPUP_LABEL_TEXT_CONTAINER),fonts:m.a.getFonts(e),isSnapModeEnabled:m.a.isSnapModeEnabled(e),isInFormBuilderAndNotFreeText:te.a.getFormFieldCreationManager().isInFormFieldCreationMode()&&!o}}),de)(se),fe=function(e){var t=Object(J.b)();return r.a.createElement(pe,oe({},e,{isMobile:t}))};t.a=fe},function(e,t,n){"use strict";n(9),n(10),n(14),n(38),n(124),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(137),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(306),a=n(2),l=n.n(a),c=(n(1098),n(234));function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var d={property:l.a.string.isRequired,value:l.a.oneOfType([l.a.number,l.a.string]),displayProperty:l.a.string.isRequired,getDisplayValue:l.a.func.isRequired,onSliderChange:l.a.func.isRequired,dataElement:l.a.string,withInputField:l.a.bool,inputFieldType:l.a.string,min:l.a.number,max:l.a.number,step:l.a.number,getLocalValue:l.a.func,shouldHideSliderTitle:l.a.bool,shouldHideSliderValue:l.a.bool,steps:l.a.array};function p(e){var t=e.step,n=void 0===t?1:t,a=e.displayProperty,l=e.steps,s=void 0===l?[]:l,d=e.dataElement,p=e.shouldHideSliderValue,f=e.shouldHideSliderTitle,m=e.getDisplayValue,h=e.withInputField,b=e.onSliderChange,g=e.property,y=e.getLocalValue,v=e.inputFieldType,w=void 0===v?"number":v,E=e.min,C=void 0===E?0:E,O=e.max,T=void 0===O?100:O,S=e.value;("string"==typeof S||S instanceof String)&&(S=parseFloat(S,10));var x=Object(o.useRef)(null),A=Object(o.useRef)(null),_=u(Object(i.a)(),1)[0],P=u(Object(o.useState)(!1),2),k=P[0],L=P[1],M=Object(c.a)(),j=0!==s.length,I=S,R=S;j&&(R=s.findIndex((function(e){return e>=S})),I=s[R]);var N=u(Object(o.useState)(R),2),D=N[0],F=N[1],B=u(Object(o.useState)(I),2),H=B[0],V=B[1],U=u(Object(o.useState)(S),2),G=U[0],W=U[1],z=function(e,t){var n=y?y(e):e;b(g,n,t)},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(e.target.value);M&&(n=T-(n-C));var o=j?s[n]:n;V(o),W(o),F(n),z(o,t)},Y=function(e){Z(e,!0)},q=function(e){var t=C,n=T;if(j&&(t=s[0],n=s[s.length-1]),!isNaN(e.target.value)&&""!==e.target.value){e.target.value>n&&(e.target.value=n);var o,r=e.target.value;if(e.target.value<t&&(r=t),j)o=s.findIndex((function(e){return e>=r}));else o=r;V(r),W(r),F(o),z(r,!0)}},K=function(e){"Enter"===e.key&&x.current.blur()};Object(o.useEffect)((function(){var e=(D-C)/(T-C)*100;A.current&&(A.current.style.background=M?"linear-gradient(to left, var(--slider-filled) ".concat(e,"%, var(--slider-background) ").concat(e,"%)"):"linear-gradient(to right, var(--slider-filled) ".concat(e,"%, var(--slider-background) ").concat(e,"%)"),A.current.style.direction=M?"ltr":"")}),[D,M,C,T]),Object(o.useEffect)((function(){var e=S,t=e;j&&(t=s.findIndex((function(t){return t>=e})));V(e),W(e),F(t)}),[S]);var $=_("option.slider.".concat(a),a);var X,J,Q=M?T-(D-C):D;return r.a.createElement("div",{className:"slider","data-element":d},!f&&r.a.createElement("div",{id:"slider-".concat($),className:"slider-property",onMouseDown:function(e){return e.preventDefault()}},$),r.a.createElement("div",{className:"slider-element-container"},r.a.createElement("div",{className:"slider-input"},r.a.createElement("input",{ref:A,style:{width:"100%"},"aria-label":$,"aria-valuemin":C,"aria-valuemax":T,"aria-valuenow":H,"aria-valuetext":"".concat($," ").concat(m(H)),type:"range",onChange:Z,onMouseUp:Y,onTouchEnd:Y,min:C,max:T,step:n,value:Q})),!p&&(h?(X=_("option.slider.".concat(a)),J="".concat(X," ").concat(m(H)),k&&"number"===w?r.a.createElement("div",{className:"slider-input-wrapper"},r.a.createElement("input",{ref:x,className:"slider-input-field is-editing","aria-label":J,autoFocus:!0,type:"text",min:C,max:T,step:n,onChange:q,defaultValue:G,onBlur:function(){L(!1)},onKeyDown:K})):r.a.createElement("input",{readOnly:!0,type:"text",className:"slider-input-field","aria-label":J,value:m(H),onFocus:L})):r.a.createElement("div",{className:"slider-value"},m(H)))))}p.propTypes=d;var f=p;t.a=f},function(e,t,n){var o=n(99),r=n(430),i=n(83)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||null==(n=o(a)[i])?t:r(n)}},function(e,t,n){"use strict";var o=n(1);t.a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return null===(e=o.a.getDocumentViewer(t).getDocument())||void 0===e?void 0:e.getType()}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=n(2),a=n.n(i);function l(e){var t=Object(o.useRef)(e);return Object(o.useEffect)((function(){t.current=e})),t}var c=n(78),u=function(){var e=document.activeElement;return e.shadowRoot&&(e=e.shadowRoot.activeElement),e},s=n(256);var d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.focusLastOnUnlock,i=Object(o.useRef)(null),a=null!==(e=n.overrideRef)&&void 0!==e?e:i,d=Object(o.useCallback)((function(){return a.current.querySelectorAll(s.a)}),[]),p=function(e){if(!e)return!1;for(;e;){var t=window.getComputedStyle(e);if("hidden"===t.visibility||"none"===t.display)return!1;e=e.parentElement}return!0},f=function(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if(p(n))return t}return-1},m=Object(o.useCallback)((function(e){if(t&&(!e||"Tab"===e.key)&&a.current){var n=d();if(!n.length)return null==e?void 0:e.preventDefault();var o=u(),r=Object(c.c)(n,o);if(-1===r||e){var i=f(n);return-1!==r&&(null!=e&&e.shiftKey||r!==i)?null!=e&&e.shiftKey&&0===r?(n[i].focus(),null==e?void 0:e.preventDefault()):void 0:(n[0].focus(),null==e?void 0:e.preventDefault())}}}),[d,t]),h=function(e){var t=e.target;return t.shadowRoot&&(t=e.composedPath()[0]),t},b=Object(o.useCallback)((function(e){if(t&&a.current){var n=d(),o=h(e);if(!n.length)return null==o?void 0:o.blur();var r=-1!==Object(c.c)(n,o),i=e&&a.current.contains(o);return!r&&i?n[0].focus():void 0}}),[d,t]);Object(o.useEffect)((function(){if("undefined"!=typeof window)return document.addEventListener("keydown",m),document.addEventListener("focusin",b),function(){document.removeEventListener("keydown",m),document.removeEventListener("focusin",b)}}),[b,m]);var g=l(r);return Object(o.useEffect)((function(){var e;if("undefined"!=typeof window&&t){var n,o=u();if(g.current&&(null===(n=a.current)||void 0===n||!n.contains(o)))return e=o,m(),function(){return e.focus()};m()}}),[g,m,t]),a},p={locked:a.a.bool,focusLastOnUnlock:a.a.shape({current:a.a.instanceOf(Element)}),children:a.a.element.isRequired},f=Object(o.forwardRef)((function(e,t){var n=e.locked,i=e.focusLastOnUnlock,a=e.children,l=d(n,{focusLastOnUnlock:i,overrideRef:t});return r.a.isValidElement(a)?Object(o.cloneElement)(a,{ref:l}):(console.warn("FocusTrap expects a single valid React element as its child."),null)}));f.propTypes=p,f.displayName="FocusTrap";var m=f;t.a=m},function(e,t,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},function(e,t,n){var o=n(52),r=n(100),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var o=n(70),r=n(87),i=n(423),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,t,n){var o=n(242),r=n(275),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(650),r=n(95),i=n(508),a=n(104).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var o=n(70),r=n(71),i=n(87),a=n(213),l=n(150),c=n(327),u=function(){},s=[],d=l("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=o(p.exec),m=!p.exec(u),h=function(e){if(!i(e))return!1;try{return d(u,s,e),!0}catch(e){return!1}},b=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(p,c(e))}catch(e){return!0}};b.sham=!0,e.exports=!d||r((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?b:h},function(e,t,n){var o=n(52),r=n(85),i=n(149),a=n(99),l=n(241),c=n(287),u=o.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(i(n))return a(r(n,e));throw u(l(e)+" is not iterable")}},function(e,t,n){var o=n(83)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var o,r,i=n(85),a=n(70),l=n(97),c=n(433),u=n(434),s=n(242),d=n(167),p=n(147).get,f=n(521),m=n(522),h=s("native-string-replace",String.prototype.replace),b=RegExp.prototype.exec,g=b,y=a("".charAt),v=a("".indexOf),w=a("".replace),E=a("".slice),C=(r=/b*/g,i(b,o=/a/,"a"),i(b,r,"a"),0!==o.lastIndex||0!==r.lastIndex),O=u.BROKEN_CARET,T=void 0!==/()??/.exec("")[1];(C||T||O||f||m)&&(g=function(e){var t,n,o,r,a,u,s,f=this,m=p(f),S=l(e),x=m.raw;if(x)return x.lastIndex=f.lastIndex,t=i(g,x,S),f.lastIndex=x.lastIndex,t;var A=m.groups,_=O&&f.sticky,P=i(c,f),k=f.source,L=0,M=S;if(_&&(P=w(P,"y",""),-1===v(P,"g")&&(P+="g"),M=E(S,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==y(S,f.lastIndex-1))&&(k="(?: "+k+")",M=" "+M,L++),n=new RegExp("^(?:"+k+")",P)),T&&(n=new RegExp("^"+k+"$(?!\\s)",P)),C&&(o=f.lastIndex),r=i(b,_?n:f,M),_?r?(r.input=E(r.input,L),r[0]=E(r[0],L),r.index=f.lastIndex,f.lastIndex+=r[0].length):f.lastIndex=0:C&&r&&(f.lastIndex=f.global?r.index+r[0].length:o),T&&r&&r.length>1&&i(h,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&A)for(r.groups=u=d(null),a=0;a<A.length;a++)u[(s=A[a])[0]]=r[s[1]];return r}),e.exports=g},function(e,t,n){var o=n(100),r=n(187),i=n(83)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},function(e,t,n){"use strict";n(17);var o=n(70),r=n(112),i=n(334),a=n(71),l=n(83),c=n(159),u=l("species"),s=RegExp.prototype;e.exports=function(e,t,n,d){var p=l(e),f=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!f||!m||n){var h=o(/./[p]),b=t(p,""[e],(function(e,t,n,r,a){var l=o(e),c=t.exec;return c===i||c===s.exec?f&&!a?{done:!0,value:h(t,n,r)}:{done:!0,value:l(n,t,r)}:{done:!1}}));r(String.prototype,e,b[0]),r(s,p,b[1])}d&&c(s[p],"sham",!0)}},function(e,t,n){var o=n(52),r=n(85),i=n(99),a=n(87),l=n(187),c=n(334),u=o.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var o=r(n,e,t);return null!==o&&i(o),o}if("RegExp"===l(e))return r(c,e,t);throw u("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(374);function r(e,t,n){return(t=Object(o.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var o=n(87),r=n(100),i=n(218);e.exports=function(e,t,n){var a,l;return i&&o(a=t.constructor)&&a!==n&&r(l=a.prototype)&&l!==n.prototype&&i(e,l),e}},function(e,t,n){var o=n(70),r=n(129),i=n(97),a=n(341),l=o("".replace),c="["+a+"]",u=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),d=function(e){return function(t){var n=i(r(t));return 1&e&&(n=l(n,u,"")),2&e&&(n=l(n,s,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var o=n(193),r=n(691),i=n(693),a=n(632);e.exports=function(e,t){return o(e)?e:r(e,t)?[e]:i(a(e))}},function(e,t,n){"use strict";var o=n(52),r=n(70),i=n(89),a=n(446),l=n(243),c=n(159),u=n(385),s=n(71),d=n(210),p=n(151),f=n(152),m=n(549),h=n(1064),b=n(244),g=n(218),y=n(189).f,v=n(104).f,w=n(447),E=n(280),C=n(191),O=n(147),T=l.PROPER,S=l.CONFIGURABLE,x=O.get,A=O.set,_=o.ArrayBuffer,P=_,k=P&&P.prototype,L=o.DataView,M=L&&L.prototype,j=Object.prototype,I=o.Array,R=o.RangeError,N=r(w),D=r([].reverse),F=h.pack,B=h.unpack,H=function(e){return[255&e]},V=function(e){return[255&e,e>>8&255]},U=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},W=function(e){return F(e,23,4)},z=function(e){return F(e,52,8)},Z=function(e,t){v(e.prototype,t,{get:function(){return x(this)[t]}})},Y=function(e,t,n,o){var r=m(n),i=x(e);if(r+t>i.byteLength)throw R("Wrong index");var a=x(i.buffer).bytes,l=r+i.byteOffset,c=E(a,l,l+t);return o?c:D(c)},q=function(e,t,n,o,r,i){var a=m(n),l=x(e);if(a+t>l.byteLength)throw R("Wrong index");for(var c=x(l.buffer).bytes,u=a+l.byteOffset,s=o(+r),d=0;d<t;d++)c[u+d]=s[i?d:t-d-1]};if(a){var K=T&&"ArrayBuffer"!==_.name;if(s((function(){_(1)}))&&s((function(){new _(-1)}))&&!s((function(){return new _,new _(1.5),new _(NaN),K&&!S})))K&&S&&c(_,"name","ArrayBuffer");else{(P=function(e){return d(this,k),new _(m(e))}).prototype=k;for(var $,X=y(_),J=0;X.length>J;)($=X[J++])in P||c(P,$,_[$]);k.constructor=P}g&&b(M)!==j&&g(M,j);var Q=new L(new P(2)),ee=r(M.setInt8);Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||u(M,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else k=(P=function(e){d(this,k);var t=m(e);A(this,{bytes:N(I(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,M=(L=function(e,t,n){d(this,M),d(e,k);var o=x(e).byteLength,r=p(t);if(r<0||r>o)throw R("Wrong offset");if(r+(n=void 0===n?o-r:f(n))>o)throw R("Wrong length");A(this,{buffer:e,byteLength:n,byteOffset:r}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=r)}).prototype,i&&(Z(P,"byteLength"),Z(L,"buffer"),Z(L,"byteLength"),Z(L,"byteOffset")),u(M,{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return G(Y(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return G(Y(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return B(Y(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return B(Y(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){q(this,1,e,H,t)},setUint8:function(e,t){q(this,1,e,H,t)},setInt16:function(e,t){q(this,2,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){q(this,2,e,V,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){q(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){q(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){q(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){q(this,8,e,z,t,arguments.length>2?arguments[2]:void 0)}});C(P,"ArrayBuffer"),C(L,"DataView"),e.exports={ArrayBuffer:P,DataView:L}},function(e,t,n){var o=n(91),r=n(321),i=o.TYPED_ARRAY_CONSTRUCTOR,a=o.aTypedArrayConstructor;e.exports=function(e){return a(r(e,e[i]))}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,o,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,l=arguments.length;switch(l){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,o)}));case 4:return t.nextTick((function(){e.call(null,n,o,r)}));default:for(i=new Array(l-1),a=0;a<i.length;)i[a++]=arguments[a];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,n(236))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){var o=n(543);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}},function(e,t,n){"use strict";let o=n(349);class r extends o{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=r,r.default=r},function(e,t,n){"use strict";let{isClean:o,my:r}=n(457),i=n(456),a=n(586),l=n(350);class c{constructor(e={}){this.raws={},this[o]=!1,this[r]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,n){let o=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let i=t[r],a=typeof i;"parent"===r&&"object"===a?n&&(o[r]=n):"source"===r?o[r]=i:Array.isArray(i)?o[r]=i.map(t=>e(t,o)):("object"===a&&null!==i&&(i=e(i)),o[r]=i)}return o}(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:o}=this.rangeBy(t);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new i(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[o]){this[o]=!1;let e=this;for(;e=e.parent;)e[o]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let o=(t=this.toString()).indexOf(e.word);-1!==o&&(n=this.positionInside(o,t))}return n}positionInside(e,t){let n=t||this.toString(),o=this.source.start.column,r=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(o=1,r+=1):o+=1;return{column:o,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let o=this.toString(),r=o.indexOf(e.word);-1!==r&&(t=this.positionInside(r,o),n=this.positionInside(r+e.word.length,o))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new a).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},o=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let o=this[e];if(Array.isArray(o))n[e]=o.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof o&&o.toJSON)n[e]=o.toJSON(null,t);else if("source"===e){let i=t.get(o.input);null==i&&(i=r,t.set(o.input,r),r++),n[e]={end:o.end,inputId:i,start:o.start}}else n[e]=o}return o&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=l){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,n){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}get proxyOf(){return this}}e.exports=c,c.default=c},function(e,t,n){"use strict";let o=n(586);function r(e,t){new o(t).stringify(e)}e.exports=r,r.default=r},function(e,t,n){"use strict";let{SourceMapConsumer:o,SourceMapGenerator:r}=n(458),{fileURLToPath:i,pathToFileURL:a}=n(589),{isAbsolute:l,resolve:c}=n(459),{nanoid:u}=n(1380),s=n(585),d=n(456),p=n(590),f=Symbol("fromOffsetCache"),m=Boolean(o&&r),h=Boolean(c&&l);class b{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!h||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=c(t.from)),h&&m){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,o={}){let r,i,l;if(t&&"object"==typeof t){let e=t,o=n;if("number"==typeof e.offset){let o=this.fromOffset(e.offset);t=o.line,n=o.col}else t=e.line,n=e.column;if("number"==typeof o.offset){let e=this.fromOffset(o.offset);i=e.line,l=e.col}else i=o.line,l=o.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let c=this.origin(t,n,i,l);return r=c?new d(e,void 0===c.endLine?c.line:{column:c.column,line:c.line},void 0===c.endLine?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,o.plugin):new d(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:l,line:i},this.css,this.file,o.plugin),r.input={column:n,endColumn:l,endLine:i,line:t,source:this.css},this.file&&(a&&(r.input.url=a(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[f])n=this[f];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let o=0,r=e.length;o<r;o++)n[o]=t,t+=e[o].length+1;this[f]=n}t=n[n.length-1];let o=0;if(e>=t)o=n.length-1;else{let t,r=n.length-2;for(;o<r;)if(t=o+(r-o>>1),e<n[t])r=t-1;else{if(!(e>=n[t+1])){o=t;break}o=t+1}}return{col:e-n[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:c(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,o){if(!this.map)return!1;let r,c,u=this.map.consumer(),s=u.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof n&&(r=u.originalPositionFor({column:o,line:n})),c=l(s.source)?a(s.source):new URL(s.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let d={column:s.column,endColumn:r&&r.column,endLine:r&&r.line,line:s.line,url:c.toString()};if("file:"===c.protocol){if(!i)throw new Error("file: protocol is not available in this PostCSS build");d.file=i(c)}let p=u.sourceContentFor(s.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=b,b.default=b,s&&s.registerInput&&s.registerInput(b)},function(e,t,n){"use strict";let o=n(349);class r extends o{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},function(e,t,n){var o=n(444),r=n(542);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var l=-1,c=t.length;++l<c;){var u=t[l],s=i?i(n[u],e[u],u,n,e):void 0;void 0===s&&(s=e[u]),a?r(n,u,s):o(n,u,s)}return n}},function(e,t,n){"use strict";n(9),n(77),n(26),n(59);var o=n(0),r=n.n(o),i=n(6),a=n(2),l=n.n(a),c=n(43),u=n(4),s=n(3),d=n(66),p=["onClick","dataElement","isElementDisabled","isActive","ariaLabel","ariaExpanded","ariaPressed"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var m={dataElement:l.a.any,ariaExpanded:l.a.bool,ariaPressed:l.a.bool,ariaLabel:l.a.any,isElementDisabled:l.a.any,isActive:l.a.any,onClick:l.a.any},h=function(e){var t=e.onClick,n=e.dataElement,o=e.isElementDisabled,i=e.isActive,a=e.ariaLabel,l=e.ariaExpanded,u=void 0!==l&&l,s=e.ariaPressed,d=void 0!==s&&s,m=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,p);return o?null:r.a.createElement(c.a,f({},m,{isActive:i,dataElement:n,onClick:t,ariaLabel:a,ariaExpanded:u,ariaPressed:d}))},b=Object(i.b)((function(e,t){var n=u.a.isElementOpen(e,t.element);return{isElementDisabled:u.a.isElementDisabled(e,t.dataElement),isActive:n}}),(function(e,t){return{onClick:function(){e(s.a.toggleElement(t.element)),t.onClick&&t.onClick(e)}}}))(h);h.propTypes=m;var g=function(e){var t=Object(d.b)();return r.a.createElement(b,f({},e,{isMobile:t}))};t.a=g},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(34),n(27),n(21),n(20),n(12),n(22),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(11),n(31),n(13);var o=n(0),r=n(1),i=n(6),a=n(4);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var f=function(e,t){var n={top:0,bottom:e-20};return t.current?n.bottom-=t.current.getBoundingClientRect().height:n.bottom-=85,n};t.a=function(e){var t=d(Object(o.useState)({x:0,y:0}),2),n=t[0],l=t[1],c=Object(o.useRef)(null),s=Object(i.e)(a.a.getDocumentContainerWidth),p=Object(i.e)(a.a.getDocumentContainerHeight),m=r.a.getViewerElement(),h=r.a.getScrollViewElement(),b=Object(o.useCallback)((function(e,t){var n=t.x,o=t.y;l({x:n,y:o})}),[]),g=Object(o.useCallback)((function(e,t){var n=t.x,o=t.y;l({x:n,y:o})}),[]),y=function(e){var t=d(e.split("-"),2);return{verticalPosition:t[0],horizontalPosition:t[1]}},v=Object(o.useCallback)((function(){if(!e)return{left:0,top:0};var t=y(e),n=t.verticalPosition,o=t.horizontalPosition,r={left:0,top:0};return r.top=function(e,t,n,o,r){if("top"===e)return(null==n?void 0:n.offsetTop)+10||85;var i=400;return null!=t&&t.current&&(i=t.current.getBoundingClientRect().height),o+(null==r?void 0:r.offsetTop)-10-i||85}(n,c,m,p,h),r.left="right"===o?function(e,t,n){var o=.666*e;if(!t||null==n||!n.current)return o;var r=(null==t?void 0:t.offsetLeft)+(null==t?void 0:t.offsetWidth)+10||o,i=e-n.current.getBoundingClientRect().width-10;return Math.min(r,i)}(s,m,c):function(e,t,n){if(!e||null==t||!t.current)return 10;var o=t.current.getBoundingClientRect().width,r=(null==e?void 0:e.offsetLeft)-10-o||10;return n&&r<n.offsetLeft&&(r=n.offsetLeft+10),(!r||isNaN(r)||r<0)&&(r=10),r}(m,c,h),r}),[e,s,p,m,h]),w=Object(o.useCallback)((function(){var t;if(!e)return{top:0,bottom:0,left:0,right:0};var n,o=y(e),r=o.verticalPosition,i=o.horizontalPosition,a=v(),l=function(e,t,n){return"top"===e?f(t,n):"bottom"===e?function(e,t){var n={top:20-e,bottom:0};return t.current?n.top+=t.current.getBoundingClientRect().height:n.top+=85,n}(t,n):(console.warn("Invalid vertical position: ".concat(e,". Defaulting to top bounds.")),f(t,n))}(r,p,c);n="right"===i?function(e,t){var n={left:-e,right:e/3};return t&&(n.right=e-t.left),n}(s,a):function(e,t,n){var o={left:(null==e?void 0:e.offsetLeft)||0,right:t-10-35};return n&&(o.left=Math.max(0,(null==e?void 0:e.offsetLeft)-n.left+10),o.right-=n.left),o}(h,s,a);var d=u(u({},l),n);d.left=Math.max(d.left,-a.left);var m=(null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0,b=s-a.left-m;return d.right=Math.min(d.right,b),d}),[e,s,p,m,h,v]),E=Object(o.useCallback)((function(){l({x:0,y:0})}),[]);return e?{position:n,setPosition:l,handleDrag:b,handleStop:g,resetPosition:E,containerRef:c,style:v(),bounds:w()}:{position:n,setPosition:l,handleDrag:b,handleStop:g}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n(118),n(8);var o=[["en","English"],["ar","العربية"],["bn","বাংলা"],["cs","česky, čeština"],["de","Deutsch"],["el","Ελληνικά"],["es","Español"],["fa","فارسی"],["fr","Français"],["he","עברית"],["hi","हिन्दी"],["hu","Magyar"],["id","Bahasa Indonesia"],["it","Italiano"],["ja","日本語"],["ko","한국어"],["ms","Melayu"],["nl","Nederlands"],["pl","Polski"],["pt_br","Português"],["ro","Romanian"],["ru","Pусский"],["sv","Svenska"],["th","ไทย"],["tr","Türk"],["uk","українська"],["ur","اردو"],["vi","Tiếng Việt"],["zh_cn","简体中文"],["zh_tw","繁體中文"]],r=o.reduce((function(e,t){var n=t[0];return e[n.toUpperCase()]=n,e}),{});t.a=o},function(e,t,n){"use strict";n(1217);var o=n(0),r=n.n(o),i=n(2),a=function(e){var t=e.children;return r.a.createElement("div",{className:"MobilePopupWrapper","data-element":"mobile-popup-wrapper"},t)},l=a;a.propTypes={children:n.n(i).a.node.isRequired};t.a=l},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(21),n(20),n(12),n(22),n(33),n(18),n(26),n(16),n(30),n(40),n(49),n(24),n(48),n(50),n(41),n(35),n(42),n(56),n(17),n(19),n(11),n(31),n(13),n(38),n(34),n(46),n(77),n(8),n(64);var o=n(0),r=n.n(o),i=n(4),a=n(3),l=n(6),c=n(306),u=n(554),s=n(107);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=["property","onStyleChange","color","enableEdit"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return y(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),l=s,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(y(t={},o,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,y(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,y(d,"constructor",u),y(u,"constructor",c),c.displayName="GeneratorFunction",y(u,r,"GeneratorFunction"),y(d),y(d,r,"Generator"),y(d,o,(function(){return this})),y(d,"toString",(function(){return"[object Generator]"})),(g=function(){return{w:i,m:p}})()}function y(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(y=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){y(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function v(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function w(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){v(i,o,r,a,l,"next",e)}function l(e){v(i,o,r,a,l,"throw",e)}a(void 0)}))}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T=function(e){var t=e.property,n=e.onStyleChange,d=e.color,f=e.enableEdit,h=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,p),y=Object(l.d)(),v=E(Object(c.a)(),1)[0],C=E(Object(o.useState)(""),2),O=C[0],T=C[1],S=E(Object(o.useState)(""),2),x=S[0],A=S[1],_=Object(l.e)(i.a.getCustomColor),P=Object(l.e)(i.a.getCustomColors);Object(o.useEffect)((function(){_&&d&&(O||k(_)!==k(d))&&M(_)}),[_,O]);var k=function(e){return e&&e.A?e.toHexString().toLowerCase():s.b.black},L=function(){var e=w(g().m((function e(t){var n,o,r,i;return g().w((function(e){for(;;)switch(e.n){case 0:n=v("warning.colorPicker.deleteMessage"),o=v("warning.colorPicker.deleteTitle"),r=v("action.ok"),i={message:n,title:o,confirmBtnText:r,onConfirm:function(){var e=w(g().m((function e(){return g().w((function(e){for(;;)switch(e.n){case 0:t&&t(),n=void 0,n=P.filter((function(e){return e!==x})),y(a.a.setCustomColors(n)),A(""),y(a.a.setCustomColor(null));case 1:return e.a(2)}var n}),e)})));return function(){return e.apply(this,arguments)}}()},y(a.a.showWarningMessage(i));case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(e){if(e){var o,r,i=k(e),l=P.includes(i),c=P.indexOf((null==d||null===(o=d.toHexString)||void 0===o||null===(r=o.call(d))||void 0===r?void 0:r.toLowerCase())||"");if("add"===O)l||y(a.a.setCustomColors([].concat(b(P),[i])));else if("update"===O&&!l){var u=b(P);u[c]=i,y(a.a.setCustomColors(u))}n(t,e)}},j=m(m({},h),{},{color:d,property:t,getHexColor:k,handleColorOnClick:function(e){n(t,new window.Core.Annotations.Color(e)),d&&0!==d.A&&d.toHexString().toLowerCase()&&e===d.toHexString().toLowerCase()&&y(a.a.setCustomColor(d))},customColors:P,openColorPicker:function(e){T(e?"add":"update"),y(a.a.openElement("ColorPickerModal"))},colorToBeDeleted:x,setColorToBeDeleted:A,openDeleteModal:L,enableEdit:f});return r.a.createElement(u.a,j)};t.a=T},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(77),n(12),n(33),n(26),n(30),n(59),n(40),n(24),n(41),n(42),n(8),n(86),n(11),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(15),c=n.n(l),u=n(6),s=n(43),d=n(69),p=n(1),f=n(153),m=n(178),h=n(53),b=n(3),g=n(4),y=n(66),v=n(61);n(1139);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function T(e,t,n){return t=S(t),function(e,t){if(t&&("object"==w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],S(e).constructor):t.apply(e,n))}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}var P=function(e){function t(){var e;C(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return A(e=T(this,t,[].concat(o)),"onClick",(function(){var t=e.props,n=t.setActiveToolGroup,o=t.isActive,r=t.closeElement,i=t.openElement,a=t.toolGroup,l=t.toolNames,c=t.lastPickedToolForGroup;o?(r("toolStylePopup"),p.a.setToolMode(d.a),n("")):(r("toolStylePopup"),"signatureTools"===a||"rubberStampTools"===a?p.a.setToolMode(d.a):p.a.setToolMode(c||l[0]),n(a),i("toolsOverlay"))})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e,t=this.props,n=t.toolNames,o=t.lastPickedToolForGroup,i=t.isActive,a=t.mediaQueryClassName,l=t.dataElement,u=t.toolButtonObjects,d=t.allButtonsInGroupDisabled,p=t.iconColorKey,h=t.showColor,b=t.title,g=o||n[0],y=this.props.img?this.props.img:null===(e=u[g])||void 0===e?void 0:e.img,w="",E="",C="";if("never"!==h&&i){var O,T,S=Object(f.a)(g);p&&(w=null===(O=S[p])||void 0===O||null===(T=O.toHexString)||void 0===T?void 0:T.call(O)),E=Object(m.a)(S.FillColor),C=Object(m.a)(S.StrokeColor),g.indexOf("AnnotationCreateFreeText")>-1&&0===(null==S?void 0:S.StrokeThickness)&&(C="ff000000")}return g.indexOf("AnnotationCreateRedaction")>-1&&!i&&(E="868E96"),d?null:r.a.createElement(v.a,{className:c()({"tool-group-button":!0,active:i}),dataElement:l},r.a.createElement(s.a,{title:b,mediaQueryClassName:a,isActive:i,img:y,color:w,fillColor:E,strokeColor:C,dataElement:l,onClick:this.onClick}))}}])&&O(n.prototype,o),i&&O(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.a.PureComponent);A(P,"propTypes",{activeToolName:a.a.string.isRequired,toolGroup:a.a.string.isRequired,mediaQueryClassName:a.a.string.isRequired,dataElement:a.a.string.isRequired,img:a.a.string,title:a.a.string,toolNames:a.a.arrayOf(a.a.string),toolButtonObjects:a.a.object,lastPickedToolForGroup:a.a.string,allButtonsInGroupDisabled:a.a.bool,openElement:a.a.func.isRequired,toggleElement:a.a.func.isRequired,closeElement:a.a.func.isRequired,setActiveToolGroup:a.a.func.isRequired,isActive:a.a.bool.isRequired,showColor:a.a.string,iconColorKey:a.a.string});var k={openElement:b.a.openElement,toggleElement:b.a.toggleElement,closeElement:b.a.closeElement,setActiveToolGroup:b.a.setActiveToolGroup},L=Object(u.b)((function(e,t){return{lastPickedToolForGroup:g.a.getLastPickedToolForGroup(e,t.toolGroup),savedSignatures:g.a.getSavedSignatures(e),isActive:g.a.getActiveToolGroup(e)===t.toolGroup,activeToolName:g.a.getActiveToolName(e),toolNames:g.a.getToolNamesByGroup(e,t.toolGroup),toolButtonObjects:g.a.getToolButtonObjects(e),allButtonsInGroupDisabled:g.a.allButtonsInGroupDisabled(e,t.toolGroup),iconColorKey:g.a.getIconColor(e,Object(h.j)(g.a.getActiveToolName(e)))}}),k)(P),M=function(e){var t=Object(y.c)();return r.a.createElement(L,E({},e,{isTabletAndMobile:t}))};t.a=M},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(21),n(20),n(12),n(84),n(22),n(33),n(18),n(26),n(16),n(30),n(59),n(24),n(8),n(17),n(19),n(11),n(136),n(13);var o=n(0),r=n.n(o),i=(n(318),n(558),n(15)),a=n.n(i),l=n(2),c=n.n(l),u=n(43),s=n(67),d=n(103);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var g=Object(o.forwardRef)((function(e,t){var n=e.dataElement,i=e.disabled,l=e.mount,c=e.unmount,p=e.states,b=e.style,g=e.className,y=e.isFlyoutItem,v=void 0!==y&&y,w=h(r.a.useState(),2)[1],E=r.a.useCallback((function(){return w({})}),[]),C=h(r.a.useState(e.initialState),2),O=C[0],T=C[1];Object(o.useEffect)((function(){return l&&l(S),function(){c&&c()}}));var S=function(e){e&&T(e),E()},x=function(){var t=e.dispatch;p[O].onClick(S,p[O],t)},A=p[O],_=A.title,P=A.img,k=A.getContent,L=A.isActive,M=k?k(p[O]):"",j=["StatefulButton",p[O].className?p[O].className:"",[g]].join(" ").trim();return v?r.a.createElement(s.a,m({},e,{ref:t,label:M||_,additionalClass:L&&L(e.flyoutItem)?"active":"",icon:Object(d.b)({icon:P},e.items),onClickHandler:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return function(t){var o;x(),null==e||null===(o=e.onClickHandler)||void 0===o||o.call.apply(o,[e].concat(n))(t)}},title:_,dataElement:n,disabled:i})):r.a.createElement(u.a,{className:a()(f({CustomButton:!0,Button:!0},j,!0)),isActive:L&&L(e),img:P,label:M,title:_,dataElement:n,onClick:x,disabled:i,style:b})}));g.propTypes={dataElement:c.a.string.isRequired,disabled:c.a.bool,isFlyoutItem:c.a.bool,onClickHandler:c.a.func,flyoutItem:c.a.object,items:c.a.array,initialState:c.a.string.isRequired,mount:c.a.func.isRequired,unmount:c.a.func,style:c.a.object,className:c.a.string,states:c.a.shape({activeState:c.a.shape({img:c.a.string,label:c.a.string,onClick:c.a.func.isRequired,title:c.a.string.isRequired,getContent:c.a.func.isRequired}),AnotherState:c.a.shape({img:c.a.string,label:c.a.string,onClick:c.a.func.isRequired,title:c.a.string.isRequired,getContent:c.a.func.isRequired})})},g.displayName="StatefulButton";var y=r.a.memo(g);t.a=y},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(34),n(27),n(21),n(46),n(77),n(20),n(12),n(22),n(33),n(18),n(26),n(16),n(30),n(59),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(116),n(11),n(31),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(1),l=n(15),c=n.n(l),u=n(2),s=n.n(u),d=n(43),p=n(3),f=n(4),m=n(53),h=n(69),b=n(7),g=n(5),y=n(153),v=n(178),w=n(55),E=n(103),C=n(67);n(318),n(1282);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var L=window.Core.Tools.ToolNames,M=Object(o.forwardRef)((function(e,t){var n=e.title,l=e.dataElement,u=e.label,s=e.img,O=e.disabled,P=e.className,k=e.preset,M=e.headerPlacement,j=e.toolName,I=e.isFlyoutItem,R=void 0!==I&&I,N=e.groupedItem,D=e.allFlyoutItems,F=void 0===D?[]:D,B=e.style,H=(Object(i.e)(f.a.getActiveToolStyles),Object(i.e)(f.a.getActiveToolName)),V=Object(i.e)((function(e){return f.a.getIconColor(e,Object(m.j)(j))})),U=Object(i.e)((function(e){return f.a.getToolButtonObject(e,j)}),i.c),G=Object(i.e)(f.a.getActiveGroupedItems,i.c),W=Object(i.e)((function(e){return f.a.isElementOpen(e,g.a.SIGNATURE_LIST_PANEL)})),z=Object(i.e)((function(e){return f.a.isElementOpen(e,g.a.RUBBER_STAMP_PANEL)})),Z=Object(i.e)((function(e){return f.a.getCustomElementOverrides(e,f.a.getToolButtonDataElement(e,j))}),i.c),Y=Object(i.e)((function(e){return f.a.getIsPanelInFlyout(e,b.j.RUBBER_STAMP_PANEL)}),i.c),q=Object(i.e)((function(e){return f.a.getIsPanelInFlyout(e,b.j.SIGNATURE_LIST_PANEL)}),i.c),K=Object(i.e)((function(e){return f.a.isElementOpen(e,null==q?void 0:q.dataElement)})),$=Object(i.e)((function(e){return f.a.isElementOpen(e,null==Y?void 0:Y.dataElement)})),X=Object(i.d)(),J=_(Object(o.useState)(H===j),2),Q=J[0],ee=J[1],te=[L.SIGNATURE,L.RUBBER_STAMP].includes(j),ne=function(e){e===j&&!te||te&&function(){var e=j===h.a;if(te){if(e||j===L.SIGNATURE)return q?K:W;if(e||j===L.RUBBER_STAMP)return Y?$:z}return!1}()?(ee(!0),re(e,"open")):ee(!1)};Object(o.useEffect)((function(){ne(H)}),[H,W,z,K,$]);var oe,re=function(e,t){var n,o=!1;if(e===L.SIGNATURE?q?(n=q.dataElement,o=!0):n=g.a.SIGNATURE_LIST_PANEL:e===L.RUBBER_STAMP&&(Y?(n=Y.dataElement,o=!0):n=g.a.RUBBER_STAMP_PANEL),n)if("open"===t){if(o)return void X(p.a.openFlyout(n,l));X(p.a.openElement(n))}else"close"===t&&X(p.a.closeElement(n))},ie=function(){if(N){var e=new Set([].concat(A(G),[N])),t=Array.from(e);X(p.a.setActiveGroupedItems(t))}Q?(ee(!1),re(j,"close"),a.a.setToolMode(h.a)):(re(j,"open"),a.a.setToolMode(j))},ae=s||(null==U?void 0:U.img),le=n||(null==U?void 0:U.title),ce="",ue="",se="",de=(null==Z?void 0:Z.showColor)||(null==U?void 0:U.showColor);if("always"===de||"active"===de&&Q){var pe,fe,me=Object(y.a)(j);ce=null==me||null===(pe=me[V])||void 0===pe||null===(fe=pe.toHexString)||void 0===fe?void 0:fe.call(pe),ue=Object(v.a)(null==me?void 0:me.FillColor),se=Object(v.a)(null==me?void 0:me.StrokeColor),j.indexOf(L.FREETEXT)>-1&&0===(null==me?void 0:me.StrokeThickness)&&(se="ff000000")}if([b.q.LEFT,b.q.RIGHT].includes(M)&&(oe=M===b.q.LEFT?b.q.RIGHT:b.q.LEFT),R){var he=le?le.slice(le.indexOf(".")+1):void 0,be=he?Object(w.n)(he):void 0,ge=u||le,ye=Object(E.b)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},U),F),ve=H===j;return r.a.createElement(C.a,T({},e,{ref:t,onClick:ie,label:ge,ariaKeyshortcuts:be,icon:ye,additionalClass:ve?"active":""}))}return r.a.createElement(d.a,{className:c()(x(x(x(x({ToolButton:!0,Button:!0},P,P),"confirm-button","confirm"===k),"cancel-button","cancel"===k),"button-with-label",u)),img:ae,label:u,title:le,dataElement:l,onClick:ie,disabled:O,forceTooltipPosition:oe,isActive:Q,color:ce,fillColor:ue,strokeColor:se,ariaCurrent:Q,ariaPressed:Q,style:B})}));M.propTypes={toolName:s.a.string.isRequired,dataElement:s.a.string,title:s.a.string,label:s.a.string,className:s.a.string,preset:s.a.string,headerPlacement:s.a.string,isFlyoutItem:s.a.bool,img:s.a.string,onClick:s.a.func,disabled:s.a.bool,groupedItem:s.a.string,allFlyoutItems:s.a.array,style:s.a.object},M.displayName="ToolButton";var j=M;t.a=j},function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d}));n(9),n(10),n(14),n(38),n(27),n(21),n(46),n(20),n(12),n(22),n(18),n(16),n(35),n(8),n(17),n(19),n(116),n(64),n(11),n(31),n(13);var o=n(7);function r(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c=function(e,t){return e.viewer.modularComponents[t]},u=function(e,t){var n=[],r=function(t){var a,l=i(t);try{for(l.s();!(a=l.n()).done;){var u=a.value,s=c(e,u);s&&s.type===o.k.GROUPED_ITEMS&&(n.push(u),r(s.items))}}catch(e){l.e(e)}finally{l.f()}};return(Array.isArray(t)?t:[t]).forEach((function(t){var n;r((null===(n=c(e,t))||void 0===n?void 0:n.items)||[])})),n},s=function(e,t){var n=Array.isArray(t)?t:[t],a=function(e,t){var n=[],r=function(a){var l,u=i(a);try{for(u.s();!(l=u.n()).done;){var s=l.value,d=c(e,s);d&&d.type===o.k.GROUPED_ITEMS&&d.items.includes(t)&&(n.push(s),r(s))}}catch(e){u.e(e)}finally{u.f()}};return r(Object.keys(e.viewer.modularComponents)),n}(e,t),l=u(e,t);return Array.from(new Set([].concat(r(n),r(a),r(l))))},d=function(e,t){var n,a=[o.k.BUTTON,o.k.STATEFUL_BUTTON,o.k.RIBBON_ITEM,o.k.DIVIDER,o.k.TOGGLE_BUTTON,o.k.TOOL_BUTTON,o.k.ZOOM,o.k.FLYOUT,o.k.PAGE_CONTROLS,o.k.PRESET_BUTTON,o.k.VIEW_CONTROLS,o.k.TABS_PANEL],l=[],s=u(e,t),d=i([t].concat(r(s)));try{for(d.s();!(n=d.n()).done;){var p,f,m=n.value,h=i((null===(p=c(e,m))||void 0===p?void 0:p.items)||[]);try{for(h.s();!(f=h.n()).done;){var b=f.value,g=c(e,b);g&&a.includes(g.type)&&l.push(b)}}catch(e){h.e(e)}finally{h.f()}}}catch(e){d.e(e)}finally{d.f()}return l}},function(e,t,n){"use strict";n(77),n(17),n(115),n(136);var o=n(470),r=n.n(o);t.a=function(e,t){var n="",o=t["text-decoration"],i=e.underline,a="none"!==o&&!r()(e.underline)&&!e.underline,l=e["line-through"],c="none"!==o&&!r()(e["line-through"])&&!e["line-through"];i?n=(null==o?void 0:o.indexOf("underline"))>-1?o:"".concat(o||""," underline").trim():a&&(n=o.replace(/underline|word/g,"").trim());l?n=(null==o?void 0:o.indexOf("line-through"))>-1?o:"".concat(o||""," line-through").trim():c&&(n=o.replace(/line-through/g,"").trim());return n}},function(e,t,n){"use strict";n(27),n(77),n(16),n(35),n(8),n(31);var o=n(302),r=n(1),i=n(63),a=n(366),l=n(3),c=n(4);t.a=function(e,t){return function(n){var u={AnnotationCreateTextUnderline:"textUnderlineToolButton",AnnotationCreateTextHighlight:"textHighlightToolButton",AnnotationCreateTextSquiggly:"textSquigglyToolButton",AnnotationCreateTextStrikeout:"textStrikeoutToolButton"},s=!1;void 0===n&&(n=Object(a.a)(),s=!0);var d="string"==typeof n?[n]:n,p=c.a.getToolButtonDataElements(t.getState(),d);s&&p.push("toolbarGroup-Forms"),Object.keys(u).forEach((function(e){-1!==d.indexOf(e)&&p.push(u[e])}));var f=r.a.getToolMode();!e&&n.indexOf(null==f?void 0:f.name)>-1&&r.a.setToolMode(window.Core.Tools.ToolNames.EDIT),e?(d.forEach((function(e){e&&o.a.on(e)})),t.dispatch(l.a.enableElements(p,i.c))):(d.forEach((function(e){e&&o.a.off(e)})),t.dispatch(l.a.disableElements(p,i.c)))}}},function(e,t,n){"use strict";n(27),n(16),n(35),n(8),n(31);var o=n(1);t.a=function(){var e=[],t=o.a.getToolModeMap();return Object.keys(t).forEach((function(n){var o=t[n];(o instanceof window.Core.Tools.GenericAnnotationCreateTool||o instanceof window.Core.Tools.TextAnnotationCreateTool||o.defaults)&&e.push(o.name)})),e}},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(27),n(20),n(12),n(44),n(33),n(30),n(24),n(8),n(11),n(31),n(13);var o=n(1),r=n(73),i=n(110),a=n(55),l=n(140),c=n(68),u=n(63),s=n(3),d=n(198),p=n(199),f=n(368),m=n(4),h=n(5),b=n(60),g=n(322),y=n(65);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e,t){return function(n){var v,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.c,C=(w(w(w(w(w(w(w(w(w(w(v={},c.a.Ribbons,{dataElements:["ribbons"]}),c.a.Annotating,{dataElements:["toolsHeader","toggleToolsButton","linkButton","noteState",h.a.NOTE_MULTI_SELECT_MODE_BUTTON,"tools-header","markReplaceTextToolButton"],fn:function(){e?t.dispatch(s.a.enableRibbons()):t.dispatch(s.a.setReadOnlyRibbons())}}),c.a.Measurement,{dataElements:["toolbarGroup-Measure","measurementOverlay","distanceToolGroupButton","arcMeasurementToolGroupButton","perimeterToolGroupButton","areaToolGroupButton","rectangleAreaToolGroupButton","ellipseAreaToolGroupButton","countToolGroupButton","cloudyRectangleAreaToolGroupButton"]}),c.a.Annotations,{dataElements:["ribbons","notesPanel","toggleNotesButton","toggleToolsButton","toolsButton","linkButton","toolsHeader","toolsOverlay","default-ribbon-group","tools-header","notesPanelToggle","rubberStampPanel","stylePanel","signatureListPanel","markReplaceTextToolButton"],fn:function(){e?(o.a.showAnnotations(o.a.getAnnotationsList()),Object(d.a)(t)()):(o.a.hideAnnotations(o.a.getAnnotationsList()),Object(p.a)(t)())}}),c.a.Download,{dataElements:["downloadButton"],fn:function(){e?t.dispatch(s.a.enableDeleteTabWarning()):t.dispatch(s.a.disableDeleteTabWarning())}}),c.a.FilePicker,{dataElements:["filePickerHandler","filePickerButton"],fn:function(){e?a.g.enableShortcut(a.e.OPEN_FILE):a.g.disableShortcut(a.e.OPEN_FILE)}}),c.a.LocalStorage,{fn:function(){e?r.a.enableLocalStorage():r.a.disableLocalStorage()}}),c.a.NotesPanel,{dataElements:["notesPanelButton","notesPanel","toggleNotesButton","notesPanelToggle"]}),c.a.InlineComment,{dataElements:[h.a.INLINE_COMMENT_POPUP,h.a.INLINE_COMMENT_POPUP_EXPAND_BUTTON,h.a.INLINE_COMMENT_POPUP_CLOSE_BUTTON],fn:function(){e&&t.dispatch(s.a.setEnableRightClickAnnotationPopup(!0))}}),c.a.RightClickAnnotationPopup,{dataElements:[],fn:function(){e?t.dispatch(s.a.setEnableRightClickAnnotationPopup(!0)):(t.dispatch(s.a.disableElements([h.a.INLINE_COMMENT_POPUP,h.a.INLINE_COMMENT_POPUP_EXPAND_BUTTON,h.a.INLINE_COMMENT_POPUP_CLOSE_BUTTON],u.c)),t.dispatch(s.a.setEnableRightClickAnnotationPopup(!1)))}}),w(w(w(w(w(w(w(w(w(w(v,c.a.Print,{dataElements:["printButton","printModal"],fn:function(){e?a.g.enableShortcut(a.e.PRINT):a.g.disableShortcut(a.e.PRINT)}}),c.a.Redaction,{dataElements:["toolbarGroup-Redact","redactionToolGroupButton","redactionPanel","redactionPanelToggle","pageRedactionToolGroupButton"],fn:function(){if(e&&!o.a.isFullPDFEnabled())console.warn("Full api is not enabled, applying redactions is disabled");else{o.a.enableRedaction(e);var n=m.a.getCurrentToolbarGroup(t.getState());e||"toolbarGroup-Redact"!==n||Object(f.a)("AnnotationEdit")}}}),c.a.TextSelection,{dataElements:["textPopup","textSelectButton"],fn:function(){e||(o.a.clearSelection(),o.a.setToolMode("AnnotationEdit")),window.Core.Tools.Tool.ENABLE_TEXT_SELECTION=e}}),c.a.TouchScrollLock,{fn:function(){i.a.enableTouchScrollLock=e}}),c.a.Copy,{dataElements:["copyTextButton"],fn:function(){e?a.g.enableShortcut(a.e.COPY):a.g.disableShortcut(a.e.COPY)}}),c.a.MultipleViewerMerging,{fn:function(){t.dispatch(s.a.setIsMultipleViewerMerging(e))}}),c.a.ThumbnailMerging,{fn:function(){t.dispatch(s.a.setThumbnailMerging(e))}}),c.a.ThumbnailReordering,{fn:function(){t.dispatch(s.a.setThumbnailReordering(e))}}),c.a.ThumbnailMultiselect,{fn:function(){t.dispatch(s.a.setThumbnailMultiselect(e))}}),c.a.NotesPanelVirtualizedList,{fn:function(){t.dispatch(s.a.setEnableNotesPanelVirtualizedList(e))}}),w(w(w(w(w(w(w(w(w(w(v,c.a.PageNavigation,{fn:function(){e?(a.g.enableShortcut(a.e.UP),a.g.enableShortcut(a.e.DOWN),a.g.enableShortcut(a.e.PREVIOUS_PAGE),a.g.enableShortcut(a.e.NEXT_PAGE)):(a.g.disableShortcut(a.e.UP),a.g.disableShortcut(a.e.DOWN),a.g.disableShortcut(a.e.PREVIOUS_PAGE),a.g.disableShortcut(a.e.NEXT_PAGE),o.a.setDisplayMode("Single")),i.a.allowSwipe=e,t.dispatch(s.a.setAllowPageNavigation(e))}}),c.a.MouseWheelZoom,{fn:function(){t.dispatch(s.a.setMouseWheelZoom(e))}}),c.a.Search,{dataElements:["searchButton","searchPanelToggle"],fn:function(){e?a.g.enableShortcut(a.e.SEARCH):a.g.disableShortcut(a.e.SEARCH)}}),c.a.MathSymbols,{dataElements:["mathSymbolsButton","richTextPopup"]}),c.a.OutlineEditing,{dataElements:[h.a.OUTLINE_MULTI_SELECT,h.a.OUTLINE_ADD_NEW_BUTTON_CONTAINER,h.a.OUTLINE_ADD_NEW_BUTTON,h.a.OUTLINE_RENAME_BUTTON,h.a.OUTLINE_SET_DESTINATION_BUTTON,h.a.OUTLINE_DELETE_BUTTON,h.a.OUTLINE_MOVE_UP_BUTTON,h.a.OUTLINE_MOVE_DOWN_BUTTON,h.a.OUTLINE_MOVE_LEFT_BUTTON,h.a.OUTLINE_MOVE_RIGHT_BUTTON],fn:function(){Object(g.a)()===b.a.OFFICE&&console.warn("Outline Editing is not supported in Office Viewing mode"),t.dispatch(s.a.setIsOutlineEditing(e))}}),c.a.NotesShowLastUpdatedDate,{fn:function(){t.dispatch(s.a.setNotesShowLastUpdatedDate(e))}}),c.a.MultiTab,{fn:function(){Object(y.p)()?console.warn("Multi-tab is not supported in Office Editor mode"):e?(m.a.isMultiViewerMode(t.getState())&&(console.error("MultiTab and MultiViewerMode cannot be enabled at the same time, disabling MultiViewerMode"),t.dispatch(s.a.setIsMultiViewerMode(!1))),t.dispatch(Object(l.b)())):(t.dispatch(s.a.setMultiTab(!1)),t.dispatch(s.a.setTabManager(null)),t.dispatch(s.a.setTabs([])),t.dispatch(s.a.setActiveTab(0)))}}),c.a.ChangeView,{dataElements:["changeViewToolGroupButton"]}),c.a.ContentEdit,{dataElements:["toolbarGroup-EditText","addParagraphToolGroupButton","addImageContentToolGroupButton","contentEditButton","searchAndReplace"]}),c.a.MultiViewerMode,{fn:function(){e&&m.a.getIsMultiTab(t.getState())&&(console.error("MultiTab and MultiViewerMode cannot be enabled at the same time, disabling MultiTab"),t.dispatch(s.a.setMultiTab(!1)),t.dispatch(s.a.setTabManager(null)),t.dispatch(s.a.setTabs([])),t.dispatch(s.a.setActiveTab(0))),t.dispatch(s.a.setIsMultiViewerModeAvailable(e))}}),w(w(w(w(w(w(v,c.a.ComparePages,{dataElements:["comparePanelToggle"],fn:function(){t.dispatch(s.a.setComparePagesButtonEnabled(e))}}),c.a.Initials,{dataElements:["signatureOptionsDropdown","savedSignatureAndInitialsTabs"],fn:function(){var n=t.getState(),o=m.a.getDisplayedSignatures(n);(null==o?void 0:o.length)>0&&t.dispatch(s.a.setInitialsOffset(o.length)),t.dispatch(s.a.setInitialsMode(e))}}),c.a.SavedSignaturesTab,{dataElements:[h.a.SAVED_SIGNATURES_TAB],fn:function(){t.dispatch(s.a.setSavedSignaturesTabEnabled(e)),e||t.dispatch(s.a.setSelectedTab("signatureModal","inkSignaturePanelButton"))}}),c.a.Panel,{fn:function(){var n=t.getState().viewer.genericPanels.map((function(e){return e.dataElement}));e?t.dispatch(s.a.enableElements(n,E)):t.dispatch(s.a.disableElements(n,E))}}),c.a.LegacyRichTextPopup,{dataElements:[h.a.LEGACY_RICH_TEXT_POPUP]}),c.a.Portfolio,{fn:function(){if(e){if(!o.a.isFullPDFEnabled())return void console.warn("Full api is not enabled, portfolio is disabled");t.dispatch(s.a.enableElements([h.a.CREATE_PORTFOLIO_BUTTON,h.a.PORTFOLIO_PANEL_BUTTON,h.a.PORTFOLIO_PANEL],u.c))}else t.dispatch(s.a.disableElements([h.a.CREATE_PORTFOLIO_BUTTON,h.a.PORTFOLIO_PANEL_BUTTON,h.a.PORTFOLIO_PANEL],u.c))}}));Array.isArray(n)||(n=[n]),n.forEach((function(n){var o=C[n],r=o.dataElements,i=void 0===r?[]:r,a=o.fn,l=void 0===a?function(){}:a;e?t.dispatch(s.a.enableElements(i,E)):t.dispatch(s.a.disableElements(i,E)),l()}))}}},function(e,t,n){"use strict";var o=n(1),r=n(3),i=n(4);t.a=function(e){return function(t){var n=e.getState();if(n.featureFlags.customizableUI){var a=i.a.getRibbonAssociatedWithTool(n,t);a&&e.dispatch(r.a.setActiveCustomRibbon(a))}o.a.setToolMode(t)}}},function(e,t,n){"use strict";t.a=function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)}},function(e,t,n){"use strict";n(8),n(56);t.a=function(e){return new Promise((function(t,n){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){return t(o.result)},o.onerror=n}))}},function(e,t,n){"use strict";n(9),n(10),n(14),n(38),n(21),n(46),n(77),n(20),n(12),n(44),n(22),n(18),n(16),n(8),n(88),n(17),n(19),n(116),n(64),n(11),n(13);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=(n(581),n(306)),c=n(2),u=n.n(c),s=n(3),d=n(6),p=n(80),f=n(4),m=n(43),h=n(119),b=n(90),g=n(377),y=n(378),v=n(61);function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T={dataElement:u.a.string,color:u.a.any,ariaTypeLabel:u.a.string,activeTool:u.a.string,type:u.a.string,onColorChange:u.a.func,hasTransparentColor:u.a.bool},S=function(e){var t=e.dataElement,n=e.onColorChange,i=e.hasTransparentColor,c=void 0!==i&&i,u=e.color,C=e.activeTool,O=e.type,T=e.ariaTypeLabel,S=Object.values(window.Core.Tools.ToolNames).includes(C)?C:window.Core.Tools.ToolNames.EDIT,x=Object(l.a)().t,A=Object(d.d)(),_=Object(d.e)((function(e){return f.a.getColors(e,S,O)})),P=Object(d.e)(f.a.getCustomColors),k=Array.from(new Set([].concat(E(_),E(P)))),L=w(Object(o.useState)(),2),M=L[0],j=L[1],I=w(Object(o.useState)(!1),2),R=I[0],N=I[1],D=Object(o.useRef)(!0);Object(o.useEffect)((function(){D.current=!0}),[S,u]),Object(o.useEffect)((function(){u&&j(Object(p.e)(u))}),[u]);var F=Object(g.a)({colors:k,setSelectedColor:j,onColorChange:n,setColors:function(e){return A(s.a.setColors(e,S,O,!0))},useHex:!0}),B=Object(b.a)(F),H=Object(y.a)({selectedColor:M,colors:k,setSelectedColor:j,onColorChange:n,updateColorsAction:function(e){return A(s.a.setColors(e,S,O,!0))}}),V=k.map((function(e){return e.toLowerCase()}));c&&V.push("transparent"),M||j("transparent"),V.indexOf(M)>6&&!R&&D.current&&(N(!0),D.current=!1);var U=V.length<=7,G=!(M&&!V.includes(M)),W=V.length<=1||!G;return R||(V=V.slice(0,7)),r.a.createElement(v.a,{dataElement:t},r.a.createElement("div",{className:a()("ColorPalette")},V.map((function(e){return Object(p.e)(e)})).map((function(e,t){var o,i,l;return e?r.a.createElement(h.a,{content:"".concat(x("option.colorPalette.colorLabel")," ").concat(null==e||null===(o=e.toUpperCase)||void 0===o?void 0:o.call(e)),key:null==e||null===(i=e.toUpperCase)||void 0===i?void 0:i.call(e)},r.a.createElement("button",{className:"cell-container",onClick:function(){j(e),n(e)},"aria-label":"".concat(T," ").concat(x("option.colorPalette.colorLabel")," ").concat(null==e||null===(l=e.toUpperCase)||void 0===l?void 0:l.call(e)),"aria-current":Object(p.e)(M)===e||!Object(p.e)(M)&&"transparent"===e},r.a.createElement("div",{className:a()({"cell-outer":!0,active:Object(p.e)(M)===e||!Object(p.e)(M)&&"transparent"===e})},r.a.createElement("div",{className:a()({cell:!0,border:!0}),style:{backgroundColor:e}},"transparent"===e&&p.f)))):r.a.createElement("div",{key:t,className:"dummy-cell"})}))),r.a.createElement("div",{className:"palette-controls"},r.a.createElement("div",{className:"button-container"},r.a.createElement(m.a,{img:"icon-header-zoom-in-line",title:x("action.addNewColor"),onClick:B,className:"control-button",dataElement:"addCustomColor",ariaLabel:"".concat(T," ").concat(x("action.addNewColor")," ").concat(x("action.fromCustomColorPicker"))}),r.a.createElement(m.a,{img:"icon-delete-line",title:x("action.deleteColor"),onClick:H,disabled:W,className:"control-button",dataElement:"deleteSelectedColor",ariaLabel:"".concat(T," ").concat(x("action.deleteColor")," ").concat(M)}),r.a.createElement(m.a,{img:"icon-copy2",title:x("action.copySelectedColor"),onClick:function(){var e=Object(p.e)(M),t=[].concat(k,[e]);A(s.a.setColors(t,S,O,!0))},disabled:G,className:"control-button",dataElement:"copySelectedColor",ariaLabel:"".concat(T," ").concat(x("action.copySelectedColor")," ").concat(M)})),r.a.createElement("button",{className:a()("show-more-button control-button",{hidden:U}),onClick:function(){N(!R)},"aria-label":"".concat(T," ").concat(x(x(R?"action.showLessColors":"action.showMoreColors")))},x(R?"message.showLess":"message.showMore"))))};S.propTypes=T,t.a=S},function(e,t){e.exports=function(e){return null===e}},function(e,t,n){"use strict";var o=n(0),r=(n(38),n(18),n(8),n(19),0),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";return"".concat(e,"_").concat((r++).toString(16))},a=function(e){return Object(o.useMemo)((function(){return e||i("label")}),[e])};t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(142);function r(e){var t=function(e,t){if("object"!=Object(o.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Object(o.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(o.a)(t)?t:t+""}},function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13),n(93);var o=n(0),r=n(6),i=n(3),a=n(1),l=n(5);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}t.a=function(e){var t=Object(r.d)(),n=c(Object(o.useState)(null),2),u=n[0],s=n[1],d=c(Object(o.useState)(null),2),p=d[0],f=d[1];return Object(o.useEffect)((function(){var n=function(n,o){setTimeout((function(){o instanceof window.Core.Annotations.FreeTextAnnotation&&!o.getContentEditAnnotationId()&&o.ToolName!==window.Core.Tools.ToolNames.ADD_PARAGRAPH&&(s(o),f(n),e&&e([n,o]),t(i.a.openElements(l.a.RICH_TEXT_POPUP)))}),0)};return a.a.addEventListener("editorFocus",n),function(){a.a.removeEventListener("editorFocus",n)}}),[t]),{editor:p,annotation:u}}},function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(306);n(1107);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c=function(e){var t=e.onPropertyChange,n=e.properties,l=e.placeholderText,c=n.OverlayText||"",u=a(Object(o.useState)(c),2),s=u[0],d=u[1];Object(o.useEffect)((function(){d(c)}),[c]);var p=a(Object(i.a)(),1)[0];return r.a.createElement(r.a.Fragment,null,r.a.createElement("input",{className:"overlay-text-input",value:s,onChange:function(e){d(e.target.value),t("OverlayText",e.target.value)},onKeyDown:function(e){var t;"Enter"===e.key&&(null===(t=e.target)||void 0===t||t.blur())},placeholder:l||p("option.stylePopup.labelTextPlaceholder")}))};t.a=c},function(e,t,n){"use strict";n(9),n(10),n(14),n(38),n(21),n(46),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(64),n(11),n(13);var o=n(0),r=n(3),i=n(4),a=n(80),l=n(54),c=n(5),u=n(6),s=n(57),d=n(65);function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var m=function(e){var t=e.colors,n=e.setSelectedColor,f=void 0===n?function(){}:n,m=e.onColorChange,h=e.type,b=e.activeToolName,g=void 0===b?"":b,y=e.setColors,v=e.useHex,w=void 0!==v&&v,E=e.spreadsheetSetter,C=e.spreadsheetGetter,O=Object(u.d)(),T=Object(u.f)(),S=Object(u.e)(i.a.getCustomColors),x=Object(u.e)((function(e){return Object(d.q)()?i.a[C](e):[]}));return Object(o.useCallback)((function(){O(r.a.openElement(c.a.COLOR_PICKER_MODAL));var e=function(n){var o=n.detail,i=o.element,u=o.isVisible;if(i===c.a.COLOR_PICKER_MODAL&&!u){var h=Object(a.b)(O,T),b=Object(a.e)(h),g=w?b:h;if(b)if(t.includes(b))f(g),m(g);else{var v=[].concat(p(t),[b]);y(v),f(g),m(g);var C=Object(d.q)()?r.a[E]([].concat(p(x),[b])):r.a.setCustomColors([].concat(p(S),[b]));O(C)}Object(s.c)().removeEventListener(l.a.VISIBILITY_CHANGED,e)}};Object(s.c)().addEventListener(l.a.VISIBILITY_CHANGED,e)}),[t,h,g])};t.a=m},function(e,t,n){"use strict";n(9),n(10),n(14),n(34),n(21),n(77),n(20),n(12),n(22),n(128),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(80),r=n(65),i=n(6),a=n(4),l=n(3);function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var s=function(e){var t=e.selectedColor,n=e.colors,u=e.transformFn,s=void 0===u?function(e){return e}:u,d=e.setSelectedColor,p=e.onColorChange,f=e.updateColorsAction,m=e.spreadsheetSetter,h=e.spreadsheetGetter,b=Object(i.d)(),g=Object(i.e)(a.a.getCustomColors),y=Object(i.e)((function(e){return Object(r.q)()?a.a[h](e):[]}));return function(){var e=Object(o.e)(t),i=c(n),a=i.indexOf(e);if(a>-1){var u=a===i.length-1?a-1:a+1,h=s(i[u]);d&&d(i[u]),p(h);var v=(Object(r.q)()?y:g).filter((function(e){return e!==i[a]})),w=Object(r.q)()?l.a[m](v):l.a.setCustomColors(v);b(w),i.splice(a,1),f(i)}}};t.a=s},function(e,t,n){(function(t){var o=n(1153).Writable,r=n(1168),i=n(1171),a=t.URL||t.webkitURL||t.mozURL;function l(){if(!(this instanceof l))return new l;o.call(this),this._chunks=[],this._blob=null,this.length=0}r.inherits(l,o),l.prototype._write=function(e,t,n){e instanceof Uint8Array||(e=new Uint8Array(e)),this.length+=e.length,this._chunks.push(e),n()},l.prototype.toBlob=function(e){return e=e||"application/octet-stream",this._blob||(this._blob=new i(this._chunks,{type:e}),this._chunks=[]),this._blob.type!==e&&(this._blob=new i([this._blob],{type:e})),this._blob},l.prototype.toBlobURL=function(e){return a.createObjectURL(this.toBlob(e))},e.exports=l}).call(this,n(123))},function(e,t,n){(function(o){var r;if("function"==typeof fetch&&(void 0!==o&&o.fetch?r=o.fetch:"undefined"!=typeof window&&window.fetch&&(r=window.fetch)),"undefined"==typeof window||void 0===window.document){var i=r||n(1405);i.default&&(i=i.default),t.default=i,e.exports=t.default}}).call(this,n(123))},function(e,t,n){"use strict";n(9),n(10),n(14),n(32),n(38),n(34),n(82),n(27),n(21),n(46),n(77),n(20),n(12),n(84),n(44),n(22),n(94),n(164),n(33),n(18),n(16),n(30),n(49),n(24),n(48),n(50),n(35),n(8),n(17),n(19),n(64),n(11),n(115),n(31),n(13);var o=n(1),r=n(3),i=n(4);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function f(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,b(o.key),o)}}function b(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var g=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"initialize",value:function(e,t){var n=this;this.store=e,this.events={},this.idMentionDataMap={},this.allowedTrailingCharacters=[" ","\n"],this.mentionLookupCallback=this.defaultMentionsSearchCallback,t.addEventListener("annotationChanged",(function(e,t,o){var r=o.imported;e.length&&n.getUserData().length&&("add"===t?r?n.handleAnnotationsAdded(e,r):n.handleAnnotationsAdded(e):"modify"===t?n.handleAnnotationsModified(e):"delete"===t&&n.handleAnnotationsDeleted(e))})),t.addEventListener("annotationIdChanged",(function(e,t,o){n.handleAnnotationIdChanged(e,t,o)}))}},{key:"handleAnnotationsAdded",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];e.forEach((function(e){var n=t.extractMentionDataFromAnnot(e);t.idMentionDataMap[e.Id]=n,o=o.concat(n.mentions)})),o.length&&!n&&this.trigger("mentionChanged",[o,"add"])}},{key:"handleAnnotationsModified",value:function(e){var t,n=this,o=[],r=[],i=[],a=p(e);try{for(a.s();!(t=a.n()).done;){var l=t.value,c=this.idMentionDataMap[l.Id]||{mentions:[],contentWithoutMentions:""},u=this.extractMentionDataFromAnnot(l),s=c.mentions,d=u.mentions;this.idMentionDataMap[l.Id]=u;var f,m=p(d);try{var h=function(){var e=f.value;!s.find((function(t){return n.isSameMention(t,e)}))&&o.push(e)};for(m.s();!(f=m.n()).done;)h()}catch(e){m.e(e)}finally{m.f()}var b,g=p(s);try{var y=function(){var e=b.value;!d.find((function(t){return n.isSameMention(e,t)}))&&i.push(e)};for(g.s();!(b=g.n()).done;)y()}catch(e){g.e(e)}finally{g.f()}s.length&&c.contentWithoutMentions!==u.contentWithoutMentions&&(r=r.concat(d))}}catch(e){a.e(e)}finally{a.f()}o.length&&this.trigger("mentionChanged",[o,"add"]),r.length&&this.trigger("mentionChanged",[r,"modify"]),i.length&&this.trigger("mentionChanged",[i,"delete"])}},{key:"handleAnnotationsDeleted",value:function(e){var t=this,n=[];e.forEach((function(e){t.idMentionDataMap[e.Id]&&(n=n.concat(t.idMentionDataMap[e.Id].mentions),delete t.idMentionDataMap[e.Id])})),n.length&&this.trigger("mentionChanged",[n,"delete"])}},{key:"handleAnnotationIdChanged",value:function(e,t,n){if(this.idMentionDataMap[t]){var o=this.idMentionDataMap[t];delete this.idMentionDataMap[t],this.idMentionDataMap[n]=o,o.mentions&&o.mentions.forEach((function(e){e.annotId=n}))}}},{key:"doesDeltaContainMention",value:function(e){return e.some((function(e){var t;return null===(t=e.insert)||void 0===t?void 0:t.mention}))}},{key:"getFormattedTextFromDeltas",value:function(e){var t=[];return e.forEach((function(e){if(e.insert)if("string"==typeof e.insert)t.push(e.insert);else if(e.insert.mention){var n=e.insert.mention,o="".concat(n.denotationChar,"[").concat(n.value,"](").concat(n.id,")");t.push(o)}})),t.join("")}},{key:"extractMentionDataFromStr",value:function(e){for(var t,n=/@\[(.*?)\]\((.*?)\)/g,o=[],r=e;null!==(t=n.exec(e));){var i=d(t,3),a=i[0],l=i[1],c=i[2];o.push(c),r=r.replace(a.slice(1),l)}return{plainTextValue:r,ids:o}}},{key:"extractMentionDataFromAnnot",value:function(e){var t=this,n=e.getCustomData("trn-mention"),o=this.getUserData(),r=e.getContents(),i={mentions:[],contentWithoutMentions:r};return""===n||(n=JSON.parse(n),o.forEach((function(o){n.ids.includes(o.id)&&t.isValidMention(r,o.value)&&(i.mentions.push(u(u({},o),{},{annotId:e.Id})),i.contentWithoutMentions=i.contentWithoutMentions.replace("@".concat(o.value),""))}))),i}},{key:"isValidMention",value:function(e,t){t="@".concat(t);var n=e.indexOf(t),o=e[n+t.length],r=void 0===o,i=this.getAllowedTrailingCharacters();return Array.isArray(i)&&-1===i.indexOf("\n")&&i.push("\n"),r||"*"===i||i.includes(o)}},{key:"isSameMention",value:function(e,t){for(var n in e)if(e[n]!==t[n])return!1;return!0}},{key:"createMentionReply",value:function(e,t){var n=this.extractMentionDataFromStr(t),r=n.plainTextValue,i=n.ids,a=new window.Core.Annotations.StickyAnnotation;return a.InReplyTo=e.Id,a.X=e.X,a.Y=e.Y,a.PageNumber=e.PageNumber,a.Author=o.a.getCurrentUser(),a.setContents(r||""),a.setCustomData("trn-mention",JSON.stringify({contents:t,ids:i})),e.addReply(a),a}},{key:"setUserData",value:function(e){e=e.map((function(e){return u(u({},e),{},{id:e.id||e.email||e.value})})),this.store.dispatch(r.a.setUserData(e))}},{key:"getUserData",value:function(){return i.a.getUserData(this.store.getState())}},{key:"setAllowedTrailingCharacters",value:function(e){this.allowedTrailingCharacters=e}},{key:"getAllowedTrailingCharacters",value:function(){return this.allowedTrailingCharacters}},{key:"on",value:function(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this}},{key:"off",value:function(e,t){return this.events?(void 0===e&&(this.events={}),this.events[e]?(this.events[e]=t?this.events[e].filter((function(e){return e!==t})):[],this):this):this}},{key:"one",value:function(e,t){var n=this,o=t;return t=function(){n.off(e,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];o.apply(n,i)},this.on(e,t)}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return this.events&&this.events[e]?(1===o.length&&Array.isArray(o[0])&&(o=o[0]),this.events[e].forEach((function(e){e.call.apply(e,[t].concat(l(o)))})),this):this}},{key:"addEventListener",value:function(){this.on.apply(this,arguments)}},{key:"setEventListener",value:function(){this.on.apply(this,arguments)}},{key:"removeEventListener",value:function(){this.off.apply(this,arguments)}},{key:"setMentionLookupCallback",value:function(e){this.mentionLookupCallback=e}},{key:"getMentionLookupCallback",value:function(){return this.mentionLookupCallback}},{key:"defaultMentionsSearchCallback",value:function(e,t){if(0===t.length)return e;var n=[],o=t.toLowerCase();return e.forEach((function(e){var t=e.value.toLowerCase().includes(o),r=e.id&&e.id.toLowerCase().includes(o),i=e.email&&e.email.toLowerCase().includes(o);(t||r||i)&&n.push(e)})),n}}])&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();t.a=new g},function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(306),a=n(154),l=n(43),c=n(324),u=n(2),s=n.n(u),d=(n(1149),n(163));function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var m=function(e){var t=e.onSwipedDown,n=e.onSwipedUp,o=e.closeHandler,i=e.swipeToClose,l=void 0!==i&&i,c=e.children;return l?r.a.createElement(a.a,{onSwipedUp:n||o,onSwipedDown:t||o,preventDefaultTouchmoveEvent:!0},c):c};m.propTypes={onSwipedDown:s.a.func,onSwipedUp:s.a.func,closeHandler:s.a.func,swipeToClose:s.a.bool,children:s.a.node};var h=r.a.forwardRef((function(e,t){var n=p(Object(i.a)(),1)[0],a=Object(d.a)(e.onCloseClick);Object(o.useEffect)((function(){var t=function(t){"Escape"===t.key&&e.isOpen&&a()};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[a,e.isOpen]);var u=e.accessibleLabel?n(e.accessibleLabel):n(e.title);return r.a.createElement(c.a,{locked:e.isOpen,ref:t},r.a.createElement("div",{className:"modal-container",onClick:e.containerOnClick,role:"dialog","aria-modal":"true","aria-label":u},r.a.createElement("div",{className:"wrapper"},r.a.createElement(m,e,r.a.createElement("div",{className:"swipe-indicator"}),e.title?r.a.createElement("div",{className:"header-container"},r.a.createElement("div",{className:"left-header"},r.a.createElement("h2",null,n(e.title)),e.backButtonDataElement&&r.a.createElement(l.a,{className:"back-button",dataElement:e.backButtonDataElement,title:n("action.back"),img:"icon-arrow-back",onClick:e.onBackClick,ariaLabel:n("action.back")})),r.a.createElement(l.a,{className:"close-button",dataElement:e.closeButtonDataElement,title:"action.close",img:"ic_close_black_24px",onClick:a,ariaLabel:n("action.close")})):null),e.children)))}));h.propTypes={title:s.a.string,isOpen:s.a.bool.isRequired,closeButtonDataElement:s.a.string,backButtonDataElement:s.a.string,onBackClick:s.a.func,onCloseClick:s.a.func.isRequired,containerOnClick:s.a.func,swipeToClose:s.a.bool,accessibleLabel:s.a.string,onSwipedUp:s.a.func,onSwipedDown:s.a.func},h.displayName="ModalWrapper";var b=h;t.a=b},function(e,t,n){"use strict";var o,r=n(58),i=n(70),a=n(158).f,l=n(152),c=n(97),u=n(435),s=n(129),d=n(436),p=n(138),f=i("".endsWith),m=i("".slice),h=Math.min,b=d("endsWith");r({target:"String",proto:!0,forced:!!(p||b||(o=a(String.prototype,"endsWith"),!o||o.writable))&&!b},{endsWith:function(e){var t=c(s(this));u(e);var n=arguments.length>1?arguments[1]:void 0,o=t.length,r=void 0===n?o:h(l(n),o),i=c(e);return f?f(t,i,r):m(t,r-i.length,r)===i}})},function(e,t,n){n(669)},function(e,t,n){var o=n(112);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){var o=n(58),r=n(52),i=n(70),a=r.Date,l=i(a.prototype.getTime);o({target:"Date",stat:!0},{now:function(){return l(new a)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(338);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";var o=n(677),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return o.isMemo(e)?a:l[e.$$typeof]||r}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=a;var u=Object.defineProperty,s=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=f(n);r&&r!==m&&e(t,r,o)}var a=s(n);d&&(a=a.concat(d(n)));for(var l=c(t),h=c(n),b=0;b<a.length;++b){var g=a[b];if(!(i[g]||o&&o[g]||h&&h[g]||l&&l[g])){var y=p(n,g);try{u(t,g,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";var o=n(58),r=n(415);o({target:"String",proto:!0,forced:n(416)("strike")},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var o=n(85),r=n(336),i=n(99),a=n(129),l=n(531),c=n(97),u=n(188),s=n(337);r("search",(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:u(t,e);return r?o(r,t,n):new RegExp(t)[e](c(n))},function(e){var o=i(this),r=c(e),a=n(t,o,r);if(a.done)return a.value;var u=o.lastIndex;l(u,0)||(o.lastIndex=0);var d=s(o,r);return l(o.lastIndex,u)||(o.lastIndex=u),null===d?-1:d.index}]}))},function(e,t,n){n(627)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},function(e,t,n){"use strict";var o=n(70),r=n(91),i=o(n(1069)),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).every,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("every",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(85),i=n(447),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("fill",(function(e){var t=arguments.length;return r(i,a(this),e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).filter,i=n(1070),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("filter",(function(e){var t=r(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).find,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("find",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).findIndex,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("findIndex",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(126).forEach,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("forEach",(function(e){r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(277).includes,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("includes",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(277).indexOf,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("indexOf",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(52),r=n(71),i=n(70),a=n(91),l=n(12),c=n(83)("iterator"),u=o.Uint8Array,s=i(l.values),d=i(l.keys),p=i(l.entries),f=a.aTypedArray,m=a.exportTypedArrayMethod,h=u&&u.prototype,b=!r((function(){h[c].call([1])})),g=!!h&&h.values&&h[c]===h.values&&"values"===h.values.name,y=function(){return s(f(this))};m("entries",(function(){return p(f(this))}),b),m("keys",(function(){return d(f(this))}),b),m("values",y,b||!g,{name:"values"}),m(c,y,b||!g,{name:"values"})},function(e,t,n){"use strict";var o=n(91),r=n(70),i=o.aTypedArray,a=o.exportTypedArrayMethod,l=r([].join);a("join",(function(e){return l(i(this),e)}))},function(e,t,n){"use strict";var o=n(91),r=n(177),i=n(515),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return r(i,a(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,n){"use strict";var o=n(91),r=n(126).map,i=n(344),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},function(e,t,n){"use strict";var o=n(91),r=n(442).left,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return r(i(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=n(442).right,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return r(i(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(91),r=o.aTypedArray,i=o.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=r(this).length,n=a(t/2),o=0;o<n;)e=this[o],this[o++]=this[--t],this[t]=e;return this}))},function(e,t,n){"use strict";var o=n(52),r=n(85),i=n(91),a=n(113),l=n(550),c=n(108),u=n(71),s=o.RangeError,d=o.Int8Array,p=d&&d.prototype,f=p&&p.set,m=i.aTypedArray,h=i.exportTypedArrayMethod,b=!u((function(){var e=new Uint8ClampedArray(2);return r(f,e,{length:1,0:3},1),3!==e[1]})),g=b&&i.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));h("set",(function(e){m(this);var t=l(arguments.length>1?arguments[1]:void 0,1),n=c(e);if(b)return r(f,this,n,t);var o=this.length,i=a(n),u=0;if(i+t>o)throw s("Wrong length");for(;u<i;)this[t+u]=n[u++]}),!b||g)},function(e,t,n){"use strict";var o=n(91),r=n(344),i=n(71),a=n(216),l=o.aTypedArray;(0,o.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(l(this),e,t),o=r(this),i=0,c=n.length,u=new o(c);c>i;)u[i]=n[i++];return u}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var o=n(91),r=n(126).some,i=o.aTypedArray;(0,o.exportTypedArrayMethod)("some",(function(e){return r(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var o=n(52),r=n(70),i=n(71),a=n(149),l=n(440),c=n(91),u=n(538),s=n(539),d=n(212),p=n(540),f=c.aTypedArray,m=c.exportTypedArrayMethod,h=o.Uint16Array,b=h&&r(h.prototype.sort),g=!(!b||i((function(){b(new h(2),null)}))&&i((function(){b(new h(2),{})}))),y=!!b&&!i((function(){if(d)return d<74;if(u)return u<67;if(s)return!0;if(p)return p<602;var e,t,n=new h(516),o=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,o[e]=e-2*t+3;for(b(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==o[e])return!0}));m("sort",(function(e){return void 0!==e&&a(e),y?b(this,e):l(f(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||g)},function(e,t,n){"use strict";var o=n(91),r=n(152),i=n(190),a=n(344),l=o.aTypedArray;(0,o.exportTypedArrayMethod)("subarray",(function(e,t){var n=l(this),o=n.length,c=i(e,o);return new(a(n))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,r((void 0===t?o:i(t,o))-c))}))},function(e,t,n){"use strict";var o=n(52),r=n(177),i=n(91),a=n(71),l=n(216),c=o.Int8Array,u=i.aTypedArray,s=i.exportTypedArrayMethod,d=[].toLocaleString,p=!!c&&a((function(){d.call(new c(1))}));s("toLocaleString",(function(){return r(d,p?l(u(this)):u(this),l(arguments))}),a((function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var o=n(91).exportTypedArrayMethod,r=n(71),i=n(52),a=n(70),l=i.Uint8Array,c=l&&l.prototype||{},u=[].toString,s=a([].join);r((function(){u.call({})}))&&(u=function(){return s(this)});var d=c.toString!=u;o("toString",u,d)},function(e,t,n){var o=n(70),r=n(129),i=n(97),a=/"/g,l=o("".replace);e.exports=function(e,t,n,o){var c=i(r(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+l(i(o),a,""")+'"'),u+">"+c+"</"+t+">"}},function(e,t,n){var o=n(71);e.exports=function(e){return o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";n(9),n(10),n(14),n(34),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(3),r=n(15),i=n.n(r),a=n(246),l=n(66),c=n(148),u=n(2),s=n.n(u),d=n(0),p=n.n(d),f=n(6),m=n(154),h=n(4),b=n(256),g=n(78);var y,v=n(23),w=n(5);n(1235);function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var O=[w.a.MENU_OVERLAY,"groupOverlay",w.a.VIEW_CONTROLS_OVERLAY,"searchOverlay","signatureOverlay",w.a.ZOOM_OVERLAY,"zoomOverlay1","zoomOverlay2","redactionOverlay","toolStylePopup",w.a.PAGE_MANIPULATION_OVERLAY,w.a.THUMBNAILS_CONTROL_MANIPULATE_POPUP,w.a.THUMBNAILS_CONTROL_MANIPULATE_POPUP_SMALL,"tabMenu"],T=[w.a.MENU_OVERLAY_BUTTON,w.a.VIEW_CONTROLS_OVERLAY_BUTTON,w.a.ZOOM_OVERLAY_BUTTON,"zoomOverlayButton1","zoomOverlayButton2",w.a.PAGE_MANIPULATION_OVERLAY_BUTTON,w.a.THUMBNAILS_CONTROL_ROTATE_POPUP_TRIGGER,w.a.THUMBNAILS_CONTROL_MANIPULATE_POPUP_TRIGGER,w.a.THUMBNAILS_CONTROL_MANIPULATE_POPUP_SMALL_TRIGGER,"tabTrigger"],S={menu:s.a.oneOf(O).isRequired,trigger:s.a.oneOf(T).isRequired,children:s.a.node.isRequired,onClose:s.a.func,ariaLabel:s.a.string},x=window.isApryseWebViewerWebComponent?null===(y=Object(v.a)())||void 0===y?void 0:y.host.clientHeight:window.innerHeight;function A(e){var t=e.menu,n=e.trigger,r=e.onClose,u=e.children,s=e.ariaLabel,y=Object(f.d)(),C=Object(d.useMemo)((function(){return O.filter((function(e){return e!==t}))}),[t]),T=Object(f.e)((function(e){return h.a.isElementDisabled(e,t)})),S=Object(f.e)((function(e){return h.a.isElementOpen(e,t)})),A=Object(f.e)((function(e){return h.a.isInDesktopOnlyMode(e)})),_=Object(f.e)((function(e){return h.a.getPageManipulationOverlayAlternativePosition(e)})),P=Object(d.useCallback)((function(){y(o.a.closeElements([t])),r&&r()}),[y,t,r]),k=Object(d.useRef)(null);!function(e,t,n){var o=Object(d.useCallback)((function(){return n.current.querySelectorAll(b.a)}),[n]);Object(d.useEffect)((function(){if(e){var n=document.activeElement,r=function(e){if("Tab"===e.key||"Escape"===e.key)return t(),void(n&&n.focus());if("ArrowUp"===e.key||"ArrowDown"===e.key){var r=o();if(0===r.length)return;var i=Object(g.c)(r,document.activeElement);"ArrowUp"===e.key&&-1===i&&(i=0),r[(i+("ArrowUp"===e.key?-1:1)+r.length)%r.length].focus(),document.documentElement.setAttribute("data-tabbing","true")}};return window.addEventListener("keydown",r),function(){return window.removeEventListener("keydown",r)}}}),[o,e,t])}(!T&&S,P,k);var L=Object(d.useCallback)((function(e){var t=Object(v.a)().querySelector('[data-element="'.concat(n,'"]'));(null==t?void 0:t.contains(e.target))||P()}),[P,n]);Object(c.a)(k,L);var M=E(Object(d.useState)((function(){return{left:0,right:"auto",top:"auto"}})),2),j=M[0],I=M[1],R=Object(l.b)(),N=Object(l.c)();if(Object(d.useLayoutEffect)((function(){if(S){y(o.a.closeElements(C));var e=function(){var e;n===w.a.PAGE_MANIPULATION_OVERLAY_BUTTON&&_?e=function(){var e=_,t=R&&N?14:6,n=e.top,o=n+t;if(n>100){var r=k.current.clientHeight;if(n+r>x){var i=x-r-t;o=i>0?i:0,e.top=o}}return e}():(e=Object(a.a)(n,k,R&&N)).maxHeight=x-e.top,I(e)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}}),[C,y,S,N,n,R]),T)return null;var D=i()("Overlay","FlyoutMenu",{mobile:R&&!A,closed:!S});return p.a.createElement(m.a,{onSwipedUp:P,onSwipedDown:P,preventDefaultTouchmoveEvent:!0},p.a.createElement("div",{className:D,"data-element":t,style:!R||A?j:void 0,ref:k,role:"listbox","aria-label":s},R&&!A&&p.a.createElement("div",{className:"swipe-indicator"}),u))}A.propTypes=S;t.a=A},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"h",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"q",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"k",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"f",(function(){return g})),n.d(t,"n",(function(){return y})),n.d(t,"p",(function(){return v})),n.d(t,"o",(function(){return w})),n.d(t,"e",(function(){return E})),n.d(t,"m",(function(){return C})),n.d(t,"j",(function(){return O})),n.d(t,"i",(function(){return T})),n.d(t,"c",(function(){return x})),n.d(t,"s",(function(){return A})),n.d(t,"l",(function(){return _}));n(9),n(10),n(14),n(32),n(46),n(12),n(44),n(33),n(30),n(24),n(8),n(17),n(64),n(11),n(182),n(13);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=window.Core.Scale,a={METRIC:"metric",IMPERIAL:"imperial"},l=[["1:10",new i([[1,"mm"],[10,"mm"]])],["1:20",new i([[1,"mm"],[20,"mm"]])],["1:50",new i([[1,"mm"],[50,"mm"]])],["1:100",new i([[1,"mm"],[100,"mm"]])],["1:200",new i([[1,"mm"],[200,"mm"]])],["1:500",new i([[1,"mm"],[500,"mm"]])],["1:1000",new i([[1,"mm"],[1e3,"mm"]])]],c=[['1/16"=1\'-0"',new i([[1/16,"in"],[1,"ft-in"]])],['3/32"=1\'-0"',new i([[3/32,"in"],[1,"ft-in"]])],['1/8"=1\'-0"',new i([[1/8,"in"],[1,"ft-in"]])],['3/16"=1\'-0"',new i([[3/16,"in"],[1,"ft-in"]])],['1/4"=1\'-0"',new i([[1/4,"in"],[1,"ft-in"]])],['3/8"=1\'-0"',new i([[3/8,"in"],[1,"ft-in"]])],['1/2"=1\'-0"',new i([[.5,"in"],[1,"ft-in"]])],['3/4"=1\'-0"',new i([[3/4,"in"],[1,"ft-in"]])],['1"=1\'-0"',new i([[1,"in"],[1,"ft-in"]])]],u=function(){return r(r({},a.METRIC,l),a.IMPERIAL,c)},s=[["1/8",.125],["1/16",.0625],["1/32",.03125],["1/64",.015625]],d={DECIMAL:"decimal",FRACTIONAL:"fractional"},p=r(r({},d.DECIMAL,[["0.1",.1],["0.01",.01],["0.001",.001],["0.0001",1e-4]]),d.FRACTIONAL,s),f={.125:"1/8",.0625:"1/16",.03125:"1/32",.015625:"1/64"},m=/^(\d+)?(\.)?(\d+)?$/,h=/^((\d+) )?((\d+)\/)?(\d+)"$/,b=/^((\d+)'-)?((\d+) )?((\d+)\/)?(\d+)"$/,g=/^((\d+)ft-)?(((\d+).)?(\d+))in$/,y=function(e){var t=e.match(g),n=0;return n+=t[2]?Number(t[2]):0,t[3]&&Number(t[3])&&(n+=Number(t[3])/12),n},v=function(e){var t=e.match(h),n=0;return n+=t[2]?Number(t[2]):0,t[5]&&Number(t[5])&&(t[4]&&Number(t[4])?n+=Number(t[4])/Number(t[5]):n+=Number(t[5])),n},w=function(e){var t=e.match(b),n=0;return n+=t[2]?Number(t[2]):0,n+=t[4]?Number(t[4])/12:0,t[7]&&Number(t[7])&&(t[6]&&Number(t[6])?n+=Number(t[6])/Number(t[7])/12:n+=Number(t[7])/12),n},E=["in","ft-in"],C=["mm","cm","m","km"],O=function(e){return s.map((function(e){return e[0]})).includes(e)||s.map((function(e){return e[1]})).includes(e)},T={in:'eg. 1 1/2"',"ft-in":"eg. 1'-1 1/2\"","ft-in decimal":"eg. 1ft-10.5in"},S={mm:.1,cm:1,m:100,km:1e5,mi:160394,yd:91.44,ft:30.48,in:2.54,"ft'":30.48,'in"':2.54,pt:.0352778,"ft-in":30.48},x=function(e,t,n){return e*S[t]/S[n]},A=r(r(r(r(r(r(r(r(r({},c[0][0],s[1]),c[1][0],s[2]),c[2][0],s[0]),c[3][0],s[1]),c[4][0],s[0]),c[5][0],s[0]),c[6][0],s[0]),c[7][0],s[0]),c[8][0],s[0]),_=new i({pageScale:{value:1,unit:"in"},worldScale:{value:1,unit:"in"}})},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){"use strict";n(27),n(8);var o=n(1);t.a=function(e){var t={};return["FillColor","StrokeColor","TextColor","Opacity","StrokeThickness","FontSize","Precision","Scale","Style"].forEach((function(n){var o=e[n];null!=o&&(t[n]=e[n])})),"highlight"!==e.elementName||o.a.isBlendModeSupported(e.BlendMode)||(t.Opacity=null),e instanceof window.Core.Annotations.WidgetAnnotation&&(t.Opacity=null),t}},function(e,t,n){"use strict";t.a={THUMBNAIL:"thumbnail",CHECKBOX:"checkbox"}},function(e,t,n){var o=n(52),r=n(85),i=n(100),a=n(239),l=n(188),c=n(500),u=n(83),s=o.TypeError,d=u("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,o=l(e,d);if(o){if(void 0===t&&(t="default"),n=r(o,e,t),!i(n)||a(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},function(e,t,n){var o=n(52),r=n(424),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},function(e,t,n){var o=n(52),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var o={};o[n(83)("toStringTag")]="z",e.exports="[object z]"===String(o)},function(e,t,n){var o=n(89),r=n(502),i=n(104),a=n(99),l=n(139),c=n(279);t.f=o&&!r?Object.defineProperties:function(e,t){a(e);for(var n,o=l(t),r=c(t),u=r.length,s=0;u>s;)i.f(e,n=r[s++],o[n]);return e}},function(e,t,n){var o=n(187),r=n(139),i=n(189).f,a=n(280),l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"Window"==o(e)?function(e){try{return i(e)}catch(e){return a(l)}}(e):i(r(e))}},function(e,t,n){"use strict";var o=n(58),r=n(85),i=n(138),a=n(243),l=n(87),c=n(512),u=n(244),s=n(218),d=n(191),p=n(159),f=n(112),m=n(83),h=n(283),b=n(513),g=a.PROPER,y=a.CONFIGURABLE,v=b.IteratorPrototype,w=b.BUGGY_SAFARI_ITERATORS,E=m("iterator"),C=function(){return this};e.exports=function(e,t,n,a,m,b,O){c(n,t,a);var T,S,x,A=function(e){if(e===m&&M)return M;if(!w&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},_=t+" Iterator",P=!1,k=e.prototype,L=k[E]||k["@@iterator"]||m&&k[m],M=!w&&L||A(m),j="Array"==t&&k.entries||L;if(j&&(T=u(j.call(new e)))!==Object.prototype&&T.next&&(i||u(T)===v||(s?s(T,v):l(T[E])||f(T,E,C)),d(T,_,!0,!0),i&&(h[_]=C)),g&&"values"==m&&L&&"values"!==L.name&&(!i&&y?p(k,"name","values"):(P=!0,M=function(){return r(L,this)})),m)if(S={values:A("values"),keys:b?M:A("keys"),entries:A("entries")},O)for(x in S)(w||P||!(x in k))&&f(k,x,S[x]);else o({target:t,proto:!0,forced:w||P},S);return i&&!O||k[E]===M||f(k,E,M,{name:m}),h[t]=M,S}},function(e,t,n){var o=n(52),r=n(331),i=n(241),a=o.TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not a constructor")}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var o=n(83),r=n(283),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){"use strict";var o=n(99);e.exports=function(){var e=o(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var o=n(71),r=n(52).RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),l=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:a,UNSUPPORTED_Y:i}},function(e,t,n){var o=n(52),r=n(335),i=o.TypeError;e.exports=function(e){if(r(e))throw i("The method doesn't accept regular expressions");return e}},function(e,t,n){var o=n(83)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var o=n(70),r=n(151),i=n(97),a=n(129),l=o("".charAt),c=o("".charCodeAt),u=o("".slice),s=function(e){return function(t,n){var o,s,d=i(a(t)),p=r(n),f=d.length;return p<0||p>=f?e?"":void 0:(o=c(d,p))<55296||o>56319||p+1===f||(s=c(d,p+1))<56320||s>57343?e?l(d,p):o:e?u(d,p,p+2):s-56320+(o-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!0)}},function(e,t,n){"use strict";var o=n(437).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},function(e,t,n){var o=n(85),r=n(95),i=n(166),a=n(433),l=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in l||r(e,"flags")||!i(l,e)?t:o(a,e)}},function(e,t,n){var o=n(280),r=Math.floor,i=function(e,t){var n=e.length,c=r(n/2);return n<8?a(e,t):l(e,i(o(e,0,c),t),i(o(e,c),t),t)},a=function(e,t){for(var n,o,r=e.length,i=1;i<r;){for(o=i,n=e[i];o&&t(e[o-1],n)>0;)e[o]=e[--o];o!==i++&&(e[o]=n)}return e},l=function(e,t,n,o){for(var r=t.length,i=n.length,a=0,l=0;a<r||l<i;)e[a+l]=a<r&&l<i?o(t[a],n[l])<=0?t[a++]:n[l++]:a<r?t[a++]:n[l++];return e};e.exports=i},function(e,t,n){"use strict";
|
|
23
23
|
/*
|
|
24
24
|
object-assign
|
|
25
25
|
(c) Sindre Sorhus
|