UNPKG

@jspreadsheet/print

Version:
104 lines (98 loc) 55.1 kB
'use strict'; if (!lemonade && typeof (require) === 'function') { var lemonade = require('lemonadejs'); } if (! studio && typeof(require) === 'function') { var studio = require('@lemonadejs/studio'); } if (!PDFLib && typeof (require) === 'function') { var PDFLib = require('pdf-lib'); } if (!fontkit && typeof (require) === 'function') { var fontkit = require('fontkit'); } if (!regeneratorRuntime && typeof (require) === 'function') { var regeneratorRuntime = require('regenerator-runtime'); } var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(k){var g=0;return function(){return g<k.length?{done:!1,value:k[g++]}:{done:!0}}};$jscomp.arrayIterator=function(k){return{next:$jscomp.arrayIteratorImpl(k)}};$jscomp.makeIterator=function(k){var g="undefined"!=typeof Symbol&&Symbol.iterator&&k[Symbol.iterator];if(g)return g.call(k);if("number"==typeof k.length)return $jscomp.arrayIterator(k);throw Error(String(k)+" is not an iterable or ArrayLike");}; $jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(k,g,x){if(k==Array.prototype||k==Object.prototype)return k;k[g]=x.value;return k}; $jscomp.getGlobal=function(k){k=["object"==typeof globalThis&&globalThis,k,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var g=0;g<k.length;++g){var x=k[g];if(x&&x.Math==Math)return x}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={}; $jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(k,g,x){if(!x||null!=k){x=$jscomp.propertyToPolyfillSymbol[g];if(null==x)return k[g];x=k[x];return void 0!==x?x:k[g]}};$jscomp.polyfill=function(k,g,x,E){g&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(k,g,x,E):$jscomp.polyfillUnisolated(k,g,x,E))}; $jscomp.polyfillUnisolated=function(k,g,x,E){x=$jscomp.global;k=k.split(".");for(E=0;E<k.length-1;E++){var I=k[E];if(!(I in x))return;x=x[I]}k=k[k.length-1];E=x[k];g=g(E);g!=E&&null!=g&&$jscomp.defineProperty(x,k,{configurable:!0,writable:!0,value:g})}; $jscomp.polyfillIsolated=function(k,g,x,E){var I=k.split(".");k=1===I.length;E=I[0];E=!k&&E in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var T=0;T<I.length-1;T++){var U=I[T];if(!(U in E))return;E=E[U]}I=I[I.length-1];x=$jscomp.IS_SYMBOL_NATIVE&&"es6"===x?E[I]:null;g=g(x);null!=g&&(k?$jscomp.defineProperty($jscomp.polyfills,I,{configurable:!0,writable:!0,value:g}):g!==x&&(void 0===$jscomp.propertyToPolyfillSymbol[I]&&(x=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[I]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(I):$jscomp.POLYFILL_PREFIX+x+"$"+I),$jscomp.defineProperty(E,$jscomp.propertyToPolyfillSymbol[I],{configurable:!0,writable:!0,value:g})))};$jscomp.underscoreProtoCanBeSet=function(){var k={a:!0},g={};try{return g.__proto__=k,g.a}catch(x){}return!1}; $jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(k,g){k.__proto__=g;if(k.__proto__!==g)throw new TypeError(k+" is not extensible");return k}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(k){if(!(k instanceof Object))throw new TypeError("Iterator result "+k+" is not an object");}; $jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1}; $jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(k){this.yieldResult=k};$jscomp.generator.Context.prototype.throw_=function(k){this.abruptCompletion_={exception:k,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(k){this.abruptCompletion_={return:k};this.nextAddress=this.finallyAddress_}; $jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(k){this.abruptCompletion_={jumpTo:k};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(k,g){this.nextAddress=g;return{value:k}};$jscomp.generator.Context.prototype.yieldAll=function(k,g){k=$jscomp.makeIterator(k);var x=k.next();$jscomp.generator.ensureIteratorResultIsObject_(x);if(x.done)this.yieldResult=x.value,this.nextAddress=g;else return this.yieldAllIterator_=k,this.yield(x.value,g)}; $jscomp.generator.Context.prototype.jumpTo=function(k){this.nextAddress=k};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(k,g){this.catchAddress_=k;void 0!=g&&(this.finallyAddress_=g)};$jscomp.generator.Context.prototype.setFinallyBlock=function(k){this.catchAddress_=0;this.finallyAddress_=k||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(k,g){this.nextAddress=k;this.catchAddress_=g||0}; $jscomp.generator.Context.prototype.enterCatchBlock=function(k){this.catchAddress_=k||0;k=this.abruptCompletion_.exception;this.abruptCompletion_=null;return k};$jscomp.generator.Context.prototype.enterFinallyBlock=function(k,g,x){x?this.finallyContexts_[x]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=k||0;this.finallyAddress_=g||0}; $jscomp.generator.Context.prototype.leaveFinallyBlock=function(k,g){g=this.finallyContexts_.splice(g||0)[0];if(g=this.abruptCompletion_=this.abruptCompletion_||g){if(g.isException)return this.jumpToErrorHandler_();void 0!=g.jumpTo&&this.finallyAddress_<g.jumpTo?(this.nextAddress=g.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=k};$jscomp.generator.Context.prototype.forIn=function(k){return new $jscomp.generator.Context.PropertyIterator(k)}; $jscomp.generator.Context.PropertyIterator=function(k){this.object_=k;this.properties_=[];for(var g in k)this.properties_.push(g);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var k=this.properties_.pop();if(k in this.object_)return k}return null};$jscomp.generator.Engine_=function(k){this.context_=new $jscomp.generator.Context;this.program_=k}; $jscomp.generator.Engine_.prototype.next_=function(k){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,k,this.context_.next_);this.context_.next_(k);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.return_=function(k){this.context_.start_();var g=this.context_.yieldAllIterator_;if(g)return this.yieldAllStep_("return"in g?g["return"]:function(x){return{value:x,done:!0}},k,this.context_.return);this.context_.return(k);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.throw_=function(k){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],k,this.context_.next_);this.context_.throw_(k);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.yieldAllStep_=function(k,g,x){try{var E=k.call(this.context_.yieldAllIterator_,g);$jscomp.generator.ensureIteratorResultIsObject_(E);if(!E.done)return this.context_.stop_(),E;var I=E.value}catch(T){return this.context_.yieldAllIterator_=null,this.context_.throw_(T),this.nextStep_()}this.context_.yieldAllIterator_=null;x.call(this.context_,I);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var k=this.program_(this.context_);if(k)return this.context_.stop_(),{value:k.value,done:!1}}catch(g){this.context_.yieldResult=void 0,this.context_.throw_(g)}this.context_.stop_();if(this.context_.abruptCompletion_){k=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(k.isException)throw k.exception;return{value:k.return,done:!0}}return{value:void 0,done:!0}}; $jscomp.generator.Generator_=function(k){this.next=function(g){return k.next_(g)};this.throw=function(g){return k.throw_(g)};this.return=function(g){return k.return_(g)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(k,g){g=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(g));$jscomp.setPrototypeOf&&k.prototype&&$jscomp.setPrototypeOf(g,k.prototype);return g}; $jscomp.asyncExecutePromiseGenerator=function(k){function g(E){return k.next(E)}function x(E){return k.throw(E)}return new Promise(function(E,I){function T(U){U.done?E(U.value):Promise.resolve(U.value).then(g,x).then(T,I)}T(k.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(k){return $jscomp.asyncExecutePromiseGenerator(k())};$jscomp.asyncExecutePromiseGeneratorProgram=function(k){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(k)))}; (function(k,g){const x=a0_0x142d;for(k=k();;)try{if(parseInt(x(499))/1+-parseInt(x(418))/2+-parseInt(x(654))/3*(parseInt(x(634))/4)+parseInt(x(424))/5*(parseInt(x(585))/6)+parseInt(x(589))/7+-parseInt(x(443))/8*(-parseInt(x(539))/9)+parseInt(x(549))/10===g)break;else k.push(k.shift())}catch(E){k.push(k.shift())}})(a0_0x229b,681226);function a0_0x142d(k,g){const x=a0_0x229b();return a0_0x142d=function(E,I){return x[E-396]},a0_0x142d(k,g)} function a0_0x229b(){const k='invalid pageOrientation{solid{newY{align{showNotes{reduce{PDFDocument{Current date{none{Margins cannot occupy more than 90% of the page dimension{pdfBase64{lastIndexOf{background-color{rgb{open{onload{undefined{portrait{options{rowIndex{push{addPage{current{getHeight{every{worksheetName{scope{font-weight{style{The "{create{getWidth{StandardFonts{lineHeight{129380TKdokP{worksheet{freezeRows{scaleToFit{ {charAt{repeatFrozenColumns{bold{Wide{includes{src{exportPdf{property{call{groove{find{slice{newX{embedStandardFont{repeat{end{invalid orderOfPages{showPositionIdentifiers{records{drawRectangle{This extension is not included on the scope of this license{object{image/jpeg{drawLine{split{createObjectURL{availableScales{arrayBuffer{append{freezeColumns{font-size{charCodeAt{amd{layoutMultilineText{getWorksheetActive{2532267jDkaLS{widthOfTextAtSize{Helvetica{filter{test{pageScale{Repeat frozen rows{normal{color{invalid scope{5866240KDgbaK{vertical-align{jpeg{Show spreadsheet title{client{element{close{setFont{ceil{Fit to one page{getPageCount{selected{content{text{png{innerWidth{availableMargins{Show row and column identifiers{version{showPageNumber{then{pageMargins{spreadsheet{getColumn{height{Landscape{page{text-align{trunc{startsWith{<lm-modal icon="print" title="Print" closed="true" closable="true" resizable="true" draggable="true" width="{naturalHeight{Normal (100%){image{embedJpg{ image format is not supported, so the cell image {6pXBInQ{endsWith{pageOrientation{type{4963350bYqXVl{onchange{" :onopen="self.onopen" :ref="self.modal">\n <div style="display: flex; height: 100%">\n <iframe :src="self.pdfBase64" style="flex: 1; box-sizing: border-box;"></iframe>\n <div style="width: 320px;" class="jss_style_p20 jss_style_small">\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">Scope:</div>\n <div class="jss_style_column jss_style_f1">\n <Dropdown :bind="self.scope" width="150">\n <option value="current">Current worksheet</option>\n <option value="all">Spreadsheet</option>\n <option value="selected">Selected cells</option>\n </Dropdown>\n </div>\n </div>\n </div>\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">Page size:</div>\n <div class="jss_style_column jss_style_f1">\n <Dropdown :data="self.pageSizes" :bind="self.pageSize" width="150" />\n </div>\n </div>\n </div>\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">Page orientation:</div>\n <div class="jss_style_column jss_style_f1">\n <Dropdown :data="self.pageOrientations" :bind="self.pageOrientation" width="150" />\n </div>\n </div>\n </div>\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">Scale:</div>\n <div class="jss_style_column jss_style_f1">\n <Dropdown :data="self.availableScales" :bind="self.pageScale" width="150" />\n </div>\n </div>\n </div>\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">Margins:</div>\n <div class="jss_style_column jss_style_f1">\n <Dropdown :data="self.availableMargins" :bind="self.pageMargins" width="150" />\n </div>\n </div>\n </div>\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">Order of pages:</div>\n <div class="jss_style_column jss_style_f1">\n <Dropdown :bind="self.orderOfPages" width="150">\n <option value="horizontal">Left to right</option>\n <option value="vertical">Top to bottom</option>\n </Dropdown>\n </div>\n </div>\n </div>\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">Horizontal alignment:</div>\n <div class="jss_style_column jss_style_f1">\n <Dropdown :bind="self.horizontalAlignment" width="150">\n <option value="left">Left</option>\n <option value="center">Center</option>\n <option value="right">Right</option>\n </Dropdown>\n </div>\n </div>\n </div>\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">Vertical alignment:</div>\n <div class="jss_style_column jss_style_f1">\n <Dropdown :bind="self.verticalAlignment" width="150">\n <option value="top">Top</option>\n <option value="center">Center</option>\n <option value="bottom">Bottom</option>\n </select>\n </div>\n </div>\n </div>\n \n <br>\n\n <div class=\'jss_style_form_group\'>\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">\n <Switch text="{Show page number{name{value{realHeight{forEach{toLocaleTimeString{entries{" :bind="self.showCurrentTime" />\n </div>\n </div>\n </div>\n\n <div class="jss_style_form_group">\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">\n <Switch text="{boolean{getRow{oninit{helpers{div{Portrait{keys{cells{dashed{getWorksheetInstance{outset{number{width{To insert the footer(s) that were informed, the bottom margin must be at least {alt{onbeforeloadimage{" :bind="self.showPositionIdentifiers" />\n </div>\n </div>\n </div>\n\n <div class="jss_style_form_group">\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">\n <Switch text="{white-space{" :bind="self.repeatFrozenRows" />\n </div>\n </div>\n </div>\n\n <div class="jss_style_form_group">\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">\n <Switch text="{" :bind="self.showGridLines" />\n </div>\n </div>\n </div>\n\n <div class="jss_style_form_group">\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">\n <Switch text="{values{getPages{drawText{getCharacterSet{Fit to height{heightAtSize{horizontalAlignment{isArray{getProperties{showCurrentDate{" :bind="self.repeatFrozenColumns" />\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </lm-modal>{modal{inset{pageSize{4035132zOpZCv{onopen{invalid scale{HelveticaBold{showWorksheetTitle{canvas{status{pdf{" :bind="self.showWorksheetTitle" />\n </div>\n </div>\n </div>\n\n <div class="jss_style_form_group">\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">\n <Switch text="{worksheets{error{getValueFromCoords{" vertical alignment is not accepted, the "middle" alignment will be used instead{license{Legal{horizontal{rows{columnIndex{application/pdf{middle{3sQYdpR{data{min{media{bottom{Narrow{" horizontal alignment is not accepted, the "left" alignment will be used instead{left{map{break-spaces{config{start{right{innerHeight{invalid pageMargins{showCurrentTime{toLowerCase{worksheetIndex{getContext{all{parent{findIndex{side{offsetHeight{verticalAlignment{naturalWidth{top{max{invalid pageScale{tools{1px{cellAnchor{dictionary{font size "{1261366bFTLeP{center{getCoordsFromCellName{License required{drawImage{Notes{257745VBCcfH{concat{Show notes{jpg{length{defaultColAlign{pageOrientations{orderOfPages{embedPng{vertical{registerFontkit{Show grid lines{indexOf{PageSizes{reverse{getColumnName{border{embedFont{font{24cPTrSA{invalid pageSize{realWidth{lines{The .{render{ will not be rendered{ centimeters{save{pageSizes{repeatFrozenRows{warn{" :bind="self.showSpreadsheetTitle" />\n </div>\n </div>\n </div>\n\n <div class="jss_style_form_group">\n <div class="jss_style_row">\n <div class="jss_style_column jss_style_f1">\n <Switch text="{Show worksheet title{landscape{showGridLines{hidden{Letter{showSpreadsheetTitle{default{toString{This scale is not able to correctly print the data'.split("{");a0_0x229b= function(){return k};return a0_0x229b()} (function(k,g){const x=a0_0x142d;typeof exports===x(525)&&typeof module!==x(481)?module.exports=g():"function"===typeof define&&define[x(536)]?define(g):k.print=g()})(this,function(){function k(b,a){const c=g;return b.x1>a.x2||a.x1>b.x2||b.y1>a.y2||a.y1>b.y2?null:{x1:Math[c(411)](b.x1,a.x1),x2:Math[c(656)](b.x2,a.x2),y1:Math[c(411)](b.y1,a.y1),y2:Math[c(656)](b.y2,a.y2)}}const g=a0_0x142d;let x=null,E=null;const I=function(b){const a=a0_0x142d;return typeof document!==a(481)&&document[a(416)]?document[a(416)][b]|| b:b},T=function(b){return typeof b===a0_0x142d(481)||null===b||""===b},U=function(){const b=a0_0x142d;let a="";8===this[b(640)]?this[b(491)]&&-1!==this[b(491)][b(436)]("print")||(a=b(524)):a=b(421);if(!a){const c=x[b(567)]();(!c||!c[b(567)]||10>parseInt(c[b(567)]))&&(a="This extension request Jspreadsheet Pro v10+")}return a},Y={pt:1,mm:72/25.4,cm:72/2.54,"in":72,px:.75,pc:12,em:12,ex:6},V=function(b,a){const c=a0_0x142d;let d=b[c(436)](a);for(;0<d&&"-"===b[c(504)](d-1);)d=b[c(436)](a,d+a[c(428)]); return-1<d?(d+=a[c(428)]+1,a=b[c(436)](";",d),0>a&&(a=b[c(428)]),b[c(515)](d,a).trim()):null},Da=/^-?(?:\d+\.)?\d+$/,ma=function(b,a,c){const d=a0_0x142d;let f="";if(b=b[d(522)][c])if(a=b[a])a=a.s,typeof a!==d(481)&&(f=la[a]);return f},Ea=function(b,a,c){const d=a0_0x142d;var f=ma(b,a,c);if(f=V(f,d(576)))return f;if((f=b[d(572)](a))&&f[d(468)])return f[d(468)];if(b[d(483)][d(429)])return b.options[d(429)];if("numeric"===f[d(588)]||f[d(588)]===d(611))return d(396);b=b[d(645)](a,c,!0);let l;b&&(l=Da[d(543)](b)); return l?d(396):d(419)},na=function(b,a){const c=a0_0x142d;var d=E?L[c(614)]:L["default"];const f=d[c(540)](a,14);d=d.heightAtSize(14);b[c(622)](a,{x:b[c(496)]()-f-20,y:b[c(488)]()-d-20,size:14})},oa=function(b,a){const c=a0_0x142d,d=(E?L[c(614)]:L["default"])[c(625)](14);b.getPages().forEach(function(f){f[c(622)](a,{x:20,y:f[c(488)]()-d-20,size:14})})},pa=function(b,a){var {date:c,time:d}=a;const f=a0_0x142d;if(c||d){var l="";a=new Date;c&&(l+=a.toLocaleDateString());d&&(l&&(l+=" "),l+=a[f(597)]()); b.getPages().forEach(function(q){q[f(622)](l,{x:20,y:20,size:14})})}},qa=function(b){const a=a0_0x142d,c=E?L.alt:L[a(462)];b[a(621)]().forEach(function(d,f){f=(f+1)[a(463)]();const l=c[a(540)](f,14);d[a(622)](f,{x:d[a(496)]()-l-20,y:20,size:14})})},Fa=/^#(([0-9A-F]{3}){1,2}|([0-9A-F]{4}){1,2})$/i,ra=/^rgb\(.*?\)$/,Ga=/^rgba\(.*?\)$/,ca={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0, 255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],orange:[255,165,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220, 20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0, 191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250, 205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186, 85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255, 239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255, 99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50],rebeccapurple:[102,51,153]},Z=function(b){const a=a0_0x142d;if(!b)return null;if(Fa[a(543)](b)){b=b[a(515)](1);if(6>b[a(428)]){var c="";for(let d=0;d<b[a(428)];d++)c+=b[d][a(518)](2);b=c}return 8===b[a(428)]&&(b=b[a(515)](0,6)),[parseInt(b[a(515)](0,2),16)/255,parseInt(b.slice(2,4),16)/255,parseInt(b[a(515)](4,6),16)/255]}if(ra[a(543)](b)||Ga[a(543)](b)){c=b[a(515)](b[a(436)]("(")+ 1,-1)[a(528)](",");if(ra[a(543)](b)){if(3!==c[a(428)])return null}else if(3>c.length||4<c.length)return null;return 4===c[a(428)]&&(b=parseFloat(c[3]),0>b||1<b)?null:[parseInt(c[0])/255,parseInt(c[1])/255,parseInt(c[2])/255]}b=b[a(400)]();return ca[b]?[ca[b][0]/255,ca[b][1]/255,ca[b][2]/255]:null},da=function(b,a,c,d,f,l,q,m){const h=a0_0x142d;b[h(523)]({x:d,y:b[h(488)]()-f-q,width:l,height:q,borderWidth:m,color:PDFLib.rgb(1,1,1)});var z=E?L[h(614)]:L[h(462)];m=z[h(625)](c);z=z.widthOfTextAtSize(a, c);b[h(622)](a,{x:d+l/2-z/2,y:b[h(488)]()-(f+q/2+m/2),size:c})},sa={"xx-small":9,"x-small":10,small:13,medium:16,large:18,"x-large":24,"xx-large":32},P=function(b,a){const c=a0_0x142d,d=b[c(601)](a);return d&&d.element&&d[c(554)].offsetHeight?d[c(554)][c(407)]:b[c(488)](a)},Ha=function(b,a,c,d,f,l,q,m){const h=a0_0x142d;var z=a[h(645)](c,d,!0);T(z)&&(z="");z=z.toString();if(m&&(m=a.records[d][c])&&m.c){var A=W[h(405)](w=>{({position:w}=w);return a===w[h(500)]&&d===w.y&&c===w.x});0>A&&(A=W.length, W[h(485)]({position:{worksheet:a,y:d,x:c},content:m.c}));z&&(z+=" ");z+="["+(A+1)+"]"}if(z){const w=P(a,d)*q,t=parseFloat(a.getWidth(c))*q;m=ma(a,c,d);const r={};A=V(m,h(547));(A=Z(A))&&(r.color=PDFLib[h(478)](...A));A=V(m,h(534));var n;A&&(A[h(586)]("px")?n=parseFloat(A[h(515)](0,-2)):sa[A]?n=sa[A]:console.warn(h(417)+A+'" is not supported, font size "14" will be used instead'));!n&&(n=14);const e=n*q,B=4*q;n=V(m,h(492));E?r[h(442)]=L[h(614)]:n===h(506)?r.font=L[h(506)]:r[h(442)]=L[h(462)];z=z.replace(/(<([^>]+)>)/gi, "");z=z.replace(/\t/,h(503));z=z[h(528)]("\n");const p=r[h(442)][h(623)]();z=z.map(function(y){let G="";for(let J=0;J<y[h(428)];J++)p[h(508)](y[h(535)](J))?G+=y[J]:G+="\u00f8";return G});let v;if(V(m,h(617))===h(663)){v=0;let y=[];z[h(596)](function(G){G=PDFLib[h(537)](G,{font:r.font,fontSize:e,bounds:{x:f,y:l,height:w-2*q,width:t-2*q}});v+=G.lines[h(428)];y=y[h(425)](G.lines[h(662)](function(J){return J[h(562)]}))});z=y}else v=z[h(428)];const u=2*q,D=r.font[h(625)](e);n=D*v+u*(v-1);m=V(m,h(550))|| h(653);let F;m===h(410)?F=b[h(488)]()-(l+D+q):m===h(658)?F=b[h(488)]()-(l+w-n+D-q):(m!==h(653)&&console[h(454)]('The "'+m+h(646)),F=b[h(488)]()-(l+w/2-n/2+D));const C=Ea(a,c,d);z.forEach(function(y){let G;if(C===h(419)){var J=r[h(442)][h(540)](y,e);G=f+t/2-J/2}else C===h(396)?(J=r.font[h(540)](y,e),G=f+t-J-B):("left"!==C&&console[h(454)](h(494)+C+h(660)),G=f+B);J=r[h(442)][h(625)](e)-r[h(442)][h(625)](e,{descender:!1});b[h(622)](y,Object.assign({},r,{lineHeight:D,size:e,x:G,y:F+J}));F-=D+u})}},Ia= function(b){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const a=a0_0x142d;return fetch(b).then(c=>c[a(531)]())})},Ja=function(b){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const a=a0_0x142d,c=b[a(515)](b[a(476)](".")+1);return new Promise(function(d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const f=yield Ia(b);let l;c===a(427)||c===a(551)?l=yield aa[a(583)](f):c===a(563)&&(l=yield aa[a(432)](f));return d(l)})})})},ta=function(){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const b= a0_0x142d;X=X.filter(function(d){const f=a0_0x142d;var l=d[f(500)][f(645)](d[f(651)],d[f(484)])[f(463)]();return l?l&&(l=l.slice(l[f(476)](".")+1),l!==f(563)&&l!==f(427)&&"jpeg"!==l)?(console.warn(f(447)+l+f(584)+x.helpers.getColumnNameFromCoords(d[f(651)],d.rowIndex)+f(449)),!1):!0:!1});const a=[];X[b(596)](function(d){d=d[b(500)][b(645)](d.columnIndex,d[b(484)]).toString();!a[b(508)](d)&&a[b(485)](d)});const c={};yield Promise[b(403)](a[b(662)](function(d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){c[d]= yield Ja(d)})}));X[b(596)](d=>{var f=d[b(500)].getValueFromCoords(d.columnIndex,d[b(484)])[b(463)]();d=Object.assign({},d,{image:c[f]});var {page:l,worksheet:q,image:m,columnIndex:h,rowIndex:z,xPosition:A,yPosition:n,scale:w}=d;d=a0_0x142d;f=P(q,z)*w;const t=parseFloat(q.getWidth(h))*w,r=m[d(502)](t-w,f-w);f&&t&&r&&r[d(612)]&&r[d(573)]&&l[d(422)](m,{x:A+t/2-r[d(612)]/2,y:l[d(488)]()-(n+f/2+r[d(573)]/2),width:r.width,height:r[d(573)]})})})},ua=[g(612),g(493),"color"],va=[g(661),"right","top",g(658)], Ka=function(b){const a=g;if(!b[a(578)](a(440)))return null;b=b[a(515)](6);const c=ua[a(514)](f=>b[a(586)]("-"+f));c&&(b=b[a(515)](0,-(c[a(428)]+1)));const d=va.find(f=>b.endsWith("-"+f));d&&(b=b[a(515)](0,-(d.length+1)));return 0!==b[a(428)]?null:{side:d,property:c}},La=["dotted",g(608),g(466),"double",g(513),"ridge",g(632),g(610),g(473),g(459)],ea=function(b){return-1<La[g(436)](b)},Ma=function(b,a){var c=g;if(a)return{[a]:a===c(547)?Z(b):b};b=b[c(528)](" ");c=b[c(428)];return 3<c?null:3===c?ea(b[1])? {width:b[0],style:b[1],color:Z(b[2])}:null:1===c?ea(b[0])?{style:b[0]}:null:ea(b[0])?{style:b[0],color:Z(b[1])}:ea(b[1])?{width:b[0],style:b[1]}:null},wa=function(b,a,c,d){c?b[a][c]=d[c]:ua.forEach(f=>{d[f]&&(b[a][f]=d[f])})},Na=function(b){const a=g;b=b[a(528)](";");b=b[a(662)](d=>{const f=d[a(436)](":");return[d[a(515)](0,f),d[a(515)](f+1)]});const c={top:{},right:{},bottom:{},left:{}};for(let d=0;d<b[a(428)];d++){const f=b[d],l=Ka(f[0]);if(!l)continue;const q=Ma(f[1],l[a(511)]);q&&(l[a(406)]?wa(c, l[a(406)],l[a(511)],q):va.forEach(m=>{wa(c,m,l.property,q)}))}return c},fa=[.769811320754717,.769811320754717,.769811320754717],ha=g(414),ia=function(b,a,c,d,f,l,q,m){var h=g;const z=P(a,d)*q,A=parseFloat(a[h(496)](c))*q;var n=f+A;l=b.getHeight()-(l+z);const w=l+z;a=ma(a,c,d);c=g;d="";for(var t=a.indexOf(c(440));0<=t;){var r=a[c(436)](";",t+1);0>r?r=void 0:r++;d+=a.slice(t,r);t=a[c(436)]("border",t+1)}r=Na(d);c=0;if(Object[h(606)](r[h(410)]).length||m)c=r[h(410)].width||ha,c=parseFloat(c),c*=q;d= 0;if(Object[h(606)](r.bottom)[h(428)]||m)d=r[h(658)][h(612)]||ha,d=parseFloat(d),d*=q;t=0;if(Object.keys(r[h(661)])[h(428)]||m)t=r[h(661)][h(612)]||ha,t=parseFloat(t),t*=q;let e=0;if(Object.keys(r[h(396)])[h(428)]||m)m=r[h(396)].width||ha,m=parseFloat(m),e=m*q;c&&(q=r[h(410)][h(547)]||fa,q=PDFLib[h(478)](q[0],q[1],q[2]),b[h(527)]({start:{x:f+t,y:w-c/2},end:{x:n,y:w-c/2},thickness:c,color:q}));d&&(q=r.bottom[h(547)]||fa,q=PDFLib[h(478)](q[0],q[1],q[2]),b.drawLine({start:{x:f,y:l+d/2},end:{x:n-e,y:l+ d/2},thickness:d,color:q}));t&&(q=r[h(661)].color||fa,q=PDFLib[h(478)](q[0],q[1],q[2]),b[h(527)]({start:{x:f+t/2,y:l+d},end:{x:f+t/2,y:w},thickness:t,color:q}));e&&(q=r.right[h(547)]||fa,q=PDFLib[h(478)](q[0],q[1],q[2]),b[h(527)]({start:{x:n-e/2,y:l},end:{x:n-e/2,y:w-c},thickness:e,color:q}));n=V(a,h(477));h=(n=Z(n))?PDFLib[h(478)](...n):PDFLib[h(478)](1,1,1);b.drawRectangle({x:f+t,y:l+d,width:A-t-e,height:z-c-d,borderWidth:0,color:h})},ja=function(b,a,c,d,f,l,q,m){const h=g;a[h(628)](c,d)[h(588)]=== h(582)?X[h(485)]({page:b,worksheet:a,columnIndex:c,rowIndex:d,xPosition:f,yPosition:l,scale:q}):Ha(b,a,c,d,f,l,q,m)},xa=function(b,a,c,d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var {yPosition:f,xInitialPosition:l,scale:q,repeatFrozenRows:m,repeatFrozenColumns:h,showGridLines:z,drawContainer:A,drawContent:n,showNotes:w}=d;const t=g;if(m){var r=a[t(483)][t(501)];if(r){var e=r.length;for(var B=0;B<e;B++){var p=r[B],v=l,u=P(a,p)*q;if(h){var D=a[t(483)].freezeColumns;if(D){var F= D[t(428)];for(var C=0;C<F;C++){const y=D[C];A&&ia(b,a,y,p,v,f,q,z);n&&ja(b,a,y,p,v,f,q,w);v+=parseFloat(a.getWidth(y))*q}}}for(D=c[t(665)][1];D<=c[t(519)][1];D++)A&&ia(b,a,D,p,v,f,q,z),n&&ja(b,a,D,p,v,f,q,w),v+=parseFloat(a[t(496)](D))*q;f+=u}}}r=f;e=l;if(h&&(B=a[t(483)][t(533)]))for(p=B[t(428)],v=c[t(665)][0];v<=c[t(519)][0];v++){u=l;D=P(a,v)*q;for(F=0;F<p;F++)C=B[F],A&&ia(b,a,C,v,u,f,q,z),n&&ja(b,a,C,v,u,f,q,w),u+=parseFloat(a[t(496)](C))*q;v===c[t(665)][0]&&(e=u);f+=D}return{newX:e,newY:r}})}, Oa=function(b,a,c){const d=g;let f=b[d(661)],l=b[d(410)];if(b[d(415)]){var q=x[d(603)][d(420)](b[d(415)]);const h=g;let z=0;for(var m=0;m<q[1];m++)z+=P(c,m);m=0;for(let A=0;A<q[0];A++)m+=parseFloat(c[h(496)](A));c={top:z,left:m};f+=c[d(661)];l+=c[d(410)]}a={x1:f+a[d(661)],y1:l+a.top};return a.x2=a.x1+b[d(612)],a.y2=a.y1+b.height,a},ka=function(b,a,c,d,f,l,q){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const m=g;if(c){var h=[],z={x1:d[m(661)]/f,x2:(d.left+d[m(612)])/f,y1:d[m(410)]/ f,y2:(d[m(410)]+d.height)/f};for(let A=0;A<c[m(428)];A++){const n=c[A],w=Oa(n,q,a),t=k(z,w);if(!t)continue;const r={x:Math.abs(w.x1-t.x1),y:Math.abs(w.y1-t.y1),width:t.x2-t.x1,height:t.y2-t.y1};h[m(485)](new Promise(e=>{const B=document.createElement(m(639)),p=B[m(402)]("2d"),v=new Image;x&&x[m(553)]&&x.client[m(615)]?x.client.onbeforeloadimage({},v,n):v.src=n[m(509)];v[m(480)]=function(){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){B.width=r[m(612)];B.height=r[m(573)];p[m(422)](v, 0,0,v[m(409)],v[m(580)],-r.x,-r.y,n[m(612)],n[m(573)]);const u=yield aa.embedJpg(B.toDataURL(m(526)));b.drawImage(u,{x:l.x+t.x1*f-d.left,y:b[m(488)]()-l.y-r.height*f-(t.y1*f-d[m(410)]),width:r.width*f,height:r[m(573)]*f});e()})}}))}yield Promise.all(h)}})},Pa=function(b,a,c,d,f){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var {yInitialPosition:l,xInitialPosition:q,scale:m,repeatFrozenRows:h,repeatFrozenColumns:z,markersInformation:A}=f;const n=g;let w=a.options[n(657)];if(w&&Array[n(627)](w)&& (w=w[n(542)](function(u){return!u[n(588)]||"image"===u[n(588)]}),0===w.length))return;const t=[];var r=a.options.freezeRows;const e=a[n(483)][n(533)],B={};r?B[n(410)]=N(a,r[0]):B.top=0;e?B[n(661)]=O(a,e[0]):B[n(661)]=0;if(h&&r){var p={left:c[n(661)],top:N(a,r[0]),width:c[n(612)]};p[n(573)]=N(a,r[r[n(428)]-1]+1)-p[n(410)];p[n(410)]*=m;p[n(573)]*=m;var v=0;z&&e&&(v=O(a,e[e[n(428)]-1]+1)-O(a,e[0]),v*=m,p[n(612)]-=v);A&&(p.width-=A.width);t.push(ka(b,a,w,p,m,{x:q+v,y:l},B))}z&&e&&(p={left:O(a,e[0]),top:c[n(410)], height:c[n(573)]},p[n(612)]=O(a,e[e[n(428)]-1]+1)-p[n(661)],p[n(661)]*=m,p[n(612)]*=m,v=0,h&&r&&(v=N(a,r[r[n(428)]-1]+1)-N(a,r[0]),v*=m,p[n(573)]-=v),A&&(p.height-=A[n(573)]),t[n(485)](ka(b,a,w,p,m,{x:q,y:l+v},B)),h&&r&&(p={left:O(a,e[0]),top:N(a,r[0])},p.width=O(a,e[e.length-1]+1)-p[n(661)],p[n(573)]=N(a,r[r[n(428)]-1]+1)-p[n(410)],p[n(661)]*=m,p[n(410)]*=m,p[n(612)]*=m,p[n(573)]*=m,t.push(ka(b,a,w,p,m,{x:q,y:l},B))));r={top:c[n(410)],left:c.left,width:c.realWidth,height:c[n(595)]};t[n(485)](ka(b, a,w,r,m,d,B));yield Promise[n(403)](t)})},Qa=function(b,a,c,d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var {pageBoundaries:f,scale:l,showGridLines:q,markersInformation:m,horizontalAlignment:h,verticalAlignment:z,showNotes:A,repeatFrozenRows:n,repeatFrozenColumns:w,showWorksheetTitle:t}=d;const r=g;if(z===r(410))var e=f[0];else{var B=b[r(488)]()-(f[0]+f[2]+c.height);"center"===z?e=f[0]+B/2:"bottom"===z&&(e=f[0]+B)}if(h===r(661))var p=f[3];else B=b.getWidth()-(f[1]+f[3]+c[r(612)]), h===r(419)?p=f[3]+B/2:"right"===h&&(p=f[3]+B);var v=e;B=p;if(m){var u=v;u={newX:B+m[g(612)],newY:u+m.height};B=u[r(516)];v=u[r(467)]}B={x:B,y:v};u=yield xa(b,a,c,{yPosition:B.y,xInitialPosition:B.x,scale:l,showGridLines:q,repeatFrozenRows:n,repeatFrozenColumns:w,drawContainer:!0});v=u.newY;u={x:u.newX,y:u[r(467)]};for(var D=c[r(665)][0];D<=c[r(519)][0];D++){var F=u.x,C=P(a,D)*l;for(var y=c[r(665)][1];y<=c[r(519)][1];y++)ia(b,a,y,D,F,v,l,q),F+=parseFloat(a[r(496)](y))*l;v+=C}if(m){var {yPosition:G, xInitialPosition:J,scale:H,markersInformation:K,repeatFrozenRows:M,repeatFrozenColumns:R}={yPosition:e,xInitialPosition:p,scale:l,markersInformation:m,repeatFrozenRows:n,repeatFrozenColumns:w};e=g;p=J;v=14*H;b.drawRectangle({x:p,y:b.getHeight()-(G+K.height),width:K.width,height:K[e(573)],borderWidth:H,color:PDFLib[e(478)](1,1,1)});p+=K[e(612)];if(R&&(D=a[e(483)][e(533)]))for(F=D[e(428)],C=0;C<F;C++){y=D[C];let Q=parseFloat(a[e(496)](y))*H;da(b,x[e(603)][e(439)](y),v,p,G,Q,K[e(573)],H);p+=Q}for(D= c[e(665)][1];D<=c[e(519)][1];D++)F=parseFloat(a[e(496)](D))*H,da(b,x[e(603)][e(439)](D),v,p,G,F,K.height,H),p+=F;G+=K[e(573)];if(M&&(v=a[e(483)].freezeRows))for(D=v[e(428)],F=0;F<D;F++)C=v[F],p=J,y=P(a,C)*H,da(b,(C+1)[e(463)](),14*H,p,G,K[e(612)],y,H),e(612),G+=y;for(v=c[e(665)][0];v<=c[e(519)][0];v++)p=J,D=P(a,v)*H,da(b,(v+1)[e(463)](),14*H,p,G,K.width,D,H),e(612),G+=D}yield xa(b,a,c,{yPosition:B.y,xInitialPosition:B.x,scale:l,repeatFrozenRows:n,repeatFrozenColumns:w,drawContent:!0,showNotes:A}); v=u.y;for(e=c[r(665)][0];e<=c[r(519)][0];e++){p=u.x;D=P(a,e)*l;for(F=c[r(665)][1];F<=c.end[1];F++)ja(b,a,F,e,p,v,l,A),p+=parseFloat(a.getWidth(F))*l;v+=D}yield Pa(b,a,c,u,{yInitialPosition:B.y,xInitialPosition:B.x,scale:l,repeatFrozenRows:n,repeatFrozenColumns:w,markersInformation:m});t&&na(b,a[r(483)][r(490)])})},Ra=function(b){const a=g,c=E?L[a(614)]:L[a(462)];b=c[a(540)](b[a(463)](),14);return{height:c[a(625)](14)+8,width:b+8}},Sa=function(b){const a=b.options[g(501)];if(!a)return 0;const c=a.length; let d=0;for(let f=0;f<c;f++)d+=parseFloat(P(b,a[f]));return d},Ta=function(b){var a=g;let c=0;const d=b[a(483)][a(533)];if(!d)return 0;a=d[a(428)];for(let f=0;f<a;f++)c+=parseFloat(b.getWidth(d[f]));return c},O=function(b,a){const c=g;let d=0;for(let f=0;f<a;f++)d+=parseFloat(b[c(496)](f));return d},N=function(b,a){const c=g;let d=0;for(let f=0;f<a;f++)d+=b[c(488)](f);return d},ya=function(b,a,c,d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var {pageScale:f,pageBoundaries:l,showGridLines:q, showNotes:m,showPositionIdentifiers:h,orderOfPages:z,horizontalAlignment:A,verticalAlignment:n,showWorksheetTitle:w,repeatFrozenRows:t,repeatFrozenColumns:r}=d;const e=g;let B=b.addPage(S),p;const v=h?Ra(a[e(650)].length):null;var u=r?Ta(a):null,D=t?Sa(a):null,F=h?v[e(612)]:0,C=c[e(665)][1];if(r){F+=u;var y=a[e(483)][e(533)];y&&(y=y[y[e(428)]-1]+1,C<y&&(C=y))}var G=0;for(y=C;y<=c[e(519)][1];y++)G+=parseFloat(a.getWidth(y))||0;var J=h?v[e(573)]:0;y=c[e(665)][0];if(t){J+=D;var H=a.options.freezeRows; H&&(H=H[H[e(428)]-1]+1,y<H&&(y=H))}H=0;for(let K=y;K<=c.end[0];K++)H+=parseFloat(P(a,K));if(typeof f===e(611)){u=f;const K=[{start:C,end:C,left:O(a,C)*u,realWidth:0,width:F*u}];G=B.getWidth()-l[1]-l[3];if(F*u>=G)throw Error(e(464));for(;C<=c[e(519)][1];C++)if(H=parseFloat(a[e(496)](C))*u,D=K[K[e(428)]-1][e(612)]+H,D<=G)K[K.length-1][e(519)]=C,K[K[e(428)]-1][e(612)]=D,K[K[e(428)]-1][e(445)]+=H;else{if(K[K[e(428)]-1].width===F*u)throw Error(e(464));K.push({start:C,end:C,left:K[K[e(428)]-1][e(661)]+ K[K[e(428)]-1].realWidth,realWidth:H,width:H+F*u})}const M=[{start:y,end:y,top:N(a,y)*u,realHeight:0,height:J*u}];C=B[e(488)]()-l[0]-l[2];if(J*u>=C)throw Error(e(464));for(;y<=c[e(519)][0];y++)if(F=parseFloat(P(a,y))*u,G=M[M[e(428)]-1].height+F,G<=C)M[M[e(428)]-1][e(519)]=y,M[M[e(428)]-1].height=G,M[M.length-1][e(595)]+=F;else{if(M[M[e(428)]-1].height===J*u)throw Error(e(464));M[e(485)]({start:y,end:y,top:M[M[e(428)]-1][e(410)]+M[M[e(428)]-1][e(595)],realHeight:F,height:F+J*u})}p=[];"horizontal"=== z?M[e(596)](function(R){K[e(596)](function(Q){p[e(485)]({start:[R.start,Q.start],end:[R[e(519)],Q[e(519)]],top:R[e(410)],left:Q[e(661)],realHeight:R[e(595)],height:R[e(573)],realWidth:Q.realWidth,width:Q.width})})}):K[e(596)](function(R){M[e(596)](function(Q){p[e(485)]({start:[Q[e(665)],R[e(665)]],end:[Q[e(519)],R[e(519)]],top:Q.top,left:R[e(661)],realHeight:Q.realHeight,height:Q[e(573)],realWidth:R.realWidth,width:R[e(612)]})})})}else if(f===e(575))h&&(G+=v.width,H+=v[e(573)]),r&&(G+=u),t&&(H+=D), u=(B.getWidth()-l[1]-l[3])/G,J=(B[e(488)]()-l[0]-l[2])/H,u=Math[e(656)](u,J,1),p=[{start:[y,C],end:c[e(519)],top:N(a,y)*u,left:O(a,C)*u,realHeight:(N(a,c[e(519)][0])-N(a,y)+a[e(488)](c[e(519)][0]))*u,height:H*u,realWidth:(O(a,c.end[1])-O(a,C)+parseFloat(a[e(496)](c[e(519)][1])))*u,width:G*u}];else if(f===e(612)){h&&(G+=v.width);r&&(G+=u);u=(B.getWidth()-l[1]-l[3])/G;u=Math[e(656)](u,1);p=[{start:[y,C],end:[y,c[e(519)][1]],top:N(a,y)*u,left:O(a,C)*u,realHeight:0,height:J*u,realWidth:(O(a,c.end[1])- O(a,C)+parseFloat(a[e(496)](c[e(519)][1])))*u,width:G*u}];F=B[e(488)]()-l[0]-l[2];if(J*u>=F)throw Error(e(464));for(;y<=c[e(519)][0];y++)if(H=parseFloat(P(a,y))*u,D=p[p[e(428)]-1][e(573)]+H,D<=F)p[p[e(428)]-1][e(519)][0]=y,p[p[e(428)]-1][e(573)]=D,p[p[e(428)]-1][e(595)]+=H;else{if(p[p[e(428)]-1][e(573)]===J*u)throw Error(e(464));p.push({start:[y,C],end:[y,c[e(519)][1]],top:p[p.length-1][e(410)]+p[p[e(428)]-1][e(595)],left:p[0].left,realHeight:H,height:H+J*u,realWidth:p[0].realWidth,width:G*u})}}else if(f=== e(573)){h&&(H+=v.height);t&&(H+=D);u=(B[e(488)]()-l[0]-l[2])/H;u=Math[e(656)](u,1);p=[{start:[y,C],end:[c.end[0],C],top:N(a,y)*u,left:O(a,C)*u,realHeight:(N(a,c[e(519)][0])-N(a,y)+a[e(488)](c.end[0]))*u,height:H*u,realWidth:0,width:F*u}];J=B[e(496)]()-l[1]-l[3];if(F*u>=J)throw Error(e(464));for(;C<=c[e(519)][1];C++)if(G=parseFloat(a[e(496)](C))*u,D=p[p[e(428)]-1][e(612)]+G,D<=J)p[p[e(428)]-1][e(519)][1]=C,p[p[e(428)]-1][e(612)]=D,p[p[e(428)]-1][e(445)]+=G;else{if(p[p.length-1][e(612)]===F*u)throw Error(e(464)); p.push({start:[y,C],end:[c.end[0],C],top:p[0][e(410)],left:p[p[e(428)]-1][e(661)]+p[p[e(428)]-1].realWidth,realHeight:p[0][e(595)],height:H*u,realWidth:G,width:G+F*u})}}else throw Error(e(636));h&&(v[e(573)]*=u,v[e(612)]*=u);y=p.length;for(C=0;C<y;C++)J=p[C],0<C&&(B=b[e(486)](S)),yield Qa(B,a,J,{scale:u,pageBoundaries:l,showGridLines:q,markersInformation:h?v:null,horizontalAlignment:A,verticalAlignment:n,showNotes:m,repeatFrozenRows:t,repeatFrozenColumns:r,showWorksheetTitle:w})})},za=function(b, a){var {pageBoundaries:c,showWorksheetTitle:d}=a;const f=g;if(W[f(428)]){a=S[1]-c[0]-c[2];var l=S[0]-c[1]-c[3],q=E?L.alt:L[f(462)],m=q[f(623)](),h=W[f(470)](function(w,t,r){let e="";0<r&&(e+="\n\n");let B="";for(let p=0;p<t[f(561)][f(428)];p++)m.includes(t[f(561)][f(535)](p))?B+=t[f(561)][p]:B+="\u00f8";return e+="["+(r+1)+"] "+B,w+e},""),z=PDFLib[f(537)](h,{font:q,fontSize:14,bounds:{x:c[0],y:c[3],height:a,width:l}}),A=a/z[f(498)];A=Math[f(577)](A);var n;z[f(446)][f(596)]((w,t)=>{0===t%A&&(n=b.addPage(S), d&&na(n,f(423)));n[f(622)](w[f(562)],{x:c[3],y:n[f(488)]()-(c[0]+z[f(498)]*(1+t%A)),size:14,maxWidth:l,font:q})})}},Aa=function(b,a){var {showPageNumber:c,showCurrentDate:d,showCurrentTime:f,showWorksheetTitle:l,showSpreadsheetTitle:q}=a;a=g;b=b[a(662)](function(h){return h*Y.cm/Y.px});if(b[0]+b[2]>.9*S[1]||b[1]+b[3]>.9*S[0])throw Error(a(474));var m=(E?L[a(614)]:L["default"])[a(625)](14);if(c||d||f){const h=30+m;if(b[2]<h)throw b=h*Y.px/Y.cm,b=Math[a(557)](1E3*b)/1E3,Error(a(613)+b+" centimeters"); }if(l||q)if(m=30+m,b[0]<m)throw b=m*Y.px/Y.cm,b=Math[a(557)](1E3*b)/1E3,Error("To insert the header(s) that were informed, the bottom margin must be at least "+b+a(450));return b};let S,L,aa,X,W=[],la;const Ba=function(b,a,c){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var d=Object.assign({},c),f=c.pageSize,l=c.pageOrientation,q=c.pageMargins,m=c.showPageNumber,h=c.showWorksheetTitle,z=c.showSpreadsheetTitle,A=c.showCurrentDate,n=c.showCurrentTime;d=(delete d.pageSize,delete d.pageOrientation, delete d.pageMargins,delete d.showPageNumber,delete d.showWorksheetTitle,delete d.showSpreadsheetTitle,delete d.showCurrentDate,delete d.showCurrentTime,d);const w=g;X=[];W=[];const t=yield PDFLib[w(471)][w(495)]();if(!a)return t;aa=t;L={"default":t[w(517)](PDFLib[w(497)][w(541)]),bold:t[w(517)](PDFLib[w(497)][w(637)])};E&&(t[w(434)](fontkit),L[w(614)]=yield t[w(441)](E,{subset:!1}));S=[...PDFLib[w(437)][f]];l===w(482)&&S[w(438)]();f=Aa(q,{showPageNumber:m,showCurrentDate:A,showCurrentTime:n,showWorksheetTitle:h, showSpreadsheetTitle:z});return yield ya(t,b,a,Object.assign({},d,{pageBoundaries:f,showWorksheetTitle:h})),yield ta(),d[w(469)]&&za(t,{pageBoundaries:f,showWorksheetTitle:h}),m&&qa(t),z&&oa(t,b[w(404)][w(593)]),pa(t,{date:A,time:n}),t})},Ca=function(b){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var a=Object.assign({},b),c=b.worksheets,d=b.pageSize,f=b.pageOrientation,l=b.pageMargins,q=b.showPageNumber,m=b.showWorksheetTitle,h=b.showSpreadsheetTitle,z=b.showCurrentDate,A=b.showCurrentTime; a=(delete a.worksheets,delete a.pageSize,delete a.pageOrientation,delete a.pageMargins,delete a.showPageNumber,delete a.showWorksheetTitle,delete a.showSpreadsheetTitle,delete a.showCurrentDate,delete a.showCurrentTime,a);const n=g;X=[];W=[];const w=yield PDFLib[n(471)][n(495)]();aa=w;L={"default":w[n(517)](PDFLib[n(497)].Helvetica),bold:w[n(517)](PDFLib.StandardFonts.HelveticaBold)};E&&(w[n(434)](fontkit),L[n(614)]=yield w[n(441)](E,{subset:!1}));S=[...PDFLib[n(437)][d]];f===n(482)&&S.reverse(); d=Aa(l,{showPageNumber:q,showCurrentDate:z,showCurrentTime:A,showWorksheetTitle:m,showSpreadsheetTitle:h});for(f=0;f<c[n(428)];f++){l=c[f];let r=l.rows[n(428)],e;do{r--;var t=l[n(483)][n(655)][r];Array.isArray(t)&&(e=t[n(489)](function(p){return""===p}))}while(e&&0<=r);if(0>r)return w;t=l[n(496)]()[n(428)];let B=!0;do{t--;for(let p=0;p<=r;p++)if(""!==l[n(645)](t,p)){B=!1;break}}while(B&&0<=t);yield ya(w,l,{start:[0,0],end:[r,t]},Object.assign({},a,{pageBoundaries:d,showWorksheetTitle:m}))}return yield ta(), a[n(469)]&&za(w,{pageBoundaries:d,showWorksheetTitle:m}),q&&qa(w),h&&oa(w,c[0].parent[n(593)]),pa(w,{date:z,time:A}),!w[n(559)]()&&w[n(486)](S),w})},Ua=function(){const b=g,a=this;a[b(452)]=[{text:b(460),value:b(460)},{text:"Tabloid",value:"Tabloid"},{text:b(648),value:b(648)},{text:"A3",value:"A3"},{text:"A4",value:"A4"},{text:"A5",value:"A5"},{text:"B4",value:"B4"},{text:"B5",value:"B5"}];a[b(430)]=[{text:b(605),value:"portrait"},{text:b(574),value:b(457)}];a[b(565)]=[{value:0,text:b(659),values:[1.905, .635,1.905,.635]},{value:1,text:"Normal",values:[1.905,1.778,1.905,1.778]},{value:2,text:b(507),values:[2.54,2.54,2.54,2.54]}];a[b(530)]=[{value:0,text:b(581),values:1},{value:1,text:b(558),values:b(575)},{value:2,text:"Fit to width",values:b(612)},{value:3,text:b(624),values:"height"}];a.scope=b(487);a[b(633)]=a.pageSizes[4][b(594)];a[b(587)]=a[b(430)][1][b(594)];a.pageScale=0;a[b(570)]=1;a.showGridLines=!0;a[b(469)]=!1;a.showPositionIdentifiers=!1;a[b(431)]=b(649);a.horizontalAlignment="center"; a[b(408)]=b(419);a[b(568)]=!1;a[b(461)]=!1;a[b(638)]=!1;a[b(629)]=!1;a[b(399)]=!1;a[b(453)]=!0;a.repeatFrozenColumns=!1;const c=function(){let q=a[b(571)][b(538)]();return a[b(571)][b(643)][q]},d=function(){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){la=a[b(571)].config[b(493)];var q=a[b(633)]||"A4";const m=a[b(626)]||"center",h=a[b(408)]||b(419);if(a.scope===b(560)){const z=c(),A=z.getSelection();q=yield Ba(z,void 0!==A?{start:[A[1],A[0]],end:[A[3],A[2]]}:null,{pageSize:q,pageOrientation:a.pageOrientation, pageScale:a.availableScales[a[b(544)]||0][b(620)],pageMargins:a[b(565)][a[b(570)]||0][b(620)],showGridLines:a[b(458)],showNotes:a[b(469)],showPositionIdentifiers:a[b(521)],orderOfPages:a.orderOfPages,horizontalAlignment:m,verticalAlignment:h,showPageNu