@univerjs-pro/sheets-print 1.0.1 → 1.0.3
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f39bc=_0x23f3;(function(_0x4fc06f,_0x1e9012){const _0xc8f045=_0x23f3,_0x11fdb8=_0x4fc06f();while(!![]){try{const _0x22d4d7=parseInt(_0xc8f045(0x204))/0x1+parseInt(_0xc8f045(0x186))/0x2*(-parseInt(_0xc8f045(0x2d3))/0x3)+parseInt(_0xc8f045(0x2ae))/0x4+-parseInt(_0xc8f045(0x98))/0x5+parseInt(_0xc8f045(0x99))/0x6*(-parseInt(_0xc8f045(0x1ec))/0x7)+parseInt(_0xc8f045(0x2ab))/0x8+-parseInt(_0xc8f045(0x1cb))/0x9*(-parseInt(_0xc8f045(0x2c2))/0xa);if(_0x22d4d7===_0x1e9012)break;else _0x11fdb8['push'](_0x11fdb8['shift']());}catch(_0x28dd3b){_0x11fdb8['push'](_0x11fdb8['shift']());}}}(_0x4994,0x1cbb2));import{LS_CONFIG_KEY as _0x2078d8,ReleaseType as _0x23d33,UniverLicensePlugin as _0x31e9aa,getLicenseInfo as _0x1ea2e4,getSheetFeatureLimit as _0x3c9870,isFeatureAuthorizedWithinTime as _0x243368,isLocalCheck as _0x23ec27}from'@univerjs-pro/license';import{IPrintPreparationService as _0x8e087f,PRINT_CANVAS_CLASS as _0xc8969b,PRINT_CONTAINER_CLASS as _0x234dc1,PaperMarginMap as _0x5488a0,PrintAlign as _0x565437,PrintDirection as _0x3cdc0e,PrintPaperMargin as _0x3a1d5d,PrintPreparationService as _0x37e95c,PrintScale as _0x40a4cd,createPrintStyle as _0x1a7732}from'@univerjs-pro/print';import{BuildTextUtils as _0x5f0c69,CommandType as _0x5cfa33,CustomRangeType as _0xcafb3e,DependentOn as _0x17be11,Disposable as _0x40a160,DisposableCollection as _0x426af7,ICommandService as _0x21a0f4,IConfigService as _0x97645,ILocalStorageService as _0x46343b,ILogService as _0x52fa3a,IPermissionService as _0x2b99f6,IUniverInstanceService as _0x3226eb,Inject as _0x12a925,Injector as _0x37f97a,JSONX as _0x118ba9,LocaleService as _0x5bc796,PAGE_SIZE as _0x19df64,PaperType as _0x21065a,Plugin as _0x15c1ed,Quantity as _0x3b83ad,RichTextBuilder as _0x1cf8d8,Tools as _0x331a03,UniverInstanceType as _0x4c551a,UserManagerService as _0x5db523,awaitTime as _0x14ca7f,createIdentifier as _0x1a66eb,dateKit as _0x4267e3,generateRandomId as _0x5514b4,merge as _0x5114e8,registerDependencies as _0x3a2b96,touchDependencies as _0x3541c7}from'@univerjs/core';import{RangeProtectionPermissionViewPoint as _0x4b3498,SheetsSelectionsService as _0x17e87f,UniverSheetsPlugin as _0x379f28,WorkbookCopyPermission as _0x4848ee,WorkbookPrintPermission as _0x5e483a,WorkbookViewPermission as _0x5c6fcb,WorksheetCopyPermission as _0x26e479,WorksheetViewPermission as _0x2a8db9,getSheetCommandTarget as _0xce644b}from'@univerjs/sheets';import{BuiltInUIPart as _0x2c5004,ComponentManager as _0x428294,ContextMenuGroup as _0x1fdfb5,ContextMenuPosition as _0x525f53,IDialogService as _0x50680a,IMenuManagerService as _0x5d84aa,IMessageService as _0x9aeed,IShortcutService as _0x5726ef,ISidebarService as _0x208efa,IUIPartsService as _0x5e1a90,IconManager as _0xa1ea30,KeyCode as _0x2e96d6,MenuItemType as _0x4b715f,MetaKeys as _0x4dc287,RibbonStartGroup as _0x1944cc,UniverMobileUIPlugin as _0x6c1e07,connectInjector as _0x59db83,getMenuHiddenObservable as _0x362eb1,useDependency as _0x15af67,useEvent as _0xa649e0,useObservable as _0x2547c4,useVirtualList as _0x160755}from'@univerjs/ui';import{BehaviorSubject as _0x1d6e67,debounceTime as _0x55bfb5}from'rxjs';import{CanvasRenderMode as _0x54f340,DEFAULT_FONTFACE_PLANE as _0x3cfea7,Engine as _0x2ca093,IRenderManagerService as _0x2eec27,IWatermarkTypeEnum as _0x2350f5,SHEET_VIEWPORT_KEY as _0x5ab325,Scene as _0x45bc44,SheetExtension as _0x541fec,Spreadsheet as _0x3f1df6,SpreadsheetColumnHeader as _0x4c4537,SpreadsheetRowHeader as _0x243eab,UNIVER_WATERMARK_STORAGE_KEY as _0x1ff65e,UniverRenderEnginePlugin as _0x1a4144,Viewport as _0x17601b,fixLineWidthByScale as _0x2ab0ac,renderWatermark as _0x5d2860}from'@univerjs/engine-render';import{SheetPrintInterceptorService as _0x574d33,SheetPrintingResourceCollector as _0x2cd6fd,SheetSkeletonManagerService as _0x3fe36b,UniverSheetsMobileUIPlugin as _0x2049a6,UniverSheetsUIPlugin as _0x3d2bc6,getCurrentRangeDisable$ as _0x8d9074,whenSheetEditorFocused as _0x1a2a8b}from'@univerjs/sheets-ui';import{Button as _0x13fbf0,Checkbox as _0x48108d,CheckboxGroup as _0x21fa32,Dropdown as _0x136c4a,FormLayout as _0x1ca1dd,Input as _0x97485a,MessageType as _0x1c241d,MobileDialog as _0x5a6092,MobileDropdown as _0x334180,MobileSelect as _0x5bd8b4,Radio as _0x1f8ddd,RadioGroup as _0x9aa08,Select as _0x336ba1,borderBottomClassName as _0x21c584,borderClassName as _0x32dbe9,borderTopClassName as _0xf8416b,clsx as _0x33108a,scrollbarClassName as _0x2734c8}from'@univerjs/design';import{CalendarIcon as _0x57a336,ClockIcon as _0x10194f,DocSettingIcon as _0x5e2c28,IncreaseIcon as _0x411be2,LoadingMultiIcon as _0x2042e9,MoreDownIcon as _0x4eaeab,PrintIcon as _0x16dc64,ReduceIcon as _0x1f2513,SheetIcon as _0x29d541,TextIcon as _0x3125f6}from'@univerjs/icons';import{forwardRef as _0x4c04dc,memo as _0x4d5935,useEffect as _0x481e15,useMemo as _0x54a2e0,useRef as _0x29d13f,useState as _0x527371}from'react';import{jsx as _0x44a18c,jsxs as _0x4be8e8}from'react/jsx-runtime';import{RichTextEditingMutation as _0x22ae90}from'@univerjs/docs';import{IEditorService as _0x58dc84,RichTextEditor as _0x1390fa}from'@univerjs/docs-ui';const Wt=Number[_0x1f39bc(0x116)](0x6ab4de54),Gt=_0x1f39bc(0x216);function Kt(_0x5347f8){'@babel/helpers - typeof';const _0x39e19f=_0x1f39bc;return Kt=typeof Symbol==_0x39e19f(0x306)&&typeof Symbol[_0x39e19f(0x309)]==_0x39e19f(0x1a2)?function(_0x477bba){return typeof _0x477bba;}:function(_0x3b6b13){const _0x16bdc1=_0x39e19f;return _0x3b6b13&&typeof Symbol==_0x16bdc1(0x306)&&_0x3b6b13[_0x16bdc1(0xdd)]===Symbol&&_0x3b6b13!==Symbol[_0x16bdc1(0xe6)]?_0x16bdc1(0x1a2):typeof _0x3b6b13;},Kt(_0x5347f8);}function qt(_0x5dc02a,_0x1f0924){const _0x25e0e7=_0x1f39bc;if(Kt(_0x5dc02a)!=_0x25e0e7(0x209)||!_0x5dc02a)return _0x5dc02a;var _0x31d1ec=_0x5dc02a[Symbol[_0x25e0e7(0xbc)]];if(_0x31d1ec!==void 0x0){var _0x34c7a2=_0x31d1ec[_0x25e0e7(0x249)](_0x5dc02a,_0x1f0924||_0x25e0e7(0xfd));if(Kt(_0x34c7a2)!=_0x25e0e7(0x209))return _0x34c7a2;throw TypeError(_0x25e0e7(0x1f8));}return(_0x1f0924==='string'?String:Number)(_0x5dc02a);}function Jt(_0x557c20){const _0x3a59a4=_0x1f39bc;var _0xb69d4=qt(_0x557c20,'string');return Kt(_0xb69d4)==_0x3a59a4(0x1a2)?_0xb69d4:_0xb69d4+'';}function G(_0x4b256c,_0x1b6621,_0x2c47d3){const _0x4bed8d=_0x1f39bc;return(_0x1b6621=Jt(_0x1b6621))in _0x4b256c?Object[_0x4bed8d(0x1a5)](_0x4b256c,_0x1b6621,{'value':_0x2c47d3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b256c[_0x1b6621]=_0x2c47d3,_0x4b256c;}const K=_0x1a66eb(_0x1f39bc(0x1c3));var Yt=class extends _0x40a160{constructor(..._0x32261a){const _0x17d962=_0x1f39bc;super(..._0x32261a),G(this,_0x17d962(0x1f7),new _0x1d6e67(!0x1)),G(this,'preparing$',new _0x1d6e67(!0x1));}get['visible'](){const _0x3d48e5=_0x1f39bc;return this[_0x3d48e5(0x1f7)]['getValue']();}get['preparing'](){const _0x20506f=_0x1f39bc;return this[_0x20506f(0x1ba)][_0x20506f(0x298)]();}[_0x1f39bc(0xd0)](){const _0x190fff=_0x1f39bc;this[_0x190fff(0x1f7)][_0x190fff(0x307)](!0x0);}[_0x1f39bc(0x224)](){const _0x12d9ac=_0x1f39bc;this[_0x12d9ac(0x1f7)][_0x12d9ac(0x307)](!0x1);}[_0x1f39bc(0x109)](_0x472272){const _0x3630bd=_0x1f39bc;this[_0x3630bd(0x1ba)][_0x3630bd(0x307)](_0x472272);}['dispose'](){const _0x25f0b3=_0x1f39bc;this[_0x25f0b3(0x1f7)][_0x25f0b3(0x2a1)](),this['preparing$']['complete'](),super[_0x25f0b3(0x26a)]();}};let Xt=function(_0x2e6727){const _0x2d0d90=_0x1f39bc;return _0x2e6727[_0x2d0d90(0x17f)]='CurrentSheet',_0x2e6727[_0x2d0d90(0x90)]=_0x2d0d90(0x168),_0x2e6727[_0x2d0d90(0x112)]=_0x2d0d90(0x112),_0x2e6727[_0x2d0d90(0x189)]=_0x2d0d90(0x189),_0x2e6727;}({}),Zt=function(_0x27c8dc){const _0x3763e9=_0x1f39bc;return _0x27c8dc[_0x3763e9(0x220)]=_0x3763e9(0x220),_0x27c8dc[_0x3763e9(0x2d9)]=_0x3763e9(0x2d9),_0x27c8dc[_0x3763e9(0x10e)]=_0x3763e9(0x10e),_0x27c8dc[_0x3763e9(0x1f2)]=_0x3763e9(0x1f2),_0x27c8dc[_0x3763e9(0x296)]=_0x3763e9(0x296),_0x27c8dc;}({}),Qt=function(_0x49f02a){const _0x28afda=_0x1f39bc;return _0x49f02a[_0x28afda(0x140)]=_0x28afda(0x140),_0x49f02a['Column']=_0x28afda(0x152),_0x49f02a;}({}),$t=function(_0x5ce727){const _0x164a67=_0x1f39bc;return _0x5ce727[_0x164a67(0x2d9)]=_0x164a67(0x2b9),_0x5ce727[_0x164a67(0x10e)]=_0x164a67(0x194),_0x5ce727['DateA']=_0x164a67(0x1dc),_0x5ce727['DateB']=_0x164a67(0x160),_0x5ce727[_0x164a67(0x12f)]=_0x164a67(0x1be),_0x5ce727[_0x164a67(0xa6)]=_0x164a67(0xb6),_0x5ce727[_0x164a67(0x293)]=_0x164a67(0x23a),_0x5ce727[_0x164a67(0xab)]=_0x164a67(0x234),_0x5ce727[_0x164a67(0x1c2)]=_0x164a67(0x297),_0x5ce727[_0x164a67(0x1dd)]='@TimeC',_0x5ce727['TimeD']=_0x164a67(0x20c),_0x5ce727['Page']=_0x164a67(0x2e0),_0x5ce727[_0x164a67(0x1b7)]=_0x164a67(0x245),_0x5ce727[_0x164a67(0x107)]='@TotalPage',_0x5ce727[_0x164a67(0x19b)]=_0x164a67(0x27e),_0x5ce727;}({});const en={'topLeft':'','topCenter':'','topRight':'','bottomLeft':'','bottomCenter':'','bottomRight':''};function q(_0x33c154,_0x5b639e){return function(_0x49d45f,_0x56d1a7){_0x5b639e(_0x49d45f,_0x56d1a7,_0x33c154);};}function J(_0x1f0abf,_0x3bf5cf,_0xc8dd45,_0x215332){const _0x44fd38=_0x1f39bc;var _0x3dc714=arguments[_0x44fd38(0x260)],_0x2859e3=_0x3dc714<0x3?_0x3bf5cf:_0x215332===null?_0x215332=Object[_0x44fd38(0x2bb)](_0x3bf5cf,_0xc8dd45):_0x215332,_0x201d44;if(typeof Reflect==_0x44fd38(0x209)&&typeof Reflect[_0x44fd38(0x2a6)]==_0x44fd38(0x306))_0x2859e3=Reflect[_0x44fd38(0x2a6)](_0x1f0abf,_0x3bf5cf,_0xc8dd45,_0x215332);else{for(var _0x26677b=_0x1f0abf['length']-0x1;_0x26677b>=0x0;_0x26677b--)(_0x201d44=_0x1f0abf[_0x26677b])&&(_0x2859e3=(_0x3dc714<0x3?_0x201d44(_0x2859e3):_0x3dc714>0x3?_0x201d44(_0x3bf5cf,_0xc8dd45,_0x2859e3):_0x201d44(_0x3bf5cf,_0xc8dd45))||_0x2859e3);}return _0x3dc714>0x3&&_0x2859e3&&Object[_0x44fd38(0x1a5)](_0x3bf5cf,_0xc8dd45,_0x2859e3),_0x2859e3;}const Y=_0x1a66eb('univer-pro.sheet-print-manager.service'),tn=_0x74903=>Math['floor'](_0x74903*0x64)/0x64,nn={'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},rn={'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0};let an=class{constructor(_0x5c66dd,_0x2f6466,_0x17608b,_0x3fdac0){const _0x416888=_0x1f39bc;this['_univerInstanceService']=_0x5c66dd,this[_0x416888(0x154)]=_0x2f6466,this['_sheetPrintInterceptorService']=_0x17608b,this[_0x416888(0x289)]=_0x3fdac0,G(this,_0x416888(0x259),{'area':'CurrentSheet','subUnitIds':[],'paperSize':_0x21065a['A4'],'direction':_0x3cdc0e[_0x416888(0x2fd)],'scale':_0x40a4cd[_0x416888(0x2ea)],'customScale':0x1,'freeze':[_0x416888(0x140),_0x416888(0x152)],'margin':_0x3a1d5d[_0x416888(0x147)],'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0,'marginCustom':{'top':0x0,'bottom':0x0,'left':0x0,'right':0x0}}),G(this,_0x416888(0x2e2),{'gridlines':!0x0,'hAlign':_0x565437[_0x416888(0xef)],'vAlign':_0x565437['Start'],'headerFooter':[],'headerFooterSetting':en,'isCustomHeaderFooter':!0x1}),G(this,_0x416888(0x18a),[]),G(this,_0x416888(0x2ed),new _0x1d6e67(this[_0x416888(0x18a)])),G(this,_0x416888(0x22d),new _0x1d6e67(this[_0x416888(0x259)])),G(this,_0x416888(0x1ef),new _0x1d6e67(this[_0x416888(0x2e2)])),G(this,'_printViewDisposable',null),G(this,_0x416888(0x2c7),this[_0x416888(0x22d)][_0x416888(0xd1)]()),G(this,_0x416888(0xb0),this[_0x416888(0x1ef)][_0x416888(0xd1)]()),G(this,_0x416888(0x286),this[_0x416888(0x2ed)]['asObservable']()[_0x416888(0xf0)](_0x55bfb5(0x12c)));}get[_0x1f39bc(0x1a9)](){return this['_layoutInfos'];}get[_0x1f39bc(0x85)](){return this['_renderConfig'];}get[_0x1f39bc(0x2a2)](){const _0x523f2d=_0x1f39bc;return this[_0x523f2d(0x259)];}get['paperSize'](){const _0x5c0f46=_0x1f39bc;let {paperSize:_0x14e5f5,direction:_0x17ea2f,pageSizeCustom:_0xfde86e}=this['_layoutConfig'];if(_0xfde86e)return _0xfde86e;let _0x26e947=_0x19df64[_0x14e5f5];return _0x17ea2f===_0x3cdc0e[_0x5c0f46(0x2fd)]?{'w':_0x26e947[_0x5c0f46(0x176)],'h':_0x26e947[_0x5c0f46(0xc9)]}:{'w':_0x26e947[_0x5c0f46(0xc9)],'h':_0x26e947[_0x5c0f46(0x176)]};}get[_0x1f39bc(0x1f6)](){const _0x19ff74=_0x1f39bc;return this[_0x19ff74(0x259)][_0x19ff74(0x258)]===_0x3a1d5d[_0x19ff74(0x20b)]?this[_0x19ff74(0x259)]['marginCustom']:_0x5488a0[this[_0x19ff74(0x259)][_0x19ff74(0x258)]];}[_0x1f39bc(0x1f4)](_0x5a6d88){const _0x3c8dc5=_0x1f39bc;this[_0x3c8dc5(0x259)]={...this[_0x3c8dc5(0x259)],..._0x5a6d88},this[_0x3c8dc5(0x22d)][_0x3c8dc5(0x307)](this[_0x3c8dc5(0x259)]),this[_0x3c8dc5(0x88)]();}[_0x1f39bc(0x14e)](_0x238687){const _0x1f4049=_0x1f39bc;this[_0x1f4049(0x259)]=_0x238687,this[_0x1f4049(0x22d)]['next'](this['_layoutConfig']),this['reLayout']();}[_0x1f39bc(0x151)](_0x30036a){const _0x167f9e=_0x1f39bc;this[_0x167f9e(0x2e2)]={...this['_renderConfig'],..._0x30036a},this[_0x167f9e(0x1ef)][_0x167f9e(0x307)](this[_0x167f9e(0x2e2)]);}[_0x1f39bc(0x148)](_0x360f0d){const _0x5a4b13=_0x1f39bc;this['_renderConfig']=_0x360f0d,this[_0x5a4b13(0x1ef)][_0x5a4b13(0x307)](this[_0x5a4b13(0x2e2)]);}[_0x1f39bc(0x88)](){const _0x11dc70=_0x1f39bc;this[_0x11dc70(0x18a)]=this[_0x11dc70(0xc5)](),this[_0x11dc70(0x2ed)][_0x11dc70(0x307)](this[_0x11dc70(0x18a)]);}[_0x1f39bc(0x270)](){const _0x174ca3=_0x1f39bc;this[_0x174ca3(0x18a)]=[],this[_0x174ca3(0x2ed)][_0x174ca3(0x307)](this['_layoutInfos']),this[_0x174ca3(0x259)]={...this[_0x174ca3(0x259)],'area':_0x174ca3(0x17f),'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0},this[_0x174ca3(0x22d)][_0x174ca3(0x307)](this[_0x174ca3(0x259)]);}[_0x1f39bc(0x1d7)](_0x1f22ea){const _0x51baee=_0x1f39bc;var _0x1ab3c6;(_0x1ab3c6=this[_0x51baee(0xe1)])==null||_0x1ab3c6[_0x51baee(0x26a)](),this[_0x51baee(0xe1)]=_0x1f22ea;}[_0x1f39bc(0x213)](){const _0x203ac6=_0x1f39bc;var _0x1b2d23;(_0x1b2d23=this[_0x203ac6(0xe1)])==null||_0x1b2d23['dispose'](),this[_0x203ac6(0xe1)]=null;}[_0x1f39bc(0xc5)](){const _0x3a0353=_0x1f39bc;let _0x502a5a=this[_0x3a0353(0x9d)](),_0x400f26=[];return _0x502a5a[_0x3a0353(0x248)](_0x9b20ca=>{const _0xe44117=_0x3a0353;if(_0x9b20ca){let _0xa6a28a=this[_0xe44117(0x126)](_0x9b20ca);_0xa6a28a&&_0x400f26[_0xe44117(0xe4)](_0xa6a28a);}}),_0x400f26;}[_0x1f39bc(0x29d)](_0x24b606,_0x5cc4ca,_0x1100a){const _0xf218cf=_0x1f39bc;var _0x270a3;let _0x42a9ff=this[_0xf218cf(0x193)][_0xf218cf(0x287)](_0x4c551a[_0xf218cf(0x2b6)])['getSheetBySheetId'](_0x5cc4ca);if(!_0x42a9ff)return;let _0x21903f=_0x42a9ff[_0xf218cf(0x217)](),_0x29beb6=_0x1100a??_0x42a9ff[_0xf218cf(0x174)](),_0x1c8823=(_0x270a3=this[_0xf218cf(0x289)]['getRenderUnitById'](_0x24b606))==null?void 0x0:_0x270a3[_0xf218cf(0x2da)](_0x3fe36b)[_0xf218cf(0x25d)](_0x5cc4ca);if(!_0x1c8823)return;if(_0x29beb6){var _0x1ad110;_0x1c8823==null||(_0x1ad110=_0x1c8823[_0xf218cf(0x9c)])==null||_0x1ad110[_0xf218cf(0x2cf)]((_0x1bd667,_0x3b00ac,_0x486b7b)=>{const _0x4e7f13=_0xf218cf;let {endColumn:_0x12877b}=_0x486b7b;_0x12877b>_0x29beb6[_0x4e7f13(0x95)]&&(_0x29beb6[_0x4e7f13(0x95)]=_0x12877b);});}let _0x5e68af=this[_0xf218cf(0x1c5)][_0xf218cf(0x199)][_0xf218cf(0x125)](this[_0xf218cf(0x1c5)][_0xf218cf(0x199)][_0xf218cf(0x12c)]()[_0xf218cf(0x1e4)])(_0x29beb6,{'unitId':_0x24b606,'subUnitId':_0x5cc4ca});return _0x5e68af?this[_0xf218cf(0x11a)](_0x5cc4ca,{..._0x5e68af,'startColumn':Math[_0xf218cf(0x29c)](_0x21903f[_0xf218cf(0x181)]-_0x21903f[_0xf218cf(0x19a)],0x0),'startRow':Math[_0xf218cf(0x29c)](_0x21903f[_0xf218cf(0x2f0)]-_0x21903f['ySplit'],0x0)}):null;}['_calculateCurrentSelectionRange'](_0x5b87d3,_0x43b78a){const _0x1aaa67=_0x1f39bc;let _0x394765=this[_0x1aaa67(0x154)][_0x1aaa67(0x2ac)](_0x5b87d3)[_0x1aaa67(0x2ba)](_0x43b78a);return _0x394765?_0x394765['map'](_0x2a8c6a=>this['_calculateFinalRange'](_0x43b78a,_0x2a8c6a[_0x1aaa67(0x236)])):[];}[_0x1f39bc(0x11a)](_0x485c35,_0x133ca9){const _0x3b93ff=_0x1f39bc;let _0xdab2d1=this[_0x3b93ff(0x193)][_0x3b93ff(0x287)](_0x4c551a[_0x3b93ff(0x2b6)]),_0x23ef53=_0xdab2d1['getSheetBySheetId'](_0x485c35),_0x3fa36a=this[_0x3b93ff(0x259)],_0x3d17af=_0xdab2d1[_0x3b93ff(0x91)](),_0x34f9c4=this['paperSize'],{top:_0x3ba734,right:_0x58d2e4,bottom:_0x10e7ae,left:_0x3b9bc4}=this[_0x3b93ff(0x1f6)];_0x34f9c4['h']-=_0x3ba734+_0x10e7ae,_0x34f9c4['w']-=_0x3b9bc4+_0x58d2e4;let _0x1f75f6=this['_renderManagerService'][_0x3b93ff(0x2e8)](_0x3d17af)[_0x3b93ff(0x2da)](_0x3fe36b);if(_0x133ca9[_0x3b93ff(0x2f0)]>-0x1&&_0x133ca9[_0x3b93ff(0x181)]>-0x1){let _0x531125=_0x1f75f6['ensureSkeleton'](_0x485c35);if(!_0x23ef53||!_0x531125)return null;let _0x5947c1=_0x133ca9[_0x3b93ff(0x2f0)],_0x14c3ee=_0x133ca9['endRow'],_0x631533=_0x133ca9[_0x3b93ff(0x181)],_0x34f4d0=_0x133ca9[_0x3b93ff(0x95)],_0x41de16=_0x23ef53[_0x3b93ff(0x217)](),_0x42ab51=tn(this[_0x3b93ff(0x30a)](_0x531125,_0x133ca9,_0x41de16)),_0x2fb33f=-0x1,_0x194648=0x0,_0x156c31=-0x1,_0x514219=0x0,_0x4be48d=_0x531125[_0x3b93ff(0x247)],_0x23e960=_0x531125[_0x3b93ff(0x24b)];if(_0x41de16[_0x3b93ff(0x19a)]&&_0x3fa36a[_0x3b93ff(0x12b)]['includes']('Column')){if(_0x34f4d0>=_0x41de16[_0x3b93ff(0x181)]){let _0x792213=_0x42ab51*(_0x4be48d[_0x41de16[_0x3b93ff(0x181)]-0x1]-(_0x4be48d[_0x41de16[_0x3b93ff(0x181)]-_0x41de16[_0x3b93ff(0x19a)]-0x1]||0x0));_0x792213<_0x34f9c4['w']&&(_0x156c31=_0x41de16['startColumn'],_0x514219=_0x41de16[_0x3b93ff(0x19a)],_0x34f9c4['w']-=_0x792213);}else{let _0x2ef21a=_0x34f4d0+0x1,_0x32e48d=_0x34f4d0+0x1-(_0x41de16[_0x3b93ff(0x181)]-_0x41de16['xSplit']),_0x2564d2=_0x42ab51*(_0x4be48d[_0x156c31-0x1]-(_0x4be48d[_0x156c31-_0x514219]-0x1||0x0));_0x2564d2<_0x34f9c4['w']&&(_0x156c31=_0x2ef21a,_0x514219=_0x32e48d,_0x34f9c4['w']-=_0x2564d2);}}if(_0x631533=Math['max'](_0x156c31,_0x631533),_0x41de16[_0x3b93ff(0x11f)]&&_0x3fa36a[_0x3b93ff(0x12b)][_0x3b93ff(0x271)]('Row')){if(_0x14c3ee>=_0x41de16['startRow']){let _0x3cc65d=_0x23e960[_0x41de16[_0x3b93ff(0x2f0)]]-_0x23e960[_0x41de16[_0x3b93ff(0x2f0)]-_0x41de16[_0x3b93ff(0x11f)]];_0x3cc65d<_0x34f9c4['h']&&(_0x2fb33f=_0x41de16[_0x3b93ff(0x2f0)],_0x194648=_0x41de16[_0x3b93ff(0x11f)],_0x34f9c4['h']-=_0x3cc65d);}else _0x2fb33f=_0x14c3ee+0x1,_0x194648=_0x14c3ee+0x1-(_0x41de16[_0x3b93ff(0x2f0)]-_0x41de16['ySplit']),_0x34f9c4['h']=_0x34f9c4['h']-_0x23e960[_0x2fb33f]-_0x23e960[_0x2fb33f-_0x194648];}return _0x5947c1=Math[_0x3b93ff(0x29c)](_0x2fb33f,_0x5947c1),{'unitId':_0x3d17af,'subUnitId':_0x485c35,'range':{'startRow':_0x5947c1,'endRow':_0x14c3ee,'startColumn':_0x631533,'endColumn':_0x34f4d0},'freeze':{'startRow':_0x2fb33f,'startColumn':_0x156c31,'xSplit':_0x514219,'ySplit':_0x194648},'contentSize':_0x34f9c4,'scale':_0x42ab51};}return{'unitId':_0x3d17af,'subUnitId':_0x485c35,'range':nn,'freeze':rn,'contentSize':_0x34f9c4,'scale':0x1};}[_0x1f39bc(0x30a)](_0x523ab2,_0x1f1af9,_0x3fdcab){const _0x52c877=_0x1f39bc;let _0xd7e6e6=_0x523ab2[_0x52c877(0x247)],_0x3e7f1f=_0x523ab2[_0x52c877(0x24b)],{xSplit:_0x7d6f33,ySplit:_0x4c5d44,startColumn:_0x41c71d,startRow:_0x97fe56}=_0x3fdcab,{startRow:_0x214d58,startColumn:_0x2d9821}=_0x1f1af9,{endColumn:_0xda0a84,endRow:_0x9f3bce}=_0x1f1af9;_0x214d58=_0x9f3bce<_0x97fe56?_0x214d58:Math[_0x52c877(0x29c)](_0x97fe56,_0x214d58),_0x2d9821=_0xda0a84<_0x41c71d?_0x2d9821:Math[_0x52c877(0x29c)](_0x41c71d,_0x2d9821);let {scale:_0x402a00,customScale:_0x414bf9}=this['_layoutConfig'],_0x517a03=this[_0x52c877(0x227)],_0x3fa255=this['paperMargin'],_0x49b152=_0x7d6f33>0x0?(_0xd7e6e6[_0x41c71d-0x1]||0x0)-(_0xd7e6e6[_0x41c71d-_0x7d6f33-0x1]||0x0):0x0,_0x1cdec0=_0x4c5d44>0x0?(_0x3e7f1f[_0x97fe56-0x1]||0x0)-(_0x3e7f1f[_0x97fe56-_0x4c5d44-0x1]||0x0):0x0,_0x3e0b72=_0x3e7f1f[_0x9f3bce]-(_0x3e7f1f[_0x214d58-0x1]||0x0),_0x10e135=_0xd7e6e6[_0xda0a84]-(_0xd7e6e6[_0x2d9821-0x1]||0x0),_0x323432=_0x3e0b72+_0x1cdec0,_0x497de5=_0x10e135+_0x49b152;switch(_0x402a00){case _0x40a4cd[_0x52c877(0x20b)]:return _0x414bf9;case _0x40a4cd[_0x52c877(0x272)]:return Math[_0x52c877(0x203)](0x1,(_0x517a03['w']-_0x3fa255[_0x52c877(0x131)]-_0x3fa255['right'])/_0x497de5);case _0x40a4cd[_0x52c877(0x2f8)]:return Math[_0x52c877(0x203)](0x1,(_0x517a03['h']-_0x3fa255[_0x52c877(0xf3)]-_0x3fa255[_0x52c877(0x23d)])/_0x323432);case _0x40a4cd[_0x52c877(0xc7)]:return Math[_0x52c877(0x203)](0x1,(_0x517a03['w']-_0x3fa255['left']-_0x3fa255['right'])/_0x497de5,(_0x517a03['h']-_0x3fa255[_0x52c877(0xf3)]-_0x3fa255[_0x52c877(0x23d)])/_0x323432);default:return 0x1;}}[_0x1f39bc(0x9d)](){const _0x512ce0=_0x1f39bc;let {area:_0x3dbbd3,subUnitIds:_0x4c881a}=this[_0x512ce0(0x259)],_0x38b88a=this[_0x512ce0(0x193)]['getCurrentUnitOfType'](_0x4c551a[_0x512ce0(0x2b6)]),_0x3c4a0d=_0x38b88a['getUnitId']();switch(_0x3dbbd3){case'CurrentSheet':{var _0xbd1f9d;let _0x10ba6a=(_0xbd1f9d=_0x38b88a[_0x512ce0(0x279)]())==null?void 0x0:_0xbd1f9d['getSheetId']();if(_0x10ba6a!=null){let _0x4cc1b3=this[_0x512ce0(0x29d)](_0x3c4a0d,_0x10ba6a);if(_0x4cc1b3)return[_0x4cc1b3];let _0x38b1d9=this[_0x512ce0(0x193)][_0x512ce0(0x287)](_0x4c551a['UNIVER_SHEET']),_0x110166=_0x38b1d9[_0x512ce0(0x279)]();return _0x110166?this['_calculateCurrentSelectionRange'](_0x38b1d9[_0x512ce0(0x91)](),_0x110166['getSheetId']()):(console[_0x512ce0(0x1a7)](_0x512ce0(0x251)),[]);}return[];}case _0x512ce0(0x112):{let _0x19520e=this[_0x512ce0(0x193)]['getCurrentUnitOfType'](_0x4c551a[_0x512ce0(0x2b6)]),_0x1b54ef=_0x19520e[_0x512ce0(0x279)]();return _0x1b54ef?this[_0x512ce0(0xaf)](_0x19520e[_0x512ce0(0x91)](),_0x1b54ef[_0x512ce0(0x24e)]()):(console['warn'](_0x512ce0(0x251)),[]);}case _0x512ce0(0x189):return this[_0x512ce0(0x193)][_0x512ce0(0x287)](_0x4c551a[_0x512ce0(0x2b6)])[_0x512ce0(0x246)]()[_0x512ce0(0x2d4)](_0x577a18=>this['_calculateCurrentSelectionRange'](_0x3c4a0d,_0x577a18[_0x512ce0(0x24e)]()))[_0x512ce0(0x14b)]();default:return(_0x4c881a[_0x512ce0(0x260)]?_0x4c881a:_0x38b88a[_0x512ce0(0x246)]()[_0x512ce0(0x137)](_0x29cdf3=>!_0x29cdf3['isSheetHidden']())[_0x512ce0(0x2d4)](_0x43c1f7=>_0x43c1f7[_0x512ce0(0x24e)]()))['map'](_0x45df3a=>this[_0x512ce0(0x29d)](_0x3c4a0d,typeof _0x45df3a==_0x512ce0(0x24c)?_0x45df3a:_0x45df3a['id'],typeof _0x45df3a==_0x512ce0(0x24c)?void 0x0:_0x45df3a[_0x512ce0(0x236)]))[_0x512ce0(0x137)](Boolean);}}['_calculateSheetPages'](_0x3b631a){const _0x58e30e=_0x1f39bc;let {subUnitId:_0x5bc14b,range:_0x1bd7ef,freeze:_0x21e274,unitId:_0x12c0e8,scale:_0x44ba54,contentSize:_0x1eb626}=_0x3b631a,_0x53368d=this[_0x58e30e(0x289)]['getRenderUnitById'](_0x12c0e8)[_0x58e30e(0x2da)](_0x3fe36b)[_0x58e30e(0x25d)](_0x5bc14b);if(!_0x53368d)return;let {rowHeightAccumulation:_0x23a899,columnWidthAccumulation:_0x3168cb}=_0x53368d,{w:_0xd771fb,h:_0x2eb91d}=_0x1eb626,{startRow:_0x963161,startColumn:_0xd68cb6,endColumn:_0x940d79,endRow:_0x39c935}=_0x1bd7ef,_0x452190=_0x39ca60=>{const _0x42c367=_0x58e30e;let _0x1918b5=_0x39ca60,_0xaf5980=this[_0x42c367(0x259)][_0x42c367(0x291)]<=_0x21e274[_0x42c367(0x11f)]?0x1/0x0:this['_layoutConfig'][_0x42c367(0x291)]-0x1-_0x21e274[_0x42c367(0x11f)]+_0x39ca60,_0x101d4d=_0x39ca60===0x0?0x0:_0x23a899[_0x39ca60-0x1];for(;_0x1918b5<_0x39c935;){let _0x233df7=(_0x23a899[_0x1918b5]-_0x101d4d)*_0x44ba54,_0x4d805=(_0x23a899[_0x1918b5+0x1]-_0x101d4d)*_0x44ba54;if(_0x1918b5++,_0x233df7>=_0x2eb91d||_0x233df7<_0x2eb91d&&_0x4d805>_0x2eb91d)return{'startRow':_0x39ca60,'endRow':Math[_0x42c367(0x203)](_0x1918b5-0x1,_0xaf5980)};}return{'startRow':_0x39ca60,'endRow':Math[_0x42c367(0x203)](_0x1918b5,_0xaf5980)};},_0x4e72ef=_0x5404e4=>{const _0x1c0a05=_0x58e30e;let _0x2b18e0=_0x5404e4,_0x2220fb=_0x5404e4===0x0?0x0:_0x3168cb[_0x5404e4-0x1],_0x1ef928=this[_0x1c0a05(0x259)]['maxColumnsEachPage']<=_0x21e274[_0x1c0a05(0x19a)]?0x1/0x0:this[_0x1c0a05(0x259)][_0x1c0a05(0x230)]-0x1-_0x21e274[_0x1c0a05(0x19a)]+_0x5404e4;for(;_0x2b18e0<_0x940d79;){let _0x2ae630=(_0x3168cb[_0x2b18e0]-_0x2220fb)*_0x44ba54,_0x10e8a8=(_0x3168cb[_0x2b18e0+0x1]-_0x2220fb)*_0x44ba54;if(_0x2b18e0++,_0x2ae630<_0xd771fb&&_0x10e8a8>_0xd771fb||_0x2ae630>=_0xd771fb)return{'startColumn':_0x5404e4,'endColumn':Math[_0x1c0a05(0x203)](_0x2b18e0-0x1,_0x1ef928)};}return{'startColumn':_0x5404e4,'endColumn':Math[_0x1c0a05(0x203)](_0x2b18e0,_0x1ef928)};},_0x3e32ca=[],_0x446c05=_0x963161;for(;_0x446c05<=_0x39c935;){let _0x408a2e=_0x452190(_0x446c05);_0x3e32ca[_0x58e30e(0xe4)](_0x408a2e),_0x446c05=_0x408a2e['endRow']+0x1;}let _0x166697=[],_0x324213=_0xd68cb6;for(;_0x324213<=_0x940d79;){let _0x1b0428=_0x4e72ef(_0x324213);_0x166697['push'](_0x1b0428),_0x324213=_0x1b0428[_0x58e30e(0x95)]+0x1;}let _0x268b80=[];for(let _0x147230=0x0;_0x147230<_0x3e32ca[_0x58e30e(0x260)];_0x147230++)for(let _0x4d50d2=0x0;_0x4d50d2<_0x166697['length'];_0x4d50d2++)_0x268b80[_0x58e30e(0xe4)]({..._0x3e32ca[_0x147230],..._0x166697[_0x4d50d2]});return{'unitId':_0x12c0e8,'subUnitId':_0x5bc14b,'pages':_0x268b80,'freeze':_0x21e274,'scale':_0x44ba54,'pageSize':this[_0x58e30e(0x227)],'margin':this[_0x58e30e(0x1f6)]};}};an=J([q(0x0,_0x3226eb),q(0x1,_0x12a925(_0x17e87f)),q(0x2,_0x12a925(_0x574d33)),q(0x3,_0x2eec27)],an);const on=(_0x46b406,_0x520126)=>{const _0x25b49c=_0x1f39bc;if(!_0x46b406||!_0x520126)return!0x0;let _0x2b8027=_0x1ea2e4(_0x46b406,_0x520126)['message'],_0x2f9de3=_0x243368(_0x2b8027,'sf',Wt);return!((_0x2b8027==null?void 0x0:_0x2b8027['rt'])===_0x23d33[_0x25b49c(0x250)]&&!_0x2f9de3);},sn=(_0x2a76ac,_0x33314c,_0x5c080e)=>{const _0x10b5e1=_0x1f39bc;let _0x4910ce={'page':_0x2a76ac,'isPro':!0x1,'timeValid':!0x1};if(!_0x33314c||!_0x5c080e)return _0x4910ce;let _0x3fc4c=_0x1ea2e4(_0x33314c,_0x5c080e);if(_0x3fc4c[_0x10b5e1(0x1f0)]){let _0x294480=_0x3fc4c[_0x10b5e1(0x2e5)],_0xa8f7a8=_0x243368(_0x294480,'sf',Wt);_0x4910ce['isPro']=_0xa8f7a8,_0x4910ce['timeValid']=_0xa8f7a8,_0x4910ce[_0x10b5e1(0x169)]=_0x3c9870(_0x294480,_0xa8f7a8,_0x10b5e1(0x304),_0x2a76ac,_0x2a76ac,0x0);}return _0x4910ce;};function cn(_0xf678b3){const _0x40aa0c=_0x1f39bc;let {ls:_0x1b04a4,pbk:_0x45d17b}=_0xf678b3[_0x40aa0c(0x2a3)](_0x97645)[_0x40aa0c(0x1c8)](_0x2078d8)??{};return sn(0x3,_0x1b04a4,_0x45d17b)[_0x40aa0c(0x153)];}const X={'id':_0x1f39bc(0xea),'type':_0x5cfa33[_0x1f39bc(0x13f)],'handler':async _0x432eaa=>{const _0x23000c=_0x1f39bc;let _0x553318=_0x432eaa['get'](K),_0x1923a1=_0x432eaa[_0x23000c(0x2a3)](_0x2b99f6),_0x46f3ad=_0x432eaa[_0x23000c(0x2a3)](_0x5bc796),_0x4767d3=_0x432eaa[_0x23000c(0x2a3)](_0x3226eb),_0x1f083e=_0x432eaa[_0x23000c(0x2a3)](_0x50680a),{ls:_0x527031,pbk:_0x303ee9}=_0x432eaa[_0x23000c(0x2a3)](_0x97645)['getConfig'](_0x2078d8)??{};if(!on(_0x527031,_0x303ee9))return!0x1;let _0x27d82f=_0x4767d3[_0x23000c(0x287)](_0x4c551a[_0x23000c(0x2b6)])[_0x23000c(0x91)]();if(!(_0x1923a1[_0x23000c(0x19c)](new _0x5e483a(_0x27d82f)['id'])??!0x1)){let _0x50b490={'id':Gt,'title':{'title':''},'children':{'label':_0x23000c(0x29a),'errorMsg':_0x46f3ad['t']('sheets-print.permission.printErr')},'width':0x140,'onClose':()=>_0x1f083e[_0x23000c(0x224)](Gt),'className':_0x23000c(0x268)};throw _0x1f083e[_0x23000c(0xd0)](_0x50b490),Error(_0x23000c(0x2c9));}_0x553318['setPreparing'](!0x0),_0x553318[_0x23000c(0xd0)]();try{return await _0x432eaa['get'](_0x8e087f)[_0x23000c(0xfb)]({'unitId':_0x27d82f,'unitType':_0x4c551a[_0x23000c(0x2b6)],'dpr':0x1}),!0x0;}catch(_0x4cc6f3){throw _0x553318[_0x23000c(0x224)](),_0x4cc6f3;}finally{_0x553318[_0x23000c(0x109)](!0x1);}}},ln={'type':_0x5cfa33[_0x1f39bc(0x13f)],'id':_0x1f39bc(0x1d3),'handler'(_0x45d219){const _0x373b44=_0x1f39bc;let _0x34d7f4=_0x45d219[_0x373b44(0x2a3)](K),_0x4f5c6c=_0x45d219[_0x373b44(0x2a3)](Y);return _0x34d7f4[_0x373b44(0x224)](),_0x4f5c6c[_0x373b44(0x270)](),!0x0;}},Z={'type':_0x5cfa33[_0x1f39bc(0x13f)],'id':'sheet.operation.confirm-print','handler'(){return!0x0;}},un={'id':'sheet.operation.print','type':_0x5cfa33['COMMAND'],'handler'(_0x2125d4,_0x552661){const _0x3c0cfb=_0x1f39bc;if(!_0x552661)return!0x1;let _0xe32dd2=_0x2125d4['get'](_0x21a0f4),_0x15f5ab=_0x2125d4[_0x3c0cfb(0x2a3)](Y);return _0x15f5ab['replaceLayoutConfig'](_0x552661[_0x3c0cfb(0x2a2)]),_0x15f5ab[_0x3c0cfb(0x148)](_0x552661[_0x3c0cfb(0x85)]),_0xe32dd2[_0x3c0cfb(0x2ad)](Z['id']);}};function Q(_0x1a6c15,_0x795a8e){const _0x39013f=_0x1f39bc;switch(_0x1a6c15){case _0x39013f(0x2b9):return _0x795a8e[_0x39013f(0x90)]['name'];case _0x39013f(0x194):return _0x795a8e[_0x39013f(0x214)][_0x39013f(0x2c1)]();case _0x39013f(0x2e0):return''+_0x795a8e[_0x39013f(0x169)];case'@TotalPage':return''+_0x795a8e[_0x39013f(0xee)];case'@TotalSheetPage':return''+_0x795a8e['sheetPageTotal'];case _0x39013f(0x245):return''+_0x795a8e[_0x39013f(0x16d)];case _0x39013f(0x1dc):return _0x795a8e['now'][_0x39013f(0xaa)](_0x795a8e[_0x39013f(0xfa)]['t'](_0x39013f(0x20a)));case _0x39013f(0x160):return _0x795a8e[_0x39013f(0x89)][_0x39013f(0xaa)](_0x795a8e[_0x39013f(0xfa)]['t'](_0x39013f(0xf8)));case _0x39013f(0x1be):return _0x795a8e[_0x39013f(0x89)][_0x39013f(0xaa)](_0x795a8e[_0x39013f(0xfa)]['t']('sheets-print.headerFooter.dateC'));case _0x39013f(0xb6):return _0x795a8e['now'][_0x39013f(0xaa)](_0x795a8e[_0x39013f(0xfa)]['t'](_0x39013f(0x124)));case'@DateE':return _0x795a8e[_0x39013f(0x89)][_0x39013f(0xaa)](_0x795a8e[_0x39013f(0xfa)]['t']('sheets-print.headerFooter.dateE'));case _0x39013f(0x234):return _0x795a8e['now']['format'](_0x795a8e[_0x39013f(0xfa)]['t'](_0x39013f(0x2a4)));case'@TimeB':return _0x795a8e[_0x39013f(0x89)][_0x39013f(0xaa)](_0x795a8e[_0x39013f(0xfa)]['t'](_0x39013f(0x9e)));case _0x39013f(0x129):return _0x795a8e[_0x39013f(0x89)][_0x39013f(0xaa)](_0x795a8e[_0x39013f(0xfa)]['t'](_0x39013f(0x133)));case'@TimeD':return _0x795a8e['now'][_0x39013f(0xaa)](_0x795a8e[_0x39013f(0xfa)]['t'](_0x39013f(0xed)));}}const dn=Object[_0x1f39bc(0x97)]($t);function fn(_0x157a76,_0x3b4536){const _0x1b08b0=_0x1f39bc;let _0x5ddfe0=_0x157a76;return dn[_0x1b08b0(0x248)](_0x384031=>{const _0x24f25e=_0x1b08b0;_0x5ddfe0=_0x5ddfe0[_0x24f25e(0x163)](_0x384031,Q(_0x384031,_0x3b4536));}),_0x5ddfe0;}const pn=_0x1f39bc(0x18e);function mn(_0x4ebcbe,_0x1e7aef){const _0x369a45=_0x1f39bc;let _0x374362=_0x4ebcbe;_0x1e7aef[_0x369a45(0x248)](_0x2abbd5=>{const _0x396872=_0x369a45;_0x374362=_0x374362['replaceAll'](_0x2abbd5['value'],''+pn+_0x2abbd5[_0x396872(0x121)]+pn);});let _0x2a3437=_0x374362[_0x369a45(0x1b5)](pn),_0xc49973=_0x1cf8d8[_0x369a45(0x179)]();return _0x2a3437[_0x369a45(0x248)]((_0x4ea121,_0x1f3fe)=>{const _0x1f68c2=_0x369a45;if(_0x4ea121){if(_0x1f3fe%0x2==0x1){let _0x11a1ac=_0x4ea121,_0x528db3={'id':'d','documentStyle':{},'drawings':{},'drawingsOrder':[],'body':{'dataStream':_0x4ea121,'customBlocks':[],'customRanges':[{'startIndex':0x0,'endIndex':_0x4ea121[_0x1f68c2(0x260)]-0x1,'rangeId':_0x5514b4(),'rangeType':_0xcafb3e['MENTION'],'properties':{'value':_0x1e7aef[_0x1f68c2(0x26e)](_0x4195bb=>_0x4195bb[_0x1f68c2(0x121)]===_0x11a1ac)[_0x1f68c2(0x2b3)]}}]}};_0xc49973[_0x1f68c2(0x1eb)](_0x528db3);}else _0xc49973[_0x1f68c2(0x10b)](_0x4ea121);}}),_0xc49973[_0x369a45(0x1e8)]();}function hn(_0x4c8d36){const _0x526674=_0x1f39bc;var _0x3431f7;if(!(_0x4c8d36!=null&&_0x4c8d36['body']))return'';let _0xc98176=_0x1cf8d8[_0x526674(0x179)](_0x331a03['deepClone'](_0x4c8d36));for(;(_0x3431f7=_0xc98176[_0x526674(0x1e8)]()[_0x526674(0x1e2)][_0x526674(0xae)])!=null&&_0x3431f7[_0x526674(0x260)];){let _0x4eaf11=_0xc98176[_0x526674(0x1e8)]()[_0x526674(0x1e2)][_0x526674(0xae)][0x0];if(!_0x4eaf11)break;_0xc98176[_0x526674(0x9a)](_0x4eaf11[_0x526674(0x164)],_0x4eaf11['endIndex']+0x1-_0x4eaf11[_0x526674(0x164)]),_0xc98176[_0x526674(0x10b)](_0x4eaf11[_0x526674(0x164)],_0x4eaf11[_0x526674(0x1aa)][_0x526674(0x2b3)]);}return _0xc98176[_0x526674(0x1e8)]()[_0x526674(0x1e2)][_0x526674(0x166)];}function gn(_0xeb5ac9,_0x547c9d){const _0x3a80aa=_0x1f39bc;_0xeb5ac9[_0x3a80aa(0x172)]()['forEach'](_0x4de377=>{const _0x650c4=_0x3a80aa;var _0x4954a1;let _0x5499fc=(_0x4954a1=_0x4de377['copyForPrinting'])==null?void 0x0:_0x4954a1[_0x650c4(0x249)](_0x4de377);_0x5499fc&&_0x547c9d[_0x650c4(0xcf)](_0x5499fc);});}var _n=class extends _0x40a160{get[_0x1f39bc(0x21e)](){const _0x5e7296=_0x1f39bc;return this['_renderConfig'][_0x5e7296(0x233)];}get[_0x1f39bc(0x275)](){const _0x28cc4b=_0x1f39bc;return this[_0x28cc4b(0x2d7)];}get[_0x1f39bc(0x22b)](){const _0x274ee9=_0x1f39bc;return this[_0x274ee9(0x300)];}get[_0x1f39bc(0x2ca)](){const _0xd880cd=_0x1f39bc;return this[_0xd880cd(0x135)];}get[_0x1f39bc(0x197)](){const _0x4b30a5=_0x1f39bc;return this[_0x4b30a5(0x8d)];}get[_0x1f39bc(0x85)](){const _0x47768a=_0x1f39bc;return this[_0x47768a(0x2e2)];}set['renderConfig'](_0xc3a98f){const _0x1c48ac=_0x1f39bc;this[_0x1c48ac(0x2e2)]=_0xc3a98f;}constructor(_0x42568b,_0x312ddd,_0x3b509d,_0x4943bd=!0x0,_0x58ef11=0x1){const _0x36c11f=_0x1f39bc;super(),this[_0x36c11f(0xeb)]=_0x42568b,this[_0x36c11f(0x1c0)]=_0x312ddd,this[_0x36c11f(0x2e2)]=_0x3b509d,this[_0x36c11f(0x157)]=_0x4943bd,this[_0x36c11f(0xa1)]=_0x58ef11,G(this,_0x36c11f(0x300),void 0x0),G(this,_0x36c11f(0x2df),void 0x0),G(this,_0x36c11f(0x2d7),void 0x0),G(this,'_unitId',void 0x0),G(this,_0x36c11f(0x2f1),void 0x0),G(this,_0x36c11f(0x262),void 0x0),G(this,_0x36c11f(0x232),void 0x0),G(this,'_viewTop',void 0x0),G(this,_0x36c11f(0x1af),void 0x0),G(this,_0x36c11f(0x175),null),G(this,'_viewColumnRight',null),G(this,_0x36c11f(0x135),document['createElement'](_0x36c11f(0x1a4))),G(this,_0x36c11f(0x8d),document[_0x36c11f(0x2d1)]('div')),G(this,_0x36c11f(0x26d),void 0x0),G(this,'_univerInstanceService',void 0x0),G(this,_0x36c11f(0x2f3),!0x0),G(this,_0x36c11f(0x16a),void 0x0),G(this,'_effects',new _0x426af7()),G(this,'_resourceCollector',new _0x2cd6fd()),G(this,_0x36c11f(0x1ed),void 0x0),G(this,'_totalWidth',0x0),G(this,_0x36c11f(0xa9),0x0);let {unitId:_0x7196ff,subUnitId:_0x1f5a32}=this['_config'];this[_0x36c11f(0xc4)]=_0x7196ff,this[_0x36c11f(0x2f1)]=_0x1f5a32,this[_0x36c11f(0x2d7)]=_0x7196ff+'_'+_0x1f5a32,this['_univerInstanceService']=this[_0x36c11f(0xeb)][_0x36c11f(0x2a3)](_0x3226eb);let _0x2fb3c0=this[_0x36c11f(0xeb)][_0x36c11f(0x2a3)](_0x2eec27);this[_0x36c11f(0x16a)]=_0x2fb3c0[_0x36c11f(0x2e8)](_0x7196ff);let _0x5877a7=this['_targetRender'][_0x36c11f(0x2da)](_0x3fe36b)[_0x36c11f(0x25d)](_0x1f5a32);this[_0x36c11f(0x26d)]=_0x5877a7,this['_root'][_0x36c11f(0x280)]=_0x36c11f(0x21b),this[_0x36c11f(0x244)]();}[_0x1f39bc(0x26a)](){const _0x426548=_0x1f39bc;var _0x4267e2;super['dispose'](),this['_effects'][_0x426548(0x26a)](),(_0x4267e2=this['_container'][_0x426548(0x223)])==null||_0x4267e2[_0x426548(0x19f)](this[_0x426548(0x135)]);}get[_0x1f39bc(0x227)](){const _0x3d5e8b=_0x1f39bc;let {w:_0x16d1b2,h:_0xb9710e}=this['_config']['pageSize'];return{'w':_0x16d1b2*this[_0x3d5e8b(0xa1)],'h':_0xb9710e*this[_0x3d5e8b(0xa1)]};}get[_0x1f39bc(0x258)](){const _0x480640=_0x1f39bc;let _0x19da93=this[_0x480640(0x1c0)][_0x480640(0x258)];return{'top':_0x19da93['top']*this['_previewScale'],'bottom':_0x19da93[_0x480640(0x23d)]*this[_0x480640(0xa1)],'left':_0x19da93[_0x480640(0x131)]*this[_0x480640(0xa1)],'right':_0x19da93[_0x480640(0x10f)]*this[_0x480640(0xa1)]};}[_0x1f39bc(0x244)](){const _0xc3a155=_0x1f39bc;let _0x581f1e=this[_0xc3a155(0x227)],_0x180083=this['_config']['scale']*this[_0xc3a155(0xa1)],_0x2ea100=this[_0xc3a155(0x157)]?Math[_0xc3a155(0x29c)](0x1,window[_0xc3a155(0x278)]):0x1;this[_0xc3a155(0x300)]=new _0x2ca093('',{'elementWidth':_0x581f1e['w'],'elementHeight':_0x581f1e['h'],'dpr':_0x2ea100,'renderMode':_0x54f340['Printing']}),this['_scene']=new _0x45bc44(this[_0xc3a155(0x2d7)],this[_0xc3a155(0x300)]),this['_scene'][_0xc3a155(0x226)](_0x180083,_0x180083),this['_engine'][_0xc3a155(0x13a)](this[_0xc3a155(0x135)],this[_0xc3a155(0x157)]),this[_0xc3a155(0x300)][_0xc3a155(0x239)]()[_0xc3a155(0xcd)]()['setId'](this[_0xc3a155(0x2d7)]+'_'+_0x5514b4(0x4)),this[_0xc3a155(0x2fc)](),this[_0xc3a155(0xe3)](),this['disposeWithMe']({'dispose':()=>{const _0x1a5f35=_0xc3a155;this[_0x1a5f35(0x300)][_0x1a5f35(0x26a)](),this['_scene']['dispose'](),this[_0x1a5f35(0x22c)]();}});}[_0x1f39bc(0x22c)](){const _0x30f70b=_0x1f39bc;this[_0x30f70b(0x26d)][_0x30f70b(0x1ac)]();}[_0x1f39bc(0xc3)](_0x5b9e28){const _0x2307f1=_0x1f39bc;this[_0x2307f1(0x2df)]['scale'](this[_0x2307f1(0x1c0)][_0x2307f1(0x226)]*_0x5b9e28,this[_0x2307f1(0x1c0)][_0x2307f1(0x226)]*_0x5b9e28),this[_0x2307f1(0xa1)]=_0x5b9e28,this['markDirty'](!0x0);}[_0x1f39bc(0x17c)](_0x28e35b){const _0x343359=_0x1f39bc;this[_0x343359(0x1c0)]=_0x28e35b,this[_0x343359(0x2f6)](!0x0);}[_0x1f39bc(0x2f6)](_0x147ab2){const _0x3b4c78=_0x1f39bc;this[_0x3b4c78(0x2f3)]=_0x147ab2;}['_addComponent'](){const _0x19a521=_0x1f39bc;var _0x1d5855;let _0x534703=new _0x3f1df6(_0x19a521(0xbf),this[_0x19a521(0x26d)],!0x1);_0x534703[_0x19a521(0x1c7)]=!0x0;let _0x11d72f=(_0x1d5855=this[_0x19a521(0x16a)])==null?void 0x0:_0x1d5855[_0x19a521(0x2e6)];if(_0x11d72f&&gn(_0x11d72f,_0x534703),this[_0x19a521(0x2df)]['addObject'](_0x534703),this[_0x19a521(0x1ed)]=_0x534703,this[_0x19a521(0x1c0)][_0x19a521(0x25e)]){let _0x38acdd=new _0x243eab(_0x19a521(0x20d),this[_0x19a521(0x26d)]),_0x179a5e=new _0x4c4537(_0x19a521(0x25b),this[_0x19a521(0x26d)]);this[_0x19a521(0x2df)]['addObjects']([_0x38acdd,_0x179a5e],0x1);}let _0x3edcb0=this['_accessor'][_0x19a521(0x2a3)](_0x574d33);_0x3edcb0['interceptor'][_0x19a521(0x125)](_0x3edcb0[_0x19a521(0x199)][_0x19a521(0x12c)]()['PRINTING_COMPONENT_COLLECT'])(void 0x0,{'unitId':this[_0x19a521(0xc4)],'subUnitId':this['_subUnitId'],'scene':this[_0x19a521(0x2df)],'engine':this[_0x19a521(0x300)],'root':this['_root'],'worksheet':this['_skeleton'][_0x19a521(0x214)],'skeleton':this['_skeleton'],'range':this['_config'][_0x19a521(0x236)],'offset':this[_0x19a521(0x94)](),'spreadsheet':this[_0x19a521(0x1ed)],'resourceCollector':this['_resourceCollector']});}['_addViewport'](){const _0x103a19=_0x1f39bc;this[_0x103a19(0x262)]=new _0x17601b(_0x5ab325['VIEW_MAIN'],this[_0x103a19(0x2df)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x103a19(0x232)]=new _0x17601b(_0x5ab325[_0x103a19(0x104)],this[_0x103a19(0x2df)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_viewTop']=new _0x17601b(_0x5ab325[_0x103a19(0x1db)],this[_0x103a19(0x2df)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x103a19(0x1af)]=new _0x17601b(_0x5ab325[_0x103a19(0x2f5)],this[_0x103a19(0x2df)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x103a19(0x1c0)]['includeHeaderDimensions']&&(this['_viewRowBottom']=new _0x17601b(_0x5ab325[_0x103a19(0x243)],this[_0x103a19(0x2df)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_viewColumnRight']=new _0x17601b(_0x5ab325[_0x103a19(0x2b1)],this[_0x103a19(0x2df)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}));}[_0x1f39bc(0x159)](){const _0x2444fc=_0x1f39bc;let {freeze:_0x144a4e,range:_0x47a187}=this[_0x2444fc(0x1c0)],{xSplit:_0x4af25d,ySplit:_0x4ea18f,startColumn:_0x3ea37d,startRow:_0x57d292}=_0x144a4e,{rowHeaderWidth:_0x4f83a1,columnHeaderHeight:_0x5263bc}=this[_0x2444fc(0x26d)];this[_0x2444fc(0x2df)][_0x2444fc(0x226)](this['_config'][_0x2444fc(0x226)]*this[_0x2444fc(0xa1)],this[_0x2444fc(0x1c0)][_0x2444fc(0x226)]*this[_0x2444fc(0xa1)]);let _0x33684e=this['_skeleton'][_0x2444fc(0xf9)](_0x57d292-_0x4ea18f,_0x3ea37d-_0x4af25d,!0x1),_0x453693=this['_skeleton'][_0x2444fc(0xf9)](_0x57d292,_0x3ea37d,!0x1),_0x5b41a1=_0x4af25d>0x0?_0x453693[_0x2444fc(0x2c5)]-_0x33684e['startX']:0x0,_0x393eba=_0x4ea18f>0x0?_0x453693[_0x2444fc(0x2cb)]-_0x33684e[_0x2444fc(0x2cb)]:0x0,_0x5e08ed={'startX':_0x4af25d>0x0?_0x33684e[_0x2444fc(0x2c5)]:0x0,'endX':_0x4af25d>0x0?_0x453693['startX']:0x0,'startY':_0x4ea18f>0x0?_0x33684e['startY']:0x0,'endY':_0x4ea18f>0x0?_0x453693[_0x2444fc(0x2cb)]:0x0},_0x495917=this['_skeleton'][_0x2444fc(0xf9)](_0x47a187[_0x2444fc(0x2f0)],_0x47a187['startColumn'],!0x1),_0x169668=this[_0x2444fc(0x2df)][_0x2444fc(0x237)](),_0x1784f8=_0x1220f4=>_0x2ab0ac(_0x1220f4,_0x169668[_0x2444fc(0x93)]),_0x9ac6aa=_0x4e842f=>_0x2ab0ac(_0x4e842f,_0x169668['scaleY']),_0x1e7c23=this[_0x2444fc(0x26d)][_0x2444fc(0xf9)](_0x47a187[_0x2444fc(0x18c)],_0x47a187[_0x2444fc(0x95)],!0x1),_0x2994d3=Math[_0x2444fc(0x29c)](0x0,_0x1784f8(_0x1e7c23['endX'])-Math[_0x2444fc(0x29c)](_0x495917[_0x2444fc(0x2c5)],_0x5e08ed['endX'])),_0x1ca493=Math[_0x2444fc(0x29c)](0x0,_0x9ac6aa(_0x1e7c23['endY'])-_0x9ac6aa(Math[_0x2444fc(0x29c)](_0x495917[_0x2444fc(0x2cb)],_0x5e08ed[_0x2444fc(0x261)]))),_0x4ca26f=0x1/Math[_0x2444fc(0x29c)](_0x169668['scaleX'],_0x169668[_0x2444fc(0x1da)]),_0x3d421b=this[_0x2444fc(0x1c0)]['includeHeaderDimensions']?_0x4f83a1:0x0,_0x17052c=this[_0x2444fc(0x1c0)][_0x2444fc(0x25e)]?_0x5263bc:0x0,_0xfa6d2f=_0x3d421b+_0x5b41a1+_0x2994d3+_0x4ca26f,_0x2f2400=_0x17052c+_0x393eba+_0x1ca493+_0x4ca26f;this[_0x2444fc(0x1fc)]=_0xfa6d2f,this['_totalHeight']=_0x2f2400;let _0x307570={'x':_0x5b41a1,'y':_0x393eba},_0x5f451f=_0x4ca26f,_0x3fa2b3=_0x4ca26f,_0x529587={'x':_0x1784f8(_0x1e7c23[_0x2444fc(0x2bc)])-_0x1784f8(_0x2994d3)-_0x1784f8(Math['max'](_0x495917[_0x2444fc(0x2c5)],_0x5e08ed[_0x2444fc(0x2bc)])),'y':_0x9ac6aa(_0x1e7c23[_0x2444fc(0x261)])-_0x9ac6aa(_0x1ca493)-_0x9ac6aa(Math[_0x2444fc(0x29c)](_0x495917[_0x2444fc(0x2cb)],_0x5e08ed[_0x2444fc(0x261)]))};if(_0x4af25d>0x0&&_0x4ea18f>0x0?(this['_viewLeftTop'][_0x2444fc(0x156)](),this[_0x2444fc(0x1af)][_0x2444fc(0x127)]({'top':0x0,'left':0x0,'height':_0x9ac6aa(_0x307570['y']),'width':_0x1784f8(_0x307570['x'])}),this[_0x2444fc(0x1af)][_0x2444fc(0x2b5)]({'viewportScrollX':_0x1784f8(_0x5e08ed['startX'])+_0x1784f8(_0x4f83a1),'viewportScrollY':_0x9ac6aa(_0x5e08ed[_0x2444fc(0x2cb)])+_0x9ac6aa(_0x5263bc)})):this['_viewLeftTop'][_0x2444fc(0x1d5)](),_0x4af25d>0x0?(this['_viewLeft'][_0x2444fc(0x156)](),this[_0x2444fc(0x232)][_0x2444fc(0x127)]({'top':_0x1784f8(_0x307570['y']),'left':0x0,'height':_0x9ac6aa(_0x1ca493)+_0x5f451f+_0x529587['y'],'width':_0x1784f8(_0x307570['x'])}),this[_0x2444fc(0x232)][_0x2444fc(0x2b5)]({'viewportScrollX':_0x1784f8(_0x5e08ed[_0x2444fc(0x2c5)])+_0x1784f8(_0x4f83a1),'viewportScrollY':_0x9ac6aa(_0x495917[_0x2444fc(0x2cb)])+_0x9ac6aa(_0x5263bc)-_0x9ac6aa(_0x307570['y'])})):this['_viewLeft']['disable'](),_0x4ea18f>0x0?(this[_0x2444fc(0x143)][_0x2444fc(0x156)](),this['_viewTop'][_0x2444fc(0x127)]({'top':0x0,'left':_0x1784f8(_0x307570['x']),'height':_0x9ac6aa(_0x307570['y']),'width':_0x1784f8(_0x2994d3)+_0x3fa2b3+_0x529587['x']}),this[_0x2444fc(0x143)]['updateScrollVal']({'viewportScrollX':_0x1784f8(_0x495917['startX'])+_0x1784f8(_0x4f83a1)-_0x1784f8(_0x307570['x']),'viewportScrollY':_0x9ac6aa(_0x5e08ed[_0x2444fc(0x2cb)])+_0x9ac6aa(_0x5263bc)})):this[_0x2444fc(0x143)]['disable'](),this[_0x2444fc(0x1c0)]['includeHeaderDimensions']){let _0xf493fc=_0x1784f8(_0x4f83a1),_0x1cc2f1=_0x9ac6aa(_0x5263bc),_0x3f6e3b=_0x1784f8(_0x2994d3)+_0x3fa2b3+_0x529587['x'],_0x5cd0ea=_0x9ac6aa(_0x1ca493)+_0x5f451f+_0x529587['y'];this['_viewMain'][_0x2444fc(0x127)]({'top':_0x1cc2f1,'left':_0xf493fc,'height':_0x5cd0ea,'width':_0x3f6e3b}),this[_0x2444fc(0x262)][_0x2444fc(0x2b5)]({'viewportScrollX':_0x1784f8(_0x495917[_0x2444fc(0x2c5)]),'viewportScrollY':_0x9ac6aa(_0x495917[_0x2444fc(0x2cb)])}),this[_0x2444fc(0x175)]&&this[_0x2444fc(0xd3)]&&(this[_0x2444fc(0xd3)][_0x2444fc(0x156)](),this[_0x2444fc(0xd3)][_0x2444fc(0x127)]({'top':0x0,'left':_0xf493fc,'height':_0x1cc2f1,'width':_0x3f6e3b}),this[_0x2444fc(0xd3)][_0x2444fc(0x2b5)]({'viewportScrollX':_0x1784f8(_0x495917['startX']),'viewportScrollY':0x0}),this['_viewRowBottom'][_0x2444fc(0x156)](),this[_0x2444fc(0x175)]['resizeWhenFreezeChange']({'top':_0x1cc2f1,'left':0x0,'height':_0x5cd0ea,'width':_0xf493fc}),this[_0x2444fc(0x175)][_0x2444fc(0x2b5)]({'viewportScrollX':0x0,'viewportScrollY':_0x9ac6aa(_0x495917[_0x2444fc(0x2cb)])}));}else this['_viewMain'][_0x2444fc(0x127)]({'top':_0x9ac6aa(_0x307570['y']),'left':_0x1784f8(_0x307570['x']),'height':_0x9ac6aa(_0x1ca493)+_0x5f451f+_0x529587['y'],'width':_0x1784f8(_0x2994d3)+_0x3fa2b3+_0x529587['x']}),this['_viewMain'][_0x2444fc(0x2b5)]({'viewportScrollX':_0x1784f8(_0x495917['startX'])+_0x1784f8(_0x4f83a1)-_0x1784f8(_0x307570['x']),'viewportScrollY':_0x9ac6aa(_0x495917[_0x2444fc(0x2cb)])+_0x9ac6aa(_0x5263bc)-_0x9ac6aa(_0x307570['y'])});}[_0x1f39bc(0x94)](){const _0x468006=_0x1f39bc;let _0x5decf2=this[_0x468006(0x258)],{vAlign:_0x3db073,hAlign:_0xd66f0f}=this[_0x468006(0x2e2)],_0x447f91=Math['max'](this[_0x468006(0x2df)][_0x468006(0x93)],this[_0x468006(0x2df)][_0x468006(0x1da)]),_0x394d81;switch(_0xd66f0f){case _0x565437[_0x468006(0x1fa)]:_0x394d81=_0x5decf2[_0x468006(0x131)];break;case _0x565437[_0x468006(0x123)]:_0x394d81=this[_0x468006(0x227)]['w']-this[_0x468006(0x1fc)]*_0x447f91-_0x5decf2[_0x468006(0x10f)];break;default:_0x394d81=_0x5decf2[_0x468006(0x131)]+(this['paperSize']['w']-this[_0x468006(0x1fc)]*_0x447f91-_0x5decf2[_0x468006(0x131)]-_0x5decf2[_0x468006(0x10f)])/0x2;}let _0x4aa411;switch(_0x3db073){case _0x565437[_0x468006(0x1fa)]:_0x4aa411=_0x5decf2[_0x468006(0xf3)];break;case _0x565437['End']:_0x4aa411=this[_0x468006(0x227)]['h']-this[_0x468006(0xa9)]*_0x447f91-_0x5decf2[_0x468006(0x23d)];break;default:_0x4aa411=(this[_0x468006(0x227)]['h']-this['_totalHeight']*_0x447f91-_0x5decf2[_0x468006(0xf3)]-_0x5decf2[_0x468006(0x23d)])/0x2+_0x5decf2[_0x468006(0xf3)];}return{'offsetX':Math[_0x468006(0x221)](_0x394d81),'offsetY':Math[_0x468006(0x221)](_0x4aa411),'scale':_0x447f91};}['prepare'](){const _0x44700e=_0x1f39bc;this[_0x44700e(0x159)](),this[_0x44700e(0xb7)][_0x44700e(0x26a)](),this[_0x44700e(0xb7)]=new _0x426af7();let _0x4d2bb4=this[_0x44700e(0xeb)]['get'](_0x574d33),{offsetX:_0x207ec6,offsetY:_0x5e93d0,scale:_0x5ed526}=this[_0x44700e(0x94)](),_0xcc0e63=_0x207ec6,_0x5b8464=_0x5e93d0;this[_0x44700e(0x8d)][_0x44700e(0x192)][_0x44700e(0x131)]=_0xcc0e63+'px',this[_0x44700e(0x8d)][_0x44700e(0x192)][_0x44700e(0xf3)]=_0x5b8464+'px';let _0xe63577=this[_0x44700e(0x1fc)]*_0x5ed526,_0x23d3a7=this['_totalHeight']*_0x5ed526;this['_root']['style'][_0x44700e(0x176)]=_0xe63577+'px',this[_0x44700e(0x8d)]['style']['height']=_0x23d3a7+'px',this[_0x44700e(0x8d)][_0x44700e(0x192)]['position']=_0x44700e(0x8a),this[_0x44700e(0x8d)][_0x44700e(0x192)][_0x44700e(0x2d0)]=_0x44700e(0x141),_0x4d2bb4['interceptor'][_0x44700e(0x125)](_0x4d2bb4[_0x44700e(0x199)][_0x44700e(0x12c)]()[_0x44700e(0x1bd)])(this['_effects'],{'unitId':this[_0x44700e(0xc4)],'subUnitId':this['_subUnitId'],'scene':this[_0x44700e(0x2df)],'engine':this[_0x44700e(0x300)],'root':this[_0x44700e(0x8d)],'worksheet':this[_0x44700e(0x26d)][_0x44700e(0x214)],'skeleton':this[_0x44700e(0x26d)],'range':this['_config'][_0x44700e(0x236)],'offset':this[_0x44700e(0x94)](),'resourceCollector':this[_0x44700e(0x184)]});}[_0x1f39bc(0x2d8)](){const _0x3cd108=_0x1f39bc;this['_dirty']&&this[_0x3cd108(0xfb)]();let _0x1056c9=this[_0x3cd108(0x300)][_0x3cd108(0x239)]()[_0x3cd108(0xcd)](),{gridlines:_0x19218b}=this['_renderConfig'],{offsetX:_0xfd1086,offsetY:_0x42d5d4}=this[_0x3cd108(0x94)]();this[_0x3cd108(0x1ed)][_0x3cd108(0x15d)](!_0x19218b),this[_0x3cd108(0x1ed)]['makeForceDirty'](),this['_scene']['makeDirty'](),_0x1056c9[_0x3cd108(0xb2)](),_0x1056c9['translateWithPrecision'](_0xfd1086,_0x42d5d4),this['_scene'][_0x3cd108(0x277)](),_0x1056c9[_0x3cd108(0x2af)]();}[_0x1f39bc(0x1f1)](_0x2e8368,_0x9c4e52,_0x10eced){const _0x5b7542=_0x1f39bc;let {w:_0x40536b,h:_0x4682f4}=this[_0x5b7542(0x227)],_0x222770=this[_0x5b7542(0x300)][_0x5b7542(0x239)]()[_0x5b7542(0xcd)]();_0x222770[_0x5b7542(0xb2)](),_0x222770[_0x5b7542(0x20e)]=_0x5b7542(0x16c)+_0x3cfea7;let _0x2b09ab=0x13*this[_0x5b7542(0xa1)],_0x41ab4e=0x14*this[_0x5b7542(0xa1)],_0x374d78={'workbook':_0x9c4e52,'worksheet':_0x10eced,'now':_0x4267e3(),'localeService':this[_0x5b7542(0xeb)][_0x5b7542(0x2a3)](_0x5bc796),'page':this[_0x5b7542(0x1c0)]['page'],'pageTotal':this[_0x5b7542(0x1c0)]['pageTotal'],'sheetPageTotal':this['_config'][_0x5b7542(0x9f)],'sheetPage':this['_config']['sheetPage']};if(_0x2e8368[_0x5b7542(0x118)]){let _0x14748d=fn(_0x2e8368[_0x5b7542(0x118)],_0x374d78);_0x222770['fillText'](_0x14748d,_0x2b09ab,_0x41ab4e);}if(_0x2e8368['topCenter']){let _0x5610ee=fn(_0x2e8368[_0x5b7542(0x2ce)],_0x374d78),_0x5809e5=_0x222770[_0x5b7542(0x18b)](_0x5610ee);_0x222770['fillText'](_0x5610ee,(_0x40536b-_0x5809e5['width'])/0x2,_0x41ab4e);}if(_0x2e8368['topRight']){let _0x4e9989=fn(_0x2e8368[_0x5b7542(0x2a0)],_0x374d78),_0x103c01=_0x222770['measureText'](_0x4e9989);_0x222770[_0x5b7542(0x1ce)](_0x4e9989,_0x40536b-_0x103c01[_0x5b7542(0x176)]-_0x2b09ab,_0x41ab4e);}if(_0x2e8368[_0x5b7542(0x28a)]){let _0x1f3ff8=fn(_0x2e8368[_0x5b7542(0x28a)],_0x374d78);_0x222770[_0x5b7542(0x1ce)](_0x1f3ff8,_0x2b09ab,_0x4682f4-_0x41ab4e);}if(_0x2e8368[_0x5b7542(0x1d4)]){let _0x24e624=fn(_0x2e8368['bottomCenter'],_0x374d78),_0x2dbcd6=_0x222770[_0x5b7542(0x18b)](_0x24e624);_0x222770[_0x5b7542(0x1ce)](_0x24e624,(_0x40536b-_0x2dbcd6[_0x5b7542(0x176)])/0x2,_0x4682f4-_0x41ab4e);}if(_0x2e8368[_0x5b7542(0xff)]){let _0x17f37d=fn(_0x2e8368['bottomRight'],_0x374d78),_0x3e14be=_0x222770[_0x5b7542(0x18b)](_0x17f37d);_0x222770[_0x5b7542(0x1ce)](_0x17f37d,_0x40536b-_0x3e14be[_0x5b7542(0x176)]-_0x2b09ab,_0x4682f4-_0x41ab4e);}_0x222770['restore']();}[_0x1f39bc(0x302)](){const _0x4b66ce=_0x1f39bc;let _0x5c7021=this['_univerInstanceService'][_0x4b66ce(0x201)](this[_0x4b66ce(0x1c0)]['unitId'],_0x4c551a[_0x4b66ce(0x2b6)]),_0xcf4ace=_0x5c7021==null?void 0x0:_0x5c7021['getSheetBySheetId'](this[_0x4b66ce(0x1c0)][_0x4b66ce(0x228)]),{headerFooter:_0x50234b,isCustomHeaderFooter:_0x587a89,headerFooterSetting:_0x292e5b}=this[_0x4b66ce(0x2e2)],{w:_0x38d3be,h:_0xfdb4ef}=this[_0x4b66ce(0x227)],_0x11efc9=this[_0x4b66ce(0x300)][_0x4b66ce(0x239)]()[_0x4b66ce(0xcd)]();if(!_0x5c7021||!_0xcf4ace)return;if(_0x587a89&&_0x292e5b){this[_0x4b66ce(0x1f1)](_0x292e5b,_0x5c7021,_0xcf4ace);return;}_0x11efc9[_0x4b66ce(0xb2)](),_0x11efc9['font']=_0x4b66ce(0x16c)+_0x3cfea7;let _0x3cfaf3=0x13*this[_0x4b66ce(0xa1)],_0x361241=0x14*this['_previewScale'];if(_0x50234b[_0x4b66ce(0x271)](_0x4b66ce(0x1f2))||_0x50234b[_0x4b66ce(0x271)](_0x4b66ce(0x296))){let _0x140ffe=new Date()[_0x4b66ce(0x229)]();_0x50234b[_0x4b66ce(0x271)](_0x4b66ce(0x1f2))?_0x50234b[_0x4b66ce(0x271)](_0x4b66ce(0x296))||(_0x140ffe=new Date()[_0x4b66ce(0x294)]()):_0x140ffe=new Date()['toLocaleTimeString'](),_0x11efc9[_0x4b66ce(0x1ce)](_0x140ffe,_0x3cfaf3,_0xfdb4ef-_0x361241);}_0x50234b[_0x4b66ce(0x248)](_0x5df4a7=>{const _0x36968e=_0x4b66ce;switch(_0x5df4a7){case _0x36968e(0x2d9):{let _0x361d34=_0x5c7021[_0x36968e(0x158)],_0x1e89ff=_0x11efc9[_0x36968e(0x18b)](_0x361d34),_0x41e683=_0x1e89ff[_0x36968e(0x225)]+_0x1e89ff['fontBoundingBoxDescent'];_0x11efc9[_0x36968e(0x1ce)](_0x361d34,_0x3cfaf3,_0x361241+_0x41e683);break;}case _0x36968e(0x10e):{let _0x3cd198=_0xcf4ace['getName'](),_0xf7b41b=_0x11efc9['measureText'](_0x3cd198),_0x2485db=_0xf7b41b[_0x36968e(0x225)]+_0xf7b41b['fontBoundingBoxDescent'];_0x11efc9[_0x36968e(0x1ce)](_0x3cd198,_0x38d3be-(_0xf7b41b[_0x36968e(0x176)]+_0x3cfaf3),_0x361241+_0x2485db);break;}case'PageSize':{let _0xe5b907=''+this[_0x36968e(0x1c0)][_0x36968e(0x169)],_0xdcd046=_0x11efc9['measureText'](_0xe5b907);_0x11efc9['fillText'](_0xe5b907,_0x38d3be-(_0xdcd046[_0x36968e(0x176)]+_0x3cfaf3),_0xfdb4ef-_0x361241);break;}}}),_0x11efc9[_0x4b66ce(0x2af)]();}['_renderLimitWaterMark'](){const _0x11d5d3=_0x1f39bc;let _0x571af8=this[_0x11d5d3(0xeb)][_0x11d5d3(0x2a3)](_0x5bc796),_0x8e5592=this[_0x11d5d3(0x300)][_0x11d5d3(0x239)]()[_0x11d5d3(0xcd)]();_0x8e5592[_0x11d5d3(0xb2)]();let _0x4bfdd5=0x14*this[_0x11d5d3(0xa1)];_0x8e5592[_0x11d5d3(0x23c)]=_0x11d5d3(0x106),_0x8e5592[_0x11d5d3(0x20e)]=_0x11d5d3(0x2d5)+_0x3cfea7;let _0x37aff2=_0x8e5592[_0x11d5d3(0x18b)](_0x571af8['t'](_0x11d5d3(0x283))),_0x431017=(this[_0x11d5d3(0x227)]['w']-_0x37aff2['width'])/0x2,_0x53875b=_0x37aff2['fontBoundingBoxAscent']+_0x37aff2[_0x11d5d3(0x2de)];_0x8e5592[_0x11d5d3(0x1ce)](_0x571af8['t']('sheets-print.limit.waterMark'),_0x431017,_0x4bfdd5+_0x53875b),_0x8e5592[_0x11d5d3(0x1ce)](_0x571af8['t']('sheets-print.limit.waterMark'),_0x431017,this['paperSize']['h']-_0x4bfdd5),_0x8e5592[_0x11d5d3(0x2af)]();}['render'](){const _0x424833=_0x1f39bc;this[_0x424833(0x300)][_0x424833(0x11b)](),this[_0x424833(0x2d8)](),this[_0x424833(0x302)](),this[_0x424833(0x21e)]&&_0x5d2860(this[_0x424833(0x300)][_0x424833(0x239)]()['getContext'](),this[_0x424833(0x21e)],this[_0x424833(0x21e)][_0x424833(0xc8)],this[_0x424833(0xeb)][_0x424833(0x2a3)](_0x5db523)[_0x424833(0x198)]());}[_0x1f39bc(0xbb)](){const _0x5238f6=_0x1f39bc;let _0x4e4364=this[_0x5238f6(0x22b)][_0x5238f6(0xf4)][_0x5238f6(0x2ee)](()=>{const _0x1b89bd=_0x5238f6;this[_0x1b89bd(0x277)]();});this[_0x5238f6(0xa5)](_0x4e4364),this['waitForReady']()[_0x5238f6(0x2a8)](()=>this[_0x5238f6(0x277)]());}['waitForReady'](_0x2eb073){const _0x141468=_0x1f39bc;return this[_0x141468(0x184)][_0x141468(0x8f)](_0x2eb073);}['getImage'](){const _0x57e415=_0x1f39bc;return this[_0x57e415(0x300)][_0x57e415(0x239)]()[_0x57e415(0xe2)](_0x57e415(0x15e),0x1);}};function vn(_0x14272c){const _0x447698=_0x1f39bc;let _0x5a0297=_0x14272c[_0x447698(0x1e1)]((_0x18dc9f,_0x38590b)=>_0x18dc9f+_0x38590b[_0x447698(0x282)][_0x447698(0x260)],0x0),_0x5291db=new Map(),_0x1bdf4b=new Map();_0x14272c[_0x447698(0x248)](_0x27d7da=>{const _0x275895=_0x447698;let _0x4214dd=_0x27d7da[_0x275895(0x282)][_0x275895(0x260)],_0x5156ca=_0x1bdf4b[_0x275895(0x2a3)](_0x27d7da[_0x275895(0x228)])??0x0;_0x1bdf4b[_0x275895(0x1d0)](_0x27d7da['subUnitId'],_0x4214dd+_0x5156ca);});let _0x5d9b96=0x0;return _0x14272c[_0x447698(0x2d4)](_0x3bf575=>{const _0x197d96=_0x447698;let _0x509be4=_0x3bf575[_0x197d96(0x282)]['length'],_0x2381ac=_0x5291db[_0x197d96(0x2a3)](_0x3bf575[_0x197d96(0x228)])??0x0,_0x3e0c8a=_0x3bf575[_0x197d96(0x282)][_0x197d96(0x2d4)]((_0x5e0260,_0x17861f)=>(_0x5d9b96++,{..._0x3bf575,'range':_0x5e0260,'page':_0x5d9b96,'pageTotal':_0x5a0297,'sheetPageTotal':_0x1bdf4b[_0x197d96(0x2a3)](_0x3bf575[_0x197d96(0x228)]),'sheetPage':_0x17861f+0x1+_0x2381ac}));return _0x5291db[_0x197d96(0x196)](_0x3bf575[_0x197d96(0x228)])?_0x5291db[_0x197d96(0x1d0)](_0x3bf575[_0x197d96(0x228)],_0x5291db['get'](_0x3bf575[_0x197d96(0x228)])+_0x509be4):_0x5291db[_0x197d96(0x1d0)](_0x3bf575[_0x197d96(0x228)],_0x509be4),_0x3e0c8a;})[_0x447698(0x14b)]();}let yn=0x0,$=class{constructor(_0x14cc35,_0x258d6c,_0x4486fb,_0x43ef4a,_0x49c7a2,_0x3cbce9,_0x16de79){const _0x4030ee=_0x1f39bc;this[_0x4030ee(0x177)]=_0x14cc35,this[_0x4030ee(0x281)]=_0x258d6c,this[_0x4030ee(0x25c)]=_0x4486fb,this['_renderManagerService']=_0x43ef4a,this[_0x4030ee(0x284)]=_0x49c7a2,this[_0x4030ee(0x290)]=_0x3cbce9,this['_printPreparationService']=_0x16de79;}async[_0x1f39bc(0x134)](_0x46aeab,_0x19e1e9){const _0x2ba511=_0x1f39bc;await Promise['all'](Array[_0x2ba511(0x240)](new Set(_0x46aeab[_0x2ba511(0x2d4)](_0x487d70=>_0x487d70[_0x2ba511(0x16f)])),_0x1924e8=>this[_0x2ba511(0xe7)][_0x2ba511(0xfb)]({'unitId':_0x1924e8,'unitType':_0x4c551a['UNIVER_SHEET'],'dpr':0x1})));let _0x509979=vn(_0x46aeab),{ls:_0xcc6388,pbk:_0x2a050c}=this[_0x2ba511(0x290)][_0x2ba511(0x1c8)](_0x2078d8)??{},_0x1d4656=_0x23ec27()?0x1/0x0:sn(0x3,_0xcc6388,_0x2a050c)[_0x2ba511(0x169)];_0x509979=_0x509979[_0x2ba511(0x20f)](0x0,_0x1d4656);let _0x360de7=document[_0x2ba511(0x2d1)]('div');_0x360de7[_0x2ba511(0x280)]=_0x234dc1;let _0x475839=_0x509979[_0x2ba511(0x2d4)](_0x2cfbbb=>{const _0x5aad75=_0x2ba511;let _0x15797f=new _n(this[_0x5aad75(0x177)],_0x2cfbbb,_0x19e1e9,!0x1);return _0x15797f[_0x5aad75(0x2ca)]['className']=_0xc8969b,_0x15797f;});_0x475839['forEach'](_0x39fe27=>{const _0x5a53d3=_0x2ba511;_0x360de7[_0x5a53d3(0x150)](_0x39fe27['container']),_0x39fe27[_0x5a53d3(0x2ca)][_0x5a53d3(0x150)](_0x39fe27[_0x5a53d3(0x197)]),_0x39fe27[_0x5a53d3(0xfb)](),_0x39fe27[_0x5a53d3(0x2f6)](!0x1);});let _0x192ceb=this['_sheetPrintManagerService'][_0x2ba511(0x2a2)],_0x98c5fe=_0x19df64[_0x192ceb['paperSize']],_0x104ef6=_0x1a7732(_0x98c5fe[_0x2ba511(0x176)],_0x98c5fe[_0x2ba511(0xc9)],_0x192ceb[_0x2ba511(0x28e)]);return document[_0x2ba511(0x1e2)][_0x2ba511(0x150)](_0x104ef6),document[_0x2ba511(0x1e2)][_0x2ba511(0x150)](_0x360de7),await Promise[_0x2ba511(0x10c)](_0x475839[_0x2ba511(0x2d4)](_0x109d1e=>_0x109d1e[_0x2ba511(0x142)]())),new Promise(_0x2cd2f1=>{const _0x399723=_0x2ba511;window[_0x399723(0x183)]=()=>{const _0x2b1c1f=_0x399723;_0x475839[_0x2b1c1f(0x248)](_0x372adb=>{const _0x1d5d2c=_0x2b1c1f;_0x372adb[_0x1d5d2c(0x277)](),_0x372adb[_0x1d5d2c(0x22c)]();});},window[_0x399723(0x266)]=()=>{const _0x245c74=_0x399723;_0x475839[_0x245c74(0x248)](_0x5bf266=>{_0x5bf266['dispose']();}),document['body']['removeChild'](_0x360de7),document[_0x245c74(0x1e2)][_0x245c74(0x19f)](_0x104ef6),this[_0x245c74(0x281)][_0x245c74(0x224)](),this[_0x245c74(0x25c)][_0x245c74(0x270)](),this[_0x245c74(0x284)]['removeAll'](),_0x475839=[],_0x2cd2f1(!0x0);},window[_0x399723(0x134)]();});}[_0x1f39bc(0x28f)](_0x349fb6,_0x3ed42b,_0x379794,_0x4671d0){const _0x5427c5=_0x1f39bc;if(!cn(this[_0x5427c5(0x177)])){let _0x459c8d=(Date[_0x5427c5(0x89)]()-yn)/0x3e8;if(yn=Date[_0x5427c5(0x89)](),_0x459c8d<=0x1e)return!0x1;}let _0x24b182=this['_renderManagerService'][_0x5427c5(0x2e8)](_0x349fb6);if(!_0x24b182)return!0x1;let _0x32a0e3=_0x24b182[_0x5427c5(0x2da)](_0x3fe36b)[_0x5427c5(0x25d)](_0x3ed42b);if(!_0x32a0e3)return!0x1;let _0x4c07d6=_0x32a0e3[_0x5427c5(0x247)][_0x379794[_0x5427c5(0x95)]]-(_0x32a0e3[_0x5427c5(0x247)][_0x379794[_0x5427c5(0x181)]-0x1]||0x0),_0xfcfff9=_0x32a0e3[_0x5427c5(0x24b)][_0x379794[_0x5427c5(0x18c)]]-(_0x32a0e3['rowHeightAccumulation'][_0x379794[_0x5427c5(0x2f0)]-0x1]||0x0),_0x10fe08=_0x32a0e3[_0x5427c5(0x2fa)],_0x4824a5=_0x32a0e3['rowHeaderWidth'],_0x13258e=1.5,_0x46bcc6=new _n(this[_0x5427c5(0x177)],{'unitId':_0x349fb6,'subUnitId':_0x3ed42b,'range':_0x379794,'freeze':rn,'scale':_0x13258e,'page':0x1,'pageSize':_0x4671d0?{'w':(_0x4c07d6+_0x4824a5)*_0x13258e+0x1,'h':(_0xfcfff9+_0x10fe08)*_0x13258e+0x1}:{'w':_0x4c07d6*_0x13258e+0x1,'h':_0xfcfff9*_0x13258e+0x1},'margin':_0x5488a0[_0x3a1d5d[_0x5427c5(0x17d)]],'pageTotal':0x1,'sheetPageTotal':0x1,'sheetPage':0x1,'includeHeaderDimensions':_0x4671d0??!0x1},{'gridlines':!0x0,'hAlign':_0x565437['Middle'],'vAlign':_0x565437[_0x5427c5(0xef)],'headerFooter':[],'headerFooterSetting':en,'isCustomHeaderFooter':!0x1},!0x1),_0x518605=document[_0x5427c5(0x2d1)](_0x5427c5(0x1a4));_0x518605[_0x5427c5(0x280)]=_0x234dc1,_0x46bcc6[_0x5427c5(0x2ca)]['className']=_0xc8969b,_0x518605[_0x5427c5(0x150)](_0x46bcc6[_0x5427c5(0x2ca)]),document[_0x5427c5(0x1e2)]['appendChild'](_0x518605),_0x46bcc6[_0x5427c5(0xfb)](),_0x46bcc6[_0x5427c5(0x277)]();let _0x1a5dd5=_0x46bcc6[_0x5427c5(0xf7)]();return _0x46bcc6['dispose'](),document[_0x5427c5(0x1e2)][_0x5427c5(0x19f)](_0x518605),_0x1a5dd5;}};$=J([q(0x0,_0x12a925(_0x37f97a)),q(0x1,K),q(0x2,Y),q(0x3,_0x2eec27),q(0x4,_0x9aeed),q(0x5,_0x97645),q(0x6,_0x8e087f)],$);function bn(_0x45e4c4,_0x4df405){const _0x3d56e5=_0x1f39bc;let _0x763ee7=atob(_0x45e4c4[_0x3d56e5(0x1b5)](',')[0x1]),_0x3c5b19=new ArrayBuffer(_0x763ee7[_0x3d56e5(0x260)]),_0x40cdf9=new Uint8Array(_0x3c5b19);for(let _0x2eb412=0x0;_0x2eb412<_0x763ee7['length'];_0x2eb412++)_0x40cdf9[_0x2eb412]=_0x763ee7[_0x3d56e5(0x1a8)](_0x2eb412);return new Blob([_0x3c5b19],{'type':_0x4df405});}const xn={'type':_0x5cfa33[_0x1f39bc(0x13f)],'id':_0x1f39bc(0x301),async 'handler'(_0x1b62ee){const _0x74aafe=_0x1f39bc;var _0x3267b8;let _0x24903f=_0x1b62ee['get'](_0x17e87f),_0x1a4925=(_0x3267b8=_0x24903f[_0x74aafe(0x264)]())==null?void 0x0:_0x3267b8[0x0],_0x4058ba=_0x1b62ee[_0x74aafe(0x2a3)]($),_0x5aa84b=_0x24903f[_0x74aafe(0x27c)](),_0x179ace=_0x1b62ee[_0x74aafe(0x2a3)](_0x9aeed),_0x41bd87=_0x1b62ee[_0x74aafe(0x2a3)](_0x3226eb),_0x19352a=_0x1b62ee[_0x74aafe(0x2a3)](_0x5bc796);if(!_0x1a4925||!_0x5aa84b)return!0x1;let _0x381c3b=_0xce644b(_0x41bd87);if(!_0x381c3b)return!0x1;let {unitId:_0x5ccbf4,subUnitId:_0x455792}=_0x381c3b,_0x3cae55=_0x4058ba[_0x74aafe(0x28f)](_0x5ccbf4,_0x455792,_0x1a4925['range']);if(!_0x3cae55)return!0x1;try{return await navigator[_0x74aafe(0x139)][_0x74aafe(0x1bf)]([new ClipboardItem({'image/png':bn(_0x3cae55,_0x74aafe(0x15e))})]),_0x179ace['show']({'type':_0x1c241d[_0x74aafe(0x2e7)],'content':_0x19352a['t'](_0x74aafe(0x24d))}),!0x0;}catch{return _0x179ace[_0x74aafe(0xa2)]({'type':_0x1c241d[_0x74aafe(0x2cd)],'content':_0x19352a['t'](_0x74aafe(0x2c8))}),!0x1;}}},Sn=_0x1a66eb(_0x1f39bc(0x17a));var Cn=class extends _0x40a160{constructor(..._0x5039f7){const _0x2881ba=_0x1f39bc;super(..._0x5039f7),G(this,_0x2881ba(0x2ec),new _0x1d6e67(!0x1)),G(this,_0x2881ba(0x1f7),this[_0x2881ba(0x2ec)]);}get[_0x1f39bc(0x138)](){const _0x501f4e=_0x1f39bc;return this[_0x501f4e(0x2ec)][_0x501f4e(0x2b3)];}['show'](){const _0x3ce198=_0x1f39bc;this[_0x3ce198(0x2ec)][_0x3ce198(0x307)](!0x0);}['hide'](){const _0x5d2d24=_0x1f39bc;this['_visible$'][_0x5d2d24(0x307)](!0x1);}['dispose'](){const _0x49dcc4=_0x1f39bc;super[_0x49dcc4(0x26a)](),this['_visible$'][_0x49dcc4(0x2a1)]();}};const wn=_0x1f39bc(0x144),Tn={'id':_0x1f39bc(0x1c1),'type':_0x5cfa33['OPERATION'],'handler':_0x2d298f=>{const _0x4381f2=_0x1f39bc;let _0x479d52=_0x2d298f[_0x4381f2(0x2a3)](_0x208efa),_0x5cf819=_0x2d298f[_0x4381f2(0x2a3)](Sn),_0xf47184=_0x2d298f[_0x4381f2(0x2a3)](Y),_0x11d219=_0x2d298f[_0x4381f2(0x2a3)](_0x5bc796);return _0xf47184[_0x4381f2(0x88)](),_0x5cf819[_0x4381f2(0xa2)](),_0x479d52[_0x4381f2(0xd0)]({'header':{'title':_0x11d219['t']('sheets-print.grid.title')},'children':{'label':wn},'onClose':()=>{},'width':0x138}),!0x0;}},En={'id':'sheet.operation.close-print-grid-sidebar','type':_0x5cfa33['OPERATION'],'handler':_0xf8a816=>{const _0x2ca6a9=_0x1f39bc;let _0x26a677=_0xf8a816['get'](_0x208efa);return _0xf8a816[_0x2ca6a9(0x2a3)](Sn)['hide'](),_0x26a677['close'](),!0x0;}},Dn=_0x1f39bc(0x265);function On(_0x46d27a){const _0x1e8564=_0x1f39bc;return{'id':Dn,'type':_0x4b715f[_0x1e8564(0x303)],'icon':'PrintIcon','tooltip':_0x1e8564(0x295),'hidden$':_0x362eb1(_0x46d27a,_0x4c551a['UNIVER_SHEET']),'disabled$':_0x8d9074(_0x46d27a,{'workbookTypes':[_0x5e483a]})};}function kn(){const _0x4c2662=_0x1f39bc;return{'id':X['id'],'type':_0x4b715f[_0x4c2662(0x24a)],'title':'sheets-print.menu','icon':'PrintIcon'};}function An(_0x122891){const _0x271189=_0x1f39bc;return{'id':xn['id'],'type':_0x4b715f[_0x271189(0x24a)],'title':_0x271189(0x2d2),'icon':_0x271189(0x211),'tooltip':'sheets-print.screenshot.title','hidden$':_0x362eb1(_0x122891,_0x4c551a[_0x271189(0x2b6)]),'disabled$':_0x8d9074(_0x122891,{'workbookTypes':[_0x5e483a,_0x4848ee,_0x5c6fcb],'worksheetTypes':[_0x26e479,_0x2a8db9],'rangeTypes':[_0x4b3498]})};}function jn(){const _0x5a543a=_0x1f39bc;return{'id':Tn['id'],'type':_0x4b715f['BUTTON'],'title':_0x5a543a(0x2b0),'icon':_0x5a543a(0x257)};}const Mn={[_0x1944cc[_0x1f39bc(0x1d9)]]:{[Dn]:{'order':0.01,'gridLayout':{'row':0x1,'column':0x3,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':On,[X['id']]:{'order':0x0,'menuItemFactory':kn},[Tn['id']]:{'order':0x1,'menuItemFactory':jn}}},[_0x525f53['MAIN_AREA']]:{[_0x1fdfb5['OTHERS']]:{[xn['id']]:{'order':2.1,'menuItemFactory':An}}}};var Nn=_0x1f39bc(0x102),Pn='1.0.1';const Fn=_0x1f39bc(0x1cd),In=_0x1f39bc(0x1ff),Ln={};let Rn=class extends _0x40a160{constructor(_0x2449cf){const _0x48ab17=_0x1f39bc;super(),this[_0x48ab17(0xa5)](_0x2449cf[_0x48ab17(0xcf)]({'PrintIcon':_0x16dc64}));}};Rn=J([q(0x0,_0x12a925(_0xa1ea30))],Rn);const zn={[_0x1944cc[_0x1f39bc(0x1d9)]]:{[X['id']]:{'order':0.01,'menuItemFactory':kn}}};function Bn(_0x32e648){let [_0x408b28,_0x1ff185]=_0x527371();return _0x481e15(()=>{_0x32e648['then'](_0x27f467=>{_0x1ff185(()=>_0x27f467);});},[]),_0x408b28;}const Vn=(_0x817a1b,_0x31fe65)=>{let _0x2637d0=_0x29d13f(!0x1);_0x481e15(()=>{const _0x334a1a=_0x23f3;if(_0x2637d0[_0x334a1a(0x1d8)])return _0x817a1b();_0x2637d0[_0x334a1a(0x1d8)]=!0x0;},_0x31fe65);},Hn=_0x4c04dc((_0x46b2a0,_0x3791a6)=>{const _0x277bec=_0x1f39bc;let {config:_0x2ed0cc,previewScale:_0x33c4ab}=_0x46b2a0,_0x3ef735=_0x15af67(Y),_0x40241b=_0x15af67(_0x37f97a),_0x5a3e69=_0x29d13f(null),_0x401a31=_0x3ef735[_0x277bec(0x227)],_0x2ebdbd=_0x2547c4(_0x3ef735['renderConfig$'],_0x3ef735['renderConfig']),_0x38e6e7=_0x2547c4(_0x3ef735[_0x277bec(0x2c7)],_0x3ef735[_0x277bec(0x2a2)]),_0x4120fd=Math[_0x277bec(0x221)](_0x33c4ab*(0x31a/_0x401a31['w'])*0xa)/0xa,[_0x1fd4cc]=_0x527371(()=>new _n(_0x40241b,_0x2ed0cc,_0x2ebdbd,!0x0,_0x4120fd));return _0x481e15(()=>(_0x5a3e69['current']&&(_0x1fd4cc['container'][_0x277bec(0x192)][_0x277bec(0x176)]='100%',_0x1fd4cc[_0x277bec(0x2ca)]['style'][_0x277bec(0xc9)]=_0x277bec(0x21d),_0x1fd4cc[_0x277bec(0x2ca)][_0x277bec(0x192)][_0x277bec(0x2eb)]=_0x277bec(0x288),_0x5a3e69[_0x277bec(0x1d8)][_0x277bec(0x150)](_0x1fd4cc[_0x277bec(0x2ca)]),_0x1fd4cc['container']['appendChild'](_0x1fd4cc[_0x277bec(0x197)])),_0x1fd4cc[_0x277bec(0x277)](),_0x1fd4cc[_0x277bec(0xbb)](),()=>{const _0x50e621=_0x277bec;var _0x4075f6;queueMicrotask(()=>_0x1fd4cc[_0x50e621(0x26a)]()),(_0x4075f6=_0x5a3e69[_0x50e621(0x1d8)])==null||_0x4075f6[_0x50e621(0x19f)](_0x1fd4cc[_0x50e621(0x2ca)]);}),[_0x1fd4cc]),Vn(()=>{const _0x32e95a=_0x277bec;_0x1fd4cc[_0x32e95a(0x85)]=_0x2ebdbd,_0x1fd4cc['render']();},[_0x2ebdbd]),Vn(()=>{const _0x3b41c0=_0x277bec;_0x1fd4cc[_0x3b41c0(0xc3)](_0x4120fd),_0x1fd4cc[_0x3b41c0(0x22b)]['resize'](),_0x1fd4cc[_0x3b41c0(0x277)]();},[_0x4120fd]),Vn(()=>{const _0x10da1c=_0x277bec;_0x1fd4cc[_0x10da1c(0x17c)](_0x2ed0cc),_0x1fd4cc[_0x10da1c(0x277)]();},[_0x2ed0cc[_0x277bec(0x12b)]['startRow'],_0x2ed0cc[_0x277bec(0x12b)]['startColumn'],_0x2ed0cc[_0x277bec(0x12b)][_0x277bec(0x19a)],_0x2ed0cc[_0x277bec(0x12b)][_0x277bec(0x11f)],_0x2ed0cc[_0x277bec(0x236)][_0x277bec(0x2f0)],_0x2ed0cc['range'][_0x277bec(0x18c)],_0x2ed0cc['range'][_0x277bec(0x181)],_0x2ed0cc[_0x277bec(0x236)][_0x277bec(0x95)],_0x2ed0cc[_0x277bec(0x226)],_0x38e6e7[_0x277bec(0x258)]]),_0x44a18c(_0x277bec(0x1a4),{'ref':_0x3791a6,'children':_0x44a18c(_0x277bec(0x1a4),{'ref':_0x5a3e69,'className':_0x277bec(0x207),'style':{'width':_0x401a31['w']*_0x4120fd,'height':_0x401a31['h']*_0x4120fd}})});});function Un(_0x1d10c9){const _0x3cdc00=_0x1f39bc;let {open:_0x18001a,onClose:_0x1ebe37}=_0x1d10c9,_0x245b66=_0x15af67(_0x5bc796),_0x5d7c81=_0x15af67(Y),[_0x1a0fa5,_0x32220f]=_0x527371(()=>({..._0x5d7c81[_0x3cdc00(0x85)][_0x3cdc00(0x208)]??en})),_0x2eebdf=(_0x1f350b,_0x53681b)=>{_0x32220f(_0x175f4e=>({..._0x175f4e,[_0x1f350b]:_0x53681b}));};return _0x44a18c(_0x5a6092,{'open':_0x18001a,'title':_0x245b66['t'](_0x3cdc00(0xc0)),'showCancel':!0x0,'showOk':!0x0,'onCancel':_0x1ebe37,'onClose':_0x1ebe37,'onOk':()=>{const _0x566060=_0x3cdc00;_0x5d7c81[_0x566060(0x151)]({'headerFooterSetting':_0x1a0fa5}),_0x1ebe37();},'children':_0x4be8e8(_0x3cdc00(0x1a4),{'className':_0x3cdc00(0x1a3),'children':[_0x4be8e8(_0x3cdc00(0x26b),{'className':'univer-grid\x20univer-gap-2','children':[_0x44a18c(_0x3cdc00(0x1a4),{'className':'univer-text-sm\x20univer-font-medium','children':_0x245b66['t'](_0x3cdc00(0x1c6))}),_0x44a18c(_0x1ca1dd,{'label':_0x245b66['t'](_0x3cdc00(0x12d)),'children':_0x44a18c(_0x97485a,{'value':_0x1a0fa5['topLeft'],'onChange':_0x4bca1a=>_0x2eebdf(_0x3cdc00(0x118),_0x4bca1a)})}),_0x44a18c(_0x1ca1dd,{'label':_0x245b66['t'](_0x3cdc00(0x11e)),'children':_0x44a18c(_0x97485a,{'value':_0x1a0fa5[_0x3cdc00(0x2ce)],'onChange':_0x4e0e71=>_0x2eebdf(_0x3cdc00(0x2ce),_0x4e0e71)})}),_0x44a18c(_0x1ca1dd,{'label':_0x245b66['t'](_0x3cdc00(0x86)),'children':_0x44a18c(_0x97485a,{'value':_0x1a0fa5[_0x3cdc00(0x2a0)],'onChange':_0x16d299=>_0x2eebdf(_0x3cdc00(0x2a0),_0x16d299)})})]}),_0x4be8e8(_0x3cdc00(0x26b),{'className':_0x3cdc00(0xb3),'children':[_0x44a18c(_0x3cdc00(0x1a4),{'className':_0x3cdc00(0x13e),'children':_0x245b66['t']('sheets-print.headerFooter.footer')}),_0x44a18c(_0x1ca1dd,{'label':_0x245b66['t'](_0x3cdc00(0x12d)),'children':_0x44a18c(_0x97485a,{'value':_0x1a0fa5[_0x3cdc00(0x28a)],'onChange':_0x95363b=>_0x2eebdf(_0x3cdc00(0x28a),_0x95363b)})}),_0x44a18c(_0x1ca1dd,{'label':_0x245b66['t'](_0x3cdc00(0x11e)),'children':_0x44a18c(_0x97485a,{'value':_0x1a0fa5[_0x3cdc00(0x1d4)],'onChange':_0x3be5f1=>_0x2eebdf(_0x3cdc00(0x1d4),_0x3be5f1)})}),_0x44a18c(_0x1ca1dd,{'label':_0x245b66['t'](_0x3cdc00(0x86)),'children':_0x44a18c(_0x97485a,{'value':_0x1a0fa5[_0x3cdc00(0xff)],'onChange':_0x43ddf6=>_0x2eebdf(_0x3cdc00(0xff),_0x43ddf6)})})]})]})});}const Wn=_0x4d5935(_0xcbc247=>{const _0x4e60b6=_0x1f39bc;var _0x110ee2,_0x5b1ab6,_0x2c3783,_0xa449f4,_0x221f35;let {onShowFooterHeaderEditor:_0x2e6009,DropdownComponent:_0x597d23=_0x136c4a,SelectComponent:_0x1e592e=_0x336ba1}=_0xcbc247,_0x17c2bb=_0x15af67(Y),_0x3d82fd=_0x2547c4(_0x17c2bb[_0x4e60b6(0x2c7)],_0x17c2bb[_0x4e60b6(0x2a2)]),_0xef0bb0=_0x2547c4(_0x17c2bb[_0x4e60b6(0xb0)],_0x17c2bb[_0x4e60b6(0x85)]),_0x5eda7f=_0x15af67(_0x5bc796),_0x2a7e47=_0x15af67(_0x3226eb),_0x337b5b=_0x15af67(_0x46343b),[_0xba0f45,_0x47f660]=_0x527371(null),_0x1f8f5b=((_0x110ee2=_0x15af67(_0x97645)[_0x4e60b6(0x1c8)](_0x4e60b6(0x1ff)))==null?void 0x0:_0x110ee2[_0x4e60b6(0x241)])??!0x1;_0x481e15(()=>{const _0x4f74a5=_0x4e60b6;let _0x1cdf95=!0x1;return _0x337b5b[_0x4f74a5(0x145)](_0x1ff65e)[_0x4f74a5(0x2a8)](_0x1f606b=>{const _0x3986fd=_0x4f74a5;if(_0x1cdf95)return;let _0x325b4a,_0x45653c;(_0x1f606b==null?void 0x0:_0x1f606b['type'])===_0x2350f5[_0x3986fd(0x115)]&&_0x1f606b[_0x3986fd(0xc6)][_0x3986fd(0xc8)]&&(_0x325b4a=new Image(),_0x325b4a[_0x3986fd(0x18f)]=_0x1f606b[_0x3986fd(0xc6)][_0x3986fd(0xc8)][_0x3986fd(0x29e)]),(_0x1f606b==null?void 0x0:_0x1f606b[_0x3986fd(0xbe)])===_0x2350f5[_0x3986fd(0x1a0)]&&_0x1f606b!=null&&_0x1f606b['config'][_0x3986fd(0x2f4)]&&(_0x45653c=_0x1f606b[_0x3986fd(0xc6)][_0x3986fd(0x2f4)]);let _0x45b497=_0x1f606b?{..._0x1f606b,'user':_0x45653c,'image':_0x325b4a}:null;_0x47f660(_0x45b497),_0x1f8f5b&&_0x17c2bb[_0x3986fd(0x151)]({'watermark':_0x45b497});}),()=>{_0x1cdf95=!0x0;};},[_0x1f8f5b,_0x337b5b,_0x17c2bb]);let _0x3ad088=_0x2a7e47['getCurrentUnitOfType'](_0x4c551a[_0x4e60b6(0x2b6)]),_0x4895e6=_0x3ad088[_0x4e60b6(0x246)]()[_0x4e60b6(0x137)](_0x150c10=>!_0x150c10[_0x4e60b6(0x1b2)]()),_0x17cd82=_0x3ad088['getActiveSheet']();if(!_0x17cd82)return console[_0x4e60b6(0x132)](_0x4e60b6(0x251)),null;let _0x23d7b8=(_0x120aac,_0x8fec68)=>{const _0x20ac34=_0x4e60b6;let _0x417a65=Math['max'](0x0,_0x8fec68||0x0),_0x7d7a86=_0x3d82fd[_0x20ac34(0x267)]||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x17c2bb[_0x20ac34(0x1f4)]({'marginCustom':{..._0x7d7a86,[_0x120aac]:_0x417a65}});},_0x5c788d=_0x17cd82[_0x4e60b6(0x217)](),_0x2feda3=_0x3d82fd[_0x4e60b6(0x2fb)]!==_0x4e60b6(0x168)&&_0x5c788d[_0x4e60b6(0x19a)]<=0x0,_0x1cb76b=_0x3d82fd[_0x4e60b6(0x2fb)]!==_0x4e60b6(0x168)&&_0x5c788d['ySplit']<=0x0;return _0x44a18c(_0x4e60b6(0x1a4),{'className':_0x33108a('univer-h-full\x20univer-overflow-y-auto',_0x2734c8),'children':_0x4be8e8('div',{'className':_0x4e60b6(0x1e9),'children':[_0x44a18c(_0x1ca1dd,{'label':_0x5eda7f['t'](_0x4e60b6(0x274)),'children':_0x44a18c(_0x1e592e,{'className':_0x4e60b6(0x26f),'value':''+_0x3d82fd[_0x4e60b6(0x2fb)],'onChange':_0x275c64=>{const _0x198a9d=_0x4e60b6;_0x275c64==='Workbook'?_0x17c2bb['updateLayoutConfig']({'area':_0x275c64,'subUnitIds':_0x4895e6['map'](_0xab070=>_0xab070[_0x198a9d(0x24e)]())}):_0x17c2bb[_0x198a9d(0x1f4)]({'area':_0x275c64});},'options':[{'label':_0x5eda7f['t'](_0x4e60b6(0x1ae)),'value':_0x4e60b6(0x17f)},{'label':_0x5eda7f['t'](_0x4e60b6(0x2d6)),'value':_0x4e60b6(0x168)},{'label':_0x5eda7f['t'](_0x4e60b6(0x299)),'value':_0x4e60b6(0x112)},{'label':_0x5eda7f['t'](_0x4e60b6(0x2aa)),'value':_0x4e60b6(0x189)}]})}),_0x3d82fd[_0x4e60b6(0x2fb)]===_0x4e60b6(0x168)?_0x44a18c(_0x1ca1dd,{'label':_0x5eda7f['t'](_0x4e60b6(0x15c)),'children':_0x44a18c(_0x597d23,{'overlay':_0x44a18c(_0x4e60b6(0x1a4),{'className':_0x33108a(_0x4e60b6(0x1ab),_0x2734c8),'children':_0x44a18c(_0x21fa32,{'direction':'vertical','className':_0x4e60b6(0x2b2),'value':_0x3d82fd[_0x4e60b6(0x110)]['map'](_0x227994=>typeof _0x227994==_0x4e60b6(0x24c)?_0x227994:_0x227994['id']),'onChange':_0x10a147=>{const _0xc84f5a=_0x4e60b6;let _0x4209ac=new Set(_0x10a147);if(_0x4209ac['size']===0x0)_0x17c2bb[_0xc84f5a(0x1f4)]({'subUnitIds':_0x4895e6[_0xc84f5a(0x2d4)](_0x15564c=>_0x15564c[_0xc84f5a(0x24e)]())});else{let _0x4ffe36=[];_0x4895e6[_0xc84f5a(0x248)](_0x43fb93=>{const _0x36fc1c=_0xc84f5a;let _0x2879bf=_0x43fb93[_0x36fc1c(0x24e)]();_0x4209ac[_0x36fc1c(0x196)](_0x2879bf)&&_0x4ffe36[_0x36fc1c(0xe4)](_0x2879bf);}),_0x17c2bb['updateLayoutConfig']({'subUnitIds':_0x4ffe36});}},'children':_0x4895e6['map'](_0x40bb4a=>_0x44a18c(_0x48108d,{'value':_0x40bb4a[_0x4e60b6(0x24e)](),'children':_0x40bb4a[_0x4e60b6(0x2c1)]()},_0x40bb4a['getSheetId']()))})}),'children':_0x4be8e8(_0x4e60b6(0x1a4),{'className':_0x33108a(_0x4e60b6(0xda),_0x32dbe9),'children':[_0x44a18c(_0x4e60b6(0x149),{'className':'univer-text-gray-500','children':_0x3d82fd[_0x4e60b6(0x110)]['length']===_0x4895e6[_0x4e60b6(0x260)]||_0x3d82fd[_0x4e60b6(0x110)][_0x4e60b6(0x260)]===0x0?_0x5eda7f['t'](_0x4e60b6(0x103)):''+_0x3d82fd[_0x4e60b6(0x110)][_0x4e60b6(0x260)]+_0x5eda7f['t'](_0x4e60b6(0x27f))}),_0x44a18c(_0x4eaeab,{})]})})}):null,_0x44a18c(_0x1ca1dd,{'label':_0x5eda7f['t'](_0x4e60b6(0x202)),'children':_0x44a18c(_0x1e592e,{'className':_0x4e60b6(0x26f),'value':_0x3d82fd[_0x4e60b6(0x227)],'options':[{'label':_0x5eda7f['t'](_0x4e60b6(0x2f2)),'value':_0x21065a[_0x4e60b6(0x21f)]},{'label':_0x5eda7f['t']('sheets-print.size.tabloid'),'value':_0x21065a[_0x4e60b6(0xcc)]},{'label':_0x5eda7f['t'](_0x4e60b6(0xa3)),'value':_0x21065a['Legal']},{'label':_0x5eda7f['t']('sheets-print.size.statement'),'value':_0x21065a['Statement']},{'label':_0x5eda7f['t'](_0x4e60b6(0xac)),'value':_0x21065a[_0x4e60b6(0x29f)]},{'label':_0x5eda7f['t'](_0x4e60b6(0x210)),'value':_0x21065a[_0x4e60b6(0x1ca)]},{'label':_0x5eda7f['t'](_0x4e60b6(0x1de)),'value':_0x21065a['A3']},{'label':_0x5eda7f['t'](_0x4e60b6(0x12a)),'value':_0x21065a['A4']},{'label':_0x5eda7f['t'](_0x4e60b6(0x238)),'value':_0x21065a['A5']},{'label':_0x5eda7f['t'](_0x4e60b6(0x84)),'value':_0x21065a['B4']},{'label':_0x5eda7f['t']('sheets-print.size.b5'),'value':_0x21065a['B5']}],'onChange':_0x7245c7=>{const _0x36eca1=_0x4e60b6;_0x17c2bb[_0x36eca1(0x1f4)]({'paperSize':_0x7245c7});}})}),_0x44a18c(_0x1ca1dd,{'label':_0x5eda7f['t']('sheets-print.margin.title'),'children':_0x44a18c(_0x1e592e,{'className':_0x4e60b6(0x26f),'value':_0x3d82fd['margin'],'options':[{'label':_0x5eda7f['t'](_0x4e60b6(0x252)),'value':_0x3a1d5d['Normal']},{'label':_0x5eda7f['t']('sheets-print.margin.narrow'),'value':_0x3a1d5d[_0x4e60b6(0xca)]},{'label':_0x5eda7f['t'](_0x4e60b6(0x2b4)),'value':_0x3a1d5d[_0x4e60b6(0x2be)]},{'label':_0x5eda7f['t'](_0x4e60b6(0xfe)),'value':_0x3a1d5d[_0x4e60b6(0x20b)]}],'onChange':_0x1abe76=>{const _0xbde85c=_0x4e60b6;let _0xf37eb4=_0x5488a0[_0x3d82fd['margin']];_0x17c2bb[_0xbde85c(0x1f4)]({'margin':_0x1abe76,'marginCustom':_0x1abe76===_0x3a1d5d[_0xbde85c(0x20b)]?_0xf37eb4:_0x5488a0[_0x1abe76]});}})}),_0x3d82fd[_0x4e60b6(0x258)]===_0x3a1d5d[_0x4e60b6(0x20b)]&&_0x44a18c(_0x1ca1dd,{'children':_0x4be8e8(_0x4e60b6(0x1a4),{'className':_0x4e60b6(0x1e0),'children':[_0x4be8e8('div',{'children':[_0x44a18c(_0x4e60b6(0x121),{'className':_0x4e60b6(0xb9),'children':_0x5eda7f['t'](_0x4e60b6(0xe0))}),_0x44a18c(_0x97485a,{'type':_0x4e60b6(0x28b),'value':String(((_0x5b1ab6=_0x3d82fd['marginCustom'])==null?void 0x0:_0x5b1ab6[_0x4e60b6(0xf3)])||0x0),'onChange':_0x25b970=>_0x23d7b8('top',Number(_0x25b970))})]}),_0x4be8e8(_0x4e60b6(0x1a4),{'children':[_0x44a18c(_0x4e60b6(0x121),{'className':_0x4e60b6(0xb9),'children':_0x5eda7f['t'](_0x4e60b6(0x263))}),_0x44a18c(_0x97485a,{'type':_0x4e60b6(0x28b),'value':String(((_0x2c3783=_0x3d82fd[_0x4e60b6(0x267)])==null?void 0x0:_0x2c3783[_0x4e60b6(0x23d)])||0x0),'onChange':_0x5429ae=>_0x23d7b8('bottom',Number(_0x5429ae))})]}),_0x4be8e8(_0x4e60b6(0x1a4),{'children':[_0x44a18c(_0x4e60b6(0x121),{'className':_0x4e60b6(0xb9),'children':_0x5eda7f['t'](_0x4e60b6(0x1f9))}),_0x44a18c(_0x97485a,{'type':'number','value':String(((_0xa449f4=_0x3d82fd[_0x4e60b6(0x267)])==null?void 0x0:_0xa449f4['left'])||0x0),'onChange':_0x212798=>_0x23d7b8(_0x4e60b6(0x131),Number(_0x212798))})]}),_0x4be8e8(_0x4e60b6(0x1a4),{'children':[_0x44a18c(_0x4e60b6(0x121),{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x5eda7f['t'](_0x4e60b6(0x18d))}),_0x44a18c(_0x97485a,{'type':_0x4e60b6(0x28b),'value':String(((_0x221f35=_0x3d82fd[_0x4e60b6(0x267)])==null?void 0x0:_0x221f35[_0x4e60b6(0x10f)])||0x0),'onChange':_0x2c52bf=>_0x23d7b8(_0x4e60b6(0x10f),Number(_0x2c52bf))})]})]})}),_0x44a18c(_0x1ca1dd,{'label':_0x5eda7f['t'](_0x4e60b6(0x178)),'children':_0x4be8e8(_0x9aa08,{'value':_0x3d82fd[_0x4e60b6(0x28e)],'onChange':_0x155823=>{const _0x399f1f=_0x4e60b6;_0x17c2bb[_0x399f1f(0x1f4)]({'direction':_0x155823});},'children':[_0x44a18c(_0x1f8ddd,{'value':_0x3cdc0e[_0x4e60b6(0x2fd)],'children':_0x5eda7f['t'](_0x4e60b6(0x273))}),_0x44a18c(_0x1f8ddd,{'value':_0x3cdc0e[_0x4e60b6(0x119)],'children':_0x5eda7f['t']('sheets-print.orientation.landscape')})]})}),_0x44a18c(_0x1ca1dd,{'label':_0x5eda7f['t'](_0x4e60b6(0x13c)),'children':_0x44a18c(_0x1e592e,{'className':_0x4e60b6(0x26f),'value':_0x3d82fd[_0x4e60b6(0x226)],'options':[{'label':_0x5eda7f['t'](_0x4e60b6(0x1e3)),'value':_0x40a4cd['Origin']},{'label':_0x5eda7f['t'](_0x4e60b6(0x205)),'value':_0x40a4cd[_0x4e60b6(0x272)]},{'label':_0x5eda7f['t'](_0x4e60b6(0x190)),'value':_0x40a4cd['FitHeight']},{'label':_0x5eda7f['t'](_0x4e60b6(0xcb)),'value':_0x40a4cd[_0x4e60b6(0xc7)]}],'onChange':_0x26d5e8=>{const _0x5dca1e=_0x4e60b6;_0x17c2bb[_0x5dca1e(0x1f4)]({'scale':_0x26d5e8});}})}),_0x4be8e8(_0x1ca1dd,{'label':_0x5eda7f['t'](_0x4e60b6(0x182)),'children':[_0x44a18c(_0x48108d,{'checked':_0xef0bb0[_0x4e60b6(0x19d)],'onChange':_0x1e91c7=>{const _0x20a97a=_0x4e60b6;_0x17c2bb[_0x20a97a(0x151)]({'gridlines':_0x1e91c7});},'children':_0x5eda7f['t'](_0x4e60b6(0x15b))}),_0xba0f45&&!_0x1f8f5b?_0x44a18c(_0x4e60b6(0x1a4),{'className':_0x4e60b6(0x231),'children':_0x44a18c(_0x48108d,{'checked':!!_0xef0bb0['watermark'],'onChange':async _0x5c8bde=>{const _0x13fec5=_0x4e60b6;_0x5c8bde?_0x17c2bb[_0x13fec5(0x151)]({'watermark':_0xba0f45}):_0x17c2bb[_0x13fec5(0x151)]({'watermark':void 0x0});},'children':_0x5eda7f['t']('sheets-print.formatting.waterMark')})}):null]}),_0x44a18c(_0x1ca1dd,{'label':_0x5eda7f['t'](_0x4e60b6(0xec)),'children':_0x4be8e8('div',{'className':'univer-flex\x20univer-gap-2','children':[_0x44a18c(_0x1e592e,{'className':_0x4e60b6(0xf5),'value':_0xef0bb0[_0x4e60b6(0xd2)],'options':[{'label':_0x5eda7f['t'](_0x4e60b6(0x1bc)),'value':_0x565437[_0x4e60b6(0xef)]},{'label':_0x5eda7f['t'](_0x4e60b6(0x2e4)),'value':_0x565437[_0x4e60b6(0x1fa)]},{'label':_0x5eda7f['t']('sheets-print.align.horizontal.end'),'value':_0x565437[_0x4e60b6(0x123)]}],'onChange':_0x3adf89=>{_0x17c2bb['updateRenderConfig']({'hAlign':_0x3adf89});}}),_0x44a18c(_0x1e592e,{'className':_0x4e60b6(0xf5),'value':_0xef0bb0[_0x4e60b6(0xa8)],'options':[{'label':_0x5eda7f['t']('sheets-print.align.vertical.start'),'value':_0x565437['Start']},{'label':_0x5eda7f['t']('sheets-print.align.vertical.end'),'value':_0x565437[_0x4e60b6(0x123)]},{'label':_0x5eda7f['t']('sheets-print.align.vertical.middle'),'value':_0x565437[_0x4e60b6(0xef)]}],'onChange':_0x118475=>{_0x17c2bb['updateRenderConfig']({'vAlign':_0x118475});}})]})}),_0x4be8e8(_0x1ca1dd,{'collapsable':!0x0,'label':_0x5eda7f['t'](_0x4e60b6(0x136)),'children':[_0x4be8e8(_0x21fa32,{'direction':_0x4e60b6(0x2e3),'disabled':_0xef0bb0['isCustomHeaderFooter'],'value':_0xef0bb0[_0x4e60b6(0x218)],'onChange':_0x45105e=>{_0x17c2bb['updateRenderConfig']({'headerFooter':_0x45105e});},'children':[_0x44a18c(_0x48108d,{'value':_0x4e60b6(0x220),'children':_0x5eda7f['t'](_0x4e60b6(0x21a))}),_0x44a18c(_0x48108d,{'value':_0x4e60b6(0x2d9),'children':_0x5eda7f['t']('sheets-print.headerFooter.workbook')}),_0x44a18c(_0x48108d,{'value':_0x4e60b6(0x10e),'children':_0x5eda7f['t'](_0x4e60b6(0x1cf))}),_0x44a18c(_0x48108d,{'value':_0x4e60b6(0x1f2),'children':_0x5eda7f['t'](_0x4e60b6(0x161))}),_0x44a18c(_0x48108d,{'value':_0x4e60b6(0x296),'children':_0x5eda7f['t'](_0x4e60b6(0x17e))})]}),_0x44a18c(_0x1ca1dd,{'className':_0x4e60b6(0x231),'label':_0x44a18c(_0x48108d,{'checked':_0xef0bb0[_0x4e60b6(0x1b3)],'onChange':()=>{const _0x58b34d=_0x4e60b6;_0x17c2bb[_0x58b34d(0x151)]({'isCustomHeaderFooter':!_0xef0bb0[_0x58b34d(0x1b3)]});},'children':_0x5eda7f['t']('sheets-print.headerFooter.customHeadFooter')}),'children':_0xef0bb0[_0x4e60b6(0x1b3)]?_0x44a18c(_0x13fbf0,{'className':_0x4e60b6(0x1b6),'size':'small','variant':_0x4e60b6(0x2e1),'onClick':()=>{_0x2e6009();},'children':_0x5eda7f['t'](_0x4e60b6(0xc0))}):null})]}),_0x44a18c(_0x1ca1dd,{'collapsable':!0x0,'label':_0x5eda7f['t'](_0x4e60b6(0xdc)),'children':_0x4be8e8(_0x21fa32,{'direction':_0x4e60b6(0x2e3),'value':_0x3d82fd[_0x4e60b6(0x12b)],'onChange':_0x75987d=>{const _0x5733b8=_0x4e60b6;_0x17c2bb[_0x5733b8(0x1f4)]({'freeze':_0x75987d});},'children':[_0x44a18c(_0x48108d,{'disabled':_0x1cb76b,'value':_0x4e60b6(0x140),'children':_0x5eda7f['t'](_0x4e60b6(0xde))}),_0x44a18c(_0x48108d,{'disabled':_0x2feda3,'value':_0x4e60b6(0x152),'children':_0x5eda7f['t'](_0x4e60b6(0x14c))})]})}),_0x4be8e8(_0x1ca1dd,{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x5eda7f['t']('sheets-print.area.limit'),'children':[_0x44a18c(_0x1ca1dd,{'className':_0x4e60b6(0x2f7),'label':_0x5eda7f['t']('sheets-print.area.maxRowsEachPage'),'children':_0x44a18c(_0x97485a,{'value':_0x3d82fd[_0x4e60b6(0x291)]===0x1/0x0?'':''+_0x3d82fd[_0x4e60b6(0x291)],'onChange':_0xa6748f=>{const _0x53a885=_0x4e60b6;_0x17c2bb[_0x53a885(0x1f4)]({'maxRowsEachPage':!_0xa6748f||Number['isNaN'](Number(_0xa6748f))?0x1/0x0:Number(_0xa6748f)});}})}),_0x44a18c(_0x1ca1dd,{'label':_0x5eda7f['t'](_0x4e60b6(0x2b7)),'children':_0x44a18c(_0x97485a,{'value':_0x3d82fd[_0x4e60b6(0x230)]===0x1/0x0?'':''+_0x3d82fd[_0x4e60b6(0x230)],'onChange':_0xe89410=>{const _0x1c9de8=_0x4e60b6;_0x17c2bb[_0x1c9de8(0x1f4)]({'maxColumnsEachPage':!_0xe89410||Number['isNaN'](Number(_0xe89410))?0x1/0x0:Number(_0xe89410)});}})})]})]})});});function Gn(_0x4adf53){return _0x44a18c(Wn,{..._0x4adf53,'DropdownComponent':_0x334180,'SelectComponent':_0x5bd8b4});}function Kn(){const _0x270ff2=_0x1f39bc;let [_0x244671,_0x5befc]=_0x527371(!0x1),[_0x1efc88,_0x35e1bb]=_0x527371(!0x1),[_0x22b9c6,_0x3df27e]=_0x527371(!0x1),[_0x500e7e,_0x1d079b]=_0x527371(()=>window[_0x270ff2(0x173)]),_0x206c5b=_0x15af67(Y),_0x390249=_0x15af67(_0x21a0f4),_0x190245=_0x2547c4(_0x206c5b[_0x270ff2(0x286)],[]),_0x3798cd=_0x15af67(K),_0x4a799b=_0x2547c4(_0x3798cd[_0x270ff2(0x1ba)],_0x3798cd['preparing']),_0x40fe28=_0x15af67(_0x3226eb),_0x1f2dee=_0x15af67(_0x5bc796),_0x35e9da=_0x15af67(_0x37f97a),_0x5d4f2e=_0x15af67(_0x97645),_0x108259=_0x15af67(_0x9aeed),_0x46ff80=_0x29d13f(null),{ls:_0x51c416,pbk:_0x5d147d}=_0x5d4f2e[_0x270ff2(0x1c8)](_0x2078d8)??{},{limit:_0x64bd8e,isPro:_0x1a562}=_0x54a2e0(()=>{let {page:_0x4faabf,isPro:_0x35d7a1}=sn(0x3,_0x51c416,_0x5d147d);return{'limit':_0x4faabf,'isPro':_0x35d7a1};},[_0x51c416,_0x5d147d]),_0x5421e3=Bn(import(`@univerjs-pro/collaboration-client`).then(_0x3adaa0=>_0x3adaa0[_0x270ff2(0x2ef)],()=>void 0x0));_0x481e15(()=>{const _0x58278d=_0x270ff2;let _0x110613=()=>_0x1d079b(window['innerWidth']);return window[_0x58278d(0xad)](_0x58278d(0x24f),_0x110613),()=>window[_0x58278d(0xc1)](_0x58278d(0x24f),_0x110613);},[]),_0x481e15(()=>{const _0x1e235a=_0x270ff2;var _0x5155ae;if(!_0x5421e3)return;let _0x118aea=_0x40fe28['getCurrentUnitOfType'](_0x4c551a[_0x1e235a(0x2b6)]);if(!_0x118aea)return;let _0x10aaa3=_0x35e9da['get'](_0x5421e3,_0x3b83ad[_0x1e235a(0x16b)]),_0x3d1f22=_0x10aaa3==null||(_0x5155ae=_0x10aaa3['getCollabEntity'](_0x118aea[_0x1e235a(0x91)]()))==null?void 0x0:_0x5155ae[_0x1e235a(0x162)]();return()=>_0x3d1f22==null?void 0x0:_0x3d1f22['dispose']();},[_0x5421e3,_0x35e9da,_0x40fe28]);let _0x3ed662=_0x54a2e0(()=>vn(_0x190245)['slice'](0x0,_0x64bd8e),[_0x64bd8e,_0x190245]),_0x12d0fd=_0x206c5b[_0x270ff2(0x227)],_0x125980=Math['min'](0x31a,Math['max'](0x1,_0x500e7e-0x20))/0x31a,_0xee9933=Math[_0x270ff2(0x221)](_0x125980*(0x31a/_0x12d0fd['w'])*0xa)/0xa,[_0x2735e2,{wrapperStyle:_0x16c23c,containerProps:_0x59ab29}]=_0x160755(_0x3ed662,{'containerTarget':_0x46ff80,'itemHeight':_0x12d0fd['h']*_0xee9933+0x1c,'overscan':0x3}),_0x550590=async()=>{const _0x290bb3=_0x270ff2;await _0x390249[_0x290bb3(0x19e)](ln['id']);},_0x24ad2c=async()=>{const _0x1413d8=_0x270ff2;_0x3df27e(!0x0),_0x108259[_0x1413d8(0xa2)]({'content':_0x1f2dee['t'](_0x1413d8(0x13b)),'type':_0x1c241d['Loading']}),await _0x14ca7f(0x12c),await _0x390249['executeCommand'](Z['id']);};return _0x4be8e8(_0x270ff2(0x1a4),{'data-u-comp':_0x270ff2(0x130),'className':_0x270ff2(0x200),'children':[_0x44a18c(_0x270ff2(0x165),{'className':_0x270ff2(0x113),'children':_0x4be8e8(_0x270ff2(0x149),{'className':_0x270ff2(0x13e),'children':[_0x1f2dee['t'](_0x270ff2(0xd7)),_0x3ed662[_0x270ff2(0x260)],_0x1f2dee['t'](_0x270ff2(0x2c3))]})}),_0x44a18c(_0x270ff2(0x1a4),{'ref':_0x46ff80,'className':_0x33108a(_0x270ff2(0x2c0),_0x2734c8),'aria-busy':_0x4a799b,..._0x59ab29,'children':_0x4a799b?_0x44a18c(_0x270ff2(0x1a4),{'className':_0x270ff2(0x21c),'role':_0x270ff2(0x2a7),'aria-label':_0x1f2dee['t']('sheets-print.header.printing'),'children':_0x44a18c(_0x2042e9,{'className':_0x270ff2(0x2c6),'aria-hidden':_0x270ff2(0x23e)})}):_0x44a18c('div',{'style':_0x16c23c,'children':_0x2735e2[_0x270ff2(0x2d4)](_0x3ded2b=>_0x44a18c(Hn,{'config':_0x3ded2b[_0x270ff2(0x11c)],'page':_0x3ded2b[_0x270ff2(0x11c)][_0x270ff2(0x169)],'previewScale':_0x125980},_0x3ded2b[_0x270ff2(0x11c)]['unitId']+':'+_0x3ded2b[_0x270ff2(0x11c)][_0x270ff2(0x228)]+':'+_0x3ded2b[_0x270ff2(0x11c)][_0x270ff2(0x169)]+':'+_0x3ded2b['data'][_0x270ff2(0x236)]['startRow']+':'+_0x3ded2b[_0x270ff2(0x11c)][_0x270ff2(0x236)][_0x270ff2(0x181)]+':'+_0x3ded2b[_0x270ff2(0x11c)][_0x270ff2(0x236)][_0x270ff2(0x18c)]+':'+_0x3ded2b[_0x270ff2(0x11c)][_0x270ff2(0x236)][_0x270ff2(0x95)]))})}),!_0x4a799b&&!_0x1a562&&_0x44a18c('a',{'className':_0x270ff2(0x29b),'href':_0x1f2dee['t']('sheets-print.limit.link'),'target':_0x270ff2(0x1fb),'rel':_0x270ff2(0xd5),'children':_0x1f2dee['t']('sheets-print.limit.page')[_0x270ff2(0x122)](_0x270ff2(0xb1),''+_0x64bd8e)}),_0x4be8e8(_0x270ff2(0x2dd),{'className':_0x33108a('univer-flex\x20univer-shrink-0\x20univer-gap-3\x20univer-bg-gray-0\x20univer-p-4\x20dark:!univer-bg-gray-900',_0xf8416b),'children':[_0x44a18c(_0x13fbf0,{'className':'univer-flex-1','onClick':_0x550590,'children':_0x1f2dee['t'](_0x270ff2(0xe8))}),_0x44a18c(_0x13fbf0,{'className':_0x270ff2(0x22e),'onClick':()=>_0x5befc(!0x0),'children':_0x1f2dee['t'](_0x270ff2(0x2a5))}),_0x44a18c(_0x13fbf0,{'className':_0x270ff2(0x22e),'variant':_0x270ff2(0x8e),'disabled':_0x4a799b||_0x22b9c6,'onClick':_0x24ad2c,'children':_0x1f2dee['t']('sheets-print.header.next')})]}),_0x44a18c(_0x5a6092,{'open':_0x244671,'title':_0x1f2dee['t'](_0x270ff2(0x2a5)),'onClose':()=>_0x5befc(!0x1),'children':_0x44a18c(Gn,{'onShowFooterHeaderEditor':()=>{_0x5befc(!0x1),_0x35e1bb(!0x0);}})}),_0x1efc88&&_0x44a18c(Un,{'open':!0x0,'onClose':()=>{_0x35e1bb(!0x1),_0x5befc(!0x0);}})]});}function qn(){const _0x284b00=_0x1f39bc;let _0x318abe=_0x15af67(K);return _0x2547c4(_0x318abe[_0x284b00(0x1f7)],_0x318abe[_0x284b00(0x138)])?_0x44a18c(Kn,{}):null;}let Jn=class extends _0x40a160{constructor(_0x59ef06,_0x188327,_0xb4ab51,_0x51d359,_0x366abc,_0x564004,_0x48f9b3,_0x445fdd){const _0x1ccbda=_0x1f39bc;super(),this[_0x1ccbda(0x281)]=_0x59ef06,this['_commandService']=_0x188327,this[_0x1ccbda(0x25c)]=_0xb4ab51,this['_sheetPrintClientService']=_0x51d359,this[_0x1ccbda(0x1b4)]=_0x366abc,this[_0x1ccbda(0x177)]=_0x564004,this[_0x1ccbda(0x114)]=_0x48f9b3,this[_0x1ccbda(0x14f)]=_0x445fdd,this[_0x1ccbda(0x1e6)](),this[_0x1ccbda(0x180)](),this['_initMenus'](),this[_0x1ccbda(0x83)](),this[_0x1ccbda(0xb5)]();}[_0x1f39bc(0x1e6)](){const _0x316e96=_0x1f39bc;[X,ln,Z,un]['forEach'](_0x4d3e4e=>this[_0x316e96(0xa5)](this[_0x316e96(0xf2)]['registerCommand'](_0x4d3e4e)));}[_0x1f39bc(0x180)](){const _0x577c83=_0x1f39bc;this['disposeWithMe'](this['_uiPartsService'][_0x577c83(0x2f9)](_0x2c5004[_0x577c83(0x276)],()=>_0x59db83(qn,this[_0x577c83(0x177)])));}[_0x1f39bc(0x2db)](){const _0xdd7519=_0x1f39bc;this[_0xdd7519(0x1b4)]['mergeMenu'](zn);}['_initConfigChangeListener'](){const _0x1cbb8e=_0x1f39bc;this['disposeWithMe'](this['_printDialogService']['visible$'][_0x1cbb8e(0x256)](_0x428471=>{const _0x4cd949=_0x1cbb8e;_0x428471&&this[_0x4cd949(0x25c)][_0x4cd949(0x88)]();}));}[_0x1f39bc(0xb5)](){const _0x3e1c3c=_0x1f39bc;this['disposeWithMe'](this[_0x3e1c3c(0xf2)]['onCommandExecuted'](_0x57c5e2=>{const _0xffb68=_0x3e1c3c;_0x57c5e2['id']===Z['id']&&this[_0xffb68(0xd6)]['print'](this['_sheetPrintManagerService']['layoutInfos'],this[_0xffb68(0x25c)][_0xffb68(0x85)])[_0xffb68(0x1fd)](_0x2a04c5=>this[_0xffb68(0x14f)][_0xffb68(0x132)](_0xffb68(0x1c9),_0xffb68(0xb4),_0x2a04c5));}));}};Jn=J([q(0x0,K),q(0x1,_0x21a0f4),q(0x2,Y),q(0x3,_0x12a925($)),q(0x4,_0x5d84aa),q(0x5,_0x12a925(_0x37f97a)),q(0x6,_0x5e1a90),q(0x7,_0x52fa3a)],Jn);let Yn=class extends _0x15c1ed{constructor(_0x467c09=Ln,_0x2331c4,_0x4d4e51){const _0x8ea7f2=_0x1f39bc;super(),this[_0x8ea7f2(0x1c0)]=_0x467c09,this['_injector']=_0x2331c4,this[_0x8ea7f2(0x290)]=_0x4d4e51;let {menu:_0x5f1faf,..._0x155a72}=_0x5114e8({},Ln,this[_0x8ea7f2(0x1c0)]);_0x5f1faf&&this['_configService']['setConfig'](_0x8ea7f2(0x128),_0x5f1faf,{'merge':!0x0}),this[_0x8ea7f2(0x290)][_0x8ea7f2(0x2a9)](In,_0x155a72);}[_0x1f39bc(0x2bd)](){const _0x438cce=_0x1f39bc;this[_0x438cce(0x177)][_0x438cce(0x196)](_0x8e087f)||this[_0x438cce(0x177)][_0x438cce(0x27b)]([_0x8e087f,{'useClass':_0x37e95c}]),_0x3a2b96(this[_0x438cce(0x177)],[[Y,{'useClass':an}],[K,{'useClass':Yt}],[$],[Rn],[Jn]]),_0x3541c7(this[_0x438cce(0x177)],[[Rn],[Jn]]);}};G(Yn,'pluginName',Fn),G(Yn,'packageName',Nn),G(Yn,_0x1f39bc(0xa7),Pn),G(Yn,_0x1f39bc(0xbe),_0x4c551a[_0x1f39bc(0x2b6)]),Yn=J([_0x17be11(_0x31e9aa,_0x1a4144,_0x379f28,_0x2049a6,_0x6c1e07),q(0x1,_0x12a925(_0x37f97a)),q(0x2,_0x97645)],Yn);const Xn=_0x4d5935(function(){const _0x10fb4a=_0x1f39bc;var _0x651fa1,_0x81c4b9,_0x2af8a4,_0x6d2a3b;let _0x4b7c94=_0x15af67(Y),_0x209045=_0x15af67(_0x21a0f4),_0x229cde=_0x2547c4(_0x4b7c94[_0x10fb4a(0x2c7)],_0x4b7c94[_0x10fb4a(0x2a2)]),_0x2f8387=_0x15af67(_0x5bc796),_0x454f77=_0x15af67(_0x3226eb)[_0x10fb4a(0x287)](_0x4c551a['UNIVER_SHEET']);if(!_0x454f77)return console[_0x10fb4a(0x132)]('No\x20workbook\x20found'),null;let _0x218d2a=_0x454f77[_0x10fb4a(0x279)]();if(!_0x218d2a)return console[_0x10fb4a(0x132)](_0x10fb4a(0x251)),null;let _0x141973=(_0x2795d3,_0xebaf42)=>{const _0x388f7e=_0x10fb4a;let _0x560448=Math[_0x388f7e(0x29c)](0x0,_0xebaf42||0x0),_0x40e06b=_0x229cde[_0x388f7e(0x267)]||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x4b7c94['updateLayoutConfig']({'marginCustom':{..._0x40e06b,[_0x2795d3]:_0x560448}});},_0x3f1b09=_0x218d2a[_0x10fb4a(0x217)](),_0x4079fb=_0x3f1b09['xSplit']<=0x0,_0x31a709=_0x3f1b09[_0x10fb4a(0x11f)]<=0x0,_0x22fe75=()=>{const _0x97e99a=_0x10fb4a;_0x209045[_0x97e99a(0x19e)](En['id']);};return _0x4be8e8(_0x10fb4a(0x1a4),{'className':_0x33108a('univer-flex\x20univer-h-full\x20univer-flex-col',_0x2734c8),'children':[_0x4be8e8(_0x10fb4a(0x1a4),{'className':_0x10fb4a(0x1d6),'children':[_0x44a18c(_0x1ca1dd,{'label':_0x2f8387['t']('sheets-print.area.title'),'children':_0x44a18c(_0x336ba1,{'className':_0x10fb4a(0x26f),'value':''+_0x229cde['area'],'onChange':_0x367071=>{const _0x162276=_0x10fb4a;_0x4b7c94[_0x162276(0x1f4)]({'area':_0x367071});},'options':[{'label':_0x2f8387['t'](_0x10fb4a(0x1ae)),'value':'CurrentSheet'},{'label':_0x2f8387['t'](_0x10fb4a(0x299)),'value':_0x10fb4a(0x112)}]})}),_0x44a18c(_0x1ca1dd,{'label':_0x2f8387['t'](_0x10fb4a(0x202)),'children':_0x44a18c(_0x336ba1,{'className':_0x10fb4a(0x26f),'value':_0x229cde[_0x10fb4a(0x227)],'options':[{'label':_0x2f8387['t']('sheets-print.size.letter'),'value':_0x21065a[_0x10fb4a(0x21f)]},{'label':_0x2f8387['t'](_0x10fb4a(0x13d)),'value':_0x21065a[_0x10fb4a(0xcc)]},{'label':_0x2f8387['t'](_0x10fb4a(0xa3)),'value':_0x21065a[_0x10fb4a(0x242)]},{'label':_0x2f8387['t'](_0x10fb4a(0x1d1)),'value':_0x21065a[_0x10fb4a(0x1b1)]},{'label':_0x2f8387['t']('sheets-print.size.executive'),'value':_0x21065a['Executive']},{'label':_0x2f8387['t'](_0x10fb4a(0x210)),'value':_0x21065a['Folio']},{'label':_0x2f8387['t'](_0x10fb4a(0x1de)),'value':_0x21065a['A3']},{'label':_0x2f8387['t'](_0x10fb4a(0x12a)),'value':_0x21065a['A4']},{'label':_0x2f8387['t']('sheets-print.size.a5'),'value':_0x21065a['A5']},{'label':_0x2f8387['t']('sheets-print.size.b4'),'value':_0x21065a['B4']},{'label':_0x2f8387['t']('sheets-print.size.b5'),'value':_0x21065a['B5']}],'onChange':_0x36dca4=>{const _0x450f78=_0x10fb4a;_0x4b7c94[_0x450f78(0x1f4)]({'paperSize':_0x36dca4});}})}),_0x44a18c(_0x1ca1dd,{'label':_0x2f8387['t']('sheets-print.margin.title'),'children':_0x44a18c(_0x336ba1,{'className':'univer-w-full','value':_0x229cde[_0x10fb4a(0x258)],'options':[{'label':_0x2f8387['t'](_0x10fb4a(0x252)),'value':_0x3a1d5d[_0x10fb4a(0x147)]},{'label':_0x2f8387['t'](_0x10fb4a(0x1ad)),'value':_0x3a1d5d[_0x10fb4a(0xca)]},{'label':_0x2f8387['t'](_0x10fb4a(0x2b4)),'value':_0x3a1d5d[_0x10fb4a(0x2be)]},{'label':_0x2f8387['t'](_0x10fb4a(0xfe)),'value':_0x3a1d5d['Custom']}],'onChange':_0x694e2f=>{let _0x4fe6ba=_0x5488a0[_0x229cde['margin']];_0x4b7c94['updateLayoutConfig']({'margin':_0x694e2f,'marginCustom':_0x694e2f===_0x3a1d5d['Custom']?_0x4fe6ba:_0x5488a0[_0x694e2f]});}})}),_0x229cde[_0x10fb4a(0x258)]===_0x3a1d5d['Custom']&&_0x44a18c(_0x1ca1dd,{'children':_0x4be8e8(_0x10fb4a(0x1a4),{'className':_0x10fb4a(0x1e0),'children':[_0x4be8e8(_0x10fb4a(0x1a4),{'children':[_0x44a18c(_0x10fb4a(0x121),{'className':_0x10fb4a(0xb9),'children':_0x2f8387['t']('sheets-print.margin.top')}),_0x44a18c(_0x97485a,{'type':_0x10fb4a(0x28b),'value':String(((_0x651fa1=_0x229cde['marginCustom'])==null?void 0x0:_0x651fa1['top'])||0x0),'onChange':_0x3ccda0=>_0x141973(_0x10fb4a(0xf3),Number(_0x3ccda0))})]}),_0x4be8e8(_0x10fb4a(0x1a4),{'children':[_0x44a18c(_0x10fb4a(0x121),{'className':_0x10fb4a(0xb9),'children':_0x2f8387['t'](_0x10fb4a(0x263))}),_0x44a18c(_0x97485a,{'type':'number','value':String(((_0x81c4b9=_0x229cde[_0x10fb4a(0x267)])==null?void 0x0:_0x81c4b9['bottom'])||0x0),'onChange':_0x32633e=>_0x141973('bottom',Number(_0x32633e))})]}),_0x4be8e8('div',{'children':[_0x44a18c(_0x10fb4a(0x121),{'className':_0x10fb4a(0xb9),'children':_0x2f8387['t'](_0x10fb4a(0x1f9))}),_0x44a18c(_0x97485a,{'type':_0x10fb4a(0x28b),'value':String(((_0x2af8a4=_0x229cde[_0x10fb4a(0x267)])==null?void 0x0:_0x2af8a4[_0x10fb4a(0x131)])||0x0),'onChange':_0x3c9dce=>_0x141973(_0x10fb4a(0x131),Number(_0x3c9dce))})]}),_0x4be8e8(_0x10fb4a(0x1a4),{'children':[_0x44a18c('label',{'className':_0x10fb4a(0xb9),'children':_0x2f8387['t']('sheets-print.margin.right')}),_0x44a18c(_0x97485a,{'type':'number','value':String(((_0x6d2a3b=_0x229cde[_0x10fb4a(0x267)])==null?void 0x0:_0x6d2a3b[_0x10fb4a(0x10f)])||0x0),'onChange':_0xee5562=>_0x141973('right',Number(_0xee5562))})]})]})}),_0x44a18c(_0x1ca1dd,{'label':_0x2f8387['t'](_0x10fb4a(0x178)),'children':_0x4be8e8(_0x9aa08,{'value':_0x229cde[_0x10fb4a(0x28e)],'onChange':_0x14187c=>{const _0x2707ea=_0x10fb4a;_0x4b7c94[_0x2707ea(0x1f4)]({'direction':_0x14187c});},'children':[_0x44a18c(_0x1f8ddd,{'value':_0x3cdc0e[_0x10fb4a(0x2fd)],'children':_0x2f8387['t'](_0x10fb4a(0x273))}),_0x44a18c(_0x1f8ddd,{'value':_0x3cdc0e['Landscape'],'children':_0x2f8387['t'](_0x10fb4a(0x22a))})]})}),_0x44a18c(_0x1ca1dd,{'collapsable':!0x0,'label':_0x2f8387['t'](_0x10fb4a(0xdc)),'children':_0x4be8e8(_0x21fa32,{'direction':_0x10fb4a(0x2e3),'value':_0x229cde[_0x10fb4a(0x12b)],'onChange':_0x5a8d91=>{const _0x2a2465=_0x10fb4a;_0x4b7c94[_0x2a2465(0x1f4)]({'freeze':_0x5a8d91});},'children':[_0x44a18c(_0x48108d,{'disabled':_0x31a709,'value':_0x10fb4a(0x140),'children':_0x2f8387['t'](_0x10fb4a(0xde))}),_0x44a18c(_0x48108d,{'disabled':_0x4079fb,'value':_0x10fb4a(0x152),'children':_0x2f8387['t'](_0x10fb4a(0x14c))})]})}),_0x4be8e8(_0x1ca1dd,{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x2f8387['t'](_0x10fb4a(0xbd)),'children':[_0x44a18c(_0x1ca1dd,{'className':'univer-mb-2','label':_0x2f8387['t'](_0x10fb4a(0x167)),'children':_0x44a18c(_0x97485a,{'value':_0x229cde['maxRowsEachPage']===0x1/0x0?'':''+_0x229cde[_0x10fb4a(0x291)],'onChange':_0x531a79=>{const _0x364ea3=_0x10fb4a;_0x4b7c94[_0x364ea3(0x1f4)]({'maxRowsEachPage':!_0x531a79||Number[_0x364ea3(0x215)](Number(_0x531a79))?0x1/0x0:Number(_0x531a79)});}})}),_0x44a18c(_0x1ca1dd,{'label':_0x2f8387['t']('sheets-print.area.maxColumnsEachPage'),'children':_0x44a18c(_0x97485a,{'value':_0x229cde[_0x10fb4a(0x230)]===0x1/0x0?'':''+_0x229cde[_0x10fb4a(0x230)],'onChange':_0x3f9d2b=>{_0x4b7c94['updateLayoutConfig']({'maxColumnsEachPage':!_0x3f9d2b||Number['isNaN'](Number(_0x3f9d2b))?0x1/0x0:Number(_0x3f9d2b)});}})})]})]}),_0x4be8e8(_0x10fb4a(0x1a4),{'className':'univer-space-y-2\x20univer-border-t\x20univer-pb-4','children':[_0x44a18c(_0x13fbf0,{'type':_0x10fb4a(0x235),'variant':_0x10fb4a(0x8e),'className':_0x10fb4a(0x26f),'onClick':()=>{const _0x2d1791=_0x10fb4a;_0x209045[_0x2d1791(0x19e)](X['id']),_0x22fe75();},'children':_0x2f8387['t'](_0x10fb4a(0x295))}),_0x44a18c(_0x13fbf0,{'type':'button','className':_0x10fb4a(0x26f),'onClick':_0x22fe75,'children':_0x2f8387['t'](_0x10fb4a(0x117))})]})]});});let Zn=class extends _0x40a160{constructor(_0x5bd07f,_0x5a06e8){const _0x589000=_0x1f39bc;super(),this['_componentManager']=_0x5bd07f,this[_0x589000(0x1f3)]=_0x5a06e8,this[_0x589000(0x16e)](),this[_0x589000(0x14a)]();}[_0x1f39bc(0x16e)](){const _0x659c8a=_0x1f39bc;this[_0x659c8a(0xa5)](this[_0x659c8a(0x1f3)][_0x659c8a(0xcf)]({'DocSettingIcon':_0x5e2c28,'PrintIcon':_0x16dc64}));}[_0x1f39bc(0x14a)](){const _0x1531a3=_0x1f39bc;this['_componentManager'][_0x1531a3(0xcf)](wn,Xn);}};Zn=J([q(0x0,_0x12a925(_0x428294)),q(0x1,_0x12a925(_0xa1ea30))],Zn);const Qn=[0x6,0x4];var $n=class extends _0x541fec{constructor(_0x31797e,_0x545a22){const _0x46b3bc=_0x1f39bc;super(),this[_0x46b3bc(0x10d)]=_0x31797e,this[_0x46b3bc(0x87)]=_0x545a22,G(this,_0x46b3bc(0xc2),_0x46b3bc(0x11d)),G(this,_0x46b3bc(0x27a),0x3d);}['draw'](_0x1c170e,_0x39f66a,_0x4719cc,_0x1ae807){const _0x4d25ed=_0x1f39bc;if(_0x1c170e[_0x4d25ed(0x92)]===_0x4d25ed(0xe9)||!this[_0x4d25ed(0x10d)]['visible'])return;let {worksheet:_0x3e2a94}=_0x4719cc;if(!_0x3e2a94)return;let _0x54a15e=this[_0x4d25ed(0x87)]['layoutInfos'],_0x48e836=_0x3e2a94['getUnitId'](),_0x4f2243=_0x3e2a94[_0x4d25ed(0x24e)](),_0x3cf213=_0x54a15e[_0x4d25ed(0x26e)](_0x4370df=>_0x4370df['unitId']===_0x48e836&&_0x4370df[_0x4d25ed(0x228)]===_0x4f2243);_0x3cf213&&this[_0x4d25ed(0x15f)](_0x1c170e,_0x4719cc,_0x3cf213);}[_0x1f39bc(0x15f)](_0x22784d,_0xa9cce8,_0x166277){const _0x254963=_0x1f39bc;let {pages:_0x19fc80}=_0x166277,{rowHeightAccumulation:_0xe848ac,columnWidthAccumulation:_0x57e5a6}=_0xa9cce8;_0x22784d[_0x254963(0xb2)](),_0x22784d[_0x254963(0x111)]='#1890ff',_0x22784d[_0x254963(0xe5)]=0x2,_0x22784d[_0x254963(0x108)](Qn);let _0x46dafa=new Set(),_0x37cd56=new Set();_0x19fc80[_0x254963(0x248)](_0x59b94b=>{const _0x4d9db3=_0x254963;let {startRow:_0x43b4c4,endRow:_0x20fd99,startColumn:_0x6731ff,endColumn:_0x16b099}=_0x59b94b,_0x9d10de=_0x43b4c4===0x0?0x0:_0xe848ac[_0x43b4c4-0x1],_0x2eae5c=_0xe848ac[_0x20fd99],_0x33f51a=_0x6731ff===0x0?0x0:_0x57e5a6[_0x6731ff-0x1],_0x3180ad=_0x57e5a6[_0x16b099];_0x46dafa['add'](_0x9d10de),_0x46dafa[_0x4d9db3(0x27b)](_0x2eae5c),_0x37cd56[_0x4d9db3(0x27b)](_0x33f51a),_0x37cd56[_0x4d9db3(0x27b)](_0x3180ad);});let _0x47f815=Math[_0x254963(0x203)](...Array[_0x254963(0x240)](_0x37cd56)),_0x3d026d=Math[_0x254963(0x29c)](...Array[_0x254963(0x240)](_0x37cd56)),_0x54065a=Math[_0x254963(0x203)](...Array[_0x254963(0x240)](_0x46dafa)),_0x560d8c=Math[_0x254963(0x29c)](...Array[_0x254963(0x240)](_0x46dafa));_0x46dafa['forEach'](_0x6f77b1=>{const _0x53c222=_0x254963;_0x22784d['beginPath'](),_0x22784d[_0x53c222(0x1bb)](_0x47f815,_0x6f77b1),_0x22784d['lineTo'](_0x3d026d,_0x6f77b1),_0x22784d[_0x53c222(0x155)]();}),_0x37cd56[_0x254963(0x248)](_0x4aa4b6=>{const _0x5947da=_0x254963;_0x22784d[_0x5947da(0x308)](),_0x22784d['moveTo'](_0x4aa4b6,_0x54065a),_0x22784d['lineTo'](_0x4aa4b6,_0x560d8c),_0x22784d['stroke']();}),_0x22784d[_0x254963(0x2af)]();}};let er=class extends _0x40a160{constructor(_0x19ad91,_0x538ccd,_0x1936a3){const _0x25effc=_0x1f39bc;super(),this[_0x25effc(0x195)]=_0x19ad91;let _0x4abf59=this[_0x25effc(0x195)]['mainComponent'];this[_0x25effc(0xa5)](_0x4abf59[_0x25effc(0xcf)](new $n(_0x538ccd,_0x1936a3)));}};function _0x23f3(_0xeaad08,_0x5cdedc){_0xeaad08=_0xeaad08-0x83;const _0x4994a1=_0x4994();let _0x23f318=_0x4994a1[_0xeaad08];return _0x23f318;}function _0x4994(){const _0x573c41=['_renderHeaderFooterByCustom','Date','_iconManager','updateLayoutConfig','sheets-print.headerFooter.submit','paperMargin','visible$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sheets-print.margin.left','Start','_blank','_totalWidth','catch','sheets-print.headerFooter.display.pageTotal','sheets-print.config','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-bg-gray-100\x20dark:!univer-bg-gray-900','getUnit','sheets-print.size.title','min','172056BnIpqG','sheets-print.scale.fitWidth','focus','univer-relative\x20univer-mx-auto\x20univer-mt-7\x20univer-flex-none\x20univer-bg-gray-0\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','headerFooterSetting','object','sheets-print.headerFooter.dateA','Custom','@TimeD','__RowHeaderPrint__','font','slice','sheets-print.size.folio','DownloadImageIcon','univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','disposePrintView','worksheet','isNaN','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','getFreeze','headerFooter','univer-flex\x20univer-flex-1\x20univer-overflow-hidden','sheets-print.headerFooter.page','__root','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center','100%','_watermarkConfig','Letter','PageSize','round','sheets-print.headerFooter.display.dateC','parentElement','close','fontBoundingBoxAscent','scale','paperSize','subUnitId','toLocaleString','sheets-print.orientation.landscape','engine','clearMemory','_layoutConfig$','univer-flex-1','MENTION','maxColumnsEachPage','univer-mt-3','_viewLeft','watermark','@TimeA','submit','range','getPrecisionScale','sheets-print.size.a5','getCanvas','@DateE','sheets-print.headerFooter.placeholder','fillStyle','bottom','true','univer-ml-2\x20univer-text-lg\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','from','enforceWatermark','Legal','VIEW_ROW_BOTTOM','_initRenderer','@SheetPage','getSheets','columnWidthAccumulation','forEach','call','BUTTON','rowHeightAccumulation','string','sheets-print.screenshot.success','getSheetId','resize','NO_COMMERCIAL','No\x20active\x20sheet\x20found','sheets-print.margin.normal','univer-z-[100]\x20univer-mt-2\x20univer-flex\x20univer-size-8\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-gray-0\x20univer-shadow\x20dark:!univer-bg-gray-900','actions','univer-flex\x20univer-h-16\x20univer-items-center\x20univer-justify-between\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','subscribe','DocSettingIcon','margin','_layoutConfig','sheets-print.headerFooter.display.dateD','__ColumnHeaderPrint__','_sheetPrintManagerService','ensureSkeleton','includeHeaderDimensions','univer-mx-2\x20univer-my-5','length','endY','_viewMain','sheets-print.margin.bottom','getCurrentSelections','sheet.menu.print','onafterprint','marginCustom','sheet-permission-user-dialog','sheets-print.headerFooter.display.timeD','dispose','section','univer-rounded-md\x20univer-bg-gray-0\x20univer-p-1\x20univer-shadow\x20dark:!univer-bg-gray-900','_skeleton','find','univer-w-full','reset','includes','FitWidth','sheets-print.orientation.portrait','sheets-print.area.title','key','GLOBAL','render','devicePixelRatio','getActiveSheet','Z_INDEX','add','getCurrentLastSelection','sheet','@TotalSheetPage','sheets-print.selection.workbookUnit','className','_printDialogService','pages','sheets-print.limit.waterMark','_messageService','sheets-print.limit.link','layoutInfos$','getCurrentUnitOfType','relative','_renderManagerService','bottomLeft','number','time','serialize','direction','getRangeImage','_configService','maxRowsEachPage','_shortcutService','DateE','toLocaleDateString','sheets-print.menu','Time','@TimeB','getValue','sheets-print.area.currentSelection','UNIVER_SHEET_PERMISSION_ALERT_DIALOG','univer-block\x20univer-shrink-0\x20univer-px-4\x20univer-py-2\x20univer-text-center\x20univer-text-xs','max','_calculateSheetRangeById','url','Executive','topRight','complete','layoutConfig','get','sheets-print.headerFooter.timeA','sheets-print.title','decorate','status','then','setConfig','sheets-print.area.allSelection','402504EEwiVz','getWorkbookSelections','syncExecuteCommand','101716nqWvnM','restore','sheets-print.grid.title','VIEW_COLUMN_RIGHT','univer-p-3','value','sheets-print.margin.wide','updateScrollVal','UNIVER_SHEET','sheets-print.area.maxColumnsEachPage','@TotalPage','@WorkbookTitle','getSelectionsOfWorksheet','getOwnPropertyDescriptor','endX','onReady','Wide','univer-flex\x20univer-cursor-pointer\x20univer-flex-row\x20univer-items-center\x20univer-justify-between\x20univer-rounded-md\x20univer-px-2\x20univer-py-1.5\x20hover:univer-rounded\x20hover:univer-bg-gray-300','univer-flex-1\x20univer-overflow-auto','getName','406090dMyYFq','sheets-print.header.pages','none','startX','univer-size-8\x20univer-animate-spin\x20univer-text-gray-500','layoutConfig$','sheets-print.screenshot.fail','have\x20not\x20permission','container','startY','sheets-print.headerFooter.display.dateB','Error','topCenter','forValue','overflow','createElement','sheets-print.screenshot.title','6zQULed','map','12px\x20','sheets-print.area.workbook','_key','_renderMainScene','WorkbookTitle','with','_initMenus','#E5E5E5','footer','fontBoundingBoxDescent','_scene','@Page','link','_renderConfig','vertical','sheets-print.align.horizontal.start','message','mainComponent','Success','getRenderUnitById','sheets-print.headerFooter.display.title','Origin','position','_visible$','_layoutInfos$','subscribeEvent','CollaborationController','startRow','_subUnitId','sheets-print.size.letter','_dirty','userInfo','VIEW_MAIN_LEFT_TOP','markDirty','univer-mb-2','FitHeight','registerComponent','columnHeaderHeight','area','_addComponent','Portrait','_print','_initMutationListener','_engine','sheet.operation.screenshot','_renderHeaderFooter','SUBITEMS','mpn','univer-absolute\x20univer-bottom-4\x20univer-right-4\x20univer-z-[1000]','function','next','beginPath','iterator','_calculatePrintScale','_initConfigChangeListener','sheets-print.size.b4','renderConfig','sheets-print.headerFooter.right','_printManagerService','reLayout','now','absolute','sheets-print.headerFooter.display.sheet','params','_root','primary','wait','workbook','getUnitId','__mode','scaleX','_getTranslateOffset','endColumn','univer-absolute\x20univer-left-0\x20univer-z-[100]','values','987925mvMuZQ','180UedTPn','delete','univer-flex\x20univer-w-full','overflowCache','_calculateSubSheetRange','sheets-print.headerFooter.timeB','sheetPageTotal','sheets-print.headerFooter.display.timeC','_previewScale','show','sheets-print.size.legal','univer-flex\x20univer-size-5\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-900\x20dark:!univer-text-gray-0','disposeWithMe','DateD','version','vAlign','_totalHeight','format','TimeA','sheets-print.size.executive','addEventListener','customRanges','_calculateCurrentSelectionRange','renderConfig$','{limit}','save','univer-grid\x20univer-gap-2','Failed\x20to\x20print\x20sheets.','_initCommandListener','@DateD','_effects','onCommandExecuted','univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','CTRL_COMMAND','renderOnReady','toPrimitive','sheets-print.area.limit','type','__SpreadsheetPrintRender__','sheets-print.headerFooter.editCustomHeadFooter','removeEventListener','uKey','setPreviewScale','_unitId','_calculate','config','FitPage','image','height','Narrow','sheets-print.scale.fitPage','Tabloid','getContext','univer-my-4\x20univer-text-center','register','open','asObservable','hAlign','_viewColumnRight','sheets-print.limit.page','noreferrer\x20noopener','_sheetPrintClientService','sheets-print.header.total','univer-relative\x20univer-inline-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1\x20univer-rounded\x20univer-bg-gray-0\x20univer-px-2\x20univer-py-1\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-900\x20hover:dark:!univer-bg-gray-700','setSelectionRanges','univer-box-border\x20univer-inline-flex\x20univer-h-8\x20univer-w-full\x20univer-min-w-36\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-2.5\x20univer-text-sm\x20univer-transition-colors\x20univer-duration-200\x20hover:univer-border-primary-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','mually','sheets-print.freeze.title','constructor','sheets-print.freeze.row','sheets-print.headerFooter.display.sheetPageTotal','sheets-print.margin.top','_printViewDisposable','toDataURL','_addViewport','push','lineWidth','prototype','_printPreparationService','sheets-print.header.cancel','printing','sheet.operation.print-open','_accessor','sheets-print.align.title','sheets-print.headerFooter.timeD','pageTotal','Middle','pipe','unier-w-[761px]\x20univer-mx-auto\x20univer-my-4\x20univer-box-border\x20univer-flex\x20univer-flex-col\x20univer-items-center\x20univer-bg-gray-0\x20univer-px-6\x20univer-py-7\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','_commandService','top','onTransformChange$','!univer-min-w-0\x20univer-flex-1','univer-flex\x20univer-gap-2','getImage','sheets-print.headerFooter.dateB','getNoMergeCellWithCoordByIndex','localeService','prepare','sheets-print.headerFooter.display.timeB','default','sheets-print.margin.custom','bottomRight','getEditorId','text','@univerjs-pro/sheets-print','sheets-print.selection.allWorkbook','VIEW_MAIN_LEFT','http://www.w3.org/2000/svg','rgba(0,0,0,0.3)','PageTotal','setLineDash','setPreparing','date','insertText','all','_printGridService','WorksheetTitle','right','subUnitIds','strokeStyle','CurrentSelection','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','_uiPartsService','Image','parseInt','sheets-print.grid.closeAndHide','topLeft','Landscape','_calculateFinalRange','clearCanvas','data','PrintGridExtension','sheets-print.headerFooter.center','ySplit','sheets-print.headerFooter.display.dateA','label','replace','End','sheets-print.headerFooter.dateD','fetchThroughInterceptors','_calculateSheetPages','resizeWhenFreezeChange','menu','@TimeC','sheets-print.size.a4','freeze','getInterceptPoints','sheets-print.headerFooter.left','getInstance','DateC','mobile-sheet-print-view','left','error','sheets-print.headerFooter.timeC','print','_container','sheets-print.headerFooter.title','filter','visible','clipboard','mount','sheets-print.header.printing','sheets-print.scale.title','sheets-print.size.tabloid','univer-text-sm\x20univer-font-medium','OPERATION','Row','hidden','waitForReady','_viewTop','PRINT_GRID_SIDEBAR_COMPONENT','getItem','svg','Normal','replaceRenderConfig','span','_registerComponents','flat','sheets-print.freeze.column','sheets-print.header.next','replaceLayoutConfig','_logService','appendChild','updateRenderConfig','Column','isPro','_sheetsSelectionsSrv','stroke','enable','_isPreview','name','_resizeViewport','selection','sheets-print.formatting.skeleton','sheets-print.selection.title','setForceDisableGridlines','image/png','_drawPrintGrid','@DateB','sheets-print.headerFooter.date','pauseCollaboration','replaceAll','startIndex','header','dataStream','sheets-print.area.maxRowsEachPage','Workbook','page','_targetRender','OPTIONAL','13px\x20','sheetPage','_registerIcons','unitId','_initShortcuts','sheets-print.headerFooter.display.page','getExtensionsByOrder','innerWidth','getCellMatrixPrintRange','_viewRowBottom','width','_injector','sheets-print.orientation.title','create','univer-pro.print-grid.service','0\x200\x20','updateConfig','None','sheets-print.headerFooter.time','CurrentSheet','_initUIParts','startColumn','sheets-print.formatting.title','onbeforeprint','_resourceCollector','mergeMenu','201742SyOiGa','sheets-print.headerFooter.display.timeA','packageName','AllSelection','_layoutInfos','measureText','endRow','sheets-print.margin.right','@[]@','src','sheets-print.scale.fitHeight','sheets-print.headerFooter.display.sheetPage','style','_univerInstanceService','@WorksheetTitle','_context','has','root','getCurrentUser','interceptor','xSplit','SheetPageTotal','getPermissionPoint','gridlines','executeCommand','removeChild','UserInfo','univer-ml-2\x20univer-text-base\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','symbol','univer-grid\x20univer-max-h-[60vh]\x20univer-gap-4\x20univer-overflow-y-auto','div','defineProperty','univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','warn','charCodeAt','layoutInfos','properties','univer-h-[200px]\x20univer-w-[--radix-popper-anchor-width]\x20univer-overflow-y-auto','resetCache','sheets-print.margin.narrow','sheets-print.area.currentSheet','_viewLeftTop','editOp','Statement','isSheetHidden','isCustomHeaderFooter','_menuManagerService','split','univer-my-1\x20univer-p-0','SheetPage','makeDirty','univer-box-border\x20univer-flex\x20univer-h-16\x20univer-w-full\x20univer-flex-none\x20univer-flex-row\x20univer-items-center\x20univer-justify-between\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','preparing$','moveTo','sheets-print.align.horizontal.middle','PRINTING_DOM_COLLECT','@DateC','write','_config','sheet.operation.open-print-grid-sidebar','TimeB','univer-pro.sheet-print-dialog.service','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_sheetPrintInterceptorService','sheets-print.headerFooter.header','isPrinting','getConfig','[MobileSheetPrintController]','Folio','81RPcsQs','preparing','SHEET_PRINT_PLUGIN','fillText','sheets-print.headerFooter.sheet','set','sheets-print.size.statement','univer-relative\x20first:univer-mr-2','sheet.operation.cancel-print','bottomCenter','disable','univer-flex-1\x20univer-overflow-y-auto','setPrintViewDisposable','current','OTHERS','scaleY','VIEW_MAIN_TOP','@DateA','TimeC','sheets-print.size.a3','registerCommand','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','reduce','body','sheets-print.scale.normal','PRINTING_RANGE','Loading','_initCommands','univer-text-base\x20univer-text-gray-900\x20dark:!univer-text-gray-0','getData','univer-p-4','getDocumentDataModel','insertRichText','22463xsKeYV','_spreadsheetObject','univer-relative\x20univer-mx-2\x20univer-my-0\x20univer-flex-grow','_renderConfig$','valid'];_0x4994=function(){return _0x573c41;};return _0x4994();}er=J([q(0x1,Sn),q(0x2,Y)],er);const tr=({icon:_0x4d8822,items:_0x41f736,active:_0x589873,onChange:_0x1bbbb6,onHover:_0x29ae2f,popupDirection:_0x4c9031=_0x1f39bc(0xf3)})=>_0x4be8e8(_0x1f39bc(0x1a4),{'className':_0x1f39bc(0xd8),'onMouseEnter':()=>_0x29ae2f==null?void 0x0:_0x29ae2f(!0x0),'onMouseLeave':()=>_0x29ae2f==null?void 0x0:_0x29ae2f(!0x1),'children':[_0x44a18c(_0x1f39bc(0x1a4),{'className':_0x1f39bc(0xa4),'children':_0x4d8822}),_0x44a18c(_0x4eaeab,{'className':'univer-size-3\x20univer-text-gray-900\x20univer-transition-transform\x20dark:!univer-text-gray-0'}),_0x589873&&_0x44a18c('div',{'style':{[_0x4c9031]:_0x1f39bc(0x21d)},'className':'univer-absolute\x20univer-left-0\x20univer-z-[1000]\x20univer-min-w-[200px]\x20univer-px-0\x20univer-py-2','children':_0x44a18c(_0x1f39bc(0x1a4),{'className':'univer-solid\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20univer-shadow-lg\x20dark:!univer-border-gray-700','children':_0x41f736[_0x1f39bc(0x2d4)](_0x1cb875=>_0x4be8e8(_0x1f39bc(0x1a4),{'className':_0x1f39bc(0x2bf),'onClick':()=>{const _0x408734=_0x1f39bc;_0x1bbbb6==null||_0x1bbbb6(_0x1cb875[_0x408734(0x2b3)]),_0x29ae2f==null||_0x29ae2f(!0x1);},'children':[_0x44a18c('div',{'className':_0x1f39bc(0x1e7),'children':_0x1cb875[_0x1f39bc(0x121)]}),_0x44a18c(_0x1f39bc(0x1a4),{'className':_0x1f39bc(0x1c4),'children':_0x1cb875['desc']})]},_0x1cb875[_0x1f39bc(0x2b3)]))})})]}),nr=_0x60b020=>{const _0x15b7d9=_0x1f39bc;let {onSelect:_0x53a296,popupDirection:_0x589f78}=_0x60b020,[_0x4b98e1,_0x4349c3]=_0x527371(),_0x3009d2=_0x15af67(_0x5bc796),_0x376f67=_0x15af67(_0x3226eb)[_0x15b7d9(0x287)](_0x4c551a[_0x15b7d9(0x2b6)]),_0x28bbdf=_0x376f67[_0x15b7d9(0x279)](),_0x342144=_0x54a2e0(()=>_0x4267e3(),[]),_0x424488=_0x54a2e0(()=>[{'value':_0x15b7d9(0x2e0),'label':_0x3009d2['t']('sheets-print.headerFooter.display.page'),'desc':Q(_0x15b7d9(0x2e0),{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x245),'label':_0x3009d2['t'](_0x15b7d9(0x191)),'desc':Q('@SheetPage',{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x2b8),'label':_0x3009d2['t'](_0x15b7d9(0x1fe)),'desc':Q(_0x15b7d9(0x2b8),{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x27e),'label':_0x3009d2['t']('sheets-print.headerFooter.display.sheetPageTotal'),'desc':Q(_0x15b7d9(0x27e),{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})}],[_0x3009d2]),_0x288711=_0x54a2e0(()=>[{'value':_0x15b7d9(0x2b9),'label':_0x3009d2['t'](_0x15b7d9(0x2e9)),'desc':Q(_0x15b7d9(0x2b9),{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x194),'label':_0x3009d2['t'](_0x15b7d9(0x8b)),'desc':Q(_0x15b7d9(0x194),{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})}],[_0x3009d2]),_0x4d1d75=_0x54a2e0(()=>[{'value':_0x15b7d9(0x1dc),'label':_0x3009d2['t'](_0x15b7d9(0x120)),'desc':Q('@DateA',{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x160),'label':_0x3009d2['t']('sheets-print.headerFooter.display.dateB'),'desc':Q(_0x15b7d9(0x160),{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x1be),'label':_0x3009d2['t'](_0x15b7d9(0x222)),'desc':Q('@DateC',{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':'@DateD','label':_0x3009d2['t'](_0x15b7d9(0x25a)),'desc':Q('@DateD',{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})}],[_0x3009d2]),_0xe3afcc=_0x54a2e0(()=>[{'value':'@TimeA','label':_0x3009d2['t'](_0x15b7d9(0x187)),'desc':Q(_0x15b7d9(0x234),{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x297),'label':_0x3009d2['t'](_0x15b7d9(0xfc)),'desc':Q(_0x15b7d9(0x297),{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x129),'label':_0x3009d2['t']('sheets-print.headerFooter.display.timeC'),'desc':Q('@TimeC',{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})},{'value':_0x15b7d9(0x20c),'label':_0x3009d2['t'](_0x15b7d9(0x269)),'desc':Q('@TimeD',{'workbook':_0x376f67,'worksheet':_0x28bbdf,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3009d2,'now':_0x342144})}],[_0x3009d2]);return _0x4be8e8(_0x15b7d9(0x1a4),{'className':_0x33108a(_0x15b7d9(0x26c),_0x32dbe9),'children':[_0x44a18c(tr,{'icon':_0x44a18c(_0x29d541,{}),'items':_0x424488,'onHover':_0x254774=>_0x4349c3(_0x254774?_0x15b7d9(0x27d):''),'active':_0x4b98e1===_0x15b7d9(0x27d),'onChange':_0x53a296,'popupDirection':_0x589f78}),_0x44a18c(tr,{'icon':_0x44a18c(_0x3125f6,{}),'items':_0x288711,'onHover':_0x15e78=>_0x4349c3(_0x15e78?_0x15b7d9(0x101):''),'active':_0x4b98e1===_0x15b7d9(0x101),'onChange':_0x53a296,'popupDirection':_0x589f78}),_0x44a18c(tr,{'icon':_0x44a18c(_0x57a336,{}),'items':_0x4d1d75,'onHover':_0x24dd38=>_0x4349c3(_0x24dd38?_0x15b7d9(0x10a):''),'active':_0x4b98e1==='date','onChange':_0x53a296,'popupDirection':_0x589f78}),_0x44a18c(tr,{'icon':_0x44a18c(_0x10194f,{}),'items':_0xe3afcc,'onHover':_0x20fad5=>_0x4349c3(_0x20fad5?_0x15b7d9(0x28c):''),'active':_0x4b98e1===_0x15b7d9(0x28c),'onChange':_0x53a296,'popupDirection':_0x589f78})]});};function rr({width:_0x5d837d=0x2b9,height:_0x3a8e1d=0x229,cols:_0x14382e=0x8,rows:_0x19efa2=0x18,cellWidth:_0x1d02ad=0x57,cellHeight:_0x4cb506=0x17,strokeColor:_0x1bcf64=_0x1f39bc(0x2dc)}){const _0x58f015=_0x1f39bc;let _0x44c62e=_0x54a2e0(()=>{const _0xc07f16=_0x23f3;let _0x886424=[];for(let _0x2820e6=0x0;_0x2820e6<_0x19efa2;_0x2820e6++)for(let _0x3c6db3=0x0;_0x3c6db3<_0x14382e;_0x3c6db3++)_0x886424[_0xc07f16(0xe4)](_0x44a18c('rect',{'x':_0x3c6db3*_0x1d02ad+0.5,'y':_0x2820e6*_0x4cb506+0.5,'width':_0x1d02ad,'height':_0x4cb506,'stroke':_0x1bcf64},_0x2820e6+'-'+_0x3c6db3));return _0x886424;},[_0x19efa2,_0x14382e,_0x1d02ad,_0x4cb506,_0x1bcf64]);return _0x44a18c(_0x58f015(0x146),{'width':_0x5d837d,'height':_0x3a8e1d,'viewBox':_0x58f015(0x17b)+_0x5d837d+'\x20'+_0x3a8e1d,'fill':_0x58f015(0x2c4),'xmlns':_0x58f015(0x105),'children':_0x44c62e});}const ir=_0x4d7fa7=>{const _0x554023=_0x1f39bc;let {value:_0x2aea92,onChange:_0x38e22f,popupDirection:_0x20ea14=_0x554023(0xf3)}=_0x4d7fa7,_0x3522b6=_0x15af67(_0x5bc796),_0x2eecc3=_0x15af67(_0x58dc84),[_0xdc1c71,_0x47135c]=_0x527371(!0x1),_0x295a7c=_0x29d13f(null),_0x40dcb4=_0x15af67(_0x21a0f4),_0x48f8c8=[{'value':_0x554023(0x2e0),'label':_0x3522b6['t'](_0x554023(0x171))},{'value':_0x554023(0x245),'label':_0x3522b6['t'](_0x554023(0x191))},{'value':'@TotalPage','label':_0x3522b6['t']('sheets-print.headerFooter.display.pageTotal')},{'value':_0x554023(0x27e),'label':_0x3522b6['t'](_0x554023(0xdf))}],_0x208688=[{'value':_0x554023(0x2b9),'label':_0x3522b6['t'](_0x554023(0x2e9))},{'value':'@WorksheetTitle','label':_0x3522b6['t']('sheets-print.headerFooter.display.sheet')}],_0xe32483=[{'value':_0x554023(0x1dc),'label':_0x3522b6['t'](_0x554023(0x120))},{'value':_0x554023(0x160),'label':_0x3522b6['t'](_0x554023(0x2cc))},{'value':_0x554023(0x1be),'label':_0x3522b6['t'](_0x554023(0x222))},{'value':_0x554023(0xb6),'label':_0x3522b6['t'](_0x554023(0x25a))}],_0x1c6dd5=[{'value':_0x554023(0x234),'label':_0x3522b6['t'](_0x554023(0x187))},{'value':_0x554023(0x297),'label':_0x3522b6['t'](_0x554023(0xfc))},{'value':_0x554023(0x129),'label':_0x3522b6['t'](_0x554023(0xa0))},{'value':_0x554023(0x20c),'label':_0x3522b6['t']('sheets-print.headerFooter.display.timeD')}],_0x4ca43b=[..._0x48f8c8,..._0x208688,..._0xe32483,..._0x1c6dd5],[_0x29ef08]=_0x527371(()=>mn(_0x2aea92,_0x4ca43b));return _0x4be8e8(_0x554023(0x1a4),{'className':_0x554023(0x1ee),'children':[_0x44a18c(_0x1390fa,{'editorRef':_0x295a7c,'initialValue':_0x29ef08,'onChange':_0x4e1499=>{_0x38e22f==null||_0x38e22f(hn(_0x4e1499));},'onFocusChange':_0x35c721=>{_0x47135c(_0x35c721);},'onClickOutside':()=>{const _0x7c19c7=_0x554023;var _0x172507;(_0x172507=_0x295a7c['current'])==null||_0x172507[_0x7c19c7(0xd9)]([]),_0x2eecc3['blur']();},'placeholder':_0x3522b6['t'](_0x554023(0x23b))}),_0x44a18c(_0x554023(0x1a4),{'className':_0x554023(0x96),'style':{[_0x20ea14]:0x24},'children':_0xdc1c71&&_0x44a18c(nr,{'popupDirection':_0x20ea14,'onSelect':async _0x152da0=>{const _0x4a4c34=_0x554023;var _0x4ba3f6;let _0x40841f=(_0x4ba3f6=_0x295a7c[_0x4a4c34(0x1d8)])==null?void 0x0:_0x4ba3f6[_0x4a4c34(0x100)]();if(!_0x295a7c['current'])return;let _0x28fc65=_0x295a7c[_0x4a4c34(0x1d8)]['getCursorPosition']();if(_0x28fc65<0x0)return;let _0x5dbc98=_0x4ca43b[_0x4a4c34(0x26e)](_0x56f4f7=>_0x56f4f7[_0x4a4c34(0x2b3)]===_0x152da0);if(!_0x5dbc98)return;let _0x59215d={'dataStream':_0x5dbc98[_0x4a4c34(0x121)],'customRanges':[{'startIndex':0x0,'endIndex':_0x5dbc98[_0x4a4c34(0x121)][_0x4a4c34(0x260)]-0x1,'rangeId':_0x5514b4(),'rangeType':_0xcafb3e[_0x4a4c34(0x22f)],'properties':{'value':_0x5dbc98['value']},'wholeEntity':!0x0}]};await _0x14ca7f(0x0);let _0x1405b0=_0x5f0c69[_0x4a4c34(0x15a)][_0x4a4c34(0x122)]({'selection':{'startOffset':_0x28fc65,'endOffset':_0x28fc65,'collapsed':!0x0},'body':_0x59215d,'doc':_0x295a7c['current'][_0x4a4c34(0x1ea)]()});if(!_0x1405b0)return;let _0x1e1b3b={'id':_0x22ae90['id'],'params':{'unitId':_0x40841f,'actions':[],'textRanges':[{'startOffset':_0x28fc65+_0x59215d['dataStream']['length'],'endOffset':_0x28fc65+_0x59215d[_0x4a4c34(0x166)][_0x4a4c34(0x260)],'collapsed':!0x0}],'trigger':_0x4a4c34(0xdb)}},_0x57e18e=_0x118ba9[_0x4a4c34(0x12e)]();_0x1e1b3b[_0x4a4c34(0x8c)][_0x4a4c34(0x254)]=_0x57e18e[_0x4a4c34(0x1b0)](_0x1405b0[_0x4a4c34(0x28d)]()),_0x40dcb4[_0x4a4c34(0x2ad)](_0x1e1b3b['id'],_0x1e1b3b[_0x4a4c34(0x8c)]),setTimeout(()=>{const _0x15f837=_0x4a4c34;_0x2eecc3[_0x15f837(0x206)](_0x40841f);},0x0);}})})]});},ar=_0x262e58=>{const _0x3971aa=_0x1f39bc;let {onClose:_0x5e6ea3}=_0x262e58,_0x556169=_0x15af67(Y),_0x144d9d=_0x556169[_0x3971aa(0x85)][_0x3971aa(0x208)]??en,[_0x15c0ea,_0x333a80]=_0x527371(_0x144d9d[_0x3971aa(0x118)]),[_0x87c1c6,_0xca4f9d]=_0x527371(_0x144d9d[_0x3971aa(0x2ce)]),[_0x5bf1e9,_0x34697b]=_0x527371(_0x144d9d['topRight']),[_0x42a34c,_0xaa9a9a]=_0x527371(_0x144d9d[_0x3971aa(0x28a)]),[_0x279dd1,_0x31b10f]=_0x527371(_0x144d9d[_0x3971aa(0x1d4)]),[_0x249ad1,_0x228328]=_0x527371(_0x144d9d[_0x3971aa(0xff)]),_0x7d1b7e=_0x15af67(_0x5bc796);return _0x4be8e8('div',{'className':'univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x4be8e8(_0x3971aa(0x1a4),{'className':_0x33108a(_0x3971aa(0x1b9),_0x21c584),'children':[_0x44a18c('div',{'className':_0x3971aa(0x23f),'children':_0x7d1b7e['t'](_0x3971aa(0xc0))}),_0x4be8e8('div',{'className':_0x3971aa(0x1d2),'children':[_0x44a18c(_0x13fbf0,{'className':'univer-mr-2','onClick':()=>{_0x5e6ea3();},'children':_0x7d1b7e['t']('sheets-print.header.cancel')}),_0x44a18c(_0x13fbf0,{'variant':'primary','onClick':()=>{_0x5e6ea3(),_0x556169['updateRenderConfig']({'headerFooterSetting':{'topLeft':_0x15c0ea,'topCenter':_0x87c1c6,'topRight':_0x5bf1e9,'bottomLeft':_0x42a34c,'bottomCenter':_0x279dd1,'bottomRight':_0x249ad1}});},'children':_0x7d1b7e['t'](_0x3971aa(0x1f5))})]})]}),_0x44a18c(_0x3971aa(0x1a4),{'className':_0x3971aa(0x212),'children':_0x44a18c(_0x3971aa(0x1a4),{'className':'univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-200\x20dark:!univer-bg-gray-700','children':_0x4be8e8(_0x3971aa(0x1a4),{'className':_0x3971aa(0xf1),'children':[_0x4be8e8(_0x3971aa(0x1a4),{'className':_0x3971aa(0x9b),'children':[_0x44a18c(ir,{'value':_0x15c0ea,'onChange':_0x53ef68=>_0x333a80(_0x53ef68)}),_0x44a18c(ir,{'value':_0x87c1c6,'onChange':_0x4cdb93=>_0xca4f9d(_0x4cdb93)}),_0x44a18c(ir,{'value':_0x5bf1e9,'onChange':_0x1c7e6d=>_0x34697b(_0x1c7e6d)})]}),_0x44a18c('div',{'className':_0x3971aa(0x25f),'children':_0x44a18c(rr,{})}),_0x4be8e8(_0x3971aa(0x1a4),{'className':_0x3971aa(0x9b),'children':[_0x44a18c(ir,{'popupDirection':_0x3971aa(0x23d),'value':_0x42a34c,'onChange':_0xc7f04b=>_0xaa9a9a(_0xc7f04b)}),_0x44a18c(ir,{'popupDirection':'bottom','value':_0x279dd1,'onChange':_0x58a964=>_0x31b10f(_0x58a964)}),_0x44a18c(ir,{'popupDirection':_0x3971aa(0x23d),'value':_0x249ad1,'onChange':_0x361731=>_0x228328(_0x361731)})]})]})})})]});},or=0.1,sr=()=>{const _0x261912=_0x1f39bc;let [_0x5d6ca1,_0xd80b1c]=_0x527371(!0x1),_0x1e79dd=_0x15af67(Y),_0x26e8ec=_0x15af67(_0x21a0f4),_0x4f1133=_0x2547c4(_0x1e79dd['layoutInfos$'],[]),[_0x5ce6d0,_0x181ae1]=_0x527371(0x1),[_0x286012,_0xffa56c]=_0x527371(!0x1),_0x5481b6=_0x15af67(K),_0x38a8cc=_0x2547c4(_0x5481b6[_0x261912(0x1ba)],_0x5481b6[_0x261912(0x1cc)]),_0x3f37f1=_0x15af67(_0x3226eb),_0x294a5a=_0x15af67(_0x5bc796),_0x3bfcdb=_0x15af67(_0x37f97a),{ls:_0x162fd1,pbk:_0xa6ae78}=_0x15af67(_0x97645)[_0x261912(0x1c8)](_0x2078d8)??{},{limit:_0xb95e44,isPro:_0x400649}=_0x54a2e0(()=>{let {page:_0x513d4c,isPro:_0x457aa9}=sn(0x3,_0x162fd1,_0xa6ae78);return{'limit':_0x513d4c,'isPro':_0x457aa9};},[_0x162fd1,_0xa6ae78]),_0x248259=_0x29d13f(null),_0x33b28b=_0x15af67(_0x9aeed),_0x53f1a4=Bn(import(`@univerjs-pro/collaboration-client`).then(_0x2e5899=>_0x2e5899[_0x261912(0x2ef)],()=>void 0x0));_0x481e15(()=>{const _0x4c563c=_0x261912;var _0x2205a3;if(!_0x53f1a4)return;let _0x45745e=_0x3f37f1[_0x4c563c(0x287)](_0x4c551a[_0x4c563c(0x2b6)]);if(!_0x45745e)return;let _0x2a3cf2=_0x45745e[_0x4c563c(0x91)](),_0x1daea1=_0x3bfcdb[_0x4c563c(0x2a3)](_0x53f1a4,_0x3b83ad[_0x4c563c(0x16b)]),_0x13f382=_0x1daea1==null||(_0x2205a3=_0x1daea1['getCollabEntity'](_0x2a3cf2))==null?void 0x0:_0x2205a3[_0x4c563c(0x162)]();return()=>{const _0x362faf=_0x4c563c;_0x13f382==null||_0x13f382[_0x362faf(0x26a)]();};},[_0x53f1a4,_0x3bfcdb,_0x3f37f1]);let _0x17502d=_0x54a2e0(()=>vn(_0x4f1133),[_0x4f1133]),_0x21c16f=_0x54a2e0(()=>_0x17502d[_0x261912(0x20f)](0x0,_0xb95e44),[_0x17502d,_0xb95e44]),_0x295fbc=_0x1e79dd['paperSize'],_0x3379f6=Math[_0x261912(0x221)](_0x5ce6d0*(0x31a/_0x295fbc['w'])*0xa)/0xa,[_0x991336,{wrapperStyle:_0x3ed177,containerProps:_0x56ad28}]=_0x160755(_0x21c16f,{'containerTarget':_0x248259,'itemHeight':_0x295fbc['h']*_0x3379f6+0x1c,'overscan':0x5}),_0x256f29=()=>{const _0x4f1d09=_0x261912;_0x26e8ec[_0x4f1d09(0x19e)](ln['id']);},_0x5ad6dd=()=>{const _0x13ade0=_0x261912;_0xffa56c(!0x0),_0x33b28b[_0x13ade0(0xa2)]({'content':_0x294a5a['t'](_0x13ade0(0x13b)),'type':_0x1c241d[_0x13ade0(0x1e5)]}),setTimeout(()=>{const _0x324d40=_0x13ade0;_0x26e8ec[_0x324d40(0x19e)](Z['id']);},0x12c);},_0x5220a6=_0xa649e0(()=>{_0xd80b1c(!0x0);});return _0x4be8e8(_0x261912(0x1a4),{'className':'univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-box-border\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-100\x20dark:!univer-bg-gray-900','children':[_0x5d6ca1&&_0x44a18c(ar,{'onClose':()=>_0xd80b1c(!0x1)}),_0x286012&&_0x44a18c('div',{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-[1010]\x20univer-flex\x20univer-justify-center'}),_0x4be8e8(_0x261912(0x1a4),{'className':_0x33108a(_0x261912(0x255),_0x21c584),'children':[_0x4be8e8('div',{'className':_0x261912(0x1a1),'children':[_0x294a5a['t']('sheets-print.header.total'),_0x21c16f[_0x261912(0x260)],_0x294a5a['t'](_0x261912(0x2c3))]}),_0x4be8e8(_0x261912(0x1a4),{'className':_0x261912(0xf6),'children':[_0x44a18c(_0x13fbf0,{'onClick':_0x256f29,'children':_0x294a5a['t'](_0x261912(0xe8))}),_0x44a18c(_0x13fbf0,{'variant':_0x261912(0x8e),'disabled':_0x38a8cc,'onClick':_0x5ad6dd,'children':_0x294a5a['t'](_0x261912(0x14d))})]})]}),_0x4be8e8(_0x261912(0x1a4),{'className':_0x261912(0x219),'children':[_0x4be8e8(_0x261912(0x1a4),{'className':_0x261912(0x1a6),'children':[_0x44a18c(_0x261912(0x1a4),{'ref':_0x248259,'className':_0x33108a(_0x261912(0x2c0),_0x2734c8),'aria-busy':_0x38a8cc,..._0x56ad28,'children':_0x38a8cc?_0x44a18c('div',{'className':_0x261912(0x21c),'role':'status','aria-label':_0x294a5a['t'](_0x261912(0x13b)),'children':_0x44a18c(_0x2042e9,{'className':_0x261912(0x2c6),'aria-hidden':_0x261912(0x23e)})}):_0x44a18c(_0x261912(0x1a4),{'style':_0x3ed177,'children':_0x991336['map'](_0x563464=>_0x44a18c(Hn,{'config':_0x563464[_0x261912(0x11c)],'page':_0x563464[_0x261912(0x11c)]['page'],'previewScale':_0x5ce6d0},_0x563464[_0x261912(0x11c)][_0x261912(0x16f)]+':'+_0x563464[_0x261912(0x11c)][_0x261912(0x228)]+':'+_0x563464[_0x261912(0x11c)][_0x261912(0x169)]+':'+_0x563464[_0x261912(0x11c)][_0x261912(0x236)][_0x261912(0x2f0)]+':'+_0x563464[_0x261912(0x11c)][_0x261912(0x236)][_0x261912(0x181)]+':'+_0x563464[_0x261912(0x11c)][_0x261912(0x236)][_0x261912(0x18c)]+':'+_0x563464[_0x261912(0x11c)][_0x261912(0x236)][_0x261912(0x95)]))})}),!_0x38a8cc&&!_0x400649&&_0x44a18c(_0x261912(0x1a4),{'className':_0x261912(0xce),'children':_0x44a18c('a',{'href':_0x294a5a['t'](_0x261912(0x285)),'target':_0x261912(0x1fb),'rel':_0x261912(0xd5),'children':_0x294a5a['t'](_0x261912(0xd4))[_0x261912(0x122)](_0x261912(0xb1),''+_0xb95e44)})}),!_0x38a8cc&&!_0x5d6ca1&&_0x4be8e8(_0x261912(0x1a4),{'className':_0x261912(0x305),'children':[_0x44a18c(_0x261912(0x1a4),{'className':_0x261912(0x253),'onClick':()=>{const _0x11e9f3=_0x261912;_0x181ae1(Math[_0x11e9f3(0x203)](_0x5ce6d0+or,0x2));},'children':_0x44a18c(_0x411be2,{})}),_0x44a18c(_0x261912(0x1a4),{'className':_0x261912(0x253),'onClick':()=>{const _0x2d1b58=_0x261912;_0x181ae1(Math[_0x2d1b58(0x29c)](_0x5ce6d0-or,0.5));},'children':_0x44a18c(_0x1f2513,{})})]})]}),_0x44a18c(_0x261912(0x1a4),{'className':'univer-box-border\x20univer-h-full\x20univer-w-[312px]\x20univer-flex-none\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':_0x44a18c(Wn,{'onShowFooterHeaderEditor':_0x5220a6})})]})]});},cr=()=>{const _0x264fa8=_0x1f39bc;let _0x1fc16b=_0x15af67(K);return _0x2547c4(_0x1fc16b[_0x264fa8(0x1f7)],_0x1fc16b[_0x264fa8(0x138)])?_0x44a18c(sr,{}):null;},lr={'id':X['id'],'binding':_0x2e96d6['P']|_0x4dc287[_0x1f39bc(0xba)],'preconditions':_0x1a2a8b};let ur=class extends _0x40a160{constructor(_0x37d565,_0x3584fb,_0x17d580,_0x35a7d7,_0x29a5bc,_0x5b1b5c,_0x65f771,_0x32e168,_0x346593,_0x54c2b7){const _0x4c31fc=_0x1f39bc;super(),this['_printDialogService']=_0x37d565,this[_0x4c31fc(0xf2)]=_0x3584fb,this[_0x4c31fc(0x25c)]=_0x17d580,this[_0x4c31fc(0xd6)]=_0x35a7d7,this[_0x4c31fc(0x1b4)]=_0x29a5bc,this[_0x4c31fc(0x292)]=_0x5b1b5c,this[_0x4c31fc(0x177)]=_0x65f771,this[_0x4c31fc(0x193)]=_0x32e168,this[_0x4c31fc(0x289)]=_0x346593,this[_0x4c31fc(0x114)]=_0x54c2b7,this[_0x4c31fc(0x1e6)](),this[_0x4c31fc(0x180)](),this[_0x4c31fc(0x2db)](),this[_0x4c31fc(0x170)](),this[_0x4c31fc(0xb5)](),this['_initConfigChangeListener'](),this[_0x4c31fc(0x2ff)]();}['_initCommands'](){const _0x33782a=_0x1f39bc;[X,ln,Z,xn,un,Tn,En]['forEach'](_0xa3588=>this[_0x33782a(0xf2)][_0x33782a(0x1df)](_0xa3588));}['_initUIParts'](){const _0x4176f5=_0x1f39bc;this[_0x4176f5(0xa5)](this[_0x4176f5(0x114)]['registerComponent'](_0x2c5004[_0x4176f5(0x276)],()=>_0x59db83(cr,this['_injector'])));}[_0x1f39bc(0x170)](){const _0xef81f=_0x1f39bc;[lr][_0xef81f(0x248)](_0x401774=>{const _0x38efa2=_0xef81f;this[_0x38efa2(0x292)]['registerShortcut'](_0x401774);});}[_0x1f39bc(0x2db)](){const _0x5dfad7=_0x1f39bc;this['_menuManagerService'][_0x5dfad7(0x185)](Mn);}[_0x1f39bc(0x83)](){const _0x942e7c=_0x1f39bc;this[_0x942e7c(0xa5)](this[_0x942e7c(0x281)][_0x942e7c(0x1f7)][_0x942e7c(0x256)](_0x1aa553=>{const _0x2fc862=_0x942e7c;_0x1aa553&&this[_0x2fc862(0x25c)][_0x2fc862(0x88)]();}));}['_print'](){const _0x26e549=_0x1f39bc;let _0xf88d41=this[_0x26e549(0x25c)][_0x26e549(0x1a9)],_0x4d7812=this['_sheetPrintManagerService']['renderConfig'];return this[_0x26e549(0xd6)]['print'](_0xf88d41,_0x4d7812);}[_0x1f39bc(0xb5)](){const _0x5d425d=_0x1f39bc;this[_0x5d425d(0xa5)](this[_0x5d425d(0xf2)]['onCommandExecuted'](_0x5a8208=>{const _0x3f0a89=_0x5d425d;_0x5a8208['id']===Z['id']&&this[_0x3f0a89(0x2fe)]();}));}[_0x1f39bc(0x2ff)](){const _0x217cfe=_0x1f39bc;let _0xbefe9f=this[_0x217cfe(0x177)][_0x217cfe(0x2a3)](Sn);this[_0x217cfe(0xa5)](_0xbefe9f['visible$']['subscribe'](()=>{const _0x4bc9b0=_0x217cfe;let _0x30cb92=this[_0x4bc9b0(0x193)][_0x4bc9b0(0x287)](0x2);if(_0x30cb92){let _0x532ed3=_0x30cb92['getUnitId'](),_0x560d5f=this[_0x4bc9b0(0x289)][_0x4bc9b0(0x2e8)](_0x532ed3);if(_0x560d5f){var _0x3943d0;(_0x3943d0=_0x560d5f['mainComponent'])==null||_0x3943d0[_0x4bc9b0(0x1b8)]();}}})),this[_0x217cfe(0xa5)](this[_0x217cfe(0x25c)][_0x217cfe(0x2c7)][_0x217cfe(0x256)](()=>{const _0x28657f=_0x217cfe;if(!_0xbefe9f[_0x28657f(0x138)])return;this[_0x28657f(0x25c)][_0x28657f(0x88)]();let _0x13c278=this[_0x28657f(0x193)][_0x28657f(0x287)](0x2);if(_0x13c278){let _0x465fb7=_0x13c278['getUnitId'](),_0x4be5e6=this['_renderManagerService'][_0x28657f(0x2e8)](_0x465fb7);if(_0x4be5e6){var _0x35ef46;(_0x35ef46=_0x4be5e6[_0x28657f(0x2e6)])==null||_0x35ef46[_0x28657f(0x1b8)]();}}})),this[_0x217cfe(0xa5)](this[_0x217cfe(0xf2)][_0x217cfe(0xb8)](_0x5be3f6=>{const _0x1aa271=_0x217cfe;if(!_0xbefe9f[_0x1aa271(0x138)]||[X['id'],ln['id'],Z['id'],un['id'],Tn['id'],En['id']]['includes'](_0x5be3f6['id']))return;this[_0x1aa271(0x25c)][_0x1aa271(0x88)]();let _0x48a4eb=this[_0x1aa271(0x193)][_0x1aa271(0x287)](0x2);if(_0x48a4eb){let _0x4ae2ff=_0x48a4eb[_0x1aa271(0x91)](),_0x59b498=this[_0x1aa271(0x289)][_0x1aa271(0x2e8)](_0x4ae2ff);if(_0x59b498){var _0x5ea4e4;(_0x5ea4e4=_0x59b498[_0x1aa271(0x2e6)])==null||_0x5ea4e4['makeDirty']();}}}));}};ur=J([q(0x0,K),q(0x1,_0x21a0f4),q(0x2,Y),q(0x3,_0x12a925($)),q(0x4,_0x5d84aa),q(0x5,_0x5726ef),q(0x6,_0x12a925(_0x37f97a)),q(0x7,_0x3226eb),q(0x8,_0x2eec27),q(0x9,_0x5e1a90)],ur);let dr=class extends _0x15c1ed{constructor(_0x538271=Ln,_0x6426e1,_0x4f7f50,_0x3ce18a){const _0xf485b6=_0x1f39bc;super(),this[_0xf485b6(0x1c0)]=_0x538271,this[_0xf485b6(0x177)]=_0x6426e1,this[_0xf485b6(0x290)]=_0x4f7f50,this[_0xf485b6(0x289)]=_0x3ce18a;let {menu:_0x61190,..._0x44e5aa}=_0x5114e8({},Ln,this[_0xf485b6(0x1c0)]);_0x61190&&this[_0xf485b6(0x290)][_0xf485b6(0x2a9)]('menu',_0x61190,{'merge':!0x0}),this[_0xf485b6(0x290)]['setConfig'](In,_0x44e5aa);}[_0x1f39bc(0x2bd)](){const _0x14a104=_0x1f39bc;this[_0x14a104(0x177)]['has'](_0x8e087f)||this[_0x14a104(0x177)]['add']([_0x8e087f,{'useClass':_0x37e95c}]),_0x3a2b96(this[_0x14a104(0x177)],[[Y,{'useClass':an}],[K,{'useClass':Yt}],[Sn,{'useClass':Cn}],[$],[Zn],[ur]]),this[_0x14a104(0xa5)](this[_0x14a104(0x289)]['registerRenderModule'](_0x4c551a['UNIVER_SHEET'],[er])),_0x3541c7(this['_injector'],[[Zn],[ur]]);}};G(dr,'pluginName',Fn),G(dr,_0x1f39bc(0x188),Nn),G(dr,'version',Pn),G(dr,'type',_0x4c551a[_0x1f39bc(0x2b6)]),dr=J([_0x17be11(_0x31e9aa,_0x1a4144,_0x379f28,_0x3d2bc6),q(0x1,_0x12a925(_0x37f97a)),q(0x2,_0x97645),q(0x3,_0x2eec27)],dr);export{ln as CancelSheetPrintOperation,Z as ConfirmSheetPrintOperation,Y as ISheetPrintManagerService,Xt as PrintArea,Qt as PrintFreeze,Zt as PrintHeaderFooter,$t as PrintHeaderFooterSymbol,_n as SheetPrintCanvasView,$ as SheetPrintClientService,X as SheetPrintOpenOperation,xn as SheetScreenShotOperation,Mn as SheetsPrintMenuSchema,Yn as UniverSheetsPrintMobileUIPlugin,dr as UniverSheetsPrintPlugin,en as defaultHeaderFooter,cn as hasPrintFacadePermission};
|
|
1
|
+
const _0x48476b=_0x4150;(function(_0x3bfb3b,_0x33e160){const _0x4918a4=_0x4150,_0x3d64fe=_0x3bfb3b();while(!![]){try{const _0x5454aa=-parseInt(_0x4918a4(0x164))/0x1*(-parseInt(_0x4918a4(0x1af))/0x2)+parseInt(_0x4918a4(0x294))/0x3+-parseInt(_0x4918a4(0x2e2))/0x4*(parseInt(_0x4918a4(0x149))/0x5)+-parseInt(_0x4918a4(0x173))/0x6+-parseInt(_0x4918a4(0x1a0))/0x7+parseInt(_0x4918a4(0x29c))/0x8+parseInt(_0x4918a4(0x138))/0x9*(parseInt(_0x4918a4(0xf3))/0xa);if(_0x5454aa===_0x33e160)break;else _0x3d64fe['push'](_0x3d64fe['shift']());}catch(_0x3f58a9){_0x3d64fe['push'](_0x3d64fe['shift']());}}}(_0x464b,0xb5184));import{LS_CONFIG_KEY as _0x1378c3,ReleaseType as _0x440e46,UniverLicensePlugin as _0x4373b3,getLicenseInfo as _0x40f41b,getSheetFeatureLimit as _0x578b29,isFeatureAuthorizedWithinTime as _0x45fe29,isLocalCheck as _0x40e463}from'@univerjs-pro/license';import{IPrintPreparationService as _0x127df1,PRINT_CANVAS_CLASS as _0x44824a,PRINT_CONTAINER_CLASS as _0x5affe0,PaperMarginMap as _0x2b0a81,PrintAlign as _0x52f62b,PrintDirection as _0x20bf8b,PrintPaperMargin as _0x55ad96,PrintPreparationService as _0x5ea27c,PrintScale as _0x341f77,createPrintStyle as _0x5496c9}from'@univerjs-pro/print';import{BuildTextUtils as _0x5cc5a9,CommandType as _0x5bd6d1,CustomRangeType as _0x2b5c7e,DependentOn as _0x54b76b,Disposable as _0x5117f5,DisposableCollection as _0x597c53,ICommandService as _0xbc3d2e,IConfigService as _0x3c85d4,ILocalStorageService as _0x39abdb,ILogService as _0x10cbcc,IPermissionService as _0x5c10cc,IUniverInstanceService as _0x1af74b,Inject as _0x2fba99,Injector as _0x545b18,JSONX as _0x5bb682,LocaleService as _0x5bfbd3,PAGE_SIZE as _0x2bdc36,PaperType as _0x458dd5,Plugin as _0x24bd44,Quantity as _0x45cf88,RichTextBuilder as _0x2ad314,Tools as _0x4242b7,UniverInstanceType as _0x372cab,UserManagerService as _0x572dad,awaitTime as _0x3cf9f1,createIdentifier as _0x441567,dateKit as _0x577933,generateRandomId as _0x5302a1,merge as _0x472b0d,registerDependencies as _0x1b6df5,touchDependencies as _0x467a27}from'@univerjs/core';import{RangeProtectionPermissionViewPoint as _0x479bb8,SheetsSelectionsService as _0x5c53c9,UniverSheetsPlugin as _0xb63c0e,WorkbookCopyPermission as _0x4e4ab9,WorkbookPrintPermission as _0x23050b,WorkbookViewPermission as _0x5f4b93,WorksheetCopyPermission as _0x552100,WorksheetViewPermission as _0x27f4ff,getSheetCommandTarget as _0xcb4cfc}from'@univerjs/sheets';import{BuiltInUIPart as _0x3713f9,ComponentManager as _0x342b5b,ContextMenuGroup as _0x173a91,ContextMenuPosition as _0x5b67e4,IDialogService as _0x559567,IMenuManagerService as _0x261ffc,IMessageService as _0x929bb8,IShortcutService as _0x1709bc,ISidebarService as _0x5dcff3,IUIPartsService as _0x1ba163,IconManager as _0x5d9a61,KeyCode as _0x757ffe,MenuItemType as _0x4bbcb6,MetaKeys as _0x6cec8c,RibbonStartGroup as _0x27b487,UniverMobileUIPlugin as _0x329f43,connectInjector as _0x496a9b,getMenuHiddenObservable as _0x44b85e,useDependency as _0xf06a64,useEvent as _0x106493,useObservable as _0x3c9101,useVirtualList as _0x3820f9}from'@univerjs/ui';import{BehaviorSubject as _0xede9d0,debounceTime as _0x2e75b4}from'rxjs';import{CanvasRenderMode as _0x5b8646,DEFAULT_FONTFACE_PLANE as _0x418563,Engine as _0x13a79e,IRenderManagerService as _0x509807,IWatermarkTypeEnum as _0x358712,SHEET_VIEWPORT_KEY as _0x3cb47c,Scene as _0x2bd60b,SheetExtension as _0x5eb69c,Spreadsheet as _0x58ad21,SpreadsheetColumnHeader as _0x13f424,SpreadsheetRowHeader as _0x165811,UNIVER_WATERMARK_STORAGE_KEY as _0x4588ab,UniverRenderEnginePlugin as _0x128d64,Viewport as _0x1c3be4,fixLineWidthByScale as _0x27cb97,renderWatermark as _0x26d849}from'@univerjs/engine-render';import{SheetPrintInterceptorService as _0x28f7d8,SheetPrintingResourceCollector as _0x1ef928,SheetSkeletonManagerService as _0x50ffa5,UniverSheetsMobileUIPlugin as _0x164d6a,UniverSheetsUIPlugin as _0x2a99c0,getCurrentRangeDisable$ as _0x2b1a51,whenSheetEditorFocused as _0x15551e}from'@univerjs/sheets-ui';import{Button as _0x5c88b2,Checkbox as _0x13d237,CheckboxGroup as _0x35748f,Dropdown as _0x50e376,FormLayout as _0x322ec5,Input as _0x4ff3c3,MessageType as _0x48d934,MobileDialog as _0x4d676c,MobileDropdown as _0x3c1d17,MobileSelect as _0x51a5da,Radio as _0x33e82b,RadioGroup as _0x5aad88,Select as _0xffaa06,borderBottomClassName as _0x291622,borderClassName as _0x48b45b,borderTopClassName as _0x13bd0c,clsx as _0x129659,scrollbarClassName as _0x1a8f1b}from'@univerjs/design';import{CalendarIcon as _0x1a06d3,ClockIcon as _0x4d2b96,DocSettingIcon as _0x260172,IncreaseIcon as _0x115d20,LoadingMultiIcon as _0x4dc983,MoreDownIcon as _0x4eeedc,PrintIcon as _0x2bce31,ReduceIcon as _0x1c9c94,SheetIcon as _0x4cc70d,TextIcon as _0x472d25}from'@univerjs/icons';import{forwardRef as _0x5a9dbd,memo as _0x1112c2,useEffect as _0x1e7a81,useMemo as _0x447bff,useRef as _0x51972e,useState as _0x2f3fde}from'react';import{jsx as _0x347b1f,jsxs as _0x446e09}from'react/jsx-runtime';import{RichTextEditingMutation as _0x33df4c}from'@univerjs/docs';import{IEditorService as _0x4ac007,RichTextEditor as _0x5db417}from'@univerjs/docs-ui';const Wt=Number[_0x48476b(0x31e)](0x6abb7c7e),Gt=_0x48476b(0x13e);function Kt(_0x5dbad0){'@babel/helpers - typeof';const _0x479dc1=_0x48476b;return Kt=typeof Symbol==_0x479dc1(0x2fd)&&typeof Symbol['iterator']==_0x479dc1(0x148)?function(_0xd9f7d4){return typeof _0xd9f7d4;}:function(_0x43c0ab){const _0x7b44dc=_0x479dc1;return _0x43c0ab&&typeof Symbol==_0x7b44dc(0x2fd)&&_0x43c0ab[_0x7b44dc(0x119)]===Symbol&&_0x43c0ab!==Symbol['prototype']?_0x7b44dc(0x148):typeof _0x43c0ab;},Kt(_0x5dbad0);}function qt(_0x589965,_0x37f2e3){const _0x11782d=_0x48476b;if(Kt(_0x589965)!=_0x11782d(0x188)||!_0x589965)return _0x589965;var _0x5e8873=_0x589965[Symbol[_0x11782d(0x1ae)]];if(_0x5e8873!==void 0x0){var _0x4059d4=_0x5e8873[_0x11782d(0x349)](_0x589965,_0x37f2e3||_0x11782d(0x249));if(Kt(_0x4059d4)!=_0x11782d(0x188))return _0x4059d4;throw TypeError(_0x11782d(0x1bb));}return(_0x37f2e3===_0x11782d(0x1eb)?String:Number)(_0x589965);}function Jt(_0x46a55b){const _0x433777=_0x48476b;var _0x3cfc0a=qt(_0x46a55b,_0x433777(0x1eb));return Kt(_0x3cfc0a)==_0x433777(0x148)?_0x3cfc0a:_0x3cfc0a+'';}function G(_0x472c56,_0x4e6234,_0x4d73ee){const _0x467432=_0x48476b;return(_0x4e6234=Jt(_0x4e6234))in _0x472c56?Object[_0x467432(0x2ff)](_0x472c56,_0x4e6234,{'value':_0x4d73ee,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x472c56[_0x4e6234]=_0x4d73ee,_0x472c56;}const K=_0x441567('univer-pro.sheet-print-dialog.service');var Yt=class extends _0x5117f5{constructor(..._0x135473){const _0x45a1e3=_0x48476b;super(..._0x135473),G(this,_0x45a1e3(0x288),new _0xede9d0(!0x1)),G(this,_0x45a1e3(0x267),new _0xede9d0(!0x1));}get[_0x48476b(0x168)](){const _0x20670f=_0x48476b;return this['visible$'][_0x20670f(0x112)]();}get[_0x48476b(0x2b7)](){const _0x3526f5=_0x48476b;return this[_0x3526f5(0x267)][_0x3526f5(0x112)]();}[_0x48476b(0x152)](){const _0x544021=_0x48476b;this[_0x544021(0x288)]['next'](!0x0);}['close'](){const _0x19b3e9=_0x48476b;this[_0x19b3e9(0x288)][_0x19b3e9(0x2a2)](!0x1);}[_0x48476b(0x340)](_0x59b72d){const _0x6b65a4=_0x48476b;this['preparing$'][_0x6b65a4(0x2a2)](_0x59b72d);}[_0x48476b(0x279)](){const _0x4148ef=_0x48476b;this[_0x4148ef(0x288)][_0x4148ef(0x11c)](),this[_0x4148ef(0x267)][_0x4148ef(0x11c)](),super[_0x4148ef(0x279)]();}};let Xt=function(_0x19ab22){const _0x1fc3b8=_0x48476b;return _0x19ab22[_0x1fc3b8(0x2bd)]=_0x1fc3b8(0x2bd),_0x19ab22[_0x1fc3b8(0x195)]=_0x1fc3b8(0x31a),_0x19ab22[_0x1fc3b8(0x34f)]='CurrentSelection',_0x19ab22[_0x1fc3b8(0xf1)]=_0x1fc3b8(0xf1),_0x19ab22;}({}),Zt=function(_0x239f39){const _0x4fb071=_0x48476b;return _0x239f39[_0x4fb071(0x2d2)]=_0x4fb071(0x2d2),_0x239f39['WorkbookTitle']=_0x4fb071(0x255),_0x239f39['WorksheetTitle']=_0x4fb071(0x232),_0x239f39[_0x4fb071(0x317)]=_0x4fb071(0x317),_0x239f39[_0x4fb071(0x20b)]=_0x4fb071(0x20b),_0x239f39;}({}),Qt=function(_0x27cb1c){const _0x511ec0=_0x48476b;return _0x27cb1c[_0x511ec0(0x203)]=_0x511ec0(0x203),_0x27cb1c[_0x511ec0(0x2e8)]=_0x511ec0(0x2e8),_0x27cb1c;}({}),$t=function(_0x1192d3){const _0x13ef65=_0x48476b;return _0x1192d3[_0x13ef65(0x255)]='@WorkbookTitle',_0x1192d3['WorksheetTitle']=_0x13ef65(0x256),_0x1192d3[_0x13ef65(0x1bc)]='@DateA',_0x1192d3['DateB']='@DateB',_0x1192d3[_0x13ef65(0x273)]=_0x13ef65(0x111),_0x1192d3[_0x13ef65(0xfa)]=_0x13ef65(0x211),_0x1192d3[_0x13ef65(0x103)]='@DateE',_0x1192d3[_0x13ef65(0x151)]='@TimeA',_0x1192d3[_0x13ef65(0x2c1)]=_0x13ef65(0x1c4),_0x1192d3['TimeC']='@TimeC',_0x1192d3[_0x13ef65(0x1d2)]=_0x13ef65(0x2f0),_0x1192d3[_0x13ef65(0x132)]=_0x13ef65(0x29e),_0x1192d3[_0x13ef65(0x117)]=_0x13ef65(0x213),_0x1192d3['PageTotal']=_0x13ef65(0x183),_0x1192d3[_0x13ef65(0x19d)]=_0x13ef65(0x2b3),_0x1192d3;}({});const en={'topLeft':'','topCenter':'','topRight':'','bottomLeft':'','bottomCenter':'','bottomRight':''};function q(_0xb17409,_0xda0a4c){return function(_0x224833,_0x271be4){_0xda0a4c(_0x224833,_0x271be4,_0xb17409);};}function J(_0x43a6c8,_0x404bd4,_0x1931da,_0x4bc59a){const _0x11b465=_0x48476b;var _0x42b055=arguments[_0x11b465(0x118)],_0x554ac0=_0x42b055<0x3?_0x404bd4:_0x4bc59a===null?_0x4bc59a=Object['getOwnPropertyDescriptor'](_0x404bd4,_0x1931da):_0x4bc59a,_0x227454;if(typeof Reflect==_0x11b465(0x188)&&typeof Reflect[_0x11b465(0x1c2)]==_0x11b465(0x2fd))_0x554ac0=Reflect['decorate'](_0x43a6c8,_0x404bd4,_0x1931da,_0x4bc59a);else{for(var _0xc1e05c=_0x43a6c8[_0x11b465(0x118)]-0x1;_0xc1e05c>=0x0;_0xc1e05c--)(_0x227454=_0x43a6c8[_0xc1e05c])&&(_0x554ac0=(_0x42b055<0x3?_0x227454(_0x554ac0):_0x42b055>0x3?_0x227454(_0x404bd4,_0x1931da,_0x554ac0):_0x227454(_0x404bd4,_0x1931da))||_0x554ac0);}return _0x42b055>0x3&&_0x554ac0&&Object[_0x11b465(0x2ff)](_0x404bd4,_0x1931da,_0x554ac0),_0x554ac0;}const Y=_0x441567(_0x48476b(0x19a)),tn=_0x3cf4c3=>Math['floor'](_0x3cf4c3*0x64)/0x64,nn={'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},rn={'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0};let an=class{constructor(_0x550dca,_0x39de4e,_0xfcb60b,_0x3d2ade){const _0x2ed607=_0x48476b;this[_0x2ed607(0x10b)]=_0x550dca,this[_0x2ed607(0x146)]=_0x39de4e,this[_0x2ed607(0x1c6)]=_0xfcb60b,this['_renderManagerService']=_0x3d2ade,G(this,'_layoutConfig',{'area':_0x2ed607(0x2bd),'subUnitIds':[],'paperSize':_0x458dd5['A4'],'direction':_0x20bf8b['Portrait'],'scale':_0x341f77[_0x2ed607(0x11e)],'customScale':0x1,'freeze':[_0x2ed607(0x203),_0x2ed607(0x2e8)],'margin':_0x55ad96['Normal'],'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0,'marginCustom':{'top':0x0,'bottom':0x0,'left':0x0,'right':0x0}}),G(this,_0x2ed607(0x15e),{'gridlines':!0x0,'hAlign':_0x52f62b['Middle'],'vAlign':_0x52f62b[_0x2ed607(0x1a9)],'headerFooter':[],'headerFooterSetting':en,'isCustomHeaderFooter':!0x1}),G(this,_0x2ed607(0x20f),[]),G(this,'_layoutInfos$',new _0xede9d0(this[_0x2ed607(0x20f)])),G(this,'_layoutConfig$',new _0xede9d0(this[_0x2ed607(0x162)])),G(this,'_renderConfig$',new _0xede9d0(this[_0x2ed607(0x15e)])),G(this,_0x2ed607(0x18e),null),G(this,_0x2ed607(0x1e5),this[_0x2ed607(0x282)][_0x2ed607(0x275)]()),G(this,_0x2ed607(0x29a),this[_0x2ed607(0x35e)][_0x2ed607(0x275)]()),G(this,_0x2ed607(0x263),this['_layoutInfos$']['asObservable']()[_0x2ed607(0x243)](_0x2e75b4(0x12c)));}get[_0x48476b(0x22a)](){const _0x3b6b4f=_0x48476b;return this[_0x3b6b4f(0x20f)];}get['renderConfig'](){const _0x2bb516=_0x48476b;return this[_0x2bb516(0x15e)];}get[_0x48476b(0x2ca)](){const _0x3fd0cc=_0x48476b;return this[_0x3fd0cc(0x162)];}get[_0x48476b(0x2d9)](){const _0x14306d=_0x48476b;let {paperSize:_0x543372,direction:_0x11db53,pageSizeCustom:_0x443ac3}=this[_0x14306d(0x162)];if(_0x443ac3)return _0x443ac3;let _0x5c98a2=_0x2bdc36[_0x543372];return _0x11db53===_0x20bf8b[_0x14306d(0x19e)]?{'w':_0x5c98a2[_0x14306d(0x1da)],'h':_0x5c98a2[_0x14306d(0x28e)]}:{'w':_0x5c98a2[_0x14306d(0x28e)],'h':_0x5c98a2[_0x14306d(0x1da)]};}get[_0x48476b(0x1d5)](){const _0x5e388b=_0x48476b;return this['_layoutConfig'][_0x5e388b(0xff)]===_0x55ad96[_0x5e388b(0xe0)]?this[_0x5e388b(0x162)]['marginCustom']:_0x2b0a81[this['_layoutConfig'][_0x5e388b(0xff)]];}['updateLayoutConfig'](_0x1bca74){const _0x372e91=_0x48476b;this['_layoutConfig']={...this[_0x372e91(0x162)],..._0x1bca74},this['_layoutConfig$'][_0x372e91(0x2a2)](this[_0x372e91(0x162)]),this[_0x372e91(0x191)]();}[_0x48476b(0x1b6)](_0x427b56){const _0x2fe59d=_0x48476b;this[_0x2fe59d(0x162)]=_0x427b56,this[_0x2fe59d(0x282)][_0x2fe59d(0x2a2)](this[_0x2fe59d(0x162)]),this[_0x2fe59d(0x191)]();}[_0x48476b(0x224)](_0x22d375){const _0x585873=_0x48476b;this[_0x585873(0x15e)]={...this['_renderConfig'],..._0x22d375},this[_0x585873(0x35e)][_0x585873(0x2a2)](this[_0x585873(0x15e)]);}['replaceRenderConfig'](_0xa0483d){const _0xbeee4f=_0x48476b;this[_0xbeee4f(0x15e)]=_0xa0483d,this[_0xbeee4f(0x35e)]['next'](this[_0xbeee4f(0x15e)]);}[_0x48476b(0x191)](){const _0x3d4f1c=_0x48476b;this[_0x3d4f1c(0x20f)]=this['_calculate'](),this[_0x3d4f1c(0x14a)][_0x3d4f1c(0x2a2)](this['_layoutInfos']);}['reset'](){const _0x58750d=_0x48476b;this[_0x58750d(0x20f)]=[],this[_0x58750d(0x14a)][_0x58750d(0x2a2)](this[_0x58750d(0x20f)]),this[_0x58750d(0x162)]={...this[_0x58750d(0x162)],'area':_0x58750d(0x2bd),'maxRowsEachPage':0x1/0x0,'maxColumnsEachPage':0x1/0x0},this[_0x58750d(0x282)][_0x58750d(0x2a2)](this[_0x58750d(0x162)]);}[_0x48476b(0xea)](_0x378082){const _0x7816f8=_0x48476b;var _0x3503b5;(_0x3503b5=this[_0x7816f8(0x18e)])==null||_0x3503b5[_0x7816f8(0x279)](),this[_0x7816f8(0x18e)]=_0x378082;}[_0x48476b(0x206)](){const _0x3dea64=_0x48476b;var _0x527712;(_0x527712=this['_printViewDisposable'])==null||_0x527712[_0x3dea64(0x279)](),this['_printViewDisposable']=null;}[_0x48476b(0x322)](){const _0x1e1a16=_0x48476b;let _0x34f4c5=this[_0x1e1a16(0x11b)](),_0x831e10=[];return _0x34f4c5['forEach'](_0x8dd7e2=>{const _0x1500be=_0x1e1a16;if(_0x8dd7e2){let _0x463a4c=this[_0x1500be(0x1fb)](_0x8dd7e2);_0x463a4c&&_0x831e10[_0x1500be(0x10d)](_0x463a4c);}}),_0x831e10;}[_0x48476b(0x315)](_0x45384e,_0x30c692,_0x3810af){const _0x2660d3=_0x48476b;var _0x6b82d0;let _0x22363b=this['_univerInstanceService'][_0x2660d3(0x2d5)](_0x372cab[_0x2660d3(0x26c)])[_0x2660d3(0x166)](_0x30c692);if(!_0x22363b)return;let _0x21c41c=_0x22363b[_0x2660d3(0x2d8)](),_0x386155=_0x3810af??_0x22363b[_0x2660d3(0x342)](),_0x29f54a=(_0x6b82d0=this[_0x2660d3(0x18f)][_0x2660d3(0x147)](_0x45384e))==null?void 0x0:_0x6b82d0['with'](_0x50ffa5)['ensureSkeleton'](_0x30c692);if(!_0x29f54a)return;if(_0x386155){var _0x5f0d98;_0x29f54a==null||(_0x5f0d98=_0x29f54a[_0x2660d3(0x2c9)])==null||_0x5f0d98[_0x2660d3(0x246)]((_0x45ef67,_0x5902b1,_0x5bdf59)=>{const _0x2eaabd=_0x2660d3;let {endColumn:_0x5464a5}=_0x5bdf59;_0x5464a5>_0x386155[_0x2eaabd(0x2f1)]&&(_0x386155[_0x2eaabd(0x2f1)]=_0x5464a5);});}let _0x3890ac=this['_sheetPrintInterceptorService'][_0x2660d3(0x34e)][_0x2660d3(0x126)](this['_sheetPrintInterceptorService'][_0x2660d3(0x34e)][_0x2660d3(0x1e1)]()[_0x2660d3(0x2f6)])(_0x386155,{'unitId':_0x45384e,'subUnitId':_0x30c692});return _0x3890ac?this[_0x2660d3(0x324)](_0x30c692,{..._0x3890ac,'startColumn':Math[_0x2660d3(0x30c)](_0x21c41c[_0x2660d3(0x18d)]-_0x21c41c['xSplit'],0x0),'startRow':Math[_0x2660d3(0x30c)](_0x21c41c[_0x2660d3(0x358)]-_0x21c41c[_0x2660d3(0x239)],0x0)}):null;}[_0x48476b(0xe3)](_0x369f0e,_0xb40a32){const _0x190733=_0x48476b;let _0x4acca2=this['_sheetsSelectionsSrv'][_0x190733(0x227)](_0x369f0e)[_0x190733(0x1f7)](_0xb40a32);return _0x4acca2?_0x4acca2[_0x190733(0x1c9)](_0x3b9975=>this[_0x190733(0x324)](_0xb40a32,_0x3b9975[_0x190733(0x1ab)])):[];}[_0x48476b(0x324)](_0x38f3cb,_0x14e70c){const _0x4f7c71=_0x48476b;let _0x7db297=this[_0x4f7c71(0x10b)][_0x4f7c71(0x2d5)](_0x372cab[_0x4f7c71(0x26c)]),_0x2660d8=_0x7db297[_0x4f7c71(0x166)](_0x38f3cb),_0x4ef374=this[_0x4f7c71(0x162)],_0x20780f=_0x7db297['getUnitId'](),_0x288d05=this[_0x4f7c71(0x2d9)],{top:_0x13d964,right:_0x120d72,bottom:_0xcffec5,left:_0x5c7900}=this['paperMargin'];_0x288d05['h']-=_0x13d964+_0xcffec5,_0x288d05['w']-=_0x5c7900+_0x120d72;let _0x18f58b=this[_0x4f7c71(0x18f)][_0x4f7c71(0x147)](_0x20780f)[_0x4f7c71(0xde)](_0x50ffa5);if(_0x14e70c[_0x4f7c71(0x358)]>-0x1&&_0x14e70c[_0x4f7c71(0x18d)]>-0x1){let _0x5832b3=_0x18f58b['ensureSkeleton'](_0x38f3cb);if(!_0x2660d8||!_0x5832b3)return null;let _0x10ed53=_0x14e70c[_0x4f7c71(0x358)],_0x121264=_0x14e70c[_0x4f7c71(0x2ce)],_0x21a330=_0x14e70c[_0x4f7c71(0x18d)],_0x74492c=_0x14e70c[_0x4f7c71(0x2f1)],_0x413bb3=_0x2660d8[_0x4f7c71(0x2d8)](),_0x17b719=tn(this[_0x4f7c71(0x30d)](_0x5832b3,_0x14e70c,_0x413bb3)),_0x359e4b=-0x1,_0x4f3caf=0x0,_0xfe697f=-0x1,_0x19b075=0x0,_0x25fdd8=_0x5832b3[_0x4f7c71(0x2da)],_0x157013=_0x5832b3[_0x4f7c71(0x29b)];if(_0x413bb3[_0x4f7c71(0x1ac)]&&_0x4ef374[_0x4f7c71(0x1b4)][_0x4f7c71(0x287)](_0x4f7c71(0x2e8))){if(_0x74492c>=_0x413bb3[_0x4f7c71(0x18d)]){let _0x30e644=_0x17b719*(_0x25fdd8[_0x413bb3[_0x4f7c71(0x18d)]-0x1]-(_0x25fdd8[_0x413bb3[_0x4f7c71(0x18d)]-_0x413bb3['xSplit']-0x1]||0x0));_0x30e644<_0x288d05['w']&&(_0xfe697f=_0x413bb3[_0x4f7c71(0x18d)],_0x19b075=_0x413bb3[_0x4f7c71(0x1ac)],_0x288d05['w']-=_0x30e644);}else{let _0x2f9488=_0x74492c+0x1,_0x5b5587=_0x74492c+0x1-(_0x413bb3[_0x4f7c71(0x18d)]-_0x413bb3[_0x4f7c71(0x1ac)]),_0x56d7d8=_0x17b719*(_0x25fdd8[_0xfe697f-0x1]-(_0x25fdd8[_0xfe697f-_0x19b075]-0x1||0x0));_0x56d7d8<_0x288d05['w']&&(_0xfe697f=_0x2f9488,_0x19b075=_0x5b5587,_0x288d05['w']-=_0x56d7d8);}}if(_0x21a330=Math[_0x4f7c71(0x30c)](_0xfe697f,_0x21a330),_0x413bb3[_0x4f7c71(0x239)]&&_0x4ef374[_0x4f7c71(0x1b4)][_0x4f7c71(0x287)](_0x4f7c71(0x203))){if(_0x121264>=_0x413bb3[_0x4f7c71(0x358)]){let _0x5527df=_0x157013[_0x413bb3[_0x4f7c71(0x358)]]-_0x157013[_0x413bb3[_0x4f7c71(0x358)]-_0x413bb3[_0x4f7c71(0x239)]];_0x5527df<_0x288d05['h']&&(_0x359e4b=_0x413bb3[_0x4f7c71(0x358)],_0x4f3caf=_0x413bb3[_0x4f7c71(0x239)],_0x288d05['h']-=_0x5527df);}else _0x359e4b=_0x121264+0x1,_0x4f3caf=_0x121264+0x1-(_0x413bb3[_0x4f7c71(0x358)]-_0x413bb3[_0x4f7c71(0x239)]),_0x288d05['h']=_0x288d05['h']-_0x157013[_0x359e4b]-_0x157013[_0x359e4b-_0x4f3caf];}return _0x10ed53=Math[_0x4f7c71(0x30c)](_0x359e4b,_0x10ed53),{'unitId':_0x20780f,'subUnitId':_0x38f3cb,'range':{'startRow':_0x10ed53,'endRow':_0x121264,'startColumn':_0x21a330,'endColumn':_0x74492c},'freeze':{'startRow':_0x359e4b,'startColumn':_0xfe697f,'xSplit':_0x19b075,'ySplit':_0x4f3caf},'contentSize':_0x288d05,'scale':_0x17b719};}return{'unitId':_0x20780f,'subUnitId':_0x38f3cb,'range':nn,'freeze':rn,'contentSize':_0x288d05,'scale':0x1};}[_0x48476b(0x30d)](_0x377c32,_0x524075,_0x3279b3){const _0x407a05=_0x48476b;let _0x4619c4=_0x377c32['columnWidthAccumulation'],_0x5800d3=_0x377c32[_0x407a05(0x29b)],{xSplit:_0x233739,ySplit:_0x58fddb,startColumn:_0x5750da,startRow:_0x14d8d0}=_0x3279b3,{startRow:_0x336ffa,startColumn:_0x58f3a7}=_0x524075,{endColumn:_0x2d0ba2,endRow:_0x1bd004}=_0x524075;_0x336ffa=_0x1bd004<_0x14d8d0?_0x336ffa:Math['max'](_0x14d8d0,_0x336ffa),_0x58f3a7=_0x2d0ba2<_0x5750da?_0x58f3a7:Math[_0x407a05(0x30c)](_0x5750da,_0x58f3a7);let {scale:_0xd5af3c,customScale:_0xa91ac1}=this[_0x407a05(0x162)],_0x42565e=this[_0x407a05(0x2d9)],_0x4163d2=this[_0x407a05(0x1d5)],_0x233d8b=_0x233739>0x0?(_0x4619c4[_0x5750da-0x1]||0x0)-(_0x4619c4[_0x5750da-_0x233739-0x1]||0x0):0x0,_0x1e0ce8=_0x58fddb>0x0?(_0x5800d3[_0x14d8d0-0x1]||0x0)-(_0x5800d3[_0x14d8d0-_0x58fddb-0x1]||0x0):0x0,_0x564b83=_0x5800d3[_0x1bd004]-(_0x5800d3[_0x336ffa-0x1]||0x0),_0x43355e=_0x4619c4[_0x2d0ba2]-(_0x4619c4[_0x58f3a7-0x1]||0x0),_0x347dd5=_0x564b83+_0x1e0ce8,_0x57de93=_0x43355e+_0x233d8b;switch(_0xd5af3c){case _0x341f77['Custom']:return _0xa91ac1;case _0x341f77[_0x407a05(0x2b0)]:return Math[_0x407a05(0x28f)](0x1,(_0x42565e['w']-_0x4163d2[_0x407a05(0x11d)]-_0x4163d2[_0x407a05(0x2b9)])/_0x57de93);case _0x341f77[_0x407a05(0x24e)]:return Math['min'](0x1,(_0x42565e['h']-_0x4163d2[_0x407a05(0x1d8)]-_0x4163d2['bottom'])/_0x347dd5);case _0x341f77[_0x407a05(0x212)]:return Math[_0x407a05(0x28f)](0x1,(_0x42565e['w']-_0x4163d2[_0x407a05(0x11d)]-_0x4163d2['right'])/_0x57de93,(_0x42565e['h']-_0x4163d2[_0x407a05(0x1d8)]-_0x4163d2[_0x407a05(0x27a)])/_0x347dd5);default:return 0x1;}}[_0x48476b(0x11b)](){const _0x44705e=_0x48476b;let {area:_0x130cca,subUnitIds:_0x5ac3eb}=this[_0x44705e(0x162)],_0x211513=this[_0x44705e(0x10b)][_0x44705e(0x2d5)](_0x372cab[_0x44705e(0x26c)]),_0xb617fd=_0x211513[_0x44705e(0x298)]();switch(_0x130cca){case'CurrentSheet':{var _0x505138;let _0x10d154=(_0x505138=_0x211513['getActiveSheet']())==null?void 0x0:_0x505138[_0x44705e(0x2f3)]();if(_0x10d154!=null){let _0x983a24=this['_calculateSheetRangeById'](_0xb617fd,_0x10d154);if(_0x983a24)return[_0x983a24];let _0x540fd9=this[_0x44705e(0x10b)][_0x44705e(0x2d5)](_0x372cab[_0x44705e(0x26c)]),_0x53384a=_0x540fd9[_0x44705e(0x2d0)]();return _0x53384a?this['_calculateCurrentSelectionRange'](_0x540fd9['getUnitId'](),_0x53384a[_0x44705e(0x2f3)]()):(console['warn'](_0x44705e(0x220)),[]);}return[];}case'CurrentSelection':{let _0x401a9d=this[_0x44705e(0x10b)][_0x44705e(0x2d5)](_0x372cab[_0x44705e(0x26c)]),_0x227f41=_0x401a9d[_0x44705e(0x2d0)]();return _0x227f41?this[_0x44705e(0xe3)](_0x401a9d[_0x44705e(0x298)](),_0x227f41[_0x44705e(0x2f3)]()):(console[_0x44705e(0x31c)](_0x44705e(0x220)),[]);}case _0x44705e(0xf1):return this[_0x44705e(0x10b)][_0x44705e(0x2d5)](_0x372cab[_0x44705e(0x26c)])[_0x44705e(0x165)]()['map'](_0x1fbf82=>this[_0x44705e(0xe3)](_0xb617fd,_0x1fbf82['getSheetId']()))[_0x44705e(0xeb)]();default:return(_0x5ac3eb[_0x44705e(0x118)]?_0x5ac3eb:_0x211513[_0x44705e(0x165)]()[_0x44705e(0x251)](_0x55a083=>!_0x55a083[_0x44705e(0x169)]())['map'](_0x434cd4=>_0x434cd4[_0x44705e(0x2f3)]()))[_0x44705e(0x1c9)](_0x452ef5=>this['_calculateSheetRangeById'](_0xb617fd,typeof _0x452ef5==_0x44705e(0x1eb)?_0x452ef5:_0x452ef5['id'],typeof _0x452ef5==_0x44705e(0x1eb)?void 0x0:_0x452ef5[_0x44705e(0x1ab)]))['filter'](Boolean);}}[_0x48476b(0x1fb)](_0x37c2c0){const _0x206d99=_0x48476b;let {subUnitId:_0x59b562,range:_0x52d520,freeze:_0x31de27,unitId:_0x2ea390,scale:_0x106d78,contentSize:_0x3e158d}=_0x37c2c0,_0x3b1c61=this['_renderManagerService']['getRenderUnitById'](_0x2ea390)[_0x206d99(0xde)](_0x50ffa5)['ensureSkeleton'](_0x59b562);if(!_0x3b1c61)return;let {rowHeightAccumulation:_0x4e0441,columnWidthAccumulation:_0xeb0795}=_0x3b1c61,{w:_0xbb6023,h:_0x3af834}=_0x3e158d,{startRow:_0x4547fd,startColumn:_0xcc5f12,endColumn:_0x4600d,endRow:_0x4c8aa6}=_0x52d520,_0x127592=_0x1f4ebc=>{const _0x271dfa=_0x206d99;let _0x323a32=_0x1f4ebc,_0x55596d=this['_layoutConfig'][_0x271dfa(0x144)]<=_0x31de27[_0x271dfa(0x239)]?0x1/0x0:this[_0x271dfa(0x162)][_0x271dfa(0x144)]-0x1-_0x31de27['ySplit']+_0x1f4ebc,_0x573813=_0x1f4ebc===0x0?0x0:_0x4e0441[_0x1f4ebc-0x1];for(;_0x323a32<_0x4c8aa6;){let _0x533cb9=(_0x4e0441[_0x323a32]-_0x573813)*_0x106d78,_0x1cd308=(_0x4e0441[_0x323a32+0x1]-_0x573813)*_0x106d78;if(_0x323a32++,_0x533cb9>=_0x3af834||_0x533cb9<_0x3af834&&_0x1cd308>_0x3af834)return{'startRow':_0x1f4ebc,'endRow':Math[_0x271dfa(0x28f)](_0x323a32-0x1,_0x55596d)};}return{'startRow':_0x1f4ebc,'endRow':Math[_0x271dfa(0x28f)](_0x323a32,_0x55596d)};},_0x2ab355=_0x468052=>{const _0x44642d=_0x206d99;let _0x3f2fb3=_0x468052,_0x4c66e9=_0x468052===0x0?0x0:_0xeb0795[_0x468052-0x1],_0x12e455=this['_layoutConfig']['maxColumnsEachPage']<=_0x31de27['xSplit']?0x1/0x0:this['_layoutConfig'][_0x44642d(0x2f9)]-0x1-_0x31de27[_0x44642d(0x1ac)]+_0x468052;for(;_0x3f2fb3<_0x4600d;){let _0x3815c3=(_0xeb0795[_0x3f2fb3]-_0x4c66e9)*_0x106d78,_0x5976b5=(_0xeb0795[_0x3f2fb3+0x1]-_0x4c66e9)*_0x106d78;if(_0x3f2fb3++,_0x3815c3<_0xbb6023&&_0x5976b5>_0xbb6023||_0x3815c3>=_0xbb6023)return{'startColumn':_0x468052,'endColumn':Math['min'](_0x3f2fb3-0x1,_0x12e455)};}return{'startColumn':_0x468052,'endColumn':Math[_0x44642d(0x28f)](_0x3f2fb3,_0x12e455)};},_0x37c44c=[],_0x4207ce=_0x4547fd;for(;_0x4207ce<=_0x4c8aa6;){let _0x4b8a39=_0x127592(_0x4207ce);_0x37c44c[_0x206d99(0x10d)](_0x4b8a39),_0x4207ce=_0x4b8a39[_0x206d99(0x2ce)]+0x1;}let _0xb60e2f=[],_0x28d221=_0xcc5f12;for(;_0x28d221<=_0x4600d;){let _0x5d06bf=_0x2ab355(_0x28d221);_0xb60e2f[_0x206d99(0x10d)](_0x5d06bf),_0x28d221=_0x5d06bf['endColumn']+0x1;}let _0x92548d=[];for(let _0x629269=0x0;_0x629269<_0x37c44c['length'];_0x629269++)for(let _0x424d22=0x0;_0x424d22<_0xb60e2f['length'];_0x424d22++)_0x92548d[_0x206d99(0x10d)]({..._0x37c44c[_0x629269],..._0xb60e2f[_0x424d22]});return{'unitId':_0x2ea390,'subUnitId':_0x59b562,'pages':_0x92548d,'freeze':_0x31de27,'scale':_0x106d78,'pageSize':this[_0x206d99(0x2d9)],'margin':this[_0x206d99(0x1d5)]};}};an=J([q(0x0,_0x1af74b),q(0x1,_0x2fba99(_0x5c53c9)),q(0x2,_0x2fba99(_0x28f7d8)),q(0x3,_0x509807)],an);const on=(_0x1e0c0f,_0x43edbe)=>{const _0x315ae7=_0x48476b;if(!_0x1e0c0f||!_0x43edbe)return!0x0;let _0x35ee64=_0x40f41b(_0x1e0c0f,_0x43edbe)[_0x315ae7(0x326)],_0x45b773=_0x45fe29(_0x35ee64,'sf',Wt);return!((_0x35ee64==null?void 0x0:_0x35ee64['rt'])===_0x440e46[_0x315ae7(0x145)]&&!_0x45b773);},sn=(_0x362ab9,_0xd403a1,_0x39fb29)=>{const _0x31825f=_0x48476b;let _0x3bef88={'page':_0x362ab9,'isPro':!0x1,'timeValid':!0x1};if(!_0xd403a1||!_0x39fb29)return _0x3bef88;let _0x2fdf0d=_0x40f41b(_0xd403a1,_0x39fb29);if(_0x2fdf0d[_0x31825f(0x15f)]){let _0x2b7493=_0x2fdf0d['message'],_0x1a3347=_0x45fe29(_0x2b7493,'sf',Wt);_0x3bef88['isPro']=_0x1a3347,_0x3bef88[_0x31825f(0x297)]=_0x1a3347,_0x3bef88[_0x31825f(0x159)]=_0x578b29(_0x2b7493,_0x1a3347,_0x31825f(0x26e),_0x362ab9,_0x362ab9,0x0);}return _0x3bef88;};function cn(_0x281052){const _0x136089=_0x48476b;let {ls:_0x597ace,pbk:_0x2845af}=_0x281052['get'](_0x3c85d4)[_0x136089(0x1c3)](_0x1378c3)??{};return sn(0x3,_0x597ace,_0x2845af)['isPro'];}function _0x464b(){const _0x573233=['bottom','Image','_addViewport','getExtensionsByOrder','sheets-print.headerFooter.display.dateC','marginCustom','lineWidth','@TimeA','_layoutConfig$','getCurrentSelections','_engine','_shortcutService','_viewTop','includes','visible$','_scene','sheets-print.headerFooter.footer','topCenter','write','_initRenderer','height','min','charCodeAt','moveTo','params','sheets-print.headerFooter.display.dateD','2547537RTLYoX','sheets-print.area.currentSheet','sheets-print.headerFooter.right','timeValid','getUnitId','slice','renderConfig$','rowHeightAccumulation','11679968MGiczn','@DateB','@Page','setSelectionRanges','version','reduce','next','sheets-print.margin.left','values','Middle','makeDirty','univer-p-3','univer-p-4','sheet.menu.print','sheets-print.menu','GLOBAL','replace','updateConfig','sheets-print.scale.title','pluginName','FitWidth','getContext','_print','@TotalSheetPage','svg','stroke','sheets-print.margin.custom','preparing','univer-absolute\x20univer-left-0\x20univer-z-[1000]\x20univer-min-w-[200px]\x20univer-px-0\x20univer-py-2','right','sheets-print.margin.bottom','bottomRight','date','CurrentSheet','_isPreview','removeChild','_initCommands','TimeB','relative','sheetPageTotal','sheets-print.permission.printErr','sheets-print.align.horizontal.middle','setConfig','disposeWithMe','getUnit','overflowCache','layoutConfig','_previewScale','vertical','startIndex','endRow','univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','getActiveSheet','topRight','PageSize','_printPreparationService','sheets-print.headerFooter.timeB','getCurrentUnitOfType','sheets-print.headerFooter.date','sheets-print.screenshot.title','getFreeze','paperSize','columnWidthAccumulation','_config','OPERATION','None','key','properties','sheets-print.scale.fitHeight','univer-flex\x20univer-flex-1\x20univer-overflow-hidden','4SUGkea','getName','onbeforeprint','univer-mx-2\x20univer-my-5','sheets-print.size.b4','_renderLimitWaterMark','Column','restore','univer-absolute\x20univer-bottom-4\x20univer-right-4\x20univer-z-[1000]','split','sheets-print.headerFooter.dateE','sheets-print.headerFooter.display.pageTotal','set','renderConfig','@TimeD','endColumn','sheets-print.freeze.title','getSheetId','getData','SUBITEMS','PRINTING_RANGE','0\x200\x20','current','maxColumnsEachPage','updateLayoutConfig','sheets-print.size.letter','_effects','function','getPrecisionScale','defineProperty','replaceAll','Loading','error','startX','sheets-print.size.a5','translateWithPrecision','UNIVER_SHEET_PERMISSION_ALERT_DIALOG','vAlign','12px\x20','sheets-print.screenshot.fail','topLeft','sheets-print.margin.narrow','max','_calculatePrintScale','reset','sheets-print.area.limit','DocSettingIcon','_resourceCollector','header','_sheetPrintManagerService','dataStream','_calculateSheetRangeById','End','Date','sheets-print.headerFooter.display.timeD','addObject','Workbook','_subUnitId','warn','_watermarkConfig','parseInt','sheets-print.selection.workbookUnit','univer-space-y-2\x20univer-border-t\x20univer-pb-4','isPrinting','_calculate','sheet.operation.print-open','_calculateFinalRange','markDirty','message','clearMemory','sheets-print.size.executive','sheet.operation.print','VIEW_MAIN','MENTION','span','registerRenderModule','insertText','headerFooter','BUTTON','sheets-print.headerFooter.display.timeC','_iconManager','getRangeImage','univer-box-border\x20univer-inline-flex\x20univer-h-8\x20univer-w-full\x20univer-min-w-36\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-2.5\x20univer-text-sm\x20univer-transition-colors\x20univer-duration-200\x20hover:univer-border-primary-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','startY','sheets-print.headerFooter.display.sheetPageTotal','@[]@','sheets-print.freeze.column','__ColumnHeaderPrint__','setId','sheet.operation.confirm-print','onTransformChange$','VIEW_MAIN_LEFT','univer-flex\x20univer-cursor-pointer\x20univer-flex-row\x20univer-items-center\x20univer-justify-between\x20univer-rounded-md\x20univer-px-2\x20univer-py-1.5\x20hover:univer-rounded\x20hover:univer-bg-gray-300','_viewColumnRight','setPreparing','type','getCellMatrixPrintRange','data','style','deepClone','sheets-print.area.currentSelection','gridlines','PRINTING_DOM_COLLECT','call','disable','watermark','_viewRowBottom','univer-flex\x20univer-shrink-0\x20univer-gap-3\x20univer-bg-gray-0\x20univer-p-4\x20dark:!univer-bg-gray-900','interceptor','CurrentSelection','SHEET_PRINT_PLUGIN','setForceDisableGridlines','setLineDash','addObjects','executeCommand','sheets-print.margin.normal','getCanvas','insertRichText','startRow','updateScrollVal','univer-mt-3','subUnitIds','_drawPrintGrid','bottomCenter','_renderConfig$','_configService','getNoMergeCellWithCoordByIndex','none','resizeWhenFreezeChange','with','univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-200\x20dark:!univer-bg-gray-700','Custom','VIEW_ROW_BOTTOM','editOp','_calculateCurrentSelectionRange','endY','univer-flex-1\x20univer-overflow-auto','now','subUnitId','sheets-print.screenshot.success','sheets-print.headerFooter.display.dateA','setPrintViewDisposable','flat','sheet.operation.cancel-print','OPTIONAL','close','sheets-print.headerFooter.customHeadFooter','sheets-print.headerFooter.dateB','AllSelection','find','3000ftYyYs','print','absolute','@DateA','innerWidth','devicePixelRatio','replaceRenderConfig','DateD','then','_renderMainScene','config','Landscape','margin','_sheetPrintClientService','button','unitId','DateE','fontBoundingBoxAscent','enable','submit','COMMAND','getDocumentDataModel','url','_root','_univerInstanceService','subscribe','push','univer-w-full','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-z-[1010]\x20univer-flex\x20univer-justify-center','src','@DateC','getValue','area','sheets-print.formatting.skeleton','sheets-print.limit.link','root','SheetPage','length','constructor','createElement','_calculateSubSheetRange','complete','left','Origin','sheets-print.headerFooter.dateC','appendChild','measureText','onCommandExecuted','Narrow','_injector','getInstance','fetchThroughInterceptors','round','sheets-print.headerFooter.timeA','#1890ff','_printGridService','univer-grid\x20univer-gap-2','univer-z-[100]\x20univer-mt-2\x20univer-flex\x20univer-size-8\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-gray-0\x20univer-shadow\x20dark:!univer-bg-gray-900','__RowHeaderPrint__','sheets-print.size.a4','link','CTRL_COMMAND','univer-ml-2\x20univer-text-lg\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','Page','scale','univer-relative\x20univer-mx-2\x20univer-my-0\x20univer-flex-grow','register','overflow','sheets-print.headerFooter.header','29538ugyIBS','sheets-print.header.total','univer-relative\x20first:univer-mr-2','sheets-print.size.tabloid','onReady','onafterprint','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','univer-solid\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20univer-shadow-lg\x20dark:!univer-border-gray-700','_getTranslateOffset','forEach','mount','_initUIParts','maxRowsEachPage','NO_COMMERCIAL','_sheetsSelectionsSrv','getRenderUnitById','symbol','228530NosKxG','_layoutInfos$','font','_viewMain','resize','sheets-print.headerFooter.timeD','univer-h-[200px]\x20univer-w-[--radix-popper-anchor-width]\x20univer-overflow-y-auto','sheets-print.orientation.landscape','TimeA','open','_viewLeftTop','ensureSkeleton','isCustomHeaderFooter','_printManagerService','sheets-print.headerFooter.display.title','headerFooterSetting','page','univer-text-gray-500','mergeMenu','univer-my-1\x20univer-p-0','sheets-print.headerFooter.display.dateB','_renderConfig','valid','sheets-print.headerFooter.time','enforceWatermark','_layoutConfig','_accessor','57452PmXfqW','getSheets','getSheetBySheetId','label','visible','isSheetHidden','sheets-print.orientation.portrait','menu','_componentManager','sheetPage','No\x20workbook\x20found','sheets-print.limit.page','Tabloid','sheets-print.headerFooter.timeC','univer-pro.print-grid.service','7290396hfyJdC','image','sheets-print.header.pages','univer-text-sm\x20univer-font-medium','endIndex','OTHERS','get','!univer-min-w-0\x20univer-flex-1','localeService','sheet.operation.screenshot','sheets-print.headerFooter.display.timeA','renderOnReady','sheets-print.area.workbook','sheets-print.grid.title','Wide','DownloadImageIcon','@TotalPage','_menuManagerService','univer-box-border\x20univer-flex\x20univer-h-16\x20univer-w-full\x20univer-flex-none\x20univer-flex-row\x20univer-items-center\x20univer-justify-between\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','sheets-print.header.next','sheets-print.size.folio','object','sheets-print.grid.closeAndHide','UserInfo','sheets-print.size.title','sheets-print.headerFooter.display.page','startColumn','_printViewDisposable','_renderManagerService','registerComponent','reLayout','container','getEditorId','hAlign','workbook','_container','waitForReady','time','catch','univer-pro.sheet-print-manager.service','noreferrer\x20noopener','status','SheetPageTotal','Portrait','desc','9843001dOPecn','_visible$','_uiPartsService','#E5E5E5','mainComponent','true','_logService','Folio','footer','Start','engine','range','xSplit','_targetRender','toPrimitive','4LvAzAl','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','registerShortcut','sheets-print.area.maxRowsEachPage','syncExecuteCommand','freeze','from','replaceLayoutConfig','clearCanvas','Normal','sheets-print.margin.top','fillText','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DateA','_renderHeaderFooterByCustom','beginPath','_initMenus','all','pageTotal','decorate','getConfig','@TimeB','_skeleton','_sheetPrintInterceptorService','_context','position','map','sheets-print.size.a3','_printDialogService','univer-flex\x20univer-w-full','_totalHeight','_addComponent','getPermissionPoint','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center','_registerIcons','TimeD','Legal','univer-my-4\x20univer-text-center','paperMargin','prepare','fontBoundingBoxDescent','top','_initConfigChangeListener','width','registerCommand','add','_viewLeft','save','Printing','univer-absolute\x20univer-left-0\x20univer-z-[100]','getInterceptPoints','sheets-print.size.b5','@TimeC','_key','layoutConfig$','_initShortcuts','toLocaleString','userInfo','_resizeViewport','univer-mr-2','string','className','VIEW_COLUMN_RIGHT','PRINTING_COMPONENT_COLLECT','body','show','worksheet','sheets-print.selection.allWorkbook','sheets-print.limit.waterMark','univer-flex\x20univer-h-16\x20univer-items-center\x20univer-justify-between\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','__mode','sheets-print.headerFooter.dateD','getSelectionsOfWorksheet','endX','toLocaleDateString','parentElement','_calculateSheetPages','_messageService','selection','Error','image/png','copyForPrinting','columnHeaderHeight','scaleY','Row','sheets-print.margin.wide','setPreviewScale','disposePrintView','http://www.w3.org/2000/svg','getItem','univer-ml-2\x20univer-text-base\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','sheets-print.title','Time','sheets-print.headerFooter.title','uKey','_spreadsheetObject','_layoutInfos','CollaborationController','@DateD','FitPage','@SheetPage','sheets-print.header.cancel','[MobileSheetPrintController]','_blank','1.0.3','sheets-print.freeze.row','div','MAIN_AREA','sheets-print.headerFooter.display.sheet','sheets-print.selection.title','Failed\x20to\x20print\x20sheets.','name','univer-relative\x20univer-box-border\x20univer-flex\x20univer-flex-1\x20univer-flex-col\x20univer-overflow-hidden','No\x20active\x20sheet\x20found','univer-mb-2','_dirty','13px\x20','updateRenderConfig','sheet','_initCommandListener','getWorkbookSelections','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','create','layoutInfos','pages','sheets-print.headerFooter.center','sheets-print.headerFooter.left','100%','sheets-print.align.vertical.middle','sheets-print.size.legal','_unitId','WorksheetTitle','sheets-print.area.maxColumnsEachPage','sheets-print.formatting.waterMark','_totalWidth','sheets-print.headerFooter.submit','direction','sheets-print.headerFooter.editCustomHeadFooter','ySplit','Letter','makeForceDirty','_commandService','sheets-print.header.printing','addEventListener','sheets-print.headerFooter.display.sheetPage','univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','wait','_renderHeaderFooter','pipe','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','Executive','forValue','lineTo','sheets-print.config','default','small','sheets-print.scale.fitWidth','primary','univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-bg-gray-100\x20dark:!univer-bg-gray-900','FitHeight','@WorkbookTitle','_registerComponents','filter','univer-flex\x20univer-size-5\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-900\x20dark:!univer-text-gray-0','_initMutationListener','univer-flex\x20univer-gap-2','WorkbookTitle','@WorksheetTitle','draw','mually','__SpreadsheetPrintRender__','has','getCollabEntity','univer-size-3\x20univer-text-gray-900\x20univer-transition-transform\x20dark:!univer-text-gray-0','sheets-print.align.horizontal.start','text','getCurrentLastSelection','format','@univerjs-pro/sheets-print','Statement','layoutInfos$','render','includeHeaderDimensions','Success','preparing$','VIEW_MAIN_TOP','isNaN','sheets-print.size.statement','value','UNIVER_SHEET','pauseCollaboration','mpn','fillStyle','customRanges','sheets-print.margin.right','bottomLeft','DateC','number','asObservable','sheets-print.align.vertical.end','sheets-print.headerFooter.display.timeB','scaleX','dispose'];_0x464b=function(){return _0x573233;};return _0x464b();}const X={'id':_0x48476b(0x323),'type':_0x5bd6d1[_0x48476b(0x2dc)],'handler':async _0x285987=>{const _0x416a5b=_0x48476b;let _0x335a9a=_0x285987[_0x416a5b(0x179)](K),_0x1fd36c=_0x285987[_0x416a5b(0x179)](_0x5c10cc),_0x17bf7c=_0x285987[_0x416a5b(0x179)](_0x5bfbd3),_0x5d8c8b=_0x285987[_0x416a5b(0x179)](_0x1af74b),_0x5cd730=_0x285987[_0x416a5b(0x179)](_0x559567),{ls:_0x34f071,pbk:_0x41f716}=_0x285987[_0x416a5b(0x179)](_0x3c85d4)['getConfig'](_0x1378c3)??{};if(!on(_0x34f071,_0x41f716))return!0x1;let _0x47bd38=_0x5d8c8b[_0x416a5b(0x2d5)](_0x372cab[_0x416a5b(0x26c)])['getUnitId']();if(!(_0x1fd36c[_0x416a5b(0x1cf)](new _0x23050b(_0x47bd38)['id'])??!0x1)){let _0x8c982e={'id':Gt,'title':{'title':''},'children':{'label':_0x416a5b(0x306),'errorMsg':_0x17bf7c['t'](_0x416a5b(0x2c4))},'width':0x140,'onClose':()=>_0x5cd730[_0x416a5b(0xee)](Gt),'className':'sheet-permission-user-dialog'};throw _0x5cd730['open'](_0x8c982e),Error('have\x20not\x20permission');}_0x335a9a[_0x416a5b(0x340)](!0x0),_0x335a9a[_0x416a5b(0x152)]();try{return await _0x285987[_0x416a5b(0x179)](_0x127df1)['prepare']({'unitId':_0x47bd38,'unitType':_0x372cab['UNIVER_SHEET'],'dpr':0x1}),!0x0;}catch(_0x2e822b){throw _0x335a9a[_0x416a5b(0xee)](),_0x2e822b;}finally{_0x335a9a[_0x416a5b(0x340)](!0x1);}}},ln={'type':_0x5bd6d1[_0x48476b(0x2dc)],'id':_0x48476b(0xec),'handler'(_0x2c84e2){const _0x25a50d=_0x48476b;let _0x3dcdc9=_0x2c84e2[_0x25a50d(0x179)](K),_0x1aa43a=_0x2c84e2[_0x25a50d(0x179)](Y);return _0x3dcdc9[_0x25a50d(0xee)](),_0x1aa43a[_0x25a50d(0x30e)](),!0x0;}},Z={'type':_0x5bd6d1[_0x48476b(0x2dc)],'id':_0x48476b(0x33b),'handler'(){return!0x0;}},un={'id':_0x48476b(0x329),'type':_0x5bd6d1[_0x48476b(0x107)],'handler'(_0x562d40,_0x48f4dd){const _0x14f68e=_0x48476b;if(!_0x48f4dd)return!0x1;let _0x3d563e=_0x562d40[_0x14f68e(0x179)](_0xbc3d2e),_0x42e250=_0x562d40[_0x14f68e(0x179)](Y);return _0x42e250[_0x14f68e(0x1b6)](_0x48f4dd[_0x14f68e(0x2ca)]),_0x42e250[_0x14f68e(0xf9)](_0x48f4dd[_0x14f68e(0x2ef)]),_0x3d563e[_0x14f68e(0x1b3)](Z['id']);}};function Q(_0x28e3b1,_0x1dfa45){const _0x35f378=_0x48476b;switch(_0x28e3b1){case'@WorkbookTitle':return _0x1dfa45['workbook']['name'];case _0x35f378(0x256):return _0x1dfa45[_0x35f378(0x1f1)][_0x35f378(0x2e3)]();case _0x35f378(0x29e):return''+_0x1dfa45[_0x35f378(0x159)];case _0x35f378(0x183):return''+_0x1dfa45[_0x35f378(0x1c1)];case'@TotalSheetPage':return''+_0x1dfa45[_0x35f378(0x2c3)];case _0x35f378(0x213):return''+_0x1dfa45['sheetPage'];case _0x35f378(0xf6):return _0x1dfa45[_0x35f378(0xe6)][_0x35f378(0x260)](_0x1dfa45[_0x35f378(0x17b)]['t']('sheets-print.headerFooter.dateA'));case _0x35f378(0x29d):return _0x1dfa45[_0x35f378(0xe6)][_0x35f378(0x260)](_0x1dfa45[_0x35f378(0x17b)]['t'](_0x35f378(0xf0)));case _0x35f378(0x111):return _0x1dfa45[_0x35f378(0xe6)][_0x35f378(0x260)](_0x1dfa45['localeService']['t'](_0x35f378(0x11f)));case _0x35f378(0x211):return _0x1dfa45[_0x35f378(0xe6)]['format'](_0x1dfa45[_0x35f378(0x17b)]['t'](_0x35f378(0x1f6)));case'@DateE':return _0x1dfa45[_0x35f378(0xe6)][_0x35f378(0x260)](_0x1dfa45['localeService']['t'](_0x35f378(0x2ec)));case _0x35f378(0x281):return _0x1dfa45[_0x35f378(0xe6)]['format'](_0x1dfa45[_0x35f378(0x17b)]['t'](_0x35f378(0x128)));case _0x35f378(0x1c4):return _0x1dfa45[_0x35f378(0xe6)][_0x35f378(0x260)](_0x1dfa45[_0x35f378(0x17b)]['t'](_0x35f378(0x2d4)));case _0x35f378(0x1e3):return _0x1dfa45[_0x35f378(0xe6)]['format'](_0x1dfa45['localeService']['t'](_0x35f378(0x171)));case _0x35f378(0x2f0):return _0x1dfa45['now']['format'](_0x1dfa45[_0x35f378(0x17b)]['t'](_0x35f378(0x14e)));}}const dn=Object[_0x48476b(0x2a4)]($t);function fn(_0x8a420d,_0x5d5e05){let _0x3a66b1=_0x8a420d;return dn['forEach'](_0x2b6741=>{_0x3a66b1=_0x3a66b1['replaceAll'](_0x2b6741,Q(_0x2b6741,_0x5d5e05));}),_0x3a66b1;}const pn=_0x48476b(0x337);function mn(_0x26c42c,_0x662142){const _0x4eaff8=_0x48476b;let _0xb9a94b=_0x26c42c;_0x662142[_0x4eaff8(0x141)](_0x2664de=>{const _0x27db4d=_0x4eaff8;_0xb9a94b=_0xb9a94b[_0x27db4d(0x300)](_0x2664de[_0x27db4d(0x26b)],''+pn+_0x2664de[_0x27db4d(0x167)]+pn);});let _0x47fe97=_0xb9a94b[_0x4eaff8(0x2eb)](pn),_0x2591a0=_0x2ad314[_0x4eaff8(0x229)]();return _0x47fe97[_0x4eaff8(0x141)]((_0x1e9c20,_0x58771f)=>{const _0x31b4ee=_0x4eaff8;if(_0x1e9c20){if(_0x58771f%0x2==0x1){let _0x3d5405=_0x1e9c20,_0x4c5da6={'id':'d','documentStyle':{},'drawings':{},'drawingsOrder':[],'body':{'dataStream':_0x1e9c20,'customBlocks':[],'customRanges':[{'startIndex':0x0,'endIndex':_0x1e9c20[_0x31b4ee(0x118)]-0x1,'rangeId':_0x5302a1(),'rangeType':_0x2b5c7e['MENTION'],'properties':{'value':_0x662142[_0x31b4ee(0xf2)](_0x5a1fdc=>_0x5a1fdc[_0x31b4ee(0x167)]===_0x3d5405)[_0x31b4ee(0x26b)]}}]}};_0x2591a0[_0x31b4ee(0x357)](_0x4c5da6);}else _0x2591a0[_0x31b4ee(0x32e)](_0x1e9c20);}}),_0x2591a0[_0x4eaff8(0x2f4)]();}function hn(_0x1f00a4){const _0x3b6839=_0x48476b;var _0x379e14;if(!(_0x1f00a4!=null&&_0x1f00a4['body']))return'';let _0x24eb44=_0x2ad314[_0x3b6839(0x229)](_0x4242b7[_0x3b6839(0x345)](_0x1f00a4));for(;(_0x379e14=_0x24eb44[_0x3b6839(0x2f4)]()[_0x3b6839(0x1ef)][_0x3b6839(0x270)])!=null&&_0x379e14['length'];){let _0x529649=_0x24eb44[_0x3b6839(0x2f4)]()[_0x3b6839(0x1ef)][_0x3b6839(0x270)][0x0];if(!_0x529649)break;_0x24eb44['delete'](_0x529649[_0x3b6839(0x2cd)],_0x529649[_0x3b6839(0x177)]+0x1-_0x529649[_0x3b6839(0x2cd)]),_0x24eb44[_0x3b6839(0x32e)](_0x529649[_0x3b6839(0x2cd)],_0x529649[_0x3b6839(0x2df)]['value']);}return _0x24eb44[_0x3b6839(0x2f4)]()[_0x3b6839(0x1ef)][_0x3b6839(0x314)];}function gn(_0x51f235,_0x1c2956){const _0x5119a9=_0x48476b;_0x51f235[_0x5119a9(0x27d)]()[_0x5119a9(0x141)](_0x212bd6=>{const _0x399eaf=_0x5119a9;var _0x489b96;let _0x4a7aba=(_0x489b96=_0x212bd6[_0x399eaf(0x200)])==null?void 0x0:_0x489b96['call'](_0x212bd6);_0x4a7aba&&_0x1c2956[_0x399eaf(0x135)](_0x4a7aba);});}var _n=class extends _0x5117f5{get[_0x48476b(0x31d)](){const _0x1c8d33=_0x48476b;return this[_0x1c8d33(0x15e)][_0x1c8d33(0x34b)];}get[_0x48476b(0x2de)](){const _0x20f6b9=_0x48476b;return this[_0x20f6b9(0x1e4)];}get['engine'](){const _0x2aef1f=_0x48476b;return this[_0x2aef1f(0x284)];}get[_0x48476b(0x192)](){const _0x56ce58=_0x48476b;return this[_0x56ce58(0x196)];}get['root'](){const _0x255502=_0x48476b;return this[_0x255502(0x10a)];}get[_0x48476b(0x2ef)](){const _0x52f212=_0x48476b;return this[_0x52f212(0x15e)];}set[_0x48476b(0x2ef)](_0x28d6f6){const _0x3ab20f=_0x48476b;this[_0x3ab20f(0x15e)]=_0x28d6f6;}constructor(_0x1799b8,_0x5754c9,_0x4317b2,_0xa0cd43=!0x0,_0x452ee4=0x1){const _0x48e018=_0x48476b;super(),this[_0x48e018(0x163)]=_0x1799b8,this[_0x48e018(0x2db)]=_0x5754c9,this[_0x48e018(0x15e)]=_0x4317b2,this[_0x48e018(0x2be)]=_0xa0cd43,this[_0x48e018(0x2cb)]=_0x452ee4,G(this,_0x48e018(0x284),void 0x0),G(this,_0x48e018(0x289),void 0x0),G(this,'_key',void 0x0),G(this,_0x48e018(0x231),void 0x0),G(this,_0x48e018(0x31b),void 0x0),G(this,_0x48e018(0x14c),void 0x0),G(this,_0x48e018(0x1dd),void 0x0),G(this,'_viewTop',void 0x0),G(this,_0x48e018(0x153),void 0x0),G(this,_0x48e018(0x34c),null),G(this,_0x48e018(0x33f),null),G(this,_0x48e018(0x196),document[_0x48e018(0x11a)](_0x48e018(0x219))),G(this,_0x48e018(0x10a),document[_0x48e018(0x11a)](_0x48e018(0x219))),G(this,_0x48e018(0x1c5),void 0x0),G(this,_0x48e018(0x10b),void 0x0),G(this,_0x48e018(0x222),!0x0),G(this,'_targetRender',void 0x0),G(this,'_effects',new _0x597c53()),G(this,_0x48e018(0x311),new _0x1ef928()),G(this,_0x48e018(0x20e),void 0x0),G(this,_0x48e018(0x235),0x0),G(this,_0x48e018(0x1cd),0x0);let {unitId:_0x1a1e5e,subUnitId:_0x160be8}=this[_0x48e018(0x2db)];this[_0x48e018(0x231)]=_0x1a1e5e,this['_subUnitId']=_0x160be8,this[_0x48e018(0x1e4)]=_0x1a1e5e+'_'+_0x160be8,this[_0x48e018(0x10b)]=this[_0x48e018(0x163)][_0x48e018(0x179)](_0x1af74b);let _0x35d4e9=this[_0x48e018(0x163)][_0x48e018(0x179)](_0x509807);this['_targetRender']=_0x35d4e9[_0x48e018(0x147)](_0x1a1e5e);let _0x39e780=this[_0x48e018(0x1ad)]['with'](_0x50ffa5)[_0x48e018(0x154)](_0x160be8);this[_0x48e018(0x1c5)]=_0x39e780,this['_root'][_0x48e018(0x1ec)]='__root',this[_0x48e018(0x28d)]();}['dispose'](){const _0x33db43=_0x48476b;var _0x436f9a;super['dispose'](),this['_effects'][_0x33db43(0x279)](),(_0x436f9a=this[_0x33db43(0x196)][_0x33db43(0x1fa)])==null||_0x436f9a['removeChild'](this[_0x33db43(0x196)]);}get[_0x48476b(0x2d9)](){const _0x577f58=_0x48476b;let {w:_0x3ef308,h:_0x47f89c}=this[_0x577f58(0x2db)]['pageSize'];return{'w':_0x3ef308*this[_0x577f58(0x2cb)],'h':_0x47f89c*this[_0x577f58(0x2cb)]};}get[_0x48476b(0xff)](){const _0x37e76f=_0x48476b;let _0x42ccd3=this[_0x37e76f(0x2db)][_0x37e76f(0xff)];return{'top':_0x42ccd3['top']*this[_0x37e76f(0x2cb)],'bottom':_0x42ccd3[_0x37e76f(0x27a)]*this[_0x37e76f(0x2cb)],'left':_0x42ccd3[_0x37e76f(0x11d)]*this['_previewScale'],'right':_0x42ccd3[_0x37e76f(0x2b9)]*this[_0x37e76f(0x2cb)]};}[_0x48476b(0x28d)](){const _0x3398a3=_0x48476b;let _0x1bf6d0=this['paperSize'],_0x2a4685=this['_config']['scale']*this['_previewScale'],_0x460656=this['_isPreview']?Math[_0x3398a3(0x30c)](0x1,window[_0x3398a3(0xf8)]):0x1;this[_0x3398a3(0x284)]=new _0x13a79e('',{'elementWidth':_0x1bf6d0['w'],'elementHeight':_0x1bf6d0['h'],'dpr':_0x460656,'renderMode':_0x5b8646[_0x3398a3(0x1df)]}),this['_scene']=new _0x2bd60b(this[_0x3398a3(0x1e4)],this[_0x3398a3(0x284)]),this[_0x3398a3(0x289)][_0x3398a3(0x133)](_0x2a4685,_0x2a4685),this[_0x3398a3(0x284)][_0x3398a3(0x142)](this[_0x3398a3(0x196)],this[_0x3398a3(0x2be)]),this[_0x3398a3(0x284)][_0x3398a3(0x356)]()[_0x3398a3(0x2b1)]()[_0x3398a3(0x33a)](this[_0x3398a3(0x1e4)]+'_'+_0x5302a1(0x4)),this[_0x3398a3(0x1ce)](),this[_0x3398a3(0x27c)](),this['disposeWithMe']({'dispose':()=>{const _0x33ffaa=_0x3398a3;this[_0x33ffaa(0x284)][_0x33ffaa(0x279)](),this[_0x33ffaa(0x289)]['dispose'](),this[_0x33ffaa(0x327)]();}});}[_0x48476b(0x327)](){const _0x21a409=_0x48476b;this[_0x21a409(0x1c5)]['resetCache']();}[_0x48476b(0x205)](_0x595bf2){const _0x1ed39a=_0x48476b;this[_0x1ed39a(0x289)]['scale'](this[_0x1ed39a(0x2db)][_0x1ed39a(0x133)]*_0x595bf2,this[_0x1ed39a(0x2db)][_0x1ed39a(0x133)]*_0x595bf2),this[_0x1ed39a(0x2cb)]=_0x595bf2,this[_0x1ed39a(0x325)](!0x0);}[_0x48476b(0x2ad)](_0x4728fd){const _0xb9155c=_0x48476b;this[_0xb9155c(0x2db)]=_0x4728fd,this['markDirty'](!0x0);}[_0x48476b(0x325)](_0x57b0be){const _0xd7dd49=_0x48476b;this[_0xd7dd49(0x222)]=_0x57b0be;}[_0x48476b(0x1ce)](){const _0x22f386=_0x48476b;var _0xb09111;let _0x31df25=new _0x58ad21(_0x22f386(0x259),this[_0x22f386(0x1c5)],!0x1);_0x31df25[_0x22f386(0x321)]=!0x0;let _0x365d1b=(_0xb09111=this[_0x22f386(0x1ad)])==null?void 0x0:_0xb09111[_0x22f386(0x1a4)];if(_0x365d1b&&gn(_0x365d1b,_0x31df25),this[_0x22f386(0x289)][_0x22f386(0x319)](_0x31df25),this[_0x22f386(0x20e)]=_0x31df25,this[_0x22f386(0x2db)][_0x22f386(0x265)]){let _0x6aafd4=new _0x165811(_0x22f386(0x12d),this[_0x22f386(0x1c5)]),_0xcd806e=new _0x13f424(_0x22f386(0x339),this[_0x22f386(0x1c5)]);this[_0x22f386(0x289)][_0x22f386(0x353)]([_0x6aafd4,_0xcd806e],0x1);}let _0x23af19=this[_0x22f386(0x163)][_0x22f386(0x179)](_0x28f7d8);_0x23af19[_0x22f386(0x34e)]['fetchThroughInterceptors'](_0x23af19[_0x22f386(0x34e)][_0x22f386(0x1e1)]()[_0x22f386(0x1ee)])(void 0x0,{'unitId':this[_0x22f386(0x231)],'subUnitId':this[_0x22f386(0x31b)],'scene':this[_0x22f386(0x289)],'engine':this[_0x22f386(0x284)],'root':this[_0x22f386(0x10a)],'worksheet':this[_0x22f386(0x1c5)][_0x22f386(0x1f1)],'skeleton':this[_0x22f386(0x1c5)],'range':this[_0x22f386(0x2db)][_0x22f386(0x1ab)],'offset':this['_getTranslateOffset'](),'spreadsheet':this[_0x22f386(0x20e)],'resourceCollector':this[_0x22f386(0x311)]});}[_0x48476b(0x27c)](){const _0x45925a=_0x48476b;this['_viewMain']=new _0x1c3be4(_0x3cb47c[_0x45925a(0x32a)],this[_0x45925a(0x289)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x45925a(0x1dd)]=new _0x1c3be4(_0x3cb47c[_0x45925a(0x33d)],this[_0x45925a(0x289)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_viewTop']=new _0x1c3be4(_0x3cb47c[_0x45925a(0x268)],this[_0x45925a(0x289)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x45925a(0x153)]=new _0x1c3be4(_0x3cb47c['VIEW_MAIN_LEFT_TOP'],this['_scene'],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this['_config'][_0x45925a(0x265)]&&(this[_0x45925a(0x34c)]=new _0x1c3be4(_0x3cb47c[_0x45925a(0xe1)],this[_0x45925a(0x289)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}),this[_0x45925a(0x33f)]=new _0x1c3be4(_0x3cb47c[_0x45925a(0x1ed)],this[_0x45925a(0x289)],{'explicitViewportWidthSet':!0x0,'explicitViewportHeightSet':!0x0}));}[_0x48476b(0x1e9)](){const _0x108f79=_0x48476b;let {freeze:_0x3557e0,range:_0x23c3eb}=this['_config'],{xSplit:_0x3878ef,ySplit:_0x28c169,startColumn:_0x9bf201,startRow:_0x224eeb}=_0x3557e0,{rowHeaderWidth:_0x1459aa,columnHeaderHeight:_0x1a6c39}=this['_skeleton'];this[_0x108f79(0x289)]['scale'](this[_0x108f79(0x2db)][_0x108f79(0x133)]*this[_0x108f79(0x2cb)],this[_0x108f79(0x2db)][_0x108f79(0x133)]*this[_0x108f79(0x2cb)]);let _0x1aabf7=this[_0x108f79(0x1c5)]['getNoMergeCellWithCoordByIndex'](_0x224eeb-_0x28c169,_0x9bf201-_0x3878ef,!0x1),_0x287ae3=this['_skeleton']['getNoMergeCellWithCoordByIndex'](_0x224eeb,_0x9bf201,!0x1),_0x59d46a=_0x3878ef>0x0?_0x287ae3[_0x108f79(0x303)]-_0x1aabf7[_0x108f79(0x303)]:0x0,_0x184b30=_0x28c169>0x0?_0x287ae3[_0x108f79(0x335)]-_0x1aabf7['startY']:0x0,_0x34a2a1={'startX':_0x3878ef>0x0?_0x1aabf7[_0x108f79(0x303)]:0x0,'endX':_0x3878ef>0x0?_0x287ae3[_0x108f79(0x303)]:0x0,'startY':_0x28c169>0x0?_0x1aabf7[_0x108f79(0x335)]:0x0,'endY':_0x28c169>0x0?_0x287ae3[_0x108f79(0x335)]:0x0},_0x2d0a5e=this[_0x108f79(0x1c5)][_0x108f79(0xdb)](_0x23c3eb['startRow'],_0x23c3eb[_0x108f79(0x18d)],!0x1),_0x277c8b=this[_0x108f79(0x289)][_0x108f79(0x2fe)](),_0x22bbdd=_0x4f62ef=>_0x27cb97(_0x4f62ef,_0x277c8b[_0x108f79(0x278)]),_0x178e0f=_0x391794=>_0x27cb97(_0x391794,_0x277c8b[_0x108f79(0x202)]),_0x41a0ce=this[_0x108f79(0x1c5)][_0x108f79(0xdb)](_0x23c3eb[_0x108f79(0x2ce)],_0x23c3eb[_0x108f79(0x2f1)],!0x1),_0x122185=Math[_0x108f79(0x30c)](0x0,_0x22bbdd(_0x41a0ce['endX'])-Math[_0x108f79(0x30c)](_0x2d0a5e['startX'],_0x34a2a1[_0x108f79(0x1f8)])),_0x1bc24c=Math[_0x108f79(0x30c)](0x0,_0x178e0f(_0x41a0ce[_0x108f79(0xe4)])-_0x178e0f(Math['max'](_0x2d0a5e[_0x108f79(0x335)],_0x34a2a1[_0x108f79(0xe4)]))),_0x19d601=0x1/Math[_0x108f79(0x30c)](_0x277c8b[_0x108f79(0x278)],_0x277c8b[_0x108f79(0x202)]),_0xf5b9da=this[_0x108f79(0x2db)][_0x108f79(0x265)]?_0x1459aa:0x0,_0x10d43c=this[_0x108f79(0x2db)][_0x108f79(0x265)]?_0x1a6c39:0x0,_0x277564=_0xf5b9da+_0x59d46a+_0x122185+_0x19d601,_0x4b26b8=_0x10d43c+_0x184b30+_0x1bc24c+_0x19d601;this[_0x108f79(0x235)]=_0x277564,this['_totalHeight']=_0x4b26b8;let _0x27e5a9={'x':_0x59d46a,'y':_0x184b30},_0x1bb2c7=_0x19d601,_0xae41de=_0x19d601,_0x1af43e={'x':_0x22bbdd(_0x41a0ce[_0x108f79(0x1f8)])-_0x22bbdd(_0x122185)-_0x22bbdd(Math[_0x108f79(0x30c)](_0x2d0a5e['startX'],_0x34a2a1['endX'])),'y':_0x178e0f(_0x41a0ce[_0x108f79(0xe4)])-_0x178e0f(_0x1bc24c)-_0x178e0f(Math[_0x108f79(0x30c)](_0x2d0a5e[_0x108f79(0x335)],_0x34a2a1[_0x108f79(0xe4)]))};if(_0x3878ef>0x0&&_0x28c169>0x0?(this[_0x108f79(0x153)][_0x108f79(0x105)](),this[_0x108f79(0x153)]['resizeWhenFreezeChange']({'top':0x0,'left':0x0,'height':_0x178e0f(_0x27e5a9['y']),'width':_0x22bbdd(_0x27e5a9['x'])}),this[_0x108f79(0x153)][_0x108f79(0x359)]({'viewportScrollX':_0x22bbdd(_0x34a2a1['startX'])+_0x22bbdd(_0x1459aa),'viewportScrollY':_0x178e0f(_0x34a2a1['startY'])+_0x178e0f(_0x1a6c39)})):this[_0x108f79(0x153)]['disable'](),_0x3878ef>0x0?(this[_0x108f79(0x1dd)][_0x108f79(0x105)](),this['_viewLeft'][_0x108f79(0xdd)]({'top':_0x22bbdd(_0x27e5a9['y']),'left':0x0,'height':_0x178e0f(_0x1bc24c)+_0x1bb2c7+_0x1af43e['y'],'width':_0x22bbdd(_0x27e5a9['x'])}),this['_viewLeft'][_0x108f79(0x359)]({'viewportScrollX':_0x22bbdd(_0x34a2a1[_0x108f79(0x303)])+_0x22bbdd(_0x1459aa),'viewportScrollY':_0x178e0f(_0x2d0a5e[_0x108f79(0x335)])+_0x178e0f(_0x1a6c39)-_0x178e0f(_0x27e5a9['y'])})):this[_0x108f79(0x1dd)]['disable'](),_0x28c169>0x0?(this['_viewTop'][_0x108f79(0x105)](),this['_viewTop']['resizeWhenFreezeChange']({'top':0x0,'left':_0x22bbdd(_0x27e5a9['x']),'height':_0x178e0f(_0x27e5a9['y']),'width':_0x22bbdd(_0x122185)+_0xae41de+_0x1af43e['x']}),this['_viewTop'][_0x108f79(0x359)]({'viewportScrollX':_0x22bbdd(_0x2d0a5e[_0x108f79(0x303)])+_0x22bbdd(_0x1459aa)-_0x22bbdd(_0x27e5a9['x']),'viewportScrollY':_0x178e0f(_0x34a2a1[_0x108f79(0x335)])+_0x178e0f(_0x1a6c39)})):this[_0x108f79(0x286)][_0x108f79(0x34a)](),this[_0x108f79(0x2db)]['includeHeaderDimensions']){let _0x2ec028=_0x22bbdd(_0x1459aa),_0x31e966=_0x178e0f(_0x1a6c39),_0x54bf4a=_0x22bbdd(_0x122185)+_0xae41de+_0x1af43e['x'],_0x2fd903=_0x178e0f(_0x1bc24c)+_0x1bb2c7+_0x1af43e['y'];this[_0x108f79(0x14c)]['resizeWhenFreezeChange']({'top':_0x31e966,'left':_0x2ec028,'height':_0x2fd903,'width':_0x54bf4a}),this['_viewMain'][_0x108f79(0x359)]({'viewportScrollX':_0x22bbdd(_0x2d0a5e[_0x108f79(0x303)]),'viewportScrollY':_0x178e0f(_0x2d0a5e[_0x108f79(0x335)])}),this['_viewRowBottom']&&this[_0x108f79(0x33f)]&&(this[_0x108f79(0x33f)][_0x108f79(0x105)](),this[_0x108f79(0x33f)][_0x108f79(0xdd)]({'top':0x0,'left':_0x2ec028,'height':_0x31e966,'width':_0x54bf4a}),this[_0x108f79(0x33f)][_0x108f79(0x359)]({'viewportScrollX':_0x22bbdd(_0x2d0a5e[_0x108f79(0x303)]),'viewportScrollY':0x0}),this['_viewRowBottom'][_0x108f79(0x105)](),this[_0x108f79(0x34c)][_0x108f79(0xdd)]({'top':_0x31e966,'left':0x0,'height':_0x2fd903,'width':_0x2ec028}),this[_0x108f79(0x34c)]['updateScrollVal']({'viewportScrollX':0x0,'viewportScrollY':_0x178e0f(_0x2d0a5e[_0x108f79(0x335)])}));}else this[_0x108f79(0x14c)][_0x108f79(0xdd)]({'top':_0x178e0f(_0x27e5a9['y']),'left':_0x22bbdd(_0x27e5a9['x']),'height':_0x178e0f(_0x1bc24c)+_0x1bb2c7+_0x1af43e['y'],'width':_0x22bbdd(_0x122185)+_0xae41de+_0x1af43e['x']}),this[_0x108f79(0x14c)]['updateScrollVal']({'viewportScrollX':_0x22bbdd(_0x2d0a5e[_0x108f79(0x303)])+_0x22bbdd(_0x1459aa)-_0x22bbdd(_0x27e5a9['x']),'viewportScrollY':_0x178e0f(_0x2d0a5e[_0x108f79(0x335)])+_0x178e0f(_0x1a6c39)-_0x178e0f(_0x27e5a9['y'])});}[_0x48476b(0x140)](){const _0x3be1d6=_0x48476b;let _0x47d864=this[_0x3be1d6(0xff)],{vAlign:_0x45cf6d,hAlign:_0x5bc2ac}=this[_0x3be1d6(0x15e)],_0x127b27=Math[_0x3be1d6(0x30c)](this['_scene']['scaleX'],this[_0x3be1d6(0x289)]['scaleY']),_0x346031;switch(_0x5bc2ac){case _0x52f62b['Start']:_0x346031=_0x47d864[_0x3be1d6(0x11d)];break;case _0x52f62b['End']:_0x346031=this[_0x3be1d6(0x2d9)]['w']-this[_0x3be1d6(0x235)]*_0x127b27-_0x47d864[_0x3be1d6(0x2b9)];break;default:_0x346031=_0x47d864[_0x3be1d6(0x11d)]+(this[_0x3be1d6(0x2d9)]['w']-this[_0x3be1d6(0x235)]*_0x127b27-_0x47d864[_0x3be1d6(0x11d)]-_0x47d864['right'])/0x2;}let _0x319760;switch(_0x45cf6d){case _0x52f62b[_0x3be1d6(0x1a9)]:_0x319760=_0x47d864['top'];break;case _0x52f62b['End']:_0x319760=this['paperSize']['h']-this[_0x3be1d6(0x1cd)]*_0x127b27-_0x47d864[_0x3be1d6(0x27a)];break;default:_0x319760=(this[_0x3be1d6(0x2d9)]['h']-this[_0x3be1d6(0x1cd)]*_0x127b27-_0x47d864['top']-_0x47d864['bottom'])/0x2+_0x47d864['top'];}return{'offsetX':Math[_0x3be1d6(0x127)](_0x346031),'offsetY':Math[_0x3be1d6(0x127)](_0x319760),'scale':_0x127b27};}[_0x48476b(0x1d6)](){const _0x77e873=_0x48476b;this[_0x77e873(0x1e9)](),this[_0x77e873(0x2fc)][_0x77e873(0x279)](),this[_0x77e873(0x2fc)]=new _0x597c53();let _0x815df0=this[_0x77e873(0x163)][_0x77e873(0x179)](_0x28f7d8),{offsetX:_0x117802,offsetY:_0x36681e,scale:_0x1a2f55}=this[_0x77e873(0x140)](),_0x3c91ea=_0x117802,_0x3c6df6=_0x36681e;this[_0x77e873(0x10a)]['style']['left']=_0x3c91ea+'px',this[_0x77e873(0x10a)]['style'][_0x77e873(0x1d8)]=_0x3c6df6+'px';let _0x314a85=this[_0x77e873(0x235)]*_0x1a2f55,_0x202d54=this[_0x77e873(0x1cd)]*_0x1a2f55;this[_0x77e873(0x10a)][_0x77e873(0x344)][_0x77e873(0x1da)]=_0x314a85+'px',this[_0x77e873(0x10a)][_0x77e873(0x344)][_0x77e873(0x28e)]=_0x202d54+'px',this[_0x77e873(0x10a)][_0x77e873(0x344)]['position']=_0x77e873(0xf5),this['_root'][_0x77e873(0x344)][_0x77e873(0x136)]='hidden',_0x815df0['interceptor']['fetchThroughInterceptors'](_0x815df0[_0x77e873(0x34e)][_0x77e873(0x1e1)]()[_0x77e873(0x348)])(this['_effects'],{'unitId':this[_0x77e873(0x231)],'subUnitId':this[_0x77e873(0x31b)],'scene':this[_0x77e873(0x289)],'engine':this[_0x77e873(0x284)],'root':this['_root'],'worksheet':this[_0x77e873(0x1c5)][_0x77e873(0x1f1)],'skeleton':this[_0x77e873(0x1c5)],'range':this[_0x77e873(0x2db)][_0x77e873(0x1ab)],'offset':this[_0x77e873(0x140)](),'resourceCollector':this[_0x77e873(0x311)]});}[_0x48476b(0xfc)](){const _0x4a66b4=_0x48476b;this['_dirty']&&this[_0x4a66b4(0x1d6)]();let _0x1afeae=this[_0x4a66b4(0x284)][_0x4a66b4(0x356)]()['getContext'](),{gridlines:_0x21395e}=this[_0x4a66b4(0x15e)],{offsetX:_0x279773,offsetY:_0x2f49f2}=this['_getTranslateOffset']();this[_0x4a66b4(0x20e)][_0x4a66b4(0x351)](!_0x21395e),this[_0x4a66b4(0x20e)][_0x4a66b4(0x23b)](),this[_0x4a66b4(0x289)][_0x4a66b4(0x2a6)](),_0x1afeae[_0x4a66b4(0x1de)](),_0x1afeae[_0x4a66b4(0x305)](_0x279773,_0x2f49f2),this[_0x4a66b4(0x289)]['render'](),_0x1afeae[_0x4a66b4(0x2e9)]();}[_0x48476b(0x1bd)](_0xa1a4f7,_0x55de2d,_0x2e488e){const _0x12eca3=_0x48476b;let {w:_0x52ac06,h:_0x10f807}=this[_0x12eca3(0x2d9)],_0x5e17a5=this['_engine'][_0x12eca3(0x356)]()[_0x12eca3(0x2b1)]();_0x5e17a5[_0x12eca3(0x1de)](),_0x5e17a5['font']=_0x12eca3(0x223)+_0x418563;let _0x33a964=0x13*this[_0x12eca3(0x2cb)],_0x513e55=0x14*this[_0x12eca3(0x2cb)],_0xb833c5={'workbook':_0x55de2d,'worksheet':_0x2e488e,'now':_0x577933(),'localeService':this[_0x12eca3(0x163)]['get'](_0x5bfbd3),'page':this['_config'][_0x12eca3(0x159)],'pageTotal':this[_0x12eca3(0x2db)][_0x12eca3(0x1c1)],'sheetPageTotal':this['_config'][_0x12eca3(0x2c3)],'sheetPage':this['_config'][_0x12eca3(0x16d)]};if(_0xa1a4f7[_0x12eca3(0x30a)]){let _0x5c8442=fn(_0xa1a4f7[_0x12eca3(0x30a)],_0xb833c5);_0x5e17a5[_0x12eca3(0x1ba)](_0x5c8442,_0x33a964,_0x513e55);}if(_0xa1a4f7[_0x12eca3(0x28b)]){let _0x2c3d64=fn(_0xa1a4f7['topCenter'],_0xb833c5),_0x213f78=_0x5e17a5[_0x12eca3(0x121)](_0x2c3d64);_0x5e17a5['fillText'](_0x2c3d64,(_0x52ac06-_0x213f78[_0x12eca3(0x1da)])/0x2,_0x513e55);}if(_0xa1a4f7[_0x12eca3(0x2d1)]){let _0x5d070e=fn(_0xa1a4f7[_0x12eca3(0x2d1)],_0xb833c5),_0x39ebf9=_0x5e17a5[_0x12eca3(0x121)](_0x5d070e);_0x5e17a5[_0x12eca3(0x1ba)](_0x5d070e,_0x52ac06-_0x39ebf9[_0x12eca3(0x1da)]-_0x33a964,_0x513e55);}if(_0xa1a4f7[_0x12eca3(0x272)]){let _0x2d466e=fn(_0xa1a4f7['bottomLeft'],_0xb833c5);_0x5e17a5[_0x12eca3(0x1ba)](_0x2d466e,_0x33a964,_0x10f807-_0x513e55);}if(_0xa1a4f7['bottomCenter']){let _0x7065e1=fn(_0xa1a4f7[_0x12eca3(0x35d)],_0xb833c5),_0x9931f4=_0x5e17a5[_0x12eca3(0x121)](_0x7065e1);_0x5e17a5[_0x12eca3(0x1ba)](_0x7065e1,(_0x52ac06-_0x9931f4[_0x12eca3(0x1da)])/0x2,_0x10f807-_0x513e55);}if(_0xa1a4f7[_0x12eca3(0x2bb)]){let _0x47dbf5=fn(_0xa1a4f7['bottomRight'],_0xb833c5),_0xc9fa67=_0x5e17a5['measureText'](_0x47dbf5);_0x5e17a5[_0x12eca3(0x1ba)](_0x47dbf5,_0x52ac06-_0xc9fa67[_0x12eca3(0x1da)]-_0x33a964,_0x10f807-_0x513e55);}_0x5e17a5[_0x12eca3(0x2e9)]();}[_0x48476b(0x242)](){const _0x468405=_0x48476b;let _0x433d40=this[_0x468405(0x10b)][_0x468405(0x2c8)](this['_config'][_0x468405(0x102)],_0x372cab[_0x468405(0x26c)]),_0x10f1a0=_0x433d40==null?void 0x0:_0x433d40[_0x468405(0x166)](this[_0x468405(0x2db)][_0x468405(0xe7)]),{headerFooter:_0x5371c5,isCustomHeaderFooter:_0x58d0bd,headerFooterSetting:_0x18d5f6}=this[_0x468405(0x15e)],{w:_0x5b9bea,h:_0x22f171}=this[_0x468405(0x2d9)],_0x25fdc9=this[_0x468405(0x284)]['getCanvas']()[_0x468405(0x2b1)]();if(!_0x433d40||!_0x10f1a0)return;if(_0x58d0bd&&_0x18d5f6){this[_0x468405(0x1bd)](_0x18d5f6,_0x433d40,_0x10f1a0);return;}_0x25fdc9['save'](),_0x25fdc9[_0x468405(0x14b)]=_0x468405(0x223)+_0x418563;let _0x1ed52b=0x13*this[_0x468405(0x2cb)],_0x353cd0=0x14*this[_0x468405(0x2cb)];if(_0x5371c5[_0x468405(0x287)](_0x468405(0x317))||_0x5371c5[_0x468405(0x287)](_0x468405(0x20b))){let _0x4a1bd1=new Date()[_0x468405(0x1e7)]();_0x5371c5[_0x468405(0x287)]('Date')?_0x5371c5[_0x468405(0x287)](_0x468405(0x20b))||(_0x4a1bd1=new Date()[_0x468405(0x1f9)]()):_0x4a1bd1=new Date()['toLocaleTimeString'](),_0x25fdc9[_0x468405(0x1ba)](_0x4a1bd1,_0x1ed52b,_0x22f171-_0x353cd0);}_0x5371c5[_0x468405(0x141)](_0x27cb5d=>{const _0x89fa27=_0x468405;switch(_0x27cb5d){case _0x89fa27(0x255):{let _0x436744=_0x433d40[_0x89fa27(0x21e)],_0x502690=_0x25fdc9[_0x89fa27(0x121)](_0x436744),_0x546095=_0x502690['fontBoundingBoxAscent']+_0x502690[_0x89fa27(0x1d7)];_0x25fdc9[_0x89fa27(0x1ba)](_0x436744,_0x1ed52b,_0x353cd0+_0x546095);break;}case _0x89fa27(0x232):{let _0x14a431=_0x10f1a0[_0x89fa27(0x2e3)](),_0x45b0ad=_0x25fdc9[_0x89fa27(0x121)](_0x14a431),_0x4c3cc7=_0x45b0ad[_0x89fa27(0x104)]+_0x45b0ad[_0x89fa27(0x1d7)];_0x25fdc9[_0x89fa27(0x1ba)](_0x14a431,_0x5b9bea-(_0x45b0ad[_0x89fa27(0x1da)]+_0x1ed52b),_0x353cd0+_0x4c3cc7);break;}case'PageSize':{let _0x3f0d28=''+this['_config'][_0x89fa27(0x159)],_0xb85a81=_0x25fdc9[_0x89fa27(0x121)](_0x3f0d28);_0x25fdc9[_0x89fa27(0x1ba)](_0x3f0d28,_0x5b9bea-(_0xb85a81[_0x89fa27(0x1da)]+_0x1ed52b),_0x22f171-_0x353cd0);break;}}}),_0x25fdc9[_0x468405(0x2e9)]();}[_0x48476b(0x2e7)](){const _0x3268c8=_0x48476b;let _0x42ef22=this['_accessor'][_0x3268c8(0x179)](_0x5bfbd3),_0x46b6f3=this['_engine'][_0x3268c8(0x356)]()['getContext']();_0x46b6f3['save']();let _0x4766b5=0x14*this[_0x3268c8(0x2cb)];_0x46b6f3[_0x3268c8(0x26f)]='rgba(0,0,0,0.3)',_0x46b6f3[_0x3268c8(0x14b)]=_0x3268c8(0x308)+_0x418563;let _0x18bffd=_0x46b6f3['measureText'](_0x42ef22['t'](_0x3268c8(0x1f3))),_0x26ffed=(this['paperSize']['w']-_0x18bffd[_0x3268c8(0x1da)])/0x2,_0x559efa=_0x18bffd['fontBoundingBoxAscent']+_0x18bffd['fontBoundingBoxDescent'];_0x46b6f3[_0x3268c8(0x1ba)](_0x42ef22['t'](_0x3268c8(0x1f3)),_0x26ffed,_0x4766b5+_0x559efa),_0x46b6f3['fillText'](_0x42ef22['t'](_0x3268c8(0x1f3)),_0x26ffed,this[_0x3268c8(0x2d9)]['h']-_0x4766b5),_0x46b6f3[_0x3268c8(0x2e9)]();}[_0x48476b(0x264)](){const _0x6d19c0=_0x48476b;this[_0x6d19c0(0x284)][_0x6d19c0(0x1b7)](),this[_0x6d19c0(0xfc)](),this[_0x6d19c0(0x242)](),this[_0x6d19c0(0x31d)]&&_0x26d849(this[_0x6d19c0(0x284)]['getCanvas']()[_0x6d19c0(0x2b1)](),this[_0x6d19c0(0x31d)],this[_0x6d19c0(0x31d)][_0x6d19c0(0x174)],this['_accessor'][_0x6d19c0(0x179)](_0x572dad)['getCurrentUser']());}[_0x48476b(0x17e)](){const _0x271cc9=_0x48476b;let _0x53ce0b=this[_0x271cc9(0x1aa)][_0x271cc9(0x33c)]['subscribeEvent'](()=>{const _0x322f71=_0x271cc9;this[_0x322f71(0x264)]();});this['disposeWithMe'](_0x53ce0b),this['waitForReady']()[_0x271cc9(0xfb)](()=>this['render']());}[_0x48476b(0x197)](_0x372c45){const _0x555448=_0x48476b;return this[_0x555448(0x311)][_0x555448(0x241)](_0x372c45);}['getImage'](){const _0x483b3d=_0x48476b;return this[_0x483b3d(0x284)][_0x483b3d(0x356)]()['toDataURL'](_0x483b3d(0x1ff),0x1);}};function vn(_0x38bfc8){const _0x3e05db=_0x48476b;let _0x41ce48=_0x38bfc8[_0x3e05db(0x2a1)]((_0x6fdc49,_0x4887a8)=>_0x6fdc49+_0x4887a8['pages'][_0x3e05db(0x118)],0x0),_0x217000=new Map(),_0x3c1d8f=new Map();_0x38bfc8['forEach'](_0x39635c=>{const _0x4ff4a0=_0x3e05db;let _0x11ba70=_0x39635c[_0x4ff4a0(0x22b)][_0x4ff4a0(0x118)],_0x1c213a=_0x3c1d8f[_0x4ff4a0(0x179)](_0x39635c[_0x4ff4a0(0xe7)])??0x0;_0x3c1d8f['set'](_0x39635c[_0x4ff4a0(0xe7)],_0x11ba70+_0x1c213a);});let _0x2f9185=0x0;return _0x38bfc8[_0x3e05db(0x1c9)](_0x2a1dd1=>{const _0x75bc28=_0x3e05db;let _0x9f48b=_0x2a1dd1['pages']['length'],_0x358ee1=_0x217000[_0x75bc28(0x179)](_0x2a1dd1[_0x75bc28(0xe7)])??0x0,_0x56b243=_0x2a1dd1['pages'][_0x75bc28(0x1c9)]((_0x4e1a13,_0x1c8e9d)=>(_0x2f9185++,{..._0x2a1dd1,'range':_0x4e1a13,'page':_0x2f9185,'pageTotal':_0x41ce48,'sheetPageTotal':_0x3c1d8f['get'](_0x2a1dd1[_0x75bc28(0xe7)]),'sheetPage':_0x1c8e9d+0x1+_0x358ee1}));return _0x217000[_0x75bc28(0x25a)](_0x2a1dd1[_0x75bc28(0xe7)])?_0x217000['set'](_0x2a1dd1['subUnitId'],_0x217000['get'](_0x2a1dd1[_0x75bc28(0xe7)])+_0x9f48b):_0x217000[_0x75bc28(0x2ee)](_0x2a1dd1['subUnitId'],_0x9f48b),_0x56b243;})[_0x3e05db(0xeb)]();}let yn=0x0,$=class{constructor(_0x1fac7d,_0x2d8a65,_0x1a5908,_0x24a5d4,_0x307c31,_0x3c07ad,_0x44cfb8){const _0x26254d=_0x48476b;this[_0x26254d(0x124)]=_0x1fac7d,this[_0x26254d(0x1cb)]=_0x2d8a65,this['_sheetPrintManagerService']=_0x1a5908,this['_renderManagerService']=_0x24a5d4,this[_0x26254d(0x1fc)]=_0x307c31,this[_0x26254d(0xda)]=_0x3c07ad,this['_printPreparationService']=_0x44cfb8;}async[_0x48476b(0xf4)](_0x3436c3,_0x44a9c7){const _0x2b7bc8=_0x48476b;await Promise['all'](Array[_0x2b7bc8(0x1b5)](new Set(_0x3436c3[_0x2b7bc8(0x1c9)](_0x1225b7=>_0x1225b7[_0x2b7bc8(0x102)])),_0x22b784=>this[_0x2b7bc8(0x2d3)][_0x2b7bc8(0x1d6)]({'unitId':_0x22b784,'unitType':_0x372cab[_0x2b7bc8(0x26c)],'dpr':0x1})));let _0x2cbdb2=vn(_0x3436c3),{ls:_0x1f1f70,pbk:_0x3da1fc}=this[_0x2b7bc8(0xda)][_0x2b7bc8(0x1c3)](_0x1378c3)??{},_0x54b7b0=_0x40e463()?0x1/0x0:sn(0x3,_0x1f1f70,_0x3da1fc)[_0x2b7bc8(0x159)];_0x2cbdb2=_0x2cbdb2[_0x2b7bc8(0x299)](0x0,_0x54b7b0);let _0x78c23a=document[_0x2b7bc8(0x11a)](_0x2b7bc8(0x219));_0x78c23a['className']=_0x5affe0;let _0x242606=_0x2cbdb2['map'](_0x3c9659=>{const _0x4c2741=_0x2b7bc8;let _0x2edcc1=new _n(this[_0x4c2741(0x124)],_0x3c9659,_0x44a9c7,!0x1);return _0x2edcc1[_0x4c2741(0x192)][_0x4c2741(0x1ec)]=_0x44824a,_0x2edcc1;});_0x242606[_0x2b7bc8(0x141)](_0x70c52e=>{const _0x3229eb=_0x2b7bc8;_0x78c23a[_0x3229eb(0x120)](_0x70c52e[_0x3229eb(0x192)]),_0x70c52e[_0x3229eb(0x192)][_0x3229eb(0x120)](_0x70c52e[_0x3229eb(0x116)]),_0x70c52e[_0x3229eb(0x1d6)](),_0x70c52e['markDirty'](!0x1);});let _0x3c66ee=this[_0x2b7bc8(0x313)]['layoutConfig'],_0x3e67d2=_0x2bdc36[_0x3c66ee[_0x2b7bc8(0x2d9)]],_0x29f778=_0x5496c9(_0x3e67d2[_0x2b7bc8(0x1da)],_0x3e67d2['height'],_0x3c66ee[_0x2b7bc8(0x237)]);return document[_0x2b7bc8(0x1ef)][_0x2b7bc8(0x120)](_0x29f778),document[_0x2b7bc8(0x1ef)][_0x2b7bc8(0x120)](_0x78c23a),await Promise[_0x2b7bc8(0x1c0)](_0x242606[_0x2b7bc8(0x1c9)](_0xe56ee8=>_0xe56ee8[_0x2b7bc8(0x197)]())),new Promise(_0xf2b057=>{const _0x220838=_0x2b7bc8;window[_0x220838(0x2e4)]=()=>{const _0x218f63=_0x220838;_0x242606[_0x218f63(0x141)](_0x320c2f=>{const _0x45fc84=_0x218f63;_0x320c2f['render'](),_0x320c2f[_0x45fc84(0x327)]();});},window[_0x220838(0x13d)]=()=>{const _0x1f57ff=_0x220838;_0x242606[_0x1f57ff(0x141)](_0x573c00=>{const _0x1606df=_0x1f57ff;_0x573c00[_0x1606df(0x279)]();}),document[_0x1f57ff(0x1ef)][_0x1f57ff(0x2bf)](_0x78c23a),document[_0x1f57ff(0x1ef)][_0x1f57ff(0x2bf)](_0x29f778),this[_0x1f57ff(0x1cb)][_0x1f57ff(0xee)](),this[_0x1f57ff(0x313)]['reset'](),this[_0x1f57ff(0x1fc)]['removeAll'](),_0x242606=[],_0xf2b057(!0x0);},window['print']();});}[_0x48476b(0x333)](_0x465fa9,_0x12c5ce,_0x2e25f1,_0x250710){const _0x307eea=_0x48476b;if(!cn(this[_0x307eea(0x124)])){let _0x35593d=(Date['now']()-yn)/0x3e8;if(yn=Date['now'](),_0x35593d<=0x1e)return!0x1;}let _0x1c03e3=this[_0x307eea(0x18f)]['getRenderUnitById'](_0x465fa9);if(!_0x1c03e3)return!0x1;let _0x3c5348=_0x1c03e3['with'](_0x50ffa5)[_0x307eea(0x154)](_0x12c5ce);if(!_0x3c5348)return!0x1;let _0x33e23f=_0x3c5348[_0x307eea(0x2da)][_0x2e25f1[_0x307eea(0x2f1)]]-(_0x3c5348[_0x307eea(0x2da)][_0x2e25f1[_0x307eea(0x18d)]-0x1]||0x0),_0x22d38c=_0x3c5348[_0x307eea(0x29b)][_0x2e25f1[_0x307eea(0x2ce)]]-(_0x3c5348[_0x307eea(0x29b)][_0x2e25f1[_0x307eea(0x358)]-0x1]||0x0),_0x1383bd=_0x3c5348[_0x307eea(0x201)],_0x16f63f=_0x3c5348['rowHeaderWidth'],_0x2c7a5b=1.5,_0x5c24f1=new _n(this['_injector'],{'unitId':_0x465fa9,'subUnitId':_0x12c5ce,'range':_0x2e25f1,'freeze':rn,'scale':_0x2c7a5b,'page':0x1,'pageSize':_0x250710?{'w':(_0x33e23f+_0x16f63f)*_0x2c7a5b+0x1,'h':(_0x22d38c+_0x1383bd)*_0x2c7a5b+0x1}:{'w':_0x33e23f*_0x2c7a5b+0x1,'h':_0x22d38c*_0x2c7a5b+0x1},'margin':_0x2b0a81[_0x55ad96[_0x307eea(0x2dd)]],'pageTotal':0x1,'sheetPageTotal':0x1,'sheetPage':0x1,'includeHeaderDimensions':_0x250710??!0x1},{'gridlines':!0x0,'hAlign':_0x52f62b['Middle'],'vAlign':_0x52f62b[_0x307eea(0x2a5)],'headerFooter':[],'headerFooterSetting':en,'isCustomHeaderFooter':!0x1},!0x1),_0x4ceb47=document['createElement'](_0x307eea(0x219));_0x4ceb47[_0x307eea(0x1ec)]=_0x5affe0,_0x5c24f1[_0x307eea(0x192)][_0x307eea(0x1ec)]=_0x44824a,_0x4ceb47['appendChild'](_0x5c24f1['container']),document[_0x307eea(0x1ef)]['appendChild'](_0x4ceb47),_0x5c24f1[_0x307eea(0x1d6)](),_0x5c24f1[_0x307eea(0x264)]();let _0x339964=_0x5c24f1['getImage']();return _0x5c24f1[_0x307eea(0x279)](),document[_0x307eea(0x1ef)][_0x307eea(0x2bf)](_0x4ceb47),_0x339964;}};$=J([q(0x0,_0x2fba99(_0x545b18)),q(0x1,K),q(0x2,Y),q(0x3,_0x509807),q(0x4,_0x929bb8),q(0x5,_0x3c85d4),q(0x6,_0x127df1)],$);function bn(_0x1a7db8,_0x303e6d){const _0x5b3c3a=_0x48476b;let _0x27bfff=atob(_0x1a7db8[_0x5b3c3a(0x2eb)](',')[0x1]),_0x1c0024=new ArrayBuffer(_0x27bfff[_0x5b3c3a(0x118)]),_0x1e0d89=new Uint8Array(_0x1c0024);for(let _0x4ad219=0x0;_0x4ad219<_0x27bfff[_0x5b3c3a(0x118)];_0x4ad219++)_0x1e0d89[_0x4ad219]=_0x27bfff[_0x5b3c3a(0x290)](_0x4ad219);return new Blob([_0x1c0024],{'type':_0x303e6d});}const xn={'type':_0x5bd6d1[_0x48476b(0x2dc)],'id':_0x48476b(0x17c),async 'handler'(_0x4ee2a1){const _0x2dd678=_0x48476b;var _0xeff7da;let _0x47c861=_0x4ee2a1[_0x2dd678(0x179)](_0x5c53c9),_0x8e2315=(_0xeff7da=_0x47c861[_0x2dd678(0x283)]())==null?void 0x0:_0xeff7da[0x0],_0x5c54ad=_0x4ee2a1[_0x2dd678(0x179)]($),_0x34af71=_0x47c861[_0x2dd678(0x25f)](),_0x34ef5e=_0x4ee2a1[_0x2dd678(0x179)](_0x929bb8),_0x429933=_0x4ee2a1[_0x2dd678(0x179)](_0x1af74b),_0xf44918=_0x4ee2a1[_0x2dd678(0x179)](_0x5bfbd3);if(!_0x8e2315||!_0x34af71)return!0x1;let _0x229873=_0xcb4cfc(_0x429933);if(!_0x229873)return!0x1;let {unitId:_0x48a784,subUnitId:_0x31f027}=_0x229873,_0x4c64d6=_0x5c54ad[_0x2dd678(0x333)](_0x48a784,_0x31f027,_0x8e2315[_0x2dd678(0x1ab)]);if(!_0x4c64d6)return!0x1;try{return await navigator['clipboard'][_0x2dd678(0x28c)]([new ClipboardItem({'image/png':bn(_0x4c64d6,_0x2dd678(0x1ff))})]),_0x34ef5e[_0x2dd678(0x1f0)]({'type':_0x48d934[_0x2dd678(0x266)],'content':_0xf44918['t'](_0x2dd678(0xe8))}),!0x0;}catch{return _0x34ef5e[_0x2dd678(0x1f0)]({'type':_0x48d934[_0x2dd678(0x1fe)],'content':_0xf44918['t'](_0x2dd678(0x309))}),!0x1;}}},Sn=_0x441567(_0x48476b(0x172));var Cn=class extends _0x5117f5{constructor(..._0xaf246c){const _0x4e9dff=_0x48476b;super(..._0xaf246c),G(this,_0x4e9dff(0x1a1),new _0xede9d0(!0x1)),G(this,_0x4e9dff(0x288),this['_visible$']);}get['visible'](){const _0x4eaa21=_0x48476b;return this[_0x4eaa21(0x1a1)][_0x4eaa21(0x26b)];}[_0x48476b(0x1f0)](){const _0x285af2=_0x48476b;this[_0x285af2(0x1a1)][_0x285af2(0x2a2)](!0x0);}['hide'](){const _0xc6c64=_0x48476b;this[_0xc6c64(0x1a1)][_0xc6c64(0x2a2)](!0x1);}[_0x48476b(0x279)](){const _0x36797c=_0x48476b;super[_0x36797c(0x279)](),this[_0x36797c(0x1a1)]['complete']();}};const wn='PRINT_GRID_SIDEBAR_COMPONENT',Tn={'id':'sheet.operation.open-print-grid-sidebar','type':_0x5bd6d1[_0x48476b(0x2dc)],'handler':_0x53d88f=>{const _0x1701f6=_0x48476b;let _0x2da080=_0x53d88f[_0x1701f6(0x179)](_0x5dcff3),_0x1f669b=_0x53d88f['get'](Sn),_0x3cf7fb=_0x53d88f[_0x1701f6(0x179)](Y),_0x22e1f6=_0x53d88f['get'](_0x5bfbd3);return _0x3cf7fb[_0x1701f6(0x191)](),_0x1f669b[_0x1701f6(0x1f0)](),_0x2da080[_0x1701f6(0x152)]({'header':{'title':_0x22e1f6['t'](_0x1701f6(0x180))},'children':{'label':wn},'onClose':()=>{},'width':0x138}),!0x0;}},En={'id':'sheet.operation.close-print-grid-sidebar','type':_0x5bd6d1['OPERATION'],'handler':_0x1dc6f7=>{const _0x4f40ec=_0x48476b;let _0xb57d37=_0x1dc6f7[_0x4f40ec(0x179)](_0x5dcff3);return _0x1dc6f7[_0x4f40ec(0x179)](Sn)['hide'](),_0xb57d37[_0x4f40ec(0xee)](),!0x0;}},Dn=_0x48476b(0x2a9);function On(_0x2d09d6){const _0x515112=_0x48476b;return{'id':Dn,'type':_0x4bbcb6[_0x515112(0x2f5)],'icon':'PrintIcon','tooltip':_0x515112(0x2aa),'hidden$':_0x44b85e(_0x2d09d6,_0x372cab[_0x515112(0x26c)]),'disabled$':_0x2b1a51(_0x2d09d6,{'workbookTypes':[_0x23050b]})};}function kn(){const _0x4237a3=_0x48476b;return{'id':X['id'],'type':_0x4bbcb6[_0x4237a3(0x330)],'title':_0x4237a3(0x2aa),'icon':'PrintIcon'};}function An(_0x3bc5ef){const _0x4d0aa4=_0x48476b;return{'id':xn['id'],'type':_0x4bbcb6[_0x4d0aa4(0x330)],'title':_0x4d0aa4(0x2d7),'icon':_0x4d0aa4(0x182),'tooltip':'sheets-print.screenshot.title','hidden$':_0x44b85e(_0x3bc5ef,_0x372cab[_0x4d0aa4(0x26c)]),'disabled$':_0x2b1a51(_0x3bc5ef,{'workbookTypes':[_0x23050b,_0x4e4ab9,_0x5f4b93],'worksheetTypes':[_0x552100,_0x27f4ff],'rangeTypes':[_0x479bb8]})};}function jn(){const _0x36daff=_0x48476b;return{'id':Tn['id'],'type':_0x4bbcb6[_0x36daff(0x330)],'title':'sheets-print.grid.title','icon':_0x36daff(0x310)};}const Mn={[_0x27b487[_0x48476b(0x178)]]:{[Dn]:{'order':0.01,'gridLayout':{'row':0x1,'column':0x3,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':On,[X['id']]:{'order':0x0,'menuItemFactory':kn},[Tn['id']]:{'order':0x1,'menuItemFactory':jn}}},[_0x5b67e4[_0x48476b(0x21a)]]:{[_0x173a91[_0x48476b(0x178)]]:{[xn['id']]:{'order':2.1,'menuItemFactory':An}}}};function _0x4150(_0x4efe9d,_0x5e9ef4){_0x4efe9d=_0x4efe9d-0xda;const _0x464b7b=_0x464b();let _0x4150ee=_0x464b7b[_0x4efe9d];return _0x4150ee;}var Nn=_0x48476b(0x261),Pn=_0x48476b(0x217);const Fn=_0x48476b(0x350),In=_0x48476b(0x248),Ln={};let Rn=class extends _0x5117f5{constructor(_0x2a1e9b){const _0x3c7a15=_0x48476b;super(),this[_0x3c7a15(0x2c7)](_0x2a1e9b[_0x3c7a15(0x135)]({'PrintIcon':_0x2bce31}));}};Rn=J([q(0x0,_0x2fba99(_0x5d9a61))],Rn);const zn={[_0x27b487[_0x48476b(0x178)]]:{[X['id']]:{'order':0.01,'menuItemFactory':kn}}};function Bn(_0x384d46){let [_0x3f83b5,_0x52f995]=_0x2f3fde();return _0x1e7a81(()=>{const _0x2133be=_0x4150;_0x384d46[_0x2133be(0xfb)](_0x607de3=>{_0x52f995(()=>_0x607de3);});},[]),_0x3f83b5;}const Vn=(_0x1b4a3e,_0x35803d)=>{let _0x4dd3fa=_0x51972e(!0x1);_0x1e7a81(()=>{const _0xbdb017=_0x4150;if(_0x4dd3fa['current'])return _0x1b4a3e();_0x4dd3fa[_0xbdb017(0x2f8)]=!0x0;},_0x35803d);},Hn=_0x5a9dbd((_0x12e584,_0x2df492)=>{const _0xbe8254=_0x48476b;let {config:_0xfbe332,previewScale:_0x179b93}=_0x12e584,_0x20528d=_0xf06a64(Y),_0x27c93d=_0xf06a64(_0x545b18),_0x2358cd=_0x51972e(null),_0xab3891=_0x20528d['paperSize'],_0x48479c=_0x3c9101(_0x20528d[_0xbe8254(0x29a)],_0x20528d[_0xbe8254(0x2ef)]),_0x2e6608=_0x3c9101(_0x20528d[_0xbe8254(0x1e5)],_0x20528d[_0xbe8254(0x2ca)]),_0x3489c8=Math['round'](_0x179b93*(0x31a/_0xab3891['w'])*0xa)/0xa,[_0x4f71c3]=_0x2f3fde(()=>new _n(_0x27c93d,_0xfbe332,_0x48479c,!0x0,_0x3489c8));return _0x1e7a81(()=>(_0x2358cd[_0xbe8254(0x2f8)]&&(_0x4f71c3[_0xbe8254(0x192)]['style'][_0xbe8254(0x1da)]=_0xbe8254(0x22e),_0x4f71c3[_0xbe8254(0x192)][_0xbe8254(0x344)]['height']=_0xbe8254(0x22e),_0x4f71c3[_0xbe8254(0x192)][_0xbe8254(0x344)][_0xbe8254(0x1c8)]=_0xbe8254(0x2c2),_0x2358cd['current'][_0xbe8254(0x120)](_0x4f71c3[_0xbe8254(0x192)]),_0x4f71c3[_0xbe8254(0x192)]['appendChild'](_0x4f71c3[_0xbe8254(0x116)])),_0x4f71c3[_0xbe8254(0x264)](),_0x4f71c3[_0xbe8254(0x17e)](),()=>{const _0x3e7aa0=_0xbe8254;var _0x50d9ef;queueMicrotask(()=>_0x4f71c3[_0x3e7aa0(0x279)]()),(_0x50d9ef=_0x2358cd[_0x3e7aa0(0x2f8)])==null||_0x50d9ef[_0x3e7aa0(0x2bf)](_0x4f71c3['container']);}),[_0x4f71c3]),Vn(()=>{const _0x33c4f4=_0xbe8254;_0x4f71c3[_0x33c4f4(0x2ef)]=_0x48479c,_0x4f71c3[_0x33c4f4(0x264)]();},[_0x48479c]),Vn(()=>{const _0x5b3ff5=_0xbe8254;_0x4f71c3[_0x5b3ff5(0x205)](_0x3489c8),_0x4f71c3[_0x5b3ff5(0x1aa)][_0x5b3ff5(0x14d)](),_0x4f71c3[_0x5b3ff5(0x264)]();},[_0x3489c8]),Vn(()=>{const _0x3003c5=_0xbe8254;_0x4f71c3[_0x3003c5(0x2ad)](_0xfbe332),_0x4f71c3['render']();},[_0xfbe332[_0xbe8254(0x1b4)]['startRow'],_0xfbe332['freeze'][_0xbe8254(0x18d)],_0xfbe332[_0xbe8254(0x1b4)][_0xbe8254(0x1ac)],_0xfbe332[_0xbe8254(0x1b4)][_0xbe8254(0x239)],_0xfbe332[_0xbe8254(0x1ab)]['startRow'],_0xfbe332[_0xbe8254(0x1ab)][_0xbe8254(0x2ce)],_0xfbe332[_0xbe8254(0x1ab)][_0xbe8254(0x18d)],_0xfbe332[_0xbe8254(0x1ab)][_0xbe8254(0x2f1)],_0xfbe332[_0xbe8254(0x133)],_0x2e6608[_0xbe8254(0xff)]]),_0x347b1f(_0xbe8254(0x219),{'ref':_0x2df492,'children':_0x347b1f(_0xbe8254(0x219),{'ref':_0x2358cd,'className':'univer-relative\x20univer-mx-auto\x20univer-mt-7\x20univer-flex-none\x20univer-bg-gray-0\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','style':{'width':_0xab3891['w']*_0x3489c8,'height':_0xab3891['h']*_0x3489c8}})});});function Un(_0x38b503){const _0xae8ec3=_0x48476b;let {open:_0x581676,onClose:_0x2c655f}=_0x38b503,_0x1346a9=_0xf06a64(_0x5bfbd3),_0x1bca3c=_0xf06a64(Y),[_0x2b326e,_0x532a33]=_0x2f3fde(()=>({..._0x1bca3c[_0xae8ec3(0x2ef)][_0xae8ec3(0x158)]??en})),_0xac0edc=(_0x1e6493,_0x40b445)=>{_0x532a33(_0x20850a=>({..._0x20850a,[_0x1e6493]:_0x40b445}));};return _0x347b1f(_0x4d676c,{'open':_0x581676,'title':_0x1346a9['t'](_0xae8ec3(0x238)),'showCancel':!0x0,'showOk':!0x0,'onCancel':_0x2c655f,'onClose':_0x2c655f,'onOk':()=>{_0x1bca3c['updateRenderConfig']({'headerFooterSetting':_0x2b326e}),_0x2c655f();},'children':_0x446e09('div',{'className':'univer-grid\x20univer-max-h-[60vh]\x20univer-gap-4\x20univer-overflow-y-auto','children':[_0x446e09('section',{'className':'univer-grid\x20univer-gap-2','children':[_0x347b1f(_0xae8ec3(0x219),{'className':_0xae8ec3(0x176),'children':_0x1346a9['t'](_0xae8ec3(0x137))}),_0x347b1f(_0x322ec5,{'label':_0x1346a9['t']('sheets-print.headerFooter.left'),'children':_0x347b1f(_0x4ff3c3,{'value':_0x2b326e[_0xae8ec3(0x30a)],'onChange':_0x5d401f=>_0xac0edc(_0xae8ec3(0x30a),_0x5d401f)})}),_0x347b1f(_0x322ec5,{'label':_0x1346a9['t']('sheets-print.headerFooter.center'),'children':_0x347b1f(_0x4ff3c3,{'value':_0x2b326e[_0xae8ec3(0x28b)],'onChange':_0x48be57=>_0xac0edc(_0xae8ec3(0x28b),_0x48be57)})}),_0x347b1f(_0x322ec5,{'label':_0x1346a9['t'](_0xae8ec3(0x296)),'children':_0x347b1f(_0x4ff3c3,{'value':_0x2b326e['topRight'],'onChange':_0x5e49be=>_0xac0edc(_0xae8ec3(0x2d1),_0x5e49be)})})]}),_0x446e09('section',{'className':_0xae8ec3(0x12b),'children':[_0x347b1f(_0xae8ec3(0x219),{'className':_0xae8ec3(0x176),'children':_0x1346a9['t'](_0xae8ec3(0x28a))}),_0x347b1f(_0x322ec5,{'label':_0x1346a9['t'](_0xae8ec3(0x22d)),'children':_0x347b1f(_0x4ff3c3,{'value':_0x2b326e[_0xae8ec3(0x272)],'onChange':_0x508300=>_0xac0edc('bottomLeft',_0x508300)})}),_0x347b1f(_0x322ec5,{'label':_0x1346a9['t'](_0xae8ec3(0x22c)),'children':_0x347b1f(_0x4ff3c3,{'value':_0x2b326e['bottomCenter'],'onChange':_0x4482dd=>_0xac0edc(_0xae8ec3(0x35d),_0x4482dd)})}),_0x347b1f(_0x322ec5,{'label':_0x1346a9['t'](_0xae8ec3(0x296)),'children':_0x347b1f(_0x4ff3c3,{'value':_0x2b326e[_0xae8ec3(0x2bb)],'onChange':_0x154bd2=>_0xac0edc(_0xae8ec3(0x2bb),_0x154bd2)})})]})]})});}const Wn=_0x1112c2(_0x2d6c39=>{const _0xf32bae=_0x48476b;var _0x5de6c4,_0x407b44,_0x2629b3,_0x1b5009,_0x244d13;let {onShowFooterHeaderEditor:_0x306928,DropdownComponent:_0x28e8e4=_0x50e376,SelectComponent:_0x3de48c=_0xffaa06}=_0x2d6c39,_0x4962f7=_0xf06a64(Y),_0x545888=_0x3c9101(_0x4962f7[_0xf32bae(0x1e5)],_0x4962f7['layoutConfig']),_0x30602c=_0x3c9101(_0x4962f7[_0xf32bae(0x29a)],_0x4962f7[_0xf32bae(0x2ef)]),_0x301c2a=_0xf06a64(_0x5bfbd3),_0x447b6e=_0xf06a64(_0x1af74b),_0x112cb9=_0xf06a64(_0x39abdb),[_0x69ad08,_0x32f474]=_0x2f3fde(null),_0x4fa7f1=((_0x5de6c4=_0xf06a64(_0x3c85d4)[_0xf32bae(0x1c3)]('sheets-print.config'))==null?void 0x0:_0x5de6c4[_0xf32bae(0x161)])??!0x1;_0x1e7a81(()=>{const _0x35d7b8=_0xf32bae;let _0xc19db1=!0x1;return _0x112cb9[_0x35d7b8(0x208)](_0x4588ab)[_0x35d7b8(0xfb)](_0x4d5944=>{const _0x24cba1=_0x35d7b8;if(_0xc19db1)return;let _0x4f2c27,_0x34a701;(_0x4d5944==null?void 0x0:_0x4d5944[_0x24cba1(0x341)])===_0x358712[_0x24cba1(0x27b)]&&_0x4d5944[_0x24cba1(0xfd)][_0x24cba1(0x174)]&&(_0x4f2c27=new Image(),_0x4f2c27[_0x24cba1(0x110)]=_0x4d5944[_0x24cba1(0xfd)][_0x24cba1(0x174)][_0x24cba1(0x109)]),(_0x4d5944==null?void 0x0:_0x4d5944[_0x24cba1(0x341)])===_0x358712[_0x24cba1(0x18a)]&&_0x4d5944!=null&&_0x4d5944[_0x24cba1(0xfd)][_0x24cba1(0x1e8)]&&(_0x34a701=_0x4d5944[_0x24cba1(0xfd)][_0x24cba1(0x1e8)]);let _0xfced9=_0x4d5944?{..._0x4d5944,'user':_0x34a701,'image':_0x4f2c27}:null;_0x32f474(_0xfced9),_0x4fa7f1&&_0x4962f7[_0x24cba1(0x224)]({'watermark':_0xfced9});}),()=>{_0xc19db1=!0x0;};},[_0x4fa7f1,_0x112cb9,_0x4962f7]);let _0xb3d6a6=_0x447b6e[_0xf32bae(0x2d5)](_0x372cab[_0xf32bae(0x26c)]),_0x5428a7=_0xb3d6a6[_0xf32bae(0x165)]()[_0xf32bae(0x251)](_0x2b528f=>!_0x2b528f[_0xf32bae(0x169)]()),_0x1aff1e=_0xb3d6a6[_0xf32bae(0x2d0)]();if(!_0x1aff1e)return console[_0xf32bae(0x302)]('No\x20active\x20sheet\x20found'),null;let _0xe63a22=(_0x3cedda,_0x40fcfb)=>{const _0x292d43=_0xf32bae;let _0x1afd2c=Math[_0x292d43(0x30c)](0x0,_0x40fcfb||0x0),_0x40454c=_0x545888['marginCustom']||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x4962f7['updateLayoutConfig']({'marginCustom':{..._0x40454c,[_0x3cedda]:_0x1afd2c}});},_0x5262da=_0x1aff1e[_0xf32bae(0x2d8)](),_0x59e684=_0x545888[_0xf32bae(0x113)]!=='Workbook'&&_0x5262da[_0xf32bae(0x1ac)]<=0x0,_0x1a1cef=_0x545888[_0xf32bae(0x113)]!==_0xf32bae(0x31a)&&_0x5262da[_0xf32bae(0x239)]<=0x0;return _0x347b1f(_0xf32bae(0x219),{'className':_0x129659('univer-h-full\x20univer-overflow-y-auto',_0x1a8f1b),'children':_0x446e09(_0xf32bae(0x219),{'className':_0xf32bae(0x2a8),'children':[_0x347b1f(_0x322ec5,{'label':_0x301c2a['t']('sheets-print.area.title'),'children':_0x347b1f(_0x3de48c,{'className':'univer-w-full','value':''+_0x545888['area'],'onChange':_0x497705=>{const _0x4e4bce=_0xf32bae;_0x497705==='Workbook'?_0x4962f7[_0x4e4bce(0x2fa)]({'area':_0x497705,'subUnitIds':_0x5428a7[_0x4e4bce(0x1c9)](_0x371580=>_0x371580[_0x4e4bce(0x2f3)]())}):_0x4962f7[_0x4e4bce(0x2fa)]({'area':_0x497705});},'options':[{'label':_0x301c2a['t'](_0xf32bae(0x295)),'value':_0xf32bae(0x2bd)},{'label':_0x301c2a['t'](_0xf32bae(0x17f)),'value':'Workbook'},{'label':_0x301c2a['t']('sheets-print.area.currentSelection'),'value':_0xf32bae(0x34f)},{'label':_0x301c2a['t']('sheets-print.area.allSelection'),'value':'AllSelection'}]})}),_0x545888['area']==='Workbook'?_0x347b1f(_0x322ec5,{'label':_0x301c2a['t'](_0xf32bae(0x21c)),'children':_0x347b1f(_0x28e8e4,{'overlay':_0x347b1f(_0xf32bae(0x219),{'className':_0x129659(_0xf32bae(0x14f),_0x1a8f1b),'children':_0x347b1f(_0x35748f,{'direction':_0xf32bae(0x2cc),'className':_0xf32bae(0x2a7),'value':_0x545888[_0xf32bae(0x35b)][_0xf32bae(0x1c9)](_0x2c1fd4=>typeof _0x2c1fd4==_0xf32bae(0x1eb)?_0x2c1fd4:_0x2c1fd4['id']),'onChange':_0x404f16=>{const _0x2120e4=_0xf32bae;let _0x25b1d7=new Set(_0x404f16);if(_0x25b1d7['size']===0x0)_0x4962f7[_0x2120e4(0x2fa)]({'subUnitIds':_0x5428a7['map'](_0xf2a7fb=>_0xf2a7fb[_0x2120e4(0x2f3)]())});else{let _0x318984=[];_0x5428a7[_0x2120e4(0x141)](_0x55f9e4=>{const _0x434396=_0x2120e4;let _0x10feb2=_0x55f9e4[_0x434396(0x2f3)]();_0x25b1d7[_0x434396(0x25a)](_0x10feb2)&&_0x318984[_0x434396(0x10d)](_0x10feb2);}),_0x4962f7['updateLayoutConfig']({'subUnitIds':_0x318984});}},'children':_0x5428a7['map'](_0x46ef88=>_0x347b1f(_0x13d237,{'value':_0x46ef88[_0xf32bae(0x2f3)](),'children':_0x46ef88['getName']()},_0x46ef88[_0xf32bae(0x2f3)]()))})}),'children':_0x446e09('div',{'className':_0x129659(_0xf32bae(0x334),_0x48b45b),'children':[_0x347b1f(_0xf32bae(0x32c),{'className':_0xf32bae(0x15a),'children':_0x545888[_0xf32bae(0x35b)][_0xf32bae(0x118)]===_0x5428a7[_0xf32bae(0x118)]||_0x545888[_0xf32bae(0x35b)][_0xf32bae(0x118)]===0x0?_0x301c2a['t'](_0xf32bae(0x1f2)):''+_0x545888['subUnitIds'][_0xf32bae(0x118)]+_0x301c2a['t'](_0xf32bae(0x31f))}),_0x347b1f(_0x4eeedc,{})]})})}):null,_0x347b1f(_0x322ec5,{'label':_0x301c2a['t'](_0xf32bae(0x18b)),'children':_0x347b1f(_0x3de48c,{'className':_0xf32bae(0x10e),'value':_0x545888[_0xf32bae(0x2d9)],'options':[{'label':_0x301c2a['t']('sheets-print.size.letter'),'value':_0x458dd5[_0xf32bae(0x23a)]},{'label':_0x301c2a['t']('sheets-print.size.tabloid'),'value':_0x458dd5[_0xf32bae(0x170)]},{'label':_0x301c2a['t'](_0xf32bae(0x230)),'value':_0x458dd5['Legal']},{'label':_0x301c2a['t'](_0xf32bae(0x26a)),'value':_0x458dd5[_0xf32bae(0x262)]},{'label':_0x301c2a['t'](_0xf32bae(0x328)),'value':_0x458dd5[_0xf32bae(0x245)]},{'label':_0x301c2a['t']('sheets-print.size.folio'),'value':_0x458dd5[_0xf32bae(0x1a7)]},{'label':_0x301c2a['t'](_0xf32bae(0x1ca)),'value':_0x458dd5['A3']},{'label':_0x301c2a['t'](_0xf32bae(0x12e)),'value':_0x458dd5['A4']},{'label':_0x301c2a['t']('sheets-print.size.a5'),'value':_0x458dd5['A5']},{'label':_0x301c2a['t'](_0xf32bae(0x2e6)),'value':_0x458dd5['B4']},{'label':_0x301c2a['t']('sheets-print.size.b5'),'value':_0x458dd5['B5']}],'onChange':_0x77a15f=>{const _0xa6dafe=_0xf32bae;_0x4962f7[_0xa6dafe(0x2fa)]({'paperSize':_0x77a15f});}})}),_0x347b1f(_0x322ec5,{'label':_0x301c2a['t']('sheets-print.margin.title'),'children':_0x347b1f(_0x3de48c,{'className':_0xf32bae(0x10e),'value':_0x545888[_0xf32bae(0xff)],'options':[{'label':_0x301c2a['t']('sheets-print.margin.normal'),'value':_0x55ad96[_0xf32bae(0x1b8)]},{'label':_0x301c2a['t'](_0xf32bae(0x30b)),'value':_0x55ad96['Narrow']},{'label':_0x301c2a['t'](_0xf32bae(0x204)),'value':_0x55ad96[_0xf32bae(0x181)]},{'label':_0x301c2a['t'](_0xf32bae(0x2b6)),'value':_0x55ad96[_0xf32bae(0xe0)]}],'onChange':_0x1e9dba=>{const _0x9ae966=_0xf32bae;let _0x1cb0e1=_0x2b0a81[_0x545888['margin']];_0x4962f7[_0x9ae966(0x2fa)]({'margin':_0x1e9dba,'marginCustom':_0x1e9dba===_0x55ad96[_0x9ae966(0xe0)]?_0x1cb0e1:_0x2b0a81[_0x1e9dba]});}})}),_0x545888[_0xf32bae(0xff)]===_0x55ad96[_0xf32bae(0xe0)]&&_0x347b1f(_0x322ec5,{'children':_0x446e09('div',{'className':_0xf32bae(0x1b0),'children':[_0x446e09('div',{'children':[_0x347b1f(_0xf32bae(0x167),{'className':_0xf32bae(0x240),'children':_0x301c2a['t'](_0xf32bae(0x1b9))}),_0x347b1f(_0x4ff3c3,{'type':_0xf32bae(0x274),'value':String(((_0x407b44=_0x545888[_0xf32bae(0x27f)])==null?void 0x0:_0x407b44[_0xf32bae(0x1d8)])||0x0),'onChange':_0x55b64b=>_0xe63a22(_0xf32bae(0x1d8),Number(_0x55b64b))})]}),_0x446e09('div',{'children':[_0x347b1f(_0xf32bae(0x167),{'className':_0xf32bae(0x240),'children':_0x301c2a['t'](_0xf32bae(0x2ba))}),_0x347b1f(_0x4ff3c3,{'type':'number','value':String(((_0x2629b3=_0x545888[_0xf32bae(0x27f)])==null?void 0x0:_0x2629b3['bottom'])||0x0),'onChange':_0x5569a2=>_0xe63a22(_0xf32bae(0x27a),Number(_0x5569a2))})]}),_0x446e09(_0xf32bae(0x219),{'children':[_0x347b1f(_0xf32bae(0x167),{'className':_0xf32bae(0x240),'children':_0x301c2a['t'](_0xf32bae(0x2a3))}),_0x347b1f(_0x4ff3c3,{'type':_0xf32bae(0x274),'value':String(((_0x1b5009=_0x545888[_0xf32bae(0x27f)])==null?void 0x0:_0x1b5009[_0xf32bae(0x11d)])||0x0),'onChange':_0xa97827=>_0xe63a22('left',Number(_0xa97827))})]}),_0x446e09(_0xf32bae(0x219),{'children':[_0x347b1f('label',{'className':_0xf32bae(0x240),'children':_0x301c2a['t'](_0xf32bae(0x271))}),_0x347b1f(_0x4ff3c3,{'type':_0xf32bae(0x274),'value':String(((_0x244d13=_0x545888['marginCustom'])==null?void 0x0:_0x244d13[_0xf32bae(0x2b9)])||0x0),'onChange':_0x3e1082=>_0xe63a22(_0xf32bae(0x2b9),Number(_0x3e1082))})]})]})}),_0x347b1f(_0x322ec5,{'label':_0x301c2a['t']('sheets-print.orientation.title'),'children':_0x446e09(_0x5aad88,{'value':_0x545888['direction'],'onChange':_0x29d97a=>{const _0x3512b2=_0xf32bae;_0x4962f7[_0x3512b2(0x2fa)]({'direction':_0x29d97a});},'children':[_0x347b1f(_0x33e82b,{'value':_0x20bf8b[_0xf32bae(0x19e)],'children':_0x301c2a['t'](_0xf32bae(0x16a))}),_0x347b1f(_0x33e82b,{'value':_0x20bf8b['Landscape'],'children':_0x301c2a['t'](_0xf32bae(0x150))})]})}),_0x347b1f(_0x322ec5,{'label':_0x301c2a['t'](_0xf32bae(0x2ae)),'children':_0x347b1f(_0x3de48c,{'className':_0xf32bae(0x10e),'value':_0x545888[_0xf32bae(0x133)],'options':[{'label':_0x301c2a['t']('sheets-print.scale.normal'),'value':_0x341f77[_0xf32bae(0x11e)]},{'label':_0x301c2a['t'](_0xf32bae(0x24b)),'value':_0x341f77[_0xf32bae(0x2b0)]},{'label':_0x301c2a['t'](_0xf32bae(0x2e0)),'value':_0x341f77[_0xf32bae(0x24e)]},{'label':_0x301c2a['t']('sheets-print.scale.fitPage'),'value':_0x341f77[_0xf32bae(0x212)]}],'onChange':_0x2a381b=>{const _0x570663=_0xf32bae;_0x4962f7[_0x570663(0x2fa)]({'scale':_0x2a381b});}})}),_0x446e09(_0x322ec5,{'label':_0x301c2a['t']('sheets-print.formatting.title'),'children':[_0x347b1f(_0x13d237,{'checked':_0x30602c[_0xf32bae(0x347)],'onChange':_0x28d5d9=>{const _0x176b68=_0xf32bae;_0x4962f7[_0x176b68(0x224)]({'gridlines':_0x28d5d9});},'children':_0x301c2a['t'](_0xf32bae(0x114))}),_0x69ad08&&!_0x4fa7f1?_0x347b1f('div',{'className':_0xf32bae(0x35a),'children':_0x347b1f(_0x13d237,{'checked':!!_0x30602c[_0xf32bae(0x34b)],'onChange':async _0x269097=>{const _0x1d866f=_0xf32bae;_0x269097?_0x4962f7[_0x1d866f(0x224)]({'watermark':_0x69ad08}):_0x4962f7[_0x1d866f(0x224)]({'watermark':void 0x0});},'children':_0x301c2a['t'](_0xf32bae(0x234))})}):null]}),_0x347b1f(_0x322ec5,{'label':_0x301c2a['t']('sheets-print.align.title'),'children':_0x446e09(_0xf32bae(0x219),{'className':_0xf32bae(0x254),'children':[_0x347b1f(_0x3de48c,{'className':_0xf32bae(0x17a),'value':_0x30602c[_0xf32bae(0x194)],'options':[{'label':_0x301c2a['t'](_0xf32bae(0x2c5)),'value':_0x52f62b[_0xf32bae(0x2a5)]},{'label':_0x301c2a['t'](_0xf32bae(0x25d)),'value':_0x52f62b['Start']},{'label':_0x301c2a['t']('sheets-print.align.horizontal.end'),'value':_0x52f62b[_0xf32bae(0x316)]}],'onChange':_0x370d06=>{_0x4962f7['updateRenderConfig']({'hAlign':_0x370d06});}}),_0x347b1f(_0x3de48c,{'className':_0xf32bae(0x17a),'value':_0x30602c[_0xf32bae(0x307)],'options':[{'label':_0x301c2a['t']('sheets-print.align.vertical.start'),'value':_0x52f62b['Start']},{'label':_0x301c2a['t'](_0xf32bae(0x276)),'value':_0x52f62b[_0xf32bae(0x316)]},{'label':_0x301c2a['t'](_0xf32bae(0x22f)),'value':_0x52f62b[_0xf32bae(0x2a5)]}],'onChange':_0x9f2a05=>{const _0x4e03e0=_0xf32bae;_0x4962f7[_0x4e03e0(0x224)]({'vAlign':_0x9f2a05});}})]})}),_0x446e09(_0x322ec5,{'collapsable':!0x0,'label':_0x301c2a['t'](_0xf32bae(0x20c)),'children':[_0x446e09(_0x35748f,{'direction':_0xf32bae(0x2cc),'disabled':_0x30602c[_0xf32bae(0x155)],'value':_0x30602c[_0xf32bae(0x32f)],'onChange':_0x53043a=>{_0x4962f7['updateRenderConfig']({'headerFooter':_0x53043a});},'children':[_0x347b1f(_0x13d237,{'value':_0xf32bae(0x2d2),'children':_0x301c2a['t']('sheets-print.headerFooter.page')}),_0x347b1f(_0x13d237,{'value':_0xf32bae(0x255),'children':_0x301c2a['t']('sheets-print.headerFooter.workbook')}),_0x347b1f(_0x13d237,{'value':'WorksheetTitle','children':_0x301c2a['t']('sheets-print.headerFooter.sheet')}),_0x347b1f(_0x13d237,{'value':_0xf32bae(0x317),'children':_0x301c2a['t'](_0xf32bae(0x2d6))}),_0x347b1f(_0x13d237,{'value':_0xf32bae(0x20b),'children':_0x301c2a['t'](_0xf32bae(0x160))})]}),_0x347b1f(_0x322ec5,{'className':_0xf32bae(0x35a),'label':_0x347b1f(_0x13d237,{'checked':_0x30602c['isCustomHeaderFooter'],'onChange':()=>{const _0x5a7a31=_0xf32bae;_0x4962f7[_0x5a7a31(0x224)]({'isCustomHeaderFooter':!_0x30602c[_0x5a7a31(0x155)]});},'children':_0x301c2a['t'](_0xf32bae(0xef))}),'children':_0x30602c[_0xf32bae(0x155)]?_0x347b1f(_0x5c88b2,{'className':_0xf32bae(0x15c),'size':_0xf32bae(0x24a),'variant':_0xf32bae(0x12f),'onClick':()=>{_0x306928();},'children':_0x301c2a['t'](_0xf32bae(0x238))}):null})]}),_0x347b1f(_0x322ec5,{'collapsable':!0x0,'label':_0x301c2a['t'](_0xf32bae(0x2f2)),'children':_0x446e09(_0x35748f,{'direction':_0xf32bae(0x2cc),'value':_0x545888[_0xf32bae(0x1b4)],'onChange':_0xc07821=>{const _0x7665c3=_0xf32bae;_0x4962f7[_0x7665c3(0x2fa)]({'freeze':_0xc07821});},'children':[_0x347b1f(_0x13d237,{'disabled':_0x1a1cef,'value':_0xf32bae(0x203),'children':_0x301c2a['t'](_0xf32bae(0x218))}),_0x347b1f(_0x13d237,{'disabled':_0x59e684,'value':_0xf32bae(0x2e8),'children':_0x301c2a['t'](_0xf32bae(0x338))})]})}),_0x446e09(_0x322ec5,{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x301c2a['t'](_0xf32bae(0x30f)),'children':[_0x347b1f(_0x322ec5,{'className':_0xf32bae(0x221),'label':_0x301c2a['t'](_0xf32bae(0x1b2)),'children':_0x347b1f(_0x4ff3c3,{'value':_0x545888['maxRowsEachPage']===0x1/0x0?'':''+_0x545888[_0xf32bae(0x144)],'onChange':_0xceed30=>{const _0x25295b=_0xf32bae;_0x4962f7[_0x25295b(0x2fa)]({'maxRowsEachPage':!_0xceed30||Number[_0x25295b(0x269)](Number(_0xceed30))?0x1/0x0:Number(_0xceed30)});}})}),_0x347b1f(_0x322ec5,{'label':_0x301c2a['t']('sheets-print.area.maxColumnsEachPage'),'children':_0x347b1f(_0x4ff3c3,{'value':_0x545888['maxColumnsEachPage']===0x1/0x0?'':''+_0x545888[_0xf32bae(0x2f9)],'onChange':_0x598302=>{const _0xb89f2d=_0xf32bae;_0x4962f7['updateLayoutConfig']({'maxColumnsEachPage':!_0x598302||Number[_0xb89f2d(0x269)](Number(_0x598302))?0x1/0x0:Number(_0x598302)});}})})]})]})});});function Gn(_0x5329d6){return _0x347b1f(Wn,{..._0x5329d6,'DropdownComponent':_0x3c1d17,'SelectComponent':_0x51a5da});}function Kn(){const _0x1f7d4f=_0x48476b;let [_0x15470e,_0x340169]=_0x2f3fde(!0x1),[_0x542cf8,_0x26a61c]=_0x2f3fde(!0x1),[_0xc84c10,_0x335496]=_0x2f3fde(!0x1),[_0x5c697d,_0x5357ba]=_0x2f3fde(()=>window[_0x1f7d4f(0xf7)]),_0x10c151=_0xf06a64(Y),_0x4a013e=_0xf06a64(_0xbc3d2e),_0x3b7656=_0x3c9101(_0x10c151[_0x1f7d4f(0x263)],[]),_0x1ce088=_0xf06a64(K),_0x415c70=_0x3c9101(_0x1ce088[_0x1f7d4f(0x267)],_0x1ce088[_0x1f7d4f(0x2b7)]),_0x3533fd=_0xf06a64(_0x1af74b),_0x4fe8ff=_0xf06a64(_0x5bfbd3),_0x316f9a=_0xf06a64(_0x545b18),_0x1e115b=_0xf06a64(_0x3c85d4),_0x4bb82f=_0xf06a64(_0x929bb8),_0x2f9257=_0x51972e(null),{ls:_0x276dd8,pbk:_0x576236}=_0x1e115b[_0x1f7d4f(0x1c3)](_0x1378c3)??{},{limit:_0xcc33b9,isPro:_0x3002fe}=_0x447bff(()=>{let {page:_0x5de302,isPro:_0xe09e51}=sn(0x3,_0x276dd8,_0x576236);return{'limit':_0x5de302,'isPro':_0xe09e51};},[_0x276dd8,_0x576236]),_0x5040fd=Bn(import(`@univerjs-pro/collaboration-client`).then(_0x23a22e=>_0x23a22e['CollaborationController'],()=>void 0x0));_0x1e7a81(()=>{const _0xfc1351=_0x1f7d4f;let _0x2fab46=()=>_0x5357ba(window[_0xfc1351(0xf7)]);return window[_0xfc1351(0x23e)](_0xfc1351(0x14d),_0x2fab46),()=>window['removeEventListener'](_0xfc1351(0x14d),_0x2fab46);},[]),_0x1e7a81(()=>{const _0x6e9ba8=_0x1f7d4f;var _0x2b6edf;if(!_0x5040fd)return;let _0x169423=_0x3533fd['getCurrentUnitOfType'](_0x372cab[_0x6e9ba8(0x26c)]);if(!_0x169423)return;let _0x59ee61=_0x316f9a[_0x6e9ba8(0x179)](_0x5040fd,_0x45cf88[_0x6e9ba8(0xed)]),_0x36818b=_0x59ee61==null||(_0x2b6edf=_0x59ee61['getCollabEntity'](_0x169423['getUnitId']()))==null?void 0x0:_0x2b6edf[_0x6e9ba8(0x26d)]();return()=>_0x36818b==null?void 0x0:_0x36818b[_0x6e9ba8(0x279)]();},[_0x5040fd,_0x316f9a,_0x3533fd]);let _0xcd5a23=_0x447bff(()=>vn(_0x3b7656)[_0x1f7d4f(0x299)](0x0,_0xcc33b9),[_0xcc33b9,_0x3b7656]),_0x7dbc80=_0x10c151[_0x1f7d4f(0x2d9)],_0x4bcc14=Math[_0x1f7d4f(0x28f)](0x31a,Math[_0x1f7d4f(0x30c)](0x1,_0x5c697d-0x20))/0x31a,_0x2a5bf2=Math[_0x1f7d4f(0x127)](_0x4bcc14*(0x31a/_0x7dbc80['w'])*0xa)/0xa,[_0x33610c,{wrapperStyle:_0x186c3d,containerProps:_0x6cd35f}]=_0x3820f9(_0xcd5a23,{'containerTarget':_0x2f9257,'itemHeight':_0x7dbc80['h']*_0x2a5bf2+0x1c,'overscan':0x3}),_0x4c9d20=async()=>{const _0x41161a=_0x1f7d4f;await _0x4a013e[_0x41161a(0x354)](ln['id']);},_0x4255c1=async()=>{const _0x1ed1d9=_0x1f7d4f;_0x335496(!0x0),_0x4bb82f[_0x1ed1d9(0x1f0)]({'content':_0x4fe8ff['t'](_0x1ed1d9(0x23d)),'type':_0x48d934[_0x1ed1d9(0x301)]}),await _0x3cf9f1(0x12c),await _0x4a013e[_0x1ed1d9(0x354)](Z['id']);};return _0x446e09('div',{'data-u-comp':'mobile-sheet-print-view','className':_0x1f7d4f(0x24d),'children':[_0x347b1f(_0x1f7d4f(0x312),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-bg-gray-900','children':_0x446e09(_0x1f7d4f(0x32c),{'className':_0x1f7d4f(0x176),'children':[_0x4fe8ff['t']('sheets-print.header.total'),_0xcd5a23[_0x1f7d4f(0x118)],_0x4fe8ff['t'](_0x1f7d4f(0x175))]})}),_0x347b1f(_0x1f7d4f(0x219),{'ref':_0x2f9257,'className':_0x129659('univer-flex-1\x20univer-overflow-auto',_0x1a8f1b),'aria-busy':_0x415c70,..._0x6cd35f,'children':_0x415c70?_0x347b1f('div',{'className':_0x1f7d4f(0x1d0),'role':_0x1f7d4f(0x19c),'aria-label':_0x4fe8ff['t'](_0x1f7d4f(0x23d)),'children':_0x347b1f(_0x4dc983,{'className':'univer-size-8\x20univer-animate-spin\x20univer-text-gray-500','aria-hidden':_0x1f7d4f(0x1a5)})}):_0x347b1f(_0x1f7d4f(0x219),{'style':_0x186c3d,'children':_0x33610c[_0x1f7d4f(0x1c9)](_0x8ab7fe=>_0x347b1f(Hn,{'config':_0x8ab7fe[_0x1f7d4f(0x343)],'page':_0x8ab7fe[_0x1f7d4f(0x343)][_0x1f7d4f(0x159)],'previewScale':_0x4bcc14},_0x8ab7fe[_0x1f7d4f(0x343)][_0x1f7d4f(0x102)]+':'+_0x8ab7fe[_0x1f7d4f(0x343)][_0x1f7d4f(0xe7)]+':'+_0x8ab7fe[_0x1f7d4f(0x343)]['page']+':'+_0x8ab7fe[_0x1f7d4f(0x343)]['range'][_0x1f7d4f(0x358)]+':'+_0x8ab7fe[_0x1f7d4f(0x343)][_0x1f7d4f(0x1ab)]['startColumn']+':'+_0x8ab7fe[_0x1f7d4f(0x343)][_0x1f7d4f(0x1ab)][_0x1f7d4f(0x2ce)]+':'+_0x8ab7fe[_0x1f7d4f(0x343)]['range'][_0x1f7d4f(0x2f1)]))})}),!_0x415c70&&!_0x3002fe&&_0x347b1f('a',{'className':'univer-block\x20univer-shrink-0\x20univer-px-4\x20univer-py-2\x20univer-text-center\x20univer-text-xs','href':_0x4fe8ff['t'](_0x1f7d4f(0x115)),'target':_0x1f7d4f(0x216),'rel':_0x1f7d4f(0x19b),'children':_0x4fe8ff['t'](_0x1f7d4f(0x16f))[_0x1f7d4f(0x2ac)]('{limit}',''+_0xcc33b9)}),_0x446e09(_0x1f7d4f(0x1a8),{'className':_0x129659(_0x1f7d4f(0x34d),_0x13bd0c),'children':[_0x347b1f(_0x5c88b2,{'className':'univer-flex-1','onClick':_0x4c9d20,'children':_0x4fe8ff['t'](_0x1f7d4f(0x214))}),_0x347b1f(_0x5c88b2,{'className':'univer-flex-1','onClick':()=>_0x340169(!0x0),'children':_0x4fe8ff['t'](_0x1f7d4f(0x20a))}),_0x347b1f(_0x5c88b2,{'className':'univer-flex-1','variant':_0x1f7d4f(0x24c),'disabled':_0x415c70||_0xc84c10,'onClick':_0x4255c1,'children':_0x4fe8ff['t'](_0x1f7d4f(0x186))})]}),_0x347b1f(_0x4d676c,{'open':_0x15470e,'title':_0x4fe8ff['t'](_0x1f7d4f(0x20a)),'onClose':()=>_0x340169(!0x1),'children':_0x347b1f(Gn,{'onShowFooterHeaderEditor':()=>{_0x340169(!0x1),_0x26a61c(!0x0);}})}),_0x542cf8&&_0x347b1f(Un,{'open':!0x0,'onClose':()=>{_0x26a61c(!0x1),_0x340169(!0x0);}})]});}function qn(){const _0x59c966=_0x48476b;let _0x365a2e=_0xf06a64(K);return _0x3c9101(_0x365a2e[_0x59c966(0x288)],_0x365a2e[_0x59c966(0x168)])?_0x347b1f(Kn,{}):null;}let Jn=class extends _0x5117f5{constructor(_0xa60fe8,_0x3edcc3,_0x502e43,_0x10d68f,_0x3260af,_0x39b352,_0x20e8c7,_0x34b592){const _0x91ad89=_0x48476b;super(),this[_0x91ad89(0x1cb)]=_0xa60fe8,this['_commandService']=_0x3edcc3,this[_0x91ad89(0x313)]=_0x502e43,this[_0x91ad89(0x100)]=_0x10d68f,this[_0x91ad89(0x184)]=_0x3260af,this[_0x91ad89(0x124)]=_0x39b352,this[_0x91ad89(0x1a2)]=_0x20e8c7,this[_0x91ad89(0x1a6)]=_0x34b592,this[_0x91ad89(0x2c0)](),this[_0x91ad89(0x143)](),this['_initMenus'](),this[_0x91ad89(0x1d9)](),this[_0x91ad89(0x226)]();}[_0x48476b(0x2c0)](){const _0x4b2432=_0x48476b;[X,ln,Z,un][_0x4b2432(0x141)](_0x24ce0b=>this[_0x4b2432(0x2c7)](this[_0x4b2432(0x23c)][_0x4b2432(0x1db)](_0x24ce0b)));}[_0x48476b(0x143)](){const _0x386cf6=_0x48476b;this[_0x386cf6(0x2c7)](this['_uiPartsService'][_0x386cf6(0x190)](_0x3713f9[_0x386cf6(0x2ab)],()=>_0x496a9b(qn,this[_0x386cf6(0x124)])));}[_0x48476b(0x1bf)](){this['_menuManagerService']['mergeMenu'](zn);}['_initConfigChangeListener'](){const _0x402891=_0x48476b;this[_0x402891(0x2c7)](this['_printDialogService'][_0x402891(0x288)]['subscribe'](_0x5da683=>{const _0x19b6ea=_0x402891;_0x5da683&&this[_0x19b6ea(0x313)][_0x19b6ea(0x191)]();}));}[_0x48476b(0x226)](){const _0x1aeb26=_0x48476b;this[_0x1aeb26(0x2c7)](this[_0x1aeb26(0x23c)]['onCommandExecuted'](_0x1d555c=>{const _0x22ec48=_0x1aeb26;_0x1d555c['id']===Z['id']&&this[_0x22ec48(0x100)][_0x22ec48(0xf4)](this[_0x22ec48(0x313)][_0x22ec48(0x22a)],this[_0x22ec48(0x313)]['renderConfig'])[_0x22ec48(0x199)](_0x5e8efd=>this[_0x22ec48(0x1a6)][_0x22ec48(0x302)](_0x22ec48(0x215),_0x22ec48(0x21d),_0x5e8efd));}));}};Jn=J([q(0x0,K),q(0x1,_0xbc3d2e),q(0x2,Y),q(0x3,_0x2fba99($)),q(0x4,_0x261ffc),q(0x5,_0x2fba99(_0x545b18)),q(0x6,_0x1ba163),q(0x7,_0x10cbcc)],Jn);let Yn=class extends _0x24bd44{constructor(_0x5d0294=Ln,_0xc49162,_0x5d287){const _0x407186=_0x48476b;super(),this[_0x407186(0x2db)]=_0x5d0294,this[_0x407186(0x124)]=_0xc49162,this[_0x407186(0xda)]=_0x5d287;let {menu:_0x1818eb,..._0x2da5f3}=_0x472b0d({},Ln,this['_config']);_0x1818eb&&this[_0x407186(0xda)]['setConfig']('menu',_0x1818eb,{'merge':!0x0}),this[_0x407186(0xda)][_0x407186(0x2c6)](In,_0x2da5f3);}[_0x48476b(0x13c)](){const _0x1f6a65=_0x48476b;this[_0x1f6a65(0x124)]['has'](_0x127df1)||this['_injector'][_0x1f6a65(0x1dc)]([_0x127df1,{'useClass':_0x5ea27c}]),_0x1b6df5(this[_0x1f6a65(0x124)],[[Y,{'useClass':an}],[K,{'useClass':Yt}],[$],[Rn],[Jn]]),_0x467a27(this[_0x1f6a65(0x124)],[[Rn],[Jn]]);}};G(Yn,'pluginName',Fn),G(Yn,'packageName',Nn),G(Yn,_0x48476b(0x2a0),Pn),G(Yn,'type',_0x372cab[_0x48476b(0x26c)]),Yn=J([_0x54b76b(_0x4373b3,_0x128d64,_0xb63c0e,_0x164d6a,_0x329f43),q(0x1,_0x2fba99(_0x545b18)),q(0x2,_0x3c85d4)],Yn);const Xn=_0x1112c2(function(){const _0x4b3c29=_0x48476b;var _0x4b4b7f,_0x24ba43,_0x466cab,_0x56111b;let _0x3fdd5b=_0xf06a64(Y),_0x503c3=_0xf06a64(_0xbc3d2e),_0x44e575=_0x3c9101(_0x3fdd5b[_0x4b3c29(0x1e5)],_0x3fdd5b['layoutConfig']),_0x121b48=_0xf06a64(_0x5bfbd3),_0x20a014=_0xf06a64(_0x1af74b)[_0x4b3c29(0x2d5)](_0x372cab[_0x4b3c29(0x26c)]);if(!_0x20a014)return console[_0x4b3c29(0x302)](_0x4b3c29(0x16e)),null;let _0x332063=_0x20a014[_0x4b3c29(0x2d0)]();if(!_0x332063)return console[_0x4b3c29(0x302)](_0x4b3c29(0x220)),null;let _0x4dc5a4=(_0x16405e,_0x547e8c)=>{const _0x9cf361=_0x4b3c29;let _0x5605f8=Math[_0x9cf361(0x30c)](0x0,_0x547e8c||0x0),_0x396fe8=_0x44e575[_0x9cf361(0x27f)]||{'top':0x0,'left':0x0,'right':0x0,'bottom':0x0};_0x3fdd5b[_0x9cf361(0x2fa)]({'marginCustom':{..._0x396fe8,[_0x16405e]:_0x5605f8}});},_0x4c5a64=_0x332063['getFreeze'](),_0x3dd651=_0x4c5a64[_0x4b3c29(0x1ac)]<=0x0,_0x219498=_0x4c5a64[_0x4b3c29(0x239)]<=0x0,_0x27e26b=()=>{_0x503c3['executeCommand'](En['id']);};return _0x446e09(_0x4b3c29(0x219),{'className':_0x129659('univer-flex\x20univer-h-full\x20univer-flex-col',_0x1a8f1b),'children':[_0x446e09(_0x4b3c29(0x219),{'className':'univer-flex-1\x20univer-overflow-y-auto','children':[_0x347b1f(_0x322ec5,{'label':_0x121b48['t']('sheets-print.area.title'),'children':_0x347b1f(_0xffaa06,{'className':_0x4b3c29(0x10e),'value':''+_0x44e575[_0x4b3c29(0x113)],'onChange':_0x180a49=>{const _0x1313c5=_0x4b3c29;_0x3fdd5b[_0x1313c5(0x2fa)]({'area':_0x180a49});},'options':[{'label':_0x121b48['t'](_0x4b3c29(0x295)),'value':_0x4b3c29(0x2bd)},{'label':_0x121b48['t'](_0x4b3c29(0x346)),'value':'CurrentSelection'}]})}),_0x347b1f(_0x322ec5,{'label':_0x121b48['t']('sheets-print.size.title'),'children':_0x347b1f(_0xffaa06,{'className':_0x4b3c29(0x10e),'value':_0x44e575[_0x4b3c29(0x2d9)],'options':[{'label':_0x121b48['t'](_0x4b3c29(0x2fb)),'value':_0x458dd5['Letter']},{'label':_0x121b48['t'](_0x4b3c29(0x13b)),'value':_0x458dd5['Tabloid']},{'label':_0x121b48['t'](_0x4b3c29(0x230)),'value':_0x458dd5[_0x4b3c29(0x1d3)]},{'label':_0x121b48['t'](_0x4b3c29(0x26a)),'value':_0x458dd5[_0x4b3c29(0x262)]},{'label':_0x121b48['t'](_0x4b3c29(0x328)),'value':_0x458dd5[_0x4b3c29(0x245)]},{'label':_0x121b48['t'](_0x4b3c29(0x187)),'value':_0x458dd5[_0x4b3c29(0x1a7)]},{'label':_0x121b48['t'](_0x4b3c29(0x1ca)),'value':_0x458dd5['A3']},{'label':_0x121b48['t']('sheets-print.size.a4'),'value':_0x458dd5['A4']},{'label':_0x121b48['t'](_0x4b3c29(0x304)),'value':_0x458dd5['A5']},{'label':_0x121b48['t'](_0x4b3c29(0x2e6)),'value':_0x458dd5['B4']},{'label':_0x121b48['t'](_0x4b3c29(0x1e2)),'value':_0x458dd5['B5']}],'onChange':_0x483dba=>{const _0x448db4=_0x4b3c29;_0x3fdd5b[_0x448db4(0x2fa)]({'paperSize':_0x483dba});}})}),_0x347b1f(_0x322ec5,{'label':_0x121b48['t']('sheets-print.margin.title'),'children':_0x347b1f(_0xffaa06,{'className':_0x4b3c29(0x10e),'value':_0x44e575[_0x4b3c29(0xff)],'options':[{'label':_0x121b48['t'](_0x4b3c29(0x355)),'value':_0x55ad96[_0x4b3c29(0x1b8)]},{'label':_0x121b48['t']('sheets-print.margin.narrow'),'value':_0x55ad96[_0x4b3c29(0x123)]},{'label':_0x121b48['t']('sheets-print.margin.wide'),'value':_0x55ad96[_0x4b3c29(0x181)]},{'label':_0x121b48['t'](_0x4b3c29(0x2b6)),'value':_0x55ad96[_0x4b3c29(0xe0)]}],'onChange':_0x4123e8=>{const _0x4be1fc=_0x4b3c29;let _0x15083a=_0x2b0a81[_0x44e575[_0x4be1fc(0xff)]];_0x3fdd5b[_0x4be1fc(0x2fa)]({'margin':_0x4123e8,'marginCustom':_0x4123e8===_0x55ad96[_0x4be1fc(0xe0)]?_0x15083a:_0x2b0a81[_0x4123e8]});}})}),_0x44e575[_0x4b3c29(0xff)]===_0x55ad96[_0x4b3c29(0xe0)]&&_0x347b1f(_0x322ec5,{'children':_0x446e09('div',{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-2','children':[_0x446e09(_0x4b3c29(0x219),{'children':[_0x347b1f(_0x4b3c29(0x167),{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x121b48['t']('sheets-print.margin.top')}),_0x347b1f(_0x4ff3c3,{'type':'number','value':String(((_0x4b4b7f=_0x44e575['marginCustom'])==null?void 0x0:_0x4b4b7f[_0x4b3c29(0x1d8)])||0x0),'onChange':_0x5cbdad=>_0x4dc5a4('top',Number(_0x5cbdad))})]}),_0x446e09(_0x4b3c29(0x219),{'children':[_0x347b1f(_0x4b3c29(0x167),{'className':_0x4b3c29(0x240),'children':_0x121b48['t'](_0x4b3c29(0x2ba))}),_0x347b1f(_0x4ff3c3,{'type':_0x4b3c29(0x274),'value':String(((_0x24ba43=_0x44e575['marginCustom'])==null?void 0x0:_0x24ba43['bottom'])||0x0),'onChange':_0x194b5c=>_0x4dc5a4(_0x4b3c29(0x27a),Number(_0x194b5c))})]}),_0x446e09('div',{'children':[_0x347b1f(_0x4b3c29(0x167),{'className':'univer-mb-1\x20univer-block\x20univer-text-xs\x20univer-text-gray-500','children':_0x121b48['t'](_0x4b3c29(0x2a3))}),_0x347b1f(_0x4ff3c3,{'type':'number','value':String(((_0x466cab=_0x44e575[_0x4b3c29(0x27f)])==null?void 0x0:_0x466cab[_0x4b3c29(0x11d)])||0x0),'onChange':_0x12c17e=>_0x4dc5a4(_0x4b3c29(0x11d),Number(_0x12c17e))})]}),_0x446e09(_0x4b3c29(0x219),{'children':[_0x347b1f(_0x4b3c29(0x167),{'className':_0x4b3c29(0x240),'children':_0x121b48['t'](_0x4b3c29(0x271))}),_0x347b1f(_0x4ff3c3,{'type':_0x4b3c29(0x274),'value':String(((_0x56111b=_0x44e575[_0x4b3c29(0x27f)])==null?void 0x0:_0x56111b['right'])||0x0),'onChange':_0x2bfac6=>_0x4dc5a4(_0x4b3c29(0x2b9),Number(_0x2bfac6))})]})]})}),_0x347b1f(_0x322ec5,{'label':_0x121b48['t']('sheets-print.orientation.title'),'children':_0x446e09(_0x5aad88,{'value':_0x44e575[_0x4b3c29(0x237)],'onChange':_0x45e10a=>{const _0x5d4e03=_0x4b3c29;_0x3fdd5b[_0x5d4e03(0x2fa)]({'direction':_0x45e10a});},'children':[_0x347b1f(_0x33e82b,{'value':_0x20bf8b['Portrait'],'children':_0x121b48['t']('sheets-print.orientation.portrait')}),_0x347b1f(_0x33e82b,{'value':_0x20bf8b[_0x4b3c29(0xfe)],'children':_0x121b48['t'](_0x4b3c29(0x150))})]})}),_0x347b1f(_0x322ec5,{'collapsable':!0x0,'label':_0x121b48['t'](_0x4b3c29(0x2f2)),'children':_0x446e09(_0x35748f,{'direction':_0x4b3c29(0x2cc),'value':_0x44e575['freeze'],'onChange':_0x5d8c20=>{const _0x505b12=_0x4b3c29;_0x3fdd5b[_0x505b12(0x2fa)]({'freeze':_0x5d8c20});},'children':[_0x347b1f(_0x13d237,{'disabled':_0x219498,'value':'Row','children':_0x121b48['t'](_0x4b3c29(0x218))}),_0x347b1f(_0x13d237,{'disabled':_0x3dd651,'value':_0x4b3c29(0x2e8),'children':_0x121b48['t'](_0x4b3c29(0x338))})]})}),_0x446e09(_0x322ec5,{'collapsable':!0x0,'defaultCollapsed':!0x0,'label':_0x121b48['t'](_0x4b3c29(0x30f)),'children':[_0x347b1f(_0x322ec5,{'className':_0x4b3c29(0x221),'label':_0x121b48['t'](_0x4b3c29(0x1b2)),'children':_0x347b1f(_0x4ff3c3,{'value':_0x44e575[_0x4b3c29(0x144)]===0x1/0x0?'':''+_0x44e575['maxRowsEachPage'],'onChange':_0x344c45=>{const _0x26e9df=_0x4b3c29;_0x3fdd5b[_0x26e9df(0x2fa)]({'maxRowsEachPage':!_0x344c45||Number[_0x26e9df(0x269)](Number(_0x344c45))?0x1/0x0:Number(_0x344c45)});}})}),_0x347b1f(_0x322ec5,{'label':_0x121b48['t'](_0x4b3c29(0x233)),'children':_0x347b1f(_0x4ff3c3,{'value':_0x44e575[_0x4b3c29(0x2f9)]===0x1/0x0?'':''+_0x44e575[_0x4b3c29(0x2f9)],'onChange':_0x22c28c=>{const _0xa978f9=_0x4b3c29;_0x3fdd5b[_0xa978f9(0x2fa)]({'maxColumnsEachPage':!_0x22c28c||Number[_0xa978f9(0x269)](Number(_0x22c28c))?0x1/0x0:Number(_0x22c28c)});}})})]})]}),_0x446e09(_0x4b3c29(0x219),{'className':_0x4b3c29(0x320),'children':[_0x347b1f(_0x5c88b2,{'type':_0x4b3c29(0x106),'variant':'primary','className':_0x4b3c29(0x10e),'onClick':()=>{const _0x4464ff=_0x4b3c29;_0x503c3[_0x4464ff(0x354)](X['id']),_0x27e26b();},'children':_0x121b48['t'](_0x4b3c29(0x2aa))}),_0x347b1f(_0x5c88b2,{'type':_0x4b3c29(0x101),'className':_0x4b3c29(0x10e),'onClick':_0x27e26b,'children':_0x121b48['t'](_0x4b3c29(0x189))})]})]});});let Zn=class extends _0x5117f5{constructor(_0x24e877,_0x2ab9ef){const _0x3c19ab=_0x48476b;super(),this[_0x3c19ab(0x16c)]=_0x24e877,this[_0x3c19ab(0x332)]=_0x2ab9ef,this['_registerIcons'](),this[_0x3c19ab(0x250)]();}[_0x48476b(0x1d1)](){const _0x413e43=_0x48476b;this[_0x413e43(0x2c7)](this[_0x413e43(0x332)]['register']({'DocSettingIcon':_0x260172,'PrintIcon':_0x2bce31}));}[_0x48476b(0x250)](){const _0x1e30d7=_0x48476b;this['_componentManager'][_0x1e30d7(0x135)](wn,Xn);}};Zn=J([q(0x0,_0x2fba99(_0x342b5b)),q(0x1,_0x2fba99(_0x5d9a61))],Zn);const Qn=[0x6,0x4];var $n=class extends _0x5eb69c{constructor(_0x32c896,_0xfd3a3e){const _0x35ad9=_0x48476b;super(),this['_printGridService']=_0x32c896,this['_printManagerService']=_0xfd3a3e,G(this,_0x35ad9(0x20d),'PrintGridExtension'),G(this,'Z_INDEX',0x3d);}[_0x48476b(0x257)](_0x1a60cc,_0x21b956,_0x1984e3,_0x598c1){const _0x4c2b02=_0x48476b;if(_0x1a60cc[_0x4c2b02(0x1f5)]==='printing'||!this[_0x4c2b02(0x12a)][_0x4c2b02(0x168)])return;let {worksheet:_0x5bc68c}=_0x1984e3;if(!_0x5bc68c)return;let _0x25e3ff=this[_0x4c2b02(0x156)][_0x4c2b02(0x22a)],_0x2e1a92=_0x5bc68c[_0x4c2b02(0x298)](),_0x4c64dd=_0x5bc68c[_0x4c2b02(0x2f3)](),_0x33b949=_0x25e3ff[_0x4c2b02(0xf2)](_0x533d11=>_0x533d11[_0x4c2b02(0x102)]===_0x2e1a92&&_0x533d11['subUnitId']===_0x4c64dd);_0x33b949&&this['_drawPrintGrid'](_0x1a60cc,_0x1984e3,_0x33b949);}[_0x48476b(0x35c)](_0x18c2fb,_0x196b59,_0x2ea571){const _0x590449=_0x48476b;let {pages:_0x307f31}=_0x2ea571,{rowHeightAccumulation:_0x46a095,columnWidthAccumulation:_0xd05c59}=_0x196b59;_0x18c2fb[_0x590449(0x1de)](),_0x18c2fb['strokeStyle']=_0x590449(0x129),_0x18c2fb[_0x590449(0x280)]=0x2,_0x18c2fb[_0x590449(0x352)](Qn);let _0x54d1da=new Set(),_0x2d1b18=new Set();_0x307f31[_0x590449(0x141)](_0xed8bbc=>{const _0x44288c=_0x590449;let {startRow:_0x4b15ab,endRow:_0x3d06f9,startColumn:_0x868096,endColumn:_0xa3848a}=_0xed8bbc,_0x4ace74=_0x4b15ab===0x0?0x0:_0x46a095[_0x4b15ab-0x1],_0x5ab0f9=_0x46a095[_0x3d06f9],_0x53f6c4=_0x868096===0x0?0x0:_0xd05c59[_0x868096-0x1],_0x239255=_0xd05c59[_0xa3848a];_0x54d1da[_0x44288c(0x1dc)](_0x4ace74),_0x54d1da[_0x44288c(0x1dc)](_0x5ab0f9),_0x2d1b18[_0x44288c(0x1dc)](_0x53f6c4),_0x2d1b18[_0x44288c(0x1dc)](_0x239255);});let _0x30eebf=Math[_0x590449(0x28f)](...Array['from'](_0x2d1b18)),_0x44a730=Math[_0x590449(0x30c)](...Array[_0x590449(0x1b5)](_0x2d1b18)),_0x55aab1=Math[_0x590449(0x28f)](...Array[_0x590449(0x1b5)](_0x54d1da)),_0x4af3fa=Math[_0x590449(0x30c)](...Array['from'](_0x54d1da));_0x54d1da['forEach'](_0x19d0df=>{const _0x2ee760=_0x590449;_0x18c2fb[_0x2ee760(0x1be)](),_0x18c2fb['moveTo'](_0x30eebf,_0x19d0df),_0x18c2fb[_0x2ee760(0x247)](_0x44a730,_0x19d0df),_0x18c2fb[_0x2ee760(0x2b5)]();}),_0x2d1b18[_0x590449(0x141)](_0x5f10ec=>{const _0x4ccd6c=_0x590449;_0x18c2fb[_0x4ccd6c(0x1be)](),_0x18c2fb[_0x4ccd6c(0x291)](_0x5f10ec,_0x55aab1),_0x18c2fb[_0x4ccd6c(0x247)](_0x5f10ec,_0x4af3fa),_0x18c2fb[_0x4ccd6c(0x2b5)]();}),_0x18c2fb[_0x590449(0x2e9)]();}};let er=class extends _0x5117f5{constructor(_0x355d8d,_0x1e37a4,_0xe40310){const _0x42fc63=_0x48476b;super(),this[_0x42fc63(0x1c7)]=_0x355d8d;let _0x328015=this['_context'][_0x42fc63(0x1a4)];this[_0x42fc63(0x2c7)](_0x328015[_0x42fc63(0x135)](new $n(_0x1e37a4,_0xe40310)));}};er=J([q(0x1,Sn),q(0x2,Y)],er);const tr=({icon:_0x4812ba,items:_0x344471,active:_0x594bf3,onChange:_0x179c02,onHover:_0x47c738,popupDirection:_0x23a6e4=_0x48476b(0x1d8)})=>_0x446e09(_0x48476b(0x219),{'className':'univer-relative\x20univer-inline-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1\x20univer-rounded\x20univer-bg-gray-0\x20univer-px-2\x20univer-py-1\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-900\x20hover:dark:!univer-bg-gray-700','onMouseEnter':()=>_0x47c738==null?void 0x0:_0x47c738(!0x0),'onMouseLeave':()=>_0x47c738==null?void 0x0:_0x47c738(!0x1),'children':[_0x347b1f(_0x48476b(0x219),{'className':_0x48476b(0x252),'children':_0x4812ba}),_0x347b1f(_0x4eeedc,{'className':_0x48476b(0x25c)}),_0x594bf3&&_0x347b1f(_0x48476b(0x219),{'style':{[_0x23a6e4]:_0x48476b(0x22e)},'className':_0x48476b(0x2b8),'children':_0x347b1f(_0x48476b(0x219),{'className':_0x48476b(0x13f),'children':_0x344471[_0x48476b(0x1c9)](_0xe7bebf=>_0x446e09(_0x48476b(0x219),{'className':_0x48476b(0x33e),'onClick':()=>{const _0x1bbf3f=_0x48476b;_0x179c02==null||_0x179c02(_0xe7bebf[_0x1bbf3f(0x26b)]),_0x47c738==null||_0x47c738(!0x1);},'children':[_0x347b1f(_0x48476b(0x219),{'className':'univer-text-base\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0xe7bebf[_0x48476b(0x167)]}),_0x347b1f(_0x48476b(0x219),{'className':_0x48476b(0x228),'children':_0xe7bebf[_0x48476b(0x19f)]})]},_0xe7bebf['value']))})})]}),nr=_0x4fc710=>{const _0x96a4f0=_0x48476b;let {onSelect:_0x2b1564,popupDirection:_0x4f45d9}=_0x4fc710,[_0x4d582f,_0x4c25c7]=_0x2f3fde(),_0x3f76a5=_0xf06a64(_0x5bfbd3),_0x50365b=_0xf06a64(_0x1af74b)[_0x96a4f0(0x2d5)](_0x372cab[_0x96a4f0(0x26c)]),_0x14d918=_0x50365b['getActiveSheet'](),_0xab6c6b=_0x447bff(()=>_0x577933(),[]),_0x1e8ba2=_0x447bff(()=>[{'value':_0x96a4f0(0x29e),'label':_0x3f76a5['t']('sheets-print.headerFooter.display.page'),'desc':Q(_0x96a4f0(0x29e),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x213),'label':_0x3f76a5['t'](_0x96a4f0(0x23f)),'desc':Q('@SheetPage',{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x183),'label':_0x3f76a5['t'](_0x96a4f0(0x2ed)),'desc':Q(_0x96a4f0(0x183),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x2b3),'label':_0x3f76a5['t'](_0x96a4f0(0x336)),'desc':Q(_0x96a4f0(0x2b3),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})}],[_0x3f76a5]),_0x5aa608=_0x447bff(()=>[{'value':_0x96a4f0(0x24f),'label':_0x3f76a5['t'](_0x96a4f0(0x157)),'desc':Q(_0x96a4f0(0x24f),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x256),'label':_0x3f76a5['t'](_0x96a4f0(0x21b)),'desc':Q('@WorksheetTitle',{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})}],[_0x3f76a5]),_0x15d5a9=_0x447bff(()=>[{'value':_0x96a4f0(0xf6),'label':_0x3f76a5['t'](_0x96a4f0(0xe9)),'desc':Q(_0x96a4f0(0xf6),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x29d),'label':_0x3f76a5['t']('sheets-print.headerFooter.display.dateB'),'desc':Q(_0x96a4f0(0x29d),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x111),'label':_0x3f76a5['t']('sheets-print.headerFooter.display.dateC'),'desc':Q('@DateC',{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x211),'label':_0x3f76a5['t'](_0x96a4f0(0x293)),'desc':Q(_0x96a4f0(0x211),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})}],[_0x3f76a5]),_0x30ec48=_0x447bff(()=>[{'value':'@TimeA','label':_0x3f76a5['t'](_0x96a4f0(0x17d)),'desc':Q(_0x96a4f0(0x281),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x1c4),'label':_0x3f76a5['t'](_0x96a4f0(0x277)),'desc':Q(_0x96a4f0(0x1c4),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x1e3),'label':_0x3f76a5['t'](_0x96a4f0(0x331)),'desc':Q(_0x96a4f0(0x1e3),{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})},{'value':_0x96a4f0(0x2f0),'label':_0x3f76a5['t'](_0x96a4f0(0x318)),'desc':Q('@TimeD',{'workbook':_0x50365b,'worksheet':_0x14d918,'page':0x1,'sheetPage':0x1,'pageTotal':0x63,'sheetPageTotal':0x63,'localeService':_0x3f76a5,'now':_0xab6c6b})}],[_0x3f76a5]);return _0x446e09(_0x96a4f0(0x219),{'className':_0x129659('univer-rounded-md\x20univer-bg-gray-0\x20univer-p-1\x20univer-shadow\x20dark:!univer-bg-gray-900',_0x48b45b),'children':[_0x347b1f(tr,{'icon':_0x347b1f(_0x4cc70d,{}),'items':_0x1e8ba2,'onHover':_0x38dcf1=>_0x4c25c7(_0x38dcf1?_0x96a4f0(0x225):''),'active':_0x4d582f===_0x96a4f0(0x225),'onChange':_0x2b1564,'popupDirection':_0x4f45d9}),_0x347b1f(tr,{'icon':_0x347b1f(_0x472d25,{}),'items':_0x5aa608,'onHover':_0x5d3e6f=>_0x4c25c7(_0x5d3e6f?_0x96a4f0(0x25e):''),'active':_0x4d582f===_0x96a4f0(0x25e),'onChange':_0x2b1564,'popupDirection':_0x4f45d9}),_0x347b1f(tr,{'icon':_0x347b1f(_0x1a06d3,{}),'items':_0x15d5a9,'onHover':_0x4cace5=>_0x4c25c7(_0x4cace5?_0x96a4f0(0x2bc):''),'active':_0x4d582f===_0x96a4f0(0x2bc),'onChange':_0x2b1564,'popupDirection':_0x4f45d9}),_0x347b1f(tr,{'icon':_0x347b1f(_0x4d2b96,{}),'items':_0x30ec48,'onHover':_0x4a54e5=>_0x4c25c7(_0x4a54e5?_0x96a4f0(0x198):''),'active':_0x4d582f===_0x96a4f0(0x198),'onChange':_0x2b1564,'popupDirection':_0x4f45d9})]});};function rr({width:_0x2bea1d=0x2b9,height:_0x506688=0x229,cols:_0x5afde9=0x8,rows:_0x244878=0x18,cellWidth:_0x4eb853=0x57,cellHeight:_0xad16b5=0x17,strokeColor:_0x3c3292=_0x48476b(0x1a3)}){const _0x2d4543=_0x48476b;let _0x54c399=_0x447bff(()=>{const _0xf96e3e=_0x4150;let _0x401616=[];for(let _0x4c2aef=0x0;_0x4c2aef<_0x244878;_0x4c2aef++)for(let _0x42bbda=0x0;_0x42bbda<_0x5afde9;_0x42bbda++)_0x401616[_0xf96e3e(0x10d)](_0x347b1f('rect',{'x':_0x42bbda*_0x4eb853+0.5,'y':_0x4c2aef*_0xad16b5+0.5,'width':_0x4eb853,'height':_0xad16b5,'stroke':_0x3c3292},_0x4c2aef+'-'+_0x42bbda));return _0x401616;},[_0x244878,_0x5afde9,_0x4eb853,_0xad16b5,_0x3c3292]);return _0x347b1f(_0x2d4543(0x2b4),{'width':_0x2bea1d,'height':_0x506688,'viewBox':_0x2d4543(0x2f7)+_0x2bea1d+'\x20'+_0x506688,'fill':_0x2d4543(0xdc),'xmlns':_0x2d4543(0x207),'children':_0x54c399});}const ir=_0x50f054=>{const _0xc5a83=_0x48476b;let {value:_0x3ac43b,onChange:_0xe795a,popupDirection:_0x3b9702=_0xc5a83(0x1d8)}=_0x50f054,_0x4431e5=_0xf06a64(_0x5bfbd3),_0x498357=_0xf06a64(_0x4ac007),[_0x1333e4,_0x4ce759]=_0x2f3fde(!0x1),_0xd73b24=_0x51972e(null),_0x18b8d8=_0xf06a64(_0xbc3d2e),_0x5d753c=[{'value':'@Page','label':_0x4431e5['t'](_0xc5a83(0x18c))},{'value':'@SheetPage','label':_0x4431e5['t'](_0xc5a83(0x23f))},{'value':_0xc5a83(0x183),'label':_0x4431e5['t'](_0xc5a83(0x2ed))},{'value':_0xc5a83(0x2b3),'label':_0x4431e5['t'](_0xc5a83(0x336))}],_0x3f1971=[{'value':'@WorkbookTitle','label':_0x4431e5['t'](_0xc5a83(0x157))},{'value':'@WorksheetTitle','label':_0x4431e5['t'](_0xc5a83(0x21b))}],_0xee7f62=[{'value':'@DateA','label':_0x4431e5['t'](_0xc5a83(0xe9))},{'value':_0xc5a83(0x29d),'label':_0x4431e5['t'](_0xc5a83(0x15d))},{'value':_0xc5a83(0x111),'label':_0x4431e5['t'](_0xc5a83(0x27e))},{'value':_0xc5a83(0x211),'label':_0x4431e5['t'](_0xc5a83(0x293))}],_0x7f7133=[{'value':'@TimeA','label':_0x4431e5['t'](_0xc5a83(0x17d))},{'value':_0xc5a83(0x1c4),'label':_0x4431e5['t'](_0xc5a83(0x277))},{'value':_0xc5a83(0x1e3),'label':_0x4431e5['t'](_0xc5a83(0x331))},{'value':_0xc5a83(0x2f0),'label':_0x4431e5['t']('sheets-print.headerFooter.display.timeD')}],_0x3c2121=[..._0x5d753c,..._0x3f1971,..._0xee7f62,..._0x7f7133],[_0x9dd3d5]=_0x2f3fde(()=>mn(_0x3ac43b,_0x3c2121));return _0x446e09(_0xc5a83(0x219),{'className':_0xc5a83(0x134),'children':[_0x347b1f(_0x5db417,{'editorRef':_0xd73b24,'initialValue':_0x9dd3d5,'onChange':_0x19e901=>{_0xe795a==null||_0xe795a(hn(_0x19e901));},'onFocusChange':_0x2c3dc4=>{_0x4ce759(_0x2c3dc4);},'onClickOutside':()=>{const _0x182201=_0xc5a83;var _0x2620ae;(_0x2620ae=_0xd73b24[_0x182201(0x2f8)])==null||_0x2620ae[_0x182201(0x29f)]([]),_0x498357['blur']();},'placeholder':_0x4431e5['t']('sheets-print.headerFooter.placeholder')}),_0x347b1f(_0xc5a83(0x219),{'className':_0xc5a83(0x1e0),'style':{[_0x3b9702]:0x24},'children':_0x1333e4&&_0x347b1f(nr,{'popupDirection':_0x3b9702,'onSelect':async _0x55377d=>{const _0x4e72f5=_0xc5a83;var _0x127bc7;let _0x13adb0=(_0x127bc7=_0xd73b24['current'])==null?void 0x0:_0x127bc7[_0x4e72f5(0x193)]();if(!_0xd73b24[_0x4e72f5(0x2f8)])return;let _0x1ee407=_0xd73b24['current']['getCursorPosition']();if(_0x1ee407<0x0)return;let _0x1904ae=_0x3c2121[_0x4e72f5(0xf2)](_0x4290fb=>_0x4290fb[_0x4e72f5(0x26b)]===_0x55377d);if(!_0x1904ae)return;let _0x162838={'dataStream':_0x1904ae[_0x4e72f5(0x167)],'customRanges':[{'startIndex':0x0,'endIndex':_0x1904ae[_0x4e72f5(0x167)]['length']-0x1,'rangeId':_0x5302a1(),'rangeType':_0x2b5c7e[_0x4e72f5(0x32b)],'properties':{'value':_0x1904ae['value']},'wholeEntity':!0x0}]};await _0x3cf9f1(0x0);let _0x3ad41c=_0x5cc5a9[_0x4e72f5(0x1fd)]['replace']({'selection':{'startOffset':_0x1ee407,'endOffset':_0x1ee407,'collapsed':!0x0},'body':_0x162838,'doc':_0xd73b24[_0x4e72f5(0x2f8)][_0x4e72f5(0x108)]()});if(!_0x3ad41c)return;let _0x36b521={'id':_0x33df4c['id'],'params':{'unitId':_0x13adb0,'actions':[],'textRanges':[{'startOffset':_0x1ee407+_0x162838['dataStream'][_0x4e72f5(0x118)],'endOffset':_0x1ee407+_0x162838[_0x4e72f5(0x314)][_0x4e72f5(0x118)],'collapsed':!0x0}],'trigger':_0x4e72f5(0x258)}},_0x5e4f5f=_0x5bb682[_0x4e72f5(0x125)]();_0x36b521[_0x4e72f5(0x292)]['actions']=_0x5e4f5f[_0x4e72f5(0xe2)](_0x3ad41c['serialize']()),_0x18b8d8[_0x4e72f5(0x1b3)](_0x36b521['id'],_0x36b521[_0x4e72f5(0x292)]),setTimeout(()=>{_0x498357['focus'](_0x13adb0);},0x0);}})})]});},ar=_0x2d4f92=>{const _0x3668e4=_0x48476b;let {onClose:_0x54467d}=_0x2d4f92,_0x2df931=_0xf06a64(Y),_0x3cd4b6=_0x2df931['renderConfig'][_0x3668e4(0x158)]??en,[_0x362513,_0x27bae6]=_0x2f3fde(_0x3cd4b6[_0x3668e4(0x30a)]),[_0x43c701,_0x3c9637]=_0x2f3fde(_0x3cd4b6['topCenter']),[_0x20adbf,_0x135b22]=_0x2f3fde(_0x3cd4b6[_0x3668e4(0x2d1)]),[_0xaf5543,_0x35b07b]=_0x2f3fde(_0x3cd4b6['bottomLeft']),[_0x10de99,_0x1b0dd1]=_0x2f3fde(_0x3cd4b6[_0x3668e4(0x35d)]),[_0x1ac014,_0x5a2475]=_0x2f3fde(_0x3cd4b6['bottomRight']),_0x1f84c1=_0xf06a64(_0x5bfbd3);return _0x446e09(_0x3668e4(0x219),{'className':_0x3668e4(0x244),'children':[_0x446e09(_0x3668e4(0x219),{'className':_0x129659(_0x3668e4(0x185),_0x291622),'children':[_0x347b1f(_0x3668e4(0x219),{'className':_0x3668e4(0x131),'children':_0x1f84c1['t'](_0x3668e4(0x238))}),_0x446e09(_0x3668e4(0x219),{'className':_0x3668e4(0x13a),'children':[_0x347b1f(_0x5c88b2,{'className':_0x3668e4(0x1ea),'onClick':()=>{_0x54467d();},'children':_0x1f84c1['t'](_0x3668e4(0x214))}),_0x347b1f(_0x5c88b2,{'variant':_0x3668e4(0x24c),'onClick':()=>{const _0x4fa49=_0x3668e4;_0x54467d(),_0x2df931[_0x4fa49(0x224)]({'headerFooterSetting':{'topLeft':_0x362513,'topCenter':_0x43c701,'topRight':_0x20adbf,'bottomLeft':_0xaf5543,'bottomCenter':_0x10de99,'bottomRight':_0x1ac014}});},'children':_0x1f84c1['t'](_0x3668e4(0x236))})]})]}),_0x347b1f(_0x3668e4(0x219),{'className':_0x3668e4(0x2cf),'children':_0x347b1f(_0x3668e4(0x219),{'className':_0x3668e4(0xdf),'children':_0x446e09('div',{'className':'unier-w-[761px]\x20univer-mx-auto\x20univer-my-4\x20univer-box-border\x20univer-flex\x20univer-flex-col\x20univer-items-center\x20univer-bg-gray-0\x20univer-px-6\x20univer-py-7\x20univer-shadow-lg\x20dark:!univer-bg-gray-900','children':[_0x446e09(_0x3668e4(0x219),{'className':_0x3668e4(0x1cc),'children':[_0x347b1f(ir,{'value':_0x362513,'onChange':_0x1124b6=>_0x27bae6(_0x1124b6)}),_0x347b1f(ir,{'value':_0x43c701,'onChange':_0x541577=>_0x3c9637(_0x541577)}),_0x347b1f(ir,{'value':_0x20adbf,'onChange':_0x47e988=>_0x135b22(_0x47e988)})]}),_0x347b1f(_0x3668e4(0x219),{'className':_0x3668e4(0x2e5),'children':_0x347b1f(rr,{})}),_0x446e09(_0x3668e4(0x219),{'className':'univer-flex\x20univer-w-full','children':[_0x347b1f(ir,{'popupDirection':_0x3668e4(0x27a),'value':_0xaf5543,'onChange':_0xedd555=>_0x35b07b(_0xedd555)}),_0x347b1f(ir,{'popupDirection':_0x3668e4(0x27a),'value':_0x10de99,'onChange':_0x49ca72=>_0x1b0dd1(_0x49ca72)}),_0x347b1f(ir,{'popupDirection':_0x3668e4(0x27a),'value':_0x1ac014,'onChange':_0x54e40c=>_0x5a2475(_0x54e40c)})]})]})})})]});},or=0.1,sr=()=>{const _0x13c4d0=_0x48476b;let [_0x4a1a36,_0x355565]=_0x2f3fde(!0x1),_0x20035a=_0xf06a64(Y),_0x531726=_0xf06a64(_0xbc3d2e),_0x2a6864=_0x3c9101(_0x20035a[_0x13c4d0(0x263)],[]),[_0x501405,_0x2654ca]=_0x2f3fde(0x1),[_0x220877,_0x172256]=_0x2f3fde(!0x1),_0x534b31=_0xf06a64(K),_0x5d72e9=_0x3c9101(_0x534b31[_0x13c4d0(0x267)],_0x534b31[_0x13c4d0(0x2b7)]),_0x2a4f6d=_0xf06a64(_0x1af74b),_0x15a43c=_0xf06a64(_0x5bfbd3),_0x15d346=_0xf06a64(_0x545b18),{ls:_0xb366fe,pbk:_0x1673bb}=_0xf06a64(_0x3c85d4)['getConfig'](_0x1378c3)??{},{limit:_0x38183b,isPro:_0x24674e}=_0x447bff(()=>{let {page:_0x1dd8c5,isPro:_0x47b72c}=sn(0x3,_0xb366fe,_0x1673bb);return{'limit':_0x1dd8c5,'isPro':_0x47b72c};},[_0xb366fe,_0x1673bb]),_0x41eac7=_0x51972e(null),_0x28cf4a=_0xf06a64(_0x929bb8),_0x2df876=Bn(import(`@univerjs-pro/collaboration-client`).then(_0x58b55b=>_0x58b55b[_0x13c4d0(0x210)],()=>void 0x0));_0x1e7a81(()=>{const _0x453dae=_0x13c4d0;var _0x13bd33;if(!_0x2df876)return;let _0x21132b=_0x2a4f6d[_0x453dae(0x2d5)](_0x372cab[_0x453dae(0x26c)]);if(!_0x21132b)return;let _0x34f002=_0x21132b[_0x453dae(0x298)](),_0x216057=_0x15d346['get'](_0x2df876,_0x45cf88['OPTIONAL']),_0x407abd=_0x216057==null||(_0x13bd33=_0x216057[_0x453dae(0x25b)](_0x34f002))==null?void 0x0:_0x13bd33[_0x453dae(0x26d)]();return()=>{const _0x2a323f=_0x453dae;_0x407abd==null||_0x407abd[_0x2a323f(0x279)]();};},[_0x2df876,_0x15d346,_0x2a4f6d]);let _0x3a0225=_0x447bff(()=>vn(_0x2a6864),[_0x2a6864]),_0x2b135a=_0x447bff(()=>_0x3a0225['slice'](0x0,_0x38183b),[_0x3a0225,_0x38183b]),_0x1957f1=_0x20035a[_0x13c4d0(0x2d9)],_0x20928e=Math[_0x13c4d0(0x127)](_0x501405*(0x31a/_0x1957f1['w'])*0xa)/0xa,[_0x4dc43d,{wrapperStyle:_0x4c322a,containerProps:_0x462108}]=_0x3820f9(_0x2b135a,{'containerTarget':_0x41eac7,'itemHeight':_0x1957f1['h']*_0x20928e+0x1c,'overscan':0x5}),_0x281cf8=()=>{_0x531726['executeCommand'](ln['id']);},_0xf0b847=()=>{const _0x17a4f4=_0x13c4d0;_0x172256(!0x0),_0x28cf4a[_0x17a4f4(0x1f0)]({'content':_0x15a43c['t'](_0x17a4f4(0x23d)),'type':_0x48d934['Loading']}),setTimeout(()=>{const _0x38a413=_0x17a4f4;_0x531726[_0x38a413(0x354)](Z['id']);},0x12c);},_0x431451=_0x106493(()=>{_0x355565(!0x0);});return _0x446e09(_0x13c4d0(0x219),{'className':'univer-absolute\x20univer-inset-0\x20univer-z-[100]\x20univer-box-border\x20univer-flex\x20univer-size-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-100\x20dark:!univer-bg-gray-900','children':[_0x4a1a36&&_0x347b1f(ar,{'onClose':()=>_0x355565(!0x1)}),_0x220877&&_0x347b1f(_0x13c4d0(0x219),{'className':_0x13c4d0(0x10f)}),_0x446e09(_0x13c4d0(0x219),{'className':_0x129659(_0x13c4d0(0x1f4),_0x291622),'children':[_0x446e09('div',{'className':_0x13c4d0(0x209),'children':[_0x15a43c['t'](_0x13c4d0(0x139)),_0x2b135a[_0x13c4d0(0x118)],_0x15a43c['t']('sheets-print.header.pages')]}),_0x446e09(_0x13c4d0(0x219),{'className':_0x13c4d0(0x254),'children':[_0x347b1f(_0x5c88b2,{'onClick':_0x281cf8,'children':_0x15a43c['t']('sheets-print.header.cancel')}),_0x347b1f(_0x5c88b2,{'variant':_0x13c4d0(0x24c),'disabled':_0x5d72e9,'onClick':_0xf0b847,'children':_0x15a43c['t'](_0x13c4d0(0x186))})]})]}),_0x446e09(_0x13c4d0(0x219),{'className':_0x13c4d0(0x2e1),'children':[_0x446e09(_0x13c4d0(0x219),{'className':_0x13c4d0(0x21f),'children':[_0x347b1f('div',{'ref':_0x41eac7,'className':_0x129659(_0x13c4d0(0xe5),_0x1a8f1b),'aria-busy':_0x5d72e9,..._0x462108,'children':_0x5d72e9?_0x347b1f(_0x13c4d0(0x219),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center','role':_0x13c4d0(0x19c),'aria-label':_0x15a43c['t'](_0x13c4d0(0x23d)),'children':_0x347b1f(_0x4dc983,{'className':'univer-size-8\x20univer-animate-spin\x20univer-text-gray-500','aria-hidden':'true'})}):_0x347b1f('div',{'style':_0x4c322a,'children':_0x4dc43d['map'](_0x4951b0=>_0x347b1f(Hn,{'config':_0x4951b0[_0x13c4d0(0x343)],'page':_0x4951b0[_0x13c4d0(0x343)][_0x13c4d0(0x159)],'previewScale':_0x501405},_0x4951b0[_0x13c4d0(0x343)][_0x13c4d0(0x102)]+':'+_0x4951b0[_0x13c4d0(0x343)][_0x13c4d0(0xe7)]+':'+_0x4951b0[_0x13c4d0(0x343)][_0x13c4d0(0x159)]+':'+_0x4951b0[_0x13c4d0(0x343)]['range'][_0x13c4d0(0x358)]+':'+_0x4951b0['data'][_0x13c4d0(0x1ab)][_0x13c4d0(0x18d)]+':'+_0x4951b0[_0x13c4d0(0x343)][_0x13c4d0(0x1ab)][_0x13c4d0(0x2ce)]+':'+_0x4951b0[_0x13c4d0(0x343)][_0x13c4d0(0x1ab)]['endColumn']))})}),!_0x5d72e9&&!_0x24674e&&_0x347b1f(_0x13c4d0(0x219),{'className':_0x13c4d0(0x1d4),'children':_0x347b1f('a',{'href':_0x15a43c['t']('sheets-print.limit.link'),'target':_0x13c4d0(0x216),'rel':_0x13c4d0(0x19b),'children':_0x15a43c['t'](_0x13c4d0(0x16f))[_0x13c4d0(0x2ac)]('{limit}',''+_0x38183b)})}),!_0x5d72e9&&!_0x4a1a36&&_0x446e09(_0x13c4d0(0x219),{'className':_0x13c4d0(0x2ea),'children':[_0x347b1f(_0x13c4d0(0x219),{'className':_0x13c4d0(0x12c),'onClick':()=>{_0x2654ca(Math['min'](_0x501405+or,0x2));},'children':_0x347b1f(_0x115d20,{})}),_0x347b1f('div',{'className':_0x13c4d0(0x12c),'onClick':()=>{const _0x2e1883=_0x13c4d0;_0x2654ca(Math[_0x2e1883(0x30c)](_0x501405-or,0.5));},'children':_0x347b1f(_0x1c9c94,{})})]})]}),_0x347b1f('div',{'className':'univer-box-border\x20univer-h-full\x20univer-w-[312px]\x20univer-flex-none\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':_0x347b1f(Wn,{'onShowFooterHeaderEditor':_0x431451})})]})]});},cr=()=>{const _0x1c18c1=_0x48476b;let _0x2879f6=_0xf06a64(K);return _0x3c9101(_0x2879f6['visible$'],_0x2879f6[_0x1c18c1(0x168)])?_0x347b1f(sr,{}):null;},lr={'id':X['id'],'binding':_0x757ffe['P']|_0x6cec8c[_0x48476b(0x130)],'preconditions':_0x15551e};let ur=class extends _0x5117f5{constructor(_0x300a7a,_0x29d38b,_0x1231d2,_0x196e36,_0x32299d,_0x5bb363,_0x352320,_0x3534a3,_0x4f4d09,_0x3151e2){const _0x3bdf75=_0x48476b;super(),this[_0x3bdf75(0x1cb)]=_0x300a7a,this['_commandService']=_0x29d38b,this[_0x3bdf75(0x313)]=_0x1231d2,this[_0x3bdf75(0x100)]=_0x196e36,this[_0x3bdf75(0x184)]=_0x32299d,this[_0x3bdf75(0x285)]=_0x5bb363,this[_0x3bdf75(0x124)]=_0x352320,this[_0x3bdf75(0x10b)]=_0x3534a3,this[_0x3bdf75(0x18f)]=_0x4f4d09,this['_uiPartsService']=_0x3151e2,this[_0x3bdf75(0x2c0)](),this[_0x3bdf75(0x143)](),this[_0x3bdf75(0x1bf)](),this['_initShortcuts'](),this[_0x3bdf75(0x226)](),this[_0x3bdf75(0x1d9)](),this[_0x3bdf75(0x253)]();}['_initCommands'](){const _0x562f3a=_0x48476b;[X,ln,Z,xn,un,Tn,En][_0x562f3a(0x141)](_0x38d472=>this[_0x562f3a(0x23c)][_0x562f3a(0x1db)](_0x38d472));}[_0x48476b(0x143)](){const _0x1de1d0=_0x48476b;this[_0x1de1d0(0x2c7)](this[_0x1de1d0(0x1a2)]['registerComponent'](_0x3713f9['GLOBAL'],()=>_0x496a9b(cr,this[_0x1de1d0(0x124)])));}[_0x48476b(0x1e6)](){const _0x58c5f4=_0x48476b;[lr][_0x58c5f4(0x141)](_0x50845d=>{const _0x46357a=_0x58c5f4;this['_shortcutService'][_0x46357a(0x1b1)](_0x50845d);});}[_0x48476b(0x1bf)](){const _0x39e1e1=_0x48476b;this[_0x39e1e1(0x184)][_0x39e1e1(0x15b)](Mn);}[_0x48476b(0x1d9)](){const _0x58be39=_0x48476b;this[_0x58be39(0x2c7)](this['_printDialogService'][_0x58be39(0x288)][_0x58be39(0x10c)](_0x22d902=>{const _0x17843b=_0x58be39;_0x22d902&&this[_0x17843b(0x313)]['reLayout']();}));}[_0x48476b(0x2b2)](){const _0x137faf=_0x48476b;let _0x40659e=this[_0x137faf(0x313)][_0x137faf(0x22a)],_0x829b1d=this[_0x137faf(0x313)][_0x137faf(0x2ef)];return this['_sheetPrintClientService'][_0x137faf(0xf4)](_0x40659e,_0x829b1d);}['_initCommandListener'](){const _0x2f9333=_0x48476b;this['disposeWithMe'](this[_0x2f9333(0x23c)][_0x2f9333(0x122)](_0x41e3fb=>{const _0x5279d3=_0x2f9333;_0x41e3fb['id']===Z['id']&&this[_0x5279d3(0x2b2)]();}));}[_0x48476b(0x253)](){const _0x4c66c3=_0x48476b;let _0x2accae=this[_0x4c66c3(0x124)][_0x4c66c3(0x179)](Sn);this['disposeWithMe'](_0x2accae[_0x4c66c3(0x288)][_0x4c66c3(0x10c)](()=>{const _0x91f7dc=_0x4c66c3;let _0x5d79da=this[_0x91f7dc(0x10b)][_0x91f7dc(0x2d5)](0x2);if(_0x5d79da){let _0x44b095=_0x5d79da[_0x91f7dc(0x298)](),_0x1437ea=this[_0x91f7dc(0x18f)][_0x91f7dc(0x147)](_0x44b095);if(_0x1437ea){var _0x48edb4;(_0x48edb4=_0x1437ea[_0x91f7dc(0x1a4)])==null||_0x48edb4[_0x91f7dc(0x2a6)]();}}})),this['disposeWithMe'](this[_0x4c66c3(0x313)][_0x4c66c3(0x1e5)][_0x4c66c3(0x10c)](()=>{const _0x2ad27e=_0x4c66c3;if(!_0x2accae['visible'])return;this[_0x2ad27e(0x313)][_0x2ad27e(0x191)]();let _0x377994=this[_0x2ad27e(0x10b)][_0x2ad27e(0x2d5)](0x2);if(_0x377994){let _0x3f6feb=_0x377994['getUnitId'](),_0x3d0efa=this[_0x2ad27e(0x18f)][_0x2ad27e(0x147)](_0x3f6feb);if(_0x3d0efa){var _0xe22538;(_0xe22538=_0x3d0efa[_0x2ad27e(0x1a4)])==null||_0xe22538[_0x2ad27e(0x2a6)]();}}})),this[_0x4c66c3(0x2c7)](this[_0x4c66c3(0x23c)][_0x4c66c3(0x122)](_0x23eb44=>{const _0x3e92ff=_0x4c66c3;if(!_0x2accae['visible']||[X['id'],ln['id'],Z['id'],un['id'],Tn['id'],En['id']]['includes'](_0x23eb44['id']))return;this[_0x3e92ff(0x313)][_0x3e92ff(0x191)]();let _0xc70b1=this[_0x3e92ff(0x10b)]['getCurrentUnitOfType'](0x2);if(_0xc70b1){let _0x258afa=_0xc70b1[_0x3e92ff(0x298)](),_0x4800d4=this[_0x3e92ff(0x18f)][_0x3e92ff(0x147)](_0x258afa);if(_0x4800d4){var _0x87fe88;(_0x87fe88=_0x4800d4[_0x3e92ff(0x1a4)])==null||_0x87fe88['makeDirty']();}}}));}};ur=J([q(0x0,K),q(0x1,_0xbc3d2e),q(0x2,Y),q(0x3,_0x2fba99($)),q(0x4,_0x261ffc),q(0x5,_0x1709bc),q(0x6,_0x2fba99(_0x545b18)),q(0x7,_0x1af74b),q(0x8,_0x509807),q(0x9,_0x1ba163)],ur);let dr=class extends _0x24bd44{constructor(_0x90a1c6=Ln,_0x2becbf,_0x4097ae,_0x494437){const _0x163730=_0x48476b;super(),this[_0x163730(0x2db)]=_0x90a1c6,this[_0x163730(0x124)]=_0x2becbf,this[_0x163730(0xda)]=_0x4097ae,this[_0x163730(0x18f)]=_0x494437;let {menu:_0x5587e7,..._0x3a55f4}=_0x472b0d({},Ln,this['_config']);_0x5587e7&&this['_configService']['setConfig'](_0x163730(0x16b),_0x5587e7,{'merge':!0x0}),this[_0x163730(0xda)][_0x163730(0x2c6)](In,_0x3a55f4);}[_0x48476b(0x13c)](){const _0x3ef504=_0x48476b;this['_injector']['has'](_0x127df1)||this[_0x3ef504(0x124)]['add']([_0x127df1,{'useClass':_0x5ea27c}]),_0x1b6df5(this[_0x3ef504(0x124)],[[Y,{'useClass':an}],[K,{'useClass':Yt}],[Sn,{'useClass':Cn}],[$],[Zn],[ur]]),this[_0x3ef504(0x2c7)](this[_0x3ef504(0x18f)][_0x3ef504(0x32d)](_0x372cab[_0x3ef504(0x26c)],[er])),_0x467a27(this[_0x3ef504(0x124)],[[Zn],[ur]]);}};G(dr,_0x48476b(0x2af),Fn),G(dr,'packageName',Nn),G(dr,_0x48476b(0x2a0),Pn),G(dr,'type',_0x372cab[_0x48476b(0x26c)]),dr=J([_0x54b76b(_0x4373b3,_0x128d64,_0xb63c0e,_0x2a99c0),q(0x1,_0x2fba99(_0x545b18)),q(0x2,_0x3c85d4),q(0x3,_0x509807)],dr);export{ln as CancelSheetPrintOperation,Z as ConfirmSheetPrintOperation,Y as ISheetPrintManagerService,Xt as PrintArea,Qt as PrintFreeze,Zt as PrintHeaderFooter,$t as PrintHeaderFooterSymbol,_n as SheetPrintCanvasView,$ as SheetPrintClientService,X as SheetPrintOpenOperation,xn as SheetScreenShotOperation,Mn as SheetsPrintMenuSchema,Yn as UniverSheetsPrintMobileUIPlugin,dr as UniverSheetsPrintPlugin,en as defaultHeaderFooter,cn as hasPrintFacadePermission};
|