onchain-uikit 0.0.7 → 3.9.4-alpha1

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.
Files changed (145) hide show
  1. package/dist/filePreview/fontawesome-webfont.woff2 +0 -0
  2. package/dist/filePreview/iconfont.css +457 -0
  3. package/dist/filePreview/loading.gif +0 -0
  4. package/dist/filePreview/logo.svg +1 -0
  5. package/dist/filePreview/luckyexcel.umd.js +26153 -0
  6. package/dist/filePreview/luckysheet.css +7145 -0
  7. package/dist/filePreview/luckysheet.umd.js +137608 -0
  8. package/dist/filePreview/plugin.js +29474 -0
  9. package/dist/filePreview/plugins.css +10 -0
  10. package/dist/filePreview/pluginsCss.css +1 -0
  11. package/dist/filePreview/waffle_sprite.png +0 -0
  12. package/dist/font/demo.css +539 -0
  13. package/dist/font/demo_index.html +20820 -0
  14. package/dist/font/iconfont.css +3604 -0
  15. package/dist/font/iconfont.js +70 -0
  16. package/dist/font/iconfont.json +6288 -0
  17. package/dist/font/iconfont.svg +1813 -0
  18. package/dist/font/iconfont.ttf +0 -0
  19. package/dist/font/iconfont.woff +0 -0
  20. package/dist/font/iconfont.woff2 +0 -0
  21. package/dist/index.cjs.js +366 -0
  22. package/dist/index.es.js +31137 -0
  23. package/dist/index.umd.js +470 -0
  24. package/dist/logo.svg +1 -0
  25. package/dist/onchain-uikit.css +10 -0
  26. package/dist/xlsx-C9icP-aY.mjs +24775 -0
  27. package/dist/xlsx-qn1xoUuv.js +105 -0
  28. package/lib/src/App.d.ts +1 -1
  29. package/lib/src/app/main/model/context.d.ts +30 -0
  30. package/lib/src/components/OnChainAI/index.d.ts +3 -0
  31. package/lib/src/{stories/Page.stories.d.ts → components/OnChainAI/index.stories.d.ts} +4 -2
  32. package/lib/src/components/OnChainAdvancedSearch/index.d.ts +8 -0
  33. package/lib/src/{stories/XsButton.stories.d.ts → components/OnChainAdvancedSearch/index.stories.d.ts} +1 -1
  34. package/lib/src/components/OnChainBadge/index.d.ts +52 -0
  35. package/lib/src/{stories/PlmMosaic.stories.d.ts → components/OnChainBadge/index.stories.d.ts} +2 -2
  36. package/lib/src/components/OnChainCompositeForm/index.d.ts +26 -0
  37. package/lib/src/components/OnChainCompositeForm/index.stories.d.ts +14 -0
  38. package/lib/src/components/OnChainDropMenu/index.d.ts +21 -0
  39. package/lib/src/components/OnChainDropMenu/index.stories.d.ts +14 -0
  40. package/lib/src/components/OnChainExcelViewer/index.d.ts +8 -0
  41. package/lib/src/components/OnChainExcelViewer/index.stories.d.ts +14 -0
  42. package/lib/src/components/OnChainForm/index.d.ts +14 -0
  43. package/lib/src/components/OnChainForm/index.stories.d.ts +14 -0
  44. package/lib/src/components/OnChainFormItem/index.d.ts +175 -0
  45. package/lib/src/components/OnChainFormItem/index.stories.d.ts +19 -0
  46. package/lib/src/components/OnChainFormItem/title/index.d.ts +2 -0
  47. package/lib/src/components/OnChainGenAntImage/index.d.ts +5 -0
  48. package/lib/src/components/OnChainGenAntImage/index.stories.d.ts +14 -0
  49. package/lib/src/components/OnChainGlobalLoading/index.d.ts +9 -0
  50. package/lib/src/components/OnChainGlobalLoading/index.stories.d.ts +14 -0
  51. package/lib/src/components/OnChainHighLightWords/index.d.ts +9 -0
  52. package/lib/src/components/OnChainHighLightWords/index.stories.d.ts +14 -0
  53. package/lib/src/components/OnChainIcon/index.d.ts +31 -0
  54. package/lib/src/components/OnChainIcon/index.stories.d.ts +15 -0
  55. package/lib/src/components/OnChainImage/index.d.ts +9 -0
  56. package/lib/src/components/OnChainImage/index.stories.d.ts +18 -0
  57. package/lib/src/components/OnChainInput/index.d.ts +13 -0
  58. package/lib/src/components/OnChainInput/index.stories.d.ts +14 -0
  59. package/lib/src/components/OnChainLinkInstance/index.d.ts +1 -0
  60. package/lib/src/components/OnChainLoading/index.d.ts +10 -0
  61. package/lib/src/components/OnChainLoading/index.stories.d.ts +14 -0
  62. package/lib/src/components/OnChainLoadingSkCube/index.d.ts +6 -0
  63. package/lib/src/components/OnChainLoadingSkCube/index.stories.d.ts +14 -0
  64. package/lib/src/components/OnChainMarkdown/index.d.ts +16 -0
  65. package/lib/src/components/OnChainMarkdown/index.stories.d.ts +14 -0
  66. package/lib/src/components/OnChainModal/index.d.ts +22 -0
  67. package/lib/src/components/OnChainModal/index.stories.d.ts +14 -0
  68. package/lib/src/components/OnChainMosaic/index.d.ts +7 -0
  69. package/lib/src/components/OnChainMosaic/index.stories.d.ts +14 -0
  70. package/lib/src/components/OnChainPopoverTransfer/index.d.ts +49 -0
  71. package/lib/src/components/OnChainPopoverTransfer/select/index.d.ts +18 -0
  72. package/lib/src/components/OnChainPopupSelect/index.d.ts +32 -0
  73. package/lib/src/components/OnChainPopupSelect/index.stories.d.ts +14 -0
  74. package/lib/src/components/OnChainProgress/index.d.ts +7 -0
  75. package/lib/src/components/OnChainProgress/index.stories.d.ts +16 -0
  76. package/lib/src/components/OnChainProvider/index.d.ts +18 -0
  77. package/lib/src/components/OnChainProvider/index.stories.d.ts +14 -0
  78. package/lib/src/components/OnChainPublicTree/index.d.ts +20 -0
  79. package/lib/src/components/OnChainPublicTree/index.stories.d.ts +14 -0
  80. package/lib/src/components/OnChainQueryBuilder/AbcSelectTransfer/index.d.ts +15 -0
  81. package/lib/src/components/OnChainQueryBuilder/index.d.ts +31 -0
  82. package/lib/src/components/OnChainResourceTree/index.d.ts +26 -0
  83. package/lib/src/components/OnChainResourceTree/index.stories.d.ts +14 -0
  84. package/lib/src/components/OnChainScrollBar/index.d.ts +7 -0
  85. package/lib/src/components/OnChainScrollBar/index.stories.d.ts +14 -0
  86. package/lib/src/components/OnChainScrollBarAssembly/index.d.ts +11 -0
  87. package/lib/src/components/OnChainScrollBarAssembly/index.stories.d.ts +14 -0
  88. package/lib/src/components/OnChainSelect/index.d.ts +14 -0
  89. package/lib/src/{stories/PlmSelect/PlmSelect.stories.d.ts → components/OnChainSelect/index.stories.d.ts} +8 -3
  90. package/lib/src/components/OnChainSelectPopupForm/index.d.ts +45 -0
  91. package/lib/src/components/OnChainSelectPopupForm/select/index.d.ts +20 -0
  92. package/lib/src/components/OnChainTable/ContextMenu.d.ts +8 -0
  93. package/lib/src/components/OnChainTable/EditableCell.d.ts +39 -0
  94. package/lib/src/components/OnChainTable/EditableRow.d.ts +6 -0
  95. package/lib/src/components/OnChainTable/OnChainTableFormItem/index.d.ts +14 -0
  96. package/lib/src/components/OnChainTable/ResizableTitle.d.ts +2 -0
  97. package/lib/src/components/OnChainTable/TableFooter.d.ts +13 -0
  98. package/lib/src/components/OnChainTable/TableUtils.d.ts +78 -0
  99. package/lib/src/components/OnChainTable/const.d.ts +2 -0
  100. package/lib/src/components/OnChainTable/index.d.ts +101 -0
  101. package/lib/src/components/OnChainTable/index.stories.d.ts +28 -0
  102. package/lib/src/components/OnChainTable/type.d.ts +10 -0
  103. package/lib/src/components/OnChainTable/useClipboard.d.ts +67 -0
  104. package/lib/src/components/OnChainTable/useColumn.d.ts +5 -0
  105. package/lib/src/components/OnChainTable/useCopy.d.ts +5 -0
  106. package/lib/src/components/OnChainTable/useDynamicHeight.d.ts +13 -0
  107. package/lib/src/components/OnChainTable/useFiltered.d.ts +23 -0
  108. package/lib/src/components/OnChainTable/usePaste.d.ts +5 -0
  109. package/lib/src/components/OnChainTable/useVirtualScroll.d.ts +3 -0
  110. package/lib/src/components/OnChainTable/virtualScroll.d.ts +91 -0
  111. package/lib/src/components/OnChainTableSelection/index.d.ts +40 -0
  112. package/lib/src/components/OnChainTableSelection/index.stories.d.ts +14 -0
  113. package/lib/src/components/OnChainTabs/index.d.ts +20 -0
  114. package/lib/src/components/OnChainTabs/index.stories.d.ts +14 -0
  115. package/lib/src/components/OnChainViewerError/index.d.ts +6 -0
  116. package/lib/src/components/OnChainViewerError/index.stories.d.ts +14 -0
  117. package/lib/src/components/OnChainformUploader/index.d.ts +1 -0
  118. package/lib/src/components/PlmSearchSelect/index.d.ts +18 -0
  119. package/lib/src/hooks/useShortcutKey/index.d.ts +5 -0
  120. package/lib/src/hooks/useStore/index.d.ts +14 -0
  121. package/lib/src/index.d.ts +30 -4
  122. package/lib/src/language/index.d.ts +23 -0
  123. package/lib/src/language/translate.d.ts +5 -0
  124. package/lib/src/types/gantt.d.ts +269 -0
  125. package/lib/src/typings.d.ts +610 -612
  126. package/lib/src/utils/attribute.d.ts +70 -0
  127. package/lib/src/utils/authority/basicsAuthority.d.ts +0 -5
  128. package/lib/src/utils/authority/const.d.ts +30 -0
  129. package/lib/src/utils/itemCode.d.ts +159 -0
  130. package/lib/src/utils/utility.d.ts +46 -0
  131. package/lib/typings.d.ts +126 -130
  132. package/package.json +31 -7
  133. package/lib/instance.cjs.mjs +0 -366
  134. package/lib/instance.es.mjs +0 -29301
  135. package/lib/instance.umd.mjs +0 -366
  136. package/lib/src/components/PlmMosaic/index.d.ts +0 -5
  137. package/lib/src/stories/Button.d.ts +0 -14
  138. package/lib/src/stories/Button.stories.d.ts +0 -23
  139. package/lib/src/stories/Header.d.ts +0 -11
  140. package/lib/src/stories/Header.stories.d.ts +0 -18
  141. package/lib/src/stories/OnChainProvider.d.ts +0 -12
  142. package/lib/src/stories/Page.d.ts +0 -2
  143. package/lib/src/stories/PlmSelect/index.d.ts +0 -20
  144. package/lib/src/stories/XsButton.d.ts +0 -22
  145. /package/{lib → dist}/vite.svg +0 -0
@@ -0,0 +1,470 @@
1
+ (function(gt,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("react"),require("antd"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","react-dom"],ae):(gt=typeof globalThis<"u"?globalThis:gt||self,ae(gt["onchain-uikit"]={},gt.React,gt.antd,gt.ReactDOM))})(this,function(gt,ae,pe,Kv){"use strict";var iee=Object.defineProperty;var see=(gt,ae,pe)=>ae in gt?iee(gt,ae,{enumerable:!0,configurable:!0,writable:!0,value:pe}):gt[ae]=pe;var Ln=(gt,ae,pe)=>see(gt,typeof ae!="symbol"?ae+"":ae,pe);function wC(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ct=wC(ae);var Fa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bC(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Of={exports:{}},tu={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Xv;function SC(){if(Xv)return tu;Xv=1;var e=ae,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(o,l,c){var d,p={},g=null,v=null;c!==void 0&&(g=""+c),l.key!==void 0&&(g=""+l.key),l.ref!==void 0&&(v=l.ref);for(d in l)n.call(l,d)&&!i.hasOwnProperty(d)&&(p[d]=l[d]);if(o&&o.defaultProps)for(d in l=o.defaultProps,l)p[d]===void 0&&(p[d]=l[d]);return{$$typeof:t,type:o,key:g,ref:v,props:p,_owner:a.current}}return tu.Fragment=r,tu.jsx=s,tu.jsxs=s,tu}var ru={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Zv;function kC(){return Zv||(Zv=1,process.env.NODE_ENV!=="production"&&function(){var e=ae,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function C(I){if(I===null||typeof I!="object")return null;var W=y&&I[y]||I[_];return typeof W=="function"?W:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(I){{for(var W=arguments.length,K=new Array(W>1?W-1:0),ee=1;ee<W;ee++)K[ee-1]=arguments[ee];b("error",I,K)}}function b(I,W,K){{var ee=E.ReactDebugCurrentFrame,ne=ee.getStackAddendum();ne!==""&&(W+="%s",K=K.concat([ne]));var de=K.map(function(xe){return String(xe)});de.unshift("Warning: "+W),Function.prototype.apply.call(console[I],console,de)}}var h=!1,m=!1,x=!1,S=!1,A=!1,k;k=Symbol.for("react.module.reference");function F(I){return!!(typeof I=="string"||typeof I=="function"||I===n||I===i||A||I===a||I===c||I===d||S||I===v||h||m||x||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===p||I.$$typeof===s||I.$$typeof===o||I.$$typeof===l||I.$$typeof===k||I.getModuleId!==void 0))}function P(I,W,K){var ee=I.displayName;if(ee)return ee;var ne=W.displayName||W.name||"";return ne!==""?K+"("+ne+")":K}function j(I){return I.displayName||"Context"}function L(I){if(I==null)return null;if(typeof I.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case o:var W=I;return j(W)+".Consumer";case s:var K=I;return j(K._context)+".Provider";case l:return P(I,I.render,"ForwardRef");case p:var ee=I.displayName||null;return ee!==null?ee:L(I.type)||"Memo";case g:{var ne=I,de=ne._payload,xe=ne._init;try{return L(xe(de))}catch{return null}}}return null}var B=Object.assign,U=0,O,N,V,M,q,Y,z;function re(){}re.__reactDisabledLog=!0;function J(){{if(U===0){O=console.log,N=console.info,V=console.warn,M=console.error,q=console.group,Y=console.groupCollapsed,z=console.groupEnd;var I={configurable:!0,enumerable:!0,value:re,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}U++}}function te(){{if(U--,U===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},I,{value:O}),info:B({},I,{value:N}),warn:B({},I,{value:V}),error:B({},I,{value:M}),group:B({},I,{value:q}),groupCollapsed:B({},I,{value:Y}),groupEnd:B({},I,{value:z})})}U<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=E.ReactCurrentDispatcher,ue;function ve(I,W,K){{if(ue===void 0)try{throw Error()}catch(ne){var ee=ne.stack.trim().match(/\n( *(at )?)/);ue=ee&&ee[1]||""}return`
18
+ `+ue+I}}var _e=!1,ye;{var je=typeof WeakMap=="function"?WeakMap:Map;ye=new je}function Z(I,W){if(!I||_e)return"";{var K=ye.get(I);if(K!==void 0)return K}var ee;_e=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var de;de=oe.current,oe.current=null,J();try{if(W){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Ie){ee=Ie}Reflect.construct(I,[],xe)}else{try{xe.call()}catch(Ie){ee=Ie}I.call(xe.prototype)}}else{try{throw Error()}catch(Ie){ee=Ie}I()}}catch(Ie){if(Ie&&ee&&typeof Ie.stack=="string"){for(var ce=Ie.stack.split(`
19
+ `),me=ee.stack.split(`
20
+ `),ge=ce.length-1,Te=me.length-1;ge>=1&&Te>=0&&ce[ge]!==me[Te];)Te--;for(;ge>=1&&Te>=0;ge--,Te--)if(ce[ge]!==me[Te]){if(ge!==1||Te!==1)do if(ge--,Te--,Te<0||ce[ge]!==me[Te]){var Re=`
21
+ `+ce[ge].replace(" at new "," at ");return I.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",I.displayName)),typeof I=="function"&&ye.set(I,Re),Re}while(ge>=1&&Te>=0);break}}}finally{_e=!1,oe.current=de,te(),Error.prepareStackTrace=ne}var Ue=I?I.displayName||I.name:"",De=Ue?ve(Ue):"";return typeof I=="function"&&ye.set(I,De),De}function Ge(I,W,K){return Z(I,!1)}function Ae(I){var W=I.prototype;return!!(W&&W.isReactComponent)}function ze(I,W,K){if(I==null)return"";if(typeof I=="function")return Z(I,Ae(I));if(typeof I=="string")return ve(I);switch(I){case c:return ve("Suspense");case d:return ve("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case l:return Ge(I.render);case p:return ze(I.type,W,K);case g:{var ee=I,ne=ee._payload,de=ee._init;try{return ze(de(ne),W,K)}catch{}}}return""}var qe=Object.prototype.hasOwnProperty,Pe={},ut=E.ReactDebugCurrentFrame;function Ye(I){if(I){var W=I._owner,K=ze(I.type,I._source,W?W.type:null);ut.setExtraStackFrame(K)}else ut.setExtraStackFrame(null)}function it(I,W,K,ee,ne){{var de=Function.call.bind(qe);for(var xe in I)if(de(I,xe)){var ce=void 0;try{if(typeof I[xe]!="function"){var me=Error((ee||"React class")+": "+K+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw me.name="Invariant Violation",me}ce=I[xe](W,xe,ee,K,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){ce=ge}ce&&!(ce instanceof Error)&&(Ye(ne),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ee||"React class",K,xe,typeof ce),Ye(null)),ce instanceof Error&&!(ce.message in Pe)&&(Pe[ce.message]=!0,Ye(ne),T("Failed %s type: %s",K,ce.message),Ye(null))}}}var ht=Array.isArray;function ir(I){return ht(I)}function Fr(I){{var W=typeof Symbol=="function"&&Symbol.toStringTag,K=W&&I[Symbol.toStringTag]||I.constructor.name||"Object";return K}}function Xr(I){try{return Hr(I),!1}catch{return!0}}function Hr(I){return""+I}function Jn(I){if(Xr(I))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(I)),Hr(I)}var Dn=E.ReactCurrentOwner,ur={key:!0,ref:!0,__self:!0,__source:!0},Zr,dt;function Kt(I){if(qe.call(I,"ref")){var W=Object.getOwnPropertyDescriptor(I,"ref").get;if(W&&W.isReactWarning)return!1}return I.ref!==void 0}function zr(I){if(qe.call(I,"key")){var W=Object.getOwnPropertyDescriptor(I,"key").get;if(W&&W.isReactWarning)return!1}return I.key!==void 0}function sr(I,W){typeof I.ref=="string"&&Dn.current}function Qn(I,W){{var K=function(){Zr||(Zr=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};K.isReactWarning=!0,Object.defineProperty(I,"key",{get:K,configurable:!0})}}function Ts(I,W){{var K=function(){dt||(dt=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};K.isReactWarning=!0,Object.defineProperty(I,"ref",{get:K,configurable:!0})}}var Po=function(I,W,K,ee,ne,de,xe){var ce={$$typeof:t,type:I,key:W,ref:K,props:xe,_owner:de};return ce._store={},Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce};function Do(I,W,K,ee,ne){{var de,xe={},ce=null,me=null;K!==void 0&&(Jn(K),ce=""+K),zr(W)&&(Jn(W.key),ce=""+W.key),Kt(W)&&(me=W.ref,sr(W,ne));for(de in W)qe.call(W,de)&&!ur.hasOwnProperty(de)&&(xe[de]=W[de]);if(I&&I.defaultProps){var ge=I.defaultProps;for(de in ge)xe[de]===void 0&&(xe[de]=ge[de])}if(ce||me){var Te=typeof I=="function"?I.displayName||I.name||"Unknown":I;ce&&Qn(xe,Te),me&&Ts(xe,Te)}return Po(I,ce,me,ne,ee,Dn.current,xe)}}var Es=E.ReactCurrentOwner,Ro=E.ReactDebugCurrentFrame;function Va(I){if(I){var W=I._owner,K=ze(I.type,I._source,W?W.type:null);Ro.setExtraStackFrame(K)}else Ro.setExtraStackFrame(null)}var Cs;Cs=!1;function As(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function Vi(){{if(Es.current){var I=L(Es.current.type);if(I)return`
22
+
23
+ Check the render method of \``+I+"`."}return""}}function of(I){return""}var jl={};function lf(I){{var W=Vi();if(!W){var K=typeof I=="string"?I:I.displayName||I.name;K&&(W=`
24
+
25
+ Check the top-level render call using <`+K+">.")}return W}}function No(I,W){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var K=lf(W);if(jl[K])return;jl[K]=!0;var ee="";I&&I._owner&&I._owner!==Es.current&&(ee=" It was passed a child from "+L(I._owner.type)+"."),Va(I),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,ee),Va(null)}}function Ul(I,W){{if(typeof I!="object")return;if(ir(I))for(var K=0;K<I.length;K++){var ee=I[K];As(ee)&&No(ee,W)}else if(As(I))I._store&&(I._store.validated=!0);else if(I){var ne=C(I);if(typeof ne=="function"&&ne!==I.entries)for(var de=ne.call(I),xe;!(xe=de.next()).done;)As(xe.value)&&No(xe.value,W)}}}function uf(I){{var W=I.type;if(W==null||typeof W=="string")return;var K;if(typeof W=="function")K=W.propTypes;else if(typeof W=="object"&&(W.$$typeof===l||W.$$typeof===p))K=W.propTypes;else return;if(K){var ee=L(W);it(K,I.props,"prop",ee,I)}else if(W.PropTypes!==void 0&&!Cs){Cs=!0;var ne=L(W);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof W.getDefaultProps=="function"&&!W.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function cf(I){{for(var W=Object.keys(I.props),K=0;K<W.length;K++){var ee=W[K];if(ee!=="children"&&ee!=="key"){Va(I),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Va(null);break}}I.ref!==null&&(Va(I),T("Invalid attribute `ref` supplied to `React.Fragment`."),Va(null))}}var Os={};function Fs(I,W,K,ee,ne,de){{var xe=F(I);if(!xe){var ce="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(ce+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var me=of();me?ce+=me:ce+=Vi();var ge;I===null?ge="null":ir(I)?ge="array":I!==void 0&&I.$$typeof===t?(ge="<"+(L(I.type)||"Unknown")+" />",ce=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof I,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,ce)}var Te=Do(I,W,K,ne,de);if(Te==null)return Te;if(xe){var Re=W.children;if(Re!==void 0)if(ee)if(ir(Re)){for(var Ue=0;Ue<Re.length;Ue++)Ul(Re[Ue],I);Object.freeze&&Object.freeze(Re)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ul(Re,I)}if(qe.call(W,"key")){var De=L(I),Ie=Object.keys(W).filter(function(Zt){return Zt!=="key"}),st=Ie.length>0?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}";if(!Os[De+st]){var Xt=Ie.length>0?"{"+Ie.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,st,De,Xt,De),Os[De+st]=!0}}return I===n?cf(Te):uf(Te),Te}}function Mo(I,W,K){return Fs(I,W,K,!0)}function ff(I,W,K){return Fs(I,W,K,!1)}var df=ff,G=Mo;ru.Fragment=n,ru.jsx=df,ru.jsxs=G}()),ru}var Jv;function TC(){return Jv||(Jv=1,process.env.NODE_ENV==="production"?Of.exports=SC():Of.exports=kC()),Of.exports}var R=TC();const nu=ae.createContext({});var au={},ih={exports:{}},Qv;function Ff(){return Qv||(Qv=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ih)),ih.exports}var iu={},ex;function EC(){if(ex)return iu;ex=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.default=void 0;var e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};return iu.default=e,iu}var su={},ou={},lu={},sh={exports:{}},oh={exports:{}},lh={exports:{}},uh={exports:{}},tx;function rx(){return tx||(tx=1,function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(uh)),uh.exports}var ch={exports:{}},nx;function CC(){return nx||(nx=1,function(e){var t=rx().default;function r(n,a){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var s=i.call(n,a||"default");if(t(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(ch)),ch.exports}var ax;function AC(){return ax||(ax=1,function(e){var t=rx().default,r=CC();function n(a){var i=r(a,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(lh)),lh.exports}var ix;function OC(){return ix||(ix=1,function(e){var t=AC();function r(n,a,i){return(a=t(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(oh)),oh.exports}var sx;function FC(){return sx||(sx=1,function(e){var t=OC();function r(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);i&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function n(a){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?r(Object(s),!0).forEach(function(o){t(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(sh)),sh.exports}var uu={},ox;function PC(){return ox||(ox=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.commonLocale=void 0,uu.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),uu}var lx;function DC(){if(lx)return lu;lx=1;var e=Ff().default;Object.defineProperty(lu,"__esModule",{value:!0}),lu.default=void 0;var t=e(FC()),r=PC(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return lu.default=n,lu}var cu={},ux;function cx(){if(ux)return cu;ux=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return cu.default=e,cu}var fx;function dx(){if(fx)return ou;fx=1;var e=Ff().default;Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=void 0;var t=e(DC()),r=e(cx());const n={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},r.default)};return n.lang.ok="确定",ou.default=n,ou}var hx;function RC(){if(hx)return su;hx=1;var e=Ff().default;Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0;var t=e(dx());return su.default=t.default,su}var px;function NC(){if(px)return au;px=1;var e=Ff().default;Object.defineProperty(au,"__esModule",{value:!0}),au.default=void 0;var t=e(EC()),r=e(RC()),n=e(dx()),a=e(cx());const i="${label}不是一个有效的${type}",s={locale:"zh-cn",Pagination:t.default,DatePicker:n.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return au.default=s,au}var MC=NC();const IC=hn(MC),LC=({prefixCls:e="frontend",...t},r)=>{pe.ConfigProvider.config({prefixCls:e});const n=ae.createElement(pe.ConfigProvider,{prefixCls:e,locale:IC,input:{autoComplete:"off"},autoInsertSpaceInButton:!1},t.children);return R.jsx(nu.Provider,{value:t.contextData,children:n})};var fh={exports:{}};/*!
31
+ Copyright (c) 2018 Jed Watson.
32
+ Licensed under the MIT License (MIT), see
33
+ http://jedwatson.github.io/classnames
34
+ */var gx;function BC(){return gx||(gx=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(i=a(i,n(o)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var o in i)t.call(i,o)&&i[o]&&(s=a(s,o));return s}function a(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(fh)),fh.exports}var jC=BC();const Er=hn(jC),dh={main:"_main_5bucb_1"};var fu={exports:{}};/**
35
+ * @license
36
+ * Lodash <https://lodash.com/>
37
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
38
+ * Released under MIT license <https://lodash.com/license>
39
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
40
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
41
+ */var UC=fu.exports,mx;function HC(){return mx||(mx=1,function(e,t){(function(){var r,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",p=1,g=2,v=4,y=1,_=2,C=1,E=2,T=4,b=8,h=16,m=32,x=64,S=128,A=256,k=512,F=30,P="...",j=800,L=16,B=1,U=2,O=3,N=1/0,V=9007199254740991,M=17976931348623157e292,q=NaN,Y=4294967295,z=Y-1,re=Y>>>1,J=[["ary",S],["bind",C],["bindKey",E],["curry",b],["curryRight",h],["flip",k],["partial",m],["partialRight",x],["rearg",A]],te="[object Arguments]",oe="[object Array]",ue="[object AsyncFunction]",ve="[object Boolean]",_e="[object Date]",ye="[object DOMException]",je="[object Error]",Z="[object Function]",Ge="[object GeneratorFunction]",Ae="[object Map]",ze="[object Number]",qe="[object Null]",Pe="[object Object]",ut="[object Promise]",Ye="[object Proxy]",it="[object RegExp]",ht="[object Set]",ir="[object String]",Fr="[object Symbol]",Xr="[object Undefined]",Hr="[object WeakMap]",Jn="[object WeakSet]",Dn="[object ArrayBuffer]",ur="[object DataView]",Zr="[object Float32Array]",dt="[object Float64Array]",Kt="[object Int8Array]",zr="[object Int16Array]",sr="[object Int32Array]",Qn="[object Uint8Array]",Ts="[object Uint8ClampedArray]",Po="[object Uint16Array]",Do="[object Uint32Array]",Es=/\b__p \+= '';/g,Ro=/\b(__p \+=) '' \+/g,Va=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cs=/&(?:amp|lt|gt|quot|#39);/g,As=/[&<>"']/g,Vi=RegExp(Cs.source),of=RegExp(As.source),jl=/<%-([\s\S]+?)%>/g,lf=/<%([\s\S]+?)%>/g,No=/<%=([\s\S]+?)%>/g,Ul=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uf=/^\w*$/,cf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Os=/[\\^$.*+?()[\]{}|]/g,Fs=RegExp(Os.source),Mo=/^\s+/,ff=/\s/,df=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,I=/,? & /,W=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,K=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,xe=/^[-+]0x[0-9a-f]+$/i,ce=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,Te=/^(?:0|[1-9]\d*)$/,Re=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ue=/($^)/,De=/['\n\r\u2028\u2029\\]/g,Ie="\\ud800-\\udfff",st="\\u0300-\\u036f",Xt="\\ufe20-\\ufe2f",Zt="\\u20d0-\\u20ff",Nr=st+Xt+Zt,Ps="\\u2700-\\u27bf",Ds="a-z\\xdf-\\xf6\\xf8-\\xff",Io="\\xac\\xb1\\xd7\\xf7",qi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hf="\\u2000-\\u206f",qa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",QT="A-Z\\xc0-\\xd6\\xd8-\\xde",eE="\\ufe0e\\ufe0f",tE=Io+qi+hf+qa,jm="['’]",iY="["+Ie+"]",rE="["+tE+"]",_0="["+Nr+"]",nE="\\d+",sY="["+Ps+"]",aE="["+Ds+"]",iE="[^"+Ie+tE+nE+Ps+Ds+QT+"]",Um="\\ud83c[\\udffb-\\udfff]",oY="(?:"+_0+"|"+Um+")",sE="[^"+Ie+"]",Hm="(?:\\ud83c[\\udde6-\\uddff]){2}",zm="[\\ud800-\\udbff][\\udc00-\\udfff]",Hl="["+QT+"]",oE="\\u200d",lE="(?:"+aE+"|"+iE+")",lY="(?:"+Hl+"|"+iE+")",uE="(?:"+jm+"(?:d|ll|m|re|s|t|ve))?",cE="(?:"+jm+"(?:D|LL|M|RE|S|T|VE))?",fE=oY+"?",dE="["+eE+"]?",uY="(?:"+oE+"(?:"+[sE,Hm,zm].join("|")+")"+dE+fE+")*",cY="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fY="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hE=dE+fE+uY,dY="(?:"+[sY,Hm,zm].join("|")+")"+hE,hY="(?:"+[sE+_0+"?",_0,Hm,zm,iY].join("|")+")",pY=RegExp(jm,"g"),gY=RegExp(_0,"g"),Wm=RegExp(Um+"(?="+Um+")|"+hY+hE,"g"),mY=RegExp([Hl+"?"+aE+"+"+uE+"(?="+[rE,Hl,"$"].join("|")+")",lY+"+"+cE+"(?="+[rE,Hl+lE,"$"].join("|")+")",Hl+"?"+lE+"+"+uE,Hl+"+"+cE,fY,cY,nE,dY].join("|"),"g"),vY=RegExp("["+oE+Ie+Nr+eE+"]"),xY=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_Y=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yY=-1,or={};or[Zr]=or[dt]=or[Kt]=or[zr]=or[sr]=or[Qn]=or[Ts]=or[Po]=or[Do]=!0,or[te]=or[oe]=or[Dn]=or[ve]=or[ur]=or[_e]=or[je]=or[Z]=or[Ae]=or[ze]=or[Pe]=or[it]=or[ht]=or[ir]=or[Hr]=!1;var Qt={};Qt[te]=Qt[oe]=Qt[Dn]=Qt[ur]=Qt[ve]=Qt[_e]=Qt[Zr]=Qt[dt]=Qt[Kt]=Qt[zr]=Qt[sr]=Qt[Ae]=Qt[ze]=Qt[Pe]=Qt[it]=Qt[ht]=Qt[ir]=Qt[Fr]=Qt[Qn]=Qt[Ts]=Qt[Po]=Qt[Do]=!0,Qt[je]=Qt[Z]=Qt[Hr]=!1;var wY={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},SY={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},kY={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},TY=parseFloat,EY=parseInt,pE=typeof Fa=="object"&&Fa&&Fa.Object===Object&&Fa,CY=typeof self=="object"&&self&&self.Object===Object&&self,Jr=pE||CY||Function("return this")(),$m=t&&!t.nodeType&&t,Lo=$m&&!0&&e&&!e.nodeType&&e,gE=Lo&&Lo.exports===$m,Vm=gE&&pE.process,ba=function(){try{var fe=Lo&&Lo.require&&Lo.require("util").types;return fe||Vm&&Vm.binding&&Vm.binding("util")}catch{}}(),mE=ba&&ba.isArrayBuffer,vE=ba&&ba.isDate,xE=ba&&ba.isMap,_E=ba&&ba.isRegExp,yE=ba&&ba.isSet,wE=ba&&ba.isTypedArray;function ea(fe,ke,we){switch(we.length){case 0:return fe.call(ke);case 1:return fe.call(ke,we[0]);case 2:return fe.call(ke,we[0],we[1]);case 3:return fe.call(ke,we[0],we[1],we[2])}return fe.apply(ke,we)}function AY(fe,ke,we,$e){for(var pt=-1,Bt=fe==null?0:fe.length;++pt<Bt;){var Mr=fe[pt];ke($e,Mr,we(Mr),fe)}return $e}function Sa(fe,ke){for(var we=-1,$e=fe==null?0:fe.length;++we<$e&&ke(fe[we],we,fe)!==!1;);return fe}function OY(fe,ke){for(var we=fe==null?0:fe.length;we--&&ke(fe[we],we,fe)!==!1;);return fe}function bE(fe,ke){for(var we=-1,$e=fe==null?0:fe.length;++we<$e;)if(!ke(fe[we],we,fe))return!1;return!0}function Rs(fe,ke){for(var we=-1,$e=fe==null?0:fe.length,pt=0,Bt=[];++we<$e;){var Mr=fe[we];ke(Mr,we,fe)&&(Bt[pt++]=Mr)}return Bt}function y0(fe,ke){var we=fe==null?0:fe.length;return!!we&&zl(fe,ke,0)>-1}function qm(fe,ke,we){for(var $e=-1,pt=fe==null?0:fe.length;++$e<pt;)if(we(ke,fe[$e]))return!0;return!1}function cr(fe,ke){for(var we=-1,$e=fe==null?0:fe.length,pt=Array($e);++we<$e;)pt[we]=ke(fe[we],we,fe);return pt}function Ns(fe,ke){for(var we=-1,$e=ke.length,pt=fe.length;++we<$e;)fe[pt+we]=ke[we];return fe}function Ym(fe,ke,we,$e){var pt=-1,Bt=fe==null?0:fe.length;for($e&&Bt&&(we=fe[++pt]);++pt<Bt;)we=ke(we,fe[pt],pt,fe);return we}function FY(fe,ke,we,$e){var pt=fe==null?0:fe.length;for($e&&pt&&(we=fe[--pt]);pt--;)we=ke(we,fe[pt],pt,fe);return we}function Gm(fe,ke){for(var we=-1,$e=fe==null?0:fe.length;++we<$e;)if(ke(fe[we],we,fe))return!0;return!1}var PY=Km("length");function DY(fe){return fe.split("")}function RY(fe){return fe.match(W)||[]}function SE(fe,ke,we){var $e;return we(fe,function(pt,Bt,Mr){if(ke(pt,Bt,Mr))return $e=Bt,!1}),$e}function w0(fe,ke,we,$e){for(var pt=fe.length,Bt=we+($e?1:-1);$e?Bt--:++Bt<pt;)if(ke(fe[Bt],Bt,fe))return Bt;return-1}function zl(fe,ke,we){return ke===ke?VY(fe,ke,we):w0(fe,kE,we)}function NY(fe,ke,we,$e){for(var pt=we-1,Bt=fe.length;++pt<Bt;)if($e(fe[pt],ke))return pt;return-1}function kE(fe){return fe!==fe}function TE(fe,ke){var we=fe==null?0:fe.length;return we?Zm(fe,ke)/we:q}function Km(fe){return function(ke){return ke==null?r:ke[fe]}}function Xm(fe){return function(ke){return fe==null?r:fe[ke]}}function EE(fe,ke,we,$e,pt){return pt(fe,function(Bt,Mr,Jt){we=$e?($e=!1,Bt):ke(we,Bt,Mr,Jt)}),we}function MY(fe,ke){var we=fe.length;for(fe.sort(ke);we--;)fe[we]=fe[we].value;return fe}function Zm(fe,ke){for(var we,$e=-1,pt=fe.length;++$e<pt;){var Bt=ke(fe[$e]);Bt!==r&&(we=we===r?Bt:we+Bt)}return we}function Jm(fe,ke){for(var we=-1,$e=Array(fe);++we<fe;)$e[we]=ke(we);return $e}function IY(fe,ke){return cr(ke,function(we){return[we,fe[we]]})}function CE(fe){return fe&&fe.slice(0,PE(fe)+1).replace(Mo,"")}function ta(fe){return function(ke){return fe(ke)}}function Qm(fe,ke){return cr(ke,function(we){return fe[we]})}function pf(fe,ke){return fe.has(ke)}function AE(fe,ke){for(var we=-1,$e=fe.length;++we<$e&&zl(ke,fe[we],0)>-1;);return we}function OE(fe,ke){for(var we=fe.length;we--&&zl(ke,fe[we],0)>-1;);return we}function LY(fe,ke){for(var we=fe.length,$e=0;we--;)fe[we]===ke&&++$e;return $e}var BY=Xm(wY),jY=Xm(bY);function UY(fe){return"\\"+kY[fe]}function HY(fe,ke){return fe==null?r:fe[ke]}function Wl(fe){return vY.test(fe)}function zY(fe){return xY.test(fe)}function WY(fe){for(var ke,we=[];!(ke=fe.next()).done;)we.push(ke.value);return we}function ev(fe){var ke=-1,we=Array(fe.size);return fe.forEach(function($e,pt){we[++ke]=[pt,$e]}),we}function FE(fe,ke){return function(we){return fe(ke(we))}}function Ms(fe,ke){for(var we=-1,$e=fe.length,pt=0,Bt=[];++we<$e;){var Mr=fe[we];(Mr===ke||Mr===d)&&(fe[we]=d,Bt[pt++]=we)}return Bt}function b0(fe){var ke=-1,we=Array(fe.size);return fe.forEach(function($e){we[++ke]=$e}),we}function $Y(fe){var ke=-1,we=Array(fe.size);return fe.forEach(function($e){we[++ke]=[$e,$e]}),we}function VY(fe,ke,we){for(var $e=we-1,pt=fe.length;++$e<pt;)if(fe[$e]===ke)return $e;return-1}function qY(fe,ke,we){for(var $e=we+1;$e--;)if(fe[$e]===ke)return $e;return $e}function $l(fe){return Wl(fe)?GY(fe):PY(fe)}function Ya(fe){return Wl(fe)?KY(fe):DY(fe)}function PE(fe){for(var ke=fe.length;ke--&&ff.test(fe.charAt(ke)););return ke}var YY=Xm(SY);function GY(fe){for(var ke=Wm.lastIndex=0;Wm.test(fe);)++ke;return ke}function KY(fe){return fe.match(Wm)||[]}function XY(fe){return fe.match(mY)||[]}var ZY=function fe(ke){ke=ke==null?Jr:Vl.defaults(Jr.Object(),ke,Vl.pick(Jr,_Y));var we=ke.Array,$e=ke.Date,pt=ke.Error,Bt=ke.Function,Mr=ke.Math,Jt=ke.Object,tv=ke.RegExp,JY=ke.String,ka=ke.TypeError,S0=we.prototype,QY=Bt.prototype,ql=Jt.prototype,k0=ke["__core-js_shared__"],T0=QY.toString,Vt=ql.hasOwnProperty,eG=0,DE=function(){var u=/[^.]+$/.exec(k0&&k0.keys&&k0.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),E0=ql.toString,tG=T0.call(Jt),rG=Jr._,nG=tv("^"+T0.call(Vt).replace(Os,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C0=gE?ke.Buffer:r,Is=ke.Symbol,A0=ke.Uint8Array,RE=C0?C0.allocUnsafe:r,O0=FE(Jt.getPrototypeOf,Jt),NE=Jt.create,ME=ql.propertyIsEnumerable,F0=S0.splice,IE=Is?Is.isConcatSpreadable:r,gf=Is?Is.iterator:r,Bo=Is?Is.toStringTag:r,P0=function(){try{var u=Wo(Jt,"defineProperty");return u({},"",{}),u}catch{}}(),aG=ke.clearTimeout!==Jr.clearTimeout&&ke.clearTimeout,iG=$e&&$e.now!==Jr.Date.now&&$e.now,sG=ke.setTimeout!==Jr.setTimeout&&ke.setTimeout,D0=Mr.ceil,R0=Mr.floor,rv=Jt.getOwnPropertySymbols,oG=C0?C0.isBuffer:r,LE=ke.isFinite,lG=S0.join,uG=FE(Jt.keys,Jt),Ir=Mr.max,fn=Mr.min,cG=$e.now,fG=ke.parseInt,BE=Mr.random,dG=S0.reverse,nv=Wo(ke,"DataView"),mf=Wo(ke,"Map"),av=Wo(ke,"Promise"),Yl=Wo(ke,"Set"),vf=Wo(ke,"WeakMap"),xf=Wo(Jt,"create"),N0=vf&&new vf,Gl={},hG=$o(nv),pG=$o(mf),gG=$o(av),mG=$o(Yl),vG=$o(vf),M0=Is?Is.prototype:r,_f=M0?M0.valueOf:r,jE=M0?M0.toString:r;function X(u){if(xr(u)&&!mt(u)&&!(u instanceof Ot)){if(u instanceof Ta)return u;if(Vt.call(u,"__wrapped__"))return U8(u)}return new Ta(u)}var Kl=function(){function u(){}return function(f){if(!dr(f))return{};if(NE)return NE(f);u.prototype=f;var w=new u;return u.prototype=r,w}}();function I0(){}function Ta(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=r}X.templateSettings={escape:jl,evaluate:lf,interpolate:No,variable:"",imports:{_:X}},X.prototype=I0.prototype,X.prototype.constructor=X,Ta.prototype=Kl(I0.prototype),Ta.prototype.constructor=Ta;function Ot(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function xG(){var u=new Ot(this.__wrapped__);return u.__actions__=Rn(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Rn(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Rn(this.__views__),u}function _G(){if(this.__filtered__){var u=new Ot(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function yG(){var u=this.__wrapped__.value(),f=this.__dir__,w=mt(u),D=f<0,H=w?u.length:0,Q=DK(0,H,this.__views__),se=Q.start,le=Q.end,he=le-se,Ee=D?le:se-1,Ce=this.__iteratees__,Fe=Ce.length,He=0,Ke=fn(he,this.__takeCount__);if(!w||!D&&H==he&&Ke==he)return u8(u,this.__actions__);var tt=[];e:for(;he--&&He<Ke;){Ee+=f;for(var wt=-1,rt=u[Ee];++wt<Fe;){var Et=Ce[wt],Ft=Et.iteratee,aa=Et.type,kn=Ft(rt);if(aa==U)rt=kn;else if(!kn){if(aa==B)continue e;break e}}tt[He++]=rt}return tt}Ot.prototype=Kl(I0.prototype),Ot.prototype.constructor=Ot;function jo(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var D=u[f];this.set(D[0],D[1])}}function wG(){this.__data__=xf?xf(null):{},this.size=0}function bG(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function SG(u){var f=this.__data__;if(xf){var w=f[u];return w===l?r:w}return Vt.call(f,u)?f[u]:r}function kG(u){var f=this.__data__;return xf?f[u]!==r:Vt.call(f,u)}function TG(u,f){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=xf&&f===r?l:f,this}jo.prototype.clear=wG,jo.prototype.delete=bG,jo.prototype.get=SG,jo.prototype.has=kG,jo.prototype.set=TG;function Yi(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var D=u[f];this.set(D[0],D[1])}}function EG(){this.__data__=[],this.size=0}function CG(u){var f=this.__data__,w=L0(f,u);if(w<0)return!1;var D=f.length-1;return w==D?f.pop():F0.call(f,w,1),--this.size,!0}function AG(u){var f=this.__data__,w=L0(f,u);return w<0?r:f[w][1]}function OG(u){return L0(this.__data__,u)>-1}function FG(u,f){var w=this.__data__,D=L0(w,u);return D<0?(++this.size,w.push([u,f])):w[D][1]=f,this}Yi.prototype.clear=EG,Yi.prototype.delete=CG,Yi.prototype.get=AG,Yi.prototype.has=OG,Yi.prototype.set=FG;function Gi(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var D=u[f];this.set(D[0],D[1])}}function PG(){this.size=0,this.__data__={hash:new jo,map:new(mf||Yi),string:new jo}}function DG(u){var f=K0(this,u).delete(u);return this.size-=f?1:0,f}function RG(u){return K0(this,u).get(u)}function NG(u){return K0(this,u).has(u)}function MG(u,f){var w=K0(this,u),D=w.size;return w.set(u,f),this.size+=w.size==D?0:1,this}Gi.prototype.clear=PG,Gi.prototype.delete=DG,Gi.prototype.get=RG,Gi.prototype.has=NG,Gi.prototype.set=MG;function Uo(u){var f=-1,w=u==null?0:u.length;for(this.__data__=new Gi;++f<w;)this.add(u[f])}function IG(u){return this.__data__.set(u,l),this}function LG(u){return this.__data__.has(u)}Uo.prototype.add=Uo.prototype.push=IG,Uo.prototype.has=LG;function Ga(u){var f=this.__data__=new Yi(u);this.size=f.size}function BG(){this.__data__=new Yi,this.size=0}function jG(u){var f=this.__data__,w=f.delete(u);return this.size=f.size,w}function UG(u){return this.__data__.get(u)}function HG(u){return this.__data__.has(u)}function zG(u,f){var w=this.__data__;if(w instanceof Yi){var D=w.__data__;if(!mf||D.length<a-1)return D.push([u,f]),this.size=++w.size,this;w=this.__data__=new Gi(D)}return w.set(u,f),this.size=w.size,this}Ga.prototype.clear=BG,Ga.prototype.delete=jG,Ga.prototype.get=UG,Ga.prototype.has=HG,Ga.prototype.set=zG;function UE(u,f){var w=mt(u),D=!w&&Vo(u),H=!w&&!D&&Hs(u),Q=!w&&!D&&!H&&Ql(u),se=w||D||H||Q,le=se?Jm(u.length,JY):[],he=le.length;for(var Ee in u)(f||Vt.call(u,Ee))&&!(se&&(Ee=="length"||H&&(Ee=="offset"||Ee=="parent")||Q&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||Ji(Ee,he)))&&le.push(Ee);return le}function HE(u){var f=u.length;return f?u[gv(0,f-1)]:r}function WG(u,f){return X0(Rn(u),Ho(f,0,u.length))}function $G(u){return X0(Rn(u))}function iv(u,f,w){(w!==r&&!Ka(u[f],w)||w===r&&!(f in u))&&Ki(u,f,w)}function yf(u,f,w){var D=u[f];(!(Vt.call(u,f)&&Ka(D,w))||w===r&&!(f in u))&&Ki(u,f,w)}function L0(u,f){for(var w=u.length;w--;)if(Ka(u[w][0],f))return w;return-1}function VG(u,f,w,D){return Ls(u,function(H,Q,se){f(D,H,w(H),se)}),D}function zE(u,f){return u&&hi(f,Wr(f),u)}function qG(u,f){return u&&hi(f,Mn(f),u)}function Ki(u,f,w){f=="__proto__"&&P0?P0(u,f,{configurable:!0,enumerable:!0,value:w,writable:!0}):u[f]=w}function sv(u,f){for(var w=-1,D=f.length,H=we(D),Q=u==null;++w<D;)H[w]=Q?r:Uv(u,f[w]);return H}function Ho(u,f,w){return u===u&&(w!==r&&(u=u<=w?u:w),f!==r&&(u=u>=f?u:f)),u}function Ea(u,f,w,D,H,Q){var se,le=f&p,he=f&g,Ee=f&v;if(w&&(se=H?w(u,D,H,Q):w(u)),se!==r)return se;if(!dr(u))return u;var Ce=mt(u);if(Ce){if(se=NK(u),!le)return Rn(u,se)}else{var Fe=dn(u),He=Fe==Z||Fe==Ge;if(Hs(u))return d8(u,le);if(Fe==Pe||Fe==te||He&&!H){if(se=he||He?{}:P8(u),!le)return he?SK(u,qG(se,u)):bK(u,zE(se,u))}else{if(!Qt[Fe])return H?u:{};se=MK(u,Fe,le)}}Q||(Q=new Ga);var Ke=Q.get(u);if(Ke)return Ke;Q.set(u,se),sC(u)?u.forEach(function(rt){se.add(Ea(rt,f,w,rt,u,Q))}):aC(u)&&u.forEach(function(rt,Et){se.set(Et,Ea(rt,f,w,Et,u,Q))});var tt=Ee?he?Ev:Tv:he?Mn:Wr,wt=Ce?r:tt(u);return Sa(wt||u,function(rt,Et){wt&&(Et=rt,rt=u[Et]),yf(se,Et,Ea(rt,f,w,Et,u,Q))}),se}function YG(u){var f=Wr(u);return function(w){return WE(w,u,f)}}function WE(u,f,w){var D=w.length;if(u==null)return!D;for(u=Jt(u);D--;){var H=w[D],Q=f[H],se=u[H];if(se===r&&!(H in u)||!Q(se))return!1}return!0}function $E(u,f,w){if(typeof u!="function")throw new ka(s);return Cf(function(){u.apply(r,w)},f)}function wf(u,f,w,D){var H=-1,Q=y0,se=!0,le=u.length,he=[],Ee=f.length;if(!le)return he;w&&(f=cr(f,ta(w))),D?(Q=qm,se=!1):f.length>=a&&(Q=pf,se=!1,f=new Uo(f));e:for(;++H<le;){var Ce=u[H],Fe=w==null?Ce:w(Ce);if(Ce=D||Ce!==0?Ce:0,se&&Fe===Fe){for(var He=Ee;He--;)if(f[He]===Fe)continue e;he.push(Ce)}else Q(f,Fe,D)||he.push(Ce)}return he}var Ls=v8(di),VE=v8(lv,!0);function GG(u,f){var w=!0;return Ls(u,function(D,H,Q){return w=!!f(D,H,Q),w}),w}function B0(u,f,w){for(var D=-1,H=u.length;++D<H;){var Q=u[D],se=f(Q);if(se!=null&&(le===r?se===se&&!na(se):w(se,le)))var le=se,he=Q}return he}function KG(u,f,w,D){var H=u.length;for(w=yt(w),w<0&&(w=-w>H?0:H+w),D=D===r||D>H?H:yt(D),D<0&&(D+=H),D=w>D?0:lC(D);w<D;)u[w++]=f;return u}function qE(u,f){var w=[];return Ls(u,function(D,H,Q){f(D,H,Q)&&w.push(D)}),w}function Qr(u,f,w,D,H){var Q=-1,se=u.length;for(w||(w=LK),H||(H=[]);++Q<se;){var le=u[Q];f>0&&w(le)?f>1?Qr(le,f-1,w,D,H):Ns(H,le):D||(H[H.length]=le)}return H}var ov=x8(),YE=x8(!0);function di(u,f){return u&&ov(u,f,Wr)}function lv(u,f){return u&&YE(u,f,Wr)}function j0(u,f){return Rs(f,function(w){return Qi(u[w])})}function zo(u,f){f=js(f,u);for(var w=0,D=f.length;u!=null&&w<D;)u=u[pi(f[w++])];return w&&w==D?u:r}function GE(u,f,w){var D=f(u);return mt(u)?D:Ns(D,w(u))}function bn(u){return u==null?u===r?Xr:qe:Bo&&Bo in Jt(u)?PK(u):$K(u)}function uv(u,f){return u>f}function XG(u,f){return u!=null&&Vt.call(u,f)}function ZG(u,f){return u!=null&&f in Jt(u)}function JG(u,f,w){return u>=fn(f,w)&&u<Ir(f,w)}function cv(u,f,w){for(var D=w?qm:y0,H=u[0].length,Q=u.length,se=Q,le=we(Q),he=1/0,Ee=[];se--;){var Ce=u[se];se&&f&&(Ce=cr(Ce,ta(f))),he=fn(Ce.length,he),le[se]=!w&&(f||H>=120&&Ce.length>=120)?new Uo(se&&Ce):r}Ce=u[0];var Fe=-1,He=le[0];e:for(;++Fe<H&&Ee.length<he;){var Ke=Ce[Fe],tt=f?f(Ke):Ke;if(Ke=w||Ke!==0?Ke:0,!(He?pf(He,tt):D(Ee,tt,w))){for(se=Q;--se;){var wt=le[se];if(!(wt?pf(wt,tt):D(u[se],tt,w)))continue e}He&&He.push(tt),Ee.push(Ke)}}return Ee}function QG(u,f,w,D){return di(u,function(H,Q,se){f(D,w(H),Q,se)}),D}function bf(u,f,w){f=js(f,u),u=M8(u,f);var D=u==null?u:u[pi(Aa(f))];return D==null?r:ea(D,u,w)}function KE(u){return xr(u)&&bn(u)==te}function eK(u){return xr(u)&&bn(u)==Dn}function tK(u){return xr(u)&&bn(u)==_e}function Sf(u,f,w,D,H){return u===f?!0:u==null||f==null||!xr(u)&&!xr(f)?u!==u&&f!==f:rK(u,f,w,D,Sf,H)}function rK(u,f,w,D,H,Q){var se=mt(u),le=mt(f),he=se?oe:dn(u),Ee=le?oe:dn(f);he=he==te?Pe:he,Ee=Ee==te?Pe:Ee;var Ce=he==Pe,Fe=Ee==Pe,He=he==Ee;if(He&&Hs(u)){if(!Hs(f))return!1;se=!0,Ce=!1}if(He&&!Ce)return Q||(Q=new Ga),se||Ql(u)?A8(u,f,w,D,H,Q):OK(u,f,he,w,D,H,Q);if(!(w&y)){var Ke=Ce&&Vt.call(u,"__wrapped__"),tt=Fe&&Vt.call(f,"__wrapped__");if(Ke||tt){var wt=Ke?u.value():u,rt=tt?f.value():f;return Q||(Q=new Ga),H(wt,rt,w,D,Q)}}return He?(Q||(Q=new Ga),FK(u,f,w,D,H,Q)):!1}function nK(u){return xr(u)&&dn(u)==Ae}function fv(u,f,w,D){var H=w.length,Q=H,se=!D;if(u==null)return!Q;for(u=Jt(u);H--;){var le=w[H];if(se&&le[2]?le[1]!==u[le[0]]:!(le[0]in u))return!1}for(;++H<Q;){le=w[H];var he=le[0],Ee=u[he],Ce=le[1];if(se&&le[2]){if(Ee===r&&!(he in u))return!1}else{var Fe=new Ga;if(D)var He=D(Ee,Ce,he,u,f,Fe);if(!(He===r?Sf(Ce,Ee,y|_,D,Fe):He))return!1}}return!0}function XE(u){if(!dr(u)||jK(u))return!1;var f=Qi(u)?nG:me;return f.test($o(u))}function aK(u){return xr(u)&&bn(u)==it}function iK(u){return xr(u)&&dn(u)==ht}function sK(u){return xr(u)&&rh(u.length)&&!!or[bn(u)]}function ZE(u){return typeof u=="function"?u:u==null?In:typeof u=="object"?mt(u)?e8(u[0],u[1]):QE(u):_C(u)}function dv(u){if(!Ef(u))return uG(u);var f=[];for(var w in Jt(u))Vt.call(u,w)&&w!="constructor"&&f.push(w);return f}function oK(u){if(!dr(u))return WK(u);var f=Ef(u),w=[];for(var D in u)D=="constructor"&&(f||!Vt.call(u,D))||w.push(D);return w}function hv(u,f){return u<f}function JE(u,f){var w=-1,D=Nn(u)?we(u.length):[];return Ls(u,function(H,Q,se){D[++w]=f(H,Q,se)}),D}function QE(u){var f=Av(u);return f.length==1&&f[0][2]?R8(f[0][0],f[0][1]):function(w){return w===u||fv(w,u,f)}}function e8(u,f){return Fv(u)&&D8(f)?R8(pi(u),f):function(w){var D=Uv(w,u);return D===r&&D===f?Hv(w,u):Sf(f,D,y|_)}}function U0(u,f,w,D,H){u!==f&&ov(f,function(Q,se){if(H||(H=new Ga),dr(Q))lK(u,f,se,w,U0,D,H);else{var le=D?D(Dv(u,se),Q,se+"",u,f,H):r;le===r&&(le=Q),iv(u,se,le)}},Mn)}function lK(u,f,w,D,H,Q,se){var le=Dv(u,w),he=Dv(f,w),Ee=se.get(he);if(Ee){iv(u,w,Ee);return}var Ce=Q?Q(le,he,w+"",u,f,se):r,Fe=Ce===r;if(Fe){var He=mt(he),Ke=!He&&Hs(he),tt=!He&&!Ke&&Ql(he);Ce=he,He||Ke||tt?mt(le)?Ce=le:kr(le)?Ce=Rn(le):Ke?(Fe=!1,Ce=d8(he,!0)):tt?(Fe=!1,Ce=h8(he,!0)):Ce=[]:Af(he)||Vo(he)?(Ce=le,Vo(le)?Ce=uC(le):(!dr(le)||Qi(le))&&(Ce=P8(he))):Fe=!1}Fe&&(se.set(he,Ce),H(Ce,he,D,Q,se),se.delete(he)),iv(u,w,Ce)}function t8(u,f){var w=u.length;if(w)return f+=f<0?w:0,Ji(f,w)?u[f]:r}function r8(u,f,w){f.length?f=cr(f,function(Q){return mt(Q)?function(se){return zo(se,Q.length===1?Q[0]:Q)}:Q}):f=[In];var D=-1;f=cr(f,ta(et()));var H=JE(u,function(Q,se,le){var he=cr(f,function(Ee){return Ee(Q)});return{criteria:he,index:++D,value:Q}});return MY(H,function(Q,se){return wK(Q,se,w)})}function uK(u,f){return n8(u,f,function(w,D){return Hv(u,D)})}function n8(u,f,w){for(var D=-1,H=f.length,Q={};++D<H;){var se=f[D],le=zo(u,se);w(le,se)&&kf(Q,js(se,u),le)}return Q}function cK(u){return function(f){return zo(f,u)}}function pv(u,f,w,D){var H=D?NY:zl,Q=-1,se=f.length,le=u;for(u===f&&(f=Rn(f)),w&&(le=cr(u,ta(w)));++Q<se;)for(var he=0,Ee=f[Q],Ce=w?w(Ee):Ee;(he=H(le,Ce,he,D))>-1;)le!==u&&F0.call(le,he,1),F0.call(u,he,1);return u}function a8(u,f){for(var w=u?f.length:0,D=w-1;w--;){var H=f[w];if(w==D||H!==Q){var Q=H;Ji(H)?F0.call(u,H,1):xv(u,H)}}return u}function gv(u,f){return u+R0(BE()*(f-u+1))}function fK(u,f,w,D){for(var H=-1,Q=Ir(D0((f-u)/(w||1)),0),se=we(Q);Q--;)se[D?Q:++H]=u,u+=w;return se}function mv(u,f){var w="";if(!u||f<1||f>V)return w;do f%2&&(w+=u),f=R0(f/2),f&&(u+=u);while(f);return w}function St(u,f){return Rv(N8(u,f,In),u+"")}function dK(u){return HE(eu(u))}function hK(u,f){var w=eu(u);return X0(w,Ho(f,0,w.length))}function kf(u,f,w,D){if(!dr(u))return u;f=js(f,u);for(var H=-1,Q=f.length,se=Q-1,le=u;le!=null&&++H<Q;){var he=pi(f[H]),Ee=w;if(he==="__proto__"||he==="constructor"||he==="prototype")return u;if(H!=se){var Ce=le[he];Ee=D?D(Ce,he,le):r,Ee===r&&(Ee=dr(Ce)?Ce:Ji(f[H+1])?[]:{})}yf(le,he,Ee),le=le[he]}return u}var i8=N0?function(u,f){return N0.set(u,f),u}:In,pK=P0?function(u,f){return P0(u,"toString",{configurable:!0,enumerable:!1,value:Wv(f),writable:!0})}:In;function gK(u){return X0(eu(u))}function Ca(u,f,w){var D=-1,H=u.length;f<0&&(f=-f>H?0:H+f),w=w>H?H:w,w<0&&(w+=H),H=f>w?0:w-f>>>0,f>>>=0;for(var Q=we(H);++D<H;)Q[D]=u[D+f];return Q}function mK(u,f){var w;return Ls(u,function(D,H,Q){return w=f(D,H,Q),!w}),!!w}function H0(u,f,w){var D=0,H=u==null?D:u.length;if(typeof f=="number"&&f===f&&H<=re){for(;D<H;){var Q=D+H>>>1,se=u[Q];se!==null&&!na(se)&&(w?se<=f:se<f)?D=Q+1:H=Q}return H}return vv(u,f,In,w)}function vv(u,f,w,D){var H=0,Q=u==null?0:u.length;if(Q===0)return 0;f=w(f);for(var se=f!==f,le=f===null,he=na(f),Ee=f===r;H<Q;){var Ce=R0((H+Q)/2),Fe=w(u[Ce]),He=Fe!==r,Ke=Fe===null,tt=Fe===Fe,wt=na(Fe);if(se)var rt=D||tt;else Ee?rt=tt&&(D||He):le?rt=tt&&He&&(D||!Ke):he?rt=tt&&He&&!Ke&&(D||!wt):Ke||wt?rt=!1:rt=D?Fe<=f:Fe<f;rt?H=Ce+1:Q=Ce}return fn(Q,z)}function s8(u,f){for(var w=-1,D=u.length,H=0,Q=[];++w<D;){var se=u[w],le=f?f(se):se;if(!w||!Ka(le,he)){var he=le;Q[H++]=se===0?0:se}}return Q}function o8(u){return typeof u=="number"?u:na(u)?q:+u}function ra(u){if(typeof u=="string")return u;if(mt(u))return cr(u,ra)+"";if(na(u))return jE?jE.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}function Bs(u,f,w){var D=-1,H=y0,Q=u.length,se=!0,le=[],he=le;if(w)se=!1,H=qm;else if(Q>=a){var Ee=f?null:CK(u);if(Ee)return b0(Ee);se=!1,H=pf,he=new Uo}else he=f?[]:le;e:for(;++D<Q;){var Ce=u[D],Fe=f?f(Ce):Ce;if(Ce=w||Ce!==0?Ce:0,se&&Fe===Fe){for(var He=he.length;He--;)if(he[He]===Fe)continue e;f&&he.push(Fe),le.push(Ce)}else H(he,Fe,w)||(he!==le&&he.push(Fe),le.push(Ce))}return le}function xv(u,f){return f=js(f,u),u=M8(u,f),u==null||delete u[pi(Aa(f))]}function l8(u,f,w,D){return kf(u,f,w(zo(u,f)),D)}function z0(u,f,w,D){for(var H=u.length,Q=D?H:-1;(D?Q--:++Q<H)&&f(u[Q],Q,u););return w?Ca(u,D?0:Q,D?Q+1:H):Ca(u,D?Q+1:0,D?H:Q)}function u8(u,f){var w=u;return w instanceof Ot&&(w=w.value()),Ym(f,function(D,H){return H.func.apply(H.thisArg,Ns([D],H.args))},w)}function _v(u,f,w){var D=u.length;if(D<2)return D?Bs(u[0]):[];for(var H=-1,Q=we(D);++H<D;)for(var se=u[H],le=-1;++le<D;)le!=H&&(Q[H]=wf(Q[H]||se,u[le],f,w));return Bs(Qr(Q,1),f,w)}function c8(u,f,w){for(var D=-1,H=u.length,Q=f.length,se={};++D<H;){var le=D<Q?f[D]:r;w(se,u[D],le)}return se}function yv(u){return kr(u)?u:[]}function wv(u){return typeof u=="function"?u:In}function js(u,f){return mt(u)?u:Fv(u,f)?[u]:j8(Ht(u))}var vK=St;function Us(u,f,w){var D=u.length;return w=w===r?D:w,!f&&w>=D?u:Ca(u,f,w)}var f8=aG||function(u){return Jr.clearTimeout(u)};function d8(u,f){if(f)return u.slice();var w=u.length,D=RE?RE(w):new u.constructor(w);return u.copy(D),D}function bv(u){var f=new u.constructor(u.byteLength);return new A0(f).set(new A0(u)),f}function xK(u,f){var w=f?bv(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.byteLength)}function _K(u){var f=new u.constructor(u.source,de.exec(u));return f.lastIndex=u.lastIndex,f}function yK(u){return _f?Jt(_f.call(u)):{}}function h8(u,f){var w=f?bv(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.length)}function p8(u,f){if(u!==f){var w=u!==r,D=u===null,H=u===u,Q=na(u),se=f!==r,le=f===null,he=f===f,Ee=na(f);if(!le&&!Ee&&!Q&&u>f||Q&&se&&he&&!le&&!Ee||D&&se&&he||!w&&he||!H)return 1;if(!D&&!Q&&!Ee&&u<f||Ee&&w&&H&&!D&&!Q||le&&w&&H||!se&&H||!he)return-1}return 0}function wK(u,f,w){for(var D=-1,H=u.criteria,Q=f.criteria,se=H.length,le=w.length;++D<se;){var he=p8(H[D],Q[D]);if(he){if(D>=le)return he;var Ee=w[D];return he*(Ee=="desc"?-1:1)}}return u.index-f.index}function g8(u,f,w,D){for(var H=-1,Q=u.length,se=w.length,le=-1,he=f.length,Ee=Ir(Q-se,0),Ce=we(he+Ee),Fe=!D;++le<he;)Ce[le]=f[le];for(;++H<se;)(Fe||H<Q)&&(Ce[w[H]]=u[H]);for(;Ee--;)Ce[le++]=u[H++];return Ce}function m8(u,f,w,D){for(var H=-1,Q=u.length,se=-1,le=w.length,he=-1,Ee=f.length,Ce=Ir(Q-le,0),Fe=we(Ce+Ee),He=!D;++H<Ce;)Fe[H]=u[H];for(var Ke=H;++he<Ee;)Fe[Ke+he]=f[he];for(;++se<le;)(He||H<Q)&&(Fe[Ke+w[se]]=u[H++]);return Fe}function Rn(u,f){var w=-1,D=u.length;for(f||(f=we(D));++w<D;)f[w]=u[w];return f}function hi(u,f,w,D){var H=!w;w||(w={});for(var Q=-1,se=f.length;++Q<se;){var le=f[Q],he=D?D(w[le],u[le],le,w,u):r;he===r&&(he=u[le]),H?Ki(w,le,he):yf(w,le,he)}return w}function bK(u,f){return hi(u,Ov(u),f)}function SK(u,f){return hi(u,O8(u),f)}function W0(u,f){return function(w,D){var H=mt(w)?AY:VG,Q=f?f():{};return H(w,u,et(D,2),Q)}}function Xl(u){return St(function(f,w){var D=-1,H=w.length,Q=H>1?w[H-1]:r,se=H>2?w[2]:r;for(Q=u.length>3&&typeof Q=="function"?(H--,Q):r,se&&Sn(w[0],w[1],se)&&(Q=H<3?r:Q,H=1),f=Jt(f);++D<H;){var le=w[D];le&&u(f,le,D,Q)}return f})}function v8(u,f){return function(w,D){if(w==null)return w;if(!Nn(w))return u(w,D);for(var H=w.length,Q=f?H:-1,se=Jt(w);(f?Q--:++Q<H)&&D(se[Q],Q,se)!==!1;);return w}}function x8(u){return function(f,w,D){for(var H=-1,Q=Jt(f),se=D(f),le=se.length;le--;){var he=se[u?le:++H];if(w(Q[he],he,Q)===!1)break}return f}}function kK(u,f,w){var D=f&C,H=Tf(u);function Q(){var se=this&&this!==Jr&&this instanceof Q?H:u;return se.apply(D?w:this,arguments)}return Q}function _8(u){return function(f){f=Ht(f);var w=Wl(f)?Ya(f):r,D=w?w[0]:f.charAt(0),H=w?Us(w,1).join(""):f.slice(1);return D[u]()+H}}function Zl(u){return function(f){return Ym(vC(mC(f).replace(pY,"")),u,"")}}function Tf(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var w=Kl(u.prototype),D=u.apply(w,f);return dr(D)?D:w}}function TK(u,f,w){var D=Tf(u);function H(){for(var Q=arguments.length,se=we(Q),le=Q,he=Jl(H);le--;)se[le]=arguments[le];var Ee=Q<3&&se[0]!==he&&se[Q-1]!==he?[]:Ms(se,he);if(Q-=Ee.length,Q<w)return k8(u,f,$0,H.placeholder,r,se,Ee,r,r,w-Q);var Ce=this&&this!==Jr&&this instanceof H?D:u;return ea(Ce,this,se)}return H}function y8(u){return function(f,w,D){var H=Jt(f);if(!Nn(f)){var Q=et(w,3);f=Wr(f),w=function(le){return Q(H[le],le,H)}}var se=u(f,w,D);return se>-1?H[Q?f[se]:se]:r}}function w8(u){return Zi(function(f){var w=f.length,D=w,H=Ta.prototype.thru;for(u&&f.reverse();D--;){var Q=f[D];if(typeof Q!="function")throw new ka(s);if(H&&!se&&G0(Q)=="wrapper")var se=new Ta([],!0)}for(D=se?D:w;++D<w;){Q=f[D];var le=G0(Q),he=le=="wrapper"?Cv(Q):r;he&&Pv(he[0])&&he[1]==(S|b|m|A)&&!he[4].length&&he[9]==1?se=se[G0(he[0])].apply(se,he[3]):se=Q.length==1&&Pv(Q)?se[le]():se.thru(Q)}return function(){var Ee=arguments,Ce=Ee[0];if(se&&Ee.length==1&&mt(Ce))return se.plant(Ce).value();for(var Fe=0,He=w?f[Fe].apply(this,Ee):Ce;++Fe<w;)He=f[Fe].call(this,He);return He}})}function $0(u,f,w,D,H,Q,se,le,he,Ee){var Ce=f&S,Fe=f&C,He=f&E,Ke=f&(b|h),tt=f&k,wt=He?r:Tf(u);function rt(){for(var Et=arguments.length,Ft=we(Et),aa=Et;aa--;)Ft[aa]=arguments[aa];if(Ke)var kn=Jl(rt),ia=LY(Ft,kn);if(D&&(Ft=g8(Ft,D,H,Ke)),Q&&(Ft=m8(Ft,Q,se,Ke)),Et-=ia,Ke&&Et<Ee){var Tr=Ms(Ft,kn);return k8(u,f,$0,rt.placeholder,w,Ft,Tr,le,he,Ee-Et)}var Xa=Fe?w:this,ts=He?Xa[u]:u;return Et=Ft.length,le?Ft=VK(Ft,le):tt&&Et>1&&Ft.reverse(),Ce&&he<Et&&(Ft.length=he),this&&this!==Jr&&this instanceof rt&&(ts=wt||Tf(ts)),ts.apply(Xa,Ft)}return rt}function b8(u,f){return function(w,D){return QG(w,u,f(D),{})}}function V0(u,f){return function(w,D){var H;if(w===r&&D===r)return f;if(w!==r&&(H=w),D!==r){if(H===r)return D;typeof w=="string"||typeof D=="string"?(w=ra(w),D=ra(D)):(w=o8(w),D=o8(D)),H=u(w,D)}return H}}function Sv(u){return Zi(function(f){return f=cr(f,ta(et())),St(function(w){var D=this;return u(f,function(H){return ea(H,D,w)})})})}function q0(u,f){f=f===r?" ":ra(f);var w=f.length;if(w<2)return w?mv(f,u):f;var D=mv(f,D0(u/$l(f)));return Wl(f)?Us(Ya(D),0,u).join(""):D.slice(0,u)}function EK(u,f,w,D){var H=f&C,Q=Tf(u);function se(){for(var le=-1,he=arguments.length,Ee=-1,Ce=D.length,Fe=we(Ce+he),He=this&&this!==Jr&&this instanceof se?Q:u;++Ee<Ce;)Fe[Ee]=D[Ee];for(;he--;)Fe[Ee++]=arguments[++le];return ea(He,H?w:this,Fe)}return se}function S8(u){return function(f,w,D){return D&&typeof D!="number"&&Sn(f,w,D)&&(w=D=r),f=es(f),w===r?(w=f,f=0):w=es(w),D=D===r?f<w?1:-1:es(D),fK(f,w,D,u)}}function Y0(u){return function(f,w){return typeof f=="string"&&typeof w=="string"||(f=Oa(f),w=Oa(w)),u(f,w)}}function k8(u,f,w,D,H,Q,se,le,he,Ee){var Ce=f&b,Fe=Ce?se:r,He=Ce?r:se,Ke=Ce?Q:r,tt=Ce?r:Q;f|=Ce?m:x,f&=~(Ce?x:m),f&T||(f&=-4);var wt=[u,f,H,Ke,Fe,tt,He,le,he,Ee],rt=w.apply(r,wt);return Pv(u)&&I8(rt,wt),rt.placeholder=D,L8(rt,u,f)}function kv(u){var f=Mr[u];return function(w,D){if(w=Oa(w),D=D==null?0:fn(yt(D),292),D&&LE(w)){var H=(Ht(w)+"e").split("e"),Q=f(H[0]+"e"+(+H[1]+D));return H=(Ht(Q)+"e").split("e"),+(H[0]+"e"+(+H[1]-D))}return f(w)}}var CK=Yl&&1/b0(new Yl([,-0]))[1]==N?function(u){return new Yl(u)}:qv;function T8(u){return function(f){var w=dn(f);return w==Ae?ev(f):w==ht?$Y(f):IY(f,u(f))}}function Xi(u,f,w,D,H,Q,se,le){var he=f&E;if(!he&&typeof u!="function")throw new ka(s);var Ee=D?D.length:0;if(Ee||(f&=-97,D=H=r),se=se===r?se:Ir(yt(se),0),le=le===r?le:yt(le),Ee-=H?H.length:0,f&x){var Ce=D,Fe=H;D=H=r}var He=he?r:Cv(u),Ke=[u,f,w,D,H,Ce,Fe,Q,se,le];if(He&&zK(Ke,He),u=Ke[0],f=Ke[1],w=Ke[2],D=Ke[3],H=Ke[4],le=Ke[9]=Ke[9]===r?he?0:u.length:Ir(Ke[9]-Ee,0),!le&&f&(b|h)&&(f&=-25),!f||f==C)var tt=kK(u,f,w);else f==b||f==h?tt=TK(u,f,le):(f==m||f==(C|m))&&!H.length?tt=EK(u,f,w,D):tt=$0.apply(r,Ke);var wt=He?i8:I8;return L8(wt(tt,Ke),u,f)}function E8(u,f,w,D){return u===r||Ka(u,ql[w])&&!Vt.call(D,w)?f:u}function C8(u,f,w,D,H,Q){return dr(u)&&dr(f)&&(Q.set(f,u),U0(u,f,r,C8,Q),Q.delete(f)),u}function AK(u){return Af(u)?r:u}function A8(u,f,w,D,H,Q){var se=w&y,le=u.length,he=f.length;if(le!=he&&!(se&&he>le))return!1;var Ee=Q.get(u),Ce=Q.get(f);if(Ee&&Ce)return Ee==f&&Ce==u;var Fe=-1,He=!0,Ke=w&_?new Uo:r;for(Q.set(u,f),Q.set(f,u);++Fe<le;){var tt=u[Fe],wt=f[Fe];if(D)var rt=se?D(wt,tt,Fe,f,u,Q):D(tt,wt,Fe,u,f,Q);if(rt!==r){if(rt)continue;He=!1;break}if(Ke){if(!Gm(f,function(Et,Ft){if(!pf(Ke,Ft)&&(tt===Et||H(tt,Et,w,D,Q)))return Ke.push(Ft)})){He=!1;break}}else if(!(tt===wt||H(tt,wt,w,D,Q))){He=!1;break}}return Q.delete(u),Q.delete(f),He}function OK(u,f,w,D,H,Q,se){switch(w){case ur:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case Dn:return!(u.byteLength!=f.byteLength||!Q(new A0(u),new A0(f)));case ve:case _e:case ze:return Ka(+u,+f);case je:return u.name==f.name&&u.message==f.message;case it:case ir:return u==f+"";case Ae:var le=ev;case ht:var he=D&y;if(le||(le=b0),u.size!=f.size&&!he)return!1;var Ee=se.get(u);if(Ee)return Ee==f;D|=_,se.set(u,f);var Ce=A8(le(u),le(f),D,H,Q,se);return se.delete(u),Ce;case Fr:if(_f)return _f.call(u)==_f.call(f)}return!1}function FK(u,f,w,D,H,Q){var se=w&y,le=Tv(u),he=le.length,Ee=Tv(f),Ce=Ee.length;if(he!=Ce&&!se)return!1;for(var Fe=he;Fe--;){var He=le[Fe];if(!(se?He in f:Vt.call(f,He)))return!1}var Ke=Q.get(u),tt=Q.get(f);if(Ke&&tt)return Ke==f&&tt==u;var wt=!0;Q.set(u,f),Q.set(f,u);for(var rt=se;++Fe<he;){He=le[Fe];var Et=u[He],Ft=f[He];if(D)var aa=se?D(Ft,Et,He,f,u,Q):D(Et,Ft,He,u,f,Q);if(!(aa===r?Et===Ft||H(Et,Ft,w,D,Q):aa)){wt=!1;break}rt||(rt=He=="constructor")}if(wt&&!rt){var kn=u.constructor,ia=f.constructor;kn!=ia&&"constructor"in u&&"constructor"in f&&!(typeof kn=="function"&&kn instanceof kn&&typeof ia=="function"&&ia instanceof ia)&&(wt=!1)}return Q.delete(u),Q.delete(f),wt}function Zi(u){return Rv(N8(u,r,W8),u+"")}function Tv(u){return GE(u,Wr,Ov)}function Ev(u){return GE(u,Mn,O8)}var Cv=N0?function(u){return N0.get(u)}:qv;function G0(u){for(var f=u.name+"",w=Gl[f],D=Vt.call(Gl,f)?w.length:0;D--;){var H=w[D],Q=H.func;if(Q==null||Q==u)return H.name}return f}function Jl(u){var f=Vt.call(X,"placeholder")?X:u;return f.placeholder}function et(){var u=X.iteratee||$v;return u=u===$v?ZE:u,arguments.length?u(arguments[0],arguments[1]):u}function K0(u,f){var w=u.__data__;return BK(f)?w[typeof f=="string"?"string":"hash"]:w.map}function Av(u){for(var f=Wr(u),w=f.length;w--;){var D=f[w],H=u[D];f[w]=[D,H,D8(H)]}return f}function Wo(u,f){var w=HY(u,f);return XE(w)?w:r}function PK(u){var f=Vt.call(u,Bo),w=u[Bo];try{u[Bo]=r;var D=!0}catch{}var H=E0.call(u);return D&&(f?u[Bo]=w:delete u[Bo]),H}var Ov=rv?function(u){return u==null?[]:(u=Jt(u),Rs(rv(u),function(f){return ME.call(u,f)}))}:Yv,O8=rv?function(u){for(var f=[];u;)Ns(f,Ov(u)),u=O0(u);return f}:Yv,dn=bn;(nv&&dn(new nv(new ArrayBuffer(1)))!=ur||mf&&dn(new mf)!=Ae||av&&dn(av.resolve())!=ut||Yl&&dn(new Yl)!=ht||vf&&dn(new vf)!=Hr)&&(dn=function(u){var f=bn(u),w=f==Pe?u.constructor:r,D=w?$o(w):"";if(D)switch(D){case hG:return ur;case pG:return Ae;case gG:return ut;case mG:return ht;case vG:return Hr}return f});function DK(u,f,w){for(var D=-1,H=w.length;++D<H;){var Q=w[D],se=Q.size;switch(Q.type){case"drop":u+=se;break;case"dropRight":f-=se;break;case"take":f=fn(f,u+se);break;case"takeRight":u=Ir(u,f-se);break}}return{start:u,end:f}}function RK(u){var f=u.match(G);return f?f[1].split(I):[]}function F8(u,f,w){f=js(f,u);for(var D=-1,H=f.length,Q=!1;++D<H;){var se=pi(f[D]);if(!(Q=u!=null&&w(u,se)))break;u=u[se]}return Q||++D!=H?Q:(H=u==null?0:u.length,!!H&&rh(H)&&Ji(se,H)&&(mt(u)||Vo(u)))}function NK(u){var f=u.length,w=new u.constructor(f);return f&&typeof u[0]=="string"&&Vt.call(u,"index")&&(w.index=u.index,w.input=u.input),w}function P8(u){return typeof u.constructor=="function"&&!Ef(u)?Kl(O0(u)):{}}function MK(u,f,w){var D=u.constructor;switch(f){case Dn:return bv(u);case ve:case _e:return new D(+u);case ur:return xK(u,w);case Zr:case dt:case Kt:case zr:case sr:case Qn:case Ts:case Po:case Do:return h8(u,w);case Ae:return new D;case ze:case ir:return new D(u);case it:return _K(u);case ht:return new D;case Fr:return yK(u)}}function IK(u,f){var w=f.length;if(!w)return u;var D=w-1;return f[D]=(w>1?"& ":"")+f[D],f=f.join(w>2?", ":" "),u.replace(df,`{
42
+ /* [wrapped with `+f+`] */
43
+ `)}function LK(u){return mt(u)||Vo(u)||!!(IE&&u&&u[IE])}function Ji(u,f){var w=typeof u;return f=f??V,!!f&&(w=="number"||w!="symbol"&&Te.test(u))&&u>-1&&u%1==0&&u<f}function Sn(u,f,w){if(!dr(w))return!1;var D=typeof f;return(D=="number"?Nn(w)&&Ji(f,w.length):D=="string"&&f in w)?Ka(w[f],u):!1}function Fv(u,f){if(mt(u))return!1;var w=typeof u;return w=="number"||w=="symbol"||w=="boolean"||u==null||na(u)?!0:uf.test(u)||!Ul.test(u)||f!=null&&u in Jt(f)}function BK(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function Pv(u){var f=G0(u),w=X[f];if(typeof w!="function"||!(f in Ot.prototype))return!1;if(u===w)return!0;var D=Cv(w);return!!D&&u===D[0]}function jK(u){return!!DE&&DE in u}var UK=k0?Qi:Gv;function Ef(u){var f=u&&u.constructor,w=typeof f=="function"&&f.prototype||ql;return u===w}function D8(u){return u===u&&!dr(u)}function R8(u,f){return function(w){return w==null?!1:w[u]===f&&(f!==r||u in Jt(w))}}function HK(u){var f=eh(u,function(D){return w.size===c&&w.clear(),D}),w=f.cache;return f}function zK(u,f){var w=u[1],D=f[1],H=w|D,Q=H<(C|E|S),se=D==S&&w==b||D==S&&w==A&&u[7].length<=f[8]||D==(S|A)&&f[7].length<=f[8]&&w==b;if(!(Q||se))return u;D&C&&(u[2]=f[2],H|=w&C?0:T);var le=f[3];if(le){var he=u[3];u[3]=he?g8(he,le,f[4]):le,u[4]=he?Ms(u[3],d):f[4]}return le=f[5],le&&(he=u[5],u[5]=he?m8(he,le,f[6]):le,u[6]=he?Ms(u[5],d):f[6]),le=f[7],le&&(u[7]=le),D&S&&(u[8]=u[8]==null?f[8]:fn(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=H,u}function WK(u){var f=[];if(u!=null)for(var w in Jt(u))f.push(w);return f}function $K(u){return E0.call(u)}function N8(u,f,w){return f=Ir(f===r?u.length-1:f,0),function(){for(var D=arguments,H=-1,Q=Ir(D.length-f,0),se=we(Q);++H<Q;)se[H]=D[f+H];H=-1;for(var le=we(f+1);++H<f;)le[H]=D[H];return le[f]=w(se),ea(u,this,le)}}function M8(u,f){return f.length<2?u:zo(u,Ca(f,0,-1))}function VK(u,f){for(var w=u.length,D=fn(f.length,w),H=Rn(u);D--;){var Q=f[D];u[D]=Ji(Q,w)?H[Q]:r}return u}function Dv(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var I8=B8(i8),Cf=sG||function(u,f){return Jr.setTimeout(u,f)},Rv=B8(pK);function L8(u,f,w){var D=f+"";return Rv(u,IK(D,qK(RK(D),w)))}function B8(u){var f=0,w=0;return function(){var D=cG(),H=L-(D-w);if(w=D,H>0){if(++f>=j)return arguments[0]}else f=0;return u.apply(r,arguments)}}function X0(u,f){var w=-1,D=u.length,H=D-1;for(f=f===r?D:f;++w<f;){var Q=gv(w,H),se=u[Q];u[Q]=u[w],u[w]=se}return u.length=f,u}var j8=HK(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(cf,function(w,D,H,Q){f.push(H?Q.replace(ee,"$1"):D||w)}),f});function pi(u){if(typeof u=="string"||na(u))return u;var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}function $o(u){if(u!=null){try{return T0.call(u)}catch{}try{return u+""}catch{}}return""}function qK(u,f){return Sa(J,function(w){var D="_."+w[0];f&w[1]&&!y0(u,D)&&u.push(D)}),u.sort()}function U8(u){if(u instanceof Ot)return u.clone();var f=new Ta(u.__wrapped__,u.__chain__);return f.__actions__=Rn(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function YK(u,f,w){(w?Sn(u,f,w):f===r)?f=1:f=Ir(yt(f),0);var D=u==null?0:u.length;if(!D||f<1)return[];for(var H=0,Q=0,se=we(D0(D/f));H<D;)se[Q++]=Ca(u,H,H+=f);return se}function GK(u){for(var f=-1,w=u==null?0:u.length,D=0,H=[];++f<w;){var Q=u[f];Q&&(H[D++]=Q)}return H}function KK(){var u=arguments.length;if(!u)return[];for(var f=we(u-1),w=arguments[0],D=u;D--;)f[D-1]=arguments[D];return Ns(mt(w)?Rn(w):[w],Qr(f,1))}var XK=St(function(u,f){return kr(u)?wf(u,Qr(f,1,kr,!0)):[]}),ZK=St(function(u,f){var w=Aa(f);return kr(w)&&(w=r),kr(u)?wf(u,Qr(f,1,kr,!0),et(w,2)):[]}),JK=St(function(u,f){var w=Aa(f);return kr(w)&&(w=r),kr(u)?wf(u,Qr(f,1,kr,!0),r,w):[]});function QK(u,f,w){var D=u==null?0:u.length;return D?(f=w||f===r?1:yt(f),Ca(u,f<0?0:f,D)):[]}function eX(u,f,w){var D=u==null?0:u.length;return D?(f=w||f===r?1:yt(f),f=D-f,Ca(u,0,f<0?0:f)):[]}function tX(u,f){return u&&u.length?z0(u,et(f,3),!0,!0):[]}function rX(u,f){return u&&u.length?z0(u,et(f,3),!0):[]}function nX(u,f,w,D){var H=u==null?0:u.length;return H?(w&&typeof w!="number"&&Sn(u,f,w)&&(w=0,D=H),KG(u,f,w,D)):[]}function H8(u,f,w){var D=u==null?0:u.length;if(!D)return-1;var H=w==null?0:yt(w);return H<0&&(H=Ir(D+H,0)),w0(u,et(f,3),H)}function z8(u,f,w){var D=u==null?0:u.length;if(!D)return-1;var H=D-1;return w!==r&&(H=yt(w),H=w<0?Ir(D+H,0):fn(H,D-1)),w0(u,et(f,3),H,!0)}function W8(u){var f=u==null?0:u.length;return f?Qr(u,1):[]}function aX(u){var f=u==null?0:u.length;return f?Qr(u,N):[]}function iX(u,f){var w=u==null?0:u.length;return w?(f=f===r?1:yt(f),Qr(u,f)):[]}function sX(u){for(var f=-1,w=u==null?0:u.length,D={};++f<w;){var H=u[f];D[H[0]]=H[1]}return D}function $8(u){return u&&u.length?u[0]:r}function oX(u,f,w){var D=u==null?0:u.length;if(!D)return-1;var H=w==null?0:yt(w);return H<0&&(H=Ir(D+H,0)),zl(u,f,H)}function lX(u){var f=u==null?0:u.length;return f?Ca(u,0,-1):[]}var uX=St(function(u){var f=cr(u,yv);return f.length&&f[0]===u[0]?cv(f):[]}),cX=St(function(u){var f=Aa(u),w=cr(u,yv);return f===Aa(w)?f=r:w.pop(),w.length&&w[0]===u[0]?cv(w,et(f,2)):[]}),fX=St(function(u){var f=Aa(u),w=cr(u,yv);return f=typeof f=="function"?f:r,f&&w.pop(),w.length&&w[0]===u[0]?cv(w,r,f):[]});function dX(u,f){return u==null?"":lG.call(u,f)}function Aa(u){var f=u==null?0:u.length;return f?u[f-1]:r}function hX(u,f,w){var D=u==null?0:u.length;if(!D)return-1;var H=D;return w!==r&&(H=yt(w),H=H<0?Ir(D+H,0):fn(H,D-1)),f===f?qY(u,f,H):w0(u,kE,H,!0)}function pX(u,f){return u&&u.length?t8(u,yt(f)):r}var gX=St(V8);function V8(u,f){return u&&u.length&&f&&f.length?pv(u,f):u}function mX(u,f,w){return u&&u.length&&f&&f.length?pv(u,f,et(w,2)):u}function vX(u,f,w){return u&&u.length&&f&&f.length?pv(u,f,r,w):u}var xX=Zi(function(u,f){var w=u==null?0:u.length,D=sv(u,f);return a8(u,cr(f,function(H){return Ji(H,w)?+H:H}).sort(p8)),D});function _X(u,f){var w=[];if(!(u&&u.length))return w;var D=-1,H=[],Q=u.length;for(f=et(f,3);++D<Q;){var se=u[D];f(se,D,u)&&(w.push(se),H.push(D))}return a8(u,H),w}function Nv(u){return u==null?u:dG.call(u)}function yX(u,f,w){var D=u==null?0:u.length;return D?(w&&typeof w!="number"&&Sn(u,f,w)?(f=0,w=D):(f=f==null?0:yt(f),w=w===r?D:yt(w)),Ca(u,f,w)):[]}function wX(u,f){return H0(u,f)}function bX(u,f,w){return vv(u,f,et(w,2))}function SX(u,f){var w=u==null?0:u.length;if(w){var D=H0(u,f);if(D<w&&Ka(u[D],f))return D}return-1}function kX(u,f){return H0(u,f,!0)}function TX(u,f,w){return vv(u,f,et(w,2),!0)}function EX(u,f){var w=u==null?0:u.length;if(w){var D=H0(u,f,!0)-1;if(Ka(u[D],f))return D}return-1}function CX(u){return u&&u.length?s8(u):[]}function AX(u,f){return u&&u.length?s8(u,et(f,2)):[]}function OX(u){var f=u==null?0:u.length;return f?Ca(u,1,f):[]}function FX(u,f,w){return u&&u.length?(f=w||f===r?1:yt(f),Ca(u,0,f<0?0:f)):[]}function PX(u,f,w){var D=u==null?0:u.length;return D?(f=w||f===r?1:yt(f),f=D-f,Ca(u,f<0?0:f,D)):[]}function DX(u,f){return u&&u.length?z0(u,et(f,3),!1,!0):[]}function RX(u,f){return u&&u.length?z0(u,et(f,3)):[]}var NX=St(function(u){return Bs(Qr(u,1,kr,!0))}),MX=St(function(u){var f=Aa(u);return kr(f)&&(f=r),Bs(Qr(u,1,kr,!0),et(f,2))}),IX=St(function(u){var f=Aa(u);return f=typeof f=="function"?f:r,Bs(Qr(u,1,kr,!0),r,f)});function LX(u){return u&&u.length?Bs(u):[]}function BX(u,f){return u&&u.length?Bs(u,et(f,2)):[]}function jX(u,f){return f=typeof f=="function"?f:r,u&&u.length?Bs(u,r,f):[]}function Mv(u){if(!(u&&u.length))return[];var f=0;return u=Rs(u,function(w){if(kr(w))return f=Ir(w.length,f),!0}),Jm(f,function(w){return cr(u,Km(w))})}function q8(u,f){if(!(u&&u.length))return[];var w=Mv(u);return f==null?w:cr(w,function(D){return ea(f,r,D)})}var UX=St(function(u,f){return kr(u)?wf(u,f):[]}),HX=St(function(u){return _v(Rs(u,kr))}),zX=St(function(u){var f=Aa(u);return kr(f)&&(f=r),_v(Rs(u,kr),et(f,2))}),WX=St(function(u){var f=Aa(u);return f=typeof f=="function"?f:r,_v(Rs(u,kr),r,f)}),$X=St(Mv);function VX(u,f){return c8(u||[],f||[],yf)}function qX(u,f){return c8(u||[],f||[],kf)}var YX=St(function(u){var f=u.length,w=f>1?u[f-1]:r;return w=typeof w=="function"?(u.pop(),w):r,q8(u,w)});function Y8(u){var f=X(u);return f.__chain__=!0,f}function GX(u,f){return f(u),u}function Z0(u,f){return f(u)}var KX=Zi(function(u){var f=u.length,w=f?u[0]:0,D=this.__wrapped__,H=function(Q){return sv(Q,u)};return f>1||this.__actions__.length||!(D instanceof Ot)||!Ji(w)?this.thru(H):(D=D.slice(w,+w+(f?1:0)),D.__actions__.push({func:Z0,args:[H],thisArg:r}),new Ta(D,this.__chain__).thru(function(Q){return f&&!Q.length&&Q.push(r),Q}))});function XX(){return Y8(this)}function ZX(){return new Ta(this.value(),this.__chain__)}function JX(){this.__values__===r&&(this.__values__=oC(this.value()));var u=this.__index__>=this.__values__.length,f=u?r:this.__values__[this.__index__++];return{done:u,value:f}}function QX(){return this}function eZ(u){for(var f,w=this;w instanceof I0;){var D=U8(w);D.__index__=0,D.__values__=r,f?H.__wrapped__=D:f=D;var H=D;w=w.__wrapped__}return H.__wrapped__=u,f}function tZ(){var u=this.__wrapped__;if(u instanceof Ot){var f=u;return this.__actions__.length&&(f=new Ot(this)),f=f.reverse(),f.__actions__.push({func:Z0,args:[Nv],thisArg:r}),new Ta(f,this.__chain__)}return this.thru(Nv)}function rZ(){return u8(this.__wrapped__,this.__actions__)}var nZ=W0(function(u,f,w){Vt.call(u,w)?++u[w]:Ki(u,w,1)});function aZ(u,f,w){var D=mt(u)?bE:GG;return w&&Sn(u,f,w)&&(f=r),D(u,et(f,3))}function iZ(u,f){var w=mt(u)?Rs:qE;return w(u,et(f,3))}var sZ=y8(H8),oZ=y8(z8);function lZ(u,f){return Qr(J0(u,f),1)}function uZ(u,f){return Qr(J0(u,f),N)}function cZ(u,f,w){return w=w===r?1:yt(w),Qr(J0(u,f),w)}function G8(u,f){var w=mt(u)?Sa:Ls;return w(u,et(f,3))}function K8(u,f){var w=mt(u)?OY:VE;return w(u,et(f,3))}var fZ=W0(function(u,f,w){Vt.call(u,w)?u[w].push(f):Ki(u,w,[f])});function dZ(u,f,w,D){u=Nn(u)?u:eu(u),w=w&&!D?yt(w):0;var H=u.length;return w<0&&(w=Ir(H+w,0)),nh(u)?w<=H&&u.indexOf(f,w)>-1:!!H&&zl(u,f,w)>-1}var hZ=St(function(u,f,w){var D=-1,H=typeof f=="function",Q=Nn(u)?we(u.length):[];return Ls(u,function(se){Q[++D]=H?ea(f,se,w):bf(se,f,w)}),Q}),pZ=W0(function(u,f,w){Ki(u,w,f)});function J0(u,f){var w=mt(u)?cr:JE;return w(u,et(f,3))}function gZ(u,f,w,D){return u==null?[]:(mt(f)||(f=f==null?[]:[f]),w=D?r:w,mt(w)||(w=w==null?[]:[w]),r8(u,f,w))}var mZ=W0(function(u,f,w){u[w?0:1].push(f)},function(){return[[],[]]});function vZ(u,f,w){var D=mt(u)?Ym:EE,H=arguments.length<3;return D(u,et(f,4),w,H,Ls)}function xZ(u,f,w){var D=mt(u)?FY:EE,H=arguments.length<3;return D(u,et(f,4),w,H,VE)}function _Z(u,f){var w=mt(u)?Rs:qE;return w(u,th(et(f,3)))}function yZ(u){var f=mt(u)?HE:dK;return f(u)}function wZ(u,f,w){(w?Sn(u,f,w):f===r)?f=1:f=yt(f);var D=mt(u)?WG:hK;return D(u,f)}function bZ(u){var f=mt(u)?$G:gK;return f(u)}function SZ(u){if(u==null)return 0;if(Nn(u))return nh(u)?$l(u):u.length;var f=dn(u);return f==Ae||f==ht?u.size:dv(u).length}function kZ(u,f,w){var D=mt(u)?Gm:mK;return w&&Sn(u,f,w)&&(f=r),D(u,et(f,3))}var TZ=St(function(u,f){if(u==null)return[];var w=f.length;return w>1&&Sn(u,f[0],f[1])?f=[]:w>2&&Sn(f[0],f[1],f[2])&&(f=[f[0]]),r8(u,Qr(f,1),[])}),Q0=iG||function(){return Jr.Date.now()};function EZ(u,f){if(typeof f!="function")throw new ka(s);return u=yt(u),function(){if(--u<1)return f.apply(this,arguments)}}function X8(u,f,w){return f=w?r:f,f=u&&f==null?u.length:f,Xi(u,S,r,r,r,r,f)}function Z8(u,f){var w;if(typeof f!="function")throw new ka(s);return u=yt(u),function(){return--u>0&&(w=f.apply(this,arguments)),u<=1&&(f=r),w}}var Iv=St(function(u,f,w){var D=C;if(w.length){var H=Ms(w,Jl(Iv));D|=m}return Xi(u,D,f,w,H)}),J8=St(function(u,f,w){var D=C|E;if(w.length){var H=Ms(w,Jl(J8));D|=m}return Xi(f,D,u,w,H)});function Q8(u,f,w){f=w?r:f;var D=Xi(u,b,r,r,r,r,r,f);return D.placeholder=Q8.placeholder,D}function eC(u,f,w){f=w?r:f;var D=Xi(u,h,r,r,r,r,r,f);return D.placeholder=eC.placeholder,D}function tC(u,f,w){var D,H,Q,se,le,he,Ee=0,Ce=!1,Fe=!1,He=!0;if(typeof u!="function")throw new ka(s);f=Oa(f)||0,dr(w)&&(Ce=!!w.leading,Fe="maxWait"in w,Q=Fe?Ir(Oa(w.maxWait)||0,f):Q,He="trailing"in w?!!w.trailing:He);function Ke(Tr){var Xa=D,ts=H;return D=H=r,Ee=Tr,se=u.apply(ts,Xa),se}function tt(Tr){return Ee=Tr,le=Cf(Et,f),Ce?Ke(Tr):se}function wt(Tr){var Xa=Tr-he,ts=Tr-Ee,yC=f-Xa;return Fe?fn(yC,Q-ts):yC}function rt(Tr){var Xa=Tr-he,ts=Tr-Ee;return he===r||Xa>=f||Xa<0||Fe&&ts>=Q}function Et(){var Tr=Q0();if(rt(Tr))return Ft(Tr);le=Cf(Et,wt(Tr))}function Ft(Tr){return le=r,He&&D?Ke(Tr):(D=H=r,se)}function aa(){le!==r&&f8(le),Ee=0,D=he=H=le=r}function kn(){return le===r?se:Ft(Q0())}function ia(){var Tr=Q0(),Xa=rt(Tr);if(D=arguments,H=this,he=Tr,Xa){if(le===r)return tt(he);if(Fe)return f8(le),le=Cf(Et,f),Ke(he)}return le===r&&(le=Cf(Et,f)),se}return ia.cancel=aa,ia.flush=kn,ia}var CZ=St(function(u,f){return $E(u,1,f)}),AZ=St(function(u,f,w){return $E(u,Oa(f)||0,w)});function OZ(u){return Xi(u,k)}function eh(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new ka(s);var w=function(){var D=arguments,H=f?f.apply(this,D):D[0],Q=w.cache;if(Q.has(H))return Q.get(H);var se=u.apply(this,D);return w.cache=Q.set(H,se)||Q,se};return w.cache=new(eh.Cache||Gi),w}eh.Cache=Gi;function th(u){if(typeof u!="function")throw new ka(s);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function FZ(u){return Z8(2,u)}var PZ=vK(function(u,f){f=f.length==1&&mt(f[0])?cr(f[0],ta(et())):cr(Qr(f,1),ta(et()));var w=f.length;return St(function(D){for(var H=-1,Q=fn(D.length,w);++H<Q;)D[H]=f[H].call(this,D[H]);return ea(u,this,D)})}),Lv=St(function(u,f){var w=Ms(f,Jl(Lv));return Xi(u,m,r,f,w)}),rC=St(function(u,f){var w=Ms(f,Jl(rC));return Xi(u,x,r,f,w)}),DZ=Zi(function(u,f){return Xi(u,A,r,r,r,f)});function RZ(u,f){if(typeof u!="function")throw new ka(s);return f=f===r?f:yt(f),St(u,f)}function NZ(u,f){if(typeof u!="function")throw new ka(s);return f=f==null?0:Ir(yt(f),0),St(function(w){var D=w[f],H=Us(w,0,f);return D&&Ns(H,D),ea(u,this,H)})}function MZ(u,f,w){var D=!0,H=!0;if(typeof u!="function")throw new ka(s);return dr(w)&&(D="leading"in w?!!w.leading:D,H="trailing"in w?!!w.trailing:H),tC(u,f,{leading:D,maxWait:f,trailing:H})}function IZ(u){return X8(u,1)}function LZ(u,f){return Lv(wv(f),u)}function BZ(){if(!arguments.length)return[];var u=arguments[0];return mt(u)?u:[u]}function jZ(u){return Ea(u,v)}function UZ(u,f){return f=typeof f=="function"?f:r,Ea(u,v,f)}function HZ(u){return Ea(u,p|v)}function zZ(u,f){return f=typeof f=="function"?f:r,Ea(u,p|v,f)}function WZ(u,f){return f==null||WE(u,f,Wr(f))}function Ka(u,f){return u===f||u!==u&&f!==f}var $Z=Y0(uv),VZ=Y0(function(u,f){return u>=f}),Vo=KE(function(){return arguments}())?KE:function(u){return xr(u)&&Vt.call(u,"callee")&&!ME.call(u,"callee")},mt=we.isArray,qZ=mE?ta(mE):eK;function Nn(u){return u!=null&&rh(u.length)&&!Qi(u)}function kr(u){return xr(u)&&Nn(u)}function YZ(u){return u===!0||u===!1||xr(u)&&bn(u)==ve}var Hs=oG||Gv,GZ=vE?ta(vE):tK;function KZ(u){return xr(u)&&u.nodeType===1&&!Af(u)}function XZ(u){if(u==null)return!0;if(Nn(u)&&(mt(u)||typeof u=="string"||typeof u.splice=="function"||Hs(u)||Ql(u)||Vo(u)))return!u.length;var f=dn(u);if(f==Ae||f==ht)return!u.size;if(Ef(u))return!dv(u).length;for(var w in u)if(Vt.call(u,w))return!1;return!0}function ZZ(u,f){return Sf(u,f)}function JZ(u,f,w){w=typeof w=="function"?w:r;var D=w?w(u,f):r;return D===r?Sf(u,f,r,w):!!D}function Bv(u){if(!xr(u))return!1;var f=bn(u);return f==je||f==ye||typeof u.message=="string"&&typeof u.name=="string"&&!Af(u)}function QZ(u){return typeof u=="number"&&LE(u)}function Qi(u){if(!dr(u))return!1;var f=bn(u);return f==Z||f==Ge||f==ue||f==Ye}function nC(u){return typeof u=="number"&&u==yt(u)}function rh(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=V}function dr(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function xr(u){return u!=null&&typeof u=="object"}var aC=xE?ta(xE):nK;function eJ(u,f){return u===f||fv(u,f,Av(f))}function tJ(u,f,w){return w=typeof w=="function"?w:r,fv(u,f,Av(f),w)}function rJ(u){return iC(u)&&u!=+u}function nJ(u){if(UK(u))throw new pt(i);return XE(u)}function aJ(u){return u===null}function iJ(u){return u==null}function iC(u){return typeof u=="number"||xr(u)&&bn(u)==ze}function Af(u){if(!xr(u)||bn(u)!=Pe)return!1;var f=O0(u);if(f===null)return!0;var w=Vt.call(f,"constructor")&&f.constructor;return typeof w=="function"&&w instanceof w&&T0.call(w)==tG}var jv=_E?ta(_E):aK;function sJ(u){return nC(u)&&u>=-9007199254740991&&u<=V}var sC=yE?ta(yE):iK;function nh(u){return typeof u=="string"||!mt(u)&&xr(u)&&bn(u)==ir}function na(u){return typeof u=="symbol"||xr(u)&&bn(u)==Fr}var Ql=wE?ta(wE):sK;function oJ(u){return u===r}function lJ(u){return xr(u)&&dn(u)==Hr}function uJ(u){return xr(u)&&bn(u)==Jn}var cJ=Y0(hv),fJ=Y0(function(u,f){return u<=f});function oC(u){if(!u)return[];if(Nn(u))return nh(u)?Ya(u):Rn(u);if(gf&&u[gf])return WY(u[gf]());var f=dn(u),w=f==Ae?ev:f==ht?b0:eu;return w(u)}function es(u){if(!u)return u===0?u:0;if(u=Oa(u),u===N||u===-1/0){var f=u<0?-1:1;return f*M}return u===u?u:0}function yt(u){var f=es(u),w=f%1;return f===f?w?f-w:f:0}function lC(u){return u?Ho(yt(u),0,Y):0}function Oa(u){if(typeof u=="number")return u;if(na(u))return q;if(dr(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=dr(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=CE(u);var w=ce.test(u);return w||ge.test(u)?EY(u.slice(2),w?2:8):xe.test(u)?q:+u}function uC(u){return hi(u,Mn(u))}function dJ(u){return u?Ho(yt(u),-9007199254740991,V):u===0?u:0}function Ht(u){return u==null?"":ra(u)}var hJ=Xl(function(u,f){if(Ef(f)||Nn(f)){hi(f,Wr(f),u);return}for(var w in f)Vt.call(f,w)&&yf(u,w,f[w])}),cC=Xl(function(u,f){hi(f,Mn(f),u)}),ah=Xl(function(u,f,w,D){hi(f,Mn(f),u,D)}),pJ=Xl(function(u,f,w,D){hi(f,Wr(f),u,D)}),gJ=Zi(sv);function mJ(u,f){var w=Kl(u);return f==null?w:zE(w,f)}var vJ=St(function(u,f){u=Jt(u);var w=-1,D=f.length,H=D>2?f[2]:r;for(H&&Sn(f[0],f[1],H)&&(D=1);++w<D;)for(var Q=f[w],se=Mn(Q),le=-1,he=se.length;++le<he;){var Ee=se[le],Ce=u[Ee];(Ce===r||Ka(Ce,ql[Ee])&&!Vt.call(u,Ee))&&(u[Ee]=Q[Ee])}return u}),xJ=St(function(u){return u.push(r,C8),ea(fC,r,u)});function _J(u,f){return SE(u,et(f,3),di)}function yJ(u,f){return SE(u,et(f,3),lv)}function wJ(u,f){return u==null?u:ov(u,et(f,3),Mn)}function bJ(u,f){return u==null?u:YE(u,et(f,3),Mn)}function SJ(u,f){return u&&di(u,et(f,3))}function kJ(u,f){return u&&lv(u,et(f,3))}function TJ(u){return u==null?[]:j0(u,Wr(u))}function EJ(u){return u==null?[]:j0(u,Mn(u))}function Uv(u,f,w){var D=u==null?r:zo(u,f);return D===r?w:D}function CJ(u,f){return u!=null&&F8(u,f,XG)}function Hv(u,f){return u!=null&&F8(u,f,ZG)}var AJ=b8(function(u,f,w){f!=null&&typeof f.toString!="function"&&(f=E0.call(f)),u[f]=w},Wv(In)),OJ=b8(function(u,f,w){f!=null&&typeof f.toString!="function"&&(f=E0.call(f)),Vt.call(u,f)?u[f].push(w):u[f]=[w]},et),FJ=St(bf);function Wr(u){return Nn(u)?UE(u):dv(u)}function Mn(u){return Nn(u)?UE(u,!0):oK(u)}function PJ(u,f){var w={};return f=et(f,3),di(u,function(D,H,Q){Ki(w,f(D,H,Q),D)}),w}function DJ(u,f){var w={};return f=et(f,3),di(u,function(D,H,Q){Ki(w,H,f(D,H,Q))}),w}var RJ=Xl(function(u,f,w){U0(u,f,w)}),fC=Xl(function(u,f,w,D){U0(u,f,w,D)}),NJ=Zi(function(u,f){var w={};if(u==null)return w;var D=!1;f=cr(f,function(Q){return Q=js(Q,u),D||(D=Q.length>1),Q}),hi(u,Ev(u),w),D&&(w=Ea(w,p|g|v,AK));for(var H=f.length;H--;)xv(w,f[H]);return w});function MJ(u,f){return dC(u,th(et(f)))}var IJ=Zi(function(u,f){return u==null?{}:uK(u,f)});function dC(u,f){if(u==null)return{};var w=cr(Ev(u),function(D){return[D]});return f=et(f),n8(u,w,function(D,H){return f(D,H[0])})}function LJ(u,f,w){f=js(f,u);var D=-1,H=f.length;for(H||(H=1,u=r);++D<H;){var Q=u==null?r:u[pi(f[D])];Q===r&&(D=H,Q=w),u=Qi(Q)?Q.call(u):Q}return u}function BJ(u,f,w){return u==null?u:kf(u,f,w)}function jJ(u,f,w,D){return D=typeof D=="function"?D:r,u==null?u:kf(u,f,w,D)}var hC=T8(Wr),pC=T8(Mn);function UJ(u,f,w){var D=mt(u),H=D||Hs(u)||Ql(u);if(f=et(f,4),w==null){var Q=u&&u.constructor;H?w=D?new Q:[]:dr(u)?w=Qi(Q)?Kl(O0(u)):{}:w={}}return(H?Sa:di)(u,function(se,le,he){return f(w,se,le,he)}),w}function HJ(u,f){return u==null?!0:xv(u,f)}function zJ(u,f,w){return u==null?u:l8(u,f,wv(w))}function WJ(u,f,w,D){return D=typeof D=="function"?D:r,u==null?u:l8(u,f,wv(w),D)}function eu(u){return u==null?[]:Qm(u,Wr(u))}function $J(u){return u==null?[]:Qm(u,Mn(u))}function VJ(u,f,w){return w===r&&(w=f,f=r),w!==r&&(w=Oa(w),w=w===w?w:0),f!==r&&(f=Oa(f),f=f===f?f:0),Ho(Oa(u),f,w)}function qJ(u,f,w){return f=es(f),w===r?(w=f,f=0):w=es(w),u=Oa(u),JG(u,f,w)}function YJ(u,f,w){if(w&&typeof w!="boolean"&&Sn(u,f,w)&&(f=w=r),w===r&&(typeof f=="boolean"?(w=f,f=r):typeof u=="boolean"&&(w=u,u=r)),u===r&&f===r?(u=0,f=1):(u=es(u),f===r?(f=u,u=0):f=es(f)),u>f){var D=u;u=f,f=D}if(w||u%1||f%1){var H=BE();return fn(u+H*(f-u+TY("1e-"+((H+"").length-1))),f)}return gv(u,f)}var GJ=Zl(function(u,f,w){return f=f.toLowerCase(),u+(w?gC(f):f)});function gC(u){return zv(Ht(u).toLowerCase())}function mC(u){return u=Ht(u),u&&u.replace(Re,BY).replace(gY,"")}function KJ(u,f,w){u=Ht(u),f=ra(f);var D=u.length;w=w===r?D:Ho(yt(w),0,D);var H=w;return w-=f.length,w>=0&&u.slice(w,H)==f}function XJ(u){return u=Ht(u),u&&of.test(u)?u.replace(As,jY):u}function ZJ(u){return u=Ht(u),u&&Fs.test(u)?u.replace(Os,"\\$&"):u}var JJ=Zl(function(u,f,w){return u+(w?"-":"")+f.toLowerCase()}),QJ=Zl(function(u,f,w){return u+(w?" ":"")+f.toLowerCase()}),eQ=_8("toLowerCase");function tQ(u,f,w){u=Ht(u),f=yt(f);var D=f?$l(u):0;if(!f||D>=f)return u;var H=(f-D)/2;return q0(R0(H),w)+u+q0(D0(H),w)}function rQ(u,f,w){u=Ht(u),f=yt(f);var D=f?$l(u):0;return f&&D<f?u+q0(f-D,w):u}function nQ(u,f,w){u=Ht(u),f=yt(f);var D=f?$l(u):0;return f&&D<f?q0(f-D,w)+u:u}function aQ(u,f,w){return w||f==null?f=0:f&&(f=+f),fG(Ht(u).replace(Mo,""),f||0)}function iQ(u,f,w){return(w?Sn(u,f,w):f===r)?f=1:f=yt(f),mv(Ht(u),f)}function sQ(){var u=arguments,f=Ht(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var oQ=Zl(function(u,f,w){return u+(w?"_":"")+f.toLowerCase()});function lQ(u,f,w){return w&&typeof w!="number"&&Sn(u,f,w)&&(f=w=r),w=w===r?Y:w>>>0,w?(u=Ht(u),u&&(typeof f=="string"||f!=null&&!jv(f))&&(f=ra(f),!f&&Wl(u))?Us(Ya(u),0,w):u.split(f,w)):[]}var uQ=Zl(function(u,f,w){return u+(w?" ":"")+zv(f)});function cQ(u,f,w){return u=Ht(u),w=w==null?0:Ho(yt(w),0,u.length),f=ra(f),u.slice(w,w+f.length)==f}function fQ(u,f,w){var D=X.templateSettings;w&&Sn(u,f,w)&&(f=r),u=Ht(u),f=ah({},f,D,E8);var H=ah({},f.imports,D.imports,E8),Q=Wr(H),se=Qm(H,Q),le,he,Ee=0,Ce=f.interpolate||Ue,Fe="__p += '",He=tv((f.escape||Ue).source+"|"+Ce.source+"|"+(Ce===No?ne:Ue).source+"|"+(f.evaluate||Ue).source+"|$","g"),Ke="//# sourceURL="+(Vt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yY+"]")+`
44
+ `;u.replace(He,function(rt,Et,Ft,aa,kn,ia){return Ft||(Ft=aa),Fe+=u.slice(Ee,ia).replace(De,UY),Et&&(le=!0,Fe+=`' +
45
+ __e(`+Et+`) +
46
+ '`),kn&&(he=!0,Fe+=`';
47
+ `+kn+`;
48
+ __p += '`),Ft&&(Fe+=`' +
49
+ ((__t = (`+Ft+`)) == null ? '' : __t) +
50
+ '`),Ee=ia+rt.length,rt}),Fe+=`';
51
+ `;var tt=Vt.call(f,"variable")&&f.variable;if(!tt)Fe=`with (obj) {
52
+ `+Fe+`
53
+ }
54
+ `;else if(K.test(tt))throw new pt(o);Fe=(he?Fe.replace(Es,""):Fe).replace(Ro,"$1").replace(Va,"$1;"),Fe="function("+(tt||"obj")+`) {
55
+ `+(tt?"":`obj || (obj = {});
56
+ `)+"var __t, __p = ''"+(le?", __e = _.escape":"")+(he?`, __j = Array.prototype.join;
57
+ function print() { __p += __j.call(arguments, '') }
58
+ `:`;
59
+ `)+Fe+`return __p
60
+ }`;var wt=xC(function(){return Bt(Q,Ke+"return "+Fe).apply(r,se)});if(wt.source=Fe,Bv(wt))throw wt;return wt}function dQ(u){return Ht(u).toLowerCase()}function hQ(u){return Ht(u).toUpperCase()}function pQ(u,f,w){if(u=Ht(u),u&&(w||f===r))return CE(u);if(!u||!(f=ra(f)))return u;var D=Ya(u),H=Ya(f),Q=AE(D,H),se=OE(D,H)+1;return Us(D,Q,se).join("")}function gQ(u,f,w){if(u=Ht(u),u&&(w||f===r))return u.slice(0,PE(u)+1);if(!u||!(f=ra(f)))return u;var D=Ya(u),H=OE(D,Ya(f))+1;return Us(D,0,H).join("")}function mQ(u,f,w){if(u=Ht(u),u&&(w||f===r))return u.replace(Mo,"");if(!u||!(f=ra(f)))return u;var D=Ya(u),H=AE(D,Ya(f));return Us(D,H).join("")}function vQ(u,f){var w=F,D=P;if(dr(f)){var H="separator"in f?f.separator:H;w="length"in f?yt(f.length):w,D="omission"in f?ra(f.omission):D}u=Ht(u);var Q=u.length;if(Wl(u)){var se=Ya(u);Q=se.length}if(w>=Q)return u;var le=w-$l(D);if(le<1)return D;var he=se?Us(se,0,le).join(""):u.slice(0,le);if(H===r)return he+D;if(se&&(le+=he.length-le),jv(H)){if(u.slice(le).search(H)){var Ee,Ce=he;for(H.global||(H=tv(H.source,Ht(de.exec(H))+"g")),H.lastIndex=0;Ee=H.exec(Ce);)var Fe=Ee.index;he=he.slice(0,Fe===r?le:Fe)}}else if(u.indexOf(ra(H),le)!=le){var He=he.lastIndexOf(H);He>-1&&(he=he.slice(0,He))}return he+D}function xQ(u){return u=Ht(u),u&&Vi.test(u)?u.replace(Cs,YY):u}var _Q=Zl(function(u,f,w){return u+(w?" ":"")+f.toUpperCase()}),zv=_8("toUpperCase");function vC(u,f,w){return u=Ht(u),f=w?r:f,f===r?zY(u)?XY(u):RY(u):u.match(f)||[]}var xC=St(function(u,f){try{return ea(u,r,f)}catch(w){return Bv(w)?w:new pt(w)}}),yQ=Zi(function(u,f){return Sa(f,function(w){w=pi(w),Ki(u,w,Iv(u[w],u))}),u});function wQ(u){var f=u==null?0:u.length,w=et();return u=f?cr(u,function(D){if(typeof D[1]!="function")throw new ka(s);return[w(D[0]),D[1]]}):[],St(function(D){for(var H=-1;++H<f;){var Q=u[H];if(ea(Q[0],this,D))return ea(Q[1],this,D)}})}function bQ(u){return YG(Ea(u,p))}function Wv(u){return function(){return u}}function SQ(u,f){return u==null||u!==u?f:u}var kQ=w8(),TQ=w8(!0);function In(u){return u}function $v(u){return ZE(typeof u=="function"?u:Ea(u,p))}function EQ(u){return QE(Ea(u,p))}function CQ(u,f){return e8(u,Ea(f,p))}var AQ=St(function(u,f){return function(w){return bf(w,u,f)}}),OQ=St(function(u,f){return function(w){return bf(u,w,f)}});function Vv(u,f,w){var D=Wr(f),H=j0(f,D);w==null&&!(dr(f)&&(H.length||!D.length))&&(w=f,f=u,u=this,H=j0(f,Wr(f)));var Q=!(dr(w)&&"chain"in w)||!!w.chain,se=Qi(u);return Sa(H,function(le){var he=f[le];u[le]=he,se&&(u.prototype[le]=function(){var Ee=this.__chain__;if(Q||Ee){var Ce=u(this.__wrapped__),Fe=Ce.__actions__=Rn(this.__actions__);return Fe.push({func:he,args:arguments,thisArg:u}),Ce.__chain__=Ee,Ce}return he.apply(u,Ns([this.value()],arguments))})}),u}function FQ(){return Jr._===this&&(Jr._=rG),this}function qv(){}function PQ(u){return u=yt(u),St(function(f){return t8(f,u)})}var DQ=Sv(cr),RQ=Sv(bE),NQ=Sv(Gm);function _C(u){return Fv(u)?Km(pi(u)):cK(u)}function MQ(u){return function(f){return u==null?r:zo(u,f)}}var IQ=S8(),LQ=S8(!0);function Yv(){return[]}function Gv(){return!1}function BQ(){return{}}function jQ(){return""}function UQ(){return!0}function HQ(u,f){if(u=yt(u),u<1||u>V)return[];var w=Y,D=fn(u,Y);f=et(f),u-=Y;for(var H=Jm(D,f);++w<u;)f(w);return H}function zQ(u){return mt(u)?cr(u,pi):na(u)?[u]:Rn(j8(Ht(u)))}function WQ(u){var f=++eG;return Ht(u)+f}var $Q=V0(function(u,f){return u+f},0),VQ=kv("ceil"),qQ=V0(function(u,f){return u/f},1),YQ=kv("floor");function GQ(u){return u&&u.length?B0(u,In,uv):r}function KQ(u,f){return u&&u.length?B0(u,et(f,2),uv):r}function XQ(u){return TE(u,In)}function ZQ(u,f){return TE(u,et(f,2))}function JQ(u){return u&&u.length?B0(u,In,hv):r}function QQ(u,f){return u&&u.length?B0(u,et(f,2),hv):r}var eee=V0(function(u,f){return u*f},1),tee=kv("round"),ree=V0(function(u,f){return u-f},0);function nee(u){return u&&u.length?Zm(u,In):0}function aee(u,f){return u&&u.length?Zm(u,et(f,2)):0}return X.after=EZ,X.ary=X8,X.assign=hJ,X.assignIn=cC,X.assignInWith=ah,X.assignWith=pJ,X.at=gJ,X.before=Z8,X.bind=Iv,X.bindAll=yQ,X.bindKey=J8,X.castArray=BZ,X.chain=Y8,X.chunk=YK,X.compact=GK,X.concat=KK,X.cond=wQ,X.conforms=bQ,X.constant=Wv,X.countBy=nZ,X.create=mJ,X.curry=Q8,X.curryRight=eC,X.debounce=tC,X.defaults=vJ,X.defaultsDeep=xJ,X.defer=CZ,X.delay=AZ,X.difference=XK,X.differenceBy=ZK,X.differenceWith=JK,X.drop=QK,X.dropRight=eX,X.dropRightWhile=tX,X.dropWhile=rX,X.fill=nX,X.filter=iZ,X.flatMap=lZ,X.flatMapDeep=uZ,X.flatMapDepth=cZ,X.flatten=W8,X.flattenDeep=aX,X.flattenDepth=iX,X.flip=OZ,X.flow=kQ,X.flowRight=TQ,X.fromPairs=sX,X.functions=TJ,X.functionsIn=EJ,X.groupBy=fZ,X.initial=lX,X.intersection=uX,X.intersectionBy=cX,X.intersectionWith=fX,X.invert=AJ,X.invertBy=OJ,X.invokeMap=hZ,X.iteratee=$v,X.keyBy=pZ,X.keys=Wr,X.keysIn=Mn,X.map=J0,X.mapKeys=PJ,X.mapValues=DJ,X.matches=EQ,X.matchesProperty=CQ,X.memoize=eh,X.merge=RJ,X.mergeWith=fC,X.method=AQ,X.methodOf=OQ,X.mixin=Vv,X.negate=th,X.nthArg=PQ,X.omit=NJ,X.omitBy=MJ,X.once=FZ,X.orderBy=gZ,X.over=DQ,X.overArgs=PZ,X.overEvery=RQ,X.overSome=NQ,X.partial=Lv,X.partialRight=rC,X.partition=mZ,X.pick=IJ,X.pickBy=dC,X.property=_C,X.propertyOf=MQ,X.pull=gX,X.pullAll=V8,X.pullAllBy=mX,X.pullAllWith=vX,X.pullAt=xX,X.range=IQ,X.rangeRight=LQ,X.rearg=DZ,X.reject=_Z,X.remove=_X,X.rest=RZ,X.reverse=Nv,X.sampleSize=wZ,X.set=BJ,X.setWith=jJ,X.shuffle=bZ,X.slice=yX,X.sortBy=TZ,X.sortedUniq=CX,X.sortedUniqBy=AX,X.split=lQ,X.spread=NZ,X.tail=OX,X.take=FX,X.takeRight=PX,X.takeRightWhile=DX,X.takeWhile=RX,X.tap=GX,X.throttle=MZ,X.thru=Z0,X.toArray=oC,X.toPairs=hC,X.toPairsIn=pC,X.toPath=zQ,X.toPlainObject=uC,X.transform=UJ,X.unary=IZ,X.union=NX,X.unionBy=MX,X.unionWith=IX,X.uniq=LX,X.uniqBy=BX,X.uniqWith=jX,X.unset=HJ,X.unzip=Mv,X.unzipWith=q8,X.update=zJ,X.updateWith=WJ,X.values=eu,X.valuesIn=$J,X.without=UX,X.words=vC,X.wrap=LZ,X.xor=HX,X.xorBy=zX,X.xorWith=WX,X.zip=$X,X.zipObject=VX,X.zipObjectDeep=qX,X.zipWith=YX,X.entries=hC,X.entriesIn=pC,X.extend=cC,X.extendWith=ah,Vv(X,X),X.add=$Q,X.attempt=xC,X.camelCase=GJ,X.capitalize=gC,X.ceil=VQ,X.clamp=VJ,X.clone=jZ,X.cloneDeep=HZ,X.cloneDeepWith=zZ,X.cloneWith=UZ,X.conformsTo=WZ,X.deburr=mC,X.defaultTo=SQ,X.divide=qQ,X.endsWith=KJ,X.eq=Ka,X.escape=XJ,X.escapeRegExp=ZJ,X.every=aZ,X.find=sZ,X.findIndex=H8,X.findKey=_J,X.findLast=oZ,X.findLastIndex=z8,X.findLastKey=yJ,X.floor=YQ,X.forEach=G8,X.forEachRight=K8,X.forIn=wJ,X.forInRight=bJ,X.forOwn=SJ,X.forOwnRight=kJ,X.get=Uv,X.gt=$Z,X.gte=VZ,X.has=CJ,X.hasIn=Hv,X.head=$8,X.identity=In,X.includes=dZ,X.indexOf=oX,X.inRange=qJ,X.invoke=FJ,X.isArguments=Vo,X.isArray=mt,X.isArrayBuffer=qZ,X.isArrayLike=Nn,X.isArrayLikeObject=kr,X.isBoolean=YZ,X.isBuffer=Hs,X.isDate=GZ,X.isElement=KZ,X.isEmpty=XZ,X.isEqual=ZZ,X.isEqualWith=JZ,X.isError=Bv,X.isFinite=QZ,X.isFunction=Qi,X.isInteger=nC,X.isLength=rh,X.isMap=aC,X.isMatch=eJ,X.isMatchWith=tJ,X.isNaN=rJ,X.isNative=nJ,X.isNil=iJ,X.isNull=aJ,X.isNumber=iC,X.isObject=dr,X.isObjectLike=xr,X.isPlainObject=Af,X.isRegExp=jv,X.isSafeInteger=sJ,X.isSet=sC,X.isString=nh,X.isSymbol=na,X.isTypedArray=Ql,X.isUndefined=oJ,X.isWeakMap=lJ,X.isWeakSet=uJ,X.join=dX,X.kebabCase=JJ,X.last=Aa,X.lastIndexOf=hX,X.lowerCase=QJ,X.lowerFirst=eQ,X.lt=cJ,X.lte=fJ,X.max=GQ,X.maxBy=KQ,X.mean=XQ,X.meanBy=ZQ,X.min=JQ,X.minBy=QQ,X.stubArray=Yv,X.stubFalse=Gv,X.stubObject=BQ,X.stubString=jQ,X.stubTrue=UQ,X.multiply=eee,X.nth=pX,X.noConflict=FQ,X.noop=qv,X.now=Q0,X.pad=tQ,X.padEnd=rQ,X.padStart=nQ,X.parseInt=aQ,X.random=YJ,X.reduce=vZ,X.reduceRight=xZ,X.repeat=iQ,X.replace=sQ,X.result=LJ,X.round=tee,X.runInContext=fe,X.sample=yZ,X.size=SZ,X.snakeCase=oQ,X.some=kZ,X.sortedIndex=wX,X.sortedIndexBy=bX,X.sortedIndexOf=SX,X.sortedLastIndex=kX,X.sortedLastIndexBy=TX,X.sortedLastIndexOf=EX,X.startCase=uQ,X.startsWith=cQ,X.subtract=ree,X.sum=nee,X.sumBy=aee,X.template=fQ,X.times=HQ,X.toFinite=es,X.toInteger=yt,X.toLength=lC,X.toLower=dQ,X.toNumber=Oa,X.toSafeInteger=dJ,X.toString=Ht,X.toUpper=hQ,X.trim=pQ,X.trimEnd=gQ,X.trimStart=mQ,X.truncate=vQ,X.unescape=xQ,X.uniqueId=WQ,X.upperCase=_Q,X.upperFirst=zv,X.each=G8,X.eachRight=K8,X.first=$8,Vv(X,function(){var u={};return di(X,function(f,w){Vt.call(X.prototype,w)||(u[w]=f)}),u}(),{chain:!1}),X.VERSION=n,Sa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){X[u].placeholder=X}),Sa(["drop","take"],function(u,f){Ot.prototype[u]=function(w){w=w===r?1:Ir(yt(w),0);var D=this.__filtered__&&!f?new Ot(this):this.clone();return D.__filtered__?D.__takeCount__=fn(w,D.__takeCount__):D.__views__.push({size:fn(w,Y),type:u+(D.__dir__<0?"Right":"")}),D},Ot.prototype[u+"Right"]=function(w){return this.reverse()[u](w).reverse()}}),Sa(["filter","map","takeWhile"],function(u,f){var w=f+1,D=w==B||w==O;Ot.prototype[u]=function(H){var Q=this.clone();return Q.__iteratees__.push({iteratee:et(H,3),type:w}),Q.__filtered__=Q.__filtered__||D,Q}}),Sa(["head","last"],function(u,f){var w="take"+(f?"Right":"");Ot.prototype[u]=function(){return this[w](1).value()[0]}}),Sa(["initial","tail"],function(u,f){var w="drop"+(f?"":"Right");Ot.prototype[u]=function(){return this.__filtered__?new Ot(this):this[w](1)}}),Ot.prototype.compact=function(){return this.filter(In)},Ot.prototype.find=function(u){return this.filter(u).head()},Ot.prototype.findLast=function(u){return this.reverse().find(u)},Ot.prototype.invokeMap=St(function(u,f){return typeof u=="function"?new Ot(this):this.map(function(w){return bf(w,u,f)})}),Ot.prototype.reject=function(u){return this.filter(th(et(u)))},Ot.prototype.slice=function(u,f){u=yt(u);var w=this;return w.__filtered__&&(u>0||f<0)?new Ot(w):(u<0?w=w.takeRight(-u):u&&(w=w.drop(u)),f!==r&&(f=yt(f),w=f<0?w.dropRight(-f):w.take(f-u)),w)},Ot.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ot.prototype.toArray=function(){return this.take(Y)},di(Ot.prototype,function(u,f){var w=/^(?:filter|find|map|reject)|While$/.test(f),D=/^(?:head|last)$/.test(f),H=X[D?"take"+(f=="last"?"Right":""):f],Q=D||/^find/.test(f);H&&(X.prototype[f]=function(){var se=this.__wrapped__,le=D?[1]:arguments,he=se instanceof Ot,Ee=le[0],Ce=he||mt(se),Fe=function(Et){var Ft=H.apply(X,Ns([Et],le));return D&&He?Ft[0]:Ft};Ce&&w&&typeof Ee=="function"&&Ee.length!=1&&(he=Ce=!1);var He=this.__chain__,Ke=!!this.__actions__.length,tt=Q&&!He,wt=he&&!Ke;if(!Q&&Ce){se=wt?se:new Ot(this);var rt=u.apply(se,le);return rt.__actions__.push({func:Z0,args:[Fe],thisArg:r}),new Ta(rt,He)}return tt&&wt?u.apply(this,le):(rt=this.thru(Fe),tt?D?rt.value()[0]:rt.value():rt)})}),Sa(["pop","push","shift","sort","splice","unshift"],function(u){var f=S0[u],w=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",D=/^(?:pop|shift)$/.test(u);X.prototype[u]=function(){var H=arguments;if(D&&!this.__chain__){var Q=this.value();return f.apply(mt(Q)?Q:[],H)}return this[w](function(se){return f.apply(mt(se)?se:[],H)})}}),di(Ot.prototype,function(u,f){var w=X[f];if(w){var D=w.name+"";Vt.call(Gl,D)||(Gl[D]=[]),Gl[D].push({name:f,func:w})}}),Gl[$0(r,E).name]=[{name:"wrapper",func:r}],Ot.prototype.clone=xG,Ot.prototype.reverse=_G,Ot.prototype.value=yG,X.prototype.at=KX,X.prototype.chain=XX,X.prototype.commit=ZX,X.prototype.next=JX,X.prototype.plant=eZ,X.prototype.reverse=tZ,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=rZ,X.prototype.first=X.prototype.head,gf&&(X.prototype[gf]=QX),X},Vl=ZY();Lo?((Lo.exports=Vl)._=Vl,$m._=Vl):Jr._=Vl}).call(UC)}(fu,fu.exports)),fu.exports}var be=HC(),hh={exports:{}},vx;function zC(){return vx||(vx=1,function(e){e.exports=function(t){var r={};function n(a){if(r[a])return r[a].exports;var i=r[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=r,n.p="",n(0)}([function(t,r,n){t.exports=n(1)},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});function a(o){return o&&o.__esModule?o:{default:o}}var i=n(2),s=a(i);r.default=s.default,t.exports=r.default},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(g){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(g[_]=y[_])}return g};r.default=p;function i(g){return g&&g.__esModule?g:{default:g}}function s(g,v){var y={};for(var _ in g)v.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(g,_)&&(y[_]=g[_]);return y}var o=n(3),l=n(4),c=n(5),d=i(c);function p(g){var v=g.activeClassName,y=v===void 0?"":v,_=g.activeIndex,C=_===void 0?-1:_,E=g.activeStyle,T=g.autoEscape,b=g.caseSensitive,h=b===void 0?!1:b,m=g.className,x=g.findChunks,S=g.highlightClassName,A=S===void 0?"":S,k=g.highlightStyle,F=k===void 0?{}:k,P=g.highlightTag,j=P===void 0?"mark":P,L=g.sanitize,B=g.searchWords,U=g.textToHighlight,O=g.unhighlightTag,N=O===void 0?"span":O,V=g.unhighlightClassName,M=V===void 0?"":V,q=g.unhighlightStyle,Y=s(g,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),z=(0,o.findAll)({autoEscape:T,caseSensitive:h,findChunks:x,sanitize:L,searchWords:B,textToHighlight:U}),re=j,J=-1,te="",oe=void 0,ue=function(ye){var je={};for(var Z in ye)je[Z.toLowerCase()]=ye[Z];return je},ve=(0,d.default)(ue);return(0,l.createElement)("span",a({className:m},Y,{children:z.map(function(_e,ye){var je=U.substr(_e.start,_e.end-_e.start);if(_e.highlight){J++;var Z=void 0;typeof A=="object"?h?Z=A[je]:(A=ve(A),Z=A[je.toLowerCase()]):Z=A;var Ge=J===+C;te=Z+" "+(Ge?y:""),oe=Ge===!0&&E!=null?Object.assign({},F,E):F;var Ae={children:je,className:te,key:ye,style:oe};return typeof re!="string"&&(Ae.highlightIndex=J),(0,l.createElement)(re,Ae)}else return(0,l.createElement)(N,{children:je,className:M,key:ye,style:q})})}))}t.exports=r.default},function(t,r){t.exports=function(n){var a={};function i(s){if(a[s])return a[s].exports;var o=a[s]={exports:{},id:s,loaded:!1};return n[s].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}return i.m=n,i.c=a,i.p="",i(0)}([function(n,a,i){n.exports=i(1)},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(2);Object.defineProperty(a,"combineChunks",{enumerable:!0,get:function(){return s.combineChunks}}),Object.defineProperty(a,"fillInChunks",{enumerable:!0,get:function(){return s.fillInChunks}}),Object.defineProperty(a,"findAll",{enumerable:!0,get:function(){return s.findAll}}),Object.defineProperty(a,"findChunks",{enumerable:!0,get:function(){return s.findChunks}})},function(n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.findAll=function(p){var g=p.autoEscape,v=p.caseSensitive,y=v===void 0?!1:v,_=p.findChunks,C=_===void 0?s:_,E=p.sanitize,T=p.searchWords,b=p.textToHighlight;return o({chunksToHighlight:i({chunks:C({autoEscape:g,caseSensitive:y,sanitize:E,searchWords:T,textToHighlight:b})}),totalLength:b?b.length:0})};var i=a.combineChunks=function(p){var g=p.chunks;return g=g.sort(function(v,y){return v.start-y.start}).reduce(function(v,y){if(v.length===0)return[y];var _=v.pop();if(y.start<=_.end){var C=Math.max(_.end,y.end);v.push({start:_.start,end:C})}else v.push(_,y);return v},[]),g},s=function(p){var g=p.autoEscape,v=p.caseSensitive,y=p.sanitize,_=y===void 0?l:y,C=p.searchWords,E=p.textToHighlight;return E=_(E),C.filter(function(T){return T}).reduce(function(T,b){b=_(b),g&&(b=c(b));for(var h=new RegExp(b,v?"g":"gi"),m=void 0;m=h.exec(E);){var x=m.index,S=h.lastIndex;S>x&&T.push({start:x,end:S}),m.index==h.lastIndex&&h.lastIndex++}return T},[])};a.findChunks=s;var o=a.fillInChunks=function(p){var g=p.chunksToHighlight,v=p.totalLength,y=[],_=function(T,b,h){b-T>0&&y.push({start:T,end:b,highlight:h})};if(g.length===0)_(0,v,!1);else{var C=0;g.forEach(function(E){_(C,E.start,!1),_(E.start,E.end,!0),C=E.end}),_(C,v,!1)}return y};function l(d){return d}function c(d){return d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(t,r){t.exports=ae},function(t,r){var n=function(s,o){return s===o};function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,o=void 0,l=[],c=void 0,d=!1,p=function(y,_){return s(y,l[_])},g=function(){for(var y=arguments.length,_=Array(y),C=0;C<y;C++)_[C]=arguments[C];return d&&o===this&&_.length===l.length&&_.every(p)||(d=!0,o=this,l=_,c=i.apply(this,_)),c};return g}t.exports=a}])}(hh)),hh.exports}var WC=zC();const Pf=hn(WC),$C={mosaic:"_mosaic_1jpg5_1"},Za=e=>R.jsx("span",{className:$C.mosaic,style:{display:e.inLine?"inline-block":"block"}}),Bl=class Bl{readPermission(t){return!["1999-09-09 09:09:09",Bl.mosaic,"1999-09-09 09:09:9"].includes(t)}handlingError(t){return t=="1970-01-01 08:00:00"?"":t}hasAuthority(t,r){return this.readPermission(t[r])&&t[r]!==void 0}isMosaic(t){return t===Bl.mosaic}mosaicBlank(t){return t==Bl.mosaic?"":t||""}};Ln(Bl,"mosaic","~#~");let ph=Bl;class VC extends ph{constructor(){super(...arguments);Ln(this,"mosaic","~#~")}displayData(r,n=!0){return this.readPermission(r)?this.handlingError(r):R.jsx(Za,{inLine:n})}renderIsMosaic(r,n,a=!0){return this.readPermission(r)?n:R.jsx(Za,{inLine:a})}}const sa=new VC,zs=e=>{var s;const{Option:t}=pe.Select,r={...e},[n,a]=ae.useState(""),i=(o,l)=>R.jsx(Pf,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[l?l.toString():""],autoEscape:!0,textToHighlight:o?o.toString():""});return r.loading?R.jsx(pe.Select,{value:"",open:!1,loading:!0}):R.jsx(pe.Select,{style:{...r.style,width:"100%"},className:Er(dh.main,r.className,{rrrrr:!0,[dh.pane]:e.pane}),...be.omit(r,["options"]),onSearch:o=>{a(o)},filterOption:(o,l)=>l.label&&l.label.indexOf(o)>=0,dropdownClassName:dh.plm_select_dropdown,showSearch:!0,allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",children:(s=e.options)==null?void 0:s.map(o=>sa.isMosaic(o.label)?R.jsx(t,{disabled:!0,children:R.jsx(Za,{})}):ae.createElement(t,{...o,value:o.value,disabled:o.disabled,key:o.value,label:o.label},R.jsx("div",{title:o.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:i(o.label,n)})))})},Tn={AliIconFont:"_AliIconFont_14ovi_1",iconText:"_iconText_14ovi_2",disabled:"_disabled_14ovi_9",placementColor:"_placementColor_14ovi_28",classNameDisabled:"_classNameDisabled_14ovi_33",placementIcon:"_placementIcon_14ovi_37",btn_convider:"_btn_convider_14ovi_40",btn_icon:"_btn_icon_14ovi_40",omitPoint:"_omitPoint_14ovi_57"};var gh=ae.createContext({});function Ws(e){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(e)}function qC(e,t){if(Ws(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ws(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YC(e){var t=qC(e,"string");return Ws(t)=="symbol"?t:t+""}function Df(e,t,r){return(t=YC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xx(Object(r),!0).forEach(function(n){Df(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GC(e){if(Array.isArray(e))return e}function KC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function _x(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function XC(e,t){if(e){if(typeof e=="string")return _x(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_x(e,t):void 0}}function ZC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yx(e,t){return GC(e)||KC(e,t)||XC(e,t)||ZC()}function JC(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Rf(e,t){if(e==null)return{};var r,n,a=JC(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function oa(e,t){QC(e)&&(e="100%");var r=e4(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function QC(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function e4(e){return typeof e=="string"&&e.indexOf("%")!==-1}function t4(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Nf(e){return e<=1?"".concat(Number(e)*100,"%"):e}function mh(e){return e.length===1?"0"+e:String(e)}function r4(e,t,r){return{r:oa(e,255)*255,g:oa(t,255)*255,b:oa(r,255)*255}}function vh(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function n4(e,t,r){var n,a,i;if(e=oa(e,360),t=oa(t,100),r=oa(r,100),t===0)a=r,i=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;n=vh(o,s,e+1/3),a=vh(o,s,e),i=vh(o,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function a4(e,t,r){e=oa(e,255),t=oa(t,255),r=oa(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,s=n,o=n-a,l=n===0?0:o/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/o+(t<r?6:0);break;case t:i=(r-e)/o+2;break;case r:i=(e-t)/o+4;break}i/=6}return{h:i,s:l,v:s}}function i4(e,t,r){e=oa(e,360)*6,t=oa(t,100),r=oa(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),s=r*(1-a*t),o=r*(1-(1-a)*t),l=n%6,c=[r,s,i,i,o,r][l],d=[o,r,r,s,i,i][l],p=[i,i,o,r,r,s][l];return{r:c*255,g:d*255,b:p*255}}function s4(e,t,r,n){var a=[mh(Math.round(e).toString(16)),mh(Math.round(t).toString(16)),mh(Math.round(r).toString(16))];return a.join("")}function wx(e){return Bn(e)/255}function Bn(e){return parseInt(e,16)}var bx={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function du(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,s=!1,o=!1;return typeof e=="string"&&(e=u4(e)),typeof e=="object"&&(gi(e.r)&&gi(e.g)&&gi(e.b)?(t=r4(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gi(e.h)&&gi(e.s)&&gi(e.v)?(n=Nf(e.s),a=Nf(e.v),t=i4(e.h,n,a),s=!0,o="hsv"):gi(e.h)&&gi(e.s)&&gi(e.l)&&(n=Nf(e.s),i=Nf(e.l),t=n4(e.h,n,i),s=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=t4(r),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var o4="[-\\+]?\\d+%?",l4="[-\\+]?\\d*\\.\\d+%?",rs="(?:".concat(l4,")|(?:").concat(o4,")"),xh="[\\s|\\(]+(".concat(rs,")[,|\\s]+(").concat(rs,")[,|\\s]+(").concat(rs,")\\s*\\)?"),_h="[\\s|\\(]+(".concat(rs,")[,|\\s]+(").concat(rs,")[,|\\s]+(").concat(rs,")[,|\\s]+(").concat(rs,")\\s*\\)?"),Pa={CSS_UNIT:new RegExp(rs),rgb:new RegExp("rgb"+xh),rgba:new RegExp("rgba"+_h),hsl:new RegExp("hsl"+xh),hsla:new RegExp("hsla"+_h),hsv:new RegExp("hsv"+xh),hsva:new RegExp("hsva"+_h),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function u4(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(bx[e])e=bx[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Pa.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Pa.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Pa.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Pa.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Pa.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Pa.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Pa.hex8.exec(e),r?{r:Bn(r[1]),g:Bn(r[2]),b:Bn(r[3]),a:wx(r[4]),format:t?"name":"hex8"}:(r=Pa.hex6.exec(e),r?{r:Bn(r[1]),g:Bn(r[2]),b:Bn(r[3]),format:t?"name":"hex"}:(r=Pa.hex4.exec(e),r?{r:Bn(r[1]+r[1]),g:Bn(r[2]+r[2]),b:Bn(r[3]+r[3]),a:wx(r[4]+r[4]),format:t?"name":"hex8"}:(r=Pa.hex3.exec(e),r?{r:Bn(r[1]+r[1]),g:Bn(r[2]+r[2]),b:Bn(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function gi(e){return!!Pa.CSS_UNIT.exec(String(e))}var Mf=2,Sx=.16,c4=.05,f4=.05,d4=.15,kx=5,Tx=4,h4=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ex(e){var t=e.r,r=e.g,n=e.b,a=a4(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function If(e){var t=e.r,r=e.g,n=e.b;return"#".concat(s4(t,r,n))}function p4(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function Cx(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Mf*t:Math.round(e.h)+Mf*t:n=r?Math.round(e.h)+Mf*t:Math.round(e.h)-Mf*t,n<0?n+=360:n>=360&&(n-=360),n}function Ax(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Sx*t:t===Tx?n=e.s+Sx:n=e.s+c4*t,n>1&&(n=1),r&&t===kx&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Ox(e,t,r){var n;return r?n=e.v+f4*t:n=e.v-d4*t,n>1&&(n=1),Number(n.toFixed(2))}function yh(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=du(e),a=kx;a>0;a-=1){var i=Ex(n),s=If(du({h:Cx(i,a,!0),s:Ax(i,a,!0),v:Ox(i,a,!0)}));r.push(s)}r.push(If(n));for(var o=1;o<=Tx;o+=1){var l=Ex(n),c=If(du({h:Cx(l,o),s:Ax(l,o),v:Ox(l,o)}));r.push(c)}return t.theme==="dark"?h4.map(function(d){var p=d.index,g=d.opacity,v=If(p4(du(t.backgroundColor||"#141414"),du(r[p]),g*100));return v}):r}var wh={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},bh={},Sh={};Object.keys(wh).forEach(function(e){bh[e]=yh(wh[e]),bh[e].primary=bh[e][5],Sh[e]=yh(wh[e],{theme:"dark",backgroundColor:"#141414"}),Sh[e].primary=Sh[e][5]});var kh={},Th=[],g4=function(t){Th.push(t)};function m4(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Th.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function v4(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Th.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function x4(){kh={}}function Fx(e,t,r){!t&&!kh[r]&&(e(!1,r),kh[r]=!0)}function Lf(e,t){Fx(m4,e,t)}function _4(e,t){Fx(v4,e,t)}Lf.preMessage=g4,Lf.resetWarned=x4,Lf.noteOnce=_4;function y4(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function w4(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Px="data-rc-order",Dx="data-rc-priority",b4="rc-util-key",Eh=new Map;function Rx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):b4}function Ch(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function S4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ah(e){return Array.from((Eh.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Nx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!y4())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,s=S4(n),o=s==="prependQueue",l=document.createElement("style");l.setAttribute(Px,s),o&&i&&l.setAttribute(Dx,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=Ch(t),d=c.firstChild;if(n){if(o){var p=(t.styles||Ah(c)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(Px)))return!1;var v=Number(g.getAttribute(Dx)||0);return i>=v});if(p.length)return c.insertBefore(l,p[p.length-1].nextSibling),l}c.insertBefore(l,d)}else c.appendChild(l);return l}function k4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ch(t);return(t.styles||Ah(r)).find(function(n){return n.getAttribute(Rx(t))===e})}function T4(e,t){var r=Eh.get(e);if(!r||!w4(document,r)){var n=Nx("",t),a=n.parentNode;Eh.set(e,a),e.removeChild(n)}}function E4(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ch(r),a=Ah(n),i=ft(ft({},r),{},{styles:a});T4(n,i);var s=k4(t,i);if(s){var o,l;if((o=i.csp)!==null&&o!==void 0&&o.nonce&&s.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;s.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=Nx(e,i);return d.setAttribute(Rx(i),t),d}var Oh,Mx;function C4(){if(Mx)return Oh;Mx=1;var e=typeof Fa=="object"&&Fa&&Fa.Object===Object&&Fa;return Oh=e,Oh}var Fh,Ix;function Lx(){if(Ix)return Fh;Ix=1;var e=C4(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Fh=r,Fh}var Ph,Bx;function Dh(){if(Bx)return Ph;Bx=1;var e=Lx(),t=e.Symbol;return Ph=t,Ph}var Rh,jx;function A4(){if(jx)return Rh;jx=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return Rh=e,Rh}var Nh,Ux;function O4(){if(Ux)return Nh;Ux=1;var e=Array.isArray;return Nh=e,Nh}var Mh,Hx;function F4(){if(Hx)return Mh;Hx=1;var e=Dh(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(s){var o=r.call(s,a),l=s[a];try{s[a]=void 0;var c=!0}catch{}var d=n.call(s);return c&&(o?s[a]=l:delete s[a]),d}return Mh=i,Mh}var Ih,zx;function P4(){if(zx)return Ih;zx=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ih=r,Ih}var Lh,Wx;function $x(){if(Wx)return Lh;Wx=1;var e=Dh(),t=F4(),r=P4(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function s(o){return o==null?o===void 0?a:n:i&&i in Object(o)?t(o):r(o)}return Lh=s,Lh}var Bh,Vx;function qx(){if(Vx)return Bh;Vx=1;function e(t){return t!=null&&typeof t=="object"}return Bh=e,Bh}var jh,Yx;function Gx(){if(Yx)return jh;Yx=1;var e=$x(),t=qx(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return jh=n,jh}var Uh,Kx;function D4(){if(Kx)return Uh;Kx=1;var e=Dh(),t=A4(),r=O4(),n=Gx(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function s(o){if(typeof o=="string")return o;if(r(o))return t(o,s)+"";if(n(o))return i?i.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return Uh=s,Uh}var Hh,Xx;function Bf(){if(Xx)return Hh;Xx=1;var e=D4();function t(r){return r==null?"":e(r)}return Hh=t,Hh}var zh,Zx;function R4(){if(Zx)return zh;Zx=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(i);++a<i;)s[a]=t[a+r];return s}return zh=e,zh}var Wh,Jx;function N4(){if(Jx)return Wh;Jx=1;var e=R4();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return Wh=t,Wh}var $h,Qx;function e_(){if(Qx)return $h;Qx=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",s="\\u200d",o=RegExp("["+s+e+a+i+"]");function l(c){return o.test(c)}return $h=l,$h}var Vh,t_;function M4(){if(t_)return Vh;t_=1;function e(t){return t.split("")}return Vh=e,Vh}var qh,r_;function I4(){if(r_)return qh;r_=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",s="["+e+"]",o="["+a+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+l+")",d="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",y=c+"?",_="["+i+"]?",C="(?:"+v+"(?:"+[d,p,g].join("|")+")"+_+y+")*",E=_+y+C,T="(?:"+[d+o+"?",o,p,g,s].join("|")+")",b=RegExp(l+"(?="+l+")|"+T+E,"g");function h(m){return m.match(b)||[]}return qh=h,qh}var Yh,n_;function L4(){if(n_)return Yh;n_=1;var e=M4(),t=e_(),r=I4();function n(a){return t(a)?r(a):e(a)}return Yh=n,Yh}var Gh,a_;function B4(){if(a_)return Gh;a_=1;var e=N4(),t=e_(),r=L4(),n=Bf();function a(i){return function(s){s=n(s);var o=t(s)?r(s):void 0,l=o?o[0]:s.charAt(0),c=o?e(o,1).join(""):s.slice(1);return l[i]()+c}}return Gh=a,Gh}var Kh,i_;function j4(){if(i_)return Kh;i_=1;var e=B4(),t=e("toUpperCase");return Kh=t,Kh}var Xh,s_;function U4(){if(s_)return Xh;s_=1;var e=Bf(),t=j4();function r(n){return t(e(n).toLowerCase())}return Xh=r,Xh}var Zh,o_;function H4(){if(o_)return Zh;o_=1;function e(t,r,n,a){var i=-1,s=t==null?0:t.length;for(a&&s&&(n=t[++i]);++i<s;)n=r(n,t[i],i,t);return n}return Zh=e,Zh}var Jh,l_;function z4(){if(l_)return Jh;l_=1;function e(t){return function(r){return t==null?void 0:t[r]}}return Jh=e,Jh}var Qh,u_;function W4(){if(u_)return Qh;u_=1;var e=z4(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=e(t);return Qh=r,Qh}var ep,c_;function $4(){if(c_)return ep;c_=1;var e=W4(),t=Bf(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",s=n+a+i,o="["+s+"]",l=RegExp(o,"g");function c(d){return d=t(d),d&&d.replace(r,e).replace(l,"")}return ep=c,ep}var tp,f_;function V4(){if(f_)return tp;f_=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return tp=t,tp}var rp,d_;function q4(){if(d_)return rp;d_=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return rp=t,rp}var np,h_;function Y4(){if(h_)return np;h_=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",o="\\xac\\xb1\\xd7\\xf7",l="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c="\\u2000-\\u206f",d=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="A-Z\\xc0-\\xd6\\xd8-\\xde",g="\\ufe0e\\ufe0f",v=o+l+c+d,y="['’]",_="["+v+"]",C="["+a+"]",E="\\d+",T="["+i+"]",b="["+s+"]",h="[^"+e+v+E+i+s+p+"]",m="\\ud83c[\\udffb-\\udfff]",x="(?:"+C+"|"+m+")",S="[^"+e+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",k="[\\ud800-\\udbff][\\udc00-\\udfff]",F="["+p+"]",P="\\u200d",j="(?:"+b+"|"+h+")",L="(?:"+F+"|"+h+")",B="(?:"+y+"(?:d|ll|m|re|s|t|ve))?",U="(?:"+y+"(?:D|LL|M|RE|S|T|VE))?",O=x+"?",N="["+g+"]?",V="(?:"+P+"(?:"+[S,A,k].join("|")+")"+N+O+")*",M="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Y=N+O+V,z="(?:"+[T,A,k].join("|")+")"+Y,re=RegExp([F+"?"+b+"+"+B+"(?="+[_,F,"$"].join("|")+")",L+"+"+U+"(?="+[_,F+j,"$"].join("|")+")",F+"?"+j+"+"+B,F+"+"+U,q,M,E,z].join("|"),"g");function J(te){return te.match(re)||[]}return np=J,np}var ap,p_;function G4(){if(p_)return ap;p_=1;var e=V4(),t=q4(),r=Bf(),n=Y4();function a(i,s,o){return i=r(i),s=o?void 0:s,s===void 0?t(i)?n(i):e(i):i.match(s)||[]}return ap=a,ap}var ip,g_;function K4(){if(g_)return ip;g_=1;var e=H4(),t=$4(),r=G4(),n="['’]",a=RegExp(n,"g");function i(s){return function(o){return e(r(t(o).replace(a,"")),s,"")}}return ip=i,ip}var sp,m_;function X4(){if(m_)return sp;m_=1;var e=U4(),t=K4(),r=t(function(n,a,i){return a=a.toLowerCase(),n+(i?e(a):a)});return sp=r,sp}var Z4=X4();const J4=hn(Z4);function op(e,t){Lf(e,"[@ant-design/icons] ".concat(t))}function v_(e){return Ws(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ws(e.icon)==="object"||typeof e.icon=="function")}function x_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[J4(r)]=n}return t},{})}function lp(e,t,r){return r?ae.createElement(e.tag,ft(ft({key:t},x_(e.attrs)),r),(e.children||[]).map(function(n,a){return lp(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ae.createElement(e.tag,ft({key:t},x_(e.attrs)),(e.children||[]).map(function(n,a){return lp(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function __(e){return yh(e)[0]}function y_(e){return e?Array.isArray(e)?e:[e]:[]}var Q4={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},e6=`
62
+ .anticon {
63
+ display: inline-flex;
64
+ alignItems: center;
65
+ color: inherit;
66
+ font-style: normal;
67
+ line-height: 0;
68
+ text-align: center;
69
+ text-transform: none;
70
+ vertical-align: -0.125em;
71
+ text-rendering: optimizeLegibility;
72
+ -webkit-font-smoothing: antialiased;
73
+ -moz-osx-font-smoothing: grayscale;
74
+ }
75
+
76
+ .anticon > * {
77
+ line-height: 1;
78
+ }
79
+
80
+ .anticon svg {
81
+ display: inline-block;
82
+ }
83
+
84
+ .anticon::before {
85
+ display: none;
86
+ }
87
+
88
+ .anticon .anticon-icon {
89
+ display: block;
90
+ }
91
+
92
+ .anticon[tabindex] {
93
+ cursor: pointer;
94
+ }
95
+
96
+ .anticon-spin::before,
97
+ .anticon-spin {
98
+ display: inline-block;
99
+ -webkit-animation: loadingCircle 1s infinite linear;
100
+ animation: loadingCircle 1s infinite linear;
101
+ }
102
+
103
+ @-webkit-keyframes loadingCircle {
104
+ 100% {
105
+ -webkit-transform: rotate(360deg);
106
+ transform: rotate(360deg);
107
+ }
108
+ }
109
+
110
+ @keyframes loadingCircle {
111
+ 100% {
112
+ -webkit-transform: rotate(360deg);
113
+ transform: rotate(360deg);
114
+ }
115
+ }
116
+ `,w_=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e6,r=ae.useContext(gh),n=r.csp;ae.useEffect(function(){E4(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},t6=["icon","className","onClick","style","primaryColor","secondaryColor"],hu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function r6(e){var t=e.primaryColor,r=e.secondaryColor;hu.primaryColor=t,hu.secondaryColor=r||__(t),hu.calculated=!!r}function n6(){return ft({},hu)}var qo=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,s=t.primaryColor,o=t.secondaryColor,l=Rf(t,t6),c=hu;if(s&&(c={primaryColor:s,secondaryColor:o||__(s)}),w_(),op(v_(r),"icon should be icon definiton, but got ".concat(r)),!v_(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=ft(ft({},d),{},{icon:d.icon(c.primaryColor,c.secondaryColor)})),lp(d.icon,"svg-".concat(d.name),ft({className:n,onClick:a,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};qo.displayName="IconReact",qo.getTwoToneColors=n6,qo.setTwoToneColors=r6;function b_(e){var t=y_(e),r=yx(t,2),n=r[0],a=r[1];return qo.setTwoToneColors({primaryColor:n,secondaryColor:a})}function a6(){var e=qo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var i6=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];b_("#1890ff");var pn=ct.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,o=e.onClick,l=e.twoToneColor,c=Rf(e,i6),d=ct.useContext(gh),p=d.prefixCls,g=p===void 0?"anticon":p,v=d.rootClassName,y=Er(v,g,Df(Df({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),_=s;_===void 0&&o&&(_=-1);var C=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,E=y_(l),T=yx(E,2),b=T[0],h=T[1];return ct.createElement("span",ft(ft({role:"img","aria-label":n.name},c),{},{ref:t,tabIndex:_,onClick:o,className:y}),ct.createElement(qo,{icon:n,primaryColor:b,secondaryColor:h,style:C}))});pn.displayName="AntdIcon",pn.getTwoToneColor=a6,pn.setTwoToneColor=b_;var s6={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},o6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:s6}))},S_=ct.forwardRef(o6);process.env.NODE_ENV!=="production"&&(S_.displayName="CaretDownOutlined");var l6={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},u6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:l6}))},k_=ct.forwardRef(u6);process.env.NODE_ENV!=="production"&&(k_.displayName="CaretRightOutlined");var c6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},f6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:c6}))},T_=ct.forwardRef(f6);process.env.NODE_ENV!=="production"&&(T_.displayName="CheckOutlined");var d6={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},h6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:d6}))},E_=ct.forwardRef(h6);process.env.NODE_ENV!=="production"&&(E_.displayName="CloseOutlined");var p6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},g6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:p6}))},C_=ct.forwardRef(g6);process.env.NODE_ENV!=="production"&&(C_.displayName="DownOutlined");var m6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},v6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:m6}))},A_=ct.forwardRef(v6);process.env.NODE_ENV!=="production"&&(A_.displayName="LeftOutlined");var x6={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},_6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:x6}))},pu=ct.forwardRef(_6);process.env.NODE_ENV!=="production"&&(pu.displayName="LoadingOutlined");var y6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},w6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:y6}))},O_=ct.forwardRef(w6);process.env.NODE_ENV!=="production"&&(O_.displayName="MinusOutlined");var b6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},S6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:b6}))},F_=ct.forwardRef(S6);process.env.NODE_ENV!=="production"&&(F_.displayName="PlusOutlined");var k6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},T6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:k6}))},P_=ct.forwardRef(T6);process.env.NODE_ENV!=="production"&&(P_.displayName="RightOutlined");var E6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},C6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:E6}))},Yo=ct.forwardRef(C6);process.env.NODE_ENV!=="production"&&(Yo.displayName="SearchOutlined");var A6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},O6=function(t,r){return ct.createElement(pn,ft(ft({},t),{},{ref:r,icon:A6}))},D_=ct.forwardRef(O6);process.env.NODE_ENV!=="production"&&(D_.displayName="UpOutlined");var F6=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],R_=ct.forwardRef(function(e,t){var r=e.className,n=e.component,a=e.viewBox,i=e.spin,s=e.rotate,o=e.tabIndex,l=e.onClick,c=e.children,d=Rf(e,F6);op(!!(n||c),"Should have `component` prop or `children`."),w_();var p=ct.useContext(gh),g=p.prefixCls,v=g===void 0?"anticon":g,y=p.rootClassName,_=Er(y,v,r),C=Er(Df({},"".concat(v,"-spin"),!!i)),E=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,T=ft(ft({},Q4),{},{className:C,style:E,viewBox:a});a||delete T.viewBox;var b=function(){return n?ct.createElement(n,ft({},T),c):c?(op(!!a||ct.Children.count(c)===1&&ct.isValidElement(c)&&ct.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),ct.createElement("svg",ft(ft({},T),{},{viewBox:a}),c)):null},h=o;return h===void 0&&l&&(h=-1),ct.createElement("span",ft(ft({role:"img"},d),{},{ref:t,tabIndex:h,onClick:l,className:_}),b())});R_.displayName="AntdIcon";var P6=["type","children"],N_=new Set;function D6(e){return!!(typeof e=="string"&&e.length&&!N_.has(e))}function jf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[t];if(D6(r)){var n=document.createElement("script");n.setAttribute("src",r),n.setAttribute("data-namespace",r),e.length>t+1&&(n.onload=function(){jf(e,t+1)},n.onerror=function(){jf(e,t+1)}),N_.add(r),document.body.appendChild(n)}}function M_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=r===void 0?{}:r;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?jf(t.reverse()):jf([t]));var a=ct.forwardRef(function(i,s){var o=i.type,l=i.children,c=Rf(i,P6),d=null;return i.type&&(d=ct.createElement("use",{xlinkHref:"#".concat(o)})),l&&(d=l),ct.createElement(R_,ft(ft(ft({},n),c),{},{ref:s}),d)});return a.displayName="Iconfont",a}const R6=(e="/font/iconfont.js")=>M_({scriptUrl:e}),lt=({...e})=>{var l;const t=ae.useContext(nu),r=M_({scriptUrl:t==null?void 0:t.iconScriptUrl}),n=ae.useMemo(()=>e.languageApicode,[]),a=ae.useMemo(()=>n&&["English"].includes(n)?"10px":"12px",[n]),i=ae.useMemo(()=>n&&["English"].includes(n)?"12px":"14px",[n]),s=ae.useMemo(()=>typeof e.children=="string"&&/[ \t\n\r]/.test(e.children)?"2":"1",[e.children]),o=e.placement?R.jsxs("div",{className:Er(e.className,Tn.placementColor,e.disabled&&Tn.classNameDisabled),style:{textAlign:"center",cursor:"pointer",display:"flex",alignItems:"center",background:e.backgroundColor||"",...e.divStyle},onClick:()=>{e.disabled||e.onDivClick&&e.onDivClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,children:[R.jsx(pe.Badge,{size:"small",count:e.number&&e.number>9?R.jsx("div",{className:Tn.omitPoint,children:"..."}):e.number,children:R.jsx(r,{className:Er(Tn.AliIconFont,{[Tn.disabled]:e.disabled,disabled:e.disabled},e.placement!="bottom"&&Tn.placementIcon),style:{...be.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button||e.placement?"pointer":"default"},e.style)},onClick:c=>{e.disabled||e.onClick&&e.onClick(c)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})}),e.placement=="bottom"?R.jsx("div",{style:{...be.merge({textAlign:"center",color:e.color?`${e.color}`:"#fff",fontSize:"12px",marginTop:e.marginTop?`${e.marginTop}`:"5px"})},children:R.jsx("span",{className:Er(Tn.iconText,{[Tn.disabled]:e.disabled,disabled:e.disabled}),style:{width:(Number((l=e.children)==null?void 0:l.length)%2==0,"initial"),fontSize:a,lineHeight:i,WebkitLineClamp:s},children:e.children})}):R.jsx("span",{className:Er(Tn.iconText,{[Tn.disabled]:e.disabled,disabled:e.disabled}),children:e.children})]}):R.jsx("div",{children:R.jsx(r,{className:Er(Tn.AliIconFont,{[Tn.disabled]:e.disabled,disabled:e.disabled},e.className),style:{...be.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button?"pointer":"default"},e.style)},onClick:c=>{e.disabled||e.onClick&&e.onClick(c)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})});return e.tooltip?R.jsx(pe.Tooltip,{...e.tooltip,children:o}):e.popover?R.jsx(pe.Popover,{placement:"left",trigger:"click",...e.popover,children:o}):e.button?R.jsx("span",{className:Tn.btn_convider,children:R.jsx(pe.Button,{className:Tn.btn_icon,icon:o,children:e.children})}):o},N6={badge:"_badge_16esh_1"};var gu=(e=>(e.Healthy="Healthy",e.Warning="Warning",e.Delay="Delay",e.Failure="Failure",e))(gu||{});const M6=e=>R.jsx(pe.Badge,{...e,className:`${N6.badge} ${(e==null?void 0:e.className)??""}`});gu.Delay+"",gu.Healthy+"",gu.Warning+"",gu.Failure+"";const ns=e=>sa.isMosaic(e.value)?R.jsx(Za,{}):be.isNil(e.value)?R.jsx(R.Fragment,{}):typeof e.value!="string"&&typeof e.value!="number"?e.value?e.value:R.jsx(R.Fragment,{}):R.jsx(Pf,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:0},searchWords:e.highlight||[],autoEscape:!0,textToHighlight:String(e.value)}),I_=e=>{const t=ae.useRef(null);return ae.useEffect(()=>{e.isFocus&&t.current&&t.current.focus()},[e.isFocus]),R.jsx(pe.Input,{title:e.value==="~#~"?"":e.value,ref:t,...e})},Go=({loadingSize:e=32,...t})=>{const r=R.jsx(pu,{style:{fontSize:e},spin:!0});return t.children?R.jsx(pe.Spin,{...t,indicator:r,children:t.children}):R.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:R.jsx(pe.Spin,{spinning:!0,indicator:r})})},I6=e=>R.jsxs("div",{className:"sk-cube-container loading-hidden",children:[R.jsxs("div",{className:"sk-cube-grid",children:[R.jsx("div",{className:"sk-cube sk-cube1"}),R.jsx("div",{className:"sk-cube sk-cube2"}),R.jsx("div",{className:"sk-cube sk-cube3"}),R.jsx("div",{className:"sk-cube sk-cube4"}),R.jsx("div",{className:"sk-cube sk-cube5"}),R.jsx("div",{className:"sk-cube sk-cube6"}),R.jsx("div",{className:"sk-cube sk-cube7"}),R.jsx("div",{className:"sk-cube sk-cube8"}),R.jsx("div",{className:"sk-cube sk-cube9"})]}),R.jsx("div",{className:"sk-cube10",children:e.children||"loading..."})]}),L_={modal_wrapper_loading:"_modal_wrapper_loading_1tlvq_1",global_spin:"_global_spin_1tlvq_15"},L6=e=>e.isSpinning?R.jsx("div",{className:L_.modal_wrapper_loading,children:R.jsx(pe.Spin,{spinning:e.isSpinning,className:L_.global_spin,indicator:R.jsx(pu,{style:{fontSize:48},spin:!0})})}):void 0;var up={},Da={},B_;function Ra(){if(B_)return Da;B_=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.getBreaksNeededForEmptyLineAfter=Da.getBreaksNeededForEmptyLineBefore=Da.selectWord=Da.getSurroundingWord=void 0;function e(a,i){if(!a)throw Error("Argument 'text' should be truthy");for(var s=function(d){return d===" "||d.charCodeAt(0)===10},o=0,l=a.length,c=i;c-1>-1;c--)if(s(a[c-1])){o=c;break}for(var c=i;c<a.length;c++)if(s(a[c])){l=c;break}return{start:o,end:l}}Da.getSurroundingWord=e;function t(a){var i=a.text,s=a.selection;return i&&i.length&&s.start===s.end?e(i,s.start):s}Da.selectWord=t;function r(a,i){if(a===void 0&&(a=""),i===0)return 0;for(var s=2,o=!0,l=i-1;l>=0&&s>=0;l--)switch(a.charCodeAt(l)){case 32:continue;case 10:s--,o=!1;break;default:return s}return o?0:s}Da.getBreaksNeededForEmptyLineBefore=r;function n(a,i){if(a===void 0&&(a=""),i===a.length-1)return 0;for(var s=2,o=!0,l=i;l<a.length&&s>=0;l++)switch(a.charCodeAt(l)){case 32:continue;case 10:{s--,o=!1;break}default:return s}return o?0:s}return Da.getBreaksNeededForEmptyLineAfter=n,Da}var $s={},mu={},vu={},j_;function Ko(){if(j_)return vu;j_=1;/*!
117
+ Copyright (c) 2018 Jed Watson.
118
+ Licensed under the MIT License (MIT), see
119
+ http://jedwatson.github.io/classnames
120
+ */Object.defineProperty(vu,"__esModule",{value:!0}),vu.classNames=void 0;function e(a){return typeof a=="string"}function t(a){return Array.isArray(a)&&a.length>0}function r(a){return typeof a=="object"}function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var s=[],o=0;o<a.length;o++){var l=a[o];if(l){if(e(l))s.push(l);else if(t(l)){var c=n.apply(null,l);c&&s.push(c)}else if(r(l))for(var d in l)l.hasOwnProperty(d)&&l[d]&&s.push(d)}}return s.join(" ")}return vu.classNames=n,vu}var U_;function H_(){if(U_)return mu;U_=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.ToolbarButtonGroup=void 0;var e=ae,t=Ko(),r=function(n){return e.createElement("ul",{className:t.classNames("mde-header-group",{hidden:n.hidden})},n.children)};return mu.ToolbarButtonGroup=r,mu}var Vs={},z_;function W_(){if(z_)return Vs;z_=1;var e=Vs&&Vs.__assign||function(){return e=Object.assign||function(a){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=i[l])}return a},e.apply(this,arguments)};Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.ToolbarButton=void 0;var t=ae,r={tabIndex:-1},n=function(a){var i=a.buttonComponentClass,s=a.buttonContent,o=a.buttonProps,l=a.onClick,c=a.readOnly,d=a.name,p=e(e({},r),o||{}),g=i||"button";return t.createElement("li",{className:"mde-header-item"},t.createElement(g,e(e({"data-name":d},p),{onClick:l,disabled:c,type:"button"}),s))};return Vs.ToolbarButton=n,Vs}var xu={},$_;function V_(){if($_)return xu;$_=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.MdeFontAwesomeIcon=void 0;var e=ae,t=function(r){var n=r.icon,a=n;switch(n){case"header":a="heading";break;case"quote":a="quote-right";break;case"unordered-list":a="tasks";break;case"ordered-list":a="list-ol";break;case"checked-list":a="tasks";break;default:a=n}return e.createElement("i",{className:"fas fa-"+a,"aria-hidden":"true"})};return xu.MdeFontAwesomeIcon=t,xu}var qs={},q_;function B6(){if(q_)return qs;q_=1;var e=qs&&qs.__extends||function(){var a=function(i,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(o[c]=l[c])},a(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");a(i,s);function o(){this.constructor=i}i.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(qs,"__esModule",{value:!0}),qs.Preview=void 0;var t=ae,r=Ko(),n=function(a){e(i,a);function i(s){var o=a.call(this,s)||this;return o.state={loading:!0},o}return i.prototype.componentDidMount=function(){this.generatePreview()},i.prototype.componentDidUpdate=function(s,o){this.props.markdown!==s.markdown&&this.generatePreview()},i.prototype.generatePreview=function(){var s=this,o=this.props,l=o.markdown,c=o.generateMarkdownPreview;c(l).then(function(d){s.setState({preview:d,loading:!1})})},i.prototype.render=function(){var s=this.props,o=s.classes,l=s.minHeight,c=s.loadingPreview,d=s.refObject,p=s.heightUnits,g=this.state,v=g.preview,y=g.loading,_=y?c:v,C;typeof _=="string"?C=t.createElement("div",{className:"mde-preview-content",dangerouslySetInnerHTML:{__html:_||"<p>&nbsp;</p>"},ref:d}):C=t.createElement("div",{className:"mde-preview-content"},_);var E=l&&p?l+10+p:l+10;return t.createElement("div",{className:r.classNames("mde-preview",o,{loading:y}),style:{minHeight:E},"data-testid":"mde-preview"},C)},i}(t.Component);return qs.Preview=n,qs}var mi={},_u={},Y_;function j6(){if(Y_)return _u;Y_=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.getCaretCoordinates=void 0;var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],t=typeof window<"u",r=t&&window.mozInnerScreenX!=null;function n(a,i){if(!t)throw new Error("getCaretCoordinates should only be called in a browser");var s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);var o=s.style,l=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle;o.whiteSpace="pre-wrap",o.wordWrap="break-word",o.position="absolute",o.visibility="hidden",e.forEach(function(p){o[p]=l[p]}),r?a.scrollHeight>parseInt(l.height)&&(o.overflowY="scroll"):o.overflow="hidden",s.textContent=a.value.substring(0,a.selectionStart),i&&(s.textContent+=i);var c=document.createElement("span");c.textContent=a.value.substring(a.selectionEnd)||".",s.appendChild(c);var d={top:c.offsetTop+parseInt(l.borderTopWidth),left:c.offsetLeft+parseInt(l.borderLeftWidth),lineHeight:parseInt(l.lineHeight)};return document.body.removeChild(s),d}return _u.getCaretCoordinates=n,_u}var yu={},G_;function K_(){if(G_)return yu;G_=1;/*!
121
+ * The MIT License
122
+ Copyright (c) 2018 Dmitriy Kubyshkin
123
+ Copied from https://github.com/grassator/insert-text-at-cursor
124
+ */Object.defineProperty(yu,"__esModule",{value:!0}),yu.insertText=void 0;function e(r,n){if(r.focus(),document.selection){var a=document.selection.createRange();a.text=n,a.collapse(!1),a.select();return}var i=document.execCommand("insertText",!1,n);if(!i){var s=r.selectionStart,o=r.selectionEnd;if(typeof r.setRangeText=="function")r.setRangeText(n);else if(t(r)){var l=document.createTextNode(n),c=r.firstChild;if(!c)r.appendChild(l);else{for(var d=0,p=null,g=null,v=document.createRange();c&&(p===null||g===null);){var y=c.nodeValue.length;s>=d&&s<=d+y&&v.setStart(p=c,s-d),o>=d&&o<=d+y&&v.setEnd(g=c,o-d),d+=y,c=c.nextSibling}s!==o&&v.deleteContents(),v.insertNode(l)}}else{var _=r.value;r.value=_.slice(0,s)+n+_.slice(o)}r.setSelectionRange(s+n.length,s+n.length);var C=document.createEvent("UIEvent");C.initEvent("input",!0,!1),r.dispatchEvent(C)}}yu.insertText=e;function t(r){if(r.nodeName!=="TEXTAREA")return!1;var n;if(typeof n>"u"){var a=document.createElement("textarea");a.value="1",n=!!a.firstChild}return n}return yu}var wu={},X_;function U6(){if(X_)return wu;X_=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.mod=void 0;function e(t,r){return(t%r+r)%r}return wu.mod=e,wu}var bu={},Z_;function J_(){if(Z_)return bu;Z_=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.SuggestionsDropdown=void 0;var e=ae,t=Ko(),r=function(n){var a=n.classes,i=n.suggestions,s=n.caret,o=n.onSuggestionSelected,l=n.suggestionsAutoplace,c=n.focusIndex,d=n.textAreaRef,p=function(T){T.preventDefault();var b=parseInt(T.currentTarget.attributes["data-index"].value);o(b)},g=function(T){return T.preventDefault()},v=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),y=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),_=s.left-d.current.scrollLeft,C=s.top-d.current.scrollTop,E={};return l&&C+d.current.getBoundingClientRect().top>y/2?E.bottom=d.current.offsetHeight-C:E.top=C,l&&_+d.current.getBoundingClientRect().left>v/2?E.right=d.current.offsetWidth-_:E.left=_,e.createElement("ul",{className:t.classNames("mde-suggestions",a),style:E},i.map(function(T,b){return e.createElement("li",{onClick:p,onMouseDown:g,key:b,"aria-selected":c===b?"true":"false","data-index":""+b},T.preview)}))};return bu.SuggestionsDropdown=r,bu}var Q_;function H6(){if(Q_)return mi;Q_=1;var e=mi&&mi.__extends||function(){var c=function(d,p){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(g[y]=v[y])},c(d,p)};return function(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");c(d,p);function g(){this.constructor=d}d.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),t=mi&&mi.__assign||function(){return t=Object.assign||function(c){for(var d,p=1,g=arguments.length;p<g;p++){d=arguments[p];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},t.apply(this,arguments)};Object.defineProperty(mi,"__esModule",{value:!0}),mi.TextArea=void 0;var r=ae,n=Ko(),a=j6(),i=K_(),s=U6(),o=J_(),l=function(c){e(d,c);function d(p){var g=c.call(this,p)||this;return g.currentLoadSuggestionsPromise=Promise.resolve(void 0),g.suggestionsPromiseIndex=0,g.getTextArea=function(){return g.props.refObject.current},g.handleOnChange=function(v){var y=g.props.onChange;y(v.target.value)},g.handleBlur=function(){var v=g.state.mention;v&&g.setState({mention:{status:"inactive",suggestions:[]}})},g.startLoadingSuggestions=function(v){var y=++g.suggestionsPromiseIndex,_=g.props.loadSuggestions;g.currentLoadSuggestionsPromise=g.currentLoadSuggestionsPromise.then(function(){return _(v,g.state.mention.triggeredBy)}).then(function(C){if(g.state.mention.status!=="inactive")return g.suggestionsPromiseIndex===y&&(!C||!C.length?g.setState({mention:{status:"inactive",suggestions:[]}}):g.setState({mention:t(t({},g.state.mention),{status:"active",suggestions:C,focusIndex:0})}),g.suggestionsPromiseIndex=0),Promise.resolve()})},g.loadEmptySuggestion=function(v,y){var _=a.getCaretCoordinates(v,y);g.startLoadingSuggestions(""),g.setState({mention:{status:"loading",startPosition:v.selectionStart+1,caret:_,suggestions:[],triggeredBy:y}})},g.handleSuggestionSelected=function(v){var y=g.state.mention;g.getTextArea().selectionStart=y.startPosition-1,g.props.value.substr(g.getTextArea().selectionStart,g.getTextArea().selectionEnd-g.getTextArea().selectionStart),i.insertText(g.getTextArea(),y.suggestions[v].value+" "),g.setState({mention:{status:"inactive",suggestions:[]}})},g.handleKeyDown=function(v){if(g.props.onPossibleKeyCommand){var y=g.props.onPossibleKeyCommand(v);if(y){v.preventDefault(),g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});return}}if(g.suggestionsEnabled()){var _=v.key,C=v.shiftKey,E=v.currentTarget,T=E.selectionStart,b=g.state.mention;switch(b.status){case"loading":case"active":if(_==="Escape"||_==="Backspace"&&T<=g.state.mention.startPosition)g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});else if(b.status==="active"&&(_==="ArrowUp"||_==="ArrowDown")&&!C){v.preventDefault();var h=_==="ArrowUp"?-1:1;g.setState({mention:t(t({},b),{focusIndex:s.mod(b.focusIndex+h,b.suggestions.length)})})}else _==="Enter"&&b.status==="active"&&b.suggestions.length&&(v.preventDefault(),g.handleSuggestionSelected(b.focusIndex));break}}},g.handleKeyUp=function(v){var y=v.key,_=g.state.mention,C=g.props,E=C.suggestionTriggerCharacters,T=C.value;switch(_.status){case"loading":case"active":if(y==="Backspace"){var b=T.substr(_.startPosition,g.getTextArea().selectionStart-_.startPosition);g.startLoadingSuggestions(b),_.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})})}break;case"inactive":if(y==="Backspace"){var h=T.charAt(g.getTextArea().selectionStart-1),m=E.includes(T.charAt(g.getTextArea().selectionStart-1));m&&g.loadEmptySuggestion(v.currentTarget,h)}break}},g.handleKeyPress=function(v){var y=g.props,_=y.suggestionTriggerCharacters,C=y.value,E=g.state.mention,T=v.key;switch(E.status){case"loading":case"active":if(T===" "){g.setState({mention:t(t({},g.state.mention),{status:"inactive"})});return}var b=C.substr(E.startPosition,g.getTextArea().selectionStart-E.startPosition)+T;g.startLoadingSuggestions(b),E.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})});break;case"inactive":if(_.indexOf(v.key)===-1||!/\s|\(|\[|^.{0}$/.test(C.charAt(g.getTextArea().selectionStart-1)))return;g.loadEmptySuggestion(v.currentTarget,v.key);break}},g.state={mention:{status:"inactive",suggestions:[]}},g}return d.prototype.suggestionsEnabled=function(){return this.props.suggestionTriggerCharacters&&this.props.suggestionTriggerCharacters.length&&this.props.loadSuggestions},d.prototype.render=function(){var p=this,g=this.props,v=g.classes,y=g.readOnly,_=g.textAreaProps,C=g.height,E=g.heightUnits,T=g.value,b=g.suggestionTriggerCharacters,h=g.loadSuggestions,m=g.suggestionsDropdownClasses,x=g.textAreaComponent,S=g.onPaste,A=g.onDrop,k=b&&b.length&&h,F=this.state.mention,P=x||"textarea",j=C&&E?C+E:C;return r.createElement("div",{className:"mde-textarea-wrapper"},r.createElement(P,t({className:n.classNames("mde-text",v),style:{height:j},ref:this.props.refObject,readOnly:y,value:T,"data-testid":"text-area"},_,{onChange:function(L){var B;(B=_==null?void 0:_.onChange)===null||B===void 0||B.call(_,L),p.handleOnChange(L)},onBlur:function(L){var B;(B=_==null?void 0:_.onBlur)===null||B===void 0||B.call(_,L),k&&p.handleBlur()},onKeyDown:function(L){var B;(B=_==null?void 0:_.onKeyDown)===null||B===void 0||B.call(_,L),p.handleKeyDown(L)},onKeyUp:function(L){var B;(B=_==null?void 0:_.onKeyUp)===null||B===void 0||B.call(_,L),k&&p.handleKeyUp(L)},onKeyPress:function(L){var B;(B=_==null?void 0:_.onKeyPress)===null||B===void 0||B.call(_,L),k&&p.handleKeyPress(L)},onPaste:function(L){var B;(B=_==null?void 0:_.onPaste)===null||B===void 0||B.call(_,L),S(L)},onDragOver:function(L){L.preventDefault(),L.stopPropagation()},onDrop:function(L){var B;(B=_==null?void 0:_.onDrop)===null||B===void 0||B.call(_,L),A(L),L.preventDefault()}})),F.status==="active"&&F.suggestions.length&&r.createElement(o.SuggestionsDropdown,{classes:m,caret:F.caret,suggestions:F.suggestions,onSuggestionSelected:this.handleSuggestionSelected,suggestionsAutoplace:this.props.suggestionsAutoplace,focusIndex:F.focusIndex,textAreaRef:this.props.refObject}))},d}(r.Component);return mi.TextArea=l,mi}var vi={},ey;function z6(){if(ey)return vi;ey=1;var e=vi&&vi.__extends||function(){var o=function(l,c){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])},o(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");o(l,c);function d(){this.constructor=l}l.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}(),t=vi&&vi.__assign||function(){return t=Object.assign||function(o){for(var l,c=1,d=arguments.length;c<d;c++){l=arguments[c];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(o[p]=l[p])}return o},t.apply(this,arguments)};Object.defineProperty(vi,"__esModule",{value:!0}),vi.Toolbar=void 0;var r=ae,n=Ko(),a=H_(),i=W_(),s=function(o){e(l,o);function l(){var c=o!==null&&o.apply(this,arguments)||this;return c.handleTabChange=function(d){var p=c.props.onTabChange;p(d)},c}return l.prototype.render=function(){var c=this,d=this.props.l18n,p=this.props,g=p.classes,v=p.children,y=p.buttons,_=p.onCommand,C=p.readOnly,E=p.disablePreview,T=p.writeButtonProps,b=p.previewButtonProps,h=p.buttonProps;if((!y||y.length===0)&&!v)return null;var m=r.createElement("div",{className:"mde-tabs"},r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="write"}),onClick:function(){return c.handleTabChange("write")}},T),d.write),r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="preview"}),onClick:function(){return c.handleTabChange("preview")}},b),d.preview));return r.createElement("div",{className:n.classNames("mde-header",g)},!E&&m,y.map(function(x,S){return r.createElement(a.ToolbarButtonGroup,{key:S,hidden:c.props.tab==="preview"},x.map(function(A,k){return r.createElement(i.ToolbarButton,{key:k,name:A.commandName,buttonContent:A.buttonContent,buttonProps:t(t({},h||{}),A.buttonProps),onClick:function(){return _(A.commandName)},readOnly:C,buttonComponentClass:A.buttonComponentClass})}))}))},l}(r.Component);return vi.Toolbar=s,vi}var jn={},xi={},Su={},ty;function W6(){if(ty)return Su;ty=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.headerCommand=void 0;var e=Ra();function t(r,n,a){var i=e.selectWord({text:r.text,selection:r.selection}),s=n.setSelectionRange(i),o=n.replaceSelection(""+a+s.selectedText);n.setSelectionRange({start:o.selection.end-s.selectedText.length,end:o.selection.end})}return Su.headerCommand={buttonProps:{"aria-label":"Add header"},execute:function(r){var n=r.initialState,a=r.textApi;t(n,a,"### ")}},Su}var ku={},ry;function $6(){if(ry)return ku;ry=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.boldCommand=void 0;var e=Ra();return ku.boldCommand={buttonProps:{"aria-label":"Add bold text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=n.replaceSelection("**"+i.selectedText+"**");n.setSelectionRange({start:s.selection.end-2-i.selectedText.length,end:s.selection.end-2})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="b"}},ku}var Tu={},ny;function V6(){if(ny)return Tu;ny=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.italicCommand=void 0;var e=Ra();return Tu.italicCommand={buttonProps:{"aria-label":"Add italic text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=n.replaceSelection("*"+i.selectedText+"*");n.setSelectionRange({start:s.selection.end-1-i.selectedText.length,end:s.selection.end-1})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="i"}},Tu}var Eu={},ay;function q6(){if(ay)return Eu;ay=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.strikeThroughCommand=void 0;var e=Ra();return Eu.strikeThroughCommand={buttonProps:{"aria-label":"Add strikethrough text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=n.replaceSelection("~~"+i.selectedText+"~~");n.setSelectionRange({start:s.selection.end-2-i.selectedText.length,end:s.selection.end-2})}},Eu}var Cu={},iy;function Y6(){if(iy)return Cu;iy=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.linkCommand=void 0;var e=Ra();return Cu.linkCommand={buttonProps:{"aria-label":"Add a link"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=n.replaceSelection("["+i.selectedText+"](url)");n.setSelectionRange({start:s.selection.end-6-i.selectedText.length,end:s.selection.end-6})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="k"}},Cu}var Au={},sy;function G6(){if(sy)return Au;sy=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.quoteCommand=void 0;var e=Ra();return Au.quoteCommand={buttonProps:{"aria-label":"Insert a quote"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),s=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),o=Array(s+1).join(`
125
+ `),l=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),c=Array(l+1).join(`
126
+ `);n.replaceSelection(o+"> "+i.selectedText+c);var d=i.selection.start+s+2,p=d+i.selectedText.length;n.setSelectionRange({start:d,end:p})}},Au}var Ou={},oy;function K6(){if(oy)return Ou;oy=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.codeCommand=void 0;var e=Ra();return Ou.codeCommand={buttonProps:{"aria-label":"Insert code"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a);if(i.selectedText.indexOf(`
127
+ `)===-1){n.replaceSelection("`"+i.selectedText+"`");var s=i.selection.start+1,o=s+i.selectedText.length;n.setSelectionRange({start:s,end:o});return}var l=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),c=Array(l+1).join(`
128
+ `),d=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),p=Array(d+1).join(`
129
+ `);n.replaceSelection(c+"```\n"+i.selectedText+"\n```"+p);var g=i.selection.start+l+4,v=g+i.selectedText.length;n.setSelectionRange({start:g,end:v})}},Ou}var cp={},ly;function X6(){return ly||(ly=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkedListCommand=e.orderedListCommand=e.unorderedListCommand=e.makeList=e.insertBeforeEachLine=void 0;var t=Ra();function r(a,i){var s=a.split(/\n/),o=0,l=s.map(function(c,d){if(typeof i=="string")return o+=i.length,i+c;if(typeof i=="function"){var p=i(c,d);return o+=p.length,i(c,d)+c}throw Error("insertion is expected to be either a string or a function")}).join(`
130
+ `);return{modifiedText:l,insertionLength:o}}e.insertBeforeEachLine=r;var n=function(a,i,s){var o=t.selectWord({text:a.text,selection:a.selection}),l=i.setSelectionRange(o),c=t.getBreaksNeededForEmptyLineBefore(l.text,l.selection.start),d=Array(c+1).join(`
131
+ `),p=t.getBreaksNeededForEmptyLineAfter(l.text,l.selection.end),g=Array(p+1).join(`
132
+ `),v=r(l.selectedText,s);i.replaceSelection(""+d+v.modifiedText+g);var y=l.selectedText.indexOf(`
133
+ `)===-1?v.insertionLength:0,_=l.selection.start+c+y,C=_+v.modifiedText.length-y;i.setSelectionRange({start:_,end:C})};e.makeList=n,e.unorderedListCommand={buttonProps:{"aria-label":"Add unordered list"},execute:function(a){var i=a.initialState,s=a.textApi;e.makeList(i,s,"- ")}},e.orderedListCommand={buttonProps:{"aria-label":"Add ordered list"},execute:function(a){var i=a.initialState,s=a.textApi;e.makeList(i,s,function(o,l){return l+1+". "})}},e.checkedListCommand={buttonProps:{"aria-label":"Add checked list"},execute:function(a){var i=a.initialState,s=a.textApi;e.makeList(i,s,function(o,l){return"- [ ] "})}}}(cp)),cp}var Fu={},uy;function Z6(){if(uy)return Fu;uy=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.imageCommand=void 0;var e=Ra();return Fu.imageCommand={buttonProps:{"aria-label":"Add image"},execute:function(t){var r=t.initialState,n=t.textApi,a=n.setSelectionRange(e.selectWord({text:r.text,selection:r.selection})),i=a.selectedText||"https://example.com/your-image.png";n.replaceSelection("![]("+i+")"),n.setSelectionRange({start:a.selection.start+4,end:a.selection.start+4+i.length})}},Fu}var _i={},yi={},cy;function J6(){if(cy)return yi;cy=1;var e=yi&&yi.__awaiter||function(n,a,i,s){function o(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function d(v){try{g(s.next(v))}catch(y){c(y)}}function p(v){try{g(s.throw(v))}catch(y){c(y)}}function g(v){v.done?l(v.value):o(v.value).then(d,p)}g((s=s.apply(n,a||[])).next())})},t=yi&&yi.__generator||function(n,a){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,o,l,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(g){return function(v){return p([g,v])}}function p(g){if(s)throw new TypeError("Generator is already executing.");for(;i;)try{if(s=1,o&&(l=g[0]&2?o.return:g[0]?o.throw||((l=o.return)&&l.call(o),0):o.next)&&!(l=l.call(o,g[1])).done)return l;switch(o=0,l&&(g=[g[0]&2,l.value]),g[0]){case 0:case 1:l=g;break;case 4:return i.label++,{value:g[1],done:!1};case 5:i.label++,o=g[1],g=[0];continue;case 7:g=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(g[0]===6||g[0]===2)){i=0;continue}if(g[0]===3&&(!l||g[1]>l[0]&&g[1]<l[3])){i.label=g[1];break}if(g[0]===6&&i.label<l[1]){i.label=l[1],l=g;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(g);break}l[2]&&i.ops.pop(),i.trys.pop();continue}g=a.call(n,i)}catch(v){g=[6,v],o=0}finally{s=l=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}};Object.defineProperty(yi,"__esModule",{value:!0}),yi.readFileAsync=void 0;function r(n){return e(this,void 0,void 0,function(){return t(this,function(a){return[2,new Promise(function(i,s){var o=new FileReader;o.onload=function(){if(typeof o.result=="string")throw new Error("reader.result is expected to be an ArrayBuffer");i(o.result)},o.onerror=s,o.readAsArrayBuffer(n)})]})})}return yi.readFileAsync=r,yi}var fy;function Q6(){if(fy)return _i;fy=1;var e=_i&&_i.__awaiter||function(c,d,p,g){function v(y){return y instanceof p?y:new p(function(_){_(y)})}return new(p||(p=Promise))(function(y,_){function C(b){try{T(g.next(b))}catch(h){_(h)}}function E(b){try{T(g.throw(b))}catch(h){_(h)}}function T(b){b.done?y(b.value):v(b.value).then(C,E)}T((g=g.apply(c,d||[])).next())})},t=_i&&_i.__generator||function(c,d){var p={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},g,v,y,_;return _={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function C(T){return function(b){return E([T,b])}}function E(T){if(g)throw new TypeError("Generator is already executing.");for(;p;)try{if(g=1,v&&(y=T[0]&2?v.return:T[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,T[1])).done)return y;switch(v=0,y&&(T=[T[0]&2,y.value]),T[0]){case 0:case 1:y=T;break;case 4:return p.label++,{value:T[1],done:!1};case 5:p.label++,v=T[1],T=[0];continue;case 7:T=p.ops.pop(),p.trys.pop();continue;default:if(y=p.trys,!(y=y.length>0&&y[y.length-1])&&(T[0]===6||T[0]===2)){p=0;continue}if(T[0]===3&&(!y||T[1]>y[0]&&T[1]<y[3])){p.label=T[1];break}if(T[0]===6&&p.label<y[1]){p.label=y[1],y=T;break}if(y&&p.label<y[2]){p.label=y[2],p.ops.push(T);break}y[2]&&p.ops.pop(),p.trys.pop();continue}T=d.call(c,p)}catch(b){T=[6,b],v=0}finally{g=y=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}};Object.defineProperty(_i,"__esModule",{value:!0}),_i.saveImageCommand=void 0;var r=J6(),n=Ra();function a(c){var d=[];for(var p in c){var g=c[p];g.kind==="file"&&d.push(g.getAsFile())}return d}function i(c){for(var d=[],p=0;p<c.length;p++)d.push(c[0]);return d}function s(c,d){var p=d.multiple,g=d.accept,v=c;if(p||(v=v.slice(0,1)),g){var y=g.split(","),_=new Set(y.filter(function(T){return/^\.\w+/.test(T)}).map(function(T){return T.split(".")[1]})),C=new Set(y.filter(function(T){return/^[-\w.]+\/[-\w.]+$/.test(T)})),E=new Set(y.filter(function(T){return/(audio|video|image)\/\*/.test(T)}).map(function(T){return T.split("/")[0]}));v=v.filter(function(T){return _.has(T.name.split(".")[1])||C.has(T.type)||E.has(T.type.split("/")[0])})}return v}_i.saveImageCommand={execute:function(c){c.initialState;var d=c.textApi,p=c.context,g=c.l18n;return e(this,void 0,void 0,function(){var v,y,_,C,E,T,b,h,m,x,S,A,k,F,P,j,L,B,U,O,N,V,M,q;return t(this,function(Y){switch(Y.label){case 0:if(!p)throw new Error("wrong context");v=p,y=v.event,_=v.pasteOptions,C=_.saveImage,E=_.multiple,T=_.accept,b=o(p)?a(y.clipboardData.items):l(p)?a(y.dataTransfer.items):i(y.target.files),h=s(b,{multiple:E,accept:T}),m=[];for(x in h)m.push(x);S=0,Y.label=1;case 1:return S<m.length?(A=m[S],k=d.getState(),F=n.getBreaksNeededForEmptyLineBefore(k.text,k.selection.start),P=Array(F+1).join(`
134
+ `),j=P+"!["+g.uploadingImage+"]()",d.replaceSelection(j),L=b[A],[4,r.readFileAsync(L)]):[3,5];case 2:return B=Y.sent(),U=C(B,L),[4,U.next()];case 3:O=Y.sent().value,N=d.getState(),V=N.text.substr(k.selection.start,j.length),V===j&&(d.setSelectionRange({start:k.selection.start,end:k.selection.start+j.length}),M=O?P+"![image]("+O+")":"",q=M.length-j.length,d.replaceSelection(M),d.setSelectionRange({start:N.selection.start+q,end:N.selection.end+q})),Y.label=4;case 4:return S++,[3,1];case 5:return[2]}})})}};function o(c){return c.event.clipboardData!==void 0}function l(c){return c.event.dataTransfer!==void 0}return _i}var dy;function fp(){if(dy)return xi;dy=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.getDefaultSaveImageCommandName=xi.getDefaultCommandMap=xi.getDefaultToolbarCommands=void 0;var e=W6(),t=$6(),r=V6(),n=q6(),a=Y6(),i=G6(),s=K6(),o=X6(),l=Z6(),c=Q6();function d(){return[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]]}xi.getDefaultToolbarCommands=d;function p(){return{header:e.headerCommand,bold:t.boldCommand,italic:r.italicCommand,strikethrough:n.strikeThroughCommand,link:a.linkCommand,quote:i.quoteCommand,code:s.codeCommand,image:l.imageCommand,"unordered-list":o.unorderedListCommand,"ordered-list":o.orderedListCommand,"checked-list":o.checkedListCommand,"save-image":c.saveImageCommand}}xi.getDefaultCommandMap=p;function g(){return"save-image"}return xi.getDefaultSaveImageCommandName=g,xi}var Pu={},hy;function eA(){return hy||(hy=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.enL18n=void 0,Pu.enL18n={write:"Write",preview:"Preview",uploadingImage:"Uploading image...",pasteDropSelect:"Attach files by dragging & dropping, selecting or pasting them."}),Pu}var Ys={},Du={},py;function tA(){if(py)return Du;py=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.SvgIcon=void 0;var e=ae,t=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"tasks",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})),r=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ol",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),n=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ul",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),a=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"image",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"})),i=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"code",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})),s=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M512 80v128c0 137.018-63.772 236.324-193.827 271.172-15.225 4.08-30.173-7.437-30.173-23.199v-33.895c0-10.057 6.228-19.133 15.687-22.55C369.684 375.688 408 330.054 408 256h-72c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h128c26.51 0 48 21.49 48 48zM176 32H48C21.49 32 0 53.49 0 80v128c0 26.51 21.49 48 48 48h72c0 74.054-38.316 119.688-104.313 143.528C6.228 402.945 0 412.021 0 422.078v33.895c0 15.762 14.948 27.279 30.173 23.199C160.228 444.324 224 345.018 224 208V80c0-26.51-21.49-48-48-48z"})),o=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"link",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})),l=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"strikethrough",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})),c=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"italic",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})),d=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"heading",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"})),p=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"bold",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})),g=function(v){var y=v.icon;switch(y){case"header":return d;case"bold":return p;case"italic":return c;case"strikethrough":return l;case"link":return o;case"quote":return s;case"code":return i;case"image":return a;case"unordered-list":return n;case"ordered-list":return r;case"checked-list":return t;default:return null}};return Du.SvgIcon=g,Du}var gy;function my(){return gy||(gy=1,function(e){var t=Ys&&Ys.__createBinding||(Object.create?function(n,a,i,s){s===void 0&&(s=i),Object.defineProperty(n,s,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,s){s===void 0&&(s=i),n[s]=a[i]}),r=Ys&&Ys.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(V_(),e),r(tA(),e)}(Ys)),Ys}var gn={},Ru={},vy;function rA(){if(vy)return Ru;vy=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.extractKeyActivatedCommands=void 0;function e(t){var r=[];for(var n in t)t.hasOwnProperty(n)&&t[n].handleKeyCommand&&r.push(n);return r}return Ru.extractKeyActivatedCommands=e,Ru}var xy;function nA(){if(xy)return gn;xy=1;var e=gn&&gn.__assign||function(){return e=Object.assign||function(d){for(var p,g=1,v=arguments.length;g<v;g++){p=arguments[g];for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(d[y]=p[y])}return d},e.apply(this,arguments)},t=gn&&gn.__awaiter||function(d,p,g,v){function y(_){return _ instanceof g?_:new g(function(C){C(_)})}return new(g||(g=Promise))(function(_,C){function E(h){try{b(v.next(h))}catch(m){C(m)}}function T(h){try{b(v.throw(h))}catch(m){C(m)}}function b(h){h.done?_(h.value):y(h.value).then(E,T)}b((v=v.apply(d,p||[])).next())})},r=gn&&gn.__generator||function(d,p){var g={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},v,y,_,C;return C={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function E(b){return function(h){return T([b,h])}}function T(b){if(v)throw new TypeError("Generator is already executing.");for(;g;)try{if(v=1,y&&(_=b[0]&2?y.return:b[0]?y.throw||((_=y.return)&&_.call(y),0):y.next)&&!(_=_.call(y,b[1])).done)return _;switch(y=0,_&&(b=[b[0]&2,_.value]),b[0]){case 0:case 1:_=b;break;case 4:return g.label++,{value:b[1],done:!1};case 5:g.label++,y=b[1],b=[0];continue;case 7:b=g.ops.pop(),g.trys.pop();continue;default:if(_=g.trys,!(_=_.length>0&&_[_.length-1])&&(b[0]===6||b[0]===2)){g=0;continue}if(b[0]===3&&(!_||b[1]>_[0]&&b[1]<_[3])){g.label=b[1];break}if(b[0]===6&&g.label<_[1]){g.label=_[1],_=b;break}if(_&&g.label<_[2]){g.label=_[2],g.ops.push(b);break}_[2]&&g.ops.pop(),g.trys.pop();continue}b=p.call(d,g)}catch(h){b=[6,h],y=0}finally{v=_=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}};Object.defineProperty(gn,"__esModule",{value:!0}),gn.CommandOrchestrator=gn.getStateFromTextArea=gn.TextAreaTextApi=void 0;var n=Sy(),a=K_(),i=rA(),s=fp(),o=function(){function d(p){this.textAreaRef=p}return d.prototype.replaceSelection=function(p){var g=this.textAreaRef.current;return a.insertText(g,p),l(g)},d.prototype.setSelectionRange=function(p){var g=this.textAreaRef.current;return g.focus(),g.selectionStart=p.start,g.selectionEnd=p.end,l(g)},d.prototype.getState=function(){var p=this.textAreaRef.current;return l(p)},d}();gn.TextAreaTextApi=o;function l(d){return{selection:{start:d.selectionStart,end:d.selectionEnd},text:d.value,selectedText:d.value.slice(d.selectionStart,d.selectionEnd)}}gn.getStateFromTextArea=l;var c=function(){function d(p,g,v,y){var _=this;if(this.getCommand=function(C){var E=_.commandMap[C];if(!E)throw new Error("Cannot execute command. Command not found: "+C);return E},this.handlePossibleKeyCommand=function(C){for(var E=0,T=_.keyActivatedCommands;E<T.length;E++){var b=T[E];if(_.getCommand(b).handleKeyCommand(C))return _.executeCommand(b).then(function(h){}),!0}return!1},y&&!y.saveImage)throw new Error("paste options are incomplete. saveImage are required ");this.commandMap=e(e({},n.getDefaultCommandMap()),p||{}),this.pasteOptions=y,this.keyActivatedCommands=i.extractKeyActivatedCommands(p),this.textAreaRef=g,this.textApi=new o(g),this.l18n=v}return d.prototype.executeCommand=function(p,g){return t(this,void 0,void 0,function(){var v,y;return r(this,function(_){switch(_.label){case 0:return this.isExecuting?[2]:(this.isExecuting=!0,v=this.commandMap[p],y=v.execute({initialState:l(this.textAreaRef.current),textApi:this.textApi,l18n:this.l18n,context:g}),[4,y]);case 1:return _.sent(),this.isExecuting=!1,[2]}})})},d.prototype.executePasteCommand=function(p){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||s.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:p})]:[2]})})},d.prototype.executeDropCommand=function(p){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||s.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:p})]:[2]})})},d.prototype.executeSelectImageCommand=function(p){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||s.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:p})]:[2]})})},d.prototype.getCommandByName=function(p){return this.commandMap[p]},d}();return gn.CommandOrchestrator=c,gn}var _y;function aA(){if(_y)return jn;_y=1;var e=jn&&jn.__extends||function(){var v=function(y,_){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,E){C.__proto__=E}||function(C,E){for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(C[T]=E[T])},v(y,_)};return function(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");v(y,_);function C(){this.constructor=y}y.prototype=_===null?Object.create(_):(C.prototype=_.prototype,new C)}}(),t=jn&&jn.__assign||function(){return t=Object.assign||function(v){for(var y,_=1,C=arguments.length;_<C;_++){y=arguments[_];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(v[E]=y[E])}return v},t.apply(this,arguments)},r=jn&&jn.__awaiter||function(v,y,_,C){function E(T){return T instanceof _?T:new _(function(b){b(T)})}return new(_||(_=Promise))(function(T,b){function h(S){try{x(C.next(S))}catch(A){b(A)}}function m(S){try{x(C.throw(S))}catch(A){b(A)}}function x(S){S.done?T(S.value):E(S.value).then(h,m)}x((C=C.apply(v,y||[])).next())})},n=jn&&jn.__generator||function(v,y){var _={label:0,sent:function(){if(T[0]&1)throw T[1];return T[1]},trys:[],ops:[]},C,E,T,b;return b={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function h(x){return function(S){return m([x,S])}}function m(x){if(C)throw new TypeError("Generator is already executing.");for(;_;)try{if(C=1,E&&(T=x[0]&2?E.return:x[0]?E.throw||((T=E.return)&&T.call(E),0):E.next)&&!(T=T.call(E,x[1])).done)return T;switch(E=0,T&&(x=[x[0]&2,T.value]),x[0]){case 0:case 1:T=x;break;case 4:return _.label++,{value:x[1],done:!1};case 5:_.label++,E=x[1],x=[0];continue;case 7:x=_.ops.pop(),_.trys.pop();continue;default:if(T=_.trys,!(T=T.length>0&&T[T.length-1])&&(x[0]===6||x[0]===2)){_=0;continue}if(x[0]===3&&(!T||x[1]>T[0]&&x[1]<T[3])){_.label=x[1];break}if(x[0]===6&&_.label<T[1]){_.label=T[1],T=x;break}if(T&&_.label<T[2]){_.label=T[2],_.ops.push(x);break}T[2]&&_.ops.pop(),_.trys.pop();continue}x=y.call(v,_)}catch(S){x=[6,S],E=0}finally{C=T=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(jn,"__esModule",{value:!0}),jn.ReactMde=void 0;var a=ae,i=wy(),s=fp(),o=eA(),l=my(),c=Ko(),d=nA(),p={accept:"image/*",multiple:!1},g=function(v){e(y,v);function y(_){var C,E=v.call(this,_)||this;E.handleTextChange=function(b){var h=E.props.onChange;h(b)},E.handlePaste=function(b){return r(E,void 0,void 0,function(){var h;return n(this,function(m){switch(m.label){case 0:return h=this.props.paste,!h||!h.saveImage?[2]:[4,this.commandOrchestrator.executePasteCommand(b)];case 1:return m.sent(),[2]}})})},E.handleDrop=function(b){return r(E,void 0,void 0,function(){var h;return n(this,function(m){switch(m.label){case 0:return h=this.props.paste,!h||!h.saveImage?[2]:[4,this.commandOrchestrator.executeDropCommand(b)];case 1:return m.sent(),[2]}})})},E.handleImageSelection=function(b){return r(E,void 0,void 0,function(){var h;return n(this,function(m){switch(m.label){case 0:return h=this.props.paste,!h||!h.saveImage?[2]:[4,this.commandOrchestrator.executeSelectImageCommand(b)];case 1:return m.sent(),[2]}})})},E.handleTabChange=function(b){var h=E.props.onTabChange;h(b)},E.handleCommand=function(b){return r(E,void 0,void 0,function(){return n(this,function(h){switch(h.label){case 0:return[4,this.commandOrchestrator.executeCommand(b)];case 1:return h.sent(),[2]}})})},E.finalRefs=t({},_.refs||{}),E.finalRefs.textarea||(E.finalRefs.textarea=a.createRef()),E.finalRefs.preview||(E.finalRefs.preview=a.createRef()),E.commandOrchestrator=new d.CommandOrchestrator(E.props.commands,E.finalRefs.textarea,E.props.l18n,E.props.paste?t(t({},p),E.props.paste):void 0);var T=Math.min(_.maxEditorHeight,_.minEditorHeight);return E.state={editorHeight:(C=_.initialEditorHeight)!==null&&C!==void 0?C:T},E}return y.prototype.render=function(){var _=this,C,E,T=this.props,b=T.getIcon,h=T.toolbarCommands,m=T.classes,x=T.loadingPreview,S=T.readOnly,A=T.disablePreview,k=T.value,F=T.l18n,P=T.minPreviewHeight,j=T.heightUnits,L=T.childProps,B=T.selectedTab,U=T.generateMarkdownPreview,O=T.loadSuggestions,N=T.suggestionTriggerCharacters,V=T.textAreaComponent,M=L||{},q=h.map(function(Y){return Y.map(function(z){var re=_.commandOrchestrator.getCommand(z);return{commandName:z,buttonContent:re.icon?re.icon(b):b(z),buttonProps:re.buttonProps,buttonComponentClass:re.buttonComponentClass}})});return a.createElement("div",{className:c.classNames("react-mde","react-mde-tabbed-layout",m==null?void 0:m.reactMde)},a.createElement(i.Toolbar,{classes:m==null?void 0:m.toolbar,buttons:q,onCommand:this.handleCommand,onTabChange:this.handleTabChange,tab:B,readOnly:S,disablePreview:A,l18n:F,buttonProps:M.commandButtons,writeButtonProps:M.writeButton,previewButtonProps:M.previewButton}),a.createElement("div",{className:c.classNames({invisible:B!=="write"})},a.createElement(i.TextArea,{classes:m==null?void 0:m.textArea,suggestionsDropdownClasses:m==null?void 0:m.suggestionsDropdown,suggestionsAutoplace:this.props.suggestionsAutoplace,refObject:this.finalRefs.textarea,onChange:this.handleTextChange,onPaste:this.handlePaste,onDrop:this.handleDrop,readOnly:S,textAreaComponent:V,textAreaProps:L&&L.textArea,height:this.state.editorHeight,heightUnits:this.props.heightUnits,value:k,suggestionTriggerCharacters:N,loadSuggestions:O,onPossibleKeyCommand:this.commandOrchestrator.handlePossibleKeyCommand}),this.props.paste&&a.createElement("label",{className:c.classNames("image-tip")},a.createElement("input",{className:c.classNames("image-input"),type:"file",accept:(C=this.props.paste.accept)!==null&&C!==void 0?C:p.accept,multiple:(E=this.props.paste.multiple)!==null&&E!==void 0?E:p.multiple,onChange:this.handleImageSelection}),a.createElement("span",null,F.pasteDropSelect))),B!=="write"&&a.createElement(i.Preview,{classes:m==null?void 0:m.preview,refObject:this.finalRefs.preview,loadingPreview:x,minHeight:P,heightUnits:j,generateMarkdownPreview:U,markdown:k}))},y.defaultProps={commands:s.getDefaultCommandMap(),toolbarCommands:s.getDefaultToolbarCommands(),getIcon:function(_){return a.createElement(l.SvgIcon,{icon:_})},readOnly:!1,l18n:o.enL18n,minEditorHeight:200,maxEditorHeight:500,minPreviewHeight:200,heightUnits:"px",selectedTab:"write",disablePreview:!1,suggestionTriggerCharacters:["@"],suggestionsAutoplace:!1},y}(a.Component);return jn.ReactMde=g,jn}var yy;function wy(){return yy||(yy=1,function(e){var t=$s&&$s.__createBinding||(Object.create?function(n,a,i,s){s===void 0&&(s=i),Object.defineProperty(n,s,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,s){s===void 0&&(s=i),n[s]=a[i]}),r=$s&&$s.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(H_(),e),r(W_(),e),r(V_(),e),r(B6(),e),r(H6(),e),r(z6(),e),r(aA(),e),r(J_(),e)}($s)),$s}var by;function Sy(){return by||(by=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultToolbarCommands=e.getDefaultCommandMap=e.MdeFontAwesomeIcon=e.SvgIcon=e.MarkdownUtil=e.ToolbarButtonGroup=e.Toolbar=e.Preview=e.SuggestionsDropdown=e.TextArea=void 0;var t=Ra();e.MarkdownUtil=t;var r=wy();Object.defineProperty(e,"TextArea",{enumerable:!0,get:function(){return r.TextArea}}),Object.defineProperty(e,"SuggestionsDropdown",{enumerable:!0,get:function(){return r.SuggestionsDropdown}}),Object.defineProperty(e,"Preview",{enumerable:!0,get:function(){return r.Preview}}),Object.defineProperty(e,"Toolbar",{enumerable:!0,get:function(){return r.Toolbar}}),Object.defineProperty(e,"ToolbarButtonGroup",{enumerable:!0,get:function(){return r.ToolbarButtonGroup}});var n=my();Object.defineProperty(e,"SvgIcon",{enumerable:!0,get:function(){return n.SvgIcon}}),Object.defineProperty(e,"MdeFontAwesomeIcon",{enumerable:!0,get:function(){return n.MdeFontAwesomeIcon}});var a=fp();Object.defineProperty(e,"getDefaultCommandMap",{enumerable:!0,get:function(){return a.getDefaultCommandMap}}),Object.defineProperty(e,"getDefaultToolbarCommands",{enumerable:!0,get:function(){return a.getDefaultToolbarCommands}}),e.default=r.ReactMde}(up)),up}var iA=Sy();const sA=hn(iA),hr={main:"_main_qf7bi_1",markIcon:"_markIcon_qf7bi_1",mdePreview:"_mdePreview_qf7bi_6",mdebordershow:"_mdebordershow_qf7bi_80",mdeborderhide:"_mdeborderhide_qf7bi_83",fullscreen:"_fullscreen_qf7bi_90"};function oA(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function o(d){try{c(n.next(d))}catch(p){s(p)}}function l(d){try{c(n.throw(d))}catch(p){s(p)}}function c(d){d.done?i(d.value):a(d.value).then(o,l)}c((n=n.apply(e,t||[])).next())})}function lA(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(d){return l([c,d])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(d){c=[6,d],a=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Nu(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function uA(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Xo=function(e){return typeof e=="function"},cA=function(e){return typeof e=="boolean"},Uf=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Gs(e){Uf&&(Xo(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=ae.useRef(e);t.current=ae.useMemo(function(){return e},[e]);var r=ae.useRef();return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current}function dp(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function fA(e,t){var r=ae.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!dp(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function la(e){var t=ae.useRef(e);return t.current=e,t}var Hf=function(e){Uf&&(Xo(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=la(e);ae.useEffect(function(){return function(){t.current()}},[])},hp,ky;function pp(){if(ky)return hp;ky=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return hp=e,hp}var gp,Ty;function dA(){if(Ty)return gp;Ty=1;var e=Lx(),t=function(){return e.Date.now()};return gp=t,gp}var mp,Ey;function hA(){if(Ey)return mp;Ey=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return mp=t,mp}var vp,Cy;function pA(){if(Cy)return vp;Cy=1;var e=hA(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return vp=r,vp}var xp,Ay;function gA(){if(Ay)return xp;Ay=1;var e=pA(),t=pp(),r=Gx(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=t(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=e(c);var p=i.test(c);return p||s.test(c)?o(c.slice(2),p?2:8):a.test(c)?n:+c}return xp=l,xp}var _p,Oy;function Fy(){if(Oy)return _p;Oy=1;var e=pp(),t=dA(),r=gA(),n="Expected a function",a=Math.max,i=Math.min;function s(o,l,c){var d,p,g,v,y,_,C=0,E=!1,T=!1,b=!0;if(typeof o!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(E=!!c.leading,T="maxWait"in c,g=T?a(r(c.maxWait)||0,l):g,b="trailing"in c?!!c.trailing:b);function h(L){var B=d,U=p;return d=p=void 0,C=L,v=o.apply(U,B),v}function m(L){return C=L,y=setTimeout(A,l),E?h(L):v}function x(L){var B=L-_,U=L-C,O=l-B;return T?i(O,g-U):O}function S(L){var B=L-_,U=L-C;return _===void 0||B>=l||B<0||T&&U>=g}function A(){var L=t();if(S(L))return k(L);y=setTimeout(A,x(L))}function k(L){return y=void 0,b&&d?h(L):(d=p=void 0,v)}function F(){y!==void 0&&clearTimeout(y),C=0,d=_=p=y=void 0}function P(){return y===void 0?v:k(t())}function j(){var L=t(),B=S(L);if(d=arguments,p=this,_=L,B){if(y===void 0)return m(_);if(T)return clearTimeout(y),y=setTimeout(A,l),h(_)}return y===void 0&&(y=setTimeout(A,l)),v}return j.cancel=F,j.flush=P,j}return _p=s,_p}var mA=Fy();const vA=hn(mA);var Py=!!(typeof window<"u"&&window.document&&window.document.createElement),yp,Dy;function xA(){if(Dy)return yp;Dy=1;var e=Fy(),t=pp(),r="Expected a function";function n(a,i,s){var o=!0,l=!0;if(typeof a!="function")throw new TypeError(r);return t(s)&&(o="leading"in s?!!s.leading:o,l="trailing"in s?!!s.trailing:l),e(a,i,{leading:o,maxWait:i,trailing:l})}return yp=n,yp}var _A=xA();const yA=hn(_A);var Zo=function(e){Uf&&(Xo(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),ae.useEffect(function(){e==null||e()},[])},wA=function(){var e=Nu(ae.useState({}),2),t=e[1];return ae.useCallback(function(){return t({})},[])};function bA(e){return Xo(e[Symbol.asyncIterator])}function SA(e,t){ae.useEffect(function(){var r=e(),n=!1;function a(){return oA(this,void 0,void 0,function(){var i;return lA(this,function(s){switch(s.label){case 0:if(!bA(r))return[3,4];s.label=1;case 1:return[4,r.next()];case 2:return i=s.sent(),i.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:s.sent(),s.label=6;case 6:return[2]}})})}return a(),function(){n=!0}},t)}function Ja(e,t){if(Py){if(!e)return t;var r;return Xo(e)?r=e():"current"in e?r=e.current:r=e,r}}var kA=function(e){return e.every(function(t){var r=Ja(t);return r?r.getRootNode()instanceof ShadowRoot:!1})},TA=function(e){return e?e.getRootNode():document},EA=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return kA(t)?TA(Ja(t[0])):document},Ry=function(e){var t=function(r,n,a){var i=ae.useRef(!1),s=ae.useRef([]),o=ae.useRef([]),l=ae.useRef();e(function(){var c,d=Array.isArray(a)?a:[a],p=d.map(function(g){return Ja(g)});if(!i.current){i.current=!0,s.current=p,o.current=n,l.current=r();return}(p.length!==s.current.length||!dp(s.current,p)||!dp(o.current,n))&&((c=l.current)===null||c===void 0||c.call(l),s.current=p,o.current=n,l.current=r())}),Hf(function(){var c;(c=l.current)===null||c===void 0||c.call(l),i.current=!1})};return t},Ny=Ry(ae.useEffect);function CA(e,t,r){r===void 0&&(r="click");var n=la(e);Ny(function(){var a=function(o){var l=Array.isArray(t)?t:[t];l.some(function(c){var d=Ja(c);return!d||d.contains(o.target)})||n.current(o)},i=EA(t),s=Array.isArray(r)?r:[r];return s.forEach(function(o){return i.addEventListener(o,a)}),function(){s.forEach(function(o){return i.removeEventListener(o,a)})}},Array.isArray(r)?r:[r],t)}function AA(){var e=(typeof global>"u"?"undefined":typeof global)=="object"&&global&&global.Object===Object&&global,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}AA()||(global.Date=Date);function OA(e,t){var r;Uf&&(Xo(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var n=la(e),a=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,i=ae.useMemo(function(){return vA(function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return n.current.apply(n,uA([],Nu(s),!1))},a,t)},[]);return Hf(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}var wp={exports:{}};/*!
135
+ * screenfull
136
+ * v5.2.0 - 2021-11-03
137
+ * (c) Sindre Sorhus; MIT License
138
+ */var My;function FA(){return My||(My=1,function(e){(function(){var t=typeof window<"u"&&typeof window.document<"u"?window.document:{},r=e.exports,n=function(){for(var s,o=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=0,c=o.length,d={};l<c;l++)if(s=o[l],s&&s[1]in t){for(l=0;l<s.length;l++)d[o[0][l]]=s[l];return d}return!1}(),a={change:n.fullscreenchange,error:n.fullscreenerror},i={request:function(s,o){return new Promise((function(l,c){var d=(function(){this.off("change",d),l()}).bind(this);this.on("change",d),s=s||t.documentElement;var p=s[n.requestFullscreen](o);p instanceof Promise&&p.then(d).catch(c)}).bind(this))},exit:function(){return new Promise((function(s,o){if(!this.isFullscreen){s();return}var l=(function(){this.off("change",l),s()}).bind(this);this.on("change",l);var c=t[n.exitFullscreen]();c instanceof Promise&&c.then(l).catch(o)}).bind(this))},toggle:function(s,o){return this.isFullscreen?this.exit():this.request(s,o)},onchange:function(s){this.on("change",s)},onerror:function(s){this.on("error",s)},on:function(s,o){var l=a[s];l&&t.addEventListener(l,o,!1)},off:function(s,o){var l=a[s];l&&t.removeEventListener(l,o,!1)},raw:n};if(!n){r?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(i,{isFullscreen:{get:function(){return!!t[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return t[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!t[n.fullscreenEnabled]}}}),r?e.exports=i:window.screenfull=i})()}(wp)),wp.exports}var PA=FA();const ua=hn(PA);var Iy=function(e,t){var r=t||{},n=r.onExit,a=r.onEnter,i=r.pageFullscreen,s=i===void 0?!1:i,o=cA(s)||!s?{}:s,l=o.className,c=l===void 0?"ahooks-page-fullscreen":l,d=o.zIndex,p=d===void 0?999999:d,g=la(n),v=la(a),y=Nu(ae.useState(T),2),_=y[0],C=y[1],E=ae.useRef(T());function T(){return ua.isEnabled&&!!ua.element&&ua.element===Ja(e)}var b=function(F){var P,j;F?(P=v.current)===null||P===void 0||P.call(v):(j=g.current)===null||j===void 0||j.call(g)},h=function(F){E.current!==F&&(b(F),C(F),E.current=F)},m=function(){var F=T();h(F)},x=function(F){var P=Ja(e);if(P){var j=document.getElementById(c);F?(P.classList.add(c),j||(j=document.createElement("style"),j.setAttribute("id",c),j.textContent=`
139
+ .`.concat(c,` {
140
+ position: fixed; left: 0; top: 0; right: 0; bottom: 0;
141
+ width: 100% !important; height: 100% !important;
142
+ z-index: `).concat(p,`;
143
+ }`),P.appendChild(j))):(P.classList.remove(c),j&&j.remove()),h(F)}},S=function(){var F=Ja(e);if(F){if(s){x(!0);return}if(ua.isEnabled)try{ua.request(F)}catch(P){console.error(P)}}},A=function(){var F=Ja(e);if(F){if(s){x(!1);return}ua.isEnabled&&ua.element===F&&ua.exit()}},k=function(){_?A():S()};return ae.useEffect(function(){if(!(!ua.isEnabled||s))return ua.on("change",m),function(){ua.off("change",m)}},[]),[_,{enterFullscreen:Gs(S),exitFullscreen:Gs(A),toggleFullscreen:Gs(k),isEnabled:ua.isEnabled}]};function DA(e){var t=ae.useRef(0),r=Nu(ae.useState(e),2),n=r[0],a=r[1],i=ae.useCallback(function(s){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){a(s)})},[]);return Hf(function(){cancelAnimationFrame(t.current)}),[n,i]}var bp,Ly;function RA(){if(Ly)return bp;Ly=1;function e(t,r){return function(n){return t(r(n))}}return bp=e,bp}var Sp,By;function NA(){if(By)return Sp;By=1;var e=RA(),t=e(Object.getPrototypeOf,Object);return Sp=t,Sp}var kp,jy;function MA(){if(jy)return kp;jy=1;var e=$x(),t=NA(),r=qx(),n="[object Object]",a=Function.prototype,i=Object.prototype,s=a.toString,o=i.hasOwnProperty,l=s.call(Object);function c(d){if(!r(d)||e(d)!=n)return!1;var p=t(d);if(p===null)return!0;var g=o.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&s.call(g)==l}return kp=c,kp}var IA=MA();const LA=hn(IA);var Uy=new WeakMap,Hy=new WeakMap;function zy(e,t){var r=Uy.get(e);if(r)return r;if(Hy.has(e))return e;var n=new Proxy(e,{get:function(a,i,s){var o=Reflect.get(a,i,s),l=Reflect.getOwnPropertyDescriptor(a,i);return!(l!=null&&l.configurable)&&!(l!=null&&l.writable)?o:LA(o)||Array.isArray(o)?zy(o,t):o},set:function(a,i,s){var o=Reflect.set(a,i,s);return t(),o},deleteProperty:function(a,i){var s=Reflect.deleteProperty(a,i);return t(),s}});return Uy.set(e,n),Hy.set(n,e),n}function En(e){var t=wA(),r=ae.useRef(e),n=fA(function(){return zy(r.current,function(){t()})},[]);return n}var Wy=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var s=i[a];r.call(n,s[1],s[0])}},t}()}(),Tp=typeof window<"u"&&typeof document<"u"&&window.document===document,zf=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),BA=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(zf):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),jA=2;function UA(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&o()}function s(){BA(i)}function o(){var l=Date.now();if(r){if(l-a<jA)return;n=!0}else r=!0,n=!1,setTimeout(s,t);a=l}return o}var HA=20,zA=["top","right","bottom","left","width","height","size","weight"],WA=typeof MutationObserver<"u",$A=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=UA(this.refresh.bind(this),HA)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Tp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),WA?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Tp||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=zA.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$y=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Jo=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||zf},Vy=$f(0,0,0,0);function Wf(e){return parseFloat(e)||0}function qy(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var i=e["border-"+a+"-width"];return n+Wf(i)},0)}function VA(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],s=e["padding-"+i];r[i]=Wf(s)}return r}function qA(e){var t=e.getBBox();return $f(0,0,t.width,t.height)}function YA(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Vy;var n=Jo(e).getComputedStyle(e),a=VA(n),i=a.left+a.right,s=a.top+a.bottom,o=Wf(n.width),l=Wf(n.height);if(n.boxSizing==="border-box"&&(Math.round(o+i)!==t&&(o-=qy(n,"left","right")+i),Math.round(l+s)!==r&&(l-=qy(n,"top","bottom")+s)),!KA(e)){var c=Math.round(o+i)-t,d=Math.round(l+s)-r;Math.abs(c)!==1&&(o-=c),Math.abs(d)!==1&&(l-=d)}return $f(a.left,a.top,o,l)}var GA=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Jo(e).SVGGraphicsElement}:function(e){return e instanceof Jo(e).SVGElement&&typeof e.getBBox=="function"}}();function KA(e){return e===Jo(e).document.documentElement}function XA(e){return Tp?GA(e)?qA(e):YA(e):Vy}function ZA(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return $y(s,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),s}function $f(e,t,r,n){return{x:e,y:t,width:r,height:n}}var JA=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$f(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=XA(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),QA=function(){function e(t,r){var n=ZA(r);$y(this,{target:t,contentRect:n})}return e}(),eO=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Wy,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Jo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new JA(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Jo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new QA(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Yy=typeof WeakMap<"u"?new WeakMap:new Wy,Gy=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=$A.getInstance(),n=new eO(t,r,this);Yy.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Gy.prototype[e]=function(){var t;return(t=Yy.get(this))[e].apply(t,arguments)}});var tO=function(){return typeof zf.ResizeObserver<"u"?zf.ResizeObserver:Gy}(),rO=Ry(ae.useLayoutEffect),nO=Py?rO:Ny;function aO(e){var t=Nu(DA(function(){var a=Ja(e);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),r=t[0],n=t[1];return nO(function(){var a=Ja(e);if(a){var i=new tO(function(s){s.forEach(function(o){var l=o.target,c=l.clientWidth,d=l.clientHeight;n({width:c,height:d})})});return i.observe(a),function(){i.disconnect()}}},[],e),r}var Vf={exports:{}},iO=Vf.exports,Ky;function sO(){return Ky||(Ky=1,function(e){(function(){function t(h){var m={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(h===!1)return JSON.parse(JSON.stringify(m));var x={};for(var S in m)m.hasOwnProperty(S)&&(x[S]=m[S].defaultValue);return x}function r(){var h=t(!0),m={};for(var x in h)h.hasOwnProperty(x)&&(m[x]=!0);return m}var n={},a={},i={},s=t(!0),o="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:r()};n.helper={},n.extensions={},n.setOption=function(h,m){return s[h]=m,this},n.getOption=function(h){return s[h]},n.getOptions=function(){return s},n.resetOptions=function(){s=t(!0)},n.setFlavor=function(h){if(!l.hasOwnProperty(h))throw Error(h+" flavor was not found");n.resetOptions();var m=l[h];o=h;for(var x in m)m.hasOwnProperty(x)&&(s[x]=m[x])},n.getFlavor=function(){return o},n.getFlavorOptions=function(h){if(l.hasOwnProperty(h))return l[h]},n.getDefaultOptions=function(h){return t(h)},n.subParser=function(h,m){if(n.helper.isString(h))if(typeof m<"u")a[h]=m;else{if(a.hasOwnProperty(h))return a[h];throw Error("SubParser named "+h+" not registered!")}},n.extension=function(h,m){if(!n.helper.isString(h))throw Error("Extension 'name' must be a string");if(h=n.helper.stdExtName(h),n.helper.isUndefined(m)){if(!i.hasOwnProperty(h))throw Error("Extension named "+h+" is not registered!");return i[h]}else{typeof m=="function"&&(m=m()),n.helper.isArray(m)||(m=[m]);var x=c(m,h);if(x.valid)i[h]=m;else throw Error(x.error)}},n.getAllExtensions=function(){return i},n.removeExtension=function(h){delete i[h]},n.resetExtensions=function(){i={}};function c(h,m){var x=m?"Error in "+m+" extension->":"Error in unnamed extension",S={valid:!0,error:""};n.helper.isArray(h)||(h=[h]);for(var A=0;A<h.length;++A){var k=x+" sub-extension "+A+": ",F=h[A];if(typeof F!="object")return S.valid=!1,S.error=k+"must be an object, but "+typeof F+" given",S;if(!n.helper.isString(F.type))return S.valid=!1,S.error=k+'property "type" must be a string, but '+typeof F.type+" given",S;var P=F.type=F.type.toLowerCase();if(P==="language"&&(P=F.type="lang"),P==="html"&&(P=F.type="output"),P!=="lang"&&P!=="output"&&P!=="listener")return S.valid=!1,S.error=k+"type "+P+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',S;if(P==="listener"){if(n.helper.isUndefined(F.listeners))return S.valid=!1,S.error=k+'. Extensions of type "listener" must have a property called "listeners"',S}else if(n.helper.isUndefined(F.filter)&&n.helper.isUndefined(F.regex))return S.valid=!1,S.error=k+P+' extensions must define either a "regex" property or a "filter" method',S;if(F.listeners){if(typeof F.listeners!="object")return S.valid=!1,S.error=k+'"listeners" property must be an object but '+typeof F.listeners+" given",S;for(var j in F.listeners)if(F.listeners.hasOwnProperty(j)&&typeof F.listeners[j]!="function")return S.valid=!1,S.error=k+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+j+" must be a function but "+typeof F.listeners[j]+" given",S}if(F.filter){if(typeof F.filter!="function")return S.valid=!1,S.error=k+'"filter" must be a function, but '+typeof F.filter+" given",S}else if(F.regex){if(n.helper.isString(F.regex)&&(F.regex=new RegExp(F.regex,"g")),!(F.regex instanceof RegExp))return S.valid=!1,S.error=k+'"regex" property must either be a string or a RegExp object, but '+typeof F.regex+" given",S;if(n.helper.isUndefined(F.replace))return S.valid=!1,S.error=k+'"regex" extensions must implement a replace string or function',S}}return S}n.validateExtension=function(h){var m=c(h,null);return m.valid?!0:(console.warn(m.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(h){return typeof h=="string"||h instanceof String},n.helper.isFunction=function(h){var m={};return h&&m.toString.call(h)==="[object Function]"},n.helper.isArray=function(h){return Array.isArray(h)},n.helper.isUndefined=function(h){return typeof h>"u"},n.helper.forEach=function(h,m){if(n.helper.isUndefined(h))throw new Error("obj param is required");if(n.helper.isUndefined(m))throw new Error("callback param is required");if(!n.helper.isFunction(m))throw new Error("callback param must be a function/closure");if(typeof h.forEach=="function")h.forEach(m);else if(n.helper.isArray(h))for(var x=0;x<h.length;x++)m(h[x],x,h);else if(typeof h=="object")for(var S in h)h.hasOwnProperty(S)&&m(h[S],S,h);else throw new Error("obj does not seem to be an array or an iterable object")},n.helper.stdExtName=function(h){return h.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function d(h,m){var x=m.charCodeAt(0);return"¨E"+x+"E"}n.helper.escapeCharactersCallback=d,n.helper.escapeCharacters=function(h,m,x){var S="(["+m.replace(/([\[\]\\])/g,"\\$1")+"])";x&&(S="\\\\"+S);var A=new RegExp(S,"g");return h=h.replace(A,d),h},n.helper.unescapeHTMLEntities=function(h){return h.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var p=function(h,m,x,S){var A=S||"",k=A.indexOf("g")>-1,F=new RegExp(m+"|"+x,"g"+A.replace(/g/g,"")),P=new RegExp(m,A.replace(/g/g,"")),j=[],L,B,U,O,N;do for(L=0;U=F.exec(h);)if(P.test(U[0]))L++||(B=F.lastIndex,O=B-U[0].length);else if(L&&!--L){N=U.index+U[0].length;var V={left:{start:O,end:B},match:{start:B,end:U.index},right:{start:U.index,end:N},wholeMatch:{start:O,end:N}};if(j.push(V),!k)return j}while(L&&(F.lastIndex=B));return j};n.helper.matchRecursiveRegExp=function(h,m,x,S){for(var A=p(h,m,x,S),k=[],F=0;F<A.length;++F)k.push([h.slice(A[F].wholeMatch.start,A[F].wholeMatch.end),h.slice(A[F].match.start,A[F].match.end),h.slice(A[F].left.start,A[F].left.end),h.slice(A[F].right.start,A[F].right.end)]);return k},n.helper.replaceRecursiveRegExp=function(h,m,x,S,A){if(!n.helper.isFunction(m)){var k=m;m=function(){return k}}var F=p(h,x,S,A),P=h,j=F.length;if(j>0){var L=[];F[0].wholeMatch.start!==0&&L.push(h.slice(0,F[0].wholeMatch.start));for(var B=0;B<j;++B)L.push(m(h.slice(F[B].wholeMatch.start,F[B].wholeMatch.end),h.slice(F[B].match.start,F[B].match.end),h.slice(F[B].left.start,F[B].left.end),h.slice(F[B].right.start,F[B].right.end))),B<j-1&&L.push(h.slice(F[B].wholeMatch.end,F[B+1].wholeMatch.start));F[j-1].wholeMatch.end<h.length&&L.push(h.slice(F[j-1].wholeMatch.end)),P=L.join("")}return P},n.helper.regexIndexOf=function(h,m,x){if(!n.helper.isString(h))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(m instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var S=h.substring(x||0).search(m);return S>=0?S+(x||0):S},n.helper.splitAtIndex=function(h,m){if(!n.helper.isString(h))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[h.substring(0,m),h.substring(m)]},n.helper.encodeEmailAddress=function(h){var m=[function(x){return"&#"+x.charCodeAt(0)+";"},function(x){return"&#x"+x.charCodeAt(0).toString(16)+";"},function(x){return x}];return h=h.replace(/./g,function(x){if(x==="@")x=m[Math.floor(Math.random()*2)](x);else{var S=Math.random();x=S>.9?m[2](x):S>.45?m[1](x):m[0](x)}return x}),h},n.helper.padEnd=function(m,x,S){return x=x>>0,S=String(S||" "),m.length>x?String(m):(x=x-m.length,x>S.length&&(S+=S.repeat(x/S.length)),String(m)+S.slice(0,x))},typeof console>"u"&&(console={warn:function(h){alert(h)},log:function(h){alert(h)},error:function(h){throw h}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:`<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`},n.Converter=function(h){var m={},x=[],S=[],A={},k=o,F={parsed:{},raw:"",format:""};P();function P(){h=h||{};for(var O in s)s.hasOwnProperty(O)&&(m[O]=s[O]);if(typeof h=="object")for(var N in h)h.hasOwnProperty(N)&&(m[N]=h[N]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof h+" was passed instead.");m.extensions&&n.helper.forEach(m.extensions,j)}function j(O,N){if(N=N||null,n.helper.isString(O))if(O=n.helper.stdExtName(O),N=O,n.extensions[O]){console.warn("DEPRECATION WARNING: "+O+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),L(n.extensions[O],O);return}else if(!n.helper.isUndefined(i[O]))O=i[O];else throw Error('Extension "'+O+'" could not be loaded. It was either not found or is not a valid extension.');typeof O=="function"&&(O=O()),n.helper.isArray(O)||(O=[O]);var V=c(O,N);if(!V.valid)throw Error(V.error);for(var M=0;M<O.length;++M){switch(O[M].type){case"lang":x.push(O[M]);break;case"output":S.push(O[M]);break}if(O[M].hasOwnProperty("listeners"))for(var q in O[M].listeners)O[M].listeners.hasOwnProperty(q)&&B(q,O[M].listeners[q])}}function L(O,N){typeof O=="function"&&(O=O(new n.Converter)),n.helper.isArray(O)||(O=[O]);var V=c(O,N);if(!V.valid)throw Error(V.error);for(var M=0;M<O.length;++M)switch(O[M].type){case"lang":x.push(O[M]);break;case"output":S.push(O[M]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function B(O,N){if(!n.helper.isString(O))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof O+" given");if(typeof N!="function")throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof N+" given");A.hasOwnProperty(O)||(A[O]=[]),A[O].push(N)}function U(O){var N=O.match(/^\s*/)[0].length,V=new RegExp("^\\s{0,"+N+"}","gm");return O.replace(V,"")}this._dispatch=function(N,V,M,q){if(A.hasOwnProperty(N))for(var Y=0;Y<A[N].length;++Y){var z=A[N][Y](N,V,this,M,q);z&&typeof z<"u"&&(V=z)}return V},this.listen=function(O,N){return B(O,N),this},this.makeHtml=function(O){if(!O)return O;var N={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:x,outputModifiers:S,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return O=O.replace(/¨/g,"¨T"),O=O.replace(/\$/g,"¨D"),O=O.replace(/\r\n/g,`
144
+ `),O=O.replace(/\r/g,`
145
+ `),O=O.replace(/\u00A0/g,"&nbsp;"),m.smartIndentationFix&&(O=U(O)),O=`
146
+
147
+ `+O+`
148
+
149
+ `,O=n.subParser("detab")(O,m,N),O=O.replace(/^[ \t]+$/mg,""),n.helper.forEach(x,function(V){O=n.subParser("runExtension")(V,O,m,N)}),O=n.subParser("metadata")(O,m,N),O=n.subParser("hashPreCodeTags")(O,m,N),O=n.subParser("githubCodeBlocks")(O,m,N),O=n.subParser("hashHTMLBlocks")(O,m,N),O=n.subParser("hashCodeTags")(O,m,N),O=n.subParser("stripLinkDefinitions")(O,m,N),O=n.subParser("blockGamut")(O,m,N),O=n.subParser("unhashHTMLSpans")(O,m,N),O=n.subParser("unescapeSpecialChars")(O,m,N),O=O.replace(/¨D/g,"$$"),O=O.replace(/¨T/g,"¨"),O=n.subParser("completeHTMLDocument")(O,m,N),n.helper.forEach(S,function(V){O=n.subParser("runExtension")(V,O,m,N)}),F=N.metadata,O},this.makeMarkdown=this.makeMd=function(O,N){if(O=O.replace(/\r\n/g,`
150
+ `),O=O.replace(/\r/g,`
151
+ `),O=O.replace(/>[ \t]+</,">¨NBSP;<"),!N)if(window&&window.document)N=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var V=N.createElement("div");V.innerHTML=O;var M={preList:J(V)};re(V);for(var q=V.childNodes,Y="",z=0;z<q.length;z++)Y+=n.subParser("makeMarkdown.node")(q[z],M);function re(te){for(var oe=0;oe<te.childNodes.length;++oe){var ue=te.childNodes[oe];ue.nodeType===3?!/\S/.test(ue.nodeValue)&&!/^[ ]+$/.test(ue.nodeValue)?(te.removeChild(ue),--oe):(ue.nodeValue=ue.nodeValue.split(`
152
+ `).join(" "),ue.nodeValue=ue.nodeValue.replace(/(\s)+/g,"$1")):ue.nodeType===1&&re(ue)}}function J(te){for(var oe=te.querySelectorAll("pre"),ue=[],ve=0;ve<oe.length;++ve)if(oe[ve].childElementCount===1&&oe[ve].firstChild.tagName.toLowerCase()==="code"){var _e=oe[ve].firstChild.innerHTML.trim(),ye=oe[ve].firstChild.getAttribute("data-language")||"";if(ye==="")for(var je=oe[ve].firstChild.className.split(" "),Z=0;Z<je.length;++Z){var Ge=je[Z].match(/^language-(.+)$/);if(Ge!==null){ye=Ge[1];break}}_e=n.helper.unescapeHTMLEntities(_e),ue.push(_e),oe[ve].outerHTML='<precode language="'+ye+'" precodenum="'+ve.toString()+'"></precode>'}else ue.push(oe[ve].innerHTML),oe[ve].innerHTML="",oe[ve].setAttribute("prenum",ve.toString());return ue}return Y},this.setOption=function(O,N){m[O]=N},this.getOption=function(O){return m[O]},this.getOptions=function(){return m},this.addExtension=function(O,N){N=N||null,j(O,N)},this.useExtension=function(O){j(O)},this.setFlavor=function(O){if(!l.hasOwnProperty(O))throw Error(O+" flavor was not found");var N=l[O];k=O;for(var V in N)N.hasOwnProperty(V)&&(m[V]=N[V])},this.getFlavor=function(){return k},this.removeExtension=function(O){n.helper.isArray(O)||(O=[O]);for(var N=0;N<O.length;++N){for(var V=O[N],M=0;M<x.length;++M)x[M]===V&&x.splice(M,1);for(var q=0;q<S.length;++q)S[q]===V&&S.splice(q,1)}},this.getAllExtensions=function(){return{language:x,output:S}},this.getMetadata=function(O){return O?F.raw:F.parsed},this.getMetadataFormat=function(){return F.format},this._setMetadataPair=function(O,N){F.parsed[O]=N},this._setMetadataFormat=function(O){F.format=O},this._setMetadataRaw=function(O){F.raw=O}},n.subParser("anchors",function(h,m,x){h=x.converter._dispatch("anchors.before",h,m,x);var S=function(A,k,F,P,j,L,B){if(n.helper.isUndefined(B)&&(B=""),F=F.toLowerCase(),A.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)P="";else if(!P)if(F||(F=k.toLowerCase().replace(/ ?\n/g," ")),P="#"+F,!n.helper.isUndefined(x.gUrls[F]))P=x.gUrls[F],n.helper.isUndefined(x.gTitles[F])||(B=x.gTitles[F]);else return A;P=P.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var U='<a href="'+P+'"';return B!==""&&B!==null&&(B=B.replace(/"/g,"&quot;"),B=B.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),U+=' title="'+B+'"'),m.openLinksInNewWindow&&!/^#/.test(P)&&(U+=' rel="noopener noreferrer" target="¨E95Eblank"'),U+=">"+k+"</a>",U};return h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,S),h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,S),h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,S),h=h.replace(/\[([^\[\]]+)]()()()()()/g,S),m.ghMentions&&(h=h.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(A,k,F,P,j){if(F==="\\")return k+P;if(!n.helper.isString(m.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var L=m.ghMentionsLink.replace(/\{u}/g,j),B="";return m.openLinksInNewWindow&&(B=' rel="noopener noreferrer" target="¨E95Eblank"'),k+'<a href="'+L+'"'+B+">"+P+"</a>"})),h=x.converter._dispatch("anchors.after",h,m,x),h});var g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,v=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,y=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,_=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,C=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,E=function(h){return function(m,x,S,A,k,F,P){S=S.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var j=S,L="",B="",U=x||"",O=P||"";return/^www\./i.test(S)&&(S=S.replace(/^www\./i,"http://www.")),h.excludeTrailingPunctuationFromURLs&&F&&(L=F),h.openLinksInNewWindow&&(B=' rel="noopener noreferrer" target="¨E95Eblank"'),U+'<a href="'+S+'"'+B+">"+j+"</a>"+L+O}},T=function(h,m){return function(x,S,A){var k="mailto:";return S=S||"",A=n.subParser("unescapeSpecialChars")(A,h,m),h.encodeEmails?(k=n.helper.encodeEmailAddress(k+A),A=n.helper.encodeEmailAddress(A)):k=k+A,S+'<a href="'+k+'">'+A+"</a>"}};n.subParser("autoLinks",function(h,m,x){return h=x.converter._dispatch("autoLinks.before",h,m,x),h=h.replace(y,E(m)),h=h.replace(C,T(m,x)),h=x.converter._dispatch("autoLinks.after",h,m,x),h}),n.subParser("simplifiedAutoLinks",function(h,m,x){return m.simplifiedAutoLink&&(h=x.converter._dispatch("simplifiedAutoLinks.before",h,m,x),m.excludeTrailingPunctuationFromURLs?h=h.replace(v,E(m)):h=h.replace(g,E(m)),h=h.replace(_,T(m,x)),h=x.converter._dispatch("simplifiedAutoLinks.after",h,m,x)),h}),n.subParser("blockGamut",function(h,m,x){return h=x.converter._dispatch("blockGamut.before",h,m,x),h=n.subParser("blockQuotes")(h,m,x),h=n.subParser("headers")(h,m,x),h=n.subParser("horizontalRule")(h,m,x),h=n.subParser("lists")(h,m,x),h=n.subParser("codeBlocks")(h,m,x),h=n.subParser("tables")(h,m,x),h=n.subParser("hashHTMLBlocks")(h,m,x),h=n.subParser("paragraphs")(h,m,x),h=x.converter._dispatch("blockGamut.after",h,m,x),h}),n.subParser("blockQuotes",function(h,m,x){h=x.converter._dispatch("blockQuotes.before",h,m,x),h=h+`
153
+
154
+ `;var S=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return m.splitAdjacentBlockquotes&&(S=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),h=h.replace(S,function(A){return A=A.replace(/^[ \t]*>[ \t]?/gm,""),A=A.replace(/¨0/g,""),A=A.replace(/^[ \t]+$/gm,""),A=n.subParser("githubCodeBlocks")(A,m,x),A=n.subParser("blockGamut")(A,m,x),A=A.replace(/(^|\n)/g,"$1 "),A=A.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(k,F){var P=F;return P=P.replace(/^ /mg,"¨0"),P=P.replace(/¨0/g,""),P}),n.subParser("hashBlock")(`<blockquote>
155
+ `+A+`
156
+ </blockquote>`,m,x)}),h=x.converter._dispatch("blockQuotes.after",h,m,x),h}),n.subParser("codeBlocks",function(h,m,x){h=x.converter._dispatch("codeBlocks.before",h,m,x),h+="¨0";var S=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return h=h.replace(S,function(A,k,F){var P=k,j=F,L=`
157
+ `;return P=n.subParser("outdent")(P,m,x),P=n.subParser("encodeCode")(P,m,x),P=n.subParser("detab")(P,m,x),P=P.replace(/^\n+/g,""),P=P.replace(/\n+$/g,""),m.omitExtraWLInCodeBlocks&&(L=""),P="<pre><code>"+P+L+"</code></pre>",n.subParser("hashBlock")(P,m,x)+j}),h=h.replace(/¨0/,""),h=x.converter._dispatch("codeBlocks.after",h,m,x),h}),n.subParser("codeSpans",function(h,m,x){return h=x.converter._dispatch("codeSpans.before",h,m,x),typeof h>"u"&&(h=""),h=h.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(S,A,k,F){var P=F;return P=P.replace(/^([ \t]*)/g,""),P=P.replace(/[ \t]*$/g,""),P=n.subParser("encodeCode")(P,m,x),P=A+"<code>"+P+"</code>",P=n.subParser("hashHTMLSpans")(P,m,x),P}),h=x.converter._dispatch("codeSpans.after",h,m,x),h}),n.subParser("completeHTMLDocument",function(h,m,x){if(!m.completeHTMLDocument)return h;h=x.converter._dispatch("completeHTMLDocument.before",h,m,x);var S="html",A=`<!DOCTYPE HTML>
158
+ `,k="",F=`<meta charset="utf-8">
159
+ `,P="",j="";typeof x.metadata.parsed.doctype<"u"&&(A="<!DOCTYPE "+x.metadata.parsed.doctype+`>
160
+ `,S=x.metadata.parsed.doctype.toString().toLowerCase(),(S==="html"||S==="html5")&&(F='<meta charset="utf-8">'));for(var L in x.metadata.parsed)if(x.metadata.parsed.hasOwnProperty(L))switch(L.toLowerCase()){case"doctype":break;case"title":k="<title>"+x.metadata.parsed.title+`</title>
161
+ `;break;case"charset":S==="html"||S==="html5"?F='<meta charset="'+x.metadata.parsed.charset+`">
162
+ `:F='<meta name="charset" content="'+x.metadata.parsed.charset+`">
163
+ `;break;case"language":case"lang":P=' lang="'+x.metadata.parsed[L]+'"',j+='<meta name="'+L+'" content="'+x.metadata.parsed[L]+`">
164
+ `;break;default:j+='<meta name="'+L+'" content="'+x.metadata.parsed[L]+`">
165
+ `}return h=A+"<html"+P+`>
166
+ <head>
167
+ `+k+F+j+`</head>
168
+ <body>
169
+ `+h.trim()+`
170
+ </body>
171
+ </html>`,h=x.converter._dispatch("completeHTMLDocument.after",h,m,x),h}),n.subParser("detab",function(h,m,x){return h=x.converter._dispatch("detab.before",h,m,x),h=h.replace(/\t(?=\t)/g," "),h=h.replace(/\t/g,"¨A¨B"),h=h.replace(/¨B(.+?)¨A/g,function(S,A){for(var k=A,F=4-k.length%4,P=0;P<F;P++)k+=" ";return k}),h=h.replace(/¨A/g," "),h=h.replace(/¨B/g,""),h=x.converter._dispatch("detab.after",h,m,x),h}),n.subParser("ellipsis",function(h,m,x){return m.ellipsis&&(h=x.converter._dispatch("ellipsis.before",h,m,x),h=h.replace(/\.\.\./g,"…"),h=x.converter._dispatch("ellipsis.after",h,m,x)),h}),n.subParser("emoji",function(h,m,x){if(!m.emoji)return h;h=x.converter._dispatch("emoji.before",h,m,x);var S=/:([\S]+?):/g;return h=h.replace(S,function(A,k){return n.helper.emojis.hasOwnProperty(k)?n.helper.emojis[k]:A}),h=x.converter._dispatch("emoji.after",h,m,x),h}),n.subParser("encodeAmpsAndAngles",function(h,m,x){return h=x.converter._dispatch("encodeAmpsAndAngles.before",h,m,x),h=h.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),h=h.replace(/<(?![a-z\/?$!])/gi,"&lt;"),h=h.replace(/</g,"&lt;"),h=h.replace(/>/g,"&gt;"),h=x.converter._dispatch("encodeAmpsAndAngles.after",h,m,x),h}),n.subParser("encodeBackslashEscapes",function(h,m,x){return h=x.converter._dispatch("encodeBackslashEscapes.before",h,m,x),h=h.replace(/\\(\\)/g,n.helper.escapeCharactersCallback),h=h.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,n.helper.escapeCharactersCallback),h=x.converter._dispatch("encodeBackslashEscapes.after",h,m,x),h}),n.subParser("encodeCode",function(h,m,x){return h=x.converter._dispatch("encodeCode.before",h,m,x),h=h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),h=x.converter._dispatch("encodeCode.after",h,m,x),h}),n.subParser("escapeSpecialCharsWithinTagAttributes",function(h,m,x){h=x.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",h,m,x);var S=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,A=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return h=h.replace(S,function(k){return k.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),h=h.replace(A,function(k){return k.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),h=x.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",h,m,x),h}),n.subParser("githubCodeBlocks",function(h,m,x){return m.ghCodeBlocks?(h=x.converter._dispatch("githubCodeBlocks.before",h,m,x),h+="¨0",h=h.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(S,A,k,F){var P=m.omitExtraWLInCodeBlocks?"":`
172
+ `;return F=n.subParser("encodeCode")(F,m,x),F=n.subParser("detab")(F,m,x),F=F.replace(/^\n+/g,""),F=F.replace(/\n+$/g,""),F="<pre><code"+(k?' class="'+k+" language-"+k+'"':"")+">"+F+P+"</code></pre>",F=n.subParser("hashBlock")(F,m,x),`
173
+
174
+ ¨G`+(x.ghCodeBlocks.push({text:S,codeblock:F})-1)+`G
175
+
176
+ `}),h=h.replace(/¨0/,""),x.converter._dispatch("githubCodeBlocks.after",h,m,x)):h}),n.subParser("hashBlock",function(h,m,x){return h=x.converter._dispatch("hashBlock.before",h,m,x),h=h.replace(/(^\n+|\n+$)/g,""),h=`
177
+
178
+ ¨K`+(x.gHtmlBlocks.push(h)-1)+`K
179
+
180
+ `,h=x.converter._dispatch("hashBlock.after",h,m,x),h}),n.subParser("hashCodeTags",function(h,m,x){h=x.converter._dispatch("hashCodeTags.before",h,m,x);var S=function(A,k,F,P){var j=F+n.subParser("encodeCode")(k,m,x)+P;return"¨C"+(x.gHtmlSpans.push(j)-1)+"C"};return h=n.helper.replaceRecursiveRegExp(h,S,"<code\\b[^>]*>","</code>","gim"),h=x.converter._dispatch("hashCodeTags.after",h,m,x),h}),n.subParser("hashElement",function(h,m,x){return function(S,A){var k=A;return k=k.replace(/\n\n/g,`
181
+ `),k=k.replace(/^\n/,""),k=k.replace(/\n+$/g,""),k=`
182
+
183
+ ¨K`+(x.gHtmlBlocks.push(k)-1)+`K
184
+
185
+ `,k}}),n.subParser("hashHTMLBlocks",function(h,m,x){h=x.converter._dispatch("hashHTMLBlocks.before",h,m,x);var S=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],A=function(O,N,V,M){var q=O;return V.search(/\bmarkdown\b/)!==-1&&(q=V+x.converter.makeHtml(N)+M),`
186
+
187
+ ¨K`+(x.gHtmlBlocks.push(q)-1)+`K
188
+
189
+ `};m.backslashEscapesHTMLTags&&(h=h.replace(/\\<(\/?[^>]+?)>/g,function(O,N){return"&lt;"+N+"&gt;"}));for(var k=0;k<S.length;++k)for(var F,P=new RegExp("^ {0,3}(<"+S[k]+"\\b[^>]*>)","im"),j="<"+S[k]+"\\b[^>]*>",L="</"+S[k]+">";(F=n.helper.regexIndexOf(h,P))!==-1;){var B=n.helper.splitAtIndex(h,F),U=n.helper.replaceRecursiveRegExp(B[1],A,j,L,"im");if(U===B[1])break;h=B[0].concat(U)}return h=h.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(h,m,x)),h=n.helper.replaceRecursiveRegExp(h,function(O){return`
190
+
191
+ ¨K`+(x.gHtmlBlocks.push(O)-1)+`K
192
+
193
+ `},"^ {0,3}<!--","-->","gm"),h=h.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(h,m,x)),h=x.converter._dispatch("hashHTMLBlocks.after",h,m,x),h}),n.subParser("hashHTMLSpans",function(h,m,x){h=x.converter._dispatch("hashHTMLSpans.before",h,m,x);function S(A){return"¨C"+(x.gHtmlSpans.push(A)-1)+"C"}return h=h.replace(/<[^>]+?\/>/gi,function(A){return S(A)}),h=h.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(A){return S(A)}),h=h.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(A){return S(A)}),h=h.replace(/<[^>]+?>/gi,function(A){return S(A)}),h=x.converter._dispatch("hashHTMLSpans.after",h,m,x),h}),n.subParser("unhashHTMLSpans",function(h,m,x){h=x.converter._dispatch("unhashHTMLSpans.before",h,m,x);for(var S=0;S<x.gHtmlSpans.length;++S){for(var A=x.gHtmlSpans[S],k=0;/¨C(\d+)C/.test(A);){var F=RegExp.$1;if(A=A.replace("¨C"+F+"C",x.gHtmlSpans[F]),k===10){console.error("maximum nesting of 10 spans reached!!!");break}++k}h=h.replace("¨C"+S+"C",A)}return h=x.converter._dispatch("unhashHTMLSpans.after",h,m,x),h}),n.subParser("hashPreCodeTags",function(h,m,x){h=x.converter._dispatch("hashPreCodeTags.before",h,m,x);var S=function(A,k,F,P){var j=F+n.subParser("encodeCode")(k,m,x)+P;return`
194
+
195
+ ¨G`+(x.ghCodeBlocks.push({text:A,codeblock:j})-1)+`G
196
+
197
+ `};return h=n.helper.replaceRecursiveRegExp(h,S,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),h=x.converter._dispatch("hashPreCodeTags.after",h,m,x),h}),n.subParser("headers",function(h,m,x){h=x.converter._dispatch("headers.before",h,m,x);var S=isNaN(parseInt(m.headerLevelStart))?1:parseInt(m.headerLevelStart),A=m.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,k=m.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;h=h.replace(A,function(j,L){var B=n.subParser("spanGamut")(L,m,x),U=m.noHeaderId?"":' id="'+P(L)+'"',O=S,N="<h"+O+U+">"+B+"</h"+O+">";return n.subParser("hashBlock")(N,m,x)}),h=h.replace(k,function(j,L){var B=n.subParser("spanGamut")(L,m,x),U=m.noHeaderId?"":' id="'+P(L)+'"',O=S+1,N="<h"+O+U+">"+B+"</h"+O+">";return n.subParser("hashBlock")(N,m,x)});var F=m.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;h=h.replace(F,function(j,L,B){var U=B;m.customizedHeaderId&&(U=B.replace(/\s?\{([^{]+?)}\s*$/,""));var O=n.subParser("spanGamut")(U,m,x),N=m.noHeaderId?"":' id="'+P(B)+'"',V=S-1+L.length,M="<h"+V+N+">"+O+"</h"+V+">";return n.subParser("hashBlock")(M,m,x)});function P(j){var L,B;if(m.customizedHeaderId){var U=j.match(/\{([^{]+?)}\s*$/);U&&U[1]&&(j=U[1])}return L=j,n.helper.isString(m.prefixHeaderId)?B=m.prefixHeaderId:m.prefixHeaderId===!0?B="section-":B="",m.rawPrefixHeaderId||(L=B+L),m.ghCompatibleHeaderId?L=L.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():m.rawHeaderId?L=L.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():L=L.replace(/[^\w]/g,"").toLowerCase(),m.rawPrefixHeaderId&&(L=B+L),x.hashLinkCounts[L]?L=L+"-"+x.hashLinkCounts[L]++:x.hashLinkCounts[L]=1,L}return h=x.converter._dispatch("headers.after",h,m,x),h}),n.subParser("horizontalRule",function(h,m,x){h=x.converter._dispatch("horizontalRule.before",h,m,x);var S=n.subParser("hashBlock")("<hr />",m,x);return h=h.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,S),h=h.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,S),h=h.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,S),h=x.converter._dispatch("horizontalRule.after",h,m,x),h}),n.subParser("images",function(h,m,x){h=x.converter._dispatch("images.before",h,m,x);var S=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,A=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,k=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,F=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,P=/!\[([^\[\]]+)]()()()()()/g;function j(B,U,O,N,V,M,q,Y){return N=N.replace(/\s/g,""),L(B,U,O,N,V,M,q,Y)}function L(B,U,O,N,V,M,q,Y){var z=x.gUrls,re=x.gTitles,J=x.gDimensions;if(O=O.toLowerCase(),Y||(Y=""),B.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)N="";else if(N===""||N===null)if((O===""||O===null)&&(O=U.toLowerCase().replace(/ ?\n/g," ")),N="#"+O,!n.helper.isUndefined(z[O]))N=z[O],n.helper.isUndefined(re[O])||(Y=re[O]),n.helper.isUndefined(J[O])||(V=J[O].width,M=J[O].height);else return B;U=U.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),N=N.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var te='<img src="'+N+'" alt="'+U+'"';return Y&&n.helper.isString(Y)&&(Y=Y.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),te+=' title="'+Y+'"'),V&&M&&(V=V==="*"?"auto":V,M=M==="*"?"auto":M,te+=' width="'+V+'"',te+=' height="'+M+'"'),te+=" />",te}return h=h.replace(F,L),h=h.replace(k,j),h=h.replace(A,L),h=h.replace(S,L),h=h.replace(P,L),h=x.converter._dispatch("images.after",h,m,x),h}),n.subParser("italicsAndBold",function(h,m,x){h=x.converter._dispatch("italicsAndBold.before",h,m,x);function S(A,k,F){return k+A+F}return m.literalMidWordUnderscores?(h=h.replace(/\b___(\S[\s\S]*?)___\b/g,function(A,k){return S(k,"<strong><em>","</em></strong>")}),h=h.replace(/\b__(\S[\s\S]*?)__\b/g,function(A,k){return S(k,"<strong>","</strong>")}),h=h.replace(/\b_(\S[\s\S]*?)_\b/g,function(A,k){return S(k,"<em>","</em>")})):(h=h.replace(/___(\S[\s\S]*?)___/g,function(A,k){return/\S$/.test(k)?S(k,"<strong><em>","</em></strong>"):A}),h=h.replace(/__(\S[\s\S]*?)__/g,function(A,k){return/\S$/.test(k)?S(k,"<strong>","</strong>"):A}),h=h.replace(/_([^\s_][\s\S]*?)_/g,function(A,k){return/\S$/.test(k)?S(k,"<em>","</em>"):A})),m.literalMidWordAsterisks?(h=h.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(A,k,F){return S(F,k+"<strong><em>","</em></strong>")}),h=h.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(A,k,F){return S(F,k+"<strong>","</strong>")}),h=h.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(A,k,F){return S(F,k+"<em>","</em>")})):(h=h.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(A,k){return/\S$/.test(k)?S(k,"<strong><em>","</em></strong>"):A}),h=h.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(A,k){return/\S$/.test(k)?S(k,"<strong>","</strong>"):A}),h=h.replace(/\*([^\s*][\s\S]*?)\*/g,function(A,k){return/\S$/.test(k)?S(k,"<em>","</em>"):A})),h=x.converter._dispatch("italicsAndBold.after",h,m,x),h}),n.subParser("lists",function(h,m,x){function S(F,P){x.gListLevel++,F=F.replace(/\n{2,}$/,`
198
+ `),F+="¨0";var j=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,L=/\n[ \t]*\n(?!¨0)/.test(F);return m.disableForced4SpacesIndentedSublists&&(j=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),F=F.replace(j,function(B,U,O,N,V,M,q){q=q&&q.trim()!=="";var Y=n.subParser("outdent")(V,m,x),z="";return M&&m.tasklists&&(z=' class="task-list-item" style="list-style-type: none;"',Y=Y.replace(/^[ \t]*\[(x|X| )?]/m,function(){var re='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return q&&(re+=" checked"),re+=">",re})),Y=Y.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(re){return"¨A"+re}),U||Y.search(/\n{2,}/)>-1?(Y=n.subParser("githubCodeBlocks")(Y,m,x),Y=n.subParser("blockGamut")(Y,m,x)):(Y=n.subParser("lists")(Y,m,x),Y=Y.replace(/\n$/,""),Y=n.subParser("hashHTMLBlocks")(Y,m,x),Y=Y.replace(/\n\n+/g,`
199
+
200
+ `),L?Y=n.subParser("paragraphs")(Y,m,x):Y=n.subParser("spanGamut")(Y,m,x)),Y=Y.replace("¨A",""),Y="<li"+z+">"+Y+`</li>
201
+ `,Y}),F=F.replace(/¨0/g,""),x.gListLevel--,P&&(F=F.replace(/\s+$/,"")),F}function A(F,P){if(P==="ol"){var j=F.match(/^ *(\d+)\./);if(j&&j[1]!=="1")return' start="'+j[1]+'"'}return""}function k(F,P,j){var L=m.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,B=m.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,U=P==="ul"?L:B,O="";if(F.search(U)!==-1)(function V(M){var q=M.search(U),Y=A(F,P);q!==-1?(O+=`
202
+
203
+ <`+P+Y+`>
204
+ `+S(M.slice(0,q),!!j)+"</"+P+`>
205
+ `,P=P==="ul"?"ol":"ul",U=P==="ul"?L:B,V(M.slice(q))):O+=`
206
+
207
+ <`+P+Y+`>
208
+ `+S(M,!!j)+"</"+P+`>
209
+ `})(F);else{var N=A(F,P);O=`
210
+
211
+ <`+P+N+`>
212
+ `+S(F,!!j)+"</"+P+`>
213
+ `}return O}return h=x.converter._dispatch("lists.before",h,m,x),h+="¨0",x.gListLevel?h=h.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(F,P,j){var L=j.search(/[*+-]/g)>-1?"ul":"ol";return k(P,L,!0)}):h=h.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(F,P,j,L){var B=L.search(/[*+-]/g)>-1?"ul":"ol";return k(j,B,!1)}),h=h.replace(/¨0/,""),h=x.converter._dispatch("lists.after",h,m,x),h}),n.subParser("metadata",function(h,m,x){if(!m.metadata)return h;h=x.converter._dispatch("metadata.before",h,m,x);function S(A){x.metadata.raw=A,A=A.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),A=A.replace(/\n {4}/g," "),A.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(k,F,P){return x.metadata.parsed[F]=P,""})}return h=h.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(A,k,F){return S(F),"¨M"}),h=h.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(A,k,F){return k&&(x.metadata.format=k),S(F),"¨M"}),h=h.replace(/¨M/g,""),h=x.converter._dispatch("metadata.after",h,m,x),h}),n.subParser("outdent",function(h,m,x){return h=x.converter._dispatch("outdent.before",h,m,x),h=h.replace(/^(\t|[ ]{1,4})/gm,"¨0"),h=h.replace(/¨0/g,""),h=x.converter._dispatch("outdent.after",h,m,x),h}),n.subParser("paragraphs",function(h,m,x){h=x.converter._dispatch("paragraphs.before",h,m,x),h=h.replace(/^\n+/g,""),h=h.replace(/\n+$/g,"");for(var S=h.split(/\n{2,}/g),A=[],k=S.length,F=0;F<k;F++){var P=S[F];P.search(/¨(K|G)(\d+)\1/g)>=0?A.push(P):P.search(/\S/)>=0&&(P=n.subParser("spanGamut")(P,m,x),P=P.replace(/^([ \t]*)/g,"<p>"),P+="</p>",A.push(P))}for(k=A.length,F=0;F<k;F++){for(var j="",L=A[F],B=!1;/¨(K|G)(\d+)\1/.test(L);){var U=RegExp.$1,O=RegExp.$2;U==="K"?j=x.gHtmlBlocks[O]:B?j=n.subParser("encodeCode")(x.ghCodeBlocks[O].text,m,x):j=x.ghCodeBlocks[O].codeblock,j=j.replace(/\$/g,"$$$$"),L=L.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,j),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(L)&&(B=!0)}A[F]=L}return h=A.join(`
214
+ `),h=h.replace(/^\n+/g,""),h=h.replace(/\n+$/g,""),x.converter._dispatch("paragraphs.after",h,m,x)}),n.subParser("runExtension",function(h,m,x,S){if(h.filter)m=h.filter(m,S.converter,x);else if(h.regex){var A=h.regex;A instanceof RegExp||(A=new RegExp(A,"g")),m=m.replace(A,h.replace)}return m}),n.subParser("spanGamut",function(h,m,x){return h=x.converter._dispatch("spanGamut.before",h,m,x),h=n.subParser("codeSpans")(h,m,x),h=n.subParser("escapeSpecialCharsWithinTagAttributes")(h,m,x),h=n.subParser("encodeBackslashEscapes")(h,m,x),h=n.subParser("images")(h,m,x),h=n.subParser("anchors")(h,m,x),h=n.subParser("autoLinks")(h,m,x),h=n.subParser("simplifiedAutoLinks")(h,m,x),h=n.subParser("emoji")(h,m,x),h=n.subParser("underline")(h,m,x),h=n.subParser("italicsAndBold")(h,m,x),h=n.subParser("strikethrough")(h,m,x),h=n.subParser("ellipsis")(h,m,x),h=n.subParser("hashHTMLSpans")(h,m,x),h=n.subParser("encodeAmpsAndAngles")(h,m,x),m.simpleLineBreaks?/\n\n¨K/.test(h)||(h=h.replace(/\n+/g,`<br />
215
+ `)):h=h.replace(/ +\n/g,`<br />
216
+ `),h=x.converter._dispatch("spanGamut.after",h,m,x),h}),n.subParser("strikethrough",function(h,m,x){function S(A){return m.simplifiedAutoLink&&(A=n.subParser("simplifiedAutoLinks")(A,m,x)),"<del>"+A+"</del>"}return m.strikethrough&&(h=x.converter._dispatch("strikethrough.before",h,m,x),h=h.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(A,k){return S(k)}),h=x.converter._dispatch("strikethrough.after",h,m,x)),h}),n.subParser("stripLinkDefinitions",function(h,m,x){var S=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,A=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;h+="¨0";var k=function(F,P,j,L,B,U,O){return P=P.toLowerCase(),h.toLowerCase().split(P).length-1<2?F:(j.match(/^data:.+?\/.+?;base64,/)?x.gUrls[P]=j.replace(/\s/g,""):x.gUrls[P]=n.subParser("encodeAmpsAndAngles")(j,m,x),U?U+O:(O&&(x.gTitles[P]=O.replace(/"|'/g,"&quot;")),m.parseImgDimensions&&L&&B&&(x.gDimensions[P]={width:L,height:B}),""))};return h=h.replace(A,k),h=h.replace(S,k),h=h.replace(/¨0/,""),h}),n.subParser("tables",function(h,m,x){if(!m.tables)return h;var S=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,A=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function k(B){return/^:[ \t]*--*$/.test(B)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(B)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(B)?' style="text-align:center;"':""}function F(B,U){var O="";return B=B.trim(),(m.tablesHeaderId||m.tableHeaderId)&&(O=' id="'+B.replace(/ /g,"_").toLowerCase()+'"'),B=n.subParser("spanGamut")(B,m,x),"<th"+O+U+">"+B+`</th>
217
+ `}function P(B,U){var O=n.subParser("spanGamut")(B,m,x);return"<td"+U+">"+O+`</td>
218
+ `}function j(B,U){for(var O=`<table>
219
+ <thead>
220
+ <tr>
221
+ `,N=B.length,V=0;V<N;++V)O+=B[V];for(O+=`</tr>
222
+ </thead>
223
+ <tbody>
224
+ `,V=0;V<U.length;++V){O+=`<tr>
225
+ `;for(var M=0;M<N;++M)O+=U[V][M];O+=`</tr>
226
+ `}return O+=`</tbody>
227
+ </table>
228
+ `,O}function L(B){var U,O=B.split(`
229
+ `);for(U=0;U<O.length;++U)/^ {0,3}\|/.test(O[U])&&(O[U]=O[U].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(O[U])&&(O[U]=O[U].replace(/\|[ \t]*$/,"")),O[U]=n.subParser("codeSpans")(O[U],m,x);var N=O[0].split("|").map(function(te){return te.trim()}),V=O[1].split("|").map(function(te){return te.trim()}),M=[],q=[],Y=[],z=[];for(O.shift(),O.shift(),U=0;U<O.length;++U)O[U].trim()!==""&&M.push(O[U].split("|").map(function(te){return te.trim()}));if(N.length<V.length)return B;for(U=0;U<V.length;++U)Y.push(k(V[U]));for(U=0;U<N.length;++U)n.helper.isUndefined(Y[U])&&(Y[U]=""),q.push(F(N[U],Y[U]));for(U=0;U<M.length;++U){for(var re=[],J=0;J<q.length;++J)n.helper.isUndefined(M[U][J]),re.push(P(M[U][J],Y[J]));z.push(re)}return j(q,z)}return h=x.converter._dispatch("tables.before",h,m,x),h=h.replace(/\\(\|)/g,n.helper.escapeCharactersCallback),h=h.replace(S,L),h=h.replace(A,L),h=x.converter._dispatch("tables.after",h,m,x),h}),n.subParser("underline",function(h,m,x){return m.underline&&(h=x.converter._dispatch("underline.before",h,m,x),m.literalMidWordUnderscores?(h=h.replace(/\b___(\S[\s\S]*?)___\b/g,function(S,A){return"<u>"+A+"</u>"}),h=h.replace(/\b__(\S[\s\S]*?)__\b/g,function(S,A){return"<u>"+A+"</u>"})):(h=h.replace(/___(\S[\s\S]*?)___/g,function(S,A){return/\S$/.test(A)?"<u>"+A+"</u>":S}),h=h.replace(/__(\S[\s\S]*?)__/g,function(S,A){return/\S$/.test(A)?"<u>"+A+"</u>":S})),h=h.replace(/(_)/g,n.helper.escapeCharactersCallback),h=x.converter._dispatch("underline.after",h,m,x)),h}),n.subParser("unescapeSpecialChars",function(h,m,x){return h=x.converter._dispatch("unescapeSpecialChars.before",h,m,x),h=h.replace(/¨E(\d+)E/g,function(S,A){var k=parseInt(A);return String.fromCharCode(k)}),h=x.converter._dispatch("unescapeSpecialChars.after",h,m,x),h}),n.subParser("makeMarkdown.blockquote",function(h,m){var x="";if(h.hasChildNodes())for(var S=h.childNodes,A=S.length,k=0;k<A;++k){var F=n.subParser("makeMarkdown.node")(S[k],m);F!==""&&(x+=F)}return x=x.trim(),x="> "+x.split(`
230
+ `).join(`
231
+ > `),x}),n.subParser("makeMarkdown.codeBlock",function(h,m){var x=h.getAttribute("language"),S=h.getAttribute("precodenum");return"```"+x+`
232
+ `+m.preList[S]+"\n```"}),n.subParser("makeMarkdown.codeSpan",function(h){return"`"+h.innerHTML+"`"}),n.subParser("makeMarkdown.emphasis",function(h,m){var x="";if(h.hasChildNodes()){x+="*";for(var S=h.childNodes,A=S.length,k=0;k<A;++k)x+=n.subParser("makeMarkdown.node")(S[k],m);x+="*"}return x}),n.subParser("makeMarkdown.header",function(h,m,x){var S=new Array(x+1).join("#"),A="";if(h.hasChildNodes()){A=S+" ";for(var k=h.childNodes,F=k.length,P=0;P<F;++P)A+=n.subParser("makeMarkdown.node")(k[P],m)}return A}),n.subParser("makeMarkdown.hr",function(){return"---"}),n.subParser("makeMarkdown.image",function(h){var m="";return h.hasAttribute("src")&&(m+="!["+h.getAttribute("alt")+"](",m+="<"+h.getAttribute("src")+">",h.hasAttribute("width")&&h.hasAttribute("height")&&(m+=" ="+h.getAttribute("width")+"x"+h.getAttribute("height")),h.hasAttribute("title")&&(m+=' "'+h.getAttribute("title")+'"'),m+=")"),m}),n.subParser("makeMarkdown.links",function(h,m){var x="";if(h.hasChildNodes()&&h.hasAttribute("href")){var S=h.childNodes,A=S.length;x="[";for(var k=0;k<A;++k)x+=n.subParser("makeMarkdown.node")(S[k],m);x+="](",x+="<"+h.getAttribute("href")+">",h.hasAttribute("title")&&(x+=' "'+h.getAttribute("title")+'"'),x+=")"}return x}),n.subParser("makeMarkdown.list",function(h,m,x){var S="";if(!h.hasChildNodes())return"";for(var A=h.childNodes,k=A.length,F=h.getAttribute("start")||1,P=0;P<k;++P)if(!(typeof A[P].tagName>"u"||A[P].tagName.toLowerCase()!=="li")){var j="";x==="ol"?j=F.toString()+". ":j="- ",S+=j+n.subParser("makeMarkdown.listItem")(A[P],m),++F}return S+=`
233
+ <!-- -->
234
+ `,S.trim()}),n.subParser("makeMarkdown.listItem",function(h,m){for(var x="",S=h.childNodes,A=S.length,k=0;k<A;++k)x+=n.subParser("makeMarkdown.node")(S[k],m);return/\n$/.test(x)?x=x.split(`
235
+ `).join(`
236
+ `).replace(/^ {4}$/gm,"").replace(/\n\n+/g,`
237
+
238
+ `):x+=`
239
+ `,x}),n.subParser("makeMarkdown.node",function(h,m,x){x=x||!1;var S="";if(h.nodeType===3)return n.subParser("makeMarkdown.txt")(h,m);if(h.nodeType===8)return"<!--"+h.data+`-->
240
+
241
+ `;if(h.nodeType!==1)return"";var A=h.tagName.toLowerCase();switch(A){case"h1":x||(S=n.subParser("makeMarkdown.header")(h,m,1)+`
242
+
243
+ `);break;case"h2":x||(S=n.subParser("makeMarkdown.header")(h,m,2)+`
244
+
245
+ `);break;case"h3":x||(S=n.subParser("makeMarkdown.header")(h,m,3)+`
246
+
247
+ `);break;case"h4":x||(S=n.subParser("makeMarkdown.header")(h,m,4)+`
248
+
249
+ `);break;case"h5":x||(S=n.subParser("makeMarkdown.header")(h,m,5)+`
250
+
251
+ `);break;case"h6":x||(S=n.subParser("makeMarkdown.header")(h,m,6)+`
252
+
253
+ `);break;case"p":x||(S=n.subParser("makeMarkdown.paragraph")(h,m)+`
254
+
255
+ `);break;case"blockquote":x||(S=n.subParser("makeMarkdown.blockquote")(h,m)+`
256
+
257
+ `);break;case"hr":x||(S=n.subParser("makeMarkdown.hr")(h,m)+`
258
+
259
+ `);break;case"ol":x||(S=n.subParser("makeMarkdown.list")(h,m,"ol")+`
260
+
261
+ `);break;case"ul":x||(S=n.subParser("makeMarkdown.list")(h,m,"ul")+`
262
+
263
+ `);break;case"precode":x||(S=n.subParser("makeMarkdown.codeBlock")(h,m)+`
264
+
265
+ `);break;case"pre":x||(S=n.subParser("makeMarkdown.pre")(h,m)+`
266
+
267
+ `);break;case"table":x||(S=n.subParser("makeMarkdown.table")(h,m)+`
268
+
269
+ `);break;case"code":S=n.subParser("makeMarkdown.codeSpan")(h,m);break;case"em":case"i":S=n.subParser("makeMarkdown.emphasis")(h,m);break;case"strong":case"b":S=n.subParser("makeMarkdown.strong")(h,m);break;case"del":S=n.subParser("makeMarkdown.strikethrough")(h,m);break;case"a":S=n.subParser("makeMarkdown.links")(h,m);break;case"img":S=n.subParser("makeMarkdown.image")(h,m);break;default:S=h.outerHTML+`
270
+
271
+ `}return S}),n.subParser("makeMarkdown.paragraph",function(h,m){var x="";if(h.hasChildNodes())for(var S=h.childNodes,A=S.length,k=0;k<A;++k)x+=n.subParser("makeMarkdown.node")(S[k],m);return x=x.trim(),x}),n.subParser("makeMarkdown.pre",function(h,m){var x=h.getAttribute("prenum");return"<pre>"+m.preList[x]+"</pre>"}),n.subParser("makeMarkdown.strikethrough",function(h,m){var x="";if(h.hasChildNodes()){x+="~~";for(var S=h.childNodes,A=S.length,k=0;k<A;++k)x+=n.subParser("makeMarkdown.node")(S[k],m);x+="~~"}return x}),n.subParser("makeMarkdown.strong",function(h,m){var x="";if(h.hasChildNodes()){x+="**";for(var S=h.childNodes,A=S.length,k=0;k<A;++k)x+=n.subParser("makeMarkdown.node")(S[k],m);x+="**"}return x}),n.subParser("makeMarkdown.table",function(h,m){var x="",S=[[],[]],A=h.querySelectorAll("thead>tr>th"),k=h.querySelectorAll("tbody>tr"),F,P;for(F=0;F<A.length;++F){var j=n.subParser("makeMarkdown.tableCell")(A[F],m),L="---";if(A[F].hasAttribute("style")){var B=A[F].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(B){case"text-align:left;":L=":---";break;case"text-align:right;":L="---:";break;case"text-align:center;":L=":---:";break}}S[0][F]=j.trim(),S[1][F]=L}for(F=0;F<k.length;++F){var U=S.push([])-1,O=k[F].getElementsByTagName("td");for(P=0;P<A.length;++P){var N=" ";typeof O[P]<"u"&&(N=n.subParser("makeMarkdown.tableCell")(O[P],m)),S[U].push(N)}}var V=3;for(F=0;F<S.length;++F)for(P=0;P<S[F].length;++P){var M=S[F][P].length;M>V&&(V=M)}for(F=0;F<S.length;++F){for(P=0;P<S[F].length;++P)F===1?S[F][P].slice(-1)===":"?S[F][P]=n.helper.padEnd(S[F][P].slice(-1),V-1,"-")+":":S[F][P]=n.helper.padEnd(S[F][P],V,"-"):S[F][P]=n.helper.padEnd(S[F][P],V);x+="| "+S[F].join(" | ")+` |
272
+ `}return x.trim()}),n.subParser("makeMarkdown.tableCell",function(h,m){var x="";if(!h.hasChildNodes())return"";for(var S=h.childNodes,A=S.length,k=0;k<A;++k)x+=n.subParser("makeMarkdown.node")(S[k],m,!0);return x.trim()}),n.subParser("makeMarkdown.txt",function(h){var m=h.nodeValue;return m=m.replace(/ +/g," "),m=m.replace(/¨NBSP;/g," "),m=n.helper.unescapeHTMLEntities(m),m=m.replace(/([*_~|`])/g,"\\$1"),m=m.replace(/^(\s*)>/g,"\\$1>"),m=m.replace(/^#/gm,"\\#"),m=m.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),m=m.replace(/^( {0,3}\d+)\./gm,"$1\\."),m=m.replace(/^( {0,3})([+-])/gm,"$1\\$2"),m=m.replace(/]([\s]*)\(/g,"\\]$1\\("),m=m.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),m});var b=this;e.exports?e.exports=n:b.showdown=n}).call(iO)}(Vf)),Vf.exports}var oO=sO();function qf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lO=0;function Xy(e){return"__private_"+lO+++"_"+e}function uO(e,t,r){const n=[];return e.forEach(a=>typeof a!="string"?n.push(a):t[Symbol.split](a).forEach((i,s,o)=>{i!==""&&n.push(i),s<o.length-1&&n.push(r)})),n}/**
273
+ * Takes a string with placeholder variables like `%{smart_count} file selected`
274
+ * and replaces it with values from options `{smart_count: 5}`
275
+ *
276
+ * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
277
+ * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
278
+ *
279
+ * @param phrase that needs interpolation, with placeholders
280
+ * @param options with values that will be used to replace placeholders
281
+ */function Zy(e,t){const r=/\$/g,n="$$$$";let a=[e];if(t==null)return a;for(const i of Object.keys(t))if(i!=="_"){let s=t[i];typeof s=="string"&&(s=r[Symbol.replace](s,n)),a=uO(a,new RegExp(`%\\{${i}\\}`,"g"),s)}return a}const cO=e=>{throw new Error(`missing string: ${e}`)};var Mu=Xy("onMissingKey"),Iu=Xy("apply");class Jy{constructor(t,r){let{onMissingKey:n=cO}=r===void 0?{}:r;Object.defineProperty(this,Iu,{value:fO}),Object.defineProperty(this,Mu,{writable:!0,value:void 0}),this.locale={strings:{},pluralize(a){return a===1?0:1}},Array.isArray(t)?t.forEach(qf(this,Iu)[Iu],this):qf(this,Iu)[Iu](t),qf(this,Mu)[Mu]=n}translate(t,r){return this.translateArray(t,r).join("")}translateArray(t,r){let n=this.locale.strings[t];if(n==null&&(qf(this,Mu)[Mu](t),n=t),typeof n=="object"){if(r&&typeof r.smart_count<"u"){const i=this.locale.pluralize(r.smart_count);return Zy(n[i],r)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof n!="string")throw new Error("string was not a string");return Zy(n,r)}}function fO(e){if(!(e!=null&&e.strings))return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}class dO{constructor(t,r){this.uppy=t,this.opts=r??{}}getPluginState(){const{plugins:t}=this.uppy.getState();return(t==null?void 0:t[this.id])||{}}setPluginState(t){const{plugins:r}=this.uppy.getState();this.uppy.setState({plugins:{...r,[this.id]:{...r[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const t=new Jy([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState(void 0)}addTarget(t){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(t){}afterUpdate(){}}const Qy="3.7.7",hO=Qy,Qo=typeof Buffer=="function",ew=typeof TextDecoder=="function"?new TextDecoder:void 0,tw=typeof TextEncoder=="function"?new TextEncoder:void 0,Lu=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Yf=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(Lu),pO=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,$r=String.fromCharCode.bind(String),rw=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),nw=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),aw=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),iw=e=>{let t,r,n,a,i="";const s=e.length%3;for(let o=0;o<e.length;){if((r=e.charCodeAt(o++))>255||(n=e.charCodeAt(o++))>255||(a=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,i+=Lu[t>>18&63]+Lu[t>>12&63]+Lu[t>>6&63]+Lu[t&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Ep=typeof btoa=="function"?e=>btoa(e):Qo?e=>Buffer.from(e,"binary").toString("base64"):iw,Cp=Qo?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,a=e.length;n<a;n+=4096)r.push($r.apply(null,e.subarray(n,n+4096)));return Ep(r.join(""))},Gf=(e,t=!1)=>t?nw(Cp(e)):Cp(e),gO=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?$r(192|t>>>6)+$r(128|t&63):$r(224|t>>>12&15)+$r(128|t>>>6&63)+$r(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return $r(240|t>>>18&7)+$r(128|t>>>12&63)+$r(128|t>>>6&63)+$r(128|t&63)}},mO=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,sw=e=>e.replace(mO,gO),ow=Qo?e=>Buffer.from(e,"utf8").toString("base64"):tw?e=>Cp(tw.encode(e)):e=>Ep(sw(e)),el=(e,t=!1)=>t?nw(ow(e)):ow(e),lw=e=>el(e,!0),vO=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,xO=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return $r((r>>>10)+55296)+$r((r&1023)+56320);case 3:return $r((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return $r((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},uw=e=>e.replace(vO,xO),cw=e=>{if(e=e.replace(/\s+/g,""),!pO.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,a;for(let i=0;i<e.length;)t=Yf[e.charAt(i++)]<<18|Yf[e.charAt(i++)]<<12|(n=Yf[e.charAt(i++)])<<6|(a=Yf[e.charAt(i++)]),r+=n===64?$r(t>>16&255):a===64?$r(t>>16&255,t>>8&255):$r(t>>16&255,t>>8&255,t&255);return r},Ap=typeof atob=="function"?e=>atob(aw(e)):Qo?e=>Buffer.from(e,"base64").toString("binary"):cw,fw=Qo?e=>rw(Buffer.from(e,"base64")):e=>rw(Ap(e).split("").map(t=>t.charCodeAt(0))),dw=e=>fw(hw(e)),_O=Qo?e=>Buffer.from(e,"base64").toString("utf8"):ew?e=>ew.decode(fw(e)):e=>uw(Ap(e)),hw=e=>aw(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Op=e=>_O(hw(e)),yO=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},pw=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),gw=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,pw(r));e("fromBase64",function(){return Op(this)}),e("toBase64",function(t){return el(this,t)}),e("toBase64URI",function(){return el(this,!0)}),e("toBase64URL",function(){return el(this,!0)}),e("toUint8Array",function(){return dw(this)})},mw=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,pw(r));e("toBase64",function(t){return Gf(this,t)}),e("toBase64URI",function(){return Gf(this,!0)}),e("toBase64URL",function(){return Gf(this,!0)})},wO={version:Qy,VERSION:hO,atob:Ap,atobPolyfill:cw,btoa:Ep,btoaPolyfill:iw,fromBase64:Op,toBase64:el,encode:el,encodeURI:lw,encodeURL:lw,utob:sw,btou:uw,decode:Op,isValid:yO,fromUint8Array:Gf,toUint8Array:dw,extendString:gw,extendUint8Array:mw,extendBuiltins:()=>{gw(),mw()}};var Fp,vw;function bO(){return vw||(vw=1,Fp=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),Fp}var Kf={},xw;function SO(){if(xw)return Kf;xw=1;var e=Object.prototype.hasOwnProperty,t;function r(s){try{return decodeURIComponent(s.replace(/\+/g," "))}catch{return null}}function n(s){try{return encodeURIComponent(s)}catch{return null}}function a(s){for(var o=/([^=?#&]+)=?([^&]*)/g,l={},c;c=o.exec(s);){var d=r(c[1]),p=r(c[2]);d===null||p===null||d in l||(l[d]=p)}return l}function i(s,o){o=o||"";var l=[],c,d;typeof o!="string"&&(o="?");for(d in s)if(e.call(s,d)){if(c=s[d],!c&&(c===null||c===t||isNaN(c))&&(c=""),d=n(d),c=n(c),d===null||c===null)continue;l.push(d+"="+c)}return l.length?o+l.join("&"):""}return Kf.stringify=i,Kf.parse=a,Kf}var Pp,_w;function kO(){if(_w)return Pp;_w=1;var e=bO(),t=SO(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,o=/^[a-zA-Z]:/;function l(T){return(T||"").toString().replace(r,"")}var c=[["#","hash"],["?","query"],function(b,h){return g(h.protocol)?b.replace(/\\/g,"/"):b},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],d={hash:1,query:1};function p(T){var b;typeof window<"u"?b=window:typeof Fa<"u"?b=Fa:typeof self<"u"?b=self:b={};var h=b.location||{};T=T||h;var m={},x=typeof T,S;if(T.protocol==="blob:")m=new _(unescape(T.pathname),{});else if(x==="string"){m=new _(T,{});for(S in d)delete m[S]}else if(x==="object"){for(S in T)S in d||(m[S]=T[S]);m.slashes===void 0&&(m.slashes=a.test(T.href))}return m}function g(T){return T==="file:"||T==="ftp:"||T==="http:"||T==="https:"||T==="ws:"||T==="wss:"}function v(T,b){T=l(T),T=T.replace(n,""),b=b||{};var h=s.exec(T),m=h[1]?h[1].toLowerCase():"",x=!!h[2],S=!!h[3],A=0,k;return x?S?(k=h[2]+h[3]+h[4],A=h[2].length+h[3].length):(k=h[2]+h[4],A=h[2].length):S?(k=h[3]+h[4],A=h[3].length):k=h[4],m==="file:"?A>=2&&(k=k.slice(2)):g(m)?k=h[4]:m?x&&(k=k.slice(2)):A>=2&&g(b.protocol)&&(k=h[4]),{protocol:m,slashes:x||g(m),slashesCount:A,rest:k}}function y(T,b){if(T==="")return b;for(var h=(b||"/").split("/").slice(0,-1).concat(T.split("/")),m=h.length,x=h[m-1],S=!1,A=0;m--;)h[m]==="."?h.splice(m,1):h[m]===".."?(h.splice(m,1),A++):A&&(m===0&&(S=!0),h.splice(m,1),A--);return S&&h.unshift(""),(x==="."||x==="..")&&h.push(""),h.join("/")}function _(T,b,h){if(T=l(T),T=T.replace(n,""),!(this instanceof _))return new _(T,b,h);var m,x,S,A,k,F,P=c.slice(),j=typeof b,L=this,B=0;for(j!=="object"&&j!=="string"&&(h=b,b=null),h&&typeof h!="function"&&(h=t.parse),b=p(b),x=v(T||"",b),m=!x.protocol&&!x.slashes,L.slashes=x.slashes||m&&b.slashes,L.protocol=x.protocol||b.protocol||"",T=x.rest,(x.protocol==="file:"&&(x.slashesCount!==2||o.test(T))||!x.slashes&&(x.protocol||x.slashesCount<2||!g(L.protocol)))&&(P[3]=[/(.*)/,"pathname"]);B<P.length;B++){if(A=P[B],typeof A=="function"){T=A(T,L);continue}S=A[0],F=A[1],S!==S?L[F]=T:typeof S=="string"?(k=S==="@"?T.lastIndexOf(S):T.indexOf(S),~k&&(typeof A[2]=="number"?(L[F]=T.slice(0,k),T=T.slice(k+A[2])):(L[F]=T.slice(k),T=T.slice(0,k)))):(k=S.exec(T))&&(L[F]=k[1],T=T.slice(0,k.index)),L[F]=L[F]||m&&A[3]&&b[F]||"",A[4]&&(L[F]=L[F].toLowerCase())}h&&(L.query=h(L.query)),m&&b.slashes&&L.pathname.charAt(0)!=="/"&&(L.pathname!==""||b.pathname!=="")&&(L.pathname=y(L.pathname,b.pathname)),L.pathname.charAt(0)!=="/"&&g(L.protocol)&&(L.pathname="/"+L.pathname),e(L.port,L.protocol)||(L.host=L.hostname,L.port=""),L.username=L.password="",L.auth&&(k=L.auth.indexOf(":"),~k?(L.username=L.auth.slice(0,k),L.username=encodeURIComponent(decodeURIComponent(L.username)),L.password=L.auth.slice(k+1),L.password=encodeURIComponent(decodeURIComponent(L.password))):L.username=encodeURIComponent(decodeURIComponent(L.auth)),L.auth=L.password?L.username+":"+L.password:L.username),L.origin=L.protocol!=="file:"&&g(L.protocol)&&L.host?L.protocol+"//"+L.host:"null",L.href=L.toString()}function C(T,b,h){var m=this;switch(T){case"query":typeof b=="string"&&b.length&&(b=(h||t.parse)(b)),m[T]=b;break;case"port":m[T]=b,e(b,m.protocol)?b&&(m.host=m.hostname+":"+b):(m.host=m.hostname,m[T]="");break;case"hostname":m[T]=b,m.port&&(b+=":"+m.port),m.host=b;break;case"host":m[T]=b,i.test(b)?(b=b.split(":"),m.port=b.pop(),m.hostname=b.join(":")):(m.hostname=b,m.port="");break;case"protocol":m.protocol=b.toLowerCase(),m.slashes=!h;break;case"pathname":case"hash":if(b){var x=T==="pathname"?"/":"#";m[T]=b.charAt(0)!==x?x+b:b}else m[T]=b;break;case"username":case"password":m[T]=encodeURIComponent(b);break;case"auth":var S=b.indexOf(":");~S?(m.username=b.slice(0,S),m.username=encodeURIComponent(decodeURIComponent(m.username)),m.password=b.slice(S+1),m.password=encodeURIComponent(decodeURIComponent(m.password))):m.username=encodeURIComponent(decodeURIComponent(b))}for(var A=0;A<c.length;A++){var k=c[A];k[4]&&(m[k[1]]=m[k[1]].toLowerCase())}return m.auth=m.password?m.username+":"+m.password:m.username,m.origin=m.protocol!=="file:"&&g(m.protocol)&&m.host?m.protocol+"//"+m.host:"null",m.href=m.toString(),m}function E(T){(!T||typeof T!="function")&&(T=t.stringify);var b,h=this,m=h.host,x=h.protocol;x&&x.charAt(x.length-1)!==":"&&(x+=":");var S=x+(h.protocol&&h.slashes||g(h.protocol)?"//":"");return h.username?(S+=h.username,h.password&&(S+=":"+h.password),S+="@"):h.password?(S+=":"+h.password,S+="@"):h.protocol!=="file:"&&g(h.protocol)&&!m&&h.pathname!=="/"&&(S+="@"),(m[m.length-1]===":"||i.test(h.hostname)&&!h.port)&&(m+=":"),S+=m+h.pathname,b=typeof h.query=="object"?T(h.query):h.query,b&&(S+=b.charAt(0)!=="?"?"?"+b:b),h.hash&&(S+=h.hash),S}return _.prototype={set:C,toString:E},_.extractProtocol=v,_.location=p,_.trimLeft=l,_.qs=t,Pp=_,Pp}var TO=kO();const EO=hn(TO);function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}function CO(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function AO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bu(e,t)}function FO(e){var t=yw();return function(){var n=ju(e),a;if(t){var i=ju(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return PO(this,a)}}function PO(e,t){if(t&&(Dp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DO(e)}function DO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rp(e){var t=typeof Map=="function"?new Map:void 0;return Rp=function(n){if(n===null||!RO(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Xf(n,arguments,ju(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Bu(a,n)},Rp(e)}function Xf(e,t,r){return yw()?Xf=Reflect.construct.bind():Xf=function(a,i,s){var o=[null];o.push.apply(o,i);var l=Function.bind.apply(a,o),c=new l;return s&&Bu(c,s.prototype),c},Xf.apply(null,arguments)}function yw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function RO(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Bu(e,t){return Bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Bu(e,t)}function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ju(e)}var Zf=function(e){OO(r,e);var t=FO(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(AO(this,r),a=t.call(this,n),a.originalRequest=s,a.originalResponse=o,a.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),s!=null){var l=s.getHeader("X-Request-ID")||"n/a",c=s.getMethod(),d=s.getURL(),p=o?o.getStatus():"n/a",g=o?o.getBody()||"":"n/a";n+=", originated from request (method: ".concat(c,", url: ").concat(d,", response code: ").concat(p,", response text: ").concat(g,", request id: ").concat(l,")")}return a.message=n,a}return CO(r)}(Rp(Error));function Oee(e){}function NO(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function Np(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Np=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(O,N,V){O[N]=V.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(O,N,V){return Object.defineProperty(O,N,{value:V,enumerable:!0,configurable:!0,writable:!0}),O[N]}try{c({},"")}catch{c=function(V,M,q){return V[M]=q}}function d(O,N,V,M){var q=N&&N.prototype instanceof E?N:E,Y=Object.create(q.prototype),z=new B(M||[]);return a(Y,"_invoke",{value:F(O,V,z)}),Y}function p(O,N,V){try{return{type:"normal",arg:O.call(N,V)}}catch(M){return{type:"throw",arg:M}}}t.wrap=d;var g="suspendedStart",v="suspendedYield",y="executing",_="completed",C={};function E(){}function T(){}function b(){}var h={};c(h,s,function(){return this});var m=Object.getPrototypeOf,x=m&&m(m(U([])));x&&x!==r&&n.call(x,s)&&(h=x);var S=b.prototype=E.prototype=Object.create(h);function A(O){["next","throw","return"].forEach(function(N){c(O,N,function(V){return this._invoke(N,V)})})}function k(O,N){function V(q,Y,z,re){var J=p(O[q],O,Y);if(J.type!=="throw"){var te=J.arg,oe=te.value;return oe&&Ks(oe)=="object"&&n.call(oe,"__await")?N.resolve(oe.__await).then(function(ue){V("next",ue,z,re)},function(ue){V("throw",ue,z,re)}):N.resolve(oe).then(function(ue){te.value=ue,z(te)},function(ue){return V("throw",ue,z,re)})}re(J.arg)}var M;a(this,"_invoke",{value:function(Y,z){function re(){return new N(function(J,te){V(Y,z,J,te)})}return M=M?M.then(re,re):re()}})}function F(O,N,V){var M=g;return function(q,Y){if(M===y)throw new Error("Generator is already running");if(M===_){if(q==="throw")throw Y;return{value:e,done:!0}}for(V.method=q,V.arg=Y;;){var z=V.delegate;if(z){var re=P(z,V);if(re){if(re===C)continue;return re}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(M===g)throw M=_,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);M=y;var J=p(O,N,V);if(J.type==="normal"){if(M=V.done?_:v,J.arg===C)continue;return{value:J.arg,done:V.done}}J.type==="throw"&&(M=_,V.method="throw",V.arg=J.arg)}}}function P(O,N){var V=N.method,M=O.iterator[V];if(M===e)return N.delegate=null,V==="throw"&&O.iterator.return&&(N.method="return",N.arg=e,P(O,N),N.method==="throw")||V!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+V+"' method")),C;var q=p(M,O.iterator,N.arg);if(q.type==="throw")return N.method="throw",N.arg=q.arg,N.delegate=null,C;var Y=q.arg;return Y?Y.done?(N[O.resultName]=Y.value,N.next=O.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,C):Y:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,C)}function j(O){var N={tryLoc:O[0]};1 in O&&(N.catchLoc=O[1]),2 in O&&(N.finallyLoc=O[2],N.afterLoc=O[3]),this.tryEntries.push(N)}function L(O){var N=O.completion||{};N.type="normal",delete N.arg,O.completion=N}function B(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(j,this),this.reset(!0)}function U(O){if(O||O===""){var N=O[s];if(N)return N.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var V=-1,M=function q(){for(;++V<O.length;)if(n.call(O,V))return q.value=O[V],q.done=!1,q;return q.value=e,q.done=!0,q};return M.next=M}}throw new TypeError(Ks(O)+" is not iterable")}return T.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:T,configurable:!0}),T.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(O){var N=typeof O=="function"&&O.constructor;return!!N&&(N===T||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,b):(O.__proto__=b,c(O,l,"GeneratorFunction")),O.prototype=Object.create(S),O},t.awrap=function(O){return{__await:O}},A(k.prototype),c(k.prototype,o,function(){return this}),t.AsyncIterator=k,t.async=function(O,N,V,M,q){q===void 0&&(q=Promise);var Y=new k(d(O,N,V,M),q);return t.isGeneratorFunction(N)?Y:Y.next().then(function(z){return z.done?z.value:Y.next()})},A(S),c(S,l,"Generator"),c(S,s,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(O){var N=Object(O),V=[];for(var M in N)V.push(M);return V.reverse(),function q(){for(;V.length;){var Y=V.pop();if(Y in N)return q.value=Y,q.done=!1,q}return q.done=!0,q}},t.values=U,B.prototype={constructor:B,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!N)for(var V in this)V.charAt(0)==="t"&&n.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var V=this;function M(te,oe){return z.type="throw",z.arg=N,V.next=te,oe&&(V.method="next",V.arg=e),!!oe}for(var q=this.tryEntries.length-1;q>=0;--q){var Y=this.tryEntries[q],z=Y.completion;if(Y.tryLoc==="root")return M("end");if(Y.tryLoc<=this.prev){var re=n.call(Y,"catchLoc"),J=n.call(Y,"finallyLoc");if(re&&J){if(this.prev<Y.catchLoc)return M(Y.catchLoc,!0);if(this.prev<Y.finallyLoc)return M(Y.finallyLoc)}else if(re){if(this.prev<Y.catchLoc)return M(Y.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<Y.finallyLoc)return M(Y.finallyLoc)}}}},abrupt:function(N,V){for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M];if(q.tryLoc<=this.prev&&n.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var Y=q;break}}Y&&(N==="break"||N==="continue")&&Y.tryLoc<=V&&V<=Y.finallyLoc&&(Y=null);var z=Y?Y.completion:{};return z.type=N,z.arg=V,Y?(this.method="next",this.next=Y.finallyLoc,C):this.complete(z)},complete:function(N,V){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&V&&(this.next=V),C},finish:function(N){for(var V=this.tryEntries.length-1;V>=0;--V){var M=this.tryEntries[V];if(M.finallyLoc===N)return this.complete(M.completion,M.afterLoc),L(M),C}},catch:function(N){for(var V=this.tryEntries.length-1;V>=0;--V){var M=this.tryEntries[V];if(M.tryLoc===N){var q=M.completion;if(q.type==="throw"){var Y=q.arg;L(M)}return Y}}throw new Error("illegal catch attempt")},delegateYield:function(N,V,M){return this.delegate={iterator:U(N),resultName:V,nextLoc:M},this.method==="next"&&(this.arg=e),C}},t}function ww(e,t,r,n,a,i,s){try{var o=e[i](s),l=o.value}catch(c){r(c);return}o.done?t(l):Promise.resolve(l).then(n,a)}function MO(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function s(l){ww(i,n,a,s,o,"next",l)}function o(l){ww(i,n,a,s,o,"throw",l)}s(void 0)})}}function bw(e,t){return jO(e)||BO(e,t)||LO(e,t)||IO()}function IO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
282
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LO(e,t){if(e){if(typeof e=="string")return Sw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sw(e,t)}}function Sw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BO(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,s,o=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function jO(e){if(Array.isArray(e))return e}function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function kw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kw(Object(r),!0).forEach(function(n){UO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UO(e,t,r){return t=Ew(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ew(n.key),n)}}function zO(e,t,r){return t&&Tw(e.prototype,t),r&&Tw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ew(e){var t=WO(e,"string");return Ks(t)==="symbol"?t:String(t)}function WO(e,t){if(Ks(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ks(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $O={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Pw,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Jf=function(){function e(t,r){HO(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return zO(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var a=this.options.retryDelays;if(a!=null&&Object.prototype.toString.call(a)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var i=0,s=["uploadUrl","uploadSize","uploadLengthDeferred"];i<s.length;i++){var o=s[i];if(this.options[o]){this._emitError(new Error("tus: cannot use the ".concat(o," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(l){return r._fingerprint=l,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(l){if(r._source=l,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(l){r._emitError(l)})}},{key:"_startParallelUpload",value:function(){var r,n=this,a=this._size,i=0;this._parallelUploads=[];var s=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,o=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:qO(this._source.size,s);this._parallelUploadUrls&&o.forEach(function(d,p){d.uploadUrl=n._parallelUploadUrls[p]||null}),this._parallelUploadUrls=new Array(o.length);var l=o.map(function(d,p){var g=0;return n._source.slice(d.start,d.end).then(function(v){var y=v.value;return new Promise(function(_,C){var E=tl(tl({},n.options),{},{uploadUrl:d.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:tl(tl({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:_,onError:C,onProgress:function(h){i=i-g+h,g=h,n._emitProgress(i,a)},onUploadUrlAvailable:function(){n._parallelUploadUrls[p]=T.url,n._parallelUploadUrls.filter(function(h){return!!h}).length===o.length&&n._saveUploadInUrlStorage()}}),T=new e(y,E);T.start(),n._parallelUploads.push(T)})})}),c;Promise.all(l).then(function(){c=n._openRequest("POST",n.options.endpoint),c.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var d=Cw(n.options.metadata);return d!==""&&c.setHeader("Upload-Metadata",d),n._sendRequest(c,null)}).then(function(d){if(!rl(d.getStatus(),200)){n._emitHttpError(c,d,"tus: unexpected response while creating upload");return}var p=d.getHeader("Location");if(p==null){n._emitHttpError(c,d,"tus: invalid or missing Location header");return}n.url=Dw(n.options.endpoint,p),"Created upload at ".concat(n.url),n._emitSuccess()}).catch(function(d){n._emitError(d)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(r){var n=this;return this._parallelUploads!=null&&this._parallelUploads.forEach(function(a){a.abort(r)}),this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,a,i){this._emitError(new Zf(a,i,r,n))}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),Fw(r,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess()}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n)}},{key:"_emitChunkComplete",value:function(r,n,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,a)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length",1):n.setHeader("Upload-Length",this._size);var a=Cw(this.options.metadata);a!==""&&n.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(n)):i=this._sendRequest(n,null),i.then(function(s){if(!rl(s.getStatus(),200)){r._emitHttpError(n,s,"tus: unexpected response while creating upload");return}var o=s.getHeader("Location");if(o==null){r._emitHttpError(n,s,"tus: invalid or missing Location header");return}if(r.url=Dw(r.options.endpoint,o),"Created upload at ".concat(r.url),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,s):(r._offset=0,r._performUpload())})}).catch(function(s){r._emitHttpError(n,null,"tus: failed to create upload",s)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),a=this._sendRequest(n,null);a.then(function(i){var s=i.getStatus();if(!rl(s,200)){if(s===423){r._emitHttpError(n,i,"tus: upload is currently locked; retry later");return}if(rl(s,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var o=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(o)){r._emitHttpError(n,i,"tus: invalid or missing offset value");return}var l=parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(l)&&!r.options.uploadLengthDeferred){r._emitHttpError(n,i,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(o===l){r._emitProgress(l,l),r._emitSuccess();return}r._offset=o,r._performUpload()})}).catch(function(i){r._emitHttpError(n,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset",this._offset);var a=this._addChunkToRequest(n);a.then(function(i){if(!rl(i.getStatus(),200)){r._emitHttpError(n,i,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,i)}).catch(function(i){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),i)})}}},{key:"_addChunkToRequest",value:function(r){var n=this,a=this._offset,i=this._offset+this.options.chunkSize;return r.setProgressHandler(function(s){n._emitProgress(a+s,n._size)}),r.setHeader("Content-Type","application/offset+octet-stream"),(i===1/0||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(s){var o=s.value,l=s.done,c=o&&o.size?o.size:0;n.options.uploadLengthDeferred&&l&&(n._size=n._offset+c,r.setHeader("Upload-Length",n._size));var d=n._offset+c;return!n.options.uploadLengthDeferred&&l&&d!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(d," bytes"))):o===null?n._sendRequest(r):(n._emitProgress(n._offset,n._size),n._sendRequest(r,o))})}},{key:"_handleUploadResponse",value:function(r,n){var a=parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,n){var a=Aw(r,n,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(a){r._urlStorageKey=a})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ow(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=Aw("DELETE",r,n);return Ow(a,null,n).then(function(i){if(i.getStatus()!==204)throw new Zf("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof Zf||(i=new Zf("tus: failed to terminate upload",i,a,null)),!Fw(i,0,n))throw i;var s=n.retryDelays[0],o=n.retryDelays.slice(1),l=tl(tl({},n),{},{retryDelays:o});return new Promise(function(c){return setTimeout(c,s)}).then(function(){return e.terminate(r,l)})})}}]),e}();function Cw(e){return Object.entries(e).map(function(t){var r=bw(t,2),n=r[0],a=r[1];return"".concat(n," ").concat(wO.encode(String(a)))}).join(",")}function rl(e,t){return e>=t&&e<t+100}function Aw(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var a=r.headers||{};if(Object.entries(a).forEach(function(s){var o=bw(s,2),l=o[0],c=o[1];n.setHeader(l,c)}),r.addRequestId){var i=NO();n.setHeader("X-Request-ID",i)}return n}function Ow(e,t,r){return Mp.apply(this,arguments)}function Mp(){return Mp=MO(Np().mark(function e(t,r,n){var a;return Np().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(typeof n.onBeforeRequest!="function"){s.next=3;break}return s.next=3,n.onBeforeRequest(t);case 3:return s.next=5,t.send(r);case 5:if(a=s.sent,typeof n.onAfterResponse!="function"){s.next=9;break}return s.next=9,n.onAfterResponse(t,a);case 9:return s.abrupt("return",a);case 10:case"end":return s.stop()}},e)})),Mp.apply(this,arguments)}function VO(){var e=!0;return typeof window<"u"&&"navigator"in window&&window.navigator.onLine===!1&&(e=!1),e}function Fw(e,t,r){return r.retryDelays==null||t>=r.retryDelays.length||e.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(e,t,r):Pw(e)}function Pw(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!rl(t,400)||t===409||t===423)&&VO()}function Dw(e,t){return new EO(t,e).toString()}function qO(e,t){for(var r=Math.floor(e/t),n=[],a=0;a<t;a++)n.push({start:r*a,end:r*(a+1)});return n[t-1].end=e,n}Jf.defaultOptions=$O;function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function YO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XO(n.key),n)}}function KO(e,t,r){return t&&GO(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XO(e){var t=ZO(e,"string");return Uu(t)==="symbol"?t:String(t)}function ZO(e,t){if(Uu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var JO=function(){function e(){YO(this,e)}return KO(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}]),e}();function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function QO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rF(n.key),n)}}function tF(e,t,r){return t&&eF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rF(e){var t=nF(e,"string");return Hu(t)==="symbol"?t:String(t)}function nF(e,t){if(Hu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ip=!1;try{Ip="localStorage"in window;var Lp="tusSupport",Rw=localStorage.getItem(Lp);localStorage.setItem(Lp,Rw),Rw===null&&localStorage.removeItem(Lp)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)Ip=!1;else throw e}var aF=Ip,iF=function(){function e(){QO(this,e)}return tF(e,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var a=Math.round(Math.random()*1e12),i="tus::".concat(r,"::").concat(a);return localStorage.setItem(i,JSON.stringify(n)),Promise.resolve(i)}},{key:"_findEntries",value:function(r){for(var n=[],a=0;a<localStorage.length;a++){var i=localStorage.key(a);if(i.indexOf(r)===0)try{var s=JSON.parse(localStorage.getItem(i));s.urlStorageKey=i,n.push(s)}catch{}}return n}}]),e}();function zu(e){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(e)}function Bp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oF(n.key),n)}}function jp(e,t,r){return t&&sF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oF(e){var t=lF(e,"string");return zu(t)==="symbol"?t:String(t)}function lF(e,t){if(zu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uF=function(){function e(){Bp(this,e)}return jp(e,[{key:"createRequest",value:function(r,n){return new cF(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),cF=function(){function e(t,r){Bp(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return jp(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded)})}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){r._xhr.onload=function(){a(new fF(r._xhr))},r._xhr.onerror=function(s){i(s)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),fF=function(){function e(t){Bp(this,e),this._xhr=t}return jp(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Nw=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function dF(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var a=n.response;t(a)},n.onerror=function(a){r(a)},n.open("GET",e),n.send()})}var hF=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function pF(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var a=new Uint8Array(n.result);t({value:a})},n.onerror=function(a){r(a)},n.readAsArrayBuffer(e)})}function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function gF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xF(n.key),n)}}function vF(e,t,r){return t&&mF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xF(e){var t=_F(e,"string");return Wu(t)==="symbol"?t:String(t)}function _F(e,t){if(Wu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Mw=function(){function e(t){gF(this,e),this._file=t,this.size=t.size}return vF(e,[{key:"slice",value:function(r,n){if(hF())return pF(this._file.slice(r,n));var a=this._file.slice(r,n),i=n>=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}]),e}();function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function yF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SF(n.key),n)}}function bF(e,t,r){return t&&wF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SF(e){var t=kF(e,"string");return $u(t)==="symbol"?t:String(t)}function kF(e,t){if($u(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($u(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Iw(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function TF(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}var EF=function(){function e(t){yF(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return bF(e,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var a=this,i=n<=this._bufferOffset+Iw(this._buffer);if(this._done||i){var s=this._getDataFromBuffer(r,n),o=s==null?this._done:!1;return Promise.resolve({value:s,done:o})}return this._reader.read().then(function(l){var c=l.value,d=l.done;return d?a._done=!0:a._buffer===void 0?a._buffer=c:a._buffer=TF(a._buffer,c),a._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var a=Iw(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function Up(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Up=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(O,N,V){O[N]=V.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(O,N,V){return Object.defineProperty(O,N,{value:V,enumerable:!0,configurable:!0,writable:!0}),O[N]}try{c({},"")}catch{c=function(V,M,q){return V[M]=q}}function d(O,N,V,M){var q=N&&N.prototype instanceof E?N:E,Y=Object.create(q.prototype),z=new B(M||[]);return a(Y,"_invoke",{value:F(O,V,z)}),Y}function p(O,N,V){try{return{type:"normal",arg:O.call(N,V)}}catch(M){return{type:"throw",arg:M}}}t.wrap=d;var g="suspendedStart",v="suspendedYield",y="executing",_="completed",C={};function E(){}function T(){}function b(){}var h={};c(h,s,function(){return this});var m=Object.getPrototypeOf,x=m&&m(m(U([])));x&&x!==r&&n.call(x,s)&&(h=x);var S=b.prototype=E.prototype=Object.create(h);function A(O){["next","throw","return"].forEach(function(N){c(O,N,function(V){return this._invoke(N,V)})})}function k(O,N){function V(q,Y,z,re){var J=p(O[q],O,Y);if(J.type!=="throw"){var te=J.arg,oe=te.value;return oe&&Xs(oe)=="object"&&n.call(oe,"__await")?N.resolve(oe.__await).then(function(ue){V("next",ue,z,re)},function(ue){V("throw",ue,z,re)}):N.resolve(oe).then(function(ue){te.value=ue,z(te)},function(ue){return V("throw",ue,z,re)})}re(J.arg)}var M;a(this,"_invoke",{value:function(Y,z){function re(){return new N(function(J,te){V(Y,z,J,te)})}return M=M?M.then(re,re):re()}})}function F(O,N,V){var M=g;return function(q,Y){if(M===y)throw new Error("Generator is already running");if(M===_){if(q==="throw")throw Y;return{value:e,done:!0}}for(V.method=q,V.arg=Y;;){var z=V.delegate;if(z){var re=P(z,V);if(re){if(re===C)continue;return re}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(M===g)throw M=_,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);M=y;var J=p(O,N,V);if(J.type==="normal"){if(M=V.done?_:v,J.arg===C)continue;return{value:J.arg,done:V.done}}J.type==="throw"&&(M=_,V.method="throw",V.arg=J.arg)}}}function P(O,N){var V=N.method,M=O.iterator[V];if(M===e)return N.delegate=null,V==="throw"&&O.iterator.return&&(N.method="return",N.arg=e,P(O,N),N.method==="throw")||V!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+V+"' method")),C;var q=p(M,O.iterator,N.arg);if(q.type==="throw")return N.method="throw",N.arg=q.arg,N.delegate=null,C;var Y=q.arg;return Y?Y.done?(N[O.resultName]=Y.value,N.next=O.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,C):Y:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,C)}function j(O){var N={tryLoc:O[0]};1 in O&&(N.catchLoc=O[1]),2 in O&&(N.finallyLoc=O[2],N.afterLoc=O[3]),this.tryEntries.push(N)}function L(O){var N=O.completion||{};N.type="normal",delete N.arg,O.completion=N}function B(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(j,this),this.reset(!0)}function U(O){if(O||O===""){var N=O[s];if(N)return N.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var V=-1,M=function q(){for(;++V<O.length;)if(n.call(O,V))return q.value=O[V],q.done=!1,q;return q.value=e,q.done=!0,q};return M.next=M}}throw new TypeError(Xs(O)+" is not iterable")}return T.prototype=b,a(S,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:T,configurable:!0}),T.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(O){var N=typeof O=="function"&&O.constructor;return!!N&&(N===T||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,b):(O.__proto__=b,c(O,l,"GeneratorFunction")),O.prototype=Object.create(S),O},t.awrap=function(O){return{__await:O}},A(k.prototype),c(k.prototype,o,function(){return this}),t.AsyncIterator=k,t.async=function(O,N,V,M,q){q===void 0&&(q=Promise);var Y=new k(d(O,N,V,M),q);return t.isGeneratorFunction(N)?Y:Y.next().then(function(z){return z.done?z.value:Y.next()})},A(S),c(S,l,"Generator"),c(S,s,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(O){var N=Object(O),V=[];for(var M in N)V.push(M);return V.reverse(),function q(){for(;V.length;){var Y=V.pop();if(Y in N)return q.value=Y,q.done=!1,q}return q.done=!0,q}},t.values=U,B.prototype={constructor:B,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!N)for(var V in this)V.charAt(0)==="t"&&n.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var V=this;function M(te,oe){return z.type="throw",z.arg=N,V.next=te,oe&&(V.method="next",V.arg=e),!!oe}for(var q=this.tryEntries.length-1;q>=0;--q){var Y=this.tryEntries[q],z=Y.completion;if(Y.tryLoc==="root")return M("end");if(Y.tryLoc<=this.prev){var re=n.call(Y,"catchLoc"),J=n.call(Y,"finallyLoc");if(re&&J){if(this.prev<Y.catchLoc)return M(Y.catchLoc,!0);if(this.prev<Y.finallyLoc)return M(Y.finallyLoc)}else if(re){if(this.prev<Y.catchLoc)return M(Y.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<Y.finallyLoc)return M(Y.finallyLoc)}}}},abrupt:function(N,V){for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M];if(q.tryLoc<=this.prev&&n.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var Y=q;break}}Y&&(N==="break"||N==="continue")&&Y.tryLoc<=V&&V<=Y.finallyLoc&&(Y=null);var z=Y?Y.completion:{};return z.type=N,z.arg=V,Y?(this.method="next",this.next=Y.finallyLoc,C):this.complete(z)},complete:function(N,V){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&V&&(this.next=V),C},finish:function(N){for(var V=this.tryEntries.length-1;V>=0;--V){var M=this.tryEntries[V];if(M.finallyLoc===N)return this.complete(M.completion,M.afterLoc),L(M),C}},catch:function(N){for(var V=this.tryEntries.length-1;V>=0;--V){var M=this.tryEntries[V];if(M.tryLoc===N){var q=M.completion;if(q.type==="throw"){var Y=q.arg;L(M)}return Y}}throw new Error("illegal catch attempt")},delegateYield:function(N,V,M){return this.delegate={iterator:U(N),resultName:V,nextLoc:M},this.method==="next"&&(this.arg=e),C}},t}function Lw(e,t,r,n,a,i,s){try{var o=e[i](s),l=o.value}catch(c){r(c);return}o.done?t(l):Promise.resolve(l).then(n,a)}function CF(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function s(l){Lw(i,n,a,s,o,"next",l)}function o(l){Lw(i,n,a,s,o,"throw",l)}s(void 0)})}}function AF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PF(n.key),n)}}function FF(e,t,r){return t&&OF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PF(e){var t=DF(e,"string");return Xs(t)==="symbol"?t:String(t)}function DF(e,t){if(Xs(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xs(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var RF=function(){function e(){AF(this,e)}return FF(e,[{key:"openFile",value:function(){var t=CF(Up().mark(function n(a,i){var s;return Up().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(Nw()&&a&&typeof a.uri<"u")){l.next=11;break}return l.prev=1,l.next=4,dF(a.uri);case 4:return s=l.sent,l.abrupt("return",new Mw(s));case 8:throw l.prev=8,l.t0=l.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(l.t0));case 11:if(!(typeof a.slice=="function"&&typeof a.size<"u")){l.next=13;break}return l.abrupt("return",Promise.resolve(new Mw(a)));case 13:if(typeof a.read!="function"){l.next=18;break}if(i=Number(i),Number.isFinite(i)){l.next=17;break}return l.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return l.abrupt("return",Promise.resolve(new EF(a,i)));case 18:return l.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return l.stop()}},n,null,[[1,8]])}));function r(n,a){return t.apply(this,arguments)}return r}()}]),e}();function NF(e,t){return Nw()?Promise.resolve(MF(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function MF(e,t){var r=e.exif?IF(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function IF(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function LF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jw(n.key),n)}}function jF(e,t,r){return r&&BF(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function UF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hp(e,t)}function Hp(e,t){return Hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Hp(e,t)}function HF(e){var t=$F();return function(){var n=Qf(e),a;if(t){var i=Qf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return zF(this,a)}}function zF(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WF(e)}function WF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $F(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qf(e)}function Bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bw(Object(r),!0).forEach(function(n){VF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VF(e,t,r){return t=jw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jw(e){var t=qF(e,"string");return nl(t)==="symbol"?t:String(t)}function qF(e,t){if(nl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zp=al(al({},Jf.defaultOptions),{},{httpStack:new uF,fileReader:new RF,urlStorage:aF?new iF:new JO,fingerprint:NF}),YF=function(e){UF(r,e);var t=HF(r);function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return LF(this,r),a=al(al({},zp),a),t.call(this,n,a)}return jF(r,null,[{key:"terminate",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=al(al({},zp),i),Jf.terminate(a,i)}}]),r}(Jf);function wi(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var GF=0;function Uw(e){return"__private_"+GF+++"_"+e}var mn=Uw("uppy"),Vu=Uw("events");class KF{constructor(t){Object.defineProperty(this,mn,{writable:!0,value:void 0}),Object.defineProperty(this,Vu,{writable:!0,value:[]}),wi(this,mn)[mn]=t}on(t,r){return wi(this,Vu)[Vu].push([t,r]),wi(this,mn)[mn].on(t,r)}remove(){for(const[t,r]of wi(this,Vu)[Vu].splice(0))wi(this,mn)[mn].off(t,r)}onFilePause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onFileRemove(t,r){this.on("file-removed",n=>{t===n.id&&r(n.id)})}onPause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onRetry(t,r){this.on("upload-retry",n=>{t===n&&r()})}onRetryAll(t,r){this.on("retry-all",()=>{wi(this,mn)[mn].getFile(t)&&r()})}onPauseAll(t,r){this.on("pause-all",()=>{wi(this,mn)[mn].getFile(t)&&r()})}onCancelAll(t,r){var n=this;this.on("cancel-all",function(){wi(n,mn)[mn].getFile(t)&&r(...arguments)})}onResumeAll(t,r){this.on("resume-all",()=>{wi(this,mn)[mn].getFile(t)&&r()})}}class XF extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}function ZF(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}function nt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var JF=0;function Cn(e){return"__private_"+JF+++"_"+e}function QF(e){return new Error("Cancelled",{cause:e})}function Hw(e){if(e!=null){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};(t=this.then)==null||t.call(this,n,n)}return this}var Un=Cn("activeRequests"),vn=Cn("queuedHandlers"),Hn=Cn("paused"),Zs=Cn("pauseTimer"),xn=Cn("downLimit"),Js=Cn("upperLimit"),bi=Cn("rateLimitingTimer"),qu=Cn("call"),Si=Cn("queueNext"),Wp=Cn("next"),$p=Cn("queue"),Vp=Cn("dequeue"),qp=Cn("resume"),Qs=Cn("increaseLimit");class eP{constructor(t){Object.defineProperty(this,Vp,{value:iP}),Object.defineProperty(this,$p,{value:aP}),Object.defineProperty(this,Wp,{value:nP}),Object.defineProperty(this,Si,{value:rP}),Object.defineProperty(this,qu,{value:tP}),Object.defineProperty(this,Un,{writable:!0,value:0}),Object.defineProperty(this,vn,{writable:!0,value:[]}),Object.defineProperty(this,Hn,{writable:!0,value:!1}),Object.defineProperty(this,Zs,{writable:!0,value:void 0}),Object.defineProperty(this,xn,{writable:!0,value:1}),Object.defineProperty(this,Js,{writable:!0,value:void 0}),Object.defineProperty(this,bi,{writable:!0,value:void 0}),Object.defineProperty(this,qp,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,Qs,{writable:!0,value:()=>{if(nt(this,Hn)[Hn]){nt(this,bi)[bi]=setTimeout(nt(this,Qs)[Qs],0);return}nt(this,xn)[xn]=this.limit,this.limit=Math.ceil((nt(this,Js)[Js]+nt(this,xn)[xn])/2);for(let r=nt(this,xn)[xn];r<=this.limit;r++)nt(this,Si)[Si]();nt(this,Js)[Js]-nt(this,xn)[xn]>3?nt(this,bi)[bi]=setTimeout(nt(this,Qs)[Qs],2e3):nt(this,xn)[xn]=Math.floor(nt(this,xn)[xn]/2)}}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,r){return!nt(this,Hn)[Hn]&&nt(this,Un)[Un]<this.limit?nt(this,qu)[qu](t):nt(this,$p)[$p](t,r)}wrapSyncFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];const o=n.run(()=>(t(...i),queueMicrotask(()=>o.done()),()=>{}),r);return{abortOn:Hw,abort(){o.abort()}}}}wrapPromiseFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];let o;const l=new Promise((c,d)=>{o=n.run(()=>{let p,g;try{g=Promise.resolve(t(...i))}catch(v){g=Promise.reject(v)}return g.then(v=>{p?d(p):(o.done(),c(v))},v=>{p?d(p):(o.done(),d(v))}),v=>{p=QF(v)}},r)});return l.abort=c=>{o.abort(c)},l.abortOn=Hw,l}}resume(){nt(this,Hn)[Hn]=!1,clearTimeout(nt(this,Zs)[Zs]);for(let t=0;t<this.limit;t++)nt(this,Si)[Si]()}pause(t){t===void 0&&(t=null),nt(this,Hn)[Hn]=!0,clearTimeout(nt(this,Zs)[Zs]),t!=null&&(nt(this,Zs)[Zs]=setTimeout(nt(this,qp)[qp],t))}rateLimit(t){clearTimeout(nt(this,bi)[bi]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(nt(this,Js)[Js]=this.limit-1,this.limit=nt(this,xn)[xn],nt(this,bi)[bi]=setTimeout(nt(this,Qs)[Qs],t))}get isPaused(){return nt(this,Hn)[Hn]}}function tP(e){nt(this,Un)[Un]+=1;let t=!1,r;try{r=e()}catch(n){throw nt(this,Un)[Un]-=1,n}return{abort:n=>{t||(t=!0,nt(this,Un)[Un]-=1,r==null||r(n),nt(this,Si)[Si]())},done:()=>{t||(t=!0,nt(this,Un)[Un]-=1,nt(this,Si)[Si]())}}}function rP(){queueMicrotask(()=>nt(this,Wp)[Wp]())}function nP(){if(nt(this,Hn)[Hn]||nt(this,Un)[Un]>=this.limit||nt(this,vn)[vn].length===0)return;const e=nt(this,vn)[vn].shift();if(e==null)throw new Error("Invariant violation: next is null");const t=nt(this,qu)[qu](e.fn);e.abort=t.abort,e.done=t.done}function aP(e,t){const r={fn:e,priority:(t==null?void 0:t.priority)||0,abort:()=>{nt(this,Vp)[Vp](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=nt(this,vn)[vn].findIndex(a=>r.priority>a.priority);return n===-1?nt(this,vn)[vn].push(r):nt(this,vn)[vn].splice(n,0,r),r}function iP(e){const t=nt(this,vn)[vn].indexOf(e);t!==-1&&nt(this,vn)[vn].splice(t,1)}function Yp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sP(e){const t=r=>"error"in r&&!!r.error;return e.filter(r=>!t(r))}function oP(e){return e.filter(t=>{var r;return!((r=t.progress)!=null&&r.uploadStarted)||!t.isRestored})}function lP(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")}function uP(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"}function cP(e){return(t,r)=>{if(lP()||uP())return zp.fingerprint(t,r);const n=["tus",e.id,r.endpoint].join("-");return Promise.resolve(n)}}function eo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fP=0;function Yu(e){return"__private_"+fP+++"_"+e}const dP={version:"3.5.5"},zw={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},hP={limit:20,retryDelays:zw.retryDelays,withCredentials:!1};var Gu=Yu("retryDelayIterator"),Gp=Yu("uploadLocalFile"),Kp=Yu("getCompanionClientArgs"),Xp=Yu("uploadFiles"),Ku=Yu("handleUpload");class Ww extends dO{constructor(t,r){var n,a;if(super(t,{...hP,...r}),Object.defineProperty(this,Xp,{value:mP}),Object.defineProperty(this,Kp,{value:gP}),Object.defineProperty(this,Gp,{value:pP}),Object.defineProperty(this,Gu,{writable:!0,value:void 0}),Object.defineProperty(this,Ku,{writable:!0,value:async i=>{if(i.length===0){this.uppy.log("[Tus] No files to upload");return}this.opts.limit===0&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const s=this.uppy.getFilesByIds(i);await eo(this,Xp)[Xp](s)}}),this.type="uploader",this.id=this.opts.id||"Tus",(r==null?void 0:r.allowedMetaFields)===void 0&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in r)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=(n=this.opts.rateLimitedQueue)!=null?n:new eP(this.opts.limit),eo(this,Gu)[Gu]=(a=this.opts.retryDelays)==null?void 0:a.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const t={...this.uppy.getState().files};Object.keys(t).forEach(r=>{var n;if((n=t[r])!=null&&(n=n.tus)!=null&&n.uploadUrl){const a={...t[r].tus};delete a.uploadUrl,t[r]={...t[r],tus:a}}}),this.uppy.setState({files:t})}resetUploaderReferences(t,r){const n=this.uploaders[t];n&&(n.abort(),r!=null&&r.abort&&n.abort(!0),this.uploaders[t]=null),this.uploaderEvents[t]&&(this.uploaderEvents[t].remove(),this.uploaderEvents[t]=null)}onReceiveUploadUrl(t,r){const n=this.uppy.getFile(t.id);n&&(!n.tus||n.tus.uploadUrl!==r)&&(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(n.id,{tus:{...n.tus,uploadUrl:r}}))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(eo(this,Ku)[Ku]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(eo(this,Ku)[Ku])}}function pP(e){var t=this;return this.resetUploaderReferences(e.id),new Promise((r,n)=>{let a,i,s;const o={...this.opts,...e.tus||{}};typeof o.headers=="function"&&(o.headers=o.headers(e));const{onShouldRetry:l,onBeforeRequest:c,...d}=o,p={...zw,...d};p.fingerprint=cP(e),p.onBeforeRequest=async E=>{const T=E.getUnderlyingObject();T.withCredentials=!!o.withCredentials;let b;if(typeof c=="function"&&(b=c(E,e)),Yp(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();let h;const m=new Promise(x=>{h=x});a=this.requests.run(()=>(e.isPaused&&a.abort(),h(),()=>{})),await Promise.all([m,b]);return}return b},p.onError=E=>{var T;this.uppy.log(E);const b=E.originalRequest!=null?E.originalRequest.getUnderlyingObject():null;ZF(b)&&(E=new XF(E,b)),this.resetUploaderReferences(e.id),(T=a)==null||T.abort(),this.uppy.emit("upload-error",e,E),typeof o.onError=="function"&&o.onError(E),n(E)},p.onProgress=(E,T)=>{this.onReceiveUploadUrl(e,s.url),typeof o.onProgress=="function"&&o.onProgress(E,T),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:E,bytesTotal:T})},p.onSuccess=()=>{var E;const T={uploadURL:(E=s.url)!=null?E:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),a.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),T),s.url){const{name:b}=s.file;this.uppy.log(`Download ${b} from ${s.url}`)}typeof o.onSuccess=="function"&&o.onSuccess(),r(s)};const g=E=>{var T;const b=E==null||(T=E.originalResponse)==null?void 0:T.getStatus();if(b===429){if(!this.requests.isPaused){var h;const m=(h=eo(this,Gu)[Gu])==null?void 0:h.next();if(m==null||m.done)return!1;this.requests.rateLimit(m.value)}}else{if(b!=null&&b>400&&b<500&&b!==409&&b!==423)return!1;typeof navigator<"u"&&navigator.onLine===!1&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",()=>{this.requests.resume()},{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};l!=null?p.onShouldRetry=(E,T)=>l(E,T,o,g):p.onShouldRetry=g;const v=(E,T,b)=>{Yp(E,T)&&!Yp(E,b)&&(E[b]=E[T])},y={};(Array.isArray(o.allowedMetaFields)?o.allowedMetaFields:Object.keys(e.meta)).forEach(E=>{y[E]=String(e.meta[E])}),v(y,"type","filetype"),v(y,"name","filename"),p.metadata=y,s=new YF(e.data,p),this.uploaders[e.id]=s;const C=new KF(this.uppy);this.uploaderEvents[e.id]=C,i=()=>(e.isPaused||s.start(),()=>{}),s.findPreviousUploads().then(E=>{const T=E[0];T&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${T.creationTime}`),s.resumeFromPreviousUpload(T))}),a=this.requests.run(i),C.onFileRemove(e.id,E=>{a.abort(),this.resetUploaderReferences(e.id,{abort:!!s.url}),r(`upload ${E} was removed`)}),C.onPause(e.id,E=>{a.abort(),E?s.abort():a=this.requests.run(i)}),C.onPauseAll(e.id,()=>{a.abort(),s.abort()}),C.onCancelAll(e.id,function(E){let{reason:T}=E===void 0?{}:E;T==="user"&&(a.abort(),t.resetUploaderReferences(e.id,{abort:!!s.url})),r(`upload ${e.id} was canceled`)}),C.onResumeAll(e.id,()=>{a.abort(),e.error&&s.abort(),a=this.requests.run(i)})}).catch(r=>{throw this.uppy.emit("upload-error",e,r),r})}function gP(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),typeof r.headers=="function"&&(r.headers=r.headers(e)),{...(t=e.remote)==null?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function mP(e){const t=sP(e),r=oP(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map(n=>{if(n.isRemote){const a=()=>this.requests,i=new AbortController,s=l=>{l.id===n.id&&i.abort()};this.uppy.on("file-removed",s);const o=this.uppy.getRequestClientForFile(n).uploadRemoteFile(n,eo(this,Kp)[Kp](n),{signal:i.signal,getQueue:a});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",s)},{priority:-1})(),o}return eo(this,Gp)[Gp](n)}))}Ww.VERSION=dP.version;var Zp,$w;function vP(){return $w||($w=1,Zp=function(){var t={},r=t._fns={};t.emit=function(s,o,l,c,d,p,g){var v=n(s);v.length&&a(s,v,[o,l,c,d,p,g])},t.on=function(s,o){r[s]||(r[s]=[]),r[s].push(o)},t.once=function(s,o){function l(){o.apply(this,arguments),t.off(s,l)}this.on(s,l)},t.off=function(s,o){var l=[];if(s&&o){var c=this._fns[s],d=0,p=c?c.length:0;for(d;d<p;d++)c[d]!==o&&l.push(c[d])}l.length?this._fns[s]=l:delete this._fns[s]};function n(i){var s=r[i]?r[i]:[],o=i.indexOf(":"),l=o===-1?[i]:[i.substring(0,o),i.substring(o+1)],c=Object.keys(r),d=0,p=c.length;for(d;d<p;d++){var g=c[d];if(g==="*"&&(s=s.concat(r[g])),l.length===2&&l[0]===g){s=s.concat(r[g]);break}}return s}function a(i,s,o){var l=0,c=s.length;for(l;l<c&&s[l];l++)s[l].event=i,s[l].apply(s[l],o)}return t}),Zp}var xP=vP();const _P=hn(xP);let yP="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",wP=(e=21)=>{let t="",r=e;for(;r--;)t+=yP[Math.random()*64|0];return t};function ed(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bP=0;function Vw(e){return"__private_"+bP+++"_"+e}const SP={version:"3.2.2"};var to=Vw("callbacks"),Jp=Vw("publish");class qw{constructor(){Object.defineProperty(this,Jp,{value:kP}),this.state={},Object.defineProperty(this,to,{writable:!0,value:new Set})}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,ed(this,Jp)[Jp](r,n,t)}subscribe(t){return ed(this,to)[to].add(t),()=>{ed(this,to)[to].delete(t)}}}function kP(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ed(this,to)[to].forEach(n=>{n(...t)})}qw.VERSION=SP.version;function Yw(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const Gw={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Kw(e){var t;if(e.type)return e.type;const r=e.name?(t=Yw(e.name).extension)==null?void 0:t.toLowerCase():null;return r&&r in Gw?Gw[r]:"application/octet-stream"}function TP(e){return e.charCodeAt(0).toString(32)}function Xw(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${TP(r)}`,"/"))+t}function EP(e,t){let r=t||"uppy";return typeof e.name=="string"&&(r+=`-${Xw(e.name.toLowerCase())}`),e.type!==void 0&&(r+=`-${e.type}`),e.meta&&typeof e.meta.relativePath=="string"&&(r+=`-${Xw(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(r+=`-${e.data.size}`),e.data.lastModified!==void 0&&(r+=`-${e.data.lastModified}`),r}function CP(e){return!e.isRemote||!e.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}function AP(e,t){if(CP(e))return e.id;const r=Kw(e);return EP({...e,type:r},t)}function OP(e){if(e==null&&typeof navigator<"u"&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1].split(".",2),a=parseInt(n[0],10),i=parseInt(n[1],10);return a<15||a===15&&i<15063||a>18||a===18&&i>=18218}function FP(e,t){return t.name?t.name:e.split("/")[0]==="image"?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}function Qp(e){return e<10?`0${e}`:e.toString()}function td(){const e=new Date,t=Qp(e.getHours()),r=Qp(e.getMinutes()),n=Qp(e.getSeconds());return`${t}:${r}:${n}`}const PP={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${td()}]`,...t)}},DP={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${td()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${td()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${td()}]`,...t)}};var eg,Zw;function RP(){return Zw||(Zw=1,eg=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);const r=t<0;let n=Math.abs(t);if(r&&(n=-n),n===0)return"0 B";const a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.min(Math.floor(Math.log(n)/Math.log(1024)),a.length-1),s=Number(n/1024**i),o=a[i];return`${s>=10||s%1===0?Math.round(s):s.toFixed(1)} ${o}`}),eg}var NP=RP();const rd=hn(NP);var tg,Jw;function MP(){if(Jw)return tg;Jw=1;function e(t,r){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=r,this.parts=t.split(r)}return e.prototype.match=function(t){var r=!0,n=this.parts,a,i=n.length,s;if(typeof t=="string"||t instanceof String)if(!this.hasWild&&this.text!=t)r=!1;else{for(s=(t||"").split(this.separator),a=0;r&&a<i;a++)n[a]!=="*"&&(a<s.length?r=n[a]===s[a]:r=!1);r=r&&s}else if(typeof t.splice=="function")for(r=[],a=t.length;a--;)this.match(t[a])&&(r[r.length]=t[a]);else if(typeof t=="object"){r={};for(var o in t)this.match(o)&&(r[o]=t[o])}return r},tg=function(t,r,n){var a=new e(t,n||/[\/\.]/);return typeof r<"u"?a.match(r):a},tg}var rg,Qw;function IP(){if(Qw)return rg;Qw=1;var e=MP(),t=/[\/\+\.]/;return rg=function(r,n){function a(i){var s=e(i,r,t);return s&&s.length>=2}return n?a(n.split(";")[0]):a},rg}var LP=IP();const BP=hn(LP),jP={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Na extends Error{constructor(t,r){var n;super(t),this.isRestriction=!0,this.isUserFacing=(n=r==null?void 0:r.isUserFacing)!=null?n:!0,r!=null&&r.file&&(this.file=r.file)}}class UP{constructor(t,r){this.getI18n=r,this.getOpts=()=>{var n;const a=t();if(((n=a.restrictions)==null?void 0:n.allowedFileTypes)!=null&&!Array.isArray(a.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return a}}validateAggregateRestrictions(t,r){const{maxTotalFileSize:n,maxNumberOfFiles:a}=this.getOpts().restrictions;if(a&&t.filter(s=>!s.isGhost).length+r.length>a)throw new Na(`${this.getI18n()("youCanOnlyUploadX",{smart_count:a})}`);if(n){const i=[...t,...r].reduce((s,o)=>{var l;return s+((l=o.size)!=null?l:0)},0);if(i>n)throw new Na(this.getI18n()("aggregateExceedsSize",{sizeAllowed:rd(n),size:rd(i)}))}}validateSingleFile(t){const{maxFileSize:r,minFileSize:n,allowedFileTypes:a}=this.getOpts().restrictions;if(a&&!a.some(s=>s.includes("/")?t.type?BP(t.type.replace(/;.*?$/,""),s):!1:s[0]==="."&&t.extension?t.extension.toLowerCase()===s.slice(1).toLowerCase():!1)){const s=a.join(", ");throw new Na(this.getI18n()("youCanOnlyUploadFileTypes",{types:s}),{file:t})}if(r&&t.size!=null&&t.size>r)throw new Na(this.getI18n()("exceedsSize",{size:rd(r),file:t.name}),{file:t});if(n&&t.size!=null&&t.size<n)throw new Na(this.getI18n()("inferiorSize",{size:rd(n)}),{file:t})}validate(t,r){r.forEach(n=>{this.validateSingleFile(n)}),this.validateAggregateRestrictions(t,r)}validateMinNumberOfFiles(t){const{minNumberOfFiles:r}=this.getOpts().restrictions;if(r&&Object.keys(t).length<r)throw new Na(this.getI18n()("youHaveToAtLeastSelectX",{smart_count:r}))}getMissingRequiredMetaFields(t){const r=new Na(this.getI18n()("missingRequiredMetaFieldOnFile",{fileName:t.name})),{requiredMetaFields:n}=this.getOpts().restrictions,a=[];for(const i of n)(!Object.hasOwn(t.meta,i)||t.meta[i]==="")&&a.push(i);return{missingFields:a,error:r}}}const HP={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},aggregateExceedsSize:"You selected %{size} of files, but maximum allowed size is %{sizeAllowed}",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",unnamed:"Unnamed"}};let eb,tb;function Ve(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zP=0;function _r(e){return"__private_"+zP+++"_"+e}const WP={version:"3.13.1"},nd={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var Vr=_r("plugins"),zn=_r("restricter"),Xu=_r("storeUnsubscribe"),ki=_r("emitter"),ro=_r("preProcessors"),no=_r("uploaders"),Ti=_r("postProcessors"),Wn=_r("informAndEmit"),Zu=_r("checkRequiredMetaFieldsOnFile"),ng=_r("checkRequiredMetaFields"),Ju=_r("assertNewUploadAllowed"),ag=_r("transformFile"),Qu=_r("startIfAutoProceed"),ec=_r("checkAndUpdateFileState"),ig=_r("addListeners"),Ma=_r("updateOnlineStatus"),tc=_r("requestClientById"),Ei=_r("createUpload"),sg=_r("getUpload"),ao=_r("removeUpload"),Ci=_r("runUpload");eb=Symbol.for("uppy test: getPlugins"),tb=Symbol.for("uppy test: createUpload");class ad{constructor(t){Object.defineProperty(this,Ci,{value:tD}),Object.defineProperty(this,ao,{value:eD}),Object.defineProperty(this,sg,{value:QP}),Object.defineProperty(this,Ei,{value:JP}),Object.defineProperty(this,ig,{value:ZP}),Object.defineProperty(this,ec,{value:XP}),Object.defineProperty(this,Qu,{value:KP}),Object.defineProperty(this,ag,{value:GP}),Object.defineProperty(this,Ju,{value:YP}),Object.defineProperty(this,ng,{value:qP}),Object.defineProperty(this,Zu,{value:VP}),Object.defineProperty(this,Wn,{value:$P}),Object.defineProperty(this,Vr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,zn,{writable:!0,value:void 0}),Object.defineProperty(this,Xu,{writable:!0,value:void 0}),Object.defineProperty(this,ki,{writable:!0,value:_P()}),Object.defineProperty(this,ro,{writable:!0,value:new Set}),Object.defineProperty(this,no,{writable:!0,value:new Set}),Object.defineProperty(this,Ti,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=yA((a,i)=>{const s=this.getFile(a==null?void 0:a.id);if(a==null||!s){this.log(`Not setting progress for a file that has been removed: ${a==null?void 0:a.id}`);return}if(s.progress.percentage===100){this.log(`Not setting progress for a file that has been already uploaded: ${a.id}`);return}const o=Number.isFinite(i.bytesTotal)&&i.bytesTotal>0;this.setFileState(a.id,{progress:{...s.progress,bytesUploaded:i.bytesUploaded,bytesTotal:i.bytesTotal,percentage:o?Math.round(i.bytesUploaded/i.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,Ma,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,tc,{writable:!0,value:new Map}),this.defaultLocale=HP;const r={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:jP,meta:{},onBeforeFileAdded:(a,i)=>!Object.hasOwn(i,a.id),onBeforeUpload:a=>a,store:new qw,logger:PP,infoTimeout:5e3},n={...r,...t};this.opts={...n,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=DP),this.log(`Using Core v${ad.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...nd,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:OP(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),Ve(this,zn)[zn]=new UP(()=>this.opts,()=>this.i18n),Ve(this,Xu)[Xu]=this.store.subscribe((a,i,s)=>{this.emit("state-update",a,i,s),this.updateAll(i)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Ve(this,ig)[ig]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];Ve(this,ki)[ki].emit(t,...n)}on(t,r){return Ve(this,ki)[ki].on(t,r),this}once(t,r){return Ve(this,ki)[ki].once(t,r),this}off(t,r){return Ve(this,ki)[ki].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}patchFilesState(t){const r=this.getState().files;this.setState({files:{...r,...Object.fromEntries(Object.entries(t).map(n=>{let[a,i]=n;return[a,{...r[a],...i}]}))}})}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.patchFilesState({[t]:r})}i18nInit(){const t=n=>this.log(`Missing i18n string: ${n}`,"error"),r=new Jy([this.defaultLocale,this.opts.locale],{onMissingKey:t});this.i18n=r.translate.bind(r),this.i18nArray=r.translateArray.bind(r),this.locale=r.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t==null?void 0:t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions(t)}),this.setState(void 0)}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(a=>{n[a]={...r[a],progress:{...r[a].progress,...t}}}),this.setState({files:n,...nd}),this.emit("reset-progress")}clearUploadedFiles(){const{capabilities:t,currentUploads:r}=this.getState();if(Object.keys(r).length>0&&!t.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");this.setState({...nd,files:{}})}addPreProcessor(t){Ve(this,ro)[ro].add(t)}removePreProcessor(t){return Ve(this,ro)[ro].delete(t)}addPostProcessor(t){Ve(this,Ti)[Ti].add(t)}removePostProcessor(t){return Ve(this,Ti)[Ti].delete(t)}addUploader(t){Ve(this,no)[no].add(t)}removeUploader(t){return Ve(this,no)[no].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(a=>{n[a]={...n[a],meta:{...n[a].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const a={...n[t].meta,...r};n[t]={...n[t],meta:a},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getFilesByIds(t){return t.map(r=>this.getFile(r))}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),a=Object.values(t),i=[],s=[],o=[],l=[],c=[],d=[],p=[],g=[],v=[];for(const y of a){const{progress:_}=y;!_.uploadComplete&&_.uploadStarted&&(i.push(y),y.isPaused||g.push(y)),_.uploadStarted||s.push(y),(_.uploadStarted||_.preprocess||_.postprocess)&&o.push(y),_.uploadStarted&&l.push(y),y.isPaused&&c.push(y),_.uploadComplete&&d.push(y),y.error&&p.push(y),(_.preprocess||_.postprocess)&&v.push(y)}return{newFiles:s,startedFiles:o,uploadStartedFiles:l,pausedFiles:c,completeFiles:d,erroredFiles:p,inProgressFiles:i,inProgressNotPausedFiles:g,processingFiles:v,isUploadStarted:l.length>0,isAllComplete:r===100&&d.length===a.length&&v.length===0,isAllErrored:!!n&&p.length===a.length,isAllPaused:i.length!==0&&c.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:a.some(y=>y.isGhost)}}validateRestrictions(t,r){r===void 0&&(r=this.getFiles());try{Ve(this,zn)[zn].validate(r,[t])}catch(n){return n}return null}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!!(r[t]&&!r[t].isGhost)}addFile(t){Ve(this,Ju)[Ju](t);const{nextFilesState:r,validFilesToAdd:n,errors:a}=Ve(this,ec)[ec]([t]),i=a.filter(o=>o.isRestriction);if(Ve(this,Wn)[Wn](i),a.length>0)throw a[0];this.setState({files:r});const[s]=n;return this.emit("file-added",s),this.emit("files-added",n),this.log(`Added file: ${s.name}, ${s.id}, mime type: ${s.type}`),Ve(this,Qu)[Qu](),s.id}addFiles(t){Ve(this,Ju)[Ju]();const{nextFilesState:r,validFilesToAdd:n,errors:a}=Ve(this,ec)[ec](t),i=a.filter(o=>o.isRestriction);Ve(this,Wn)[Wn](i);const s=a.filter(o=>!o.isRestriction);if(s.length>0){let o=`Multiple errors occurred while adding files:
283
+ `;if(s.forEach(l=>{o+=`
284
+ * ${l.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:s.length}),details:o},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(s,o);{const l=new Error(o);throw l.errors=s,l}}this.setState({files:r}),n.forEach(o=>{this.emit("file-added",o)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.values(n).forEach(o=>{this.log(`Added file: ${o.name}
285
+ id: ${o.id}
286
+ type: ${o.type}`)}),n.length>0&&Ve(this,Qu)[Qu]()}removeFiles(t,r){const{files:n,currentUploads:a}=this.getState(),i={...n},s={...a},o=Object.create(null);t.forEach(p=>{n[p]&&(o[p]=n[p],delete i[p])});function l(p){return o[p]===void 0}Object.keys(s).forEach(p=>{const g=a[p].fileIDs.filter(l);if(g.length===0){delete s[p];return}const{capabilities:v}=this.getState();if(g.length!==a[p].fileIDs.length&&!v.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");s[p]={...a[p],fileIDs:g}});const c={currentUploads:s,files:i};Object.keys(i).length===0&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();const d=Object.keys(o);d.forEach(p=>{this.emit("file-removed",o[p],r)}),d.length>5?this.log(`Removed ${d.length} files`):this.log(`Removed files: ${d.join(", ")}`)}removeFile(t,r){this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).progress.uploadComplete)return;const n=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!0};t[n]=a}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!1,error:null};t[n]=a}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(a=>t[a].error);if(r.forEach(a=>{const i={...t[a],isPaused:!1,error:null};t[a]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=Ve(this,Ei)[Ei](r,{forceAllowNewUpload:!0});return Ve(this,Ci)[Ci](n)}cancelAll(t){let{reason:r="user"}=t===void 0?{}:t;if(this.emit("cancel-all",{reason:r}),r==="user"){const{files:n}=this.getState(),a=Object.keys(n);a.length&&this.removeFiles(a,"cancel-all"),this.setState(nd)}}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=Ve(this,Ei)[Ei]([t],{forceAllowNewUpload:!0});return Ve(this,Ci)[Ci](r)}logout(){this.iteratePlugins(t=>{var r;(r=t.provider)==null||r.logout==null||r.logout()})}calculateTotalProgress(){const r=this.getFiles().filter(c=>c.progress.uploadStarted||c.progress.preprocess||c.progress.postprocess);if(r.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const n=r.filter(c=>c.progress.bytesTotal!=null),a=r.filter(c=>c.progress.bytesTotal==null);if(n.length===0){const c=r.length*100,d=a.reduce((g,v)=>g+v.progress.percentage,0),p=Math.round(d/c*100);this.setState({totalProgress:p});return}let i=n.reduce((c,d)=>{var p;return c+((p=d.progress.bytesTotal)!=null?p:0)},0);const s=i/n.length;i+=s*a.length;let o=0;n.forEach(c=>{o+=c.progress.bytesUploaded}),a.forEach(c=>{o+=s*(c.progress.percentage||0)/100});let l=i===0?0:Math.round(o/i*100);l>100&&(l=100),this.setState({totalProgress:l}),this.emit("progress",l)}updateOnlineStatus(){var t;((t=window.navigator.onLine)!=null?t:!0)?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function"){const s=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(s)}const n=new t(this,r),a=n.id;if(!a)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(a);if(i){const s=`Already found a plugin named '${i.id}'. Tried to use: '${a}'.
287
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(s)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in Ve(this,Vr)[Vr]?Ve(this,Vr)[Vr][n.type].push(n):Ve(this,Vr)[Vr][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(t){for(const r of Object.values(Ve(this,Vr)[Vr])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[eb](t){return Ve(this,Vr)[Vr][t]}iteratePlugins(t){Object.values(Ve(this,Vr)[Vr]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=Ve(this,Vr)[Vr][t.type],n=r.findIndex(s=>s.id===t.id);n!==-1&&r.splice(n,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(t){let{reason:r}=t===void 0?{}:t;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:r}),Ve(this,Xu)[Xu](),this.iteratePlugins(n=>{this.removePlugin(n)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Ve(this,Ma)[Ma]),window.removeEventListener("offline",Ve(this,Ma)[Ma]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const a=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:a?t.message:t,details:a?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t);break}}registerRequestClient(t,r){Ve(this,tc)[tc].set(t,r)}getRequestClientForFile(t){if(!t.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${t.id}`);const r=Ve(this,tc)[tc].get(t.remote.requestClientId);if(r==null)throw new Error(`requestClientId "${t.remote.requestClientId}" not registered for file "${t.id}"`);return r}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Ve(this,Ci)[Ci](t):(Ve(this,ao)[ao](t),Promise.reject(new Error("Nonexistent upload")))}[tb](){return Ve(this,Ei)[Ei](...arguments)}addResultData(t,r){if(!Ve(this,sg)[sg](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:n}=this.getState(),a={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:a}})}upload(){var t;(t=Ve(this,Vr)[Vr].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>Ve(this,zn)[zn].validateMinNumberOfFiles(r)).catch(a=>{throw Ve(this,Wn)[Wn]([a]),a}).then(()=>{if(!Ve(this,ng)[ng](r))throw new Na(this.i18n("missingRequiredMetaField"))}).catch(a=>{throw a}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(l=>l.fileIDs),s=[];Object.keys(r).forEach(l=>{const c=this.getFile(l);!c.progress.uploadStarted&&i.indexOf(l)===-1&&s.push(c.id)});const o=Ve(this,Ei)[Ei](s);return Ve(this,Ci)[Ci](o)}).catch(a=>{throw this.emit("error",a),this.log(a,"error"),a}))}}function $P(e){for(const i of e)i.isRestriction?this.emit("restriction-failed",i.file,i):this.emit("error",i,i.file),this.log(i,"warning");const t=e.filter(i=>i.isUserFacing),r=4,n=t.slice(0,r),a=t.slice(r);n.forEach(i=>{let{message:s,details:o=""}=i;this.info({message:s,details:o},"error",this.opts.infoTimeout)}),a.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:a.length})})}function VP(e){const{missingFields:t,error:r}=Ve(this,zn)[zn].getMissingRequiredMetaFields(e);return t.length>0?(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),!1):!0}function qP(e){let t=!0;for(const r of Object.values(e))Ve(this,Zu)[Zu](r)||(t=!1);return t}function YP(e){const{allowNewUpload:t}=this.getState();if(t===!1){const r=new Na(this.i18n("noMoreFilesAllowed"),{file:e});throw Ve(this,Wn)[Wn]([r]),r}}function GP(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=Kw(t),n=FP(r,t),a=Yw(n).extension,i=AP(t,this.getID()),s=t.meta||{};s.name=n,s.type=r;const o=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:a||"",meta:{...this.getState().meta,...s},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:o,uploadComplete:!1,uploadStarted:null},size:o,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function KP(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function XP(e){const{files:t}=this.getState(),r={...t},n=[],a=[];for(const s of e)try{var i;let o=Ve(this,ag)[ag](s);const l=(i=t[o.id])==null?void 0:i.isGhost;l&&(o={...t[o.id],isGhost:!1,data:s.data},this.log(`Replaced the blob in the restored ghost file: ${o.name}, ${o.id}`));const c=this.opts.onBeforeFileAdded(o,r);if(!c&&this.checkIfFileAlreadyExists(o.id))throw new Na(this.i18n("noDuplicates",{fileName:o.name}),{file:s});if(c===!1&&!l)throw new Na("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:s});typeof c=="object"&&c!==null&&(o=c),Ve(this,zn)[zn].validateSingleFile(o),r[o.id]=o,n.push(o)}catch(o){a.push(o)}try{Ve(this,zn)[zn].validateAggregateRestrictions(Object.values(t),n)}catch(s){return a.push(s),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:r,validFilesToAdd:n,errors:a}}function ZP(){const e=(n,a,i)=>{let s=n.message||"Unknown error";n.details&&(s+=` ${n.details}`),this.setState({error:s}),a!=null&&a.id in this.getState().files&&this.setFileState(a.id,{error:s,response:i})};this.on("error",e),this.on("upload-error",(n,a,i)=>{if(e(a,n,i),typeof a=="object"&&a.message){var s;this.log(a.message,"error");const o=new Error(this.i18n("failedToUpload",{file:(s=n==null?void 0:n.name)!=null?s:""}));o.isUserFacing=!0,o.details=a.message,a.details&&(o.details+=` ${a.details}`),Ve(this,Wn)[Wn]([o])}else Ve(this,Wn)[Wn]([a])});let t=null;this.on("upload-stalled",(n,a)=>{const{message:i}=n,s=a.map(o=>o.meta.name).join(", ");t||(this.info({message:i,details:s},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${i} ${s}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const r=n=>{const a=n.filter(s=>{const o=s!=null&&this.getFile(s.id);return o||this.log(`Not setting progress for a file that has been removed: ${s==null?void 0:s.id}`),o}),i=Object.fromEntries(a.map(s=>[s.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:s.size}}]));this.patchFilesState(i)};this.on("upload-start",n=>{n.forEach(a=>{this.emit("upload-started",a)}),r(n)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const i=this.getFile(n.id).progress;this.setFileState(n.id,{progress:{...i,postprocess:Ve(this,Ti)[Ti].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:a,uploadURL:a.uploadURL,isPaused:!1}),n.size==null&&this.setFileState(n.id,{size:a.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getFile(n.id).progress,preprocess:a}})}),this.on("preprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.preprocess,this.setState({files:a})}),this.on("postprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getState().files[n.id].progress,postprocess:a}})}),this.on("postprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.postprocess,this.setState({files:a})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",n=>{n&&Ve(this,Zu)[Zu](n)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Ve(this,Ma)[Ma]),window.addEventListener("offline",Ve(this,Ma)[Ma]),setTimeout(Ve(this,Ma)[Ma],3e3))}function JP(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=wP();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...a,[i]:{fileIDs:e,step:0,result:{}}}}),i}function QP(e){const{currentUploads:t}=this.getState();return t[e]}function eD(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function tD(e){const t=()=>{const{currentUploads:i}=this.getState();return i[e]};let r=t();const n=[...Ve(this,ro)[ro],...Ve(this,no)[no],...Ve(this,Ti)[Ti]];try{for(let i=r.step||0;i<n.length&&r;i++){const s=n[i];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:i}}});const{fileIDs:o}=r;await s(o,e),r=t()}}catch(i){throw Ve(this,ao)[ao](e),i}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const i=r.fileIDs.map(l=>this.getFile(l)),s=i.filter(l=>!l.error),o=i.filter(l=>l.error);this.addResultData(e,{successful:s,failed:o,uploadID:e}),r=t()}let a;return r&&(a=r.result,this.emit("complete",a),Ve(this,ao)[ao](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}ad.VERSION=WP.version;function rD(e,t){if(!t)return e;for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=new RegExp(`{(${r})+}`,"g");e=e.replace(n,t[r])}return e}const nD=(e,t={},r)=>rD(t.placeholder||"",t.variate),ie=(e,t,r)=>nD(e,t),rb=ae.forwardRef((e,t)=>{const[r,n]=ae.useState("write"),a=ae.useRef(null),[i,{toggleFullscreen:s}]=Iy(a),o=new oO.Converter({tables:!0,simplifiedAutoLink:!0,strikethrough:!0,tasklists:!0}),l={name:"full",icon:()=>R.jsx(lt,{onClick:()=>{},className:hr.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:v=>{s()}},c={name:"paste",icon:()=>R.jsx(lt,{onClick:()=>{},className:hr.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:v=>{}},d={name:"min",icon:()=>R.jsx(lt,{onClick:()=>{},className:hr.markIcon,style:{fontSize:"13px"},type:"suoxiao"}),execute:v=>{s()}},p={name:"table",icon:()=>R.jsx(lt,{className:hr.markIcon,style:{fontSize:"13px"},type:"charubiaoge"}),execute:v=>{v.textApi.replaceSelection(`${ie("sys.columnHeader",{placeholder:"列头"})}1 | ${ie("sys.columnHeader",{placeholder:"列头"})}2 | ${ie("sys.columnHeader",{placeholder:"列头"})}3
288
+ :----------- | :-----------: | -----------:
289
+ ${ie("sys.align.left",{placeholder:"居左"})}|${ie("sys.align.center",{placeholder:"居中"})}|${ie("sys.align.right",{placeholder:"居右"})}`)}},g=async function*(v,y){const _=new ad({meta:{},debug:!1,autoProceed:!0});_.use(Ww,{endpoint:`${e.OSS_URL}`,headers:{Authorization:`${e.token}`},chunkSize:1*1024*1024,overridePatchMethod:!1,allowedMetaFields:null}).on("upload-success",(E,T)=>{e.toPostFileRecord&&e.toPostFileRecord({file:E,response:T,type:"0"})}),_.addFile({name:y.name,type:y.type,data:y,source:"Local",isRemote:!1});const C=await _.upload();return C.successful[0]?C.successful[0].uploadURL:ie("sys.fileServerError.fileServerError",{placeholder:"文件服务器错误"})};return ae.useEffect(()=>{n("write")},[e.readOnly]),R.jsxs("div",{className:Er(hr.main,e.value?hr.mdebordershow:hr.mdeborderhide,i?hr.fullscreen:{},r==="preview"?hr.mdePreview:{}),children:[R.jsx("div",{ref:a,style:{background:"white",height:"100%",width:"100%"},children:R.jsx(sA,{value:e.value,onChange:v=>{e.onChange&&e.onChange(v)},minPreviewHeight:e.height&&e.height>10?e.height-10:100,minEditorHeight:e.height||76,maxEditorHeight:e.height||76,getIcon:v=>v==="header"?R.jsx(pe.Tooltip,{title:ie("sys.title",{placeholder:"标题"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"H"})}):v==="bold"?R.jsx(pe.Tooltip,{title:ie("sys.bold.bold",{placeholder:"加粗"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"jiacu"})}):v==="italic"?R.jsx(pe.Tooltip,{title:ie("sys.italic.italic",{placeholder:"倾斜"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"qingxie"})}):v==="strikethrough"?R.jsx(pe.Tooltip,{title:ie("sys.strikethrough.strikethrough",{placeholder:"划线"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"huaxian"})}):v==="link"?R.jsx(pe.Tooltip,{title:ie("sys.link.link",{placeholder:"链接"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"lianjie"})}):v==="quote"?R.jsx(pe.Tooltip,{title:ie("sys.quote.quote",{placeholder:"引用"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"yinyong"})}):v==="code"?R.jsx(pe.Tooltip,{title:ie("sys.code.code",{placeholder:"代码"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"code"})}):v==="image"?R.jsx(pe.Tooltip,{title:ie("sys.label.image",{placeholder:"图片"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"charutupian"})}):v==="unordered-list"?R.jsx(pe.Tooltip,{title:ie("sys.unorderedList.unorderedList",{placeholder:"无序列表"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"dian"})}):v==="ordered-list"?R.jsxs(pe.Tooltip,{title:ie("sys.orderedList.orderedList",{placeholder:"有序列表"}),children:[" ",R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"shuzi"})]}):v==="checked-list"?R.jsx(pe.Tooltip,{title:ie("sys.checkedList.checkedList",{placeholder:"勾选列表"}),children:R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"gou"})}):R.jsx(lt,{onClick:()=>{},style:{fontSize:"13px"},className:hr.markIcon,type:"chakanxiangqing"}),toolbarCommands:i?[["header","bold","italic","strikethrough","link","code","table","image","ordered-list","checked-list","min"]]:[["header","bold","italic","link","code","table","image","ordered-list","checked-list","full"]],l18n:{uploadingImage:ie("sys.uploadingImage.uploadingImage",{placeholder:"正在上传图片"}),write:ie("individuality.column.operate.edit",{placeholder:"编辑"}),preview:ie("sys.action.preview",{placeholder:"预览"}),pasteDropSelect:ie("sys.label.uploadImage",{placeholder:"上传图片"})},commands:{full:l,table:p,min:d,paste:c},selectedTab:e.readOnly?"preview":r,readOnly:e.readOnly,onTabChange:v=>{n(v)},generateMarkdownPreview:v=>Promise.resolve(o.makeHtml(v)),childProps:{writeButton:{tabIndex:-1}},paste:{saveImage:g,accept:"text/plain,image/png,image/jpeg"}})}),r==="preview"||e.readOnly?R.jsx("div",{style:{position:"absolute",top:"9px",left:"110px"},children:R.jsx(lt,{onClick:()=>{s()},className:hr.markIcon,style:{fontSize:"13px"},type:"fangda"})}):R.jsx(R.Fragment,{})]})}),rc={confirmModal:"_confirmModal_begdf_1",wrapClassName:"_wrapClassName_begdf_19",notBtnIcon:"_notBtnIcon_begdf_27",qprogress:"_qprogress_begdf_33",styleUnify:"_styleUnify_begdf_38"};var id={exports:{}},aD=id.exports,nb;function iD(){return nb||(nb=1,function(e,t){(function(r,n){e.exports=n()})(aD,function(){/*! *****************************************************************************
290
+ Copyright (c) Microsoft Corporation. All rights reserved.
291
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
292
+ this file except in compliance with the License. You may obtain a copy of the
293
+ License at http://www.apache.org/licenses/LICENSE-2.0
294
+
295
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
296
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
297
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
298
+ MERCHANTABLITY OR NON-INFRINGEMENT.
299
+
300
+ See the Apache Version 2.0 License for specific language governing permissions
301
+ and limitations under the License.
302
+ ***************************************************************************** */var r=function(){return(r=Object.assign||function(p){for(var g,v=1,y=arguments.length;v<y;v++)for(var _ in g=arguments[v])Object.prototype.hasOwnProperty.call(g,_)&&(p[_]=g[_]);return p}).apply(this,arguments)};function n(p,g,v){return p<g?g:p>v?v:p}function a(p,g){var v=i(p),y=v+g;s(v,g)||(p.className=y.substring(1))}function i(p){return(" "+(p&&p.className||"")+" ").replace(/\s+/gi," ")}function s(p,g){return p.indexOf(" "+g+" ")>=0}function o(p){return String(100*(-1+p))}var l=function(){var p=["Webkit","O","Moz","ms"],g={};function v(_){return _=_.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,E){return E.toUpperCase()}),g[_]||(g[_]=function(C){var E=document.body.style;if(C in E)return C;for(var T,b=p.length,h=C.charAt(0).toUpperCase()+C.slice(1);b--;)if((T=p[b]+h)in E)return T;return C}(_))}function y(_,C,E){C=v(C),_.style[C]=E}return function(_,C){var E,T,b=arguments;if(b.length===2)for(E in C)T=C[E],C.hasOwnProperty(E)&&y(_,E,T);else y(_,b[1],b[2])}}(),c=function(){var p=[];function g(){var v=p.shift();v&&v(g)}return function(v){p.push(v),p.length===1&&g()}}();function d(p,g){var v=i(p),y="";s(v,g)&&(y=v.replace(" "+g+" "," "),p.className=y.substring(1,y.length-1))}return function(p,g){g===void 0&&(g={});var v=g.insertAt;if(typeof document<"u"){var y=document.head||document.getElementsByTagName("head")[0],_=document.createElement("style");_.type="text/css",v==="top"&&y.firstChild?y.insertBefore(_,y.firstChild):y.appendChild(_),_.styleSheet?_.styleSheet.cssText=p:_.appendChild(document.createTextNode(p))}}("#qprogress{pointer-events:none}#qprogress .bar{position:fixed;z-index:999999;top:0;left:0;width:100%;height:2px}#qprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;opacity:1;-webkit-transform:rotate(3deg) translateY(-4px);transform:rotate(3deg) translateY(-4px)}.qprogress-custom-parent{overflow:hidden;position:relative}.qprogress-custom-parent #qprogress .bar{position:absolute}#qprogress .colorful-bar{background:-webkit-gradient(linear,left top,right top,from(#1890ff),color-stop(#13c2c2),color-stop(#52c41a),color-stop(#fa8c16),color-stop(#fa541c),color-stop(#f5222d),to(#1890ff));background:linear-gradient(90deg,#1890ff,#13c2c2,#52c41a,#fa8c16,#fa541c,#f5222d,#1890ff);-webkit-animation:ins 2s linear infinite;animation:ins 2s linear infinite;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;-webkit-transform-origin:left;transform-origin:left;background-size:500%}@-webkit-keyframes ins{0%{background-position:0 0}to{background-position:125% 0}}@keyframes ins{0%{background-position:0 0}to{background-position:125% 0}}"),function(){function p(g){this.status=null,this.config=r({minimum:.12,height:2,color:"#1890ff",colorful:!0,easing:"ease",speed:400,positionUsing:"",trickle:!0,trickleSpeed:400,parentNode:"body",barSelector:'[role="bar"]',pegSelector:'[role="peg"]',template:'<div class="bar" role="bar"><div class="peg" role="peg"></div></div>'},g)}return p.prototype.set=function(g){var v=this.isStarted();g=n(g,this.config.minimum,1),this.status=g===1?null:g;var y=this.config,_=y.barSelector,C=y.speed,E=y.easing,T=y.parentNode,b=this.config.positionUsing,h=this.render(!v),m=h.querySelector(_),x=C,S=E;h.offsetWidth,c(function(A){var k,F;b===""&&(k=document.body.style,b=(F="webkitTransform"in k?"webkit":"mozTransform"in k?"moz":"msTransform"in k?"ms":"oTransform"in k?"o":"")+"Perspective"in k?"translate3d":F+"Transform"in k?"translate":"margin"),l(m,function(P,j,L,B){var U;return(U=B==="translate3d"?{transform:"translate3d("+o(P)+"%, 0, 0)"}:B==="translate"?{transform:"translate("+o(P)+"%, 0)"}:{"margin-left":o(P)+"%"}).transition="all "+j+"ms "+L,U}(g,x,S,b)),g===1?(l(h,{transition:"none",opacity:1}),h.offsetWidth,setTimeout(function(){l(h,{transition:"all "+x+"ms linear",opacity:0}),setTimeout(function(){(function(P){d(document.documentElement,"qprogress-busy"),typeof P=="string"&&P.length!==0?d(document.querySelector(P),"qprogress-custom-parent"):d(P,"qprogress-custom-parent");var j,L=document.getElementById("qprogress");L&&(j=L)&&j.parentNode&&j.parentNode.removeChild(j)})(T),A()},x)},x)):setTimeout(A,x)})},p.prototype.isStarted=function(){return typeof this.status=="number"},p.prototype.start=function(){var g=this,v=this.config,y=v.trickle,_=v.trickleSpeed;this.status||this.set(0);var C=function(){setTimeout(function(){g.status&&(g.trickle(),C())},_)};y&&C()},p.prototype.finish=function(g){(g||this.status)&&(this.inc(.3+.5*Math.random()),this.set(1))},p.prototype.trickle=function(){this.inc()},p.prototype.inc=function(g){var v=this.status;return v?v>1?void 0:(typeof g!="number"&&(g=v>=0&&v<.2?.1:v>=.2&&v<.5?.04:v>=.5&&v<.8?.02:v>=.8&&v<.99?.005:0),v=n(v+g,0,.994),this.set(v)):this.start()},p.prototype.isRendered=function(){return!!document.getElementById("qprogress")},p.prototype.render=function(g){if(this.isRendered())return document.getElementById("qprogress");a(document.documentElement,"qprogress-busy");var v=this.config,y=v.template,_=v.barSelector,C=v.pegSelector,E=v.parentNode,T=v.height,b=v.color,h=v.colorful,m=document.createElement("div");m.id="qprogress",m.innerHTML=y;var x=m.querySelector(_),S=x.querySelector(C),A=g?"-100":o(this.status||0),k=typeof E=="string"?document.querySelector(E):E;return l(x,{height:T+"px",backgroundColor:b,transition:"all 0 linear",transform:"translate3d("+A+"%, 0, 0)"}),h?x&&a(x,"colorful-bar"):l(S,{boxShadow:"0 0 10px "+b+", 0 0 5px "+b}),k!==document.body&&a(k,"qprogress-custom-parent"),k.appendChild(m),m},p}()})}(id)),id.exports}var sD=iD();const oD=hn(sD);var nc={exports:{}},og={},sd={exports:{}},od={exports:{}},jt={};/** @license React v16.13.1
303
+ * react-is.production.min.js
304
+ *
305
+ * Copyright (c) Facebook, Inc. and its affiliates.
306
+ *
307
+ * This source code is licensed under the MIT license found in the
308
+ * LICENSE file in the root directory of this source tree.
309
+ */var ab;function lD(){if(ab)return jt;ab=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function b(m){if(typeof m=="object"&&m!==null){var x=m.$$typeof;switch(x){case t:switch(m=m.type,m){case l:case c:case n:case i:case a:case p:return m;default:switch(m=m&&m.$$typeof,m){case o:case d:case y:case v:case s:return m;default:return x}}case r:return x}}}function h(m){return b(m)===c}return jt.AsyncMode=l,jt.ConcurrentMode=c,jt.ContextConsumer=o,jt.ContextProvider=s,jt.Element=t,jt.ForwardRef=d,jt.Fragment=n,jt.Lazy=y,jt.Memo=v,jt.Portal=r,jt.Profiler=i,jt.StrictMode=a,jt.Suspense=p,jt.isAsyncMode=function(m){return h(m)||b(m)===l},jt.isConcurrentMode=h,jt.isContextConsumer=function(m){return b(m)===o},jt.isContextProvider=function(m){return b(m)===s},jt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},jt.isForwardRef=function(m){return b(m)===d},jt.isFragment=function(m){return b(m)===n},jt.isLazy=function(m){return b(m)===y},jt.isMemo=function(m){return b(m)===v},jt.isPortal=function(m){return b(m)===r},jt.isProfiler=function(m){return b(m)===i},jt.isStrictMode=function(m){return b(m)===a},jt.isSuspense=function(m){return b(m)===p},jt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===i||m===a||m===p||m===g||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===v||m.$$typeof===s||m.$$typeof===o||m.$$typeof===d||m.$$typeof===C||m.$$typeof===E||m.$$typeof===T||m.$$typeof===_)},jt.typeOf=b,jt}var Ut={};/** @license React v16.13.1
310
+ * react-is.development.js
311
+ *
312
+ * Copyright (c) Facebook, Inc. and its affiliates.
313
+ *
314
+ * This source code is licensed under the MIT license found in the
315
+ * LICENSE file in the root directory of this source tree.
316
+ */var ib;function uD(){return ib||(ib=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function b(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===c||Z===i||Z===a||Z===p||Z===g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===y||Z.$$typeof===v||Z.$$typeof===s||Z.$$typeof===o||Z.$$typeof===d||Z.$$typeof===C||Z.$$typeof===E||Z.$$typeof===T||Z.$$typeof===_)}function h(Z){if(typeof Z=="object"&&Z!==null){var Ge=Z.$$typeof;switch(Ge){case t:var Ae=Z.type;switch(Ae){case l:case c:case n:case i:case a:case p:return Ae;default:var ze=Ae&&Ae.$$typeof;switch(ze){case o:case d:case y:case v:case s:return ze;default:return Ge}}case r:return Ge}}}var m=l,x=c,S=o,A=s,k=t,F=d,P=n,j=y,L=v,B=r,U=i,O=a,N=p,V=!1;function M(Z){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),q(Z)||h(Z)===l}function q(Z){return h(Z)===c}function Y(Z){return h(Z)===o}function z(Z){return h(Z)===s}function re(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return h(Z)===d}function te(Z){return h(Z)===n}function oe(Z){return h(Z)===y}function ue(Z){return h(Z)===v}function ve(Z){return h(Z)===r}function _e(Z){return h(Z)===i}function ye(Z){return h(Z)===a}function je(Z){return h(Z)===p}Ut.AsyncMode=m,Ut.ConcurrentMode=x,Ut.ContextConsumer=S,Ut.ContextProvider=A,Ut.Element=k,Ut.ForwardRef=F,Ut.Fragment=P,Ut.Lazy=j,Ut.Memo=L,Ut.Portal=B,Ut.Profiler=U,Ut.StrictMode=O,Ut.Suspense=N,Ut.isAsyncMode=M,Ut.isConcurrentMode=q,Ut.isContextConsumer=Y,Ut.isContextProvider=z,Ut.isElement=re,Ut.isForwardRef=J,Ut.isFragment=te,Ut.isLazy=oe,Ut.isMemo=ue,Ut.isPortal=ve,Ut.isProfiler=_e,Ut.isStrictMode=ye,Ut.isSuspense=je,Ut.isValidElementType=b,Ut.typeOf=h}()),Ut}var sb;function ob(){return sb||(sb=1,process.env.NODE_ENV==="production"?od.exports=lD():od.exports=uD()),od.exports}/*
317
+ object-assign
318
+ (c) Sindre Sorhus
319
+ @license MIT
320
+ */var lg,lb;function cD(){if(lb)return lg;lb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lg=a()?Object.assign:function(i,s){for(var o,l=n(i),c,d=1;d<arguments.length;d++){o=Object(arguments[d]);for(var p in o)t.call(o,p)&&(l[p]=o[p]);if(e){c=e(o);for(var g=0;g<c.length;g++)r.call(o,c[g])&&(l[c[g]]=o[c[g]])}}return l},lg}var ug,ub;function cg(){if(ub)return ug;ub=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ug=e,ug}var fg,cb;function fb(){return cb||(cb=1,fg=Function.call.bind(Object.prototype.hasOwnProperty)),fg}var dg,db;function fD(){if(db)return dg;db=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=cg(),r={},n=fb();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,o,l,c){if(process.env.NODE_ENV!=="production"){for(var d in i)if(n(i,d)){var p;try{if(typeof i[d]!="function"){var g=Error((l||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=i[d](s,d,l,o,null,t)}catch(y){p=y}if(p&&!(p instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var v=c?c():"";e("Failed "+o+" type: "+p.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},dg=a,dg}var hg,hb;function dD(){if(hb)return hg;hb=1;var e=ob(),t=cD(),r=cg(),n=fb(),a=fD(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return hg=function(o,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(q){var Y=q&&(c&&q[c]||q[d]);if(typeof Y=="function")return Y}var g="<<anonymous>>",v={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:T(),arrayOf:b,element:h(),elementType:m(),instanceOf:x,node:F(),objectOf:A,oneOf:S,oneOfType:k,shape:j,exact:L};function y(q,Y){return q===Y?q!==0||1/q===1/Y:q!==q&&Y!==Y}function _(q,Y){this.message=q,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}_.prototype=Error.prototype;function C(q){if(process.env.NODE_ENV!=="production")var Y={},z=0;function re(te,oe,ue,ve,_e,ye,je){if(ve=ve||g,ye=ye||ue,je!==r){if(l){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ge=ve+":"+ue;!Y[Ge]&&z<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Y[Ge]=!0,z++)}}return oe[ue]==null?te?oe[ue]===null?new _("The "+_e+" `"+ye+"` is marked as required "+("in `"+ve+"`, but its value is `null`.")):new _("The "+_e+" `"+ye+"` is marked as required in "+("`"+ve+"`, but its value is `undefined`.")):null:q(oe,ue,ve,_e,ye)}var J=re.bind(null,!1);return J.isRequired=re.bind(null,!0),J}function E(q){function Y(z,re,J,te,oe,ue){var ve=z[re],_e=O(ve);if(_e!==q){var ye=N(ve);return new _("Invalid "+te+" `"+oe+"` of type "+("`"+ye+"` supplied to `"+J+"`, expected ")+("`"+q+"`."),{expectedType:q})}return null}return C(Y)}function T(){return C(s)}function b(q){function Y(z,re,J,te,oe){if(typeof q!="function")return new _("Property `"+oe+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ue=z[re];if(!Array.isArray(ue)){var ve=O(ue);return new _("Invalid "+te+" `"+oe+"` of type "+("`"+ve+"` supplied to `"+J+"`, expected an array."))}for(var _e=0;_e<ue.length;_e++){var ye=q(ue,_e,J,te,oe+"["+_e+"]",r);if(ye instanceof Error)return ye}return null}return C(Y)}function h(){function q(Y,z,re,J,te){var oe=Y[z];if(!o(oe)){var ue=O(oe);return new _("Invalid "+J+" `"+te+"` of type "+("`"+ue+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return C(q)}function m(){function q(Y,z,re,J,te){var oe=Y[z];if(!e.isValidElementType(oe)){var ue=O(oe);return new _("Invalid "+J+" `"+te+"` of type "+("`"+ue+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return C(q)}function x(q){function Y(z,re,J,te,oe){if(!(z[re]instanceof q)){var ue=q.name||g,ve=M(z[re]);return new _("Invalid "+te+" `"+oe+"` of type "+("`"+ve+"` supplied to `"+J+"`, expected ")+("instance of `"+ue+"`."))}return null}return C(Y)}function S(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function Y(z,re,J,te,oe){for(var ue=z[re],ve=0;ve<q.length;ve++)if(y(ue,q[ve]))return null;var _e=JSON.stringify(q,function(je,Z){var Ge=N(Z);return Ge==="symbol"?String(Z):Z});return new _("Invalid "+te+" `"+oe+"` of value `"+String(ue)+"` "+("supplied to `"+J+"`, expected one of "+_e+"."))}return C(Y)}function A(q){function Y(z,re,J,te,oe){if(typeof q!="function")return new _("Property `"+oe+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ue=z[re],ve=O(ue);if(ve!=="object")return new _("Invalid "+te+" `"+oe+"` of type "+("`"+ve+"` supplied to `"+J+"`, expected an object."));for(var _e in ue)if(n(ue,_e)){var ye=q(ue,_e,J,te,oe+"."+_e,r);if(ye instanceof Error)return ye}return null}return C(Y)}function k(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Y=0;Y<q.length;Y++){var z=q[Y];if(typeof z!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(z)+" at index "+Y+"."),s}function re(J,te,oe,ue,ve){for(var _e=[],ye=0;ye<q.length;ye++){var je=q[ye],Z=je(J,te,oe,ue,ve,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&_e.push(Z.data.expectedType)}var Ge=_e.length>0?", expected one of type ["+_e.join(", ")+"]":"";return new _("Invalid "+ue+" `"+ve+"` supplied to "+("`"+oe+"`"+Ge+"."))}return C(re)}function F(){function q(Y,z,re,J,te){return B(Y[z])?null:new _("Invalid "+J+" `"+te+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return C(q)}function P(q,Y,z,re,J){return new _((q||"React class")+": "+Y+" type `"+z+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function j(q){function Y(z,re,J,te,oe){var ue=z[re],ve=O(ue);if(ve!=="object")return new _("Invalid "+te+" `"+oe+"` of type `"+ve+"` "+("supplied to `"+J+"`, expected `object`."));for(var _e in q){var ye=q[_e];if(typeof ye!="function")return P(J,te,oe,_e,N(ye));var je=ye(ue,_e,J,te,oe+"."+_e,r);if(je)return je}return null}return C(Y)}function L(q){function Y(z,re,J,te,oe){var ue=z[re],ve=O(ue);if(ve!=="object")return new _("Invalid "+te+" `"+oe+"` of type `"+ve+"` "+("supplied to `"+J+"`, expected `object`."));var _e=t({},z[re],q);for(var ye in _e){var je=q[ye];if(n(q,ye)&&typeof je!="function")return P(J,te,oe,ye,N(je));if(!je)return new _("Invalid "+te+" `"+oe+"` key `"+ye+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(z[re],null," ")+`
321
+ Valid keys: `+JSON.stringify(Object.keys(q),null," "));var Z=je(ue,ye,J,te,oe+"."+ye,r);if(Z)return Z}return null}return C(Y)}function B(q){switch(typeof q){case"number":case"string":case"undefined":return!0;case"boolean":return!q;case"object":if(Array.isArray(q))return q.every(B);if(q===null||o(q))return!0;var Y=p(q);if(Y){var z=Y.call(q),re;if(Y!==q.entries){for(;!(re=z.next()).done;)if(!B(re.value))return!1}else for(;!(re=z.next()).done;){var J=re.value;if(J&&!B(J[1]))return!1}}else return!1;return!0;default:return!1}}function U(q,Y){return q==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function O(q){var Y=typeof q;return Array.isArray(q)?"array":q instanceof RegExp?"object":U(Y,q)?"symbol":Y}function N(q){if(typeof q>"u"||q===null)return""+q;var Y=O(q);if(Y==="object"){if(q instanceof Date)return"date";if(q instanceof RegExp)return"regexp"}return Y}function V(q){var Y=N(q);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function M(q){return!q.constructor||!q.constructor.name?g:q.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},hg}var pg,pb;function hD(){if(pb)return pg;pb=1;var e=cg();function t(){}function r(){}return r.resetWarningCache=t,pg=function(){function n(s,o,l,c,d,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},pg}var gb;function ac(){if(gb)return sd.exports;if(gb=1,process.env.NODE_ENV!=="production"){var e=ob(),t=!0;sd.exports=dD()(e.isElement,t)}else sd.exports=hD()();return sd.exports}function mb(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=mb(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function il(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=mb(e))&&(n&&(n+=" "),n+=t);return n}const pD=bC(Object.freeze(Object.defineProperty({__proto__:null,clsx:il,default:il},Symbol.toStringTag,{value:"Module"})));var yr={},as={},vb;function ld(){if(vb)return as;vb=1,Object.defineProperty(as,"__esModule",{value:!0}),as.dontSetMe=a,as.findInArray=e,as.int=n,as.isFunction=t,as.isNum=r;function e(i,s){for(let o=0,l=i.length;o<l;o++)if(s.apply(s,[i[o],o,i]))return i[o]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function r(i){return typeof i=="number"&&!isNaN(i)}function n(i){return parseInt(i,10)}function a(i,s,o){if(i[s])return new Error("Invalid prop ".concat(s," passed to ").concat(o," - do not set this, set it on the child."))}return as}var is={},xb;function gD(){if(xb)return is;xb=1,Object.defineProperty(is,"__esModule",{value:!0}),is.browserPrefixToKey=r,is.browserPrefixToStyle=n,is.default=void 0,is.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var i;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const o=(i=window.document)===null||i===void 0||(i=i.documentElement)===null||i===void 0?void 0:i.style;if(!o||s in o)return"";for(let l=0;l<e.length;l++)if(r(s,e[l])in o)return e[l];return""}function r(i,s){return s?"".concat(s).concat(a(i)):i}function n(i,s){return s?"-".concat(s.toLowerCase(),"-").concat(i):i}function a(i){let s="",o=!0;for(let l=0;l<i.length;l++)o?(s+=i[l].toUpperCase(),o=!1):i[l]==="-"?o=!0:s+=i[l];return s}return is.default=t(),is}var _b;function gg(){if(_b)return yr;_b=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.addClassName=m,yr.addEvent=o,yr.addUserSelectStyles=b,yr.createCSSTransform=y,yr.createSVGTransform=_,yr.getTouch=E,yr.getTouchIdentifier=T,yr.getTranslation=C,yr.innerHeight=p,yr.innerWidth=g,yr.matchesSelector=i,yr.matchesSelectorAndParentsTo=s,yr.offsetXYFromParent=v,yr.outerHeight=c,yr.outerWidth=d,yr.removeClassName=x,yr.removeEvent=l,yr.removeUserSelectStyles=h;var e=ld(),t=n(gD());function r(S){if(typeof WeakMap!="function")return null;var A=new WeakMap,k=new WeakMap;return(r=function(F){return F?k:A})(S)}function n(S,A){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var k=r(A);if(k&&k.has(S))return k.get(S);var F={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in S)if(j!=="default"&&Object.prototype.hasOwnProperty.call(S,j)){var L=P?Object.getOwnPropertyDescriptor(S,j):null;L&&(L.get||L.set)?Object.defineProperty(F,j,L):F[j]=S[j]}return F.default=S,k&&k.set(S,F),F}let a="";function i(S,A){return a||(a=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(k){return(0,e.isFunction)(S[k])})),(0,e.isFunction)(S[a])?S[a](A):!1}function s(S,A,k){let F=S;do{if(i(F,A))return!0;if(F===k)return!1;F=F.parentNode}while(F);return!1}function o(S,A,k,F){if(!S)return;const P={capture:!0,...F};S.addEventListener?S.addEventListener(A,k,P):S.attachEvent?S.attachEvent("on"+A,k):S["on"+A]=k}function l(S,A,k,F){if(!S)return;const P={capture:!0,...F};S.removeEventListener?S.removeEventListener(A,k,P):S.detachEvent?S.detachEvent("on"+A,k):S["on"+A]=null}function c(S){let A=S.clientHeight;const k=S.ownerDocument.defaultView.getComputedStyle(S);return A+=(0,e.int)(k.borderTopWidth),A+=(0,e.int)(k.borderBottomWidth),A}function d(S){let A=S.clientWidth;const k=S.ownerDocument.defaultView.getComputedStyle(S);return A+=(0,e.int)(k.borderLeftWidth),A+=(0,e.int)(k.borderRightWidth),A}function p(S){let A=S.clientHeight;const k=S.ownerDocument.defaultView.getComputedStyle(S);return A-=(0,e.int)(k.paddingTop),A-=(0,e.int)(k.paddingBottom),A}function g(S){let A=S.clientWidth;const k=S.ownerDocument.defaultView.getComputedStyle(S);return A-=(0,e.int)(k.paddingLeft),A-=(0,e.int)(k.paddingRight),A}function v(S,A,k){const P=A===A.ownerDocument.body?{left:0,top:0}:A.getBoundingClientRect(),j=(S.clientX+A.scrollLeft-P.left)/k,L=(S.clientY+A.scrollTop-P.top)/k;return{x:j,y:L}}function y(S,A){const k=C(S,A,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:k}}function _(S,A){return C(S,A,"")}function C(S,A,k){let{x:F,y:P}=S,j="translate(".concat(F).concat(k,",").concat(P).concat(k,")");if(A){const L="".concat(typeof A.x=="string"?A.x:A.x+k),B="".concat(typeof A.y=="string"?A.y:A.y+k);j="translate(".concat(L,", ").concat(B,")")+j}return j}function E(S,A){return S.targetTouches&&(0,e.findInArray)(S.targetTouches,k=>A===k.identifier)||S.changedTouches&&(0,e.findInArray)(S.changedTouches,k=>A===k.identifier)}function T(S){if(S.targetTouches&&S.targetTouches[0])return S.targetTouches[0].identifier;if(S.changedTouches&&S.changedTouches[0])return S.changedTouches[0].identifier}function b(S){if(!S)return;let A=S.getElementById("react-draggable-style-el");A||(A=S.createElement("style"),A.type="text/css",A.id="react-draggable-style-el",A.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
322
+ `,A.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
323
+ `,S.getElementsByTagName("head")[0].appendChild(A)),S.body&&m(S.body,"react-draggable-transparent-selection")}function h(S){if(S)try{if(S.body&&x(S.body,"react-draggable-transparent-selection"),S.selection)S.selection.empty();else{const A=(S.defaultView||window).getSelection();A&&A.type!=="Caret"&&A.removeAllRanges()}}catch{}}function m(S,A){S.classList?S.classList.add(A):S.className.match(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)")))||(S.className+=" ".concat(A))}function x(S,A){S.classList?S.classList.remove(A):S.className=S.className.replace(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)"),"g"),"")}return yr}var Qa={},yb;function wb(){if(yb)return Qa;yb=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.canDragX=a,Qa.canDragY=i,Qa.createCoreData=o,Qa.createDraggableData=l,Qa.getBoundPosition=r,Qa.getControlPosition=s,Qa.snapToGrid=n;var e=ld(),t=gg();function r(p,g,v){if(!p.props.bounds)return[g,v];let{bounds:y}=p.props;y=typeof y=="string"?y:c(y);const _=d(p);if(typeof y=="string"){const{ownerDocument:C}=_,E=C.defaultView;let T;if(y==="parent"?T=_.parentNode:T=C.querySelector(y),!(T instanceof E.HTMLElement))throw new Error('Bounds selector "'+y+'" could not find an element.');const b=T,h=E.getComputedStyle(_),m=E.getComputedStyle(b);y={left:-_.offsetLeft+(0,e.int)(m.paddingLeft)+(0,e.int)(h.marginLeft),top:-_.offsetTop+(0,e.int)(m.paddingTop)+(0,e.int)(h.marginTop),right:(0,t.innerWidth)(b)-(0,t.outerWidth)(_)-_.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(h.marginRight),bottom:(0,t.innerHeight)(b)-(0,t.outerHeight)(_)-_.offsetTop+(0,e.int)(m.paddingBottom)-(0,e.int)(h.marginBottom)}}return(0,e.isNum)(y.right)&&(g=Math.min(g,y.right)),(0,e.isNum)(y.bottom)&&(v=Math.min(v,y.bottom)),(0,e.isNum)(y.left)&&(g=Math.max(g,y.left)),(0,e.isNum)(y.top)&&(v=Math.max(v,y.top)),[g,v]}function n(p,g,v){const y=Math.round(g/p[0])*p[0],_=Math.round(v/p[1])*p[1];return[y,_]}function a(p){return p.props.axis==="both"||p.props.axis==="x"}function i(p){return p.props.axis==="both"||p.props.axis==="y"}function s(p,g,v){const y=typeof g=="number"?(0,t.getTouch)(p,g):null;if(typeof g=="number"&&!y)return null;const _=d(v),C=v.props.offsetParent||_.offsetParent||_.ownerDocument.body;return(0,t.offsetXYFromParent)(y||p,C,v.props.scale)}function o(p,g,v){const y=!(0,e.isNum)(p.lastX),_=d(p);return y?{node:_,deltaX:0,deltaY:0,lastX:g,lastY:v,x:g,y:v}:{node:_,deltaX:g-p.lastX,deltaY:v-p.lastY,lastX:p.lastX,lastY:p.lastY,x:g,y:v}}function l(p,g){const v=p.props.scale;return{node:g.node,x:p.state.x+g.deltaX/v,y:p.state.y+g.deltaY/v,deltaX:g.deltaX/v,deltaY:g.deltaY/v,lastX:p.state.x,lastY:p.state.y}}function c(p){return{left:p.left,top:p.top,right:p.right,bottom:p.bottom}}function d(p){const g=p.findDOMNode();if(!g)throw new Error("<DraggableCore>: Unmounted during event!");return g}return Qa}var ic={},ud={},bb;function Sb(){if(bb)return ud;bb=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.default=e;function e(){}return ud}var kb;function mD(){if(kb)return ic;kb=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.default=void 0;var e=c(ae),t=o(ac()),r=o(Kv),n=gg(),a=wb(),i=ld(),s=o(Sb());function o(C){return C&&C.__esModule?C:{default:C}}function l(C){if(typeof WeakMap!="function")return null;var E=new WeakMap,T=new WeakMap;return(l=function(b){return b?T:E})(C)}function c(C,E){if(C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var T=l(E);if(T&&T.has(C))return T.get(C);var b={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in C)if(m!=="default"&&Object.prototype.hasOwnProperty.call(C,m)){var x=h?Object.getOwnPropertyDescriptor(C,m):null;x&&(x.get||x.set)?Object.defineProperty(b,m,x):b[m]=C[m]}return b.default=C,T&&T.set(C,b),b}function d(C,E,T){return E=p(E),E in C?Object.defineProperty(C,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):C[E]=T,C}function p(C){var E=g(C,"string");return typeof E=="symbol"?E:String(E)}function g(C,E){if(typeof C!="object"||C===null)return C;var T=C[Symbol.toPrimitive];if(T!==void 0){var b=T.call(C,E);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(C)}const v={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let y=v.mouse,_=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",E=>{if(this.props.onMouseDown(E),!this.props.allowAnyClick&&typeof E.button=="number"&&E.button!==0)return!1;const T=this.findDOMNode();if(!T||!T.ownerDocument||!T.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:b}=T;if(this.props.disabled||!(E.target instanceof b.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(E.target,this.props.handle,T)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(E.target,this.props.cancel,T))return;E.type==="touchstart"&&E.preventDefault();const h=(0,n.getTouchIdentifier)(E);this.touchIdentifier=h;const m=(0,a.getControlPosition)(E,h,this);if(m==null)return;const{x,y:S}=m,A=(0,a.createCoreData)(this,x,S);(0,s.default)("DraggableCore: handleDragStart: %j",A),(0,s.default)("calling",this.props.onStart),!(this.props.onStart(E,A)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(b),this.dragging=!0,this.lastX=x,this.lastY=S,(0,n.addEvent)(b,y.move,this.handleDrag),(0,n.addEvent)(b,y.stop,this.handleDragStop))}),d(this,"handleDrag",E=>{const T=(0,a.getControlPosition)(E,this.touchIdentifier,this);if(T==null)return;let{x:b,y:h}=T;if(Array.isArray(this.props.grid)){let S=b-this.lastX,A=h-this.lastY;if([S,A]=(0,a.snapToGrid)(this.props.grid,S,A),!S&&!A)return;b=this.lastX+S,h=this.lastY+A}const m=(0,a.createCoreData)(this,b,h);if((0,s.default)("DraggableCore: handleDrag: %j",m),this.props.onDrag(E,m)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(A)}return}this.lastX=b,this.lastY=h}),d(this,"handleDragStop",E=>{if(!this.dragging)return;const T=(0,a.getControlPosition)(E,this.touchIdentifier,this);if(T==null)return;let{x:b,y:h}=T;if(Array.isArray(this.props.grid)){let A=b-this.lastX||0,k=h-this.lastY||0;[A,k]=(0,a.snapToGrid)(this.props.grid,A,k),b=this.lastX+A,h=this.lastY+k}const m=(0,a.createCoreData)(this,b,h);if(this.props.onStop(E,m)===!1||this.mounted===!1)return!1;const S=this.findDOMNode();S&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(S.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",m),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,S&&((0,s.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(S.ownerDocument,y.move,this.handleDrag),(0,n.removeEvent)(S.ownerDocument,y.stop,this.handleDragStop))}),d(this,"onMouseDown",E=>(y=v.mouse,this.handleDragStart(E))),d(this,"onMouseUp",E=>(y=v.mouse,this.handleDragStop(E))),d(this,"onTouchStart",E=>(y=v.touch,this.handleDragStart(E))),d(this,"onTouchEnd",E=>(y=v.touch,this.handleDragStop(E)))}componentDidMount(){this.mounted=!0;const E=this.findDOMNode();E&&(0,n.addEvent)(E,v.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const E=this.findDOMNode();if(E){const{ownerDocument:T}=E;(0,n.removeEvent)(T,v.mouse.move,this.handleDrag),(0,n.removeEvent)(T,v.touch.move,this.handleDrag),(0,n.removeEvent)(T,v.mouse.stop,this.handleDragStop),(0,n.removeEvent)(T,v.touch.stop,this.handleDragStop),(0,n.removeEvent)(E,v.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(T)}}findDOMNode(){var E,T;return(E=this.props)!==null&&E!==void 0&&E.nodeRef?(T=this.props)===null||T===void 0||(T=T.nodeRef)===null||T===void 0?void 0:T.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return ic.default=_,d(_,"displayName","DraggableCore"),d(_,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(C,E){if(C[E]&&C[E].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),d(_,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ic}var Tb;function vD(){return Tb||(Tb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=g(ae),r=d(ac()),n=d(Kv),a=d(pD),i=gg(),s=wb(),o=ld(),l=d(mD()),c=d(Sb());function d(T){return T&&T.__esModule?T:{default:T}}function p(T){if(typeof WeakMap!="function")return null;var b=new WeakMap,h=new WeakMap;return(p=function(m){return m?h:b})(T)}function g(T,b){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var h=p(b);if(h&&h.has(T))return h.get(T);var m={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in T)if(S!=="default"&&Object.prototype.hasOwnProperty.call(T,S)){var A=x?Object.getOwnPropertyDescriptor(T,S):null;A&&(A.get||A.set)?Object.defineProperty(m,S,A):m[S]=T[S]}return m.default=T,h&&h.set(T,m),m}function v(){return v=Object.assign?Object.assign.bind():function(T){for(var b=1;b<arguments.length;b++){var h=arguments[b];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(T[m]=h[m])}return T},v.apply(this,arguments)}function y(T,b,h){return b=_(b),b in T?Object.defineProperty(T,b,{value:h,enumerable:!0,configurable:!0,writable:!0}):T[b]=h,T}function _(T){var b=C(T,"string");return typeof b=="symbol"?b:String(b)}function C(T,b){if(typeof T!="object"||T===null)return T;var h=T[Symbol.toPrimitive];if(h!==void 0){var m=h.call(T,b);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(T)}class E extends t.Component{static getDerivedStateFromProps(b,h){let{position:m}=b,{prevPropsPosition:x}=h;return m&&(!x||m.x!==x.x||m.y!==x.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:m,prevPropsPosition:x}),{x:m.x,y:m.y,prevPropsPosition:{...m}}):null}constructor(b){super(b),y(this,"onDragStart",(h,m)=>{if((0,c.default)("Draggable: onDragStart: %j",m),this.props.onStart(h,(0,s.createDraggableData)(this,m))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(h,m)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",m);const x=(0,s.createDraggableData)(this,m),S={x:x.x,y:x.y,slackX:0,slackY:0};if(this.props.bounds){const{x:k,y:F}=S;S.x+=this.state.slackX,S.y+=this.state.slackY;const[P,j]=(0,s.getBoundPosition)(this,S.x,S.y);S.x=P,S.y=j,S.slackX=this.state.slackX+(k-S.x),S.slackY=this.state.slackY+(F-S.y),x.x=S.x,x.y=S.y,x.deltaX=S.x-this.state.x,x.deltaY=S.y-this.state.y}if(this.props.onDrag(h,x)===!1)return!1;this.setState(S)}),y(this,"onDragStop",(h,m)=>{if(!this.state.dragging||this.props.onStop(h,(0,s.createDraggableData)(this,m))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",m);const S={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:k,y:F}=this.props.position;S.x=k,S.y=F}this.setState(S)}),this.state={dragging:!1,dragged:!1,x:b.position?b.position.x:b.defaultPosition.x,y:b.position?b.position.y:b.defaultPosition.y,prevPropsPosition:{...b.position},slackX:0,slackY:0,isElementSVG:!1},b.position&&!(b.onDrag||b.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var b,h;return(b=(h=this.props)===null||h===void 0||(h=h.nodeRef)===null||h===void 0?void 0:h.current)!==null&&b!==void 0?b:n.default.findDOMNode(this)}render(){const{axis:b,bounds:h,children:m,defaultPosition:x,defaultClassName:S,defaultClassNameDragging:A,defaultClassNameDragged:k,position:F,positionOffset:P,scale:j,...L}=this.props;let B={},U=null;const N=!!!F||this.state.dragging,V=F||x,M={x:(0,s.canDragX)(this)&&N?this.state.x:V.x,y:(0,s.canDragY)(this)&&N?this.state.y:V.y};this.state.isElementSVG?U=(0,i.createSVGTransform)(M,P):B=(0,i.createCSSTransform)(M,P);const q=(0,a.default)(m.props.className||"",S,{[A]:this.state.dragging,[k]:this.state.dragged});return t.createElement(l.default,v({},L,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(m),{className:q,style:{...m.props.style,...B},transform:U}))}}e.default=E,y(E,"displayName","Draggable"),y(E,"propTypes",{...l.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),y(E,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(og)),og}var Eb;function mg(){if(Eb)return nc.exports;Eb=1;const{default:e,DraggableCore:t}=vD();return nc.exports=e,nc.exports.default=e,nc.exports.DraggableCore=t,nc.exports}var xD=mg();const _D=hn(xD);function yD(e){const{title:t,content:r,onOk:n,onCancel:a,isShowBtnIcon:i=!0}=e,s=ae.useContext(nu),o=R6(s==null?void 0:s.iconScriptUrl);return{...e,title:R.jsx("div",{title:be.isString(t)?t:"",children:t}),content:R.jsx("div",{title:be.isString(r)?r:"",children:r}),mask:!1,wrapClassName:"twiceaffirm",className:`${i?"":rc.notBtnIcon} ${rc.confirmModal}`,width:"480px",bodyStyle:{padding:"12px"},icon:R.jsx(o,{type:"icon-front-uploadFail",style:{fontSize:"18px",color:"#ffb200",marginRight:"6px",marginTop:"2px"}}),okButtonProps:{icon:R.jsx(o,{type:"icon-front-pop-upconfirm",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"0 !important",boxShadow:"none"}},cancelButtonProps:{icon:R.jsx(o,{type:"icon-front-pop-close",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"none",boxShadow:"none"}},onOk:n,onCancel:()=>{a==null||a()}}}const io=e=>{const[t,r]=ae.useState(null),[n,a]=ae.useState(!0),[i,s]=ae.useState({left:0,right:0,top:0,bottom:0}),o=ae.useRef(),l=!!e.styleUnify;Zo(()=>{const d=document.getElementById("qprogressElement");if(d&&!t){const p=new oD({minimum:.02,height:4,parentNode:d});r(p)}}),Hf(()=>{t&&(t.finish(),r(null))}),ae.useEffect(()=>{e.progressPercent&&t&&(1>e.progressPercent?t.set(e.progressPercent):t.finish())},[e.progressPercent]);const c=(d,p)=>{var _;const{clientWidth:g,clientHeight:v}=window.document.documentElement,y=(_=o.current)==null?void 0:_.getBoundingClientRect();y&&s({left:-y.left+p.x,right:g-(y.right-p.x),top:-y.top+p.y,bottom:v-(y.bottom-p.y)})};return R.jsxs(pe.Modal,{destroyOnClose:!0,okText:e.okText||ie("sys.label.confirm",{placeholder:"确定"}),okButtonProps:{style:{height:"30px",minWidth:"72px"}},cancelButtonProps:{style:{minWidth:"72px",height:"30px"}},getContainer:()=>document.getElementById("ria-frontend"),title:R.jsx("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{n&&a(!1)},onMouseOut:()=>{a(!0)},onFocus:()=>{},onBlur:()=>{},children:e.modalTitle}),modalRender:d=>R.jsx(_D,{disabled:n,bounds:i,onStart:(p,g)=>c(p,g),children:R.jsx("div",{ref:o,children:d})}),...be.omit(e,"visible"),wrapClassName:`modalClassName ${rc.wrapClassName} ${e.wrapClassName??""}`,className:`${l?rc.styleUnify:""} ${e.className??""}`,visible:e.visible,children:[R.jsx("div",{className:rc.qprogress,id:"qprogressElement"}),R.jsx("div",{onDoubleClick:d=>d.stopPropagation(),children:e.children})]})},wD={main:"_main_104mn_1"};var vg={},xg={},sc={exports:{}},so={exports:{}},bD=so.exports,Cb;function SD(){return Cb||(Cb=1,(function(){var e,t,r,n,a,i;typeof performance<"u"&&performance!==null&&performance.now?so.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(so.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var s;return s=t(),s[0]*1e9+s[1]},n=e(),i=process.uptime()*1e9,a=n-i):Date.now?(so.exports=function(){return Date.now()-r},r=Date.now()):(so.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(bD)),so.exports}var Ab;function kD(){if(Ab)return sc.exports;Ab=1;for(var e=SD(),t=typeof window>"u"?Fa:window,r=["moz","webkit"],n="AnimationFrame",a=t["request"+n],i=t["cancel"+n]||t["cancelRequest"+n],s=0;!a&&s<r.length;s++)a=t[r[s]+"Request"+n],i=t[r[s]+"Cancel"+n]||t[r[s]+"CancelRequest"+n];if(!a||!i){var o=0,l=0,c=[],d=1e3/60;a=function(p){if(c.length===0){var g=e(),v=Math.max(0,d-(g-o));o=v+g,setTimeout(function(){var y=c.slice(0);c.length=0;for(var _=0;_<y.length;_++)if(!y[_].cancelled)try{y[_].callback(o)}catch(C){setTimeout(function(){throw C},0)}},Math.round(v))}return c.push({handle:++l,callback:p,cancelled:!1}),l},i=function(p){for(var g=0;g<c.length;g++)c[g].handle===p&&(c[g].cancelled=!0)}}return sc.exports=function(p){return a.call(t,p)},sc.exports.cancel=function(){i.apply(t,arguments)},sc.exports.polyfill=function(p){p||(p=t),p.requestAnimationFrame=a,p.cancelAnimationFrame=i},sc.exports}var oc={exports:{}},_g,Ob;function TD(){if(Ob)return _g;Ob=1;var e=null,t=["Webkit","Moz","O","ms"];return _g=function(n){e||(e=document.createElement("div"));var a=e.style;if(n in a)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),s=t.length;s>=0;s--){var o=t[s]+i;if(o in a)return o}return!1},_g}var yg,Fb;function ED(){if(Fb)return yg;Fb=1,yg=n;var e=/\s/,t=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;function n(l){return e.test(l)?l.toLowerCase():t.test(l)?(i(l)||l).toLowerCase():r.test(l)?o(l).toLowerCase():l.toLowerCase()}var a=/[\W_]+(.|$)/g;function i(l){return l.replace(a,function(c,d){return d?" "+d:""})}var s=/(.)([A-Z]+)/g;function o(l){return l.replace(s,function(c,d,p){return d+" "+p.toLowerCase().split("").join(" ")})}return yg}var wg,Pb;function CD(){if(Pb)return wg;Pb=1;var e=ED();wg=t;function t(r){return e(r).replace(/[\W_]+(.|$)/g,function(n,a){return a?" "+a:""}).trim()}return wg}var bg,Db;function AD(){if(Db)return bg;Db=1;var e=CD();bg=t;function t(r){return e(r).replace(/\s(\w)/g,function(n,a){return a.toUpperCase()})}return bg}var Sg,Rb;function OD(){if(Rb)return Sg;Rb=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return Sg=function(t,r){return typeof r=="number"&&!e[t]?r+"px":r},Sg}var Nb;function Mb(){if(Nb)return oc.exports;Nb=1;var e=TD(),t=AD(),r={float:"cssFloat"},n=OD();function a(l,c,d){var p=r[c];if(typeof p>"u"&&(p=s(c)),p){if(d===void 0)return l.style[p];l.style[p]=n(p,d)}}function i(l,c){for(var d in c)c.hasOwnProperty(d)&&a(l,d,c[d])}function s(l){var c=t(l),d=e(c);return r[c]=r[l]=r[d]=d,d}function o(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}return oc.exports=o,oc.exports.set=o,oc.exports.get=function(l,c){return Array.isArray(c)?c.reduce(function(d,p){return d[p]=a(l,p||""),d},{}):a(l,c||"")},oc.exports}var kg={},Ib;function FD(){return Ib||(Ib=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return typeof r=="string"}}(kg)),kg}var Tg={},Lb;function PD(){return Lb||(Lb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=Mb(),r=n(t);function n(s){return s&&s.__esModule?s:{default:s}}var a=!1;function i(){if(a!==!1)return a;if(typeof document<"u"){var s=document.createElement("div");(0,r.default)(s,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(s),a=s.offsetWidth-s.clientWidth,document.body.removeChild(s)}else a=0;return a||0}}(Tg)),Tg}var Eg={},Bb;function DD(){return Bb||(Bb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(Eg)),Eg}var Cg={},jb;function RD(){return jb||(jb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientWidth,a=getComputedStyle(r),i=a.paddingLeft,s=a.paddingRight;return n-parseFloat(i)-parseFloat(s)}}(Cg)),Cg}var Ag={},Ub;function ND(){return Ub||(Ub=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientHeight,a=getComputedStyle(r),i=a.paddingTop,s=a.paddingBottom;return n-parseFloat(i)-parseFloat(s)}}(Ag)),Ag}var An={},Hb;function MD(){return Hb||(Hb=1,Object.defineProperty(An,"__esModule",{value:!0}),An.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},An.containerStyleAutoHeight={height:"auto"},An.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},An.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},An.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},An.trackHorizontalStyleDefault={position:"absolute",height:6},An.trackVerticalStyleDefault={position:"absolute",width:6},An.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},An.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},An.disableSelectStyle={userSelect:"none"},An.disableSelectStyleReset={userSelect:""}),An}var ss={},zb;function ID(){if(zb)return ss;zb=1,Object.defineProperty(ss,"__esModule",{value:!0});var e=Object.assign||function(d){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(d[v]=g[v])}return d};ss.renderViewDefault=i,ss.renderTrackHorizontalDefault=s,ss.renderTrackVerticalDefault=o,ss.renderThumbHorizontalDefault=l,ss.renderThumbVerticalDefault=c;var t=ae,r=n(t);function n(d){return d&&d.__esModule?d:{default:d}}function a(d,p){var g={};for(var v in d)p.indexOf(v)>=0||Object.prototype.hasOwnProperty.call(d,v)&&(g[v]=d[v]);return g}function i(d){return r.default.createElement("div",d)}function s(d){var p=d.style,g=a(d,["style"]),v=e({},p,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",e({style:v},g))}function o(d){var p=d.style,g=a(d,["style"]),v=e({},p,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",e({style:v},g))}function l(d){var p=d.style,g=a(d,["style"]),v=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:v},g))}function c(d){var p=d.style,g=a(d,["style"]),v=e({},p,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:v},g))}return ss}var Wb;function LD(){return Wb||(Wb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var U in B)Object.prototype.hasOwnProperty.call(B,U)&&(j[U]=B[U])}return j},r=function(){function j(L,B){for(var U=0;U<B.length;U++){var O=B[U];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(L,O.key,O)}}return function(L,B,U){return B&&j(L.prototype,B),U&&j(L,U),L}}(),n=kD(),a=x(n),i=Mb(),s=x(i),o=ae,l=ac(),c=x(l),d=FD(),p=x(d),g=PD(),v=x(g),y=DD(),_=x(y),C=RD(),E=x(C),T=ND(),b=x(T),h=MD(),m=ID();function x(j){return j&&j.__esModule?j:{default:j}}function S(j,L){var B={};for(var U in j)L.indexOf(U)>=0||Object.prototype.hasOwnProperty.call(j,U)&&(B[U]=j[U]);return B}function A(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function k(j,L){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:j}function F(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(j,L):j.__proto__=L)}var P=function(j){F(L,j);function L(B){var U;A(this,L);for(var O=arguments.length,N=Array(O>1?O-1:0),V=1;V<O;V++)N[V-1]=arguments[V];var M=k(this,(U=L.__proto__||Object.getPrototypeOf(L)).call.apply(U,[this,B].concat(N)));return M.getScrollLeft=M.getScrollLeft.bind(M),M.getScrollTop=M.getScrollTop.bind(M),M.getScrollWidth=M.getScrollWidth.bind(M),M.getScrollHeight=M.getScrollHeight.bind(M),M.getClientWidth=M.getClientWidth.bind(M),M.getClientHeight=M.getClientHeight.bind(M),M.getValues=M.getValues.bind(M),M.getThumbHorizontalWidth=M.getThumbHorizontalWidth.bind(M),M.getThumbVerticalHeight=M.getThumbVerticalHeight.bind(M),M.getScrollLeftForOffset=M.getScrollLeftForOffset.bind(M),M.getScrollTopForOffset=M.getScrollTopForOffset.bind(M),M.scrollLeft=M.scrollLeft.bind(M),M.scrollTop=M.scrollTop.bind(M),M.scrollToLeft=M.scrollToLeft.bind(M),M.scrollToTop=M.scrollToTop.bind(M),M.scrollToRight=M.scrollToRight.bind(M),M.scrollToBottom=M.scrollToBottom.bind(M),M.handleTrackMouseEnter=M.handleTrackMouseEnter.bind(M),M.handleTrackMouseLeave=M.handleTrackMouseLeave.bind(M),M.handleHorizontalTrackMouseDown=M.handleHorizontalTrackMouseDown.bind(M),M.handleVerticalTrackMouseDown=M.handleVerticalTrackMouseDown.bind(M),M.handleHorizontalThumbMouseDown=M.handleHorizontalThumbMouseDown.bind(M),M.handleVerticalThumbMouseDown=M.handleVerticalThumbMouseDown.bind(M),M.handleWindowResize=M.handleWindowResize.bind(M),M.handleScroll=M.handleScroll.bind(M),M.handleDrag=M.handleDrag.bind(M),M.handleDragEnd=M.handleDragEnd.bind(M),M.state={didMountUniversal:!1},M}return r(L,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var U=this.props.universal;U&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,n.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var U=this.view||{},O=U.scrollLeft,N=O===void 0?0:O,V=U.scrollTop,M=V===void 0?0:V,q=U.scrollWidth,Y=q===void 0?0:q,z=U.scrollHeight,re=z===void 0?0:z,J=U.clientWidth,te=J===void 0?0:J,oe=U.clientHeight,ue=oe===void 0?0:oe;return{left:N/(Y-te)||0,top:M/(re-ue)||0,scrollLeft:N,scrollTop:M,scrollWidth:Y,scrollHeight:re,clientWidth:te,clientHeight:ue}}},{key:"getThumbHorizontalWidth",value:function(){var U=this.props,O=U.thumbSize,N=U.thumbMinSize,V=this.view,M=V.scrollWidth,q=V.clientWidth,Y=(0,E.default)(this.trackHorizontal),z=Math.ceil(q/M*Y);return Y===z?0:O||Math.max(z,N)}},{key:"getThumbVerticalHeight",value:function(){var U=this.props,O=U.thumbSize,N=U.thumbMinSize,V=this.view,M=V.scrollHeight,q=V.clientHeight,Y=(0,b.default)(this.trackVertical),z=Math.ceil(q/M*Y);return Y===z?0:O||Math.max(z,N)}},{key:"getScrollLeftForOffset",value:function(U){var O=this.view,N=O.scrollWidth,V=O.clientWidth,M=(0,E.default)(this.trackHorizontal),q=this.getThumbHorizontalWidth();return U/(M-q)*(N-V)}},{key:"getScrollTopForOffset",value:function(U){var O=this.view,N=O.scrollHeight,V=O.clientHeight,M=(0,b.default)(this.trackVertical),q=this.getThumbVerticalHeight();return U/(M-q)*(N-V)}},{key:"scrollLeft",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=U)}},{key:"scrollTop",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=U)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var U=this.view,O=this.trackHorizontal,N=this.trackVertical,V=this.thumbHorizontal,M=this.thumbVertical;U.addEventListener("scroll",this.handleScroll),(0,v.default)()&&(O.addEventListener("mouseenter",this.handleTrackMouseEnter),O.addEventListener("mouseleave",this.handleTrackMouseLeave),O.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),N.addEventListener("mouseenter",this.handleTrackMouseEnter),N.addEventListener("mouseleave",this.handleTrackMouseLeave),N.addEventListener("mousedown",this.handleVerticalTrackMouseDown),V.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),M.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var U=this.view,O=this.trackHorizontal,N=this.trackVertical,V=this.thumbHorizontal,M=this.thumbVertical;U.removeEventListener("scroll",this.handleScroll),(0,v.default)()&&(O.removeEventListener("mouseenter",this.handleTrackMouseEnter),O.removeEventListener("mouseleave",this.handleTrackMouseLeave),O.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),N.removeEventListener("mouseenter",this.handleTrackMouseEnter),N.removeEventListener("mouseleave",this.handleTrackMouseLeave),N.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),V.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),M.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(U){var O=this,N=this.props,V=N.onScroll,M=N.onScrollFrame;V&&V(U),this.update(function(q){var Y=q.scrollLeft,z=q.scrollTop;O.viewScrollLeft=Y,O.viewScrollTop=z,M&&M(q)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var U=this.props.onScrollStart;U&&U(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var U=this.props.autoHide;U&&this.showTracks()}},{key:"handleScrollStop",value:function(){var U=this.props.onScrollStop;U&&U(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(U){U.preventDefault();var O=U.target,N=U.clientX,V=O.getBoundingClientRect(),M=V.left,q=this.getThumbHorizontalWidth(),Y=Math.abs(M-N)-q/2;this.view.scrollLeft=this.getScrollLeftForOffset(Y)}},{key:"handleVerticalTrackMouseDown",value:function(U){U.preventDefault();var O=U.target,N=U.clientY,V=O.getBoundingClientRect(),M=V.top,q=this.getThumbVerticalHeight(),Y=Math.abs(M-N)-q/2;this.view.scrollTop=this.getScrollTopForOffset(Y)}},{key:"handleHorizontalThumbMouseDown",value:function(U){U.preventDefault(),this.handleDragStart(U);var O=U.target,N=U.clientX,V=O.offsetWidth,M=O.getBoundingClientRect(),q=M.left;this.prevPageX=V-(N-q)}},{key:"handleVerticalThumbMouseDown",value:function(U){U.preventDefault(),this.handleDragStart(U);var O=U.target,N=U.clientY,V=O.offsetHeight,M=O.getBoundingClientRect(),q=M.top;this.prevPageY=V-(N-q)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,h.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=_.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,h.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(U){this.dragging=!0,U.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(U){if(this.prevPageX){var O=U.clientX,N=this.trackHorizontal.getBoundingClientRect(),V=N.left,M=this.getThumbHorizontalWidth(),q=M-this.prevPageX,Y=-V+O-q;this.view.scrollLeft=this.getScrollLeftForOffset(Y)}if(this.prevPageY){var z=U.clientY,re=this.trackVertical.getBoundingClientRect(),J=re.top,te=this.getThumbVerticalHeight(),oe=te-this.prevPageY,ue=-J+z-oe;this.view.scrollTop=this.getScrollTopForOffset(ue)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var U=this.props.autoHide;U&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var U=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var O=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,s.default)(U.trackHorizontal,{opacity:0}),(0,s.default)(U.trackVertical,{opacity:0})},O)}}},{key:"detectScrolling",value:function(){var U=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){U.lastViewScrollLeft===U.viewScrollLeft&&U.lastViewScrollTop===U.viewScrollTop&&(clearInterval(U.detectScrollingInterval),U.scrolling=!1,U.handleScrollStop()),U.lastViewScrollLeft=U.viewScrollLeft,U.lastViewScrollTop=U.viewScrollTop},100))}},{key:"raf",value:function(U){var O=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)(function(){O.requestFrame=void 0,U()})}},{key:"update",value:function(U){var O=this;this.raf(function(){return O._update(U)})}},{key:"_update",value:function(U){var O=this.props,N=O.onUpdate,V=O.hideTracksWhenNotNeeded,M=this.getValues();if((0,v.default)()){var q=M.scrollLeft,Y=M.clientWidth,z=M.scrollWidth,re=(0,E.default)(this.trackHorizontal),J=this.getThumbHorizontalWidth(),te=q/(z-Y)*(re-J),oe={width:J,transform:"translateX("+te+"px)"},ue=M.scrollTop,ve=M.clientHeight,_e=M.scrollHeight,ye=(0,b.default)(this.trackVertical),je=this.getThumbVerticalHeight(),Z=ue/(_e-ve)*(ye-je),Ge={height:je,transform:"translateY("+Z+"px)"};if(V){var Ae={visibility:z>Y?"visible":"hidden"},ze={visibility:_e>ve?"visible":"hidden"};(0,s.default)(this.trackHorizontal,Ae),(0,s.default)(this.trackVertical,ze)}(0,s.default)(this.thumbHorizontal,oe),(0,s.default)(this.thumbVertical,Ge)}N&&N(M),typeof U=="function"&&U(M)}},{key:"render",value:function(){var U=this,O=(0,v.default)(),N=this.props;N.onScroll,N.onScrollFrame,N.onScrollStart,N.onScrollStop,N.onUpdate;var V=N.renderView,M=N.renderTrackHorizontal,q=N.renderTrackVertical,Y=N.renderThumbHorizontal,z=N.renderThumbVertical,re=N.tagName;N.hideTracksWhenNotNeeded;var J=N.autoHide;N.autoHideTimeout;var te=N.autoHideDuration;N.thumbSize,N.thumbMinSize;var oe=N.universal,ue=N.autoHeight,ve=N.autoHeightMin,_e=N.autoHeightMax,ye=N.style,je=N.children,Z=S(N,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),Ge=this.state.didMountUniversal,Ae=t({},h.containerStyleDefault,ue&&t({},h.containerStyleAutoHeight,{minHeight:ve,maxHeight:_e}),ye),ze=t({},h.viewStyleDefault,{marginRight:O?-O:0,marginBottom:O?-O:0},ue&&t({},h.viewStyleAutoHeight,{minHeight:(0,p.default)(ve)?"calc("+ve+" + "+O+"px)":ve+O,maxHeight:(0,p.default)(_e)?"calc("+_e+" + "+O+"px)":_e+O}),ue&&oe&&!Ge&&{minHeight:ve,maxHeight:_e},oe&&!Ge&&h.viewStyleUniversalInitial),qe={transition:"opacity "+te+"ms",opacity:0},Pe=t({},h.trackHorizontalStyleDefault,J&&qe,(!O||oe&&!Ge)&&{display:"none"}),ut=t({},h.trackVerticalStyleDefault,J&&qe,(!O||oe&&!Ge)&&{display:"none"});return(0,o.createElement)(re,t({},Z,{style:Ae,ref:function(it){U.container=it}}),[(0,o.cloneElement)(V({style:ze}),{key:"view",ref:function(it){U.view=it}},je),(0,o.cloneElement)(M({style:Pe}),{key:"trackHorizontal",ref:function(it){U.trackHorizontal=it}},(0,o.cloneElement)(Y({style:h.thumbHorizontalStyleDefault}),{ref:function(it){U.thumbHorizontal=it}})),(0,o.cloneElement)(q({style:ut}),{key:"trackVertical",ref:function(it){U.trackVertical=it}},(0,o.cloneElement)(z({style:h.thumbVerticalStyleDefault}),{ref:function(it){U.thumbVertical=it}}))])}}]),L}(o.Component);e.default=P,P.propTypes={onScroll:c.default.func,onScrollFrame:c.default.func,onScrollStart:c.default.func,onScrollStop:c.default.func,onUpdate:c.default.func,renderView:c.default.func,renderTrackHorizontal:c.default.func,renderTrackVertical:c.default.func,renderThumbHorizontal:c.default.func,renderThumbVertical:c.default.func,tagName:c.default.string,thumbSize:c.default.number,thumbMinSize:c.default.number,hideTracksWhenNotNeeded:c.default.bool,autoHide:c.default.bool,autoHideTimeout:c.default.number,autoHideDuration:c.default.number,autoHeight:c.default.bool,autoHeightMin:c.default.oneOfType([c.default.number,c.default.string]),autoHeightMax:c.default.oneOfType([c.default.number,c.default.string]),universal:c.default.bool,style:c.default.object,children:c.default.node},P.defaultProps={renderView:m.renderViewDefault,renderTrackHorizontal:m.renderTrackHorizontalDefault,renderTrackVertical:m.renderTrackVerticalDefault,renderThumbHorizontal:m.renderThumbHorizontalDefault,renderThumbVertical:m.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(xg)),xg}var $b;function BD(){return $b||($b=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=LD(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}e.default=r.default,e.Scrollbars=r.default}(vg)),vg}var jD=BD();const UD=e=>R.jsx(jD.Scrollbars,{autoHide:!0,style:{...be.merge({overflow:"auto",height:"100%"},e.style)},...e,className:Er(wD.main,e.className),renderThumbVertical:({style:t,...r})=>{const n={borderRadius:"0px",background:"#e0e0e0"};return R.jsx("div",{style:{...t,...n},...r})},children:e.children}),cd={"error-box":"_error-box_1uv1u_1","err-color":"_err-color_1uv1u_12","err-box-list":"_err-box-list_1uv1u_16","custom-button":"_custom-button_1uv1u_22"},HD=e=>R.jsx("div",{className:cd["error-box"],children:R.jsxs("div",{className:cd["err-box-list"],children:[R.jsx("div",{children:R.jsx(lt,{style:{fontSize:"45px"},isBackend:!0,type:"a-front-previewerror",className:cd["err-color"]})}),R.jsx("div",{style:{marginTop:"20px",color:"#6c81b1",fontSize:"14px"},children:e.children||ie("sys.error.loading",{placeholder:"加载错误"})}),R.jsx("div",{style:{marginTop:"30px"},children:R.jsx("div",{className:cd["custom-button"],onClick:()=>{location.reload()},children:ie("sys.action.refresh",{placeholder:"刷新"})})})]})}),zD={main:"_main_7zdwk_1"},WD=e=>{const t=async(n,a)=>{const i=e.menu.items[a];if(i.request){i.request.middleware&&await i.request.middleware();let s=await e.request(i.request.url,i.request.options);pe.message.success(s.message),i.request.onSuccess&&i.request.onSuccess()}e.menu.onClick&&e.menu.onClick({...n,key:a.toString()})},r=R.jsx(pe.Menu,{...be.omit(e.menu,["items"]),onClick:()=>{},children:e.menu.items.map((n,a)=>n.confirm?R.jsx(pe.Popconfirm,{disabled:e.disabled,okText:ie("sys.action.confirm",{placeholder:"确认"}),cancelText:ie("sys.action.cancel",{placeholder:"取消"}),onConfirm:()=>{t(n,a)},...n.confirm,children:R.jsx(pe.Menu.Item,{onClick:()=>{},...n},a)},n.key||a):R.jsx(pe.Menu.Item,{onClick:()=>{t(n,a)},...n},n.key||a))});return R.jsx(pe.Dropdown,{overlayStyle:{...e.style},overlayClassName:e.className,className:Er(zD.main),overlay:r,...be.omit(e,["menu"])})},lc=({valueType:e="12",...t})=>{const r=En({defaultValue1:"",defaultValue2:""});return CA(()=>{t.onBlur()},()=>document.getElementById("use-click-away-button")),ae.useEffect(()=>{t.value?(r.defaultValue1=t.value.split("~%~")[0]||"",r.defaultValue2=t.value.split("~%~")[1]||""):(r.defaultValue1="",r.defaultValue2="")},[t.value]),R.jsx("div",{id:"use-click-away-button",children:R.jsxs(pe.Space.Compact,{style:{width:"100%"},children:[e=="12"&&R.jsx(pe.Input,{...t,disabled:t.readOnly,value:r.defaultValue1,size:t.size,style:{width:"calc(100% - 100px)"},onChange:n=>{var i,s;let a;r.defaultValue1=((i=n.target)==null?void 0:i.value)||"",r.defaultValue1?a=`${((s=n.target)==null?void 0:s.value)||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),e=="13"&&R.jsx(pe.InputNumber,{...t,disabled:t.readOnly,value:r.defaultValue1,style:{width:"calc(100% - 100px)"},size:t.size,maxLength:void 0,onChange:n=>{let a;r.defaultValue1=n||"",r.defaultValue1?a=`${n||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),R.jsx(pe.Select,{allowClear:!0,value:r.defaultValue2,disabled:t.readOnly,options:t.options,style:{width:"100px"},size:t.size,onChange:n=>{r.defaultValue2=n||"";let a="";(r.defaultValue1||n)&&(a=`${r.defaultValue1||""}~%~${n||""}`),t.onChange&&t.onChange(a)}})]})})},$D=e=>{const[t,r]=ae.useState(!1);SA(async()=>{const a=["/filePreview/plugin.js","/filePreview/luckyexcel.umd.js","/filePreview/luckysheet.umd.js"],i=o=>new Promise((l,c)=>{const d=document.createElement("script");d.src=`${o}`,d.onload=l,d.onerror=c,document.head.appendChild(d)});await(async()=>{for(const o of a)await i(o)})(),n()},[]);const n=()=>{function a(i){const s=new XMLHttpRequest;s.open("GET",i,!0),s.onerror=()=>{},s.responseType="blob",s.onload=()=>{if(s.status===200){var o=new File([s.response],"",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:Date.now()});window.LuckyExcel.transformExcelToLucky(o,function(l){l.sheets==null||l.sheets.length==0||(window.luckysheet.create({container:"luckysheet",showinfobar:!1,data:l.sheets,title:l.info.name,enableAddRow:!1,allowCopy:!1,loading:{},showtoolbar:!1,allowEdit:!1,enableAddCol:!1,userInfo:!1,showRowBar:!1,showColumnBar:!1,sheetFormulaBar:!1,enableAddBackTop:!1,showsheetbarConfig:{add:!1,menu:!1,sheet:!0}}),document.addEventListener("copy",c=>{window.luckysheet.enterEditMode(),window.luckysheet.exitEditMode()}),r(!0))})}},s.send()}a(e.url)};return R.jsx("div",{id:"luckysheet",style:{visibility:t?"visible":"hidden",margin:"0px",padding:"0px",position:"absolute",width:"100%",left:"0px",top:"0px",bottom:"0px",outline:"none"}})},VD={},Vb=ae.forwardRef((e,t)=>{const[r]=pe.Form.useForm();return ae.useImperativeHandle(t,()=>({...r})),R.jsx("div",{className:Er(VD.main,e.className),style:e.style,children:R.jsx(pe.Form,{form:r,layout:"vertical",...e,children:e.children})})}),qD={main:"_main_1rp4h_1"};class sl{static getAttributesMapId(t,r){return sl.isQuoteMultipleTypesAttr(t)?r?t[r]:t.id:sl.isCustomAttr(t)?t.id:t.dataFromId}static isCustomAttr(t){return t.dataFrom==="0"}static isQuoteAttr(t){return t.dataFrom==="1"}static isQuoteMultipleTypesAttr(t){return t.dataFrom==="2"}static hasAttr(t,r){return t&&Object.keys(t).includes(r)}}var os=(e=>(e.material="10001001",e.document="10001002",e.changeRequest="10001003",e.changeInstruction="10001004",e.engineeringChange="10001005",e.file="10001006",e.problemReport="10001007",e.manufacturerChange="10001008",e.statusChange="10001009",e.applicationProcess="10001010",e.supplierRequest="10001011",e.manufacturer="10001012",e.manufacturerParts="10001013",e.supplier="10001014",e.projectStartChange="10001015",e.dailyNewspaper="10001019",e.projectBaselineChange="10001030",e.project="10001016",e.workReport="10001019",e.user="10001017",e.userGroup="10001018",e.manufactChange="10001020",e.technology="10001021",e.factory="10001022",e.resource="10001023",e.factoryPublish="10001024",e.resourcePublish="10001025",e.risk="10001028",e.technologyPublish="10001029",e.inspectItem="10001031",e.option="10001032",e.custom="10001033",e.TechSpecial="10001034",e.ControlPlan="10001035",e.TechSpecialPublish="10001036",e.ControlPlanPublish="10001037",e))(os||{});class ls{static isMaterial(t){return t=="10001001"}static isDocument(t){return t=="10001002"}static isChangeRequest(t){return t=="10001003"}static isChangeInstruction(t){return t=="10001004"}static isEngineeringChange(t){return t=="10001005"}static isFile(t){return t=="10001006"}static isProblemReport(t){return t=="10001007"}static isManufacturerChange(t){return t=="10001008"}static isStatusChange(t){return t=="10001009"}static isApplicationProcess(t){return t=="10001010"}static isSupplierRequest(t){return t=="10001011"}static isManufacturer(t){return t=="10001012"}static isManufacturerParts(t){return t=="10001013"}static isManufactChange(t){return t=="10001020"}static isSupplier(t){return t=="10001014"}static isProjectStartChange(t){return t=="10001015"}static isDailyNewspaper(t){return t=="10001019"}static isProjectBaselineChange(t){return t=="10001030"}static isProjectChange(t){return ls.isProjectStartChange(t)||ls.isProjectBaselineChange(t)}static isProject(t){return t=="10001016"}static isWorkReport(t){return t=="10001019"}static isUser(t){return t=="10001017"}static isUserGroup(t){return t=="10001018"}static isTechnology(t){return t=="10001021"}static isFactory(t){return t=="10001022"}static isResource(t){return t=="10001023"}static isTechnologyPublish(t){return t=="10001029"}static isFactoryPublish(t){return t=="10001024"}static isResoucePublish(t){return t=="10001025"}static isRisk(t){return t=="10001028"}static isInspectItem(t){return t=="10001031"}static isOption(t){return t=="10001032"}static isCustom(t){return t=="10001033"}static isControlPublish(t){return t=="10001037"}static isTechSpecialPublish(t){return t=="10001036"}static isControlPlan(t){return t=="10001035"}static isTechSpecial(t){return t=="10001034"}}//! moment.js
324
+ //! version : 2.30.1
325
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
326
+ //! license : MIT
327
+ //! momentjs.com
328
+ var qb;function Ne(){return qb.apply(null,arguments)}function YD(e){qb=e}function Ia(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function oo(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Nt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Og(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Nt(e,t))return!1;return!0}function On(e){return e===void 0}function Ai(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function uc(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Yb(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function us(e,t){for(var r in t)Nt(t,r)&&(e[r]=t[r]);return Nt(t,"toString")&&(e.toString=t.toString),Nt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ei(e,t,r,n){return y2(e,t,r,n,!0).utc()}function GD(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function xt(e){return e._pf==null&&(e._pf=GD()),e._pf}var Fg;Array.prototype.some?Fg=Array.prototype.some:Fg=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Pg(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=xt(e),r=Fg.call(t.parsedDateParts,function(a){return a!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function fd(e){var t=ei(NaN);return e!=null?us(xt(t),e):xt(t).userInvalidated=!0,t}var Gb=Ne.momentProperties=[],Dg=!1;function Rg(e,t){var r,n,a,i=Gb.length;if(On(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),On(t._i)||(e._i=t._i),On(t._f)||(e._f=t._f),On(t._l)||(e._l=t._l),On(t._strict)||(e._strict=t._strict),On(t._tzm)||(e._tzm=t._tzm),On(t._isUTC)||(e._isUTC=t._isUTC),On(t._offset)||(e._offset=t._offset),On(t._pf)||(e._pf=xt(t)),On(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=Gb[r],a=t[n],On(a)||(e[n]=a);return e}function cc(e){Rg(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Dg===!1&&(Dg=!0,Ne.updateOffset(this),Dg=!1)}function La(e){return e instanceof cc||e!=null&&e._isAMomentObject!=null}function Kb(e){Ne.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ca(e,t){var r=!0;return us(function(){if(Ne.deprecationHandler!=null&&Ne.deprecationHandler(null,e),r){var n=[],a,i,s,o=arguments.length;for(i=0;i<o;i++){if(a="",typeof arguments[i]=="object"){a+=`
329
+ [`+i+"] ";for(s in arguments[0])Nt(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}Kb(e+`
330
+ Arguments: `+Array.prototype.slice.call(n).join("")+`
331
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Xb={};function Zb(e,t){Ne.deprecationHandler!=null&&Ne.deprecationHandler(e,t),Xb[e]||(Kb(t),Xb[e]=!0)}Ne.suppressDeprecationWarnings=!1,Ne.deprecationHandler=null;function ti(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function KD(e){var t,r;for(r in e)Nt(e,r)&&(t=e[r],ti(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ng(e,t){var r=us({},e),n;for(n in t)Nt(t,n)&&(oo(e[n])&&oo(t[n])?(r[n]={},us(r[n],e[n]),us(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)Nt(e,n)&&!Nt(t,n)&&oo(e[n])&&(r[n]=us({},r[n]));return r}function Mg(e){e!=null&&this.set(e)}var Ig;Object.keys?Ig=Object.keys:Ig=function(e){var t,r=[];for(t in e)Nt(e,t)&&r.push(t);return r};var XD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ZD(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return ti(n)?n.call(t,r):n}function ri(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var Lg=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,dd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Bg={},ol={};function Ze(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(ol[e]=a),t&&(ol[t[0]]=function(){return ri(a.apply(this,arguments),t[1],t[2])}),r&&(ol[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function JD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function QD(e){var t=e.match(Lg),r,n;for(r=0,n=t.length;r<n;r++)ol[t[r]]?t[r]=ol[t[r]]:t[r]=JD(t[r]);return function(a){var i="",s;for(s=0;s<n;s++)i+=ti(t[s])?t[s].call(a,e):t[s];return i}}function hd(e,t){return e.isValid()?(t=Jb(t,e.localeData()),Bg[t]=Bg[t]||QD(t),Bg[t](e)):e.localeData().invalidDate()}function Jb(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(dd.lastIndex=0;r>=0&&dd.test(e);)e=e.replace(dd,n),dd.lastIndex=0,r-=1;return e}var eR={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function tR(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Lg).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var rR="Invalid date";function nR(){return this._invalidDate}var aR="%d",iR=/\d{1,2}/;function sR(e){return this._ordinal.replace("%d",e)}var oR={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function lR(e,t,r,n){var a=this._relativeTime[r];return ti(a)?a(e,t,r,n):a.replace(/%d/i,e)}function uR(e,t){var r=this._relativeTime[e>0?"future":"past"];return ti(r)?r(t):r.replace(/%s/i,t)}var Qb={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function fa(e){return typeof e=="string"?Qb[e]||Qb[e.toLowerCase()]:void 0}function jg(e){var t={},r,n;for(n in e)Nt(e,n)&&(r=fa(n),r&&(t[r]=e[n]));return t}var cR={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function fR(e){var t=[],r;for(r in e)Nt(e,r)&&t.push({unit:r,priority:cR[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var e2=/\d/,$n=/\d\d/,t2=/\d{3}/,Ug=/\d{4}/,pd=/[+-]?\d{6}/,er=/\d\d?/,r2=/\d\d\d\d?/,n2=/\d\d\d\d\d\d?/,gd=/\d{1,3}/,Hg=/\d{1,4}/,md=/[+-]?\d{1,6}/,ll=/\d+/,vd=/[+-]?\d+/,dR=/Z|[+-]\d\d:?\d\d/gi,xd=/Z|[+-]\d\d(?::?\d\d)?/gi,hR=/[+-]?\d+(\.\d{1,3})?/,fc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ul=/^[1-9]\d?/,zg=/^([1-9]\d|\d)/,_d;_d={};function We(e,t,r){_d[e]=ti(t)?t:function(n,a){return n&&r?r:t}}function pR(e,t){return Nt(_d,e)?_d[e](t._strict,t._locale):new RegExp(gR(e))}function gR(e){return Oi(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function Oi(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function da(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ct(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=da(t)),r}var Wg={};function qt(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),Ai(t)&&(n=function(i,s){s[t]=Ct(i)}),a=e.length,r=0;r<a;r++)Wg[e[r]]=n}function dc(e,t){qt(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function mR(e,t,r){t!=null&&Nt(Wg,e)&&Wg[e](t,r._a,r,e)}function yd(e){return e%4===0&&e%100!==0||e%400===0}var en=0,Fi=1,ni=2,Pr=3,Ba=4,Pi=5,lo=6,vR=7,xR=8;Ze("Y",0,0,function(){var e=this.year();return e<=9999?ri(e,4):"+"+e}),Ze(0,["YY",2],0,function(){return this.year()%100}),Ze(0,["YYYY",4],0,"year"),Ze(0,["YYYYY",5],0,"year"),Ze(0,["YYYYYY",6,!0],0,"year"),We("Y",vd),We("YY",er,$n),We("YYYY",Hg,Ug),We("YYYYY",md,pd),We("YYYYYY",md,pd),qt(["YYYYY","YYYYYY"],en),qt("YYYY",function(e,t){t[en]=e.length===2?Ne.parseTwoDigitYear(e):Ct(e)}),qt("YY",function(e,t){t[en]=Ne.parseTwoDigitYear(e)}),qt("Y",function(e,t){t[en]=parseInt(e,10)});function hc(e){return yd(e)?366:365}Ne.parseTwoDigitYear=function(e){return Ct(e)+(Ct(e)>68?1900:2e3)};var a2=cl("FullYear",!0);function _R(){return yd(this.year())}function cl(e,t){return function(r){return r!=null?(i2(this,e,r),Ne.updateOffset(this,t),this):pc(this,e)}}function pc(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function i2(e,t,r){var n,a,i,s,o;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,s=e.month(),o=e.date(),o=o===29&&s===1&&!yd(i)?28:o,a?n.setUTCFullYear(i,s,o):n.setFullYear(i,s,o)}}function yR(e){return e=fa(e),ti(this[e])?this[e]():this}function wR(e,t){if(typeof e=="object"){e=jg(e);var r=fR(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=fa(e),ti(this[e]))return this[e](t);return this}function bR(e,t){return(e%t+t)%t}var wr;Array.prototype.indexOf?wr=Array.prototype.indexOf:wr=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function $g(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=bR(t,12);return e+=(t-r)/12,r===1?yd(e)?29:28:31-r%7%2}Ze("M",["MM",2],"Mo",function(){return this.month()+1}),Ze("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Ze("MMMM",0,0,function(e){return this.localeData().months(this,e)}),We("M",er,ul),We("MM",er,$n),We("MMM",function(e,t){return t.monthsShortRegex(e)}),We("MMMM",function(e,t){return t.monthsRegex(e)}),qt(["M","MM"],function(e,t){t[Fi]=Ct(e)-1}),qt(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Fi]=a:xt(r).invalidMonth=e});var SR="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),s2="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),o2=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kR=fc,TR=fc;function ER(e,t){return e?Ia(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||o2).test(t)?"format":"standalone"][e.month()]:Ia(this._months)?this._months:this._months.standalone}function CR(e,t){return e?Ia(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[o2.test(t)?"format":"standalone"][e.month()]:Ia(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function AR(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=ei([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=wr.call(this._shortMonthsParse,s),a!==-1?a:null):(a=wr.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=wr.call(this._shortMonthsParse,s),a!==-1?a:(a=wr.call(this._longMonthsParse,s),a!==-1?a:null)):(a=wr.call(this._longMonthsParse,s),a!==-1?a:(a=wr.call(this._shortMonthsParse,s),a!==-1?a:null))}function OR(e,t,r){var n,a,i;if(this._monthsParseExact)return AR.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=ei([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function l2(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ct(t);else if(t=e.localeData().monthsParse(t),!Ai(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,$g(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function u2(e){return e!=null?(l2(this,e),Ne.updateOffset(this,!0),this):pc(this,"Month")}function FR(){return $g(this.year(),this.month())}function PR(e){return this._monthsParseExact?(Nt(this,"_monthsRegex")||c2.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Nt(this,"_monthsShortRegex")||(this._monthsShortRegex=kR),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function DR(e){return this._monthsParseExact?(Nt(this,"_monthsRegex")||c2.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Nt(this,"_monthsRegex")||(this._monthsRegex=TR),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function c2(){function e(l,c){return c.length-l.length}var t=[],r=[],n=[],a,i,s,o;for(a=0;a<12;a++)i=ei([2e3,a]),s=Oi(this.monthsShort(i,"")),o=Oi(this.months(i,"")),t.push(s),r.push(o),n.push(o),n.push(s);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function RR(e,t,r,n,a,i,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,a,i,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,a,i,s),o}function gc(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wd(e,t,r){var n=7+t-r,a=(7+gc(e,0,n).getUTCDay()-t)%7;return-a+n-1}function f2(e,t,r,n,a){var i=(7+r-n)%7,s=wd(e,n,a),o=1+7*(t-1)+i+s,l,c;return o<=0?(l=e-1,c=hc(l)+o):o>hc(e)?(l=e+1,c=o-hc(e)):(l=e,c=o),{year:l,dayOfYear:c}}function mc(e,t,r){var n=wd(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,s;return a<1?(s=e.year()-1,i=a+Di(s,t,r)):a>Di(e.year(),t,r)?(i=a-Di(e.year(),t,r),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function Di(e,t,r){var n=wd(e,t,r),a=wd(e+1,t,r);return(hc(e)-n+a)/7}Ze("w",["ww",2],"wo","week"),Ze("W",["WW",2],"Wo","isoWeek"),We("w",er,ul),We("ww",er,$n),We("W",er,ul),We("WW",er,$n),dc(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=Ct(e)});function NR(e){return mc(e,this._week.dow,this._week.doy).week}var MR={dow:0,doy:6};function IR(){return this._week.dow}function LR(){return this._week.doy}function BR(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function jR(e){var t=mc(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Ze("d",0,"do","day"),Ze("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Ze("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Ze("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Ze("e",0,0,"weekday"),Ze("E",0,0,"isoWeekday"),We("d",er),We("e",er),We("E",er),We("dd",function(e,t){return t.weekdaysMinRegex(e)}),We("ddd",function(e,t){return t.weekdaysShortRegex(e)}),We("dddd",function(e,t){return t.weekdaysRegex(e)}),dc(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:xt(r).invalidWeekday=e}),dc(["d","e","E"],function(e,t,r,n){t[n]=Ct(e)});function UR(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function HR(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Vg(e,t){return e.slice(t,7).concat(e.slice(0,t))}var zR="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),d2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),WR="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$R=fc,VR=fc,qR=fc;function YR(e,t){var r=Ia(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Vg(r,this._week.dow):e?r[e.day()]:r}function GR(e){return e===!0?Vg(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function KR(e){return e===!0?Vg(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function XR(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=ei([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=wr.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=wr.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=wr.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=wr.call(this._weekdaysParse,s),a!==-1||(a=wr.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=wr.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=wr.call(this._shortWeekdaysParse,s),a!==-1||(a=wr.call(this._weekdaysParse,s),a!==-1)?a:(a=wr.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=wr.call(this._minWeekdaysParse,s),a!==-1||(a=wr.call(this._weekdaysParse,s),a!==-1)?a:(a=wr.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function ZR(e,t,r){var n,a,i;if(this._weekdaysParseExact)return XR.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=ei([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function JR(e){if(!this.isValid())return e!=null?this:NaN;var t=pc(this,"Day");return e!=null?(e=UR(e,this.localeData()),this.add(e-t,"d")):t}function QR(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function e5(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=HR(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function t5(e){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||qg.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=$R),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function r5(e){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||qg.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=VR),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function n5(e){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||qg.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qR),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qg(){function e(d,p){return p.length-d.length}var t=[],r=[],n=[],a=[],i,s,o,l,c;for(i=0;i<7;i++)s=ei([2e3,1]).day(i),o=Oi(this.weekdaysMin(s,"")),l=Oi(this.weekdaysShort(s,"")),c=Oi(this.weekdays(s,"")),t.push(o),r.push(l),n.push(c),a.push(o),a.push(l),a.push(c);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Yg(){return this.hours()%12||12}function a5(){return this.hours()||24}Ze("H",["HH",2],0,"hour"),Ze("h",["hh",2],0,Yg),Ze("k",["kk",2],0,a5),Ze("hmm",0,0,function(){return""+Yg.apply(this)+ri(this.minutes(),2)}),Ze("hmmss",0,0,function(){return""+Yg.apply(this)+ri(this.minutes(),2)+ri(this.seconds(),2)}),Ze("Hmm",0,0,function(){return""+this.hours()+ri(this.minutes(),2)}),Ze("Hmmss",0,0,function(){return""+this.hours()+ri(this.minutes(),2)+ri(this.seconds(),2)});function h2(e,t){Ze(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}h2("a",!0),h2("A",!1);function p2(e,t){return t._meridiemParse}We("a",p2),We("A",p2),We("H",er,zg),We("h",er,ul),We("k",er,ul),We("HH",er,$n),We("hh",er,$n),We("kk",er,$n),We("hmm",r2),We("hmmss",n2),We("Hmm",r2),We("Hmmss",n2),qt(["H","HH"],Pr),qt(["k","kk"],function(e,t,r){var n=Ct(e);t[Pr]=n===24?0:n}),qt(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),qt(["h","hh"],function(e,t,r){t[Pr]=Ct(e),xt(r).bigHour=!0}),qt("hmm",function(e,t,r){var n=e.length-2;t[Pr]=Ct(e.substr(0,n)),t[Ba]=Ct(e.substr(n)),xt(r).bigHour=!0}),qt("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[Pr]=Ct(e.substr(0,n)),t[Ba]=Ct(e.substr(n,2)),t[Pi]=Ct(e.substr(a)),xt(r).bigHour=!0}),qt("Hmm",function(e,t,r){var n=e.length-2;t[Pr]=Ct(e.substr(0,n)),t[Ba]=Ct(e.substr(n))}),qt("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[Pr]=Ct(e.substr(0,n)),t[Ba]=Ct(e.substr(n,2)),t[Pi]=Ct(e.substr(a))});function i5(e){return(e+"").toLowerCase().charAt(0)==="p"}var s5=/[ap]\.?m?\.?/i,o5=cl("Hours",!0);function l5(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var g2={calendar:XD,longDateFormat:eR,invalidDate:rR,ordinal:aR,dayOfMonthOrdinalParse:iR,relativeTime:oR,months:SR,monthsShort:s2,week:MR,weekdays:zR,weekdaysMin:WR,weekdaysShort:d2,meridiemParse:s5},lr={},vc={},xc;function u5(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function m2(e){return e&&e.toLowerCase().replace("_","-")}function c5(e){for(var t=0,r,n,a,i;t<e.length;){for(i=m2(e[t]).split("-"),r=i.length,n=m2(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=bd(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&u5(i,n)>=r-1)break;r--}t++}return xc}function f5(e){return!!(e&&e.match("^[^/\\\\]*$"))}function bd(e){var t=null,r;if(lr[e]===void 0&&typeof module<"u"&&module&&module.exports&&f5(e))try{t=xc._abbr,r=require,r("./locale/"+e),cs(t)}catch{lr[e]=null}return lr[e]}function cs(e,t){var r;return e&&(On(t)?r=Ri(e):r=Gg(e,t),r?xc=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),xc._abbr}function Gg(e,t){if(t!==null){var r,n=g2;if(t.abbr=e,lr[e]!=null)Zb("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=lr[e]._config;else if(t.parentLocale!=null)if(lr[t.parentLocale]!=null)n=lr[t.parentLocale]._config;else if(r=bd(t.parentLocale),r!=null)n=r._config;else return vc[t.parentLocale]||(vc[t.parentLocale]=[]),vc[t.parentLocale].push({name:e,config:t}),null;return lr[e]=new Mg(Ng(n,t)),vc[e]&&vc[e].forEach(function(a){Gg(a.name,a.config)}),cs(e),lr[e]}else return delete lr[e],null}function d5(e,t){if(t!=null){var r,n,a=g2;lr[e]!=null&&lr[e].parentLocale!=null?lr[e].set(Ng(lr[e]._config,t)):(n=bd(e),n!=null&&(a=n._config),t=Ng(a,t),n==null&&(t.abbr=e),r=new Mg(t),r.parentLocale=lr[e],lr[e]=r),cs(e)}else lr[e]!=null&&(lr[e].parentLocale!=null?(lr[e]=lr[e].parentLocale,e===cs()&&cs(e)):lr[e]!=null&&delete lr[e]);return lr[e]}function Ri(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xc;if(!Ia(e)){if(t=bd(e),t)return t;e=[e]}return c5(e)}function h5(){return Ig(lr)}function Kg(e){var t,r=e._a;return r&&xt(e).overflow===-2&&(t=r[Fi]<0||r[Fi]>11?Fi:r[ni]<1||r[ni]>$g(r[en],r[Fi])?ni:r[Pr]<0||r[Pr]>24||r[Pr]===24&&(r[Ba]!==0||r[Pi]!==0||r[lo]!==0)?Pr:r[Ba]<0||r[Ba]>59?Ba:r[Pi]<0||r[Pi]>59?Pi:r[lo]<0||r[lo]>999?lo:-1,xt(e)._overflowDayOfYear&&(t<en||t>ni)&&(t=ni),xt(e)._overflowWeeks&&t===-1&&(t=vR),xt(e)._overflowWeekday&&t===-1&&(t=xR),xt(e).overflow=t),e}var p5=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,g5=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,m5=/Z|[+-]\d\d(?::?\d\d)?/,Sd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Xg=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],v5=/^\/?Date\((-?\d+)/i,x5=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_5={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function v2(e){var t,r,n=e._i,a=p5.exec(n)||g5.exec(n),i,s,o,l,c=Sd.length,d=Xg.length;if(a){for(xt(e).iso=!0,t=0,r=c;t<r;t++)if(Sd[t][1].exec(a[1])){s=Sd[t][0],i=Sd[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,r=d;t<r;t++)if(Xg[t][1].exec(a[3])){o=(a[2]||" ")+Xg[t][0];break}if(o==null){e._isValid=!1;return}}if(!i&&o!=null){e._isValid=!1;return}if(a[4])if(m5.exec(a[4]))l="Z";else{e._isValid=!1;return}e._f=s+(o||"")+(l||""),Jg(e)}else e._isValid=!1}function y5(e,t,r,n,a,i){var s=[w5(e),s2.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&s.push(parseInt(i,10)),s}function w5(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function b5(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function S5(e,t,r){if(e){var n=d2.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return xt(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function k5(e,t,r){if(e)return _5[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function x2(e){var t=x5.exec(b5(e._i)),r;if(t){if(r=y5(t[4],t[3],t[2],t[5],t[6],t[7]),!S5(t[1],r,e))return;e._a=r,e._tzm=k5(t[8],t[9],t[10]),e._d=gc.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),xt(e).rfc2822=!0}else e._isValid=!1}function T5(e){var t=v5.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(v2(e),e._isValid===!1)delete e._isValid;else return;if(x2(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Ne.createFromInputFallback(e)}Ne.createFromInputFallback=ca("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function fl(e,t,r){return e??t??r}function E5(e){var t=new Date(Ne.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Zg(e){var t,r,n=[],a,i,s;if(!e._d){for(a=E5(e),e._w&&e._a[ni]==null&&e._a[Fi]==null&&C5(e),e._dayOfYear!=null&&(s=fl(e._a[en],a[en]),(e._dayOfYear>hc(s)||e._dayOfYear===0)&&(xt(e)._overflowDayOfYear=!0),r=gc(s,0,e._dayOfYear),e._a[Fi]=r.getUTCMonth(),e._a[ni]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Pr]===24&&e._a[Ba]===0&&e._a[Pi]===0&&e._a[lo]===0&&(e._nextDay=!0,e._a[Pr]=0),e._d=(e._useUTC?gc:RR).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Pr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(xt(e).weekdayMismatch=!0)}}function C5(e){var t,r,n,a,i,s,o,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,r=fl(t.GG,e._a[en],mc(tr(),1,4).year),n=fl(t.W,1),a=fl(t.E,1),(a<1||a>7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,c=mc(tr(),i,s),r=fl(t.gg,e._a[en],c.year),n=fl(t.w,c.week),t.d!=null?(a=t.d,(a<0||a>6)&&(l=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),n<1||n>Di(r,i,s)?xt(e)._overflowWeeks=!0:l!=null?xt(e)._overflowWeekday=!0:(o=f2(r,n,a,i,s),e._a[en]=o.year,e._dayOfYear=o.dayOfYear)}Ne.ISO_8601=function(){},Ne.RFC_2822=function(){};function Jg(e){if(e._f===Ne.ISO_8601){v2(e);return}if(e._f===Ne.RFC_2822){x2(e);return}e._a=[],xt(e).empty=!0;var t=""+e._i,r,n,a,i,s,o=t.length,l=0,c,d;for(a=Jb(e._f,e._locale).match(Lg)||[],d=a.length,r=0;r<d;r++)i=a[r],n=(t.match(pR(i,e))||[])[0],n&&(s=t.substr(0,t.indexOf(n)),s.length>0&&xt(e).unusedInput.push(s),t=t.slice(t.indexOf(n)+n.length),l+=n.length),ol[i]?(n?xt(e).empty=!1:xt(e).unusedTokens.push(i),mR(i,n,e)):e._strict&&!n&&xt(e).unusedTokens.push(i);xt(e).charsLeftOver=o-l,t.length>0&&xt(e).unusedInput.push(t),e._a[Pr]<=12&&xt(e).bigHour===!0&&e._a[Pr]>0&&(xt(e).bigHour=void 0),xt(e).parsedDateParts=e._a.slice(0),xt(e).meridiem=e._meridiem,e._a[Pr]=A5(e._locale,e._a[Pr],e._meridiem),c=xt(e).era,c!==null&&(e._a[en]=e._locale.erasConvertYear(c,e._a[en])),Zg(e),Kg(e)}function A5(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function O5(e){var t,r,n,a,i,s,o=!1,l=e._f.length;if(l===0){xt(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,s=!1,t=Rg({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Jg(t),Pg(t)&&(s=!0),i+=xt(t).charsLeftOver,i+=xt(t).unusedTokens.length*10,xt(t).score=i,o?i<n&&(n=i,r=t):(n==null||i<n||s)&&(n=i,r=t,s&&(o=!0));us(e,r||t)}function F5(e){if(!e._d){var t=jg(e._i),r=t.day===void 0?t.date:t.day;e._a=Yb([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Zg(e)}}function P5(e){var t=new cc(Kg(_2(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function _2(e){var t=e._i,r=e._f;return e._locale=e._locale||Ri(e._l),t===null||r===void 0&&t===""?fd({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),La(t)?new cc(Kg(t)):(uc(t)?e._d=t:Ia(r)?O5(e):r?Jg(e):D5(e),Pg(e)||(e._d=null),e))}function D5(e){var t=e._i;On(t)?e._d=new Date(Ne.now()):uc(t)?e._d=new Date(t.valueOf()):typeof t=="string"?T5(e):Ia(t)?(e._a=Yb(t.slice(0),function(r){return parseInt(r,10)}),Zg(e)):oo(t)?F5(e):Ai(t)?e._d=new Date(t):Ne.createFromInputFallback(e)}function y2(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(oo(e)&&Og(e)||Ia(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,P5(i)}function tr(e,t,r,n){return y2(e,t,r,n,!1)}var R5=ca("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:fd()}),N5=ca("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:fd()});function w2(e,t){var r,n;if(t.length===1&&Ia(t[0])&&(t=t[0]),!t.length)return tr();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function M5(){var e=[].slice.call(arguments,0);return w2("isBefore",e)}function I5(){var e=[].slice.call(arguments,0);return w2("isAfter",e)}var L5=function(){return Date.now?Date.now():+new Date},_c=["year","quarter","month","week","day","hour","minute","second","millisecond"];function B5(e){var t,r=!1,n,a=_c.length;for(t in e)if(Nt(e,t)&&!(wr.call(_c,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[_c[n]]){if(r)return!1;parseFloat(e[_c[n]])!==Ct(e[_c[n]])&&(r=!0)}return!0}function j5(){return this._isValid}function U5(){return ja(NaN)}function kd(e){var t=jg(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=B5(t),this._milliseconds=+d+c*1e3+l*6e4+o*1e3*60*60,this._days=+s+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=Ri(),this._bubble()}function Td(e){return e instanceof kd}function Qg(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function H5(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,s;for(s=0;s<n;s++)Ct(e[s])!==Ct(t[s])&&i++;return i+a}function b2(e,t){Ze(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+ri(~~(r/60),2)+t+ri(~~r%60,2)})}b2("Z",":"),b2("ZZ",""),We("Z",xd),We("ZZ",xd),qt(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=e1(xd,e)});var z5=/([\+\-]|\d\d)/gi;function e1(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(z5)||["-",0,0],i=+(a[1]*60)+Ct(a[2]),i===0?0:a[0]==="+"?i:-i)}function t1(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(La(e)||uc(e)?e.valueOf():tr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),Ne.updateOffset(r,!1),r):tr(e).local()}function r1(e){return-Math.round(e._d.getTimezoneOffset())}Ne.updateOffset=function(){};function W5(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=e1(xd,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=r1(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?E2(this,ja(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ne.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:r1(this)}function $5(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function V5(e){return this.utcOffset(0,e)}function q5(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(r1(this),"m")),this}function Y5(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=e1(dR,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function G5(e){return this.isValid()?(e=e?tr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function K5(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function X5(){if(!On(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Rg(e,this),e=_2(e),e._a?(t=e._isUTC?ei(e._a):tr(e._a),this._isDSTShifted=this.isValid()&&H5(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Z5(){return this.isValid()?!this._isUTC:!1}function J5(){return this.isValid()?this._isUTC:!1}function S2(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Q5=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,eN=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ja(e,t){var r=e,n=null,a,i,s;return Td(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Ai(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Q5.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:Ct(n[ni])*a,h:Ct(n[Pr])*a,m:Ct(n[Ba])*a,s:Ct(n[Pi])*a,ms:Ct(Qg(n[lo]*1e3))*a}):(n=eN.exec(e))?(a=n[1]==="-"?-1:1,r={y:uo(n[2],a),M:uo(n[3],a),w:uo(n[4],a),d:uo(n[5],a),h:uo(n[6],a),m:uo(n[7],a),s:uo(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(s=tN(tr(r.from),tr(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),i=new kd(r),Td(e)&&Nt(e,"_locale")&&(i._locale=e._locale),Td(e)&&Nt(e,"_isValid")&&(i._isValid=e._isValid),i}ja.fn=kd.prototype,ja.invalid=U5;function uo(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function k2(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function tN(e,t){var r;return e.isValid()&&t.isValid()?(t=t1(t,e),e.isBefore(t)?r=k2(e,t):(r=k2(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function T2(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(Zb(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=ja(r,n),E2(this,a,e),this}}function E2(e,t,r,n){var a=t._milliseconds,i=Qg(t._days),s=Qg(t._months);e.isValid()&&(n=n??!0,s&&l2(e,pc(e,"Month")+s*r),i&&i2(e,"Date",pc(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&Ne.updateOffset(e,i||s))}var rN=T2(1,"add"),nN=T2(-1,"subtract");function C2(e){return typeof e=="string"||e instanceof String}function aN(e){return La(e)||uc(e)||C2(e)||Ai(e)||sN(e)||iN(e)||e===null||e===void 0}function iN(e){var t=oo(e)&&!Og(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,s=n.length;for(a=0;a<s;a+=1)i=n[a],r=r||Nt(e,i);return t&&r}function sN(e){var t=Ia(e),r=!1;return t&&(r=e.filter(function(n){return!Ai(n)&&C2(e)}).length===0),t&&r}function oN(e){var t=oo(e)&&!Og(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||Nt(e,i);return t&&r}function lN(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function uN(e,t){arguments.length===1&&(arguments[0]?aN(arguments[0])?(e=arguments[0],t=void 0):oN(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||tr(),n=t1(r,this).startOf("day"),a=Ne.calendarFormat(this,n)||"sameElse",i=t&&(ti(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,tr(r)))}function cN(){return new cc(this)}function fN(e,t){var r=La(e)?e:tr(e);return this.isValid()&&r.isValid()?(t=fa(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function dN(e,t){var r=La(e)?e:tr(e);return this.isValid()&&r.isValid()?(t=fa(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function hN(e,t,r,n){var a=La(e)?e:tr(e),i=La(t)?t:tr(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function pN(e,t){var r=La(e)?e:tr(e),n;return this.isValid()&&r.isValid()?(t=fa(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function gN(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function mN(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function vN(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=t1(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=fa(t),t){case"year":i=Ed(this,n)/12;break;case"month":i=Ed(this,n);break;case"quarter":i=Ed(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:da(i)}function Ed(e,t){if(e.date()<t.date())return-Ed(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}Ne.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Ne.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function xN(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _N(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?hd(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ti(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",hd(r,"Z")):hd(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yN(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function wN(e){e||(e=this.isUtc()?Ne.defaultFormatUtc:Ne.defaultFormat);var t=hd(this,e);return this.localeData().postformat(t)}function bN(e,t){return this.isValid()&&(La(e)&&e.isValid()||tr(e).isValid())?ja({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function SN(e){return this.from(tr(),e)}function kN(e,t){return this.isValid()&&(La(e)&&e.isValid()||tr(e).isValid())?ja({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function TN(e){return this.to(tr(),e)}function A2(e){var t;return e===void 0?this._locale._abbr:(t=Ri(e),t!=null&&(this._locale=t),this)}var O2=ca("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function F2(){return this._locale}var Cd=1e3,dl=60*Cd,Ad=60*dl,P2=(365*400+97)*24*Ad;function hl(e,t){return(e%t+t)%t}function D2(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-P2:new Date(e,t,r).valueOf()}function R2(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-P2:Date.UTC(e,t,r)}function EN(e){var t,r;if(e=fa(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?R2:D2,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hl(t+(this._isUTC?0:this.utcOffset()*dl),Ad);break;case"minute":t=this._d.valueOf(),t-=hl(t,dl);break;case"second":t=this._d.valueOf(),t-=hl(t,Cd);break}return this._d.setTime(t),Ne.updateOffset(this,!0),this}function CN(e){var t,r;if(e=fa(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?R2:D2,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ad-hl(t+(this._isUTC?0:this.utcOffset()*dl),Ad)-1;break;case"minute":t=this._d.valueOf(),t+=dl-hl(t,dl)-1;break;case"second":t=this._d.valueOf(),t+=Cd-hl(t,Cd)-1;break}return this._d.setTime(t),Ne.updateOffset(this,!0),this}function AN(){return this._d.valueOf()-(this._offset||0)*6e4}function ON(){return Math.floor(this.valueOf()/1e3)}function FN(){return new Date(this.valueOf())}function PN(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function DN(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function RN(){return this.isValid()?this.toISOString():null}function NN(){return Pg(this)}function MN(){return us({},xt(this))}function IN(){return xt(this).overflow}function LN(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ze("N",0,0,"eraAbbr"),Ze("NN",0,0,"eraAbbr"),Ze("NNN",0,0,"eraAbbr"),Ze("NNNN",0,0,"eraName"),Ze("NNNNN",0,0,"eraNarrow"),Ze("y",["y",1],"yo","eraYear"),Ze("y",["yy",2],0,"eraYear"),Ze("y",["yyy",3],0,"eraYear"),Ze("y",["yyyy",4],0,"eraYear"),We("N",n1),We("NN",n1),We("NNN",n1),We("NNNN",GN),We("NNNNN",KN),qt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?xt(r).era=a:xt(r).invalidEra=e}),We("y",ll),We("yy",ll),We("yyy",ll),We("yyyy",ll),We("yo",XN),qt(["y","yy","yyy","yyyy"],en),qt(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[en]=r._locale.eraYearOrdinalParse(e,a):t[en]=parseInt(e,10)});function BN(e,t){var r,n,a,i=this._eras||Ri("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=Ne(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=Ne(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function jN(e,t,r){var n,a,i=this.eras(),s,o,l;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(s=i[n].name.toUpperCase(),o=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[n];break;case"NNNN":if(s===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([s,o,l].indexOf(e)>=0)return i[n]}function UN(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Ne(e.since).year():Ne(e.since).year()+(t-e.offset)*r}function HN(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function zN(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function WN(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function $N(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-Ne(a[e].since).year())*r+a[e].offset;return this.year()}function VN(e){return Nt(this,"_erasNameRegex")||a1.call(this),e?this._erasNameRegex:this._erasRegex}function qN(e){return Nt(this,"_erasAbbrRegex")||a1.call(this),e?this._erasAbbrRegex:this._erasRegex}function YN(e){return Nt(this,"_erasNarrowRegex")||a1.call(this),e?this._erasNarrowRegex:this._erasRegex}function n1(e,t){return t.erasAbbrRegex(e)}function GN(e,t){return t.erasNameRegex(e)}function KN(e,t){return t.erasNarrowRegex(e)}function XN(e,t){return t._eraYearOrdinalRegex||ll}function a1(){var e=[],t=[],r=[],n=[],a,i,s,o,l,c=this.eras();for(a=0,i=c.length;a<i;++a)s=Oi(c[a].name),o=Oi(c[a].abbr),l=Oi(c[a].narrow),t.push(s),e.push(o),r.push(l),n.push(s),n.push(o),n.push(l);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Ze(0,["gg",2],0,function(){return this.weekYear()%100}),Ze(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Od(e,t){Ze(0,[e,e.length],0,t)}Od("gggg","weekYear"),Od("ggggg","weekYear"),Od("GGGG","isoWeekYear"),Od("GGGGG","isoWeekYear"),We("G",vd),We("g",vd),We("GG",er,$n),We("gg",er,$n),We("GGGG",Hg,Ug),We("gggg",Hg,Ug),We("GGGGG",md,pd),We("ggggg",md,pd),dc(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=Ct(e)}),dc(["gg","GG"],function(e,t,r,n){t[n]=Ne.parseTwoDigitYear(e)});function ZN(e){return N2.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function JN(e){return N2.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function QN(){return Di(this.year(),1,4)}function eM(){return Di(this.isoWeekYear(),1,4)}function tM(){var e=this.localeData()._week;return Di(this.year(),e.dow,e.doy)}function rM(){var e=this.localeData()._week;return Di(this.weekYear(),e.dow,e.doy)}function N2(e,t,r,n,a){var i;return e==null?mc(this,n,a).year:(i=Di(e,n,a),t>i&&(t=i),nM.call(this,e,t,r,n,a))}function nM(e,t,r,n,a){var i=f2(e,t,r,n,a),s=gc(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Ze("Q",0,"Qo","quarter"),We("Q",e2),qt("Q",function(e,t){t[Fi]=(Ct(e)-1)*3});function aM(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Ze("D",["DD",2],"Do","date"),We("D",er,ul),We("DD",er,$n),We("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),qt(["D","DD"],ni),qt("Do",function(e,t){t[ni]=Ct(e.match(er)[0])});var M2=cl("Date",!0);Ze("DDD",["DDDD",3],"DDDo","dayOfYear"),We("DDD",gd),We("DDDD",t2),qt(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Ct(e)});function iM(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Ze("m",["mm",2],0,"minute"),We("m",er,zg),We("mm",er,$n),qt(["m","mm"],Ba);var sM=cl("Minutes",!1);Ze("s",["ss",2],0,"second"),We("s",er,zg),We("ss",er,$n),qt(["s","ss"],Pi);var oM=cl("Seconds",!1);Ze("S",0,0,function(){return~~(this.millisecond()/100)}),Ze(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ze(0,["SSS",3],0,"millisecond"),Ze(0,["SSSS",4],0,function(){return this.millisecond()*10}),Ze(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Ze(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Ze(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Ze(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Ze(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),We("S",gd,e2),We("SS",gd,$n),We("SSS",gd,t2);var fs,I2;for(fs="SSSS";fs.length<=9;fs+="S")We(fs,ll);function lM(e,t){t[lo]=Ct(("0."+e)*1e3)}for(fs="S";fs.length<=9;fs+="S")qt(fs,lM);I2=cl("Milliseconds",!1),Ze("z",0,0,"zoneAbbr"),Ze("zz",0,0,"zoneName");function uM(){return this._isUTC?"UTC":""}function cM(){return this._isUTC?"Coordinated Universal Time":""}var Me=cc.prototype;Me.add=rN,Me.calendar=uN,Me.clone=cN,Me.diff=vN,Me.endOf=CN,Me.format=wN,Me.from=bN,Me.fromNow=SN,Me.to=kN,Me.toNow=TN,Me.get=yR,Me.invalidAt=IN,Me.isAfter=fN,Me.isBefore=dN,Me.isBetween=hN,Me.isSame=pN,Me.isSameOrAfter=gN,Me.isSameOrBefore=mN,Me.isValid=NN,Me.lang=O2,Me.locale=A2,Me.localeData=F2,Me.max=N5,Me.min=R5,Me.parsingFlags=MN,Me.set=wR,Me.startOf=EN,Me.subtract=nN,Me.toArray=PN,Me.toObject=DN,Me.toDate=FN,Me.toISOString=_N,Me.inspect=yN,typeof Symbol<"u"&&Symbol.for!=null&&(Me[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Me.toJSON=RN,Me.toString=xN,Me.unix=ON,Me.valueOf=AN,Me.creationData=LN,Me.eraName=HN,Me.eraNarrow=zN,Me.eraAbbr=WN,Me.eraYear=$N,Me.year=a2,Me.isLeapYear=_R,Me.weekYear=ZN,Me.isoWeekYear=JN,Me.quarter=Me.quarters=aM,Me.month=u2,Me.daysInMonth=FR,Me.week=Me.weeks=BR,Me.isoWeek=Me.isoWeeks=jR,Me.weeksInYear=tM,Me.weeksInWeekYear=rM,Me.isoWeeksInYear=QN,Me.isoWeeksInISOWeekYear=eM,Me.date=M2,Me.day=Me.days=JR,Me.weekday=QR,Me.isoWeekday=e5,Me.dayOfYear=iM,Me.hour=Me.hours=o5,Me.minute=Me.minutes=sM,Me.second=Me.seconds=oM,Me.millisecond=Me.milliseconds=I2,Me.utcOffset=W5,Me.utc=V5,Me.local=q5,Me.parseZone=Y5,Me.hasAlignedHourOffset=G5,Me.isDST=K5,Me.isLocal=Z5,Me.isUtcOffset=J5,Me.isUtc=S2,Me.isUTC=S2,Me.zoneAbbr=uM,Me.zoneName=cM,Me.dates=ca("dates accessor is deprecated. Use date instead.",M2),Me.months=ca("months accessor is deprecated. Use month instead",u2),Me.years=ca("years accessor is deprecated. Use year instead",a2),Me.zone=ca("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$5),Me.isDSTShifted=ca("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",X5);function fM(e){return tr(e*1e3)}function dM(){return tr.apply(null,arguments).parseZone()}function L2(e){return e}var Mt=Mg.prototype;Mt.calendar=ZD,Mt.longDateFormat=tR,Mt.invalidDate=nR,Mt.ordinal=sR,Mt.preparse=L2,Mt.postformat=L2,Mt.relativeTime=lR,Mt.pastFuture=uR,Mt.set=KD,Mt.eras=BN,Mt.erasParse=jN,Mt.erasConvertYear=UN,Mt.erasAbbrRegex=qN,Mt.erasNameRegex=VN,Mt.erasNarrowRegex=YN,Mt.months=ER,Mt.monthsShort=CR,Mt.monthsParse=OR,Mt.monthsRegex=DR,Mt.monthsShortRegex=PR,Mt.week=NR,Mt.firstDayOfYear=LR,Mt.firstDayOfWeek=IR,Mt.weekdays=YR,Mt.weekdaysMin=KR,Mt.weekdaysShort=GR,Mt.weekdaysParse=ZR,Mt.weekdaysRegex=t5,Mt.weekdaysShortRegex=r5,Mt.weekdaysMinRegex=n5,Mt.isPM=i5,Mt.meridiem=l5;function Fd(e,t,r,n){var a=Ri(),i=ei().set(n,t);return a[r](i,e)}function B2(e,t,r){if(Ai(e)&&(t=e,e=void 0),e=e||"",t!=null)return Fd(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=Fd(e,n,r,"month");return a}function i1(e,t,r,n){typeof e=="boolean"?(Ai(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Ai(t)&&(r=t,t=void 0),t=t||"");var a=Ri(),i=e?a._week.dow:0,s,o=[];if(r!=null)return Fd(t,(r+i)%7,n,"day");for(s=0;s<7;s++)o[s]=Fd(t,(s+i)%7,n,"day");return o}function hM(e,t){return B2(e,t,"months")}function pM(e,t){return B2(e,t,"monthsShort")}function gM(e,t,r){return i1(e,t,r,"weekdays")}function mM(e,t,r){return i1(e,t,r,"weekdaysShort")}function vM(e,t,r){return i1(e,t,r,"weekdaysMin")}cs("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Ct(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),Ne.lang=ca("moment.lang is deprecated. Use moment.locale instead.",cs),Ne.langData=ca("moment.langData is deprecated. Use moment.localeData instead.",Ri);var Ni=Math.abs;function xM(){var e=this._data;return this._milliseconds=Ni(this._milliseconds),this._days=Ni(this._days),this._months=Ni(this._months),e.milliseconds=Ni(e.milliseconds),e.seconds=Ni(e.seconds),e.minutes=Ni(e.minutes),e.hours=Ni(e.hours),e.months=Ni(e.months),e.years=Ni(e.years),this}function j2(e,t,r,n){var a=ja(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function _M(e,t){return j2(this,e,t,1)}function yM(e,t){return j2(this,e,t,-1)}function U2(e){return e<0?Math.floor(e):Math.ceil(e)}function wM(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,s,o,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=U2(s1(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=da(e/1e3),n.seconds=a%60,i=da(a/60),n.minutes=i%60,s=da(i/60),n.hours=s%24,t+=da(s/24),l=da(H2(t)),r+=l,t-=U2(s1(l)),o=da(r/12),r%=12,n.days=t,n.months=r,n.years=o,this}function H2(e){return e*4800/146097}function s1(e){return e*146097/4800}function bM(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=fa(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+H2(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(s1(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Mi(e){return function(){return this.as(e)}}var z2=Mi("ms"),SM=Mi("s"),kM=Mi("m"),TM=Mi("h"),EM=Mi("d"),CM=Mi("w"),AM=Mi("M"),OM=Mi("Q"),FM=Mi("y"),PM=z2;function DM(){return ja(this)}function RM(e){return e=fa(e),this.isValid()?this[e+"s"]():NaN}function co(e){return function(){return this.isValid()?this._data[e]:NaN}}var NM=co("milliseconds"),MM=co("seconds"),IM=co("minutes"),LM=co("hours"),BM=co("days"),jM=co("months"),UM=co("years");function HM(){return da(this.days()/7)}var Ii=Math.round,pl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function zM(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function WM(e,t,r,n){var a=ja(e).abs(),i=Ii(a.as("s")),s=Ii(a.as("m")),o=Ii(a.as("h")),l=Ii(a.as("d")),c=Ii(a.as("M")),d=Ii(a.as("w")),p=Ii(a.as("y")),g=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||s<=1&&["m"]||s<r.m&&["mm",s]||o<=1&&["h"]||o<r.h&&["hh",o]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(g=g||d<=1&&["w"]||d<r.w&&["ww",d]),g=g||c<=1&&["M"]||c<r.M&&["MM",c]||p<=1&&["y"]||["yy",p],g[2]=t,g[3]=+e>0,g[4]=n,zM.apply(null,g)}function $M(e){return e===void 0?Ii:typeof e=="function"?(Ii=e,!0):!1}function VM(e,t){return pl[e]===void 0?!1:t===void 0?pl[e]:(pl[e]=t,e==="s"&&(pl.ss=t-1),!0)}function qM(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=pl,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},pl,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=WM(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var o1=Math.abs;function gl(e){return(e>0)-(e<0)||+e}function Pd(){if(!this.isValid())return this.localeData().invalidDate();var e=o1(this._milliseconds)/1e3,t=o1(this._days),r=o1(this._months),n,a,i,s,o=this.asSeconds(),l,c,d,p;return o?(n=da(e/60),a=da(n/60),e%=60,n%=60,i=da(r/12),r%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",c=gl(this._months)!==gl(o)?"-":"",d=gl(this._days)!==gl(o)?"-":"",p=gl(this._milliseconds)!==gl(o)?"-":"",l+"P"+(i?c+i+"Y":"")+(r?c+r+"M":"")+(t?d+t+"D":"")+(a||n||e?"T":"")+(a?p+a+"H":"")+(n?p+n+"M":"")+(e?p+s+"S":"")):"P0D"}var Pt=kd.prototype;Pt.isValid=j5,Pt.abs=xM,Pt.add=_M,Pt.subtract=yM,Pt.as=bM,Pt.asMilliseconds=z2,Pt.asSeconds=SM,Pt.asMinutes=kM,Pt.asHours=TM,Pt.asDays=EM,Pt.asWeeks=CM,Pt.asMonths=AM,Pt.asQuarters=OM,Pt.asYears=FM,Pt.valueOf=PM,Pt._bubble=wM,Pt.clone=DM,Pt.get=RM,Pt.milliseconds=NM,Pt.seconds=MM,Pt.minutes=IM,Pt.hours=LM,Pt.days=BM,Pt.weeks=HM,Pt.months=jM,Pt.years=UM,Pt.humanize=qM,Pt.toISOString=Pd,Pt.toString=Pd,Pt.toJSON=Pd,Pt.locale=A2,Pt.localeData=F2,Pt.toIsoString=ca("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pd),Pt.lang=O2,Ze("X",0,0,"unix"),Ze("x",0,0,"valueOf"),We("x",vd),We("X",hR),qt("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),qt("x",function(e,t,r){r._d=new Date(Ct(e))});//! moment.js
332
+ Ne.version="2.30.1",YD(tr),Ne.fn=Me,Ne.min=M5,Ne.max=I5,Ne.now=L5,Ne.utc=ei,Ne.unix=fM,Ne.months=hM,Ne.isDate=uc,Ne.locale=cs,Ne.invalid=fd,Ne.duration=ja,Ne.isMoment=La,Ne.weekdays=gM,Ne.parseZone=dM,Ne.localeData=Ri,Ne.isDuration=Td,Ne.monthsShort=pM,Ne.weekdaysMin=vM,Ne.defineLocale=Gg,Ne.updateLocale=d5,Ne.locales=h5,Ne.weekdaysShort=mM,Ne.normalizeUnits=fa,Ne.relativeTimeRounding=$M,Ne.relativeTimeThreshold=VM,Ne.calendarFormat=lN,Ne.prototype=Me,Ne.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const ks=class ks{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(Ne.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||ks.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const s=a.shift(),o=s[r];if(n==null||n(s),i.push(s),o!=null&&o.length)for(let l=o.length-1;l>=0;l--)a.unshift(o[l])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var d;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const s=new Map,o=new Map,l=new Map,c=[...t];for(;c.length;){const p=c.shift(),g=s.get(p)??t.findIndex(E=>E==p),v=o.get(p);v?a.add(v):a.clear();const y=v==null?void 0:v[n],_=r(p,g),C=p[n];if(_){i={parent:v,self:p,beforeSibling:(y||t).slice(0,g),afterSibling:(y||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(C!=null&&C.length)for(let E=C.length-1;E>=0;E--){const T=C[E];c.unshift(C[E]),s.set(T,E),o.set(T,p),E==C.length-1&&l.set(T,()=>{var b;(b=l.get(p))==null||b(),a.delete(p)})}else(d=l.get(p))==null||d()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(ls.isProject(t))return r||"icon"}};Ln(ks,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(c=>c!==""&&c!==void 0&&c!==null)(r))return"";let o="";i==="[object Array]"&&(o=[]);const l=c=>{for(let d=0;d<(c||[]).length;d++){const p=c[d][a?a.label:"label"],g=c[d][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&o.push(p):r===g&&(o=p),c[d].children&&c[d].children.length&&l(c[d].children)}};return l(n),o}),Ln(ks,"transformArrayToMap",(t,r,n,a)=>{function i(s,o){return s=="autoGetId"&&(a!=null&&a.useAutoGetId)?sl.isCustomAttr(o)?"id":"dataFromId":s}return t==null?void 0:t.reduce((s,o)=>{const l=i(r,o),c=i(n,o);return c?s[o[l]]=o[c]:s[o[l]]=o,s},{})}),Ln(ks,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),Ln(ks,"renderBomTag",t=>{const r=s=>{const o=s.match(/\d+(\.\d+)?/g);return o?o[o.length-1]:""},n=s=>{let o=0;const l=c=>{var d=c.split("");return d.reverse()};for(let c=0;c<l(s).length&&l(s)[c].match(/\d/);c++)o=o+1;return s.substring(0,s.length-o)},a=s=>be.sortBy(be.uniq(s.split(",")),o=>Number(r(o))),i=Object.keys(be.groupBy(a(t),s=>n(s))).map(s=>(l=>{var c=[],d=0;const p=l.sort((g,v)=>Number(r(g))-Number(r(v)));return p.forEach((g,v)=>{v===0?c[0]=[g]:Number(r(g))-Number(r(p[v-1]))===1?c[d].push(g):c[++d]=[g]}),c})(be.groupBy(a(t),l=>n(l))[s]).map(l=>{if(l.length>1){const c=l.map(d=>Number(r(d)));return`${s}${be.min(c)}-${be.max(c)}`}else return l[0]}));return be.flatten(i).join(",")}),Ln(ks,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(l=>l.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(l=>{if(l.match(/^\S+\d+-\d+$/)){const c=l.substring(0,l.match(/\d+-\d+$/).index),d=[],p=Number(l.split(c)[1].split("-")[1]),g=p<1e3?p:1e3;for(let v=Number(l.split(c)[1].split("-")[0]);v<=g;v++)d.push(`${c}${v}`);return d.join(",")}else if(l.match(/^\S+\d+-\S+\d+$/)){const c=l.split("-")[0].substring(0,l.match(/\d/).index).toUpperCase(),d=l.split("-")[0].substring(l.match(/\d/).index,l.split("-")[0].length),p=l.split("-")[1].substring(0,l.match(/\d/).index).toUpperCase(),g=l.split("-")[1].substring(l.match(/\d/).index,l.split("-")[0].length);if(c!=p)return l;{const v=[],y=Number(g),_=y<1e3?y:1e3;for(let C=Number(d);C<=_;C++)v.push(`${c}${C}`);return v.join(",")}}else return l}).join(","),a=l=>{const c=l.match(/\d+(\.\d+)?/g);return c?c[c.length-1]:""},i=l=>{let c=0;const d=p=>{var g=p.split("");return g.reverse()};for(let p=0;p<d(l).length&&d(l)[p].match(/\d/);p++)c=c+1;return l.substring(0,l.length-c)},s=l=>be.sortBy(be.uniq(l.split(",")),c=>Number(a(c))),o=Object.values(be.groupBy(s(n.toLocaleUpperCase()),l=>i(l))).map(l=>l.join(","));return o.length>1e3&&(r==null||r()),o.length>1e3?o.slice(0,1e3).join(","):o.join(",")});let Lt=ks;const l1={tableSelection:"_tableSelection_1xub0_1",sideBox:"_sideBox_1xub0_36",tableFrame:"_tableFrame_1xub0_51"},ml={sider_item_container:"_sider_item_container_wnrm0_1"},{TreeNode:W2}=pe.Tree,$2=e=>{const[t,r]=ae.useState([]),[n,a]=ae.useState([]),[i,s]=ae.useState([]);Zo(()=>{o()});const o=async()=>{a(e.treeResult||[]);const{result:c}=await e.getAttributeByTab({itemCode:e.itemCode,tabCode:"10002001",notInApiCode:"Unit,ProductModel,Product"}),d=c.records.filter(p=>["Number","Note","LifeCyclePhase","Category"].includes(p.apicode));e.onGetTreeFields&&e.onGetTreeFields(d)};ae.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const l=c=>c.map(p=>(p.title=R.jsxs("div",{className:ml.treeListBox,children:[R.jsxs("div",{className:ml.titleBox,style:{display:"flex",alignItems:"center"},children:[R.jsx(lt,{type:p.icon=="leftbar-folder"?p.children&&p.children.length>0&&be.includes(i,p.id)?"content-open2":"content-fold":p.icon,style:{fontSize:"16px",color:"#333"}}),R.jsx("div",{className:ml.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:p.name,children:R.jsx("span",{children:p.name})})]}),R.jsx("div",{className:Er(ml.btnBox,ml.onHover)})]},p.id),p.children?R.jsx(W2,{title:p.title,dataRef:p,children:l(p.children)},p.id):R.jsx(W2,{title:p.title},p.id)));return R.jsx("div",{className:ml.sider_item_container,children:R.jsx(pe.Tree,{switcherIcon:R.jsx(lt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:c=>{s(c)},onSelect:(c,d)=>{d.selected&&(r(c),e.onSelected&&e.onSelected(d.node.dataRef))},children:l(n)})})},Ua={main:"_main_1qtos_1",edit_cell:"_edit_cell_1qtos_23",update_style:"_update_style_1qtos_28",updated_style:"_updated_style_1qtos_42",updated_redline_style:"_updated_redline_style_1qtos_61",table_footer:"_table_footer_1qtos_349",loading:"_loading_1qtos_361"},YM=0,u1=1,c1=2,V2=8,vl=64,Dd=0,q2=1,f1=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function GM(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:YM,end:!1,final_top:0,f_final_top:q2,update_count:0}}function KM(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function xl(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function XM(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:V2}}const ZM=ct.forwardRef(function(t,r){return R.jsx("table",{ref:r,...t})});function JM(e){return R.jsx("tbody",{...e})}const QM=ct.forwardRef(function(t,r){const[n,a]=ae.useState(!1);return R.jsx("tr",{ref:r,...t})});function eI(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,s=0,o=0,l=0;if(t===-1&&n>0){for(s=n;s>0&&l<e._y;)l+=r[--s];return[0|s,0|n,0|e.computed_h-l]}for(;s<n&&i<t;++s)i+=r[s];for(o=s;o<n&&l<e._y;++o)l+=r[o];let c=a<0?0:a;for(;s>0&&c--;)i-=r[--s];return o+=a,o>n&&(o=n),[0|s,0|o,0|i]}function Y2(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function tI(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function rI(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function G2(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function K2(e,t){const r=()=>{xl(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&rI(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function d1(e){e.HND_PAINT>0||(e.HND_PAINT=K2(e,-1))}function X2(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function nI(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function aI(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const iI=(e,t)=>{const{style:r,context:n,...a}=e,i=ae.useState(0),s=ae.useRef(()=>{}),o=ae.useMemo(()=>ct.createRef(),[]),l=ae.useContext(n);ae.useMemo(()=>{Object.assign(l,GM()),l.wrap_inst&&l.wrap_inst.current&&(l.wrap_inst.current.parentElement.onscroll=null),l.wrap_inst=o,l.top=l.initTop,l.on_update_wrap_style=()=>{l._y===0&&`${l._scroll_y}`.length&&g({flag:vl,target:{scrollTop:l.top,scrollLeft:l.left}})},process.env.NODE_ENV==="development"&&KM(l)},[]);const c=ae.useRef([]).current,d=ae.useRef(0);let p;const g=ae.useCallback(T=>{if(l.vt_state===4){if(T&&(c.push(T),l.f_final_top===Dd))return T.flag=vl,p(0);c.length&&(d.current&&cancelAnimationFrame(d.current),d.current=requestAnimationFrame(p))}},[]),v=ae.useCallback(T=>{g(XM(T))},[]);p=ae.useCallback(T=>{if(l.vt_state!==4)return;const b=c;let h;if(!b.length)return;h=b.pop();let m=h.target.scrollTop,x=h.target.scrollLeft;const S=h.flag;xl(l,`raf top: ${m}, left: ${x}`);const A=eI(l,l.f_final_top===Dd?l.final_top:m),k=A[0],F=A[1],P=A[2],j=l._offset_head,L=l._offset_tail,B=l._offset_top;let U;switch(S){case u1:xl(l,"SCROLLEVT_INIT"),U=!1;break;case vl:xl(l,"SCROLLEVT_BY_HOOK"),k===j&&F===L&&P===B?(l.f_final_top=q2,l.final_top===-1&&(m=l.computed_h-l._y),U=!0):(l.final_top===-1&&(m=P),U=!1);break;case c1:if(xl(l,"SCROLLEVT_RECOMPUTE"),k===j&&F===L&&P===B){d.current=0,b.length&&g(null);return}U=!1;break;case V2:if(xl(l,"SCROLLEVT_NATIVE"),d.current=0,b.length=0,l.onScroll&&l.onScroll({top:m,left:x,isEnd:h.end}),k===j&&F===L&&P===B)return;U=h.end;break}Y2(l,P,k,F),tI(l,m,x,S,U),i[1](++l.update_count)},[]),ae.useImperativeHandle(t,()=>{const T=b=>{l.f_final_top=Dd,l.final_top=b,g({target:{scrollTop:b,scrollLeft:-1},flag:vl})};return{scrollTo:b=>{s.current=()=>T(b),s.current()},scrollToIndex:b=>{s.current=()=>{b>l.row_count-1&&(b=l.row_count-1),b<0&&(b=0);let h=0;for(let m=0;m<b;++m)h+=l.row_height[m];T(h)},s.current()}}},[]),ae.useEffect(()=>{l.wrap_inst.current.parentElement.onscroll=v},[o]),ae.useEffect(()=>{g({flag:vl,target:{scrollLeft:l.left,scrollTop:l.top}})},[l.scroll.y]),ae.useEffect(()=>{switch(l.evt){case vl:l.f_final_top===Dd?s.current():G2(l,l.top,l.left);break;case u1:case c1:G2(l,l.top,l.left),c.length&&p(0);break}},[i[0]]),ae.useEffect(()=>{switch(l.vt_state){case 1:break;case 2:l.vt_state=4,g({target:{scrollTop:l.top,scrollLeft:0},flag:u1});break;case 4:l.re_computed!==0&&(l.re_computed=0,g({target:{scrollTop:l.top,scrollLeft:l.left},flag:c1}));break}}),r.position="relative",r.top=l._offset_top;const{width:y,..._}=r,C=ae.useMemo(()=>({width:y,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[y]),E=l.components.table;return R.jsx("div",{ref:o,style:C,children:R.jsx(n.Provider,{value:{...l},children:R.jsx(E,{...a,style:_})})})},sI=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],s=r.components.body.wrapper;let o=Array.isArray(i)?i.length:0,{_offset_head:l,_offset_tail:c}=r,d=[];switch(r.vt_state){case 1:o>=0&&(console.assert(l===0),console.assert(c===1),Array.isArray(i)?(d=i.slice(l,c),d[0].props.record[f1]=0):d=i,r.re_computed=o,r.prev_row_count=o,r.row_count=o);break;case 4:{if(c>o){const g=c-o;c-=g,l-=g,l<0&&(l=0),c<0&&(c=0),Y2(r,r._offset_top,l,c)}r.row_count!==o&&aI(r,o),o=r.row_count;const p=r.prev_row_count;if(o<p)nI(r,o,p);else if(o>p){const g=r.row_height;o-g.length>0?X2(r,o,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,p,o),r.computed_h+=r.possible_hight_per_tr*(o-p))}if(o){let g=l;d=i.slice(g,c),d.forEach(v=>v.props.record[f1]=g++)}else d=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return R.jsxs(s,{...n,children:[a,d]})},oI=e=>{const t=ct.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return R.jsx(i,{...n,children:a});const s=a[0].props,o=s.record[f1],l=ae.useRef(o),c=ae.useMemo(()=>`.${s.prefixCls}-expanded-row`,[s.prefixCls]);return ae.useEffect(()=>(r.vt_state===4?d1(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,X2(r,r.row_count,0,r.possible_hight_per_tr),K2(r,16)),()=>d1(r)),[]),ae.useEffect(()=>{const d=t.current;let p=d.offsetHeight,g=d.nextSibling;for(;g&&g.matches(c);)p+=g.offsetHeight,g=g.nextSibling;const v=r.row_height[o],y=r.row_height[l.current];r.computed_h-=v,r.computed_h+=y,r.computed_h+=p-y,r.row_height[o]=p,d1(r)}),R.jsx(i,{...n,ref:t})};function Z2(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function lI(e,t){const r=ae.useRef(ct.createContext({})).current,n=ae.useContext(r),a=ae.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return ae.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),ae.useMemo(()=>{const i=ct.forwardRef(iI);n._vtcomponents={table:s=>R.jsx(i,{...s,context:r,ref:n.ref}),body:{wrapper:s=>R.jsx(r.Consumer,{children:()=>R.jsx(sI,{...s,ctx:n})}),row:s=>R.jsx(oI,{...s,ctx:n})}},n.components={},Z2(n,{table:ZM,body:{wrapper:JM,row:QM}}),n.vt_state=1},[]),n}const J2=1,uI=2;(function(){if((typeof window=="object"&&window instanceof Window?J2:uI)&J2&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function cI(e,t){const r=lI(e,t||[]);return[r._vtcomponents,n=>Z2(r,n),r.ref]}const fI=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:s},o)=>{const[l,c]=ae.useState(0),d=la(n);return ae.useEffect(()=>{const p=()=>{var y,_,C;const v=(E=>{for(var T=E.offsetTop,b=E.offsetParent;b!==null;)T+=b.offsetTop,b=b.offsetParent;return T})(t.current);if(r.current){const E=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],T=t.current.querySelectorAll(".frontend-table-body")[0],b=34+(e?0:15);if(E){const h=Lt.autoTableHeight(o?b:v+b),m=h-(a||0);n!=null&&n.y?i?i==null||i(o,m):(c(o?m:Number((y=d.current)==null?void 0:y.y)),E.style.minHeight=(o?m:Number((_=d.current)==null?void 0:_.y))-10+"px",T.style.minHeight=(o?m:Number((C=d.current)==null?void 0:C.y))+"px"):(c(o?m:h),E.style.minHeight=(o?m:h)-10+"px",T.style.minHeight=(o?m:h)+"px")}}};return p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}},[o,n]),ae.useEffect(()=>{s==null||s(l)},[l]),l};var yc={exports:{}},wc={},Rd={},Q2;function dI(){if(Q2)return Rd;Q2=1,Rd.__esModule=!0,Rd.cloneElement=o;var e=t(ae);function t(l){return l&&l.__esModule?l:{default:l}}function r(l,c){var d=Object.keys(l);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(l);c&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(l,g).enumerable})),d.push.apply(d,p)}return d}function n(l){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?r(Object(d),!0).forEach(function(p){a(l,p,d[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(d,p))})}return l}function a(l,c,d){return c=i(c),c in l?Object.defineProperty(l,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):l[c]=d,l}function i(l){var c=s(l,"string");return typeof c=="symbol"?c:String(c)}function s(l,c){if(typeof l!="object"||l===null)return l;var d=l[Symbol.toPrimitive];if(d!==void 0){var p=d.call(l,c);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(l)}function o(l,c){return c.style&&l.props.style&&(c.style=n(n({},l.props.style),c.style)),c.className&&l.props.className&&(c.className=l.props.className+" "+c.className),e.default.cloneElement(l,c)}return Rd}var bc={},eS;function tS(){if(eS)return bc;eS=1,bc.__esModule=!0,bc.resizableProps=void 0;var e=t(ac());mg();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var o=i[0];if(o.axis==="both"||o.axis==="y"){var l;return(l=e.default.number).isRequired.apply(l,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];var o=i[0];if(o.axis==="both"||o.axis==="x"){var l;return(l=e.default.number).isRequired.apply(l,i)}return e.default.number.apply(e.default,i)}};return bc.resizableProps=r,bc}var rS;function nS(){if(rS)return wc;rS=1,wc.__esModule=!0,wc.default=void 0;var e=s(ae),t=mg(),r=dI(),n=tS(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(E){if(typeof WeakMap!="function")return null;var T=new WeakMap,b=new WeakMap;return(i=function(m){return m?b:T})(E)}function s(E,T){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var b=i(T);if(b&&b.has(E))return b.get(E);var h={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in E)if(x!=="default"&&Object.prototype.hasOwnProperty.call(E,x)){var S=m?Object.getOwnPropertyDescriptor(E,x):null;S&&(S.get||S.set)?Object.defineProperty(h,x,S):h[x]=E[x]}return h.default=E,b&&b.set(E,h),h}function o(){return o=Object.assign?Object.assign.bind():function(E){for(var T=1;T<arguments.length;T++){var b=arguments[T];for(var h in b)Object.prototype.hasOwnProperty.call(b,h)&&(E[h]=b[h])}return E},o.apply(this,arguments)}function l(E,T){if(E==null)return{};var b={},h=Object.keys(E),m,x;for(x=0;x<h.length;x++)m=h[x],!(T.indexOf(m)>=0)&&(b[m]=E[m]);return b}function c(E,T){var b=Object.keys(E);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(E);T&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(E,m).enumerable})),b.push.apply(b,h)}return b}function d(E){for(var T=1;T<arguments.length;T++){var b=arguments[T]!=null?arguments[T]:{};T%2?c(Object(b),!0).forEach(function(h){p(E,h,b[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(b)):c(Object(b)).forEach(function(h){Object.defineProperty(E,h,Object.getOwnPropertyDescriptor(b,h))})}return E}function p(E,T,b){return T=g(T),T in E?Object.defineProperty(E,T,{value:b,enumerable:!0,configurable:!0,writable:!0}):E[T]=b,E}function g(E){var T=v(E,"string");return typeof T=="symbol"?T:String(T)}function v(E,T){if(typeof E!="object"||E===null)return E;var b=E[Symbol.toPrimitive];if(b!==void 0){var h=b.call(E,T);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(E)}function y(E,T){E.prototype=Object.create(T.prototype),E.prototype.constructor=E,_(E,T)}function _(E,T){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,m){return h.__proto__=m,h},_(E,T)}var C=function(E){y(T,E);function T(){for(var h,m=arguments.length,x=new Array(m),S=0;S<m;S++)x[S]=arguments[S];return h=E.call.apply(E,[this].concat(x))||this,h.handleRefs={},h.lastHandleRect=null,h.slack=null,h}var b=T.prototype;return b.componentWillUnmount=function(){this.resetData()},b.resetData=function(){this.lastHandleRect=this.slack=null},b.runConstraints=function(m,x){var S=this.props,A=S.minConstraints,k=S.maxConstraints,F=S.lockAspectRatio;if(!A&&!k&&!F)return[m,x];if(F){var P=this.props.width/this.props.height,j=m-this.props.width,L=x-this.props.height;Math.abs(j)>Math.abs(L*P)?x=m/P:m=x*P}var B=m,U=x,O=this.slack||[0,0],N=O[0],V=O[1];return m+=N,x+=V,A&&(m=Math.max(A[0],m),x=Math.max(A[1],x)),k&&(m=Math.min(k[0],m),x=Math.min(k[1],x)),this.slack=[N+(B-m),V+(U-x)],[m,x]},b.resizeHandler=function(m,x){var S=this;return function(A,k){var F=k.node,P=k.deltaX,j=k.deltaY;m==="onResizeStart"&&S.resetData();var L=(S.props.axis==="both"||S.props.axis==="x")&&x!=="n"&&x!=="s",B=(S.props.axis==="both"||S.props.axis==="y")&&x!=="e"&&x!=="w";if(!(!L&&!B)){var U=x[0],O=x[x.length-1],N=F.getBoundingClientRect();if(S.lastHandleRect!=null){if(O==="w"){var V=N.left-S.lastHandleRect.left;P+=V}if(U==="n"){var M=N.top-S.lastHandleRect.top;j+=M}}S.lastHandleRect=N,O==="w"&&(P=-P),U==="n"&&(j=-j);var q=S.props.width+(L?P/S.props.transformScale:0),Y=S.props.height+(B?j/S.props.transformScale:0),z=S.runConstraints(q,Y);q=z[0],Y=z[1];var re=q!==S.props.width||Y!==S.props.height,J=typeof S.props[m]=="function"?S.props[m]:null,te=m==="onResize"&&!re;J&&!te&&(A.persist==null||A.persist(),J(A,{node:F,size:{width:q,height:Y},handle:x})),m==="onResizeStop"&&S.resetData()}}},b.renderResizeHandle=function(m,x){var S=this.props.handle;if(!S)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+m,ref:x});if(typeof S=="function")return S(m,x);var A=typeof S.type=="string",k=d({ref:x},A?{}:{handleAxis:m});return e.cloneElement(S,k)},b.render=function(){var m=this,x=this.props,S=x.children,A=x.className,k=x.draggableOpts;x.width,x.height,x.handle,x.handleSize,x.lockAspectRatio,x.axis,x.minConstraints,x.maxConstraints,x.onResize,x.onResizeStop,x.onResizeStart;var F=x.resizeHandles;x.transformScale;var P=l(x,a);return(0,r.cloneElement)(S,d(d({},P),{},{className:(A?A+" ":"")+"react-resizable",children:[].concat(S.props.children,F.map(function(j){var L,B=(L=m.handleRefs[j])!=null?L:m.handleRefs[j]=e.createRef();return e.createElement(t.DraggableCore,o({},k,{nodeRef:B,key:"resizableHandle-"+j,onStop:m.resizeHandler("onResizeStop",j),onStart:m.resizeHandler("onResizeStart",j),onDrag:m.resizeHandler("onResize",j)}),m.renderResizeHandle(j,B))}))}))},T}(e.Component);return wc.default=C,C.propTypes=n.resizableProps,C.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},wc}var Sc={},aS;function hI(){if(aS)return Sc;aS=1,Sc.__esModule=!0,Sc.default=void 0;var e=o(ae),t=i(ac()),r=i(nS()),n=tS(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(T){return T&&T.__esModule?T:{default:T}}function s(T){if(typeof WeakMap!="function")return null;var b=new WeakMap,h=new WeakMap;return(s=function(x){return x?h:b})(T)}function o(T,b){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var h=s(b);if(h&&h.has(T))return h.get(T);var m={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in T)if(S!=="default"&&Object.prototype.hasOwnProperty.call(T,S)){var A=x?Object.getOwnPropertyDescriptor(T,S):null;A&&(A.get||A.set)?Object.defineProperty(m,S,A):m[S]=T[S]}return m.default=T,h&&h.set(T,m),m}function l(){return l=Object.assign?Object.assign.bind():function(T){for(var b=1;b<arguments.length;b++){var h=arguments[b];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(T[m]=h[m])}return T},l.apply(this,arguments)}function c(T,b){var h=Object.keys(T);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(T);b&&(m=m.filter(function(x){return Object.getOwnPropertyDescriptor(T,x).enumerable})),h.push.apply(h,m)}return h}function d(T){for(var b=1;b<arguments.length;b++){var h=arguments[b]!=null?arguments[b]:{};b%2?c(Object(h),!0).forEach(function(m){p(T,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(h)):c(Object(h)).forEach(function(m){Object.defineProperty(T,m,Object.getOwnPropertyDescriptor(h,m))})}return T}function p(T,b,h){return b=g(b),b in T?Object.defineProperty(T,b,{value:h,enumerable:!0,configurable:!0,writable:!0}):T[b]=h,T}function g(T){var b=v(T,"string");return typeof b=="symbol"?b:String(b)}function v(T,b){if(typeof T!="object"||T===null)return T;var h=T[Symbol.toPrimitive];if(h!==void 0){var m=h.call(T,b);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(T)}function y(T,b){if(T==null)return{};var h={},m=Object.keys(T),x,S;for(S=0;S<m.length;S++)x=m[S],!(b.indexOf(x)>=0)&&(h[x]=T[x]);return h}function _(T,b){T.prototype=Object.create(b.prototype),T.prototype.constructor=T,C(T,b)}function C(T,b){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,x){return m.__proto__=x,m},C(T,b)}var E=function(T){_(b,T);function b(){for(var m,x=arguments.length,S=new Array(x),A=0;A<x;A++)S[A]=arguments[A];return m=T.call.apply(T,[this].concat(S))||this,m.state={width:m.props.width,height:m.props.height,propsWidth:m.props.width,propsHeight:m.props.height},m.onResize=function(k,F){var P=F.size;m.props.onResize?(k.persist==null||k.persist(),m.setState(P,function(){return m.props.onResize&&m.props.onResize(k,F)})):m.setState(P)},m}b.getDerivedStateFromProps=function(x,S){return S.propsWidth!==x.width||S.propsHeight!==x.height?{width:x.width,height:x.height,propsWidth:x.width,propsHeight:x.height}:null};var h=b.prototype;return h.render=function(){var x=this.props,S=x.handle,A=x.handleSize;x.onResize;var k=x.onResizeStart,F=x.onResizeStop,P=x.draggableOpts,j=x.minConstraints,L=x.maxConstraints,B=x.lockAspectRatio,U=x.axis;x.width,x.height;var O=x.resizeHandles,N=x.style,V=x.transformScale,M=y(x,a);return e.createElement(r.default,{axis:U,draggableOpts:P,handle:S,handleSize:A,height:this.state.height,lockAspectRatio:B,maxConstraints:L,minConstraints:j,onResizeStart:k,onResize:this.onResize,onResizeStop:F,resizeHandles:O,transformScale:V,width:this.state.width},e.createElement("div",l({},M,{style:d(d({},N),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},b}(e.Component);return Sc.default=E,E.propTypes=d(d({},n.resizableProps),{},{children:t.default.element}),Sc}var iS;function pI(){return iS||(iS=1,yc.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},yc.exports.Resizable=nS().default,yc.exports.ResizableBox=hI().default),yc.exports}var gI=pI();const mI=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:s,required:o,editable:l,formitem:c,dataIndex:d,...p}=e,g=ae.useRef(),v=()=>{const b=l?c&&c.props&&c.props.disabled:!0;if(!b&&o)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(b&&o)return{fontWeight:"400"};if(!b&&!o)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(b&&!o)return{fontWeight:"400"}},y=En({resizing:!1}),[_,C]=ae.useState(0);ae.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(h=>h.addEventListener("click",m=>!1))},[]);const[E,T]=ae.useState(0);return!i||d==="id"?R.jsx("th",{...p,onClick:s,style:{...p.style,...v()},onKeyDown:()=>{},className:`${p.className} ${o?"frontend-table-column-required":""}`}):R.jsx(gI.Resizable,{axis:"x",width:i+E,height:0,handle:R.jsx("span",{onClick:b=>{b.stopPropagation(),b.preventDefault()},className:Er(["react-resizable-handle",E&&"active"])}),onResize:(b,{size:h,...m})=>{const x=document.getElementById("table-resize-handle");if(x){const S=document.getElementById(`table_key_${e.tableKey}`);b.pageX>S.getBoundingClientRect().left+S.getBoundingClientRect().width||b.pageX<S.getBoundingClientRect().left?x.style.width="0px":(x.style.width="1px",x.style.background="#0563B2",x.style.zIndex="9999",x.style.top=`${m.node.getBoundingClientRect().top}px`,x.style.position="fixed",x.style.height=`${n}px`,x.style.left=`${b.pageX}px`)}t(b),y.resizing=!0,T(h.width-i)},onResizeStop:(...b)=>{var h;b[0].stopPropagation(),(h=document.getElementById("table-resize-handle"))==null||h.remove(),r(),T(0),a(...b),setTimeout(()=>{y.resizing=!1})},onResizeStart:b=>{document.getElementById(`table_key_${e.tableKey}`);const h=document.createElement("div");h.id="table-resize-handle",document.body.appendChild(h),y.resizing=!0,b.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:R.jsx("th",{ref:g,onClick:(...b)=>{!y.resizing&&s&&s(...b)},...p,style:{...p.style,...v()},onKeyDown:()=>{},className:`${p.className} ${o?"frontend-table-column-required":""}`})})};function kc(){return kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kc.apply(this,arguments)}function sS(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var oS=ae.createContext({});function vI(){return ae.useContext(oS)}var xI=function(t){return ae.createElement(oS.Provider,{value:t.refTracker},t.children)};function _I(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var Nd=_I();function yI(e){var t=ae.useRef();return ae.useEffect(function(){t.current=e},[e]),t.current}function wI(){return ae.useRef(new Map).current}var lS={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),Nd.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){Nd.emit(0)}};function bI(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),lS.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){lS.hideAll()}}}function SI(){var e=new Map,t,r,n,a,i=!1;function s(_){a=_,t=-1,n=!0}function o(){a[t].node.focus()}function l(){return t>=0&&a[t].isSubmenu}function c(){return Array.from(a[t].submenuRefTracker.values())}function d(){return t===-1?(p(),!1):!0}function p(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&y(),o()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&y(),o()}function v(){if(d()&&l()){var _=c(),C=a[t].node;return e.set(C,{isRoot:n,focusedIndex:t,parentNode:r||C,items:a}),C.classList.add("react-contexify__submenu--is-open"),r=C,_.length>0?(t=0,a=_):i=!0,n=!1,o(),!0}return!1}function y(){if(d()&&!n){var _=e.get(r),C=_.isRoot,E=_.items,T=_.focusedIndex,b=_.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=E,r=b,C&&(n=!0,e.clear()),i||(t=T,o())}}return{init:s,moveDown:p,moveUp:g,openSubmenu:v,closeSubmenu:y}}var h1=function(){};function uS(e){return typeof e=="function"}function cS(e){return typeof e=="string"}function kI(e){return e.type==="touchend"}function TI(e,t){return ae.Children.map(ae.Children.toArray(e).filter(Boolean),function(r){return ae.cloneElement(r,t)})}function EI(e){var t={x:0,y:0};return kI(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function fS(e,t){return uS(e)?e(t):e}function CI(e){return!!(e&&(cS(e)||"exit"in e&&e.exit))}function AI(e,t){return uS(t)?kc({},e,t(e)):kc({},e,t)}var OI=function(t){var r,n=t.id,a=t.theme,i=t.style,s=t.className,o=t.children,l=t.animation,c=l===void 0?"scale":l,d=t.onHidden,p=d===void 0?h1:d,g=t.onShown,v=g===void 0?h1:g,y=sS(t,["id","theme","style","className","children","animation","onHidden","onShown"]),_=ae.useReducer(AI,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),C=_[0],E=_[1],T=ae.useRef(null),b=ae.useRef(!1),h=yI(C.visible),m=wI(),x=ae.useState(function(){return SI()}),S=x[0];ae.useEffect(function(){return b.current=!0,Nd.on(n,A).on(0,k),function(){Nd.off(n,A).off(0,k)}},[n]),ae.useEffect(function(){b.current&&C.visible!==h&&(C.visible?v():p())},[C.visible,p,v]),ae.useEffect(function(){C.visible?S.init(Array.from(m.values())):m.clear()},[C.visible,S,m]),ae.useEffect(function(){if(C.visible){var q=window,Y=q.innerWidth,z=q.innerHeight,re=T.current,J=re.offsetWidth,te=re.offsetHeight,oe=C.x,ue=C.y;oe+J>Y&&(oe-=oe+J-Y),ue+te>z&&(ue-=ue+te-z),E({x:oe,y:ue})}},[C.visible]),ae.useEffect(function(){function q(Y){switch(Y.preventDefault(),Y.key){case"Enter":S.openSubmenu()||k();break;case"Escape":k();break;case"ArrowUp":S.moveUp();break;case"ArrowDown":S.moveDown();break;case"ArrowRight":S.openSubmenu();break;case"ArrowLeft":S.closeSubmenu();break}}return C.visible&&(window.addEventListener("resize",k),window.addEventListener("contextmenu",k),window.addEventListener("click",k),window.addEventListener("scroll",k),window.addEventListener("keydown",q),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",k)),function(){window.removeEventListener("resize",k),window.removeEventListener("contextmenu",k),window.removeEventListener("click",k),window.removeEventListener("scroll",k),window.removeEventListener("keydown",q),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",k)}},[C.visible,S]);function A(q){var Y=q.event,z=q.props,re=q.position;Y.stopPropagation();var J=re||EI(Y),te=J.x,oe=J.y;setTimeout(function(){E({visible:!0,willLeave:!1,x:te,y:oe,triggerEvent:Y,propsFromTrigger:z})},0)}function k(q){var Y=q;typeof Y<"u"&&(Y.button===2||Y.ctrlKey===!0)&&Y.type!=="contextmenu"||(CI(c)?E(function(z){return{willLeave:z.visible}}):E(function(z){return{visible:z.visible?!1:z.visible}}))}function F(){C.willLeave&&C.visible&&E({visible:!1,willLeave:!1})}function P(){if(!c)return null;if(cS(c)){var q;return il((q={},q["react-contexify__will-enter--"+c]=c&&j&&!N,q["react-contexify__will-leave--"+c+" react-contexify__will-leave--'disabled'"]=c&&j&&N,q))}else if("enter"in c&&"exit"in c){var Y;return il((Y={},Y["react-contexify__will-enter--"+c.enter]=c.enter&&j&&!N,Y["react-contexify__will-leave--"+c.exit+" react-contexify__will-leave--'disabled'"]=c.exit&&j&&N,Y))}return null}var j=C.visible,L=C.triggerEvent,B=C.propsFromTrigger,U=C.x,O=C.y,N=C.willLeave,V=il("react-contexify",s,(r={},r["react-contexify__theme--"+a]=a,r),P()),M=kc({},i,{left:U,top:O,opacity:1});return ae.createElement(xI,{refTracker:m},j&&ae.createElement("div",Object.assign({},y,{className:V,onAnimationEnd:F,style:M,ref:T,role:"menu"}),TI(o,{propsFromTrigger:B,triggerEvent:L})))},dS=function(t){var r,n=t.children,a=t.className,i=t.style,s=t.triggerEvent,o=t.data,l=t.propsFromTrigger,c=t.onClick,d=c===void 0?h1:c,p=t.disabled,g=p===void 0?!1:p,v=t.hidden,y=v===void 0?!1:v,_=sS(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),C=vI(),E={data:o,triggerEvent:s,props:l},T=fS(g,E),b=fS(y,E);function h(A){E.event=A,T?A.stopPropagation():d(E)}function m(A){A&&!T&&C.set(A,{node:A,isSubmenu:!1})}function x(A){A.key==="Enter"&&(E.event=A,d(E))}if(b)return null;var S=il("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=T,r));return ae.createElement("div",Object.assign({},_,{className:S,style:i,onClick:h,onKeyDown:x,ref:m,tabIndex:-1,role:"menuitem","aria-disabled":T}),ae.createElement("div",{className:"react-contexify__item__content"},n))};const Li={box:"_box_1hwl6_2",transferSearch:"_transferSearch_1hwl6_2",searchBtn:"_searchBtn_1hwl6_10",shuttle_box:"_shuttle_box_1hwl6_44",leftSearch:"_leftSearch_1hwl6_58",noBeforeAfter:"_noBeforeAfter_1hwl6_62",rightSearch:"_rightSearch_1hwl6_78",transfer:"_transfer_1hwl6_2"},FI={content:"_content_1tmh1_1"},PI=ae.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[s,o]=ae.useState(a),{TabPane:l}=pe.Tabs;return n?R.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:R.jsx(Go,{})}):(ae.useImperativeHandle(t,()=>({active:c=>{(i==null?void 0:i(c))!==!1&&o(c)}}),[s]),R.jsx("div",{className:`${FI.content} ${e.className??""}`,children:n?R.jsx("div",{style:{padding:"10px"}}):r.length?R.jsx(pe.Tabs,{animated:!1,activeKey:s,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:c=>{(i==null?void 0:i(c))!==!1&&o(c)},children:(r||[]).map((c,d)=>R.jsx(l,{tab:R.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[c.icon&&R.jsx(lt,{style:{marginRight:"5px",fontSize:"16px"},type:`${c.icon}`}),R.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:c.tab})]}),children:R.jsx("div",{style:{padding:"0px"},children:ae.Children.map(e.children,p=>{var g;return((g=p==null?void 0:p.props)==null?void 0:g["data-key"])==c.tabKey?p:null})})},`${c.tabKey}`))}):R.jsx(R.Fragment,{})}))}),DI=ae.forwardRef((e,t)=>{var M;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=ae.useState(!1),[s,o]=ae.useState(),[l,c]=ae.useState(r),[d,p]=ae.useState([]),[g,v]=ae.useState(n),[y,_]=ae.useState({[n]:{left:1,right:1}}),[C,E]=ae.useState({[n]:{left:0,right:0}}),[T,b]=ae.useState(""),[h,m]=ae.useState({right:"",left:""}),[x,S]=ae.useState(!1),[A,k]=ae.useState({});ae.useEffect(()=>{c(r),v(n),_({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),ae.useEffect(()=>{a?U():(c(r),o(void 0),v(n),_({[n]:{left:1,right:1}}),b(""),m({right:"",left:""}),k({}))},[a]);const F=la(h),P=la(y),j=la(g),L=la(C),B=ae.useMemo(()=>{const q=()=>{var Y;return s||((Y=e.allListOptions)==null?void 0:Y[j.current])||[]};return be.uniqBy([...q(),...d],"id")},[j,g,e.allListOptions,s,d]),U=async q=>{S(!0),await e.getListCodeItem(Object.assign({search:F.current,tabKey:j.current,pageNo:P},be.omit(q||{},"isPaging"))).then(Y=>{Y&&(q!=null&&q.isPaging?o([...B,...Y]):o([...Y]),E(Object.assign({},L.current,{[j.current]:{left:Y.total||Y.length,right:0}})))}).finally(()=>{S(!1)})};ae.useEffect(()=>{p(B.filter(q=>l.includes(q.id)))},[l]);const O=async()=>{var q,Y;if(e.mandatory&&!l.length)return pe.message.error(`${ie("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(q=e.attr)==null?void 0:q.name}`);(Y=A.ok)==null||Y.call(A,[...l],g,d),i(!1)};ae.useImperativeHandle(t,()=>({open(q){k(()=>q),i(!0)},submit:O,dataSource:B,targetKeys:l,loading:x}),[B,l,x]);const N=q=>{q=="left"?U():b(F.current.right)},V=ae.useMemo(()=>{var q;return Array.isArray(e.columns)?e.columns:((q=e.columns)==null?void 0:q[g])||[]},[e.columns,g]);return R.jsx(io,{className:Li.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:ie("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:O,onCancel:()=>{var q;(q=A.cancel)==null||q.call(A),i(!1)},children:R.jsx("div",{className:Li.transferBox,children:R.jsx(Go,{spinning:x,children:R.jsx(pe.Transfer,{...e.transfer||{},className:`${Li.transfer} ${((M=e.transfer)==null?void 0:M.className)??""}`,dataSource:B,targetKeys:l,onChange:(q,Y,z)=>{Y=="right"?c([...e.isRadio?z:q]):c([...q])},rowKey:q=>q.id,children:q=>{var je,Z,Ge,Ae,ze,qe,Pe,ut;const{direction:Y,filteredItems:z,onItemSelectAll:re,onItemSelect:J,selectedKeys:te,showSearch:oe}=q,ue=Y=="left",ve=!ue,_e={onSelectAll(Ye,it){if(e.isRadio)return;const ht=it.filter(Fr=>!Fr.disabled).map(({id:Fr})=>Fr),ir=Ye?be.difference(ht,te):be.difference(te,ht);re(ir,Ye)},onSelect({id:Ye},it){e.isRadio&&te.splice(0,1),J(Ye,it)},getCheckboxProps:Ye=>({disabled:Ye.Number&&!sa.readPermission(Ye.Number)?!0:ue?Ye.disabled:!1}),selectedRowKeys:te,columnWidth:13};(je=e==null?void 0:e.pager)!=null&&je[g];const ye=()=>ue?z:z.filter(Ye=>Ye.label.includes(T)||Ye.Description.includes(T));return R.jsxs("div",{className:Li.box,style:e.scroll?{width:"360px"}:{},children:[ue&&e.panes&&((Z=e.panes)==null?void 0:Z.length)!=1?R.jsx(PI,{panes:e.panes,defaultActiveKey:g,onTabClick:Ye=>{var ht;v(Ye),(ht=e.onTabsChange)==null||ht.call(e,Ye);const it={...h,[Y]:""};m(it),P.current[Ye]||_(Object.assign({},P.current,{[Ye]:{left:1,right:1}})),U({tabKey:Ye,search:it})}}):null,oe?R.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:R.jsx("div",{className:`${e.scroll?Li.noBeforeAfter:""} ${Li.transferSearch} ${ue&&((Ge=e.panes)!=null&&Ge.length)?Li.leftSearch:(Ae=e.panes)!=null&&Ae.length?Li.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:R.jsx(pe.Input.Search,{placeholder:e.placeholder||ie("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:h[Y],onChange:Ye=>{Ye.persist();const it=Ye.target.value;m({...h,[Y]:it}),ve&&(it||b(""))},onSearch:N.bind(null,Y),suffix:R.jsx("div",{className:Li.searchBtn,onClick:N.bind(null,Y),children:R.jsx(lt,{type:"homesearch"})})})})}):null,R.jsx(x1,{rowSelection:{type:"checkbox",fixed:!0,..._e},columns:V,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:ye(),scroll:{x:((ze=e.scroll)==null?void 0:ze.x)||300,y:((qe=e.scroll)==null?void 0:qe.y)||(ue&&((Pe=e.panes)!=null&&Pe.length)?270:316)},style:{height:"100%"},pageNo:y[g][Y],pageSize:ue?20:void 0,total:ue?(ut=C==null?void 0:C[g])==null?void 0:ut[Y]:void 0,size:"small",onScroll:Ye=>{const it={...y,[g]:{...y[g],[Y]:Ye}};_(it),ue&&U({pageNo:it[g],isPaging:!0})},onRow:({id:Ye,disabled:it,...ht})=>({onClick:()=>{if(!it&&ue){if(e.isRadio&&te.splice(0,1),!sa.readPermission(ht.Number))return;J(Ye,!te.includes(Ye))}},onDoubleClick:()=>{if(sa.readPermission(ht.Number)){if(ue)it||(e.isRadio?c([Ye]):c([Ye,...l]));else{for(let ir=0;ir<l.length;ir++)if(l[ir]==Ye){l.splice(ir,1);break}c([...l])}re([],!1)}}})}),e.showFooter?R.jsxs("div",{style:{marginTop:"4px"},children:[R.jsx("span",{style:{color:"#999999"},children:ie("sys.selected",{placeholder:"已选"})})," ",R.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:te.length})," ",R.jsx("span",{style:{color:"#999999"},children:ie("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",R.jsx("span",{style:{color:"#999999"},children:ie("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",R.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ve?l.length:C[g][Y]}),R.jsxs("span",{style:{color:"#999999"},children:[" ",ie("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):R.jsx(R.Fragment,{})]})}})})})})}),hS=ae.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var y,_;const i=ae.useRef(null),{attr:s,allListOptions:o,popoverTransfer:l}=e,c=Gs(()=>{var C;(C=i.current)==null||C.open({ok:(E,T,b)=>{var h,m;["multiple","tags"].includes(e.mode)?r==null||r(E):r==null||r(E[0]),(h=l==null?void 0:l.onSubmit)==null||h.call(l,E,T,x=>p({newVal:E,allOptions:x}),b),(m=e.onBlur)==null||m.call(e)},cancel:()=>{var E;(E=e.onBlur)==null||E.call(e)}})});ae.useImperativeHandle(a,()=>({focus:c}),[]);const d=ae.useMemo(()=>{var E;const C=((E=l==null?void 0:l.panes)==null?void 0:E.map(T=>T.tabKey))||[String(s==null?void 0:s.listCode)];return Object.entries(o||{}).map(([T,b])=>C.includes(T)?b:[]).flat(1)},[s,o,l==null?void 0:l.panes]),p=Gs(({allOptions:C,newVal:E})=>{var h;const T=((h=l==null?void 0:l.panes)==null?void 0:h.map(m=>m.tabKey))||[s==null?void 0:s.listCode];let b=[];return Object.entries(C||o||{}).some(([m,x])=>{if(T.includes(m))return x.some(S=>{if(E&&(E==null?void 0:E.length)>1)return E.includes(S.value)&&!b.includes(m)&&b.push(m),!1;{const A=S.value==((E==null?void 0:E[0])||t);return A&&(b=[m]),A}})}),b.filter(Boolean).join(",")}),g=ae.useMemo(()=>{var E;const C=((E=l==null?void 0:l.panes)==null?void 0:E.map(T=>T.tabKey))||[s==null?void 0:s.listCode];return C.length==1?C[0]:p({}).split(",")[0]},[t,o,l==null?void 0:l.panes]),v=ae.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return R.jsxs("div",{children:[R.jsx(zs,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:v,filterOption:(C,E)=>E.label&&E.label.indexOf(C)>=0,showSearch:!0,disabled:n,options:d.map(C=>({...C,label:sa.readPermission(C.label)?C.label:ie("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:C=>{["multiple","tags"].includes(e.mode)?r==null||r(C):C&&C instanceof Array?r==null||r(C[0]):r==null||r("")},tagRender:({label:C})=>sa.readPermission(C)?R.jsx(pe.Tag,{color:"#0563B2",children:C}):R.jsx(Za,{}),onDropdownVisibleChange:c,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),R.jsx(DI,{title:`${ie("project.tab.plan.transfer.title",{placeholder:"选择"})}${s.name}`,...Object.assign(Object.create(null),l),ref:i,attr:s,defaultActiveKey:g||((_=(y=l==null?void 0:l.panes)==null?void 0:y[0])==null?void 0:_.tabKey)||"",defaultValue:v,allListOptions:o})]})}),Md={shuttle_box:"_shuttle_box_1962p_1",box:"_box_1962p_5",search:"_search_1962p_8"};function pS(e){const t=ae.useRef(!1),r=ae.useRef({}),n=l=>{if(typeof e=="function"){const c=e();return!l&&(r.current=c),Object.assign(Object.create(null),c)}else{const c=e;return!l&&(r.current=c),Object.assign(Object.create(null),e)}},[a,i]=ae.useState(n(!0));ae.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const s=l=>{if(!t.current)if(typeof l=="function"){const c=Object.assign(Object.create(null),l(a)||a);r.current=c,i(c)}else{const c=Object.assign(Object.create(null),r.current,l);r.current=c,i(c)}},o=()=>i(n());return Lt.makeDestructurable({store:a,setStore:s,resetStore:o,latestStore:r},[a,s,o,r])}const gS=ae.forwardRef((e,t)=>{var C,E,T,b;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((C=e.attr)!=null&&C.allowMultiple),a=!!((E=e.attr)!=null&&E.required),{store:i,setStore:s,resetStore:o,latestStore:l}=pS(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),c=pS(()=>({pageNo:1,pageSize:50,total:0})),d=async h=>{s({loading:!0});try{const{data:m,total:x}=await e.getDataSource({search:l.current.search,sorters:l.current.sorters,filters:l.current.filters,...c.latestStore.current,record:e.record});s(h?{dataSource:[...i.dataSource,...m]}:{dataSource:m}),c.setStore({total:x})}catch(m){console.log(m)}finally{s({loading:!1})}},p=ae.useMemo(()=>i.selectedRows.map(h=>h[r]),[i.selectedRows]);ae.useEffect(()=>{i.visible?d().finally(()=>{}):(o(),c.resetStore())},[i.visible]);const g=Gs(async h=>{var m,x,S;if(a&&!h&&!i.selectedRows.length){pe.message.error(ie("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(m=e.attr)==null?void 0:m.name}}));return}(S=(x=l.current.callback).ok)==null||S.call(x,h?[h[r]]:p),s({visible:!1})});ae.useImperativeHandle(t,()=>({open(h){s({callback:h,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const v=()=>{d()},y={onSelectAll(h,m){n||s({selectedRows:m})},onSelect(h,m){n?m?s({selectedRows:[h]}):a||s({selectedRows:[]}):s(m?{selectedRows:[...i.selectedRows,h]}:{selectedRows:i.selectedRows.filter(x=>x[r]!=h[r])})},getCheckboxProps:h=>({disabled:!1}),selectedRowKeys:p,columnWidth:13},_=ae.useMemo(()=>e.generateColumns(l),[e.generateColumns]);return ae.useEffect(()=>{const h=be.debounce(m=>{(m.keyCode||m.which)==13&&l.current.visible&&m.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",h),()=>{window.removeEventListener("keyup",h)}},[]),R.jsx(io,{className:Md.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:ie("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var h,m;s({visible:!1}),(m=(h=l.current.callback).cancel)==null||m.call(h)},footer:null,children:R.jsx("div",{onScroll:h=>h.stopPropagation(),onScrollCapture:h=>h.stopPropagation(),children:R.jsx(Go,{spinning:i.loading,children:R.jsxs("div",{className:Md.box,children:[R.jsx("div",{children:R.jsx("div",{className:`${Md.search}`,children:R.jsx(pe.Input.Search,{placeholder:ie("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:R.jsx("div",{className:Md.searchBtn,onClick:v,children:R.jsx(lt,{type:"homesearch"})}),value:i.search,onChange:h=>s({search:h.target.value}),onSearch:v})})}),R.jsx(x1,{rowSelection:{type:"checkbox",fixed:!0,...y},columns:_,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(T=e.scroll)==null?void 0:T.x,y:((b=e.scroll)==null?void 0:b.y)||300},style:{height:"100%"},...c.store,size:"small",onScroll:h=>{c.setStore({pageNo:h}),d(!0)},onFilterAndSorter:(h,m)=>{s({sorters:h,filters:m}),d()},onRow:(h,...m)=>({onClick:()=>{console.log(h,m,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(h)}})})]})})})})}),mS=ae.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=ae.useRef(null),{attr:s,allListOptions:o,selectPopupProps:l,record:c}=e,d=Gs(()=>{var v;(v=i.current)==null||v.open({ok:y=>{var _,C,E;["multiple","tags"].includes(e.mode)?(r==null||r(y),(_=e.onChange)==null||_.call(e,y,o[s.listCode]||[])):((C=e.onChange)==null||C.call(e,y[0],o[s.listCode]||[]),r==null||r(y[0])),(E=e.onBlur)==null||E.call(e)},cancel:()=>{var y;(y=e.onBlur)==null||y.call(e)}})});ae.useImperativeHandle(a,()=>({focus:d}),[]);const p=ae.useMemo(()=>be.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=ae.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return R.jsxs("div",{children:[R.jsx(zs,{...p,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(v,y)=>y.label&&y.label.indexOf(v)>=0,showSearch:!0,disabled:n,options:o[s.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:d}),R.jsx(gS,{title:`${ie("project.tab.plan.transfer.title",{placeholder:"选择"})}${s.name}`,...Object.assign(Object.create(null),l),ref:i,attr:s,record:c,defaultValue:g})]})}),p1=[null,(e,t)=>(e=Ne(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=Ne(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=Ne(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=Ne(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function RI(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=Ne(n.date);return((i=p1[n.type])==null?void 0:i.call(p1,a,Ne(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const vS={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},NI=ae.forwardRef((e,t)=>{const r=ae.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;ae.useImperativeHandle(t,()=>({focusFormItem:()=>{var l;i!=="File"&&i!=="Image"&&((l=r.current)==null||l.focus())},blurFormItem:()=>{var l;i!=="File"&&i!=="Image"&&((l=r.current)==null||l.blur())}}));const s=ae.useMemo(()=>{var d,p;const l=g=>(g==null?void 0:g.closest(v1))||document.body||document.documentElement;(d=e==null?void 0:e.formprops)!=null&&d.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=l);let c={getPopupContainer:l};return n.includes(i)?c={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(c={...e.formprops.props,size:"small",onChange:((p=e.formprops)==null?void 0:p.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onSave,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(c,e.record,e.apicode):c},[e.record,e.formprops,e.onSave]),o=()=>{var c;let l={...s};if(e.apicode==="NewVersion")return l.options&&l.options[e.record.insId][0]&&!((c=l.options[e.record.insId][0])!=null&&c.value)||l.options&&!l.options[e.record.insId][0]?(l={...l,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},R.jsx(pe.Input,{ref:r,...l})):R.jsx(pe.Select,{ref:r,filterOption:(d,p)=>p.label&&p.label.indexOf(d)>=0,showSearch:!0,allowClear:!0,...be.assign(l,{options:be.uniqBy(l.options?l.options[e.record.insId]:[],"value").length===1?be.uniqBy(l.options[e.record.insId],"value").map(d=>({label:d.label.replace(ie("sys.majorVersion",{placeholder:"大版本"}),"").replace(ie("sys.minorVersion",{placeholder:"小版本"}),""),value:d.value})):be.uniqBy(l.options&&l.options[e.record.insId]?l.options[e.record.insId]:[],"value")})});switch(i){case"Input":return R.jsx(pe.Input,{ref:r,...l});case"DatePicker.RangePicker":return R.jsx(pe.DatePicker.RangePicker,{...l});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&l.options&&l.options[e.record.insId]&&(l.options[e.record.insId]=l.options[e.record.insId].filter(g=>!g.noShow).map(g=>ls.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:ls.isStatusChange(g.itemcode)?ls.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&l.options&&l.options[e.record.insId]&&(l.options[e.record.insId]=l.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&l.options&&l.options[vS[e.record.extension]]){const g=l.options[vS[e.record.extension]].map(v=>({label:v,value:v}));return R.jsx(pe.Select,{ref:r,filterOption:(v,y)=>y.label&&y.label.indexOf(v)>=0,showSearch:!0,allowClear:!0,...l,options:g})}return R.jsx(pe.Select,{ref:r,filterOption:(g,v)=>v.label&&v.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...be.assign(l,{options:be.uniqBy(l.options?l.options[e.record.insId]:[],"value").length===1?be.uniqBy(l.options[e.record.insId],"value").map(g=>({label:g.label.replace(ie("sys.majorVersion",{placeholder:"大版本"}),"").replace(ie("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):be.uniqBy(l.options&&l.options[e.record.insId]?l.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return l.options&&l.options[e.record.insId]&&(l.options[e.record.insId]=l.options[e.record.insId].filter(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),R.jsx(pe.Select,{ref:r,filterOption:(g,v)=>v.label&&v.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...be.assign(l,{options:l.options&&l.options[e.record.insId]?l.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return l.options.forEach(g=>{var v;!((v=e==null?void 0:e.record)!=null&&v.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),R.jsx(pe.Select,{ref:r,filterOption:(g,v)=>v.label&&v.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...l});if(l!=null&&l.selectPopupProps)return R.jsx(mS,{ref:r,selectProps:{...l,record:e.record}});if(l!=null&&l.popoverTransfer||l!=null&&l.popoverTable)return R.jsx(hS,{ref:r,selectProps:l})}return R.jsx(pe.Select,{ref:r,filterOption:(g,v)=>v.label&&v.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...l});case"Cascader":return R.jsx(pe.Cascader,{ref:r,showSearch:{filter:(g,v)=>v.some(y=>y.label&&y.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...l});case"Date":const d=e.record.forbiddenTime,p=d&&d[e.name];return R.jsx(pe.DatePicker,{ref:r,...l,disabledDate:p?g=>RI(d[e.name],g):void 0});case"Number":return R.jsx(pe.InputNumber,{ref:r,...l});case"Input.TextArea":return R.jsx(pe.Input.TextArea,{ref:r,...l});case"TreeSelect":return R.jsx(pe.TreeSelect,{ref:r,...l});case"CompositeForm":return R.jsx(lc,{...l});default:return R.jsx(pe.Input,{ref:r,...l})}};return R.jsx(pe.Form.Item,{noStyle:!0,name:e.name,children:o()})}),xS={imgOuter:"_imgOuter_16ygq_1",imgInner:"_imgInner_16ygq_9"},_S=e=>R.jsx(pe.Image,{...e,src:e.src}),g1=e=>R.jsx("div",{className:xS.imgOuter,children:R.jsx(_S,{preview:!1,src:e.src,className:xS.imgInner,placeholder:R.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:R.jsx(lt,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})}),height:e.height||"46px",width:e.width||"46px"})}),Tt=class Tt{static avoid0TypeConvert(t){return Lt.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return Ne.isMoment(a)?Lt.momentToRawData(a):a??""}return t=n(t),r=n(r),be.isNil(t)&&be.isNil(r)||be.isNaN(t)&&be.isNaN(r)?!0:t instanceof Object?be.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!be.isNil(t.inProcess[r])&&!be.isNil(t.inProcess)&&Tt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!be.isNil(t.newVal[r])&&!be.isNil(t.newVal)&&Tt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],s=a.map(l=>{const c=t.inProcess[l],d=t[l],p=Tt.isEqual(c,d);return r==null||r("inProcess",l,p,c,d),p}).some(l=>!l),o=i.map(l=>{const c=t.newVal[l],d=t[l],p=Tt.isEqual(c,d);return r==null||r("newVal",l,p,c,d),p}).some(l=>!l);return{hasOptType:n,hasInProcess:s,hasNewValue:o}}static isEmptyValue(t){return typeof t=="number"?!1:be.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:s,filters:o}=t;const l=ls.isUser(i.itemCode||""),c=i.tab==="Delegate";if(l&&c&&o){const d=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),p=be.map(o.split("~!~"),g=>be.split(g,"-")[0]);be.includes(p,d[0])?o.split("~!~").map(g=>{if(d.includes(g.split("-")[0])){const v=g.split("-")[1].split(",");v&&Array.isArray(v)&&(be.remove(v,y=>y==""||y==null),r.map(y=>(y.apicode==="Category"&&be.forEach(y.formitem.props.options,_=>{be.includes(v,_.itemCode)?_.isHidden=!1:_.isHidden=!0,v.length==0&&(_.isHidden=!1)}),y)))}}):r.map(g=>(g.apicode==="Category"&&be.forEach(g.formitem.props.options,v=>{v.isHidden=!1}),g))}if(i.tab!=="History"){const d=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),p=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(s&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(s.split("-")[0])){const g=Tt.getFixAttrFilterOrSortInfo({filterOrSort:s,attrs:n||r.map(v=>v.attr)});s=(g==null?void 0:g.value)||s}else d.includes(s.split("-")[0])?s=s?`attributes.${s}`:"":p.includes(s.split("-")[0])&&(s=s?`current.${s}`:"");if(o){const g=r.filter(v=>["OldVersion"].includes(v.apicode)).map(v=>v.dataIndex);o=o.split("~!~").map(v=>{if(console.log(v,"item"),g.includes(v.split("-")[0]))return`current.${v.split("-")[0]}-${v.split("-")[1]===ie("sys.label.draft",{placeholder:"草稿"})?"Draft":`${v.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(v.split("-")[0])){const y=Tt.getFixAttrFilterOrSortInfo({filterOrSort:v,attrs:n||r.map(_=>_.attr)});return(y==null?void 0:y.value)||o}if(d.includes(v.split("-")[0]))return v?`attributes.${v}`:"";if(p.includes(v.split("-")[0]))return v?`current.${v}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const d=Lt.transformArrayToMap(n,"apicode","id");s=s.replace("insVersionOrder",`attributes.${d.Revision}`),o=o.replace("insVersionOrder",`attributes.${d.Revision}`)}return{sorters:s,filters:o,sortersField:a}}static monitoringCol(t,r){var l;const n=()=>{};if(!t)return n;const a=(l=t.querySelector(".frontend-table-header"))==null?void 0:l.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),s=t.querySelector(".frontend-table-body").querySelector("colgroup");let o=null;return i&&(o=new MutationObserver(async(c,d)=>{const[p]=c;if(p.type=="attributes"&&p.attributeName=="style"&&!i.inhibit&&!be.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const v=Number(g)-i.offsetWidth,y=a.children.length-2,_=be.round(v/y,2);Array.from(a.children,(C,E)=>{const T=s.children[E];if(C==i)C.setAttribute("style",`width:${g}px;max-width:${g}px;`),T.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(E!=a.children.length-1){const b=C.style.width.replace("px","");C.setAttribute("style",`width:${Number(b)+_}px;`),T.setAttribute("style",`width:${Number(b)}px;`)}})}}else i.inhibit=!1}),o.observe(i,{attributeFilter:["style"]})),()=>{o==null||o.disconnect(),o=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[s]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([o,l])=>n==l)||[];if(s){const o=Lt.getAttrOf(r,s);if(o){o.apicode==="Version"&&(a=a===ie("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const l=sl.getAttributesMapId(o),c=sl.isQuoteAttr(o)?"attributes":"current";return{apicode:s,id:l,attr:o,filterOrSortValue:a,prefix:c,value:`${c}.${l}-${a}`}}}}}};Ln(Tt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var o;return r&&r[0]?be.isArray(r[0])&&t?(o=t.props)!=null&&o.treeCheckable||t.props.mode==="multiple"?Tt.renderReadonlyItem({value:r[0],formitem:t}).split(","):Tt.renderReadonlyItem({value:r[0],formitem:t}):Ne.isMoment(r[0])?[Ne(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],s=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:s?i:r||[],needTransform:s}}),Ln(Tt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(sa.isMosaic(a))return R.jsx(Za,{});const{trulyHighlight:i,needTransform:s}=Tt.getTrulyHighlight({highlight:t,formitem:r});return s?R.jsx(ns,{highlight:i,value:n}):n}),Ln(Tt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!be.isNil(t.newVal[r])))if(Tt.isEqual(t.newVal[r],t[r])){if(Tt.isEqual(t.newVal[r],t[r]))return R.jsx("div",{style:{width:"100%"},children:R.jsx("div",{className:Ua.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Tt.wrapperHighLight({originValue:t.newVal[r],value:Tt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return R.jsxs("div",{style:{width:"100%"},children:[R.jsx("div",{className:Ua.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Tt.wrapperHighLight({originValue:t.newVal[r],value:Tt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),R.jsx("div",{className:Ua.update_style,children:a?a({value:t[r],formitem:n,row:t}):Tt.wrapperHighLight({originValue:t[r],value:Tt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!Tt.isEqual(t.inProcess[r],t[r]))return R.jsxs("div",{style:{width:"100%"},children:[R.jsx("div",{className:Ua.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):Tt.wrapperHighLight({originValue:t.inProcess[r],value:Tt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),R.jsx("div",{className:Ua.update_style,children:a?a({value:t[r],formitem:n,row:t}):Tt.wrapperHighLight({originValue:t[r],value:Tt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!Tt.isEqual(t.newVal[r],t[r])?R.jsxs("div",{style:{width:"100%"},children:[R.jsx("div",{className:Ua.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Tt.wrapperHighLight({originValue:t.newVal[r],value:Tt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),R.jsx("div",{className:Ua.update_style,children:a?a({value:t[r],formitem:n,row:t}):Tt.wrapperHighLight({originValue:t[r],value:Tt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):R.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):Tt.wrapperHighLight({originValue:t[r],value:Tt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Ln(Tt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,s,o,l,c,d;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?be.isArray(n)&&n instanceof Array?n.map(p=>Lt.getLabelInOptions({value:p,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(p=>Lt.getLabelInOptions({value:p,options:(r==null?void 0:r.props.options)||[]})).join(","):"":Lt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&be.isArray(n)&&n instanceof Array?n.map(p=>Lt.getLabelInOptions({value:typeof p!="string"?p.value:p,options:(r==null?void 0:r.props.treeData)||[]})).join(","):Lt.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(Ne.isMoment(n)){const g=n.creationData();return n.format(((s=r==null?void 0:r.props)==null?void 0:s.format)??g.format)}else return Ne(n).format(((o=r==null?void 0:r.props)==null?void 0:o.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!be.isArray(n)?R.jsx(pe.Popover,{placement:"right",content:R.jsx("div",{style:{height:"60px",width:"60px"},children:n?R.jsx(g1,{src:`/api${n}`}):R.jsx(R.Fragment,{})}),trigger:"hover",children:R.jsx("div",{style:{height:"26px",width:"26px"},children:n?R.jsx(g1,{src:`/api${n}`}):R.jsx(R.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(l=String(n))!=null&&l.includes("~%~")?`${n.split("~%~")[0]||""}${((d=be.find((c=r.props)==null?void 0:c.options,{id:n.split("~%~")[1]}))==null?void 0:d.name)||""}`:n:"":r.isbomtag&&!be.isArray(n)&&!(n instanceof Array)?n?Lt.renderBomTag(n):"":be.isArray(n)&&n instanceof Array?n.join(","):n??""}),Ln(Tt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),Ln(Tt,"renderVersionColumn",(t,r)=>sa.isMosaic(t)?R.jsx(Za,{}):t==="Draft"||be.isString(t)&&t.split(" ")[0]==="Draft"?R.jsx(ns,{highlight:r||[],value:ie("sys.label.draft",{placeholder:"草稿"})}):R.jsx(ns,{highlight:r||[],value:be.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Bi=Tt;const MI=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:s,handleFill:o,handleDoubleClick:l,renderCacheCell:c,loading:d,required:p,formitem:g,rowKey:v,render:y,tableKey:_,menuId:C,highlight:E,isVersion:T,isUser:b,preRender:h,apicode:m,canselectcell:x,selectedCell:S,fillContextMenu:A,setInitialState:k,...F})=>{var je,Z,Ge;const P=ae.useContext(nu),[j,L]=ae.useState(!1),B=ae.useContext(wS),U=ae.useRef(null),O=["Input","Input.TextArea","Number"];x&&S&&(S==null?void 0:S.dataIndex)===n&&(S==null?void 0:S.record[v])==a[v]&&(S==null?void 0:S.tableKey)==_&&(F.style={...F.style,background:"#ddeffe"}),ae.useEffect(()=>{var Ae,ze;j?(Ae=U.current)==null||Ae.focusFormItem():(ze=U.current)==null||ze.blurFormItem()},[j]);const N=Ae=>{for(;Ae&&Ae.nodeName!=="TR";)Ae=Ae.parentNode;return Ae},V=async(Ae,ze)=>{var ut,Ye,it;const qe=()=>{if(!(!e&&!n)&&ze){const ht=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});N(ze==null?void 0:ze.target)&&N(ze==null?void 0:ze.target).dispatchEvent(ht)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){qe();return}if(Ae?l&&await l(a):!0){if(await B.validateFields(),Ae){let ht=a.newVal&&!be.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!be.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const ir=(ut=g.props)==null?void 0:ut.format;ht=ht?Ne(ht,typeof ir=="string"?ir:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((Ye=g==null?void 0:g.props)!=null&&Ye.treeCheckable)||(g==null?void 0:g.type)==="Select"&&((it=g==null?void 0:g.props)==null?void 0:it.mode)==="multiple")&&(ht==""?ht=[]:typeof ht=="string"&&(ht=ht.split(","))),B.setFieldsValue({[n]:ht})}L(!j)}else qe()},M=async()=>{try{const Ae=await B.validateFields();V(),Object.keys(Ae).forEach(ze=>{(Ae[ze]===null||Ae[ze]===void 0)&&(Ae[ze]=""),typeof Ae[ze]=="string"&&(Ae[ze]=Ae[ze].trim())}),i({...a,...Ae})}catch{}},q=(Ae,ze)=>c||R.jsx("div",{className:Ua.edit_cell,children:R.jsx(ns,{value:Bi.renderReadonlyItem({value:Ae[ze],formitem:g}),highlight:ue})}),{show:Y}=bI({id:C}),z=()=>{x&&(s(),k&&k(Ae=>({...Ae,selectedCell:{dataIndex:n,record:a,tableKey:_}})))},re=Ae=>{if(n){if(z(),Ae.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;Y(Ae,{props:{key:{dataIndex:n,record:a}}})}};let J=r;const te=a?a[n]:"",oe=ae.Children.map(r,Ae=>{var ze;if(ae.isValidElement(Ae)){const qe=(ze=Ae==null?void 0:Ae.props)==null?void 0:ze.children;return!qe||!Array.isArray(qe)?null:qe.some(ut=>{const Ye=ut==null?void 0:ut.props;return Ye&&typeof Ye.className=="string"?Ye.className.includes("frontend-table-row-indent"):!1})?qe:null}else return null});if(!sa.readPermission(te))return R.jsxs("td",{...F,children:[oe,R.jsx(Za,{inLine:!0})]});const{trulyHighlight:ue}=Bi.getTrulyHighlight({highlight:E,formitem:g});if(b){const Ae=(P==null?void 0:P.overrideLinkCom)||"a";J=R.jsx(Ae,{userId:a[n],id:a[n],record:a,content:Bi.renderReadonlyItem({value:a[n],formitem:g}),highlight:ue})}else if(t){if(g.type==="Date"){const Ae=(je=g.props)==null?void 0:je.format,ze=typeof Ae=="string";let qe,Pe;if(Ne.isMoment(a[n])){const ut=a[n].creationData();qe=ut==null?void 0:ut.input,Pe=ut==null?void 0:ut.format}a[n]=a[n]?Ne(qe||a[n],ze?Ae:Pe||"YYYY-MM-DD HH:mm:ss"):null}if(((Z=g.props)!=null&&Z.treeCheckable||((Ge=g.props)==null?void 0:Ge.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),j)J=R.jsx("div",{onDoubleClick:Ae=>{Ae.stopPropagation()},children:R.jsx(pe.Form.Item,{validateTrigger:O.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:R.jsx(NI,{name:n,ref:U,onSave:()=>M(),formprops:g,record:a,apicode:m})})});else if(!y){let Ae=q(a,n);J=R.jsxs("div",{onContextMenu:A===!1?void 0:re,title:a.newVal?Bi.renderReadonlyItem({value:a.newVal[n],formitem:g}):Bi.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[oe,Ae]})}}else if(n&&!y)return T?R.jsx("td",{...F,title:a&&a[n]?a[n]==="Draft"?ie("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:z,children:R.jsx(ns,{value:a&&a[n]?a[n]==="Draft"?ie("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:ue})}):R.jsx("td",{...F,title:a&&a[n]?a[n]:"",onClick:z,children:R.jsx(ns,{value:a?be.isNil(a[n])?"":a[n]:"",highlight:ue})});const ve=J==null?void 0:J.toString(),_e=Array.isArray(J)&&J[0]===void 0,ye=ve!=null&&ve.includes("[object ")?void 0:_e?ve==null?void 0:ve.replace(/^\,/,""):ve;return R.jsx("td",{...F,onDoubleClick:Ae=>{Ae.stopPropagation(),V(!0,Ae)},onClick:()=>{n&&z()},children:R.jsx("div",{title:ye,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:J})})},II=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},LI=e=>R.jsxs(OI,{id:e.menuId,children:[R.jsx(dS,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:ie("sys.prompt.fillUp",{placeholder:"向上填充"})}),R.jsx(dS,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:ie("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),BI=e=>{const[t,r]=ae.useState({}),[n,a]=ae.useState({}),i=ae.useRef(null),{Option:s}=pe.Select,o=(g,v)=>{r(g),a(v)};return{getColumnSearchProps:ae.useCallback((g,v)=>{const y=()=>{var T,b;return typeof(v==null?void 0:v.title)=="string"?v==null?void 0:v.title:(b=(T=v==null?void 0:v.search)==null?void 0:T.props)==null?void 0:b.placeholder},_=(T,b,h)=>{b()},C=(T,b)=>{T(),b()},E=(T,b,h)=>{var S,A;const m={size:"small",onChange:k=>{k&&k.target?T(k.target.value?[k.target.value]:[]):T(k?[k]:[])},style:{marginBottom:8,display:"block"}},x=R.jsx(pe.Input,{size:"small",ref:i,placeholder:ie("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:y()}}),value:b[0],onPressEnter:()=>_(b,h),...be.omit(m,["size"])});if(v.search)switch(v.search.type){case"Input":return x;case"Select":let k=(A=(S=v==null?void 0:v.search)==null?void 0:S.props)==null?void 0:A.options;return v.apicode==="ProblemVersion"&&(k=be.uniqBy(be.flatten(Object.values(k||{})),"value")||[],k=k.map(F=>({label:F.label==="Draft"?ie("sys.label.draft",{placeholder:"草稿"}):F.label,value:F.value}))),k=(k||[]).filter(F=>sa.readPermission(F.label)),R.jsx(pe.Select,{size:"small",onKeyUp:F=>{(F.keyCode===13||F.charCode==13)&&_(b,h)},ref:i,mode:"multiple",placeholder:`${ie("sys.label.selectOption",{placeholder:"请选择"})} ${y()}`,value:b[0],filterOption:(F,P)=>P.label&&P.label.indexOf(F)>=0,...be.omit(m,["size"]),children:(k||[]).map(F=>{if(!F.isHidden)return ae.createElement(s,{...F,value:F.value,disabled:F.disabled,key:F.value,label:F.label},R.jsx("div",{title:F.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:F.label}))})});case"Date":return R.jsx(pe.DatePicker,{size:"small",value:b[0],...be.omit(m,["size"])});case"CompositeForm":return R.jsx("div",{className:"compositeFormClass",children:R.jsx(lc,{...v.formitem.props,valueType:v.valueType,value:b[0],size:"small",...be.omit(m,["size"])})})}else return x};return v.search?{filterIcon:T=>R.jsx(Yo,{style:{color:T?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:T,selectedKeys:b,confirm:h,clearFilters:m})=>R.jsxs("div",{style:{padding:8},children:[R.jsx("div",{style:{marginBottom:"5px"},children:E(T,b,h)}),R.jsxs(pe.Space,{children:[R.jsx(pe.Button,{type:"primary",onClick:()=>_(b,h),icon:R.jsx(Yo,{}),size:"small",style:{width:90},children:ie("sys.filter",{placeholder:"筛选"})}),R.jsx(pe.Button,{onClick:()=>C(m,h),size:"small",style:{width:90},children:ie("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:T=>{T&&(v.search.type==="Input"||v.search.type==="Select")&&setTimeout(()=>{var b;return(b=i==null?void 0:i.current)==null?void 0:b.focus()},100)}}:{}},[]),setTableFiltered:g=>{o(g.sort(t),g.screen(n))},clearFilters:g=>{o({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,v,y,_)=>{a(v),r(y),o(y,v);let C="",E="";be.isArray(y)?y&&y.length&&(C=y.map(b=>`${b.field}-${b.order}`).join(",")):y.field&&y.order&&(C=`${y.field}-${y.order==="ascend"?"asc":"desc"}`);const T=b=>b.map(h=>Array.isArray(h)?h.join(","):Ne.isMoment(h)?h.format("YYYY-MM-DD"):h);E=be.remove(Object.keys(v).map(b=>v[b]&&typeof v[b][0]=="string"||typeof v[b]!="string"&&v[b]&&v[b][0]?`${b}-${T(v[b]||[]).join(",")}`:null),b=>b!==null).join("~!~"),e&&e(C,E,y.field,v)},sortInfo:t,filterInfo:n}},jI=e=>{var s,o;const t=((s=e.dataSource)==null?void 0:s.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(o=e.rowSelection.selectedRowKeys)==null?void 0:o.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=R.jsx(lt,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?R.jsx(R.Fragment,{}):R.jsxs("div",{className:`${Ua.table_footer} ${e.className||""}`,children:[e.hideTableCount?R.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):R.jsxs("div",{style:a,children:[ie("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),R.jsxs("span",{children:[" ",t,"/",r," "]}),ie("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",ie("sys.selected",{placeholder:"已选"}),R.jsx("span",{children:` ${n} `}),ie("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&R.jsx("div",{children:R.jsx(lt,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},UI=(e,t,r,n,a,i,s)=>{var h;const[o,l]=ae.useState(!1),[c,d]=ae.useState(0),[p,g]=ae.useState(e.columns||[]),[v,y]=ae.useState(null),[_,C]=ae.useState(null),E=m=>(x,{size:S})=>{x.stopImmediatePropagation();const A=[...p];A[m]={...A[m],width:S.width},g(A)};ae.useEffect(()=>{g(e.columns)},[e.columns]);const T=Number(((h=e==null?void 0:e.scroll)==null?void 0:h.y)||i)+24;return{renderColumns:p?p.filter(m=>m).map((m,x)=>be.extend({...m,sorter:m.sorter?{}:!1,required:m.editable?m.required:!1,sortOrder:t.field===m.dataIndex&&t.order,filteredValue:r?r[m.dataIndex]||[]:[],onHeaderCell:S=>({dataIndex:m.dataIndex,width:S.width,required:m.required,editable:m.editable,trulyHeight:T,tableKey:e.tableKey,formitem:m.formitem,onResize:E(x),onResizeOver:A=>{d(A.screenX),l(!0)},onResizeStop:A=>{console.log(A),l(!1)}}),onCell:S=>{var F,P;const A=((F=m==null?void 0:m.onCell)==null?void 0:F.call(m,S))||{},k=(typeof e.rowKey=="string"?e.rowKey:(P=e.rowKey)==null?void 0:P.call(e,S))||"id";return{record:S,className:`${m.className??""} ${m.dataIndex==_&&S[k]==v?Ua.loading:""}`,editable:m.editable,isVersion:m.isVersion,isUser:m.isUser,apicode:m.apicode,dataIndex:m.dataIndex,title:m.title,formitem:m.formitem,required:m.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:m.render,highlight:r[m.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:s,renderCacheCell:Bi.renderCacheCell(S,m.dataIndex,m.formitem,void 0,{highlight:r[m.dataIndex]}),handleCellSelected:()=>{e.onSelectCell&&e.onSelectCell()},handleDoubleClick:j=>{if(e.onDoubleClick){const L=e.onDoubleClick(m,j);return L instanceof Promise&&(y(S[k]),C(m.dataIndex),L.finally(()=>{y(null),C(null)})),L}else return!0},handleSave:j=>{e.onSubmit&&e.onSubmit(j,m)},...A}}},a(m.dataIndex,m))):[]}},yS="INPUT_NAMESPACE",HI=(e,t,r,n)=>{const[a,i]=ae.useState();function s(o){const l=o.toString(),c=l.indexOf(".");return c===-1?0:l.slice(c+1).length}return ae.useEffect(()=>{async function o(l){var v,y,_,C,E,T,b,h,m,x;if(l.target instanceof HTMLInputElement&&((y=(v=l.target)==null?void 0:v.dataset)==null?void 0:y.type)!=yS||l.target instanceof HTMLTextAreaElement||!l.target.closest(`.${v1}`)){console.log("is Input or TextArea or not Table");return}l.preventDefault();let c=(_=l.clipboardData)==null?void 0:_.getData("text");const d=await Promise.resolve().then(()=>aY);if(c&&r&&n){var p=d.read(c,{type:"binary"}),g=p.SheetNames;const S=d.utils.sheet_to_json(p.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),A=n.findIndex(P=>{var j,L,B;return P.dataIndex==r.dataIndex&&P.editable&&(((j=P.formitem)==null?void 0:j.type)=="Input"||((L=P.formitem)==null?void 0:L.type)=="Input.TextArea"||((B=P.formitem)==null?void 0:B.type)=="Number")});let k=n.findIndex((P,j)=>{var L,B,U;return j>A&&(!P.editable||!(((L=P.formitem)==null?void 0:L.type)=="Input"||((B=P.formitem)==null?void 0:B.type)=="Input.TextArea"||((U=P.formitem)==null?void 0:U.type)=="Number"))});k==-1&&(k=n.length);const F=n.slice(A,k);if(F.length>0){const P=S.map(j=>j.filter(L=>j.indexOf(L)<F.length))||[];for(let j=0;j<P.length;j++){const L=P[j]||[];for(let B=0;B<L.length;B++){const U=L[B],O=((C=F[B].formitem)==null?void 0:C.type)=="Number",N=(T=(E=F[B].formitem)==null?void 0:E.props)==null?void 0:T.precision,V=(h=(b=F[B].formitem)==null?void 0:b.props)==null?void 0:h.min,M=(x=(m=F[B].formitem)==null?void 0:m.props)==null?void 0:x.max;if(O){const q=be.toNumber(U),Y=q&&(V?q>=V:!0)&&(M?q<=M:!0)&&(be.isNumber(N)&&N>0?s(q)<=N:!0);L[B]=Y?q:void 0}}}i(P)}}}return document.addEventListener("paste",o),()=>{document.removeEventListener("paste",o)}},[r,n]),{pasteData:a}},zI=e=>`${e}Key`,m1=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,WI=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...o)=>`${e}+${o.join(n)}`,i=la(t),s=la(be.fromPairs(i.current.map(([o,l])=>[a(...o),l])));ae.useEffect(()=>{console.log("初始化 useShortcutKey");const o=()=>i.current.map(([v])=>v).flat(1),l=v=>{var y,_,C;(!r||((y=v.target)==null?void 0:y.id)==r)&&(c.push(m1(v)),(C=(_=s.current)[c.join(n)])==null||C.call(_,v))},c=[],d={},p=v=>{var y;if(!r||((y=v.target)==null?void 0:y.id)==r){const _=m1(v);v[zI(e)]&&!d[_]&&(d[_]=!0,o().includes(v.key)&&c.includes(e)&&v.preventDefault(),l(v))}},g=v=>{const y=m1(v);d[y]=!1,c.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",p),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",p)}},[])},$I=(e,t)=>{const[r,n]=ae.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:s}=e,{selectedRowKeys:o=[]}=s||{},{childKeyName:l="children",isMark:c=!0,initialState:d,setInitialState:p}=a||{},g=String(e.rowKey||"id"),[v,y]=ae.useState(!1),_=()=>v&&o.length,C=m=>x=>{_()&&m(x)},E=async(m,x)=>{var A;const S=[];S.type="shear",S.namespace=t,x.forEach(k=>{Lt.isDelTableRow(k)||S.push({...k,toShear:()=>k.shear=!0})}),Lt.ArrayAttributeFlat(S,l,k=>{k.toShear||(k.shear=!0)}),(!m.onBeforeShear||await m.onBeforeShear(S))&&(S.forEach(k=>{k.toShear(),delete k.toShear}),console.log("剪切",S),p&&p(k=>({...k,clipboard:S})),m.setDataSource("shear",i),(A=m.onAfterShear)==null||A.call(m,S),S.length&&(S.onPasteCallback=async k=>{var L;const F=k==t,P=[...i],j=()=>{p&&p(B=>({...B,clipboard:[]})),[...S].reverse().forEach(B=>{const U=Lt.getTreeRelationNoRecursion({data:P,lookup:O=>O[g]==B[g],childrenKey:l});c&&U.self.dataType!=="add"?(U.self.shear=!1,U.self.dataType="del",Lt.ArrayAttributeFlat(U.self[l],l,O=>{O.toShear||(O.shear=!1,O.dataType="del")})):U.parent?U.parent[l].splice(U.index,1):P.splice(U.index,1)}),m.setDataSource("shear",P)};return!m.onBeforeDeleteShear||await m.onBeforeDeleteShear({isSameSpace:F,deletes:S})?(j(),(L=m.onAfterDeleteShear)==null||L.call(m,{isSameSpace:F,deletes:S}),Promise.resolve(P)):Promise.reject(ie("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},T=async(m,x)=>{var A;const S=[];S.type="copy",S.namespace=t,x.forEach(k=>{Lt.isDelTableRow(k)||(k.shear=!1,Lt.ArrayAttributeFlat(k[l],l,F=>{F.shear=!1}),S.push({...k}))}),(!m.onBeforeCopy||await m.onBeforeCopy(S))&&(console.log("复制",S),p&&p(k=>({...k,clipboard:S})),m.setDataSource("paste",i),(A=m.onAfterCopy)==null||A.call(m,S))},b=async(m,{pasteData:x,pasteTarget:S})=>{var k,F;const A=Lt.ArrayAttributeFlat(x,l).every(P=>!S.includes(P[g]));if(console.log({isNonSelf:A}),S.length==1&&x.length&&A){const j=Lt.ArrayAttributeFlat(i,l).find(B=>B[g]==S[0]),L=m.pasteInto||"child";if(!m.onBeforePaste||await m.onBeforePaste({target:j,rows:x,type:L}))try{const B=await((k=x.onPasteCallback)==null?void 0:k.call(x,t))||[...i],U=Lt.getTreeRelationNoRecursion({data:B,lookup:O=>O[g]==j[g],childrenKey:l});if(c){const O=N=>N.map(V=>Object.assign({...V,shear:!1,dataType:"add",[g]:Lt.generateUUID(),primitiveInsId:V.primitiveInsId||V[g]},V[l]?{[l]:O(V[l].filter(M=>!N.some(q=>q[g]==M[g]))||[])}:{}));x=O(x)}if(L=="child"){const O=U.self[l];U.self[l]=[...O,...x]}else U.parent?U.parent[l].splice(U.index+1,0,...x):B.splice(U.index+1,0,...x);m.setDataSource("paste",B),(F=m.onAfterPaste)==null||F.call(m,{target:j,type:L})}catch(B){console.error(B)}}};a&&WI(Lt.isMac()?"meta":"ctrl",{shortcuts:[[["x"],C(async()=>{const m=Lt.ArrayAttributeFlat(i,l).filter(x=>o.includes(x[g]));console.log({shearList:m}),E(a,m)})],[["c"],C(async()=>{const m=Lt.ArrayAttributeFlat(i,l).filter(x=>o.includes(x[g]));console.log({copyList:m}),T(a,m)})],[["v"],C(async()=>{const m=(d==null?void 0:d.clipboard)||[];b(a,{pasteData:m,pasteTarget:o})})]],namespace:t});const h=ae.useRef(null);return ae.useEffect(()=>{var m;r||((m=h.current)==null||m.focus(),y(!0))},[o.length,o[0]]),ae.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:v,focus:()=>{var x;const m=document.querySelector(":focus");m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement||(x=h.current)==null||x.focus()},shear:E,copy:T,paste:b,FocusDom:R.jsx("input",{ref:h,"data-type":yS,type:"text",id:t,onFocus:()=>y(!0),onBlur:()=>y(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},VI=(e,t,r,n)=>{const[a,i]=ae.useState();return ae.useEffect(()=>{async function s(o){if(r){const l=o.clipboardData,c=r.dataIndex,d=r.record;let p=null;if(d.newVal&&Object.hasOwn(d.newVal,c)?p=d.newVal[c]:p=d[c]||null,p)try{l.setData("text/plain",p),i(p),o.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",s),()=>{document.removeEventListener("copy",s)}},[r,n]),{copyData:a}},wS=ae.createContext(null),v1="tableTopBox",x1=ae.forwardRef((e,t)=>{var P;ae.useImperativeHandle(t,()=>({scrollTo:j=>{i.current.scrollTo(j)},scrollXTo:j=>{if(a.current){const L=a.current.querySelector(".frontend-table-body");L&&(L.scrollLeft=j)}},clearFilters:d,setTableFiltered:v,clipboard:F}));const[r]=ae.useState(Lt.generateUUID()),n=ae.useRef(null),a=ae.useRef(null),i=ae.useRef(null),[s]=pe.Form.useForm(),o=II(),{sortInfo:l,filterInfo:c,clearFilters:d,getColumnSearchProps:p,onFiltersChange:g,setTableFiltered:v}=BI(e.onFilterAndSorter),[y,{toggleFullscreen:_,exitFullscreen:C}]=Iy(a,{pageFullscreen:{zIndex:500}}),E=e.tableKey||r;ae.useEffect(()=>{const j=L=>{L.key=="Escape"&&y&&C()};return addEventListener("keydown",j),()=>{removeEventListener("keydown",j)}});const T=fI({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||y),[b,h]=cI(()=>({scroll:{y:1e3},ref:i}),[]),m={header:{cell:mI},body:{cell:MI}};ae.useMemo(()=>h(m),[h]);const{renderColumns:x}=UI({...e,tableKey:E},l,c,o,p,T,e.selectedCell),{pasteData:S}=HI(a,e.dataSource,e.selectedCell,e.columns);ae.useEffect(()=>{var j;if(S&&e.selectedCell){const L=e.dataSource||[],B=String(e.rowKey)||"id",U=L.findIndex(z=>{var re;return z[B]==((re=e.selectedCell)==null?void 0:re.record[B])}),O=e.columns.findIndex(z=>{var re;return z.dataIndex==((re=e.selectedCell)==null?void 0:re.dataIndex)});let N=((j=S[0])==null?void 0:j.length)||0,V=(S==null?void 0:S.length)||0;const M=e.columns.slice(O,O+N),q=L.slice(U,U+V);let Y=[];S.forEach((z,re)=>{if(q.length>re){const J={};z.forEach((te,oe)=>{M.length>oe&&(J[M[oe].dataIndex]=te,J[B]=q[re][B])}),Y.push(J)}}),e.onPaste&&e.onPaste(Lt.transformArrayToMap(Y,B))}},[S]);const{copyData:A}=VI(a,e.dataSource,e.selectedCell,e.columns);ae.useEffect(()=>{A&&e.selectedCell&&e.onCopy&&e.onCopy(A)},[A]);const{run:k}=OA(async j=>{const L=e.pageNo||1,B=e.pageSize||10,U=e.total||0;Math.abs(parseInt(j.target.scrollTop+j.target.clientHeight)-j.target.scrollHeight)<1.5&&!e.loading&&L*B<U&&e.onScroll&&e.onScroll(L+1)},{wait:400}),F=$I(e,r);return R.jsxs("div",{ref:n,id:`table_key_${E}`,className:`${Ua.main} ${v1}`,style:{position:"relative",overflow:"hidden"},onClick:j=>F.focus(),onScrollCapture:j=>{j.target.scrollHeight!==24&&j.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&k(j):k(j))},children:[R.jsx(LI,{menuId:o,...be.pick(e,["onFill"])}),F.FocusDom,R.jsxs(pe.Form,{form:s,component:!1,children:[R.jsx(wS.Provider,{value:s,children:R.jsx(pe.Table,{className:Er(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:b,bordered:!0,...be.omit(e,["columns","scroll","expandable","tableKey"]),tableKey:E,loading:{indicator:R.jsx(pu,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:j,onExpand:L,record:B,expandable:U})=>B.children&&B.children.length||B.hasChildren?j?R.jsx(S_,{className:"expand",onClick:O=>{L(B,O)}}):R.jsx(k_,{className:"expand",onClick:O=>{L(B,O)}}):(e.isTree||U!==void 0)&&R.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:T,scrollToFirstRowOnChange:!0,...be.merge(e.scroll,{x:(P=e.scroll)==null?void 0:P.x})},columns:x,onChange:g})}),R.jsx(jI,{...e,className:e.tableFooterClassName,clearFilters:d,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:_l}=pe.Select,bS=ae.forwardRef((e,t)=>{const r=ae.useRef("1848553711328477186"),[n,a]=ae.useState([]),[i,s]=ae.useState([]),[o,l]=ae.useState([]),c=En({pageNo:1,pageSize:50,total:0}),d=En({sorter:"",filters:"",itemCodes:`${os.material},${os.document},${os.file}`,initialItemCodes:""}),p=En({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:ie("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:ie("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:ie("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});Zo(()=>{var T;let E=[];for(let b of e.columns||p.columns)E.push({...b,render:!b.render&&((T=e.placeholderCode)!=null&&T.includes(b.dataIndex))?h=>R.jsx(ns,{value:h,highlight:g.numberHighLight||[]}):b.render});p.columnsHighlight=E,e.isSelect&&e.allCategories?e.getItems().then(b=>{if(b.code==200){let h=[];for(let x of b.result)x.code!=10001019&&x.code!=10001017&&x.code!=10001018&&h.push({label:x.name,value:x.code});p.conditionObject=h;let m=be.map(h,"value").join(",");d.itemCodes=m,d.initialItemCodes=be.cloneDeep(m),y(!0)}}):y(!0)}),ae.useEffect(()=>(e.enter&&!p.focus&&o.length>0?v():document.onkeydown=null,()=>{document.onkeydown=null}),[o,p.focus]),ae.useImperativeHandle(t,()=>({getLoading:E=>{p.loading=E},backfill:E=>{l(E)}}));const g=En({numberHighLight:[]}),v=()=>{document.onkeydown=function(E){var T=window.event||E,b=T.keyCode||T.which;if(b==13&&!p.loading){if(e.maxSelect&&o.length+(e.value||[]).length>e.maxSelect){pe.message.error(ie("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let h=o.length?be.map(o,"id").join(","):"";e.onChange&&e.onChange(h),e.handleSubmit&&e.handleSubmit(o)}}},y=async(E=!1,T)=>{p.loading=!0;const{pageNo:b,pageSize:h}=c,{filters:m,sorter:x,itemCodes:S}=d;if({...e.params},p.searchValue&&(e.formate=="1"||e.formate=="2"?e.params.columns.split(",").map(P=>P+"-"+p.searchValue).join("~!~"):p.searchValue),!e.getUrlData){a([]),c.total=0,p.loading=!1;return}const{records:A,total:k}=await e.getUrlData({pageNo:b,pageSize:h,filters:m,sorter:x}),F=A||[];c.total=k,E?(a(F),s(be.cloneDeep(F)),e.onInit&&e.onInit(F)):(a([...n,...F]),s(be.cloneDeep([...n,...F])))},_=E=>{E=="0"?d.itemCodes=d.initialItemCodes:d.itemCodes=E,a([]),l([]),c.pageNo=1,p.searchValue="",y(!0,c.pageSize)},C=E=>{l([]),e.searchChange&&e.searchChange(E),p.searchValue=E,g.numberHighLight=E?[E]:[],c.pageNo=1,y(!0)};return R.jsx(io,{width:e.width,forceRender:!0,className:l1.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(o)},children:R.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&R.jsx("div",{className:l1.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?R.jsx($2,{itemCode:os.technology,onGetTreeFields:E=>{},onSelected:E=>{r.current=E.id,c.pageNo=1,y(!0)},outIsSelected:!1,getInstanceMenu:()=>{},getAttributeByTab:()=>{}}):[ie("sys.myCreated",{placeholder:"我创建的"}),ie("sys.label.all",{placeholder:"全部"})].map((E,T)=>R.jsx("div",{onClick:()=>{p.sideChoice=T,c.pageNo=1,y(!0)},style:{marginBottom:"12px",cursor:"pointer",color:T==p.sideChoice?"#0563b2":""},children:E},T))}),R.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&R.jsx(pe.Form.Item,{rules:[{required:!1}],children:R.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&R.jsxs(R.Fragment,{children:[e.allCategories&&p.conditionObject.length>0&&R.jsxs(pe.Select,{disabled:p.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{_(E)},children:[R.jsx(_l,{value:"0",children:ie("sys.label.all",{placeholder:"全部"})}),"(",p.conditionObject.map(E=>R.jsx(_l,{value:E.value,children:E.label})),")"]}),!e.allCategories&&R.jsxs(pe.Select,{disabled:p.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{_(E)},children:[R.jsx(_l,{value:"0",children:ie("sys.label.all",{placeholder:"全部"})}),R.jsx(_l,{value:os.material,children:ie("sys.label.material",{placeholder:"物料"})}),R.jsx(_l,{value:os.document,children:ie("sys.document.document",{placeholder:"文档"})}),R.jsx(_l,{value:os.file,children:ie("sys.label.file",{placeholder:"文件"})})]})]}),R.jsx(pe.Input,{style:{width:240},onBlur:()=>{p.focus=!1},onFocus:()=>{p.focus=!0},allowClear:!0,value:p.searchValue,placeholder:e.placeholder||ie("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:R.jsx(lt,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{C(p.searchValue)}}),onChange:E=>{p.searchValue=E.target.value,E.target.value||(l([]),e.searchChange&&e.searchChange(""),c.pageNo=1,g.numberHighLight=[],y(!0))},onPressEnter:E=>{C(E.target.value)}})]})}),e.isDownload&&R.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[R.jsx(lt,{disabled:!o.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(o,"1")},children:ie("sys.label.download",{placeholder:"下载"})}),R.jsx("span",{style:{marginRight:"24px"}}),R.jsxs(lt,{disabled:!o.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(o,"2")},children:[ie("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),R.jsx("div",{className:l1.tableFrame,style:{display:"flex"},children:R.jsx(x1,{onSelectCell:()=>{l([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:o.map(E=>E.id),onChange:(E,T)=>{e.isCheckbox?l(T):T.length?l([T.pop()]):l([])},getCheckboxProps:E=>({disabled:E.number==="~#~"||!!(e.convertFun&&be.includes(E.unique,"-"))})},onRow:E=>({onDoubleClick:()=>{if(E.number!=="~#~")if(o.length>1){if(e.maxSelect&&o.length+(e.value||[]).length>e.maxSelect){pe.message.error(ie("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(be.map(o,"id").join(",")),e.handleSubmit&&e.handleSubmit(o)}else l([E]),e.onChange&&e.onChange(E.id),e.handleSubmit&&e.handleSubmit([E])}}),loading:p.loading,dataSource:n,columns:p.columnsHighlight,...c,scroll:{y:e.height||200},onScroll:E=>{c.pageNo=E,y()},onFilterAndSorter:(E,T,b)=>{if(l([]),e.isBuiltInSort)if(E){let h=be.orderBy(n,[E.split("-")[0]],[E.split("-")[1]]);a(h)}else a(i);else{if(e.isUseRuleSort){const h=Bi.sortAndFilterTable({sorters:E,filters:T,sortersField:b,tableColumns:e.columns});d.sorter=h.sorters,d.filters=h.filters}else d.sorter=E,d.filters=T;c.pageNo=1,y(!0)}}})})]})]})})}),qI={selectFrameBox:"_selectFrameBox_mktv5_1"},SS=ae.forwardRef((e,t)=>{var s;const[r,n]=ae.useState(e.value);ae.useEffect(()=>{n(e.value)},[e.value]);const a=En({visible:!1,options:[],enter:!1});ae.useEffect(()=>{e.options&&e.options.length&&(a.options=e.options)},[e.options]);const i=()=>{var d;const o=(d=e.params)==null?void 0:d.ids,l=o?o.join(","):"",c=e.isCheckbox?r&&r.join(","):r;return`${l}${c!=null&&c.length&&l?",":""}${c??""}`};return R.jsxs("div",{className:qI.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?R.jsx("div",{children:(s=be.filter(e.options,o=>o.id==r)[0])==null?void 0:s.Name}):R.jsxs("div",{style:{display:"flex",gap:"5px"},children:[R.jsx(pe.Select,{style:{minWidth:"80px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:a.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||ie("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(a.visible=!0,a.enter=!0)},onChange:o=>{e.onChange&&e.onChange(o)},tagRender:o=>sa.readPermission(o.label)?R.jsx(pe.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:R.jsx(lt,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:()=>{const l=r.filter(c=>c!==o.value);n(l),e.onChange&&e.onChange(l)}}),children:o.label},o.value):R.jsx(Za,{})}),e.showButton?R.jsx(pe.Button,{onClick:()=>{a.visible=!0,a.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:R.jsx(lt,{type:"content-search",style:{fontSize:"16px"}})}):R.jsx(R.Fragment,{})]}),a.visible&&R.jsx(bS,{visible:a.visible,title:e.title||ie("sys.label.selectOption",{placeholder:"请选择"}),url:e.url,width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,params:{...e.params,ids:i()},isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:a.enter,placeholder:e.searchPlaceholder||ie("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:o=>{if(e.isCheckbox){let l=be.compact(be.concat(r,o.split(",")));e.onChange&&e.onChange(o?l:void 0)}else e.onChange&&e.onChange(o)},handleSubmit:o=>{e.isCheckbox?a.options=be.concat(a.options,o):a.options=o,e.onSubmit&&e.onSubmit(a.options),a.visible=!1,a.enter=!1},onInit:o=>{a.options=o},onCancel:()=>{a.visible=!1,a.enter=!1}})]})}),YI={searchTextTips:"_searchTextTips_daoe4_1"};function GI({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=ae.useState(!1),[i,s]=ae.useState([]),o=ae.useRef(0);ae.useEffect(()=>{s(r.options)},[r.options]);const l=ae.useMemo(()=>{const c=d=>{o.current+=1;const p=o.current;s([]),a(!0),e(d,r).then(g=>{p===o.current&&(s(g),a(!1))})};return be.debounce(c,t)},[e,t]);return R.jsx(pe.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:l,notFoundContent:n?R.jsx("div",{style:{textAlign:"center"},children:R.jsx(pe.Spin,{size:"small"})}):R.jsx(pe.Empty,{image:pe.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{s(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:c=>R.jsxs(R.Fragment,{children:[c,R.jsx(pe.Divider,{style:{margin:"8px 0"}}),R.jsx("div",{className:YI.searchTextTips,children:`${ie("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${ie("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function kS(e,t){var i,s;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,be.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=be.reject((s=r.result)==null?void 0:s.records,o=>{var l;return o[(l=t.fieldNames)==null?void 0:l.label]==="~#~"}):a=r.result.records,a}const KI=ae.forwardRef((e,t)=>{const[r,n]=ae.useState(e.value),[a,i]=ae.useState([]);return Zo(async()=>{i(await kS("",e))}),R.jsx(GI,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:kS,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),XI=e=>R.jsx(R.Fragment,{}),_1=e=>R.jsx(pe.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),TS=ae.forwardRef((e,t)=>{const r=ae.useContext(nu),n=(r==null?void 0:r.formItemCom)||{},a=ae.useCallback((o,l)=>{var g,v;const{type:c,cannotread:d,props:p}=o;if(d!=="0"){let y=!1;if(typeof e.readOnly=="boolean"?y=e.readOnly:typeof e.readOnly=="function"&&(y=e.readOnly()),c==="Input")return;if(c==="Select")return p!=null&&p.loading?(l="",R.jsx(pe.Form.Item,{noStyle:!0,children:R.jsx(zs,{...p,options:[],loading:!0,value:((v=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:v.mode)==="multiple"?[]:"",disabled:y||(p==null?void 0:p.disabled)})})):p!=null&&p.options&&p.options.length?typeof l=="string"&&l.split(",").length>1&&(p==null?void 0:p.mode)!=="multiple"?e.readOnly?R.jsx("span",{style:{paddingLeft:"5px"},children:l.split(",").map(_=>R.jsx(pe.Tag,{children:Lt.getLabelInOptions({value:_,options:(p==null?void 0:p.options)||[]})},_))}):(p.options=[...p==null?void 0:p.options,{label:l.split(",").map(_=>Lt.getLabelInOptions({value:_,options:(p==null?void 0:p.options)||[]})).join(","),disabled:!0,value:l}],R.jsx(zs,{filterOption:(_,C)=>C.label&&C.label.indexOf(_)>=0,...p,showSearch:!0,disabled:y||(p==null?void 0:p.disabled)})):R.jsx(zs,{filterOption:(_,C)=>C.label&&C.label.indexOf(_)>=0,...p,showSearch:!0,disabled:y||(p==null?void 0:p.disabled)}):R.jsx(zs,{...p,showSearch:!0,options:[],disabled:y||(p==null?void 0:p.disabled)});if(c==="PopupSelect")return p.options===void 0||p.options.length>0?R.jsx(SS,{...p,title:e.label,disabled:y||(p==null?void 0:p.disabled)},e.name):"";if(c==="SearchSelect")return R.jsx(KI,{...p},e.name);if(c==="Checkbox")return R.jsx(pe.Checkbox,{...p,disabled:y||(p==null?void 0:p.disabled)});if(c==="Checkbox.Group")return R.jsx(pe.Checkbox.Group,{...p,disabled:y||(p==null?void 0:p.disabled)});if(c==="Input.TextArea")return y?R.jsx(pe.Input.TextArea,{...p,disabled:!0}):R.jsx(pe.Input.TextArea,{...p});if(c==="Input.Password")return y?R.jsx(pe.Input.Password,{...p,disabled:!0}):R.jsx(pe.Input.Password,{...p});if(c==="Date")return y?R.jsx(pe.DatePicker,{...p,size:"middle",placeholder:"",disabled:y||(p==null?void 0:p.disabled)}):R.jsx(pe.DatePicker,{...p});if(c==="DatePicker.RangePicker")return y?R.jsx(pe.DatePicker.RangePicker,{...p,disabled:y||(p==null?void 0:p.disabled),placeholder:["",""],separator:""}):R.jsx(pe.DatePicker.RangePicker,{...p});if(c==="TimePicker.RangePicker")return y?R.jsx(pe.TimePicker.RangePicker,{...p,disabled:y||(p==null?void 0:p.disabled)}):R.jsx(pe.TimePicker.RangePicker,{...p});if(c==="Switch")return R.jsx(pe.Switch,{...p,disabled:y||(p==null?void 0:p.disabled)});if(c==="Number")return(p==null?void 0:p.apicode)==="FileSize"?R.jsx(I_,{...p,disabled:y||(p==null?void 0:p.disabled)},p.id):y?R.jsx(pe.InputNumber,{...p,placeholder:"",disabled:y||(p==null?void 0:p.disabled)}):R.jsx(pe.InputNumber,{...p});if(c==="Cascader")return y?R.jsx(pe.Cascader,{...p,placeholder:"",disabled:y||(p==null?void 0:p.disabled)}):R.jsx(pe.Cascader,{showSearch:{filter:(_,C)=>C.some(E=>E.label&&E.label.toLowerCase().indexOf(_.toLowerCase())>-1),matchInputWidth:!1},...p});if(c==="TreeSelect")return p.treeData&&p.treeData.length?y?R.jsx(_1,{...p,disabled:y||(p==null?void 0:p.disabled),showSearch:!0,treeNodeFilterProp:"label"}):R.jsx(_1,{...p,showSearch:!0,treeNodeFilterProp:"label"}):R.jsx(_1,{disabled:y||(p==null?void 0:p.disabled)});if(c==="Radio")return y?R.jsx(pe.Radio,{...p,disabled:y||(p==null?void 0:p.disabled)}):R.jsx(pe.Radio,{...p});if(c==="Radio.Group")return y?R.jsx(pe.Radio.Group,{...p,disabled:y||(p==null?void 0:p.disabled)}):R.jsx(pe.Radio.Group,{...p});if(c==="Slider")return R.jsx(pe.Slider,{...p,disabled:y||(p==null?void 0:p.disabled)});if(c==="Markdown")return R.jsx(rb,{...p,readOnly:y||(p==null?void 0:p.disabled)});if(c==="SelectPopup")return R.jsx(mS,{selectProps:p,readOnly:y||(p==null?void 0:p.disabled)});if(c==="SelectTransfer")return R.jsx(hS,{selectProps:p,readOnly:y||(p==null?void 0:p.disabled)});if(c==="CompositeForm")return R.jsx(lc,{...p,readOnly:y||(p==null?void 0:p.disabled)});if(c==="Title")return R.jsx(XI,{...p,readOnly:y||(p==null?void 0:p.disabled)});if(n[c]){const _=n[c];return R.jsx(_,{type:c,...p,name:e.name,disabled:y||(p==null?void 0:p.disabled)},e.name)}return R.jsx("span",{children:l})}else return R.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=ae.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?be.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),s=e.content.type=="Title";return R.jsx(pe.Form.Item,{colon:!1,...be.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:Er(qD.main,e.className,s?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),yl={itemsCreated:"_itemsCreated_ow91h_1",rowBox:"_rowBox_ow91h_4",labelLength:"_labelLength_ow91h_8"},Je={advanced_search_content:"_advanced_search_content_775l0_1",disableBg:"_disableBg_775l0_1",checkboxWidth:"_checkboxWidth_775l0_15",radioWidth:"_radioWidth_775l0_18",conditions_head:"_conditions_head_775l0_21",head1:"_head1_775l0_29",head2:"_head2_775l0_32",head3:"_head3_775l0_35",head4:"_head4_775l0_38",properties_box:"_properties_box_775l0_41",className_tips:"_className_tips_775l0_44",groupHeader:"_groupHeader_775l0_49",iconBtn:"_iconBtn_775l0_52",properties_item:"_properties_item_775l0_61",left_tips:"_left_tips_775l0_84",state_type:"_state_type_775l0_87",verification:"_verification_775l0_100",verificationBorder:"_verificationBorder_775l0_121"},Id={shuttle_box:"_shuttle_box_tufhg_1",transferBox:"_transferBox_tufhg_4",selectNum:"_selectNum_tufhg_7"},ZI=e=>{const t=En({dataSource:[],targetKeys:[],columns:[]}),r=o=>o&&be.isString(o)&&o.includes("~#~")?R.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):o;ae.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let o=[];for(let l of e.columns)o.push({...l,ellipsis:!0,sorter:(c,d)=>{const p=l.dataIndex||"";return c[p]!=null&&d[p]!=null?be.isString(c[p])&&be.isString(d[p])?c[p].localeCompare(d[p]):be.isNumber(c[p])&&be.isNumber(d[p])?c[p]-d[p]:0:0},render:l.render?l.render:r});t.columns=o},[e.dataSource,e.targetKeys]);const n=({...o})=>R.jsx(pe.Transfer,{...o,rowKey:l=>l.id,children:({direction:l,filteredItems:c,onItemSelectAll:d,onItemSelect:p,selectedKeys:g})=>{const v={onSelectAll(y,_){const C=_.filter(T=>!T.disabled).map(({id:T})=>T),E=y?be.difference(C,g):be.difference(g,C);d(E,y)},onSelect({id:y},_){e.isRadio&&g.splice(0,1),p(y,_)},getCheckboxProps:y=>({disabled:y.name=="~#~"||y.number=="~#~"||y.empNo=="~#~"?!0:l=="left"?y.disabled:!1}),selectedRowKeys:g};return R.jsxs(R.Fragment,{children:[R.jsx(pe.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...v},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:c,scroll:{y:301},style:{height:"338px"},size:"small",onRow:y=>({onClick:()=>{y.name=="~#~"||y.empNo=="~#~"||!y.disabled&&l==="left"&&(e.isRadio&&g.splice(0,1),p(y.id,!g.includes(y.id)))},onDoubleClick:()=>{if(!(y.name=="~#~"||y.empNo=="~#~")){if(l==="left")y.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(y.id));else for(let _=0;_<t.targetKeys.length;_++)if(t.targetKeys[_]==y.id){t.targetKeys.splice(_,1);break}}}})}),l==="left"?R.jsxs("div",{className:Id.selectNum,children:[e.defaultPageSize!==50?`${ie("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:ie("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",ie("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,ie("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):R.jsxs("div",{className:Id.selectNum,children:[ie("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",ie("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,ie("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=o=>{e.isRadio?t.targetKeys=[o[0]]:t.targetKeys=o},i=async()=>{let o=[];for(let l=0;l<t.targetKeys.length;l++)for(let c=0;c<t.dataSource.length;c++)if(t.targetKeys[l]==t.dataSource[c].id){o.push(t.dataSource[c]);break}e.onSubmit&&e.onSubmit(o)},s=()=>{if(e.columns.length>0){let o=[ie("project.workflow.status",{placeholder:"状态"}),ie("sys.import.category",{placeholder:"分类"})];return ie("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:be.without(be.map(e.columns,"title"),...o).join("、")}})}return ie("sys.enterSearch",{placeholder:"请输入搜索内容"})};return R.jsx(io,{className:Id.shuttle_box,modalTitle:e.title,okText:ie("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:R.jsx("div",{className:Id.transferBox,children:R.jsx(Go,{spinning:e.loading,children:R.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||s()},showSelectAll:!1,onChange:a,filterOption:(o,l)=>l.Name&&l.Name.indexOf(o)!==-1||l.EmpNo&&l.EmpNo.indexOf(o)!==-1||l.empNo&&l.empNo.indexOf(o)!==-1||l.email&&l.email.indexOf(o)!==-1||l.name&&l.name.indexOf(o)!==-1||l.workflowName&&l.workflowName.indexOf(o)!==-1||l.code&&String(l.code).indexOf(o)!==-1||l.description&&l.description.indexOf(o)!==-1})})})})},{RangePicker:ES}=pe.DatePicker,{Option:y1}=pe.Select,{TreeNode:CS}=pe.Tree,{confirm:Ite}=pe.Modal,JI=[{value:"and",label:ie("sys.query.builder.condit.and",{placeholder:"与"})},{value:"or",label:ie("sys.query.builder.condit.or",{placeholder:"或"})}],AS=ae.forwardRef((e,t)=>{ae.useRef();const r=ae.useRef(null),n=ae.useRef(null),a="YYYY-MM-DD HH:mm:ss",i={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},s=En({1:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:ie("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:ie("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:ie("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:ie("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:ie("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:ie("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:ie("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:ie("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:ie("sys.condition.in",{placeholder:"在"})},{value:"!in",label:ie("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:ie("sys.condition.in",{placeholder:"在"})},{value:"gt",label:ie("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:ie("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:ie("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:ie("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:ie("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:ie("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:ie("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:ie("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:ie("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:ie("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:ie("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:ie("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:ie("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:ie("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:ie("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:ie("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:ie("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:ie("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:ie("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:ie("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),o=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],l=En({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),c=En({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});ae.useImperativeHandle(t,()=>({getValue:()=>l.formCofing,onVerification:k=>{l.verification=k},setCondition:(k,F)=>{F==0?(l.formCofing.base_item_id=k.value,l.formCofing.base_item_name=k.label):(l.formCofing.object_id=(k==null?void 0:k.value)||"",l.formCofing.object_name=(k==null?void 0:k.label)||"")},emptyCondition:k=>{k&&(l.formCofing.base_item_id="",l.formCofing.base_item_name="",l.formCofing.object_id="",l.formCofing.object_name=""),l.verification=!1,l.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:k=>{l.formCofing=k},searchBtn:()=>{d()},defaultValue:()=>{var F;const k=(F=e.typeData[0])==null?void 0:F.children.filter(P=>P.apicode==="Number"||P.apicode==="Name"||P.apicode==="Description")[0];l.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:[e.typeData[0].value,k.id],name:`${e.typeData[0].label}/${k.name}`,lastSelected:k,type:k.valueType||"",rawType:k.valueType||"",tab_code:e.typeData[0].value,dataFrom:k.dataFrom||"",dataFromId:k.dataFromId||"",apicode:k.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const d=k=>{if(l.verification=!1,!l.formCofing.base_item_id){pe.message.warning(ie("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let F=be.cloneDeep(l.formCofing.relations);F.length==1&&(y(F),F=be.compact(F));for(let[P,j]of F.entries())for(let L of j.relation){if(!L.attribute.name||!L.attribute.operator||L.attribute.operator!="null"&&L.attribute.operator!="!null"&&!L.attribute.value){l.verification=!0;return}P!=0&&(j.join=F[P-1].relation[F[P-1].relation.length-1].attribute.attr_join)}l.formCofing.base_item_id,l.formCofing.base_item_name,l.formCofing.object_id,l.formCofing.object_name},p=(k,F)=>k=="5"&&F?F.listCode==10005213?s[k][2]:!F.allowMultiple||F.apicode=="LifeCyclePhase"||F.apicode=="Category"?s[k][0]:F.listType=="0"?s[k][1]:F.listType=="2"?s[k][2]:s[k][3]:s[k],g=()=>{l.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.value=c.treeDefine.join(","),l.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.valueTreeKey=c.treeDefineKey,c.titleName="",c.treeVisible=!1},v=(k,F)=>F.some(P=>P.label&&P.label.toLowerCase().indexOf(k.toLowerCase())>-1),y=k=>k.map((F,P)=>(F.relation.forEach((j,L)=>{let B=j.attribute;!B.name&&!B.operator&&!B.value&&delete F.relation[L]}),F.relation=be.compact(F.relation),F.relation.length==0&&delete k[P],F)),_=k=>{let F=[];if(k)for(let P of k)F.push({label:P.showName||P.name,value:P.id,disabled:!P.status});return F},C=k=>k.map(F=>F.children?R.jsx(CS,{title:c.department?F.title:F.name,children:C(F.children)},F.id):R.jsx(CS,{title:c.department?F.title:F.name},F.id)),E=(k,F)=>R.jsx(Pf,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[F?F.toString():""],textToHighlight:k?k.toString():""}),T=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},b=(k,F,P,j)=>{!P||P&&k.relation.length>1&&j==k.relation.length-1?l.formCofing.relations.splice(F+1,0,{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}):l.formCofing.relations[F].relation.splice(j+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}),S(k),T()},h=k=>{l.formCofing.relations.splice(k+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),T()},m=k=>{l.formCofing.relations.splice(k,1)},x=(k,F,P,j)=>{P&&k.relation.length>1?(k.relation.splice(j,1),S(k)):l.formCofing.relations.splice(F,1)},S=k=>{for(let F=0;F<k.relation.length;F++)k.relation[F].attribute.forbidden=!0,k.relation.length>1&&k.relation.length-1!=F&&(k.relation[F].attribute.forbidden=!1)},A=(k,F,P,j,L)=>{if(P&&(P.apicode=="OrgName"||P.apicode=="CreateUserDepartment"))return R.jsx(pe.Select,{className:`
333
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
334
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
335
+ ${Je.radioWidth}
336
+ `,value:k.attribute.value&&k.attribute.value.split(",")||void 0,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,open:!1,suffixIcon:R.jsx(Yo,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:ie("sys.label.selectOption",{placeholder:"请选择"})}),onClick:()=>{k.attribute.operator!="null"&&k.attribute.operator!="!null"&&!e.readOnly&&(c.treeLoading=!0,c.treeVisible=!0,c.treeIndex1=j,c.treeIndex2=L,c.titleName=ie("sys.selection.chooseDepartment",{placeholder:ie("sys.selection.chooseDepartment",{placeholder:"选择部门"})}),c.treeDefine=k.attribute.value.split(","),c.treeDefineKey=k.attribute.valueTreeKey,c.treeCheckable=P.allowMultiple,c.department=!0,e.treeList().then(B=>{c.treeData=B.result,setTimeout(()=>{c.treeLoading=!1},200)}).catch(()=>{c.treeLoading=!1}))},onChange:B=>{c.treeDefine=B,k.attribute.value=B.join(",")}});if(F=="4")return R.jsx(pe.InputNumber,{placeholder:ie("sys.input.number",{placeholder:"请输入数字"}),className:`
337
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
338
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
339
+ `,value:k.attribute.value,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,style:{width:"100%",lineHeight:"28px"},onChange:B=>{k.attribute.value=B}});if(F=="5")return P&&(P.listType=="1"||P.listType=="3"&&P.listCode!==10005222)?R.jsx(pe.Tooltip,{placement:"left",title:be.map(k.attribute.valueKey,"label").join(","),children:R.jsx(pe.Select,{className:`
340
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
341
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
342
+ ${P.allowMultiple?Je.checkboxWidth:Je.radioWidth}
343
+ `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,open:!1,showArrow:!0,suffixIcon:R.jsx(Yo,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{if(k.attribute.operator!="null"&&k.attribute.operator!="!null"&&!e.readOnly){if(c.loading=!0,P.apicode=="OldLifePhase"||P.apicode=="NewLifePhase"){c.isUserCode=P.apicode,c.visibleTransfer=!0,c.treeIndex1=j,c.treeIndex2=L,c.isRadio=!P.allowMultiple,e.getLifecycles(i[P.tabCode]).then(U=>{for(let O of U.result.records||[])O.id=String(O.code);c.dataSource=U.result.records||[],c.targetKeys=k.attribute.value.split(","),c.loading=!1});return}let B=P.apicode=="Category"&&k.attribute.tab_code!="10002001"?P.itemCode:l.formCofing.base_item_id;e.getListbycode(P.listCode).then(U=>{let O="",N;U.result.apicode=="CategoryList"?(O=`item_code=${B}`,N=1):U.result.apicode=="VersionList"||U.result.apicode=="ProductList"||(U.result.apicode=="LifePhaseList"||U.result.apicode=="WorkflowList"||U.result.apicode=="WorkflowNodeList")&&(U.result.apicode=="LifePhaseList"&&P.valueType=="10"?O=`item_code=${P.itemCode}`:U.result.apicode=="LifePhaseList"&&P.itemCode==10001006&&l.formCofing.base_item_id==10001001?O="item_code=10001006":U.result.apicode=="LifePhaseList"&&P.itemCode==10001001&&(l.formCofing.base_item_id==10001014||l.formCofing.base_item_id==10001006)?O="item_code=10001001":(U.result.apicode=="WorkflowList"||U.result.apicode=="WorkflowNodeList")&&l.formCofing.base_item_id==10001014?O="item_code=10001011":(U.result.apicode=="WorkflowList"||U.result.apicode=="WorkflowNodeList")&&l.formCofing.base_item_id==10001012?O="item_code=10001020":U.result.apicode=="LifePhaseList"&&k.attribute.tab_code=="10002024"&&(l.formCofing.base_item_id==10001003||l.formCofing.base_item_id==10001004||l.formCofing.base_item_id==10001005)?O="item_code=10001001":U.result.apicode=="WorkflowList"||U.result.apicode=="LifePhaseList"?O=`item_code=${P.itemCode}`:O=l.formCofing.object_id?`item_code=${B} and object_id=${l.formCofing.object_id}`:`item_code=${l.formCofing.base_item_id}`),P.listType=="1"?U.result.apicode=="WorkflowNodeList"?(c.isUserCode="WorkflowNodeList",c.visibleTransfer=!0,c.treeIndex1=j,c.treeIndex2=L,c.isRadio=!P.allowMultiple,e.getTreeList(U.result.code,O).then(V=>{if(V.code==200){let M=[];for(let q of V.result||[])M.push({name:q,id:q});c.dataSource=M,c.targetKeys=k.attribute.value.split(","),c.loading=!1}})):U.result.apicode=="CategoryList"?(c.isUserCode="CategoryList",c.visibleTransfer=!0,c.treeIndex1=j,c.treeIndex2=L,c.isRadio=!P.allowMultiple,e.getTreeList(U.result.code,O).then(V=>{if(V.code==200){for(let M of V.result||[])M.statusText=M.status?ie("sys.label.enable",{placeholder:"启用"}):ie("sys.disable.disable",{placeholder:"禁用"});c.dataSource=V.result||[],c.targetKeys=k.attribute.value.split(","),c.loading=!1}})):e.getOverview(U.result.conditionId).then(V=>{V.result.itemCode=="10001017"?c.isUserCode="10001017":V.result.itemCode=="10001018"?c.isUserCode="10001018":c.isUserCode=V.result.apicode,c.visibleTransfer=!0,c.treeIndex1=j,c.treeIndex2=L,c.isRadio=!P.allowMultiple,e.getInstanceParams({itemCodes:[V.result.itemCode],baseItemId:l.formCofing.base_item_id}).then(M=>{for(let q of M.result)V.result.itemCode=="10001017"?(q.name=q.number,q.email=q.insDesc):(q.code=q.number,q.name=q.number,q.description=q.insDesc);c.dataSource=M.result,c.targetKeys=k.attribute.value.split(","),V.result.itemCode=="10001017"&&(c.dataSource=be.concat({name:"$USER",id:"$USER",email:""},c.dataSource)),c.loading=!1})}):(P.tabCode===10002005?O="item_code<>10001018 and item_code <>10001017":P.tabCode===10002004?O=`item_code in (${k.attribute.routineData.map(V=>V.code).join(",")})`:P.listCode===10005250&&(O=`change_instance_item_code=${l.formCofing.base_item_id}`),(l.formCofing.base_item_id==10001004||l.formCofing.base_item_id==10001005)&&P.tabCode==10002024&&P.apicode=="LifeCyclePhase"&&(O="whereData=10001001"),U.result.code==10005256?c.isUserCode=U.result.code:c.isUserCode=U.result.apicode,c.visibleTransfer=!0,c.treeIndex1=j,c.treeIndex2=L,c.isRadio=!P.allowMultiple,e.getTreeList(P.listCode,O,N).then(V=>{if(V.code==200){if(V.result&&V.result.length&&V.result[0].nodes){let M=[],q={1:ie("sys.label.start",{placeholder:"开始"}),2:ie("sys.label.review",{placeholder:"审核"}),3:ie("sys.label.publish",{placeholder:"发布"}),4:ie("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),5:ie("sys.label.end",{placeholder:"结束"})};for(let Y of V.result)for(let z of Y.nodes||[])M.push({name:Y.wfName+"."+z.name,id:Y.wfId+"."+z.id,type:q[z.type]});c.dataSource=M}else{if(c.isUserCode=="LifePhaseList")for(let M of V.result||[])M.id=String(M.code);if(U.result.code==10005250)for(let M of V.result||[])M.code=M.changeInstanceNo,M.description=M.changeInstanceDesc;if(U.result.code==10005173&&(P.apicode=="Product"?V.result=V.result.filter(M=>M.productType=="product"):V.result=V.result.filter(M=>M.productType=="library")),P.tabCode===10002005||P.tabCode===10002004)for(let M of V.result||[])M.name=M.itemName?M.itemName+"."+M.name:M.name;c.dataSource=V.result||[],P.apicode=="Product"&&(c.dataSource=be.concat({name:"$MYPRODUCTS",id:"$MYPRODUCTS",description:""},c.dataSource)),P.listCode==10005256&&(c.dataSource=be.concat({id:"$USER",name:"$USER"},c.dataSource))}c.targetKeys=k.attribute.value.split(","),c.loading=!1}}))})}},value:k.attribute.value&&k.attribute.value.split(",")||void 0,onChange:(B,U)=>{k.attribute.value=B.join(","),k.attribute.valueKey=U.map(O=>({label:O.key,value:O.value}))},children:k.attribute.valueKey.map(B=>R.jsx(y1,{value:B.value,children:B.label},B.label))})}):P&&(P.listType=="2"||P.listCode===10005222)?R.jsx(pe.Tooltip,{title:k.attribute.value,children:R.jsx(pe.Select,{className:`
344
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
345
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
346
+ ${P.allowMultiple?Je.checkboxWidth:Je.radioWidth}
347
+ `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",value:k.attribute.value&&k.attribute.value.split(",")||void 0,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,open:!1,clearIcon:!1,showArrow:!0,suffixIcon:R.jsx(Yo,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{k.attribute.operator!="null"&&k.attribute.operator!="!null"&&!e.readOnly&&(c.treeLoading=!0,c.treeVisible=!0,c.treeIndex1=j,c.treeIndex2=L,c.treeDefine=k.attribute.value.split(","),c.treeDefineKey=k.attribute.valueTreeKey,c.treeCheckable=P.allowMultiple,c.department=!1,e.getTreeList(P.listCode).then(B=>{B.code==200&&(c.treeData=B.result,P.apicode=="ProductModel"&&(c.treeData=be.concat({name:"$MYPRODUCTMODELS",id:"$MYPRODUCTMODELS"},c.treeData)),setTimeout(()=>{c.treeLoading=!1},200))}).catch(()=>{c.treeLoading=!1}))},onChange:B=>{c.treeDefine=B,k.attribute.valueTreeKey.shift(),k.attribute.value=B.join(",")}})}):k.attribute.tab_code==10002004||k.attribute.tab_code==10002005?R.jsx(pe.Cascader,{className:`
348
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
349
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
350
+ `,value:k.attribute.value||void 0,dropdownClassName:"cascaderPopup",style:{width:"158px"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,options:k.attribute.routineData,showSearch:{filter:v,matchInputWidth:!1},onChange:B=>{k.attribute.value=B.map(String)}}):P&&P.allowMultiple?R.jsx(pe.Tooltip,{title:be.compact(be.map(k.attribute.routineData,B=>{for(let U of k.attribute.value.split(","))if(U==B.value)return B.label})).join(","),children:R.jsx(pe.Select,{className:`
351
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
352
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
353
+ ${Je.checkboxWidth}
354
+ `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",showArrow:!0,value:k.attribute.value&&k.attribute.value.split(",")||void 0,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,optionFilterProp:"label",style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),open:c["open"+j+L],onFocus:()=>{c["open"+j+L]=!0},onChange:B=>{k.attribute.value=B.join(",")},onSearch:B=>{k.attribute.LighHeight=B},onBlur:()=>{k.attribute.LighHeight="",c["open"+j+L]=!1},filterOption:(B,U)=>U.key.toLowerCase().indexOf(B.toLowerCase())>=0,children:k.attribute.routineData.map(B=>R.jsx(y1,{value:B.value,disabled:B.disabled,children:E(B.label,k.attribute.LighHeight)},B.label))})}):R.jsx(pe.Tooltip,{title:be.compact(be.map(k.attribute.routineData,B=>{if(k.attribute.value==B.value)return B.label})).join(","),children:R.jsx(pe.Select,{ref:r,className:`
355
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
356
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
357
+ ${Je.radioWidth}
358
+ `,value:k.attribute.value||void 0,showSearch:!0,optionFilterProp:"label",disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),onChange:B=>{k.attribute.value=B,r==null||r.current.blur()},onSearch:B=>{k.attribute.LighHeight=B},open:c["open"+j+L],onFocus:()=>{c["open"+j+L]=!0},onBlur:()=>{k.attribute.LighHeight="",c["open"+j+L]=!1},filterOption:(B,U)=>U.key.toLowerCase().indexOf(B.toLowerCase())>=0,children:k.attribute.routineData.map(B=>R.jsx(y1,{value:B.value,disabled:B.disabled,children:E(B.label,k.attribute.LighHeight)},B.label))})});if(F=="6")return k.attribute.operator=="between"?R.jsx(pe.Tooltip,{title:k.attribute.value.split(",")[0]&&k.attribute.value.split(",")[0]+" ~ "+k.attribute.value.split(",")[1],children:R.jsx(ES,{className:l.verification&&!k.attribute.value&&Je.verification,showTime:!0,style:{width:"100%"},value:k.attribute.value.split(",")[0]?[Ne(k.attribute.value.split(",")[0],a),Ne(k.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,onChange:(B,U)=>{U[0]?k.attribute.value=U.join(","):k.attribute.value=""}})}):R.jsx(pe.DatePicker,{className:`
359
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
360
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
361
+ `,showTime:!0,style:{width:"100%",borderRadius:0},value:k.attribute.value?Ne(k.attribute.value,a):void 0,format:a,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||k.attribute.operator=="between"||e.readOnly,onChange:(B,U)=>{k.attribute.value=U}});if(F=="7")return R.jsx(pe.Tooltip,{title:k.attribute.value.split(",")[0]&&k.attribute.value.split(",")[0]+" ~ "+k.attribute.value.split(",")[1],children:R.jsx(ES,{className:l.verification&&!k.attribute.value&&Je.verification,showTime:!0,style:{width:"100%"},value:k.attribute.value.split(",")[0]?[Ne(k.attribute.value.split(",")[0],a),Ne(k.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,onChange:(B,U)=>{k.attribute.value=U.join(",")}})});if(F=="12"||F=="13"){let B=k.attribute.lastSelected;return R.jsx("div",{className:l.verification&&!k.attribute.value&&Je.verificationBorder,children:R.jsx(lc,{value:k.attribute.value,min:B==null?void 0:B.minValue,max:B==null?void 0:B.maxValue,maxLength:B==null?void 0:B.maxLength,precision:B==null?void 0:B.precision,valueType:B==null?void 0:B.valueType,options:k.attribute.routineData,readOnly:!1,onChange:U=>{k.attribute.value=U}})})}else return R.jsx(pe.Input,{className:`
362
+ ${l.verification&&!k.attribute.value&&k.attribute.operator!="null"&&k.attribute.operator!="!null"&&Je.verification}
363
+ ${(k.attribute.operator=="null"||k.attribute.operator=="!null")&&Je.disableBg}
364
+ `,placeholder:ie("sys.input.text",{placeholder:"请输入文本"}),value:k.attribute.value,disabled:k.attribute.operator=="null"||k.attribute.operator=="!null"||e.readOnly,style:{padding:"5px 11px"},onChange:B=>{k.attribute.value=B.target.value}})};return R.jsxs("div",{className:Je.advanced_search_content,style:{minWidth:e.horizontalStyle?"900px":"700px"},children:[!e.horizontalStyle&&R.jsxs("div",{className:Je.conditions_head,children:[R.jsx("div",{className:Je.head1,children:ie("sys.property",{placeholder:"属性"})}),R.jsx("div",{className:Je.head2,children:ie("sys.operator",{placeholder:"运算符"})}),R.jsx("div",{className:Je.head3,children:ie("sys.value",{placeholder:"值"})}),R.jsx("div",{className:Je.head4,children:ie("sys.connector",{placeholder:"连接符"})})]}),R.jsxs("div",{ref:n,className:Je.properties_box,style:{background:e.horizontalStyle?"#fff":"#f8f9f9",height:e.horizontalStyle?"147px":"240px"},children:[R.jsxs("div",{className:Je.className_tips,children:[R.jsxs("span",{style:{width:160,marginLeft:"12px"},className:Je.left_tips,children:[ie("sys.property",{placeholder:"属性"}),":"]}),R.jsxs("span",{style:{width:92,marginLeft:"3px"},className:Je.left_tips,children:[ie("sys.operator",{placeholder:"运算符"}),":"]}),R.jsxs("span",{style:{flex:1,marginLeft:"5px"},className:Je.left_tips,children:[ie("sys.valueRe",{placeholder:"数值"}),":"]}),R.jsxs("span",{style:{width:145},className:Je.left_tips,children:[ie("sys.connector",{placeholder:"连接符"}),":"]})]}),l.formCofing.relations.map((k,F)=>R.jsxs("div",{children:[k.isGroup&&R.jsx("div",{className:Je.groupHeader,children:R.jsxs(pe.Row,{justify:"space-between",align:"middle",children:[R.jsx(pe.Col,{className:Je.optSelect,children:R.jsx(pe.Select,{value:k.join,style:{width:70},disabled:e.readOnly,options:JI,onChange:P=>{k.join=P}})}),R.jsx(pe.Col,{style:{marginRight:"8px"},children:R.jsx(lt,{isBackend:!0,className:Je.iconBtn,tooltip:{title:ie("sys.query.builder.condit.deleteGroup",{placeholder:"删除组"})},type:"delete",onClick:()=>{m(F)}})})]})}),k.relation.map((P,j)=>{var L;return R.jsxs("div",{className:Je.properties_item,children:[R.jsx(pe.Cascader,{style:{width:160},className:l.verification&&!P.attribute.name&&Je.verification,showSearch:{filter:v,matchInputWidth:!1},value:((L=e.typeData)==null?void 0:L.length)>0&&P.attribute.id||void 0,options:e.typeData,placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:R.jsx(lt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),dropdownClassName:"cascaderPopup",onChange:async(B,U)=>{P.attribute.value="",P.attribute.routineData=[],P.attribute.valueKey=[],P.attribute.valueTreeKey=[],c.treeDefine=[],P.attribute.id=B,P.attribute.name=be.map(U,"label").join("/"),P.attribute.lastSelected=await be.last(U);const O=await be.last(U);P.attribute.type=O&&O.valueType||"",P.attribute.rawType=(P.attribute.type=="10"?O&&O.rawType:P.attribute.type)||"",P.attribute.type=="10"&&(B[2]&&(B[2]=B[2].split("-")[1],P.attribute.id=B),P.attribute.inputType=O.inputType,P.attribute.referenceApicode=O.referenceApicode,P.attribute.referenceAttrId=O.referenceAttrId),P.attribute.tab_code=U&&(U[0].value.includes("-")?U[0].value.split("-")[0]:U[0].value)||"",P.attribute.dataFrom=O&&O.dataFrom||"",P.attribute.dataFromId=O&&O.dataFromId||"",P.attribute.apicode=O&&O.apicode||"",P.attribute.whereData=U&&(U[0].value.includes("-")?U[0].value.split("-")[1]=="1"?"published":"notPublished":"")||"",P.attribute.type==""?P.attribute.operator="":P.attribute.type=="5"?O.listCode==10005213?P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][2][0].value:!O.allowMultiple||O.apicode=="LifeCyclePhase"||O.apicode=="Category"?P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][0][0].value:O.listType=="0"?P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][1][0].value:O.listType=="2"?P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][2][0].value:P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][3][0].value:P.attribute.operator=s[P.attribute.type]&&s[P.attribute.type][0].value,O&&O.apicode=="LifeCyclePhase"?l.formCofing.object_id?e.getLifecyclesNopage(l.formCofing.object_id,O&&O.itemCode).then(N=>{N.code==200&&(P.attribute.routineData=_(N.result))}):e.getLifecycles(O&&O.itemCode).then(N=>{N.code==200&&(P.attribute.routineData=_(N.result.records))}):O&&(O.apicode=="Category"||O.apicode=="Workflow")?B&&B[0]==10002004?e.getHistory().then(N=>{if(N.code==200){for(let V of N.result)V.label=V.name,V.value=String(V.code),V.children&&V.children.forEach(M=>{M.label=M.name,M.value=M.id});P.attribute.routineData=N.result}}):B&&B[0]==10002005?e.getRelation().then(N=>{if(N.code==200){for(let V of N.result)V.label=V.name,V.value=String(V.code),V.children&&V.children.forEach(M=>{M.label=M.name,M.value=M.id});P.attribute.routineData=N.result}}):l.formCofing.object_id?(P.attribute.routineData=e.subcategory,P.attribute.value=l.formCofing.object_id):e.getObjects(O&&O.itemCode).then(N=>{N.code==200&&(P.attribute.routineData=_(N.result.records))}):O&&(O.apicode=="ProductRoles"||O.apicode=="ApproveRole")&&e.getRoles().then(N=>{N.code==200&&(P.attribute.routineData=_(N.result.records))}),O&&O.listType=="0"&&e.getTreeList(O.listCode).then(N=>{N.code==200&&(P.attribute.routineData=_(N.result))})}}),R.jsx(pe.Select,{style:{width:92,margin:"0 5px"},className:l.verification&&!P.attribute.operator&&Je.verification,placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:R.jsx(lt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),value:P.attribute.operator||void 0,options:P.attribute.type&&p(P.attribute.type,P.attribute.lastSelected),onChange:B=>{P.attribute.operator=B,P.attribute.value="",P.attribute.valueTreeKey=[],P.attribute.valueKey=[],c.treeDefine=[]}}),R.jsx("div",{className:Je.state_type,children:A(P,P.attribute.rawType,P.attribute.lastSelected,F,j)}),R.jsx(pe.Select,{style:{width:60},disabled:e.readOnly,value:P.attribute.attr_join,options:[{value:"and",label:ie("sys.condition.and",{placeholder:"与"})},{value:"or",label:ie("sys.condition.or",{placeholder:"或"})}],suffixIcon:R.jsx(lt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:B=>{P.attribute.attr_join=B}}),R.jsx(lt,{isBackend:!0,className:Je.iconBtn,type:"add",onClick:()=>{b(k,F,k.isGroup,j)}}),R.jsx(lt,{isBackend:!0,disabled:!k.isGroup&&F==0,className:Je.iconBtn,type:"delete",onClick:()=>{x(k,F,k.isGroup,j)}}),k.isGroup&&j<k.relation.length-1?R.jsx("div",{style:{width:"26px"}}):R.jsx(lt,{isBackend:!0,className:Je.iconBtn,type:"addGroups",onClick:()=>{h(F)}})]},j)})]},F))]}),R.jsx(io,{modalTitle:c.titleName||ie("sys.selection.chooseRange",{placeholder:"选择范围"}),visible:c.treeVisible,width:500,destroyOnClose:!0,onCancel:()=>{c.titleName="",c.treeVisible=!1},onOk:()=>{g()},children:R.jsx(Go,{spinning:c.treeLoading,style:{minHeight:"455px"},children:R.jsxs("div",{style:{minHeight:"455px"},className:`
365
+ ${Je.TreeModalStyle} ${c.titleName==ie("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&Je.TreeDepartmentHeight}
366
+ `,children:[c.titleName==ie("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&R.jsx(pe.Checkbox.Group,{className:Je.TreeDepartmentCheckbox,value:c.treeDefine,options:["$DEPARTMENT"],onChange:k=>{c.treeDefine=k,c.treeDefineKey=k}}),c.treeData&&c.treeData.length>0&&!c.treeLoading&&R.jsx(pe.Tree,{defaultExpandAll:!0,height:435,checkable:!0,blockNode:!0,selectable:!1,checkedKeys:c.treeDefineKey||[],checkStrictly:!0,onCheck:(k,{checkedNodes:F})=>{let P=be.map(F,"title");c.treeCheckable?(c.treeDefineKey=k.checked,c.treeDefine=P):(c.treeDefineKey=k.checked.length===0?[]:[k.checked[k.checked.length-1]],c.treeDefine=P.length===0?[]:[P[P.length-1]])},children:C(c.treeData)})]})})}),c.visibleTransfer&&R.jsx(ZI,{title:ie("sys.addValue",{placeholder:"添加值"}),visible:c.visibleTransfer,dataSource:c.dataSource,targetKeys:c.targetKeys,loading:c.loading,isRadio:c.isRadio,columns:c.isUserCode=="10001017"||c.isUserCode=="10005256"?[{title:ie("sys.label.nameRe",{placeholder:"姓名"}),dataIndex:"name"},{title:ie("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),dataIndex:"email"}]:c.isUserCode=="10001018"||c.isUserCode=="LifeCyclePhase"||c.isUserCode=="ProductList"||c.isUserCode=="StatusList"||c.isUserCode=="Category"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="AllProjectsList"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"insDesc"}]:c.isUserCode=="OldLifePhase"||c.isUserCode=="NewLifePhase"||c.isUserCode=="LifePhaseList"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"showName"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="AllEnableManufactures"||c.isUserCode=="AllSupplier"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"number"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:c.isUserCode=="CategoryList"||c.isUserCode=="ClassifyList"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:ie("project.workflow.status",{placeholder:"状态"}),dataIndex:"status",render:k=>k?ie("sys.label.enable",{placeholder:"启用"}):ie("sys.disable.disable",{placeholder:"禁用"})}]:c.isUserCode=="WorkflowNodeList"||c.isUserCode=="AllCalendars"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"name"}]:c.isUserCode=="WorkflowList"?[{title:ie("sys.label.name",{placeholder:"名称"}),dataIndex:"workflowName"},{title:ie("sys.import.category",{placeholder:"分类"}),dataIndex:"changeObject"}]:[{title:ie("sys.label.number",{placeholder:"编号"}),dataIndex:"code"},{title:ie("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}],onCancel:()=>{c.isUserCode="",c.visibleTransfer=!1},onSubmit:k=>{let F=[],P=[],j=["10001017","10005256","10001018","LifeCyclePhase","Category","CategoryList","ClassifyList","StatusList","WorkflowNodeList","AllCalendars","AllProjectsList"];for(let L of k)j.includes(c.isUserCode)||o.includes(c.isUserCode)?L.name=="$USER"?(P.push(L.name),F.push({label:L.name,value:L.name})):c.isUserCode=="WorkflowList"?(P.push(L.id),F.push({label:L.workflowName,value:L.id})):c.isUserCode=="LifePhaseList"?(P.push(L.id),F.push({label:L.showName,value:L.id})):(P.push(L.id),F.push({label:L.name,value:L.id})):c.isUserCode=="OldLifePhase"||c.isUserCode=="NewLifePhase"?(P.push(L.id),F.push({label:L.showName,value:L.id})):c.isUserCode=="AllEnableManufactures"||c.isUserCode=="AllSupplier"?(P.push(L.id),F.push({label:L.number,value:L.id})):(P.push(L.id),F.push({label:L.code,value:L.id}));console.log(P),console.log(F),l.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.value=P.join(","),l.formCofing.relations[c.treeIndex1].relation[c.treeIndex2].attribute.valueKey=F,console.log(l),c.isUserCode="",c.visibleTransfer=!1}})]})}),{Option:OS}=pe.Select,QI=e=>{var g;const[t]=pe.Form.useForm(),r=ae.useRef(null),[n,a]=ae.useState(""),[i,s]=ae.useState([]),[o,l]=ae.useState([]);Zo(()=>{console.log(e)});const c=En({type1:void 0,type2:void 0}),d=(v,y)=>R.jsx(Pf,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},caseSensitive:!0,searchWords:[y?y.toString():""],textToHighlight:v?v.toString():""}),p=()=>{var v;c.type1=void 0,c.type2=void 0,c.popUpSelect=[],s([]),(v=r.current)==null||v.emptyCondition(!0),t.setFieldsValue({type1:void 0})};return R.jsxs("div",{className:yl.itemsCreated,children:[R.jsx("div",{className:yl.classifyBox,children:R.jsxs(pe.Row,{gutter:8,className:yl.rowBox,children:[R.jsxs(pe.Col,{span:12,className:yl.labelLength,children:[ie("sys.import.category",{placeholder:"分类"}),":"]}),R.jsxs(pe.Col,{span:12,className:yl.labelLength,children:[ie("sys.import.subCategory",{placeholder:"子分类"}),":"]}),R.jsx(pe.Col,{span:12,children:R.jsx(pe.Form,{form:t,children:R.jsx(pe.Form.Item,{name:"type1",children:R.jsx(pe.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:c.type1||void 0,style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:R.jsx(lt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(v,y)=>{var _,C,E;c.type1=v,c.type2=void 0,c.fields=[],c.popUpSelect=[],c.sortColum=[],c.searchConditionData={base_item_id:(y==null?void 0:y.value)||"",base_item_name:(y==null?void 0:y.label)||"",object_id:"",object_name:"",relations:[]},(_=r.current)==null||_.emptyCondition(!0),v?((C=r.current)==null||C.setCondition(y,0),e.getInterface(v,"",!0)):(s([]),(E=r.current)==null||E.setCondition(y))},onSearch:v=>{a(v)},onBlur:()=>{a("")},filterOption:(v,y)=>y.label.toLowerCase().indexOf(v.toLowerCase())>=0,children:(g=e.advancedSearchClassify)==null?void 0:g.map(v=>R.jsx(OS,{label:v.label,value:v.value,disabled:v.disabled,children:d(v.label,n)},v.value))})})})}),R.jsx(pe.Col,{span:12,children:R.jsx(pe.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:c.type2||void 0,style:{width:"100%"},placeholder:ie("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:R.jsx(lt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(v,y)=>{var _,C,E;c.type2=v,c.subcategoryApicode=(y==null?void 0:y.apicode)||"",(_=r.current)==null||_.emptyCondition(),v?((C=r.current)==null||C.setCondition(y,1),e.getAttribute(c.type1,v,!0)):((E=r.current)==null||E.setCondition("",1),e.getAttribute(c.type1))},onSearch:v=>{a(v)},onBlur:()=>{a("")},filterOption:(v,y)=>y.label.toLowerCase().indexOf(v.toLowerCase())>=0,children:i.map(v=>R.jsx(OS,{label:v.label,value:v.value,apicode:v.apicode,disabled:v.disabled,children:d(v.label,n)},v.value))})})]})}),R.jsx("div",{className:yl.materialCondition,children:R.jsx(AS,{ref:r,horizontalStyle:!0,typeData:c.typeData,subcategory:i,searchTree:o,cleanUpBtn:c.conditionObj&&!c.conditionObj.canDel&&c.conditionObj.searchType=="private",conditionObj:c.conditionObj,eliminateSearch:()=>{p()}})})]})},Vn={scrollBarAssembly:"_scrollBarAssembly_1gh57_1",buttonChangeTop:"_buttonChangeTop_1gh57_6",iconBox:"_iconBox_1gh57_22",topButton:"_topButton_1gh57_28",buttonChange:"_buttonChange_1gh57_6",rightButton:"_rightButton_1gh57_56"},eL=e=>{var a;const t=ae.useRef(null),r=aO(t),n=En({scrollLeft:0,clientWidth:0,scrollWidth:0,scrollTop:0,clientHeight:0,scrollHeight:0});return ae.useEffect(()=>{const i=()=>{var s,o,l,c,d,p;e.direction?(n.scrollTop=(s=t.current)==null?void 0:s.scrollTop,n.clientHeight=(o=t.current)==null?void 0:o.clientHeight,n.scrollHeight=(l=t.current)==null?void 0:l.scrollHeight):(n.scrollLeft=(c=t.current)==null?void 0:c.scrollLeft,n.clientWidth=(d=t.current)==null?void 0:d.clientWidth,n.scrollWidth=(p=t.current)==null?void 0:p.scrollWidth)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[(a=e.dataList)==null?void 0:a.length,r,e.resetButton]),R.jsxs("div",{className:Vn.scrollBarAssembly,ref:t,style:{...e.style},onScroll:i=>{e.direction?(n.scrollTop=i.target.scrollTop,n.clientHeight=i.target.clientHeight,n.scrollHeight=i.target.scrollHeight):(n.scrollLeft=i.target.scrollLeft,n.clientWidth=i.target.clientWidth,n.scrollWidth=i.target.scrollWidth)},onWheel:i=>{be.includes(i.target.className,"frontend-select-dropdown")||be.includes(i.target.className,"frontend-select-item")||be.includes(i.target.className,"frontend-select-item-option-content")||(e.direction?i.currentTarget.scrollTop+=i.deltaY:i.currentTarget.scrollLeft+=i.deltaY)},children:[!e.loading&&(e.direction?n.scrollTop!=0:n.scrollLeft!=0)&&R.jsx("div",{className:Er(Vn.columnBox,{[Vn.buttonChangeTop]:e.direction,[Vn.buttonChange]:!e.direction,[e.class]:e.class}),onClick:i=>{var s,o;i.stopPropagation(),e.direction?(s=t.current)==null||s.scrollTo({top:n.scrollTop-n.clientHeight,behavior:"smooth"}):(o=t.current)==null||o.scrollTo({left:n.scrollLeft-n.clientWidth,behavior:"smooth"})},children:e.direction?R.jsx(D_,{className:Vn.iconBox}):R.jsx(A_,{className:Vn.iconBox})}),e.children,!e.loading&&(e.direction?n.clientHeight+n.scrollTop+1<n.scrollHeight:n.clientWidth+n.scrollLeft<n.scrollWidth)&&R.jsx("div",{className:Er(Vn.columnBox,{[Vn.buttonChangeTop]:e.direction,[Vn.topButton]:e.direction,[Vn.buttonChange]:!e.direction,[Vn.rightButton]:!e.direction,[e.class]:e.class}),onClick:i=>{var s,o;i.stopPropagation(),e.direction?(s=t.current)==null||s.scrollTo({top:n.scrollTop+n.clientHeight,behavior:"smooth"}):(o=t.current)==null||o.scrollTo({left:n.scrollLeft+n.clientWidth,behavior:"smooth"})},children:e.direction?R.jsx(C_,{className:Vn.iconBox}):R.jsx(P_,{className:Vn.iconBox})})]})},qr={plmPublicTree:"_plmPublicTree_1m137_1",treeListBox:"_treeListBox_1m137_1",onDisable:"_onDisable_1m137_8",onHover:"_onHover_1m137_11",titleBox:"_titleBox_1m137_17",name:"_name_1m137_21",btnBox:"_btnBox_1m137_27",hoverStyle:"_hoverStyle_1m137_35"},{TreeNode:FS}=pe.Tree,{confirm:tL}=pe.Modal,rL=e=>{const t=ae.useRef(),[r,n]=ae.useState([]),[a,i]=ae.useState([]),[s,o]=ae.useState([]),l=En({startDragObj:{}});ae.useEffect(()=>(l.addVisible?c():document.onkeydown=null,()=>{document.onkeydown=null}),[l.addVisible]);const c=()=>{document.onkeydown=function(b){var h=window.event||b,m=h.keyCode||h.which;m==13&&!e.confirmLoading&&d()}};Zo(()=>{let b=[];for(let h of e.treeCrumbs||[])b.push(h.id);i(b)});const d=async()=>{var m;const b=await((m=t.current)==null?void 0:m.validateFields()),h=await e.addRun({canDel:!0,folderType:l.treeObj.folderType,level:l.treeObj.level+1,name:b.name,parentId:l.treeObj.id,sort:l.treeObj.children&&l.treeObj.children.length.length>0?l.treeObj.children.length.length+1:1});h.warning?pe.message.warning(h.result):pe.message.success(h.result),l.addVisible=!1,e.getTreeList&&e.getTreeList()},p=(b,h="id")=>{var m=[];const x=S=>{for(var A=0,k=S.length;A<k;A++){const F=S[A];if(F.children&&F.children.length||F.conditionList&&!e.closeCondition){let P=[];F.conditionList&&!e.closeCondition?P=be.concat(F.children||[],F.conditionList):P=F.children,m.push(F[h]),x(P)}}};return x(b),m},g=b=>{v(b,e.treeData),n(e.treeData.slice())},v=(b,h)=>h.forEach(m=>{m.id===b?m.isEditable=!0:m.isEditable=!1,m.name=m.defaultValue,m.children&&v(b,m.children),m.conditionList&&v(b,m.conditionList)}),y=(b,h)=>{_(h,b.target.value,e.treeData),n(e.treeData.slice())},_=(b,h,m)=>m.forEach(x=>{x.id===b&&(x.name=h),x.children&&_(b,h,x.children),x.conditionList&&_(b,h,x.conditionList)}),C=(b,h)=>{E(b,h,e.treeData),n(e.treeData.slice())},E=(b,h,m)=>m.forEach(x=>{x.isEditable=!1,x.id===b&&(x.name=h),x.children&&E(b,h,x.children),x.conditionList&&E(b,h,x.conditionList)}),T=b=>b==null?void 0:b.map(m=>{if(m.isEditable?m.title=R.jsxs("div",{className:qr.treeListBox,children:[R.jsxs("div",{className:qr.titleBox,children:[R.jsx(lt,{type:m.content?"homesearch":be.includes(a,m.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),R.jsx(pe.Input,{size:"small",maxLength:16,value:m.name,onChange:x=>{y(x,m.id)}})]}),R.jsxs("div",{className:qr.btnBox,children:[R.jsx(E_,{style:{marginRight:"5px"},className:qr.hoverStyle,onClick:x=>{x.stopPropagation(),C(m.id,m.defaultValue)}}),e.editLoading||e.editConditioLoading?R.jsx(pu,{spin:!0}):R.jsx(T_,{className:qr.hoverStyle,onClick:async x=>{x.stopPropagation(),m.name===l.treeName?C(m.id,m.defaultValue):(m.content?await e.conditionEdit({id:m.id,searchFolderId:m.searchFolderId,searchType:m.searchType,itemCode:m.itemCode,conditionName:m.name,conditionObject:m.conditionObject,content:m.content,sort:m.sort,canDel:m.canDel}):await e.editRun({id:m.id,parentId:m.parentId,name:m.name,folderType:m.folderType,sort:m.sort,canDel:m.canDel,level:m.level}),e.getTreeList&&e.getTreeList())}})]})]},m.id):m.title=R.jsxs("div",{className:qr.treeListBox,children:[R.jsxs("div",{className:qr.titleBox,children:[R.jsx(lt,{type:m.content||m.searchType=="change"?"homesearch":be.includes(a,m.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),R.jsx("div",{className:qr.name,title:m.name,children:R.jsx("span",{children:m.name})})]}),R.jsxs("div",{className:Er({[qr.btnBox]:!0,[qr.onHover]:!e.readOnly,[qr.onDisable]:e.readOnly}),children:[m.level<4&&m.isAuth&&R.jsx(F_,{className:qr.hoverStyle,onClick:x=>{x.preventDefault(),l.treeObj=m,l.addVisible=!0}}),m.level==1&&R.jsx("div",{onClick:x=>{x.stopPropagation()},children:R.jsx(lt,{className:qr.hoverStyle,type:be.intersection(p([m]),a).length==p([m]).length?"content-openmode":"content-open",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"13px",marginLeft:"5px"},onClick:()=>{be.intersection(p([m]),a).length==p([m]).length?i(be.difference(a,p([m]))):i(be.uniq(be.concat(a,p([m]))))}})}),m.level!=1&&m.canDel&&R.jsx(O_,{className:qr.hoverStyle,style:{marginLeft:"5px"},onClick:x=>{x.stopPropagation(),tL(yD({title:ie("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),content:`${ie("sys.label.deleteConfirmation",{placeholder:"删除后将不可恢复"})},${ie("sys.label.confirmDelete",{placeholder:"请确认是否删除"})}?`,onOk(){return new Promise(async(S,A)=>{m.content?e.conditionDelete({id:m.id}).then(k=>{k.warning?pe.message.warning(k.message):pe.message.success(k.message),S(!0),e.getTreeList&&e.getTreeList(m.id)}).catch(()=>{S(!0)}):e.deleteFolder({id:m.id}).then(k=>{k.warning?pe.message.warning(k.message):pe.message.success(k.message),S(!0),e.getTreeList&&e.getTreeList()}).catch(()=>{S(!0)})})}}))}}),m.level!=1&&(m.itemCode?m.isConditionNameAuth:m.isAuth)&&R.jsx(lt,{className:qr.hoverStyle,type:"content-edit",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"12px",marginLeft:"5px"},onClick:x=>{x.stopPropagation(),l.treeName=m.name,g(m.id)}})]})]},m.id),m.children||m.conditionList&&!e.closeCondition){let x=[];return m.conditionList&&!e.closeCondition?x=be.concat(m.children||[],m.conditionList):x=m.children,R.jsx(FS,{title:m.title,dataRef:m,children:T(x)},m.id)}return R.jsx(FS,{title:m.title,dataRef:m},m.id)});return R.jsxs("div",{className:qr.plmPublicTree,children:[R.jsx(pe.Tree,{switcherIcon:R.jsx(lt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),draggable:e.closeDrag?!1:{icon:!1},expandedKeys:a,selectedKeys:e.selectedKeys,onExpand:b=>{i(b)},onSelect:(b,h)=>{var m,x,S;if(e.closeCondition){if(((m=h.node.dataRef)==null?void 0:m.folderType)==="change")return}else if(!((x=h.node.dataRef)!=null&&x.content)&&((S=h.node.dataRef)==null?void 0:S.searchType)!=="change")return;e.onSelect&&e.onSelect(b,h)},allowDrop:e.closeDrag?void 0:({dropNode:b,dropPosition:h})=>h!=-1&&l.startDragObj.folderType==b.dataRef.folderType&&(l.startDragObj.id.length>b.key.length&&h==0&&l.startDragObj.level-b.dataRef.level==1||l.startDragObj.id.length==b.key.length&&h!=0),onDragStart:e.closeDrag?void 0:b=>{l.startDragObj=b.node.dataRef},children:T(e.treeData)}),R.jsx(io,{modalTitle:ie("sys.label.createFolder",{placeholder:"新建文件夹"}),mask:!1,width:400,visible:l.addVisible,maskClosable:!1,okText:ie("project.tab.plan.details.window.save",{placeholder:"保存"}),onCancel:()=>{l.addVisible=!1},style:{top:"25vh"},className:qr.container,destroyOnClose:!0,onOk:async()=>{d()},confirmLoading:e.confirmLoading,children:R.jsx(Vb,{ref:t,size:"middle",labelAlign:"left",labelCol:{style:{width:80}},children:R.jsx(TS,{name:"name",label:ie("sys.label.name",{placeholder:"名称"}),content:{type:"Input",props:{maxLength:16,placeholder:ie("sys.name.enterName",{placeholder:"请输入名称"})}},rules:[{required:!0,message:ie("sys.category.nameEmpty",{placeholder:"名称不能为空"})}]})})})]})};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Tc={};Tc.version="0.18.5";var qn=1200,fo=1252,nL=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],w1={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Ld=function(e){nL.indexOf(e)!=-1&&(fo=w1[0]=e)};function aL(){Ld(1252)}var ha=function(e){qn=e,Ld(e)};function Bd(){ha(1200),aL()}function jd(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function iL(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function PS(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var wl=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?iL(e.slice(2)):t==254&&r==255?PS(e.slice(2)):t==65279?e.slice(1):e},Ec=function(t){return String.fromCharCode(t)},b1=function(t){return String.fromCharCode(t)},Dt;function sL(e){Dt=e,ha=function(t){qn=t,Ld(t)},wl=function(t){return t.charCodeAt(0)===255&&t.charCodeAt(1)===254?Dt.utils.decode(1200,jd(t.slice(2))):t},Ec=function(r){return qn===1200?String.fromCharCode(r):Dt.utils.decode(qn,[r&255,r>>8])[0]},b1=function(r){return Dt.utils.decode(fo,[r])[0]},O3()}var ds="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Cc(e){for(var t="",r=0,n=0,a=0,i=0,s=0,o=0,l=0,c=0;c<e.length;)r=e.charCodeAt(c++),i=r>>2,n=e.charCodeAt(c++),s=(r&3)<<4|n>>4,a=e.charCodeAt(c++),o=(n&15)<<2|a>>6,l=a&63,isNaN(n)?o=l=64:isNaN(a)&&(l=64),t+=ds.charAt(i)+ds.charAt(s)+ds.charAt(o)+ds.charAt(l);return t}function Yn(e){var t="",r=0,n=0,a=0,i=0,s=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)i=ds.indexOf(e.charAt(c++)),s=ds.indexOf(e.charAt(c++)),r=i<<2|s>>4,t+=String.fromCharCode(r),o=ds.indexOf(e.charAt(c++)),n=(s&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(n)),l=ds.indexOf(e.charAt(c++)),a=(o&3)<<6|l,l!==64&&(t+=String.fromCharCode(a));return t}var bt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ji=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function hs(e){return bt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function DS(e){return bt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Gn=function(t){return bt?ji(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function Ac(e){if(typeof ArrayBuffer>"u")return Gn(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function ps(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function oL(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}function S1(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return S1(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var Lr=bt?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:ji(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function lL(e){for(var t=[],r=0,n=e.length+250,a=hs(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)a[r++]=s;else if(s<2048)a[r++]=192|s>>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|o>>6&15|(s&3)<<4,a[r++]=128|o&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=hs(65535),n=65530)}return t.push(a.slice(0,r)),Lr(t)}var tn=/\u0000/g,Oc=/[\u0001-\u0006]/g;function bl(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Ha(e,t){var r=""+e;return r.length>=t?r:gr("0",t-r.length)+r}function k1(e,t){var r=""+e;return r.length>=t?r:gr(" ",t-r.length)+r}function Ud(e,t){var r=""+e;return r.length>=t?r:r+gr(" ",t-r.length)}function uL(e,t){var r=""+Math.round(e);return r.length>=t?r:gr("0",t-r.length)+r}function cL(e,t){var r=""+e;return r.length>=t?r:gr("0",t-r.length)+r}var RS=Math.pow(2,32);function Sl(e,t){if(e>RS||e<-RS)return uL(e,t);var r=Math.round(e);return cL(r,t)}function Hd(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var NS=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],T1=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function fL(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Qe={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},MS={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},dL={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function zd(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,s=1,o=0,l=1,c=0,d=0,p=Math.floor(a);c<t&&(p=Math.floor(a),o=p*s+i,d=p*c+l,!(a-p<5e-8));)a=1/(a-p),i=s,s=o,l=c,c=d;if(d>t&&(c>t?(d=l,o=i):(d=c,o=s)),!r)return[0,n*o,d];var g=Math.floor(n*o/d);return[g,n*o-g*d,d]}function gs(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,s=[],o={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++a==86400&&(o.T=a=0,++n,++o.D)),n===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),n<60&&(i=(i+6)%7),r&&(i=xL(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=a%60,a=Math.floor(a/60),o.M=a%60,a=Math.floor(a/60),o.H=a,o.q=i,o}var IS=new Date(1899,11,31,0,0,0),hL=IS.getTime(),pL=new Date(1900,2,1,0,0,0);function LS(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=pL&&(r+=24*60*60*1e3),(r-(hL+(e.getTimezoneOffset()-IS.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function E1(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function gL(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function mL(e){var t=e<0?12:11,r=E1(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function vL(e){var t=E1(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Fc(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=mL(e):t===10?r=e.toFixed(10).substr(0,12):r=vL(e),E1(gL(r.toUpperCase()))}function ho(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Fc(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Kn(14,LS(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function xL(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function _L(e,t,r,n){var a="",i=0,s=0,o=r.y,l,c=0;switch(e){case 98:o=r.y+543;case 121:switch(t.length){case 1:case 2:l=o%100,c=2;break;default:l=o%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return T1[r.m-1][1];case 5:return T1[r.m-1][0];default:return T1[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=t.length;break;case 3:return NS[r.q][0];default:return NS[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Ha(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(a=Ha(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=t.length===3?1:2;break;case 101:l=o,c=1;break}var d=c>0?Ha(l,c):"";return d}function ms(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var BS=/%/g;function yL(e,t,r){var n=t.replace(BS,""),a=t.length-n.length;return Ui(e,n,r*Math.pow(10,2*a))+gr("%",a)}function wL(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Ui(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function jS(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+jS(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,d){return l+c+d.substr(0,(a+i)%a)+"."+d.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var US=/# (\?+)( ?)\/( ?)(\d+)/;function bL(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),s=a-i*n,o=n;return r+(i===0?"":""+i)+" "+(s===0?gr(" ",e[1].length+1+e[4].length):k1(s,e[1].length)+e[2]+"/"+e[3]+Ha(o,e[4].length))}function SL(e,t,r){return r+(t===0?"":""+t)+gr(" ",e[1].length+2+e[4].length)}var HS=/^#*0*\.([0#]+)/,zS=/\).*[0#]/,WS=/\(###\) ###\\?-####/;function _n(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function $S(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function VS(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function kL(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function TL(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function pa(e,t,r){if(e.charCodeAt(0)===40&&!t.match(zS)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?pa("n",n,r):"("+pa("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return wL(e,t,r);if(t.indexOf("%")!==-1)return yL(e,t,r);if(t.indexOf("E")!==-1)return jS(t,r);if(t.charCodeAt(0)===36)return"$"+pa(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+Sl(l,t.length);if(t.match(/^[#?]+$/))return a=Sl(r,0),a==="0"&&(a=""),a.length>t.length?a:_n(t.substr(0,t.length-a.length))+a;if(i=t.match(US))return bL(i,l,c);if(t.match(/^#+0+$/))return c+Sl(l,t.length-t.indexOf("0"));if(i=t.match(HS))return a=$S(r,i[1].length).replace(/^([^\.]+)$/,"$1."+_n(i[1])).replace(/\.$/,"."+_n(i[1])).replace(/\.(\d*)$/,function(y,_){return"."+_+gr("0",_n(i[1]).length-_.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+$S(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+ms(Sl(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+pa(e,t,-r):ms(""+(Math.floor(r)+kL(r,i[1].length)))+"."+Ha(VS(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return pa(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=bl(pa(e,t.replace(/[\\-]/g,""),r)),s=0,bl(bl(t.replace(/\\/g,"")).replace(/[0#]/g,function(y){return s<a.length?a.charAt(s++):y==="0"?"0":""}));if(t.match(WS))return a=pa(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var d="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),o=zd(l,Math.pow(10,s)-1,!1),a=""+c,d=Ui("n",i[1],o[1]),d.charAt(d.length-1)==" "&&(d=d.substr(0,d.length-1)+"0"),a+=d+i[2]+"/"+i[3],d=Ud(o[2],s),d.length<i[4].length&&(d=_n(i[4].substr(i[4].length-d.length))+d),a+=d,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),o=zd(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?k1(o[1],s)+i[2]+"/"+i[3]+Ud(o[2],s):gr(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=Sl(r,0),t.length<=a.length?a:_n(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var p=t.indexOf(".")-s,g=t.length-a.length-p;return _n(t.substr(0,p)+a+t.substr(t.length-g))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=VS(r,i[1].length),r<0?"-"+pa(e,t,-r):ms(TL(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(y){return"00,"+(y.length<3?Ha(0,3-y.length):"")+y})+"."+Ha(s,i[1].length);switch(t){case"###,##0.00":return pa(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var v=ms(Sl(l,0));return v!=="0"?c+v:"";case"###,###.00":return pa(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return pa(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function EL(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Ui(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function CL(e,t,r){var n=t.replace(BS,""),a=t.length-n.length;return Ui(e,n,r*Math.pow(10,2*a))+gr("%",a)}function qS(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+qS(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,d){return l+c+d.substr(0,(a+i)%a)+"."+d.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function ai(e,t,r){if(e.charCodeAt(0)===40&&!t.match(zS)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ai("n",n,r):"("+ai("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return EL(e,t,r);if(t.indexOf("%")!==-1)return CL(e,t,r);if(t.indexOf("E")!==-1)return qS(t,r);if(t.charCodeAt(0)===36)return"$"+ai(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+Ha(l,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:_n(t.substr(0,t.length-a.length))+a;if(i=t.match(US))return SL(i,l,c);if(t.match(/^#+0+$/))return c+Ha(l,t.length-t.indexOf("0"));if(i=t.match(HS))return a=(""+r).replace(/^([^\.]+)$/,"$1."+_n(i[1])).replace(/\.$/,"."+_n(i[1])),a=a.replace(/\.(\d*)$/,function(y,_){return"."+_+gr("0",_n(i[1]).length-_.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+ms(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ai(e,t,-r):ms(""+r)+"."+gr("0",i[1].length);if(i=t.match(/^#,#*,#0/))return ai(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=bl(ai(e,t.replace(/[\\-]/g,""),r)),s=0,bl(bl(t.replace(/\\/g,"")).replace(/[0#]/g,function(y){return s<a.length?a.charAt(s++):y==="0"?"0":""}));if(t.match(WS))return a=ai(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var d="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),o=zd(l,Math.pow(10,s)-1,!1),a=""+c,d=Ui("n",i[1],o[1]),d.charAt(d.length-1)==" "&&(d=d.substr(0,d.length-1)+"0"),a+=d+i[2]+"/"+i[3],d=Ud(o[2],s),d.length<i[4].length&&(d=_n(i[4].substr(i[4].length-d.length))+d),a+=d,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),o=zd(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?k1(o[1],s)+i[2]+"/"+i[3]+Ud(o[2],s):gr(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:_n(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var p=t.indexOf(".")-s,g=t.length-a.length-p;return _n(t.substr(0,p)+a+t.substr(t.length-g))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+ai(e,t,-r):ms(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(y){return"00,"+(y.length<3?Ha(0,3-y.length):"")+y})+"."+Ha(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var v=ms(""+l);return v!=="0"?c+v:"";default:if(t.match(/\.[0#?]*$/))return ai(e,t.slice(0,t.lastIndexOf(".")),r)+_n(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Ui(e,t,r){return(r|0)===r?ai(e,t,r):pa(e,t,r)}function AL(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var YS=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function po(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Hd(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(YS))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function OL(e,t,r,n){for(var a=[],i="",s=0,o="",l="t",c,d,p,g="H";s<e.length;)switch(o=e.charAt(s)){case"G":if(!Hd(e,s))throw new Error("unrecognized character "+o+" in "+e);a[a.length]={t:"G",v:"General"},s+=7;break;case'"':for(i="";(p=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(p);a[a.length]={t:"t",v:i},++s;break;case"\\":var v=e.charAt(++s),y=v==="("||v===")"?v:"t";a[a.length]={t:y,v},++s;break;case"_":a[a.length]={t:"t",v:" "},s+=2;break;case"@":a[a.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(c==null&&(c=gs(t,r,e.charAt(s+1)==="2"),c==null))return"";a[a.length]={t:"X",v:e.substr(s,2)},l=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||c==null&&(c=gs(t,r),c==null))return"";for(i=o;++s<e.length&&e.charAt(s).toLowerCase()===o;)i+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=g),a[a.length]={t:o,v:i},l=o;break;case"A":case"a":case"上":var _={t:o,v:o};if(c==null&&(c=gs(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(c!=null&&(_.v=c.H>=12?"P":"A"),_.t="T",g="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(c!=null&&(_.v=c.H>=12?"PM":"AM"),_.t="T",s+=5,g="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(c!=null&&(_.v=c.H>=12?"下午":"上午"),_.t="T",s+=5,g="h"):(_.t="t",++s),c==null&&_.t==="T")return"";a[a.length]=_,l=o;break;case"[":for(i=o;e.charAt(s++)!=="]"&&s<e.length;)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(YS)){if(c==null&&(c=gs(t,r),c==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},l=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",po(e)||(a[a.length]={t:"t",v:i}));break;case".":if(c!=null){for(i=o;++s<e.length&&(o=e.charAt(s))==="0";)i+=o;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=o;++s<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(s))>-1;)i+=o;a[a.length]={t:"n",v:i};break;case"?":for(i=o;e.charAt(++s)===o;)i+=o;a[a.length]={t:o,v:i},l=o;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=o;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)i+=e.charAt(s);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:o,v:o},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);a[a.length]={t:"t",v:o},++s;break}var C=0,E=0,T;for(s=a.length-1,l="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=g,l="h",C<1&&(C=1);break;case"s":(T=a[s].v.match(/\.0+$/))&&(E=Math.max(E,T[0].length-1)),C<3&&(C=3);case"d":case"y":case"M":case"e":l=a[s].t;break;case"m":l==="s"&&(a[s].t="M",C<2&&(C=2));break;case"X":break;case"Z":C<1&&a[s].v.match(/[Hh]/)&&(C=1),C<2&&a[s].v.match(/[Mm]/)&&(C=2),C<3&&a[s].v.match(/[Ss]/)&&(C=3)}switch(C){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var b="",h;for(s=0;s<a.length;++s)switch(a[s].t){case"t":case"T":case" ":case"D":break;case"X":a[s].v="",a[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[s].v=_L(a[s].t.charCodeAt(0),a[s].v,c,E),a[s].t="t";break;case"n":case"?":for(h=s+1;a[h]!=null&&((o=a[h].t)==="?"||o==="D"||(o===" "||o==="t")&&a[h+1]!=null&&(a[h+1].t==="?"||a[h+1].t==="t"&&a[h+1].v==="/")||a[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(a[h].v==="/"||a[h].v===" "&&a[h+1]!=null&&a[h+1].t=="?"));)a[s].v+=a[h].v,a[h]={v:"",t:";"},++h;b+=a[s].v,s=h-1;break;case"G":a[s].t="t",a[s].v=ho(t,r);break}var m="",x,S;if(b.length>0){b.charCodeAt(0)==40?(x=t<0&&b.charCodeAt(0)===45?-t:t,S=Ui("n",b,x)):(x=t<0&&n>1?-t:t,S=Ui("n",b,x),x<0&&a[0]&&a[0].t=="t"&&(S=S.substr(1),a[0].v="-"+a[0].v)),h=S.length-1;var A=a.length;for(s=0;s<a.length;++s)if(a[s]!=null&&a[s].t!="t"&&a[s].v.indexOf(".")>-1){A=s;break}var k=a.length;if(A===a.length&&S.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(h>=a[s].v.length-1?(h-=a[s].v.length,a[s].v=S.substr(h+1,a[s].v.length)):h<0?a[s].v="":(a[s].v=S.substr(0,h+1),h=-1),a[s].t="t",k=s);h>=0&&k<a.length&&(a[k].v=S.substr(0,h+1)+a[k].v)}else if(A!==a.length&&S.indexOf("E")===-1){for(h=S.indexOf(".")-1,s=A;s>=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(d=a[s].v.indexOf(".")>-1&&s===A?a[s].v.indexOf(".")-1:a[s].v.length-1,m=a[s].v.substr(d+1);d>=0;--d)h>=0&&(a[s].v.charAt(d)==="0"||a[s].v.charAt(d)==="#")&&(m=S.charAt(h--)+m);a[s].v=m,a[s].t="t",k=s}for(h>=0&&k<a.length&&(a[k].v=S.substr(0,h+1)+a[k].v),h=S.indexOf(".")+1,s=A;s<a.length;++s)if(!(a[s]==null||"n?(".indexOf(a[s].t)===-1&&s!==A)){for(d=a[s].v.indexOf(".")>-1&&s===A?a[s].v.indexOf(".")+1:0,m=a[s].v.substr(0,d);d<a[s].v.length;++d)h<S.length&&(m+=S.charAt(h++));a[s].v=m,a[s].t="t",k=s}}}for(s=0;s<a.length;++s)a[s]!=null&&"n?".indexOf(a[s].t)>-1&&(x=n>1&&t<0&&s>0&&a[s-1].v==="-"?-t:t,a[s].v=Ui(a[s].t,a[s].v,x),a[s].t="t");var F="";for(s=0;s!==a.length;++s)a[s]!=null&&(F+=a[s].v);return F}var GS=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function KS(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function FL(e,t){var r=AL(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(GS),o=r[1].match(GS);return KS(t,s)?[n,r[0]]:KS(t,o)?[n,r[1]]:[n,r[s!=null&&o!=null?2:1]]}return[n,i]}function Kn(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Qe)[e],n==null&&(n=r.table&&r.table[MS[e]]||Qe[MS[e]]),n==null&&(n=dL[e]||"General");break}if(Hd(n,0))return ho(t,r);t instanceof Date&&(t=LS(t,r.date1904));var a=FL(n,t);if(Hd(a[1]))return ho(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return OL(a[1],t,r,a[0])}function ii(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Qe[r]==null){t<0&&(t=r);continue}if(Qe[r]==e){t=r;break}}t<0&&(t=391)}return Qe[t]=e,t}function Pc(e){for(var t=0;t!=392;++t)e[t]!==void 0&&ii(e[t],t)}function kl(){Qe=fL()}var XS={format:Kn,load:ii,_table:Qe,load_table:Pc,parse_date_code:gs,is_date:po,get_table:function(){return XS._table=Qe}},PL={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},ZS=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function DL(e){var t=typeof e=="number"?Qe[e]:e;return t=t.replace(ZS,"(\\d+)"),new RegExp("^"+t+"$")}function RL(e,t,r){var n=-1,a=-1,i=-1,s=-1,o=-1,l=-1;(t.match(ZS)||[]).forEach(function(p,g){var v=parseInt(r[g+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=v;break;case"d":i=v;break;case"h":s=v;break;case"s":l=v;break;case"m":s>=0?o=v:a=v;break}}),l>=0&&o==-1&&a>=0&&(o=a,a=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var d=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return s==-1&&o==-1&&l==-1?c:n==-1&&a==-1&&i==-1?d:c+"T"+d}var NL=function(){var e={};e.version="1.2.0";function t(){for(var S=0,A=new Array(256),k=0;k!=256;++k)S=k,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,A[k]=S;return typeof Int32Array<"u"?new Int32Array(A):A}var r=t();function n(S){var A=0,k=0,F=0,P=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(F=0;F!=256;++F)P[F]=S[F];for(F=0;F!=256;++F)for(k=S[F],A=256+F;A<4096;A+=256)k=P[A]=k>>>8^S[k&255];var j=[];for(F=1;F!=16;++F)j[F-1]=typeof Int32Array<"u"?P.subarray(F*256,F*256+256):P.slice(F*256,F*256+256);return j}var a=n(r),i=a[0],s=a[1],o=a[2],l=a[3],c=a[4],d=a[5],p=a[6],g=a[7],v=a[8],y=a[9],_=a[10],C=a[11],E=a[12],T=a[13],b=a[14];function h(S,A){for(var k=A^-1,F=0,P=S.length;F<P;)k=k>>>8^r[(k^S.charCodeAt(F++))&255];return~k}function m(S,A){for(var k=A^-1,F=S.length-15,P=0;P<F;)k=b[S[P++]^k&255]^T[S[P++]^k>>8&255]^E[S[P++]^k>>16&255]^C[S[P++]^k>>>24]^_[S[P++]]^y[S[P++]]^v[S[P++]]^g[S[P++]]^p[S[P++]]^d[S[P++]]^c[S[P++]]^l[S[P++]]^o[S[P++]]^s[S[P++]]^i[S[P++]]^r[S[P++]];for(F+=15;P<F;)k=k>>>8^r[(k^S[P++])&255];return~k}function x(S,A){for(var k=A^-1,F=0,P=S.length,j=0,L=0;F<P;)j=S.charCodeAt(F++),j<128?k=k>>>8^r[(k^j)&255]:j<2048?(k=k>>>8^r[(k^(192|j>>6&31))&255],k=k>>>8^r[(k^(128|j&63))&255]):j>=55296&&j<57344?(j=(j&1023)+64,L=S.charCodeAt(F++)&1023,k=k>>>8^r[(k^(240|j>>8&7))&255],k=k>>>8^r[(k^(128|j>>2&63))&255],k=k>>>8^r[(k^(128|L>>6&15|(j&3)<<4))&255],k=k>>>8^r[(k^(128|L&63))&255]):(k=k>>>8^r[(k^(224|j>>12&15))&255],k=k>>>8^r[(k^(128|j>>6&63))&255],k=k>>>8^r[(k^(128|j&63))&255]);return~k}return e.table=r,e.bstr=h,e.buf=m,e.str=x,e}(),Xe=function(){var t={};t.version="1.2.1";function r(G,I){for(var W=G.split("/"),K=I.split("/"),ee=0,ne=0,de=Math.min(W.length,K.length);ee<de;++ee){if(ne=W[ee].length-K[ee].length)return ne;if(W[ee]!=K[ee])return W[ee]<K[ee]?-1:1}return W.length-K.length}function n(G){if(G.charAt(G.length-1)=="/")return G.slice(0,-1).indexOf("/")===-1?G:n(G.slice(0,-1));var I=G.lastIndexOf("/");return I===-1?G:G.slice(0,I+1)}function a(G){if(G.charAt(G.length-1)=="/")return a(G.slice(0,-1));var I=G.lastIndexOf("/");return I===-1?G:G.slice(I+1)}function i(G,I){typeof I=="string"&&(I=new Date(I));var W=I.getHours();W=W<<6|I.getMinutes(),W=W<<5|I.getSeconds()>>>1,G.write_shift(2,W);var K=I.getFullYear()-1980;K=K<<4|I.getMonth()+1,K=K<<5|I.getDate(),G.write_shift(2,K)}function s(G){var I=G.read_shift(2)&65535,W=G.read_shift(2)&65535,K=new Date,ee=W&31;W>>>=5;var ne=W&15;W>>>=4,K.setMilliseconds(0),K.setFullYear(W+1980),K.setMonth(ne-1),K.setDate(ee);var de=I&31;I>>>=5;var xe=I&63;return I>>>=6,K.setHours(I),K.setMinutes(xe),K.setSeconds(de<<1),K}function o(G){Gr(G,0);for(var I={},W=0;G.l<=G.length-4;){var K=G.read_shift(2),ee=G.read_shift(2),ne=G.l+ee,de={};switch(K){case 21589:W=G.read_shift(1),W&1&&(de.mtime=G.read_shift(4)),ee>5&&(W&2&&(de.atime=G.read_shift(4)),W&4&&(de.ctime=G.read_shift(4))),de.mtime&&(de.mt=new Date(de.mtime*1e3));break}G.l=ne,I[K]=de}return I}var l;function c(){return l||(l={})}function d(G,I){if(G[0]==80&&G[1]==75)return Va(G,I);if((G[0]|32)==109&&(G[1]|32)==105)return uf(G,I);if(G.length<512)throw new Error("CFB file size "+G.length+" < 512");var W=3,K=512,ee=0,ne=0,de=0,xe=0,ce=0,me=[],ge=G.slice(0,512);Gr(ge,0);var Te=p(ge);switch(W=Te[0],W){case 3:K=512;break;case 4:K=4096;break;case 0:if(Te[1]==0)return Va(G,I);default:throw new Error("Major Version: Expected 3 or 4 saw "+W)}K!==512&&(ge=G.slice(0,K),Gr(ge,28));var Re=G.slice(0,K);g(ge,W);var Ue=ge.read_shift(4,"i");if(W===3&&Ue!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Ue);ge.l+=4,de=ge.read_shift(4,"i"),ge.l+=4,ge.chk("00100000","Mini Stream Cutoff Size: "),xe=ge.read_shift(4,"i"),ee=ge.read_shift(4,"i"),ce=ge.read_shift(4,"i"),ne=ge.read_shift(4,"i");for(var De=-1,Ie=0;Ie<109&&(De=ge.read_shift(4,"i"),!(De<0));++Ie)me[Ie]=De;var st=v(G,K);C(ce,ne,st,K,me);var Xt=T(st,de,me,K);Xt[de].name="!Directory",ee>0&&xe!==L&&(Xt[xe].name="!MiniFAT"),Xt[me[0]].name="!FAT",Xt.fat_addrs=me,Xt.ssz=K;var Zt={},Nr=[],Ps=[],Ds=[];b(de,Xt,st,Nr,ee,Zt,Ps,xe),y(Ps,Ds,Nr),Nr.shift();var Io={FileIndex:Ps,FullPaths:Ds};return I&&I.raw&&(Io.raw={header:Re,sectors:st}),Io}function p(G){if(G[G.l]==80&&G[G.l+1]==75)return[0,0];G.chk(B,"Header Signature: "),G.l+=16;var I=G.read_shift(2,"u");return[G.read_shift(2,"u"),I]}function g(G,I){var W=9;switch(G.l+=2,W=G.read_shift(2)){case 9:if(I!=3)throw new Error("Sector Shift: Expected 9 saw "+W);break;case 12:if(I!=4)throw new Error("Sector Shift: Expected 12 saw "+W);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+W)}G.chk("0600","Mini Sector Shift: "),G.chk("000000000000","Reserved: ")}function v(G,I){for(var W=Math.ceil(G.length/I)-1,K=[],ee=1;ee<W;++ee)K[ee-1]=G.slice(ee*I,(ee+1)*I);return K[W-1]=G.slice(W*I),K}function y(G,I,W){for(var K=0,ee=0,ne=0,de=0,xe=0,ce=W.length,me=[],ge=[];K<ce;++K)me[K]=ge[K]=K,I[K]=W[K];for(;xe<ge.length;++xe)K=ge[xe],ee=G[K].L,ne=G[K].R,de=G[K].C,me[K]===K&&(ee!==-1&&me[ee]!==ee&&(me[K]=me[ee]),ne!==-1&&me[ne]!==ne&&(me[K]=me[ne])),de!==-1&&(me[de]=K),ee!==-1&&K!=me[K]&&(me[ee]=me[K],ge.lastIndexOf(ee)<xe&&ge.push(ee)),ne!==-1&&K!=me[K]&&(me[ne]=me[K],ge.lastIndexOf(ne)<xe&&ge.push(ne));for(K=1;K<ce;++K)me[K]===K&&(ne!==-1&&me[ne]!==ne?me[K]=me[ne]:ee!==-1&&me[ee]!==ee&&(me[K]=me[ee]));for(K=1;K<ce;++K)if(G[K].type!==0){if(xe=K,xe!=me[xe])do xe=me[xe],I[K]=I[xe]+"/"+I[K];while(xe!==0&&me[xe]!==-1&&xe!=me[xe]);me[K]=-1}for(I[0]+="/",K=1;K<ce;++K)G[K].type!==2&&(I[K]+="/")}function _(G,I,W){for(var K=G.start,ee=G.size,ne=[],de=K;W&&ee>0&&de>=0;)ne.push(I.slice(de*j,de*j+j)),ee-=j,de=vo(W,de*4);return ne.length===0?Se(0):Lr(ne).slice(0,G.size)}function C(G,I,W,K,ee){var ne=L;if(G===L){if(I!==0)throw new Error("DIFAT chain shorter than expected")}else if(G!==-1){var de=W[G],xe=(K>>>2)-1;if(!de)return;for(var ce=0;ce<xe&&(ne=vo(de,ce*4))!==L;++ce)ee.push(ne);C(vo(de,K-4),I-1,W,K,ee)}}function E(G,I,W,K,ee){var ne=[],de=[];ee||(ee=[]);var xe=K-1,ce=0,me=0;for(ce=I;ce>=0;){ee[ce]=!0,ne[ne.length]=ce,de.push(G[ce]);var ge=W[Math.floor(ce*4/K)];if(me=ce*4&xe,K<4+me)throw new Error("FAT boundary crossed: "+ce+" 4 "+K);if(!G[ge])break;ce=vo(G[ge],me)}return{nodes:ne,data:x3([de])}}function T(G,I,W,K){var ee=G.length,ne=[],de=[],xe=[],ce=[],me=K-1,ge=0,Te=0,Re=0,Ue=0;for(ge=0;ge<ee;++ge)if(xe=[],Re=ge+I,Re>=ee&&(Re-=ee),!de[Re]){ce=[];var De=[];for(Te=Re;Te>=0;){De[Te]=!0,de[Te]=!0,xe[xe.length]=Te,ce.push(G[Te]);var Ie=W[Math.floor(Te*4/K)];if(Ue=Te*4&me,K<4+Ue)throw new Error("FAT boundary crossed: "+Te+" 4 "+K);if(!G[Ie]||(Te=vo(G[Ie],Ue),De[Te]))break}ne[Re]={nodes:xe,data:x3([ce])}}return ne}function b(G,I,W,K,ee,ne,de,xe){for(var ce=0,me=K.length?2:0,ge=I[G].data,Te=0,Re=0,Ue;Te<ge.length;Te+=128){var De=ge.slice(Te,Te+128);Gr(De,64),Re=De.read_shift(2),Ue=Gd(De,0,Re-me),K.push(Ue);var Ie={name:Ue,type:De.read_shift(1),color:De.read_shift(1),L:De.read_shift(4,"i"),R:De.read_shift(4,"i"),C:De.read_shift(4,"i"),clsid:De.read_shift(16),state:De.read_shift(4,"i"),start:0,size:0},st=De.read_shift(2)+De.read_shift(2)+De.read_shift(2)+De.read_shift(2);st!==0&&(Ie.ct=h(De,De.l-8));var Xt=De.read_shift(2)+De.read_shift(2)+De.read_shift(2)+De.read_shift(2);Xt!==0&&(Ie.mt=h(De,De.l-8)),Ie.start=De.read_shift(4,"i"),Ie.size=De.read_shift(4,"i"),Ie.size<0&&Ie.start<0&&(Ie.size=Ie.type=0,Ie.start=L,Ie.name=""),Ie.type===5?(ce=Ie.start,ee>0&&ce!==L&&(I[ce].name="!StreamData")):Ie.size>=4096?(Ie.storage="fat",I[Ie.start]===void 0&&(I[Ie.start]=E(W,Ie.start,I.fat_addrs,I.ssz)),I[Ie.start].name=Ie.name,Ie.content=I[Ie.start].data.slice(0,Ie.size)):(Ie.storage="minifat",Ie.size<0?Ie.size=0:ce!==L&&Ie.start!==L&&I[ce]&&(Ie.content=_(Ie,I[ce].data,(I[xe]||{}).data))),Ie.content&&Gr(Ie.content,0),ne[Ue]=Ie,de.push(Ie)}}function h(G,I){return new Date((Br(G,I+4)/1e7*Math.pow(2,32)+Br(G,I)/1e7-11644473600)*1e3)}function m(G,I){return c(),d(l.readFileSync(G),I)}function x(G,I){var W=I&&I.type;switch(W||bt&&Buffer.isBuffer(G)&&(W="buffer"),W||"base64"){case"file":return m(G,I);case"base64":return d(Gn(Yn(G)),I);case"binary":return d(Gn(G),I)}return d(G,I)}function S(G,I){var W=I||{},K=W.root||"Root Entry";if(G.FullPaths||(G.FullPaths=[]),G.FileIndex||(G.FileIndex=[]),G.FullPaths.length!==G.FileIndex.length)throw new Error("inconsistent CFB structure");G.FullPaths.length===0&&(G.FullPaths[0]=K+"/",G.FileIndex[0]={name:K,type:5}),W.CLSID&&(G.FileIndex[0].clsid=W.CLSID),A(G)}function A(G){var I="Sh33tJ5";if(!Xe.find(G,"/"+I)){var W=Se(4);W[0]=55,W[1]=W[3]=50,W[2]=54,G.FileIndex.push({name:I,type:2,content:W,size:4,L:69,R:69,C:69}),G.FullPaths.push(G.FullPaths[0]+I),k(G)}}function k(G,I){S(G);for(var W=!1,K=!1,ee=G.FullPaths.length-1;ee>=0;--ee){var ne=G.FileIndex[ee];switch(ne.type){case 0:K?W=!0:(G.FileIndex.pop(),G.FullPaths.pop());break;case 1:case 2:case 5:K=!0,isNaN(ne.R*ne.L*ne.C)&&(W=!0),ne.R>-1&&ne.L>-1&&ne.R==ne.L&&(W=!0);break;default:W=!0;break}}if(!(!W&&!I)){var de=new Date(1987,1,19),xe=0,ce=Object.create?Object.create(null):{},me=[];for(ee=0;ee<G.FullPaths.length;++ee)ce[G.FullPaths[ee]]=!0,G.FileIndex[ee].type!==0&&me.push([G.FullPaths[ee],G.FileIndex[ee]]);for(ee=0;ee<me.length;++ee){var ge=n(me[ee][0]);K=ce[ge],K||(me.push([ge,{name:a(ge).replace("/",""),type:1,clsid:O,ct:de,mt:de,content:null}]),ce[ge]=!0)}for(me.sort(function(Ue,De){return r(Ue[0],De[0])}),G.FullPaths=[],G.FileIndex=[],ee=0;ee<me.length;++ee)G.FullPaths[ee]=me[ee][0],G.FileIndex[ee]=me[ee][1];for(ee=0;ee<me.length;++ee){var Te=G.FileIndex[ee],Re=G.FullPaths[ee];if(Te.name=a(Re).replace("/",""),Te.L=Te.R=Te.C=-(Te.color=1),Te.size=Te.content?Te.content.length:0,Te.start=0,Te.clsid=Te.clsid||O,ee===0)Te.C=me.length>1?1:-1,Te.size=0,Te.type=5;else if(Re.slice(-1)=="/"){for(xe=ee+1;xe<me.length&&n(G.FullPaths[xe])!=Re;++xe);for(Te.C=xe>=me.length?-1:xe,xe=ee+1;xe<me.length&&n(G.FullPaths[xe])!=n(Re);++xe);Te.R=xe>=me.length?-1:xe,Te.type=1}else n(G.FullPaths[ee+1]||"")==n(Re)&&(Te.R=ee+1),Te.type=2}}}function F(G,I){var W=I||{};if(W.fileType=="mad")return cf(G,W);switch(k(G),W.fileType){case"zip":return As(G,W)}var K=function(Ue){for(var De=0,Ie=0,st=0;st<Ue.FileIndex.length;++st){var Xt=Ue.FileIndex[st];if(Xt.content){var Zt=Xt.content.length;Zt>0&&(Zt<4096?De+=Zt+63>>6:Ie+=Zt+511>>9)}}for(var Nr=Ue.FullPaths.length+3>>2,Ps=De+7>>3,Ds=De+127>>7,Io=Ps+Ie+Nr+Ds,qi=Io+127>>7,hf=qi<=109?0:Math.ceil((qi-109)/127);Io+qi+hf+127>>7>qi;)hf=++qi<=109?0:Math.ceil((qi-109)/127);var qa=[1,hf,qi,Ds,Nr,Ie,De,0];return Ue.FileIndex[0].size=De<<6,qa[7]=(Ue.FileIndex[0].start=qa[0]+qa[1]+qa[2]+qa[3]+qa[4]+qa[5])+(qa[6]+7>>3),qa}(G),ee=Se(K[7]<<9),ne=0,de=0;{for(ne=0;ne<8;++ne)ee.write_shift(1,U[ne]);for(ne=0;ne<8;++ne)ee.write_shift(2,0);for(ee.write_shift(2,62),ee.write_shift(2,3),ee.write_shift(2,65534),ee.write_shift(2,9),ee.write_shift(2,6),ne=0;ne<3;++ne)ee.write_shift(2,0);for(ee.write_shift(4,0),ee.write_shift(4,K[2]),ee.write_shift(4,K[0]+K[1]+K[2]+K[3]-1),ee.write_shift(4,0),ee.write_shift(4,4096),ee.write_shift(4,K[3]?K[0]+K[1]+K[2]-1:L),ee.write_shift(4,K[3]),ee.write_shift(-4,K[1]?K[0]-1:L),ee.write_shift(4,K[1]),ne=0;ne<109;++ne)ee.write_shift(-4,ne<K[2]?K[1]+ne:-1)}if(K[1])for(de=0;de<K[1];++de){for(;ne<236+de*127;++ne)ee.write_shift(-4,ne<K[2]?K[1]+ne:-1);ee.write_shift(-4,de===K[1]-1?L:de+1)}var xe=function(Ue){for(de+=Ue;ne<de-1;++ne)ee.write_shift(-4,ne+1);Ue&&(++ne,ee.write_shift(-4,L))};for(de=ne=0,de+=K[1];ne<de;++ne)ee.write_shift(-4,N.DIFSECT);for(de+=K[2];ne<de;++ne)ee.write_shift(-4,N.FATSECT);xe(K[3]),xe(K[4]);for(var ce=0,me=0,ge=G.FileIndex[0];ce<G.FileIndex.length;++ce)ge=G.FileIndex[ce],ge.content&&(me=ge.content.length,!(me<4096)&&(ge.start=de,xe(me+511>>9)));for(xe(K[6]+7>>3);ee.l&511;)ee.write_shift(-4,N.ENDOFCHAIN);for(de=ne=0,ce=0;ce<G.FileIndex.length;++ce)ge=G.FileIndex[ce],ge.content&&(me=ge.content.length,!(!me||me>=4096)&&(ge.start=de,xe(me+63>>6)));for(;ee.l&511;)ee.write_shift(-4,N.ENDOFCHAIN);for(ne=0;ne<K[4]<<2;++ne){var Te=G.FullPaths[ne];if(!Te||Te.length===0){for(ce=0;ce<17;++ce)ee.write_shift(4,0);for(ce=0;ce<3;++ce)ee.write_shift(4,-1);for(ce=0;ce<12;++ce)ee.write_shift(4,0);continue}ge=G.FileIndex[ne],ne===0&&(ge.start=ge.size?ge.start-1:L);var Re=ne===0&&W.root||ge.name;if(me=2*(Re.length+1),ee.write_shift(64,Re,"utf16le"),ee.write_shift(2,me),ee.write_shift(1,ge.type),ee.write_shift(1,ge.color),ee.write_shift(-4,ge.L),ee.write_shift(-4,ge.R),ee.write_shift(-4,ge.C),ge.clsid)ee.write_shift(16,ge.clsid,"hex");else for(ce=0;ce<4;++ce)ee.write_shift(4,0);ee.write_shift(4,ge.state||0),ee.write_shift(4,0),ee.write_shift(4,0),ee.write_shift(4,0),ee.write_shift(4,0),ee.write_shift(4,ge.start),ee.write_shift(4,ge.size),ee.write_shift(4,0)}for(ne=1;ne<G.FileIndex.length;++ne)if(ge=G.FileIndex[ne],ge.size>=4096)if(ee.l=ge.start+1<<9,bt&&Buffer.isBuffer(ge.content))ge.content.copy(ee,ee.l,0,ge.size),ee.l+=ge.size+511&-512;else{for(ce=0;ce<ge.size;++ce)ee.write_shift(1,ge.content[ce]);for(;ce&511;++ce)ee.write_shift(1,0)}for(ne=1;ne<G.FileIndex.length;++ne)if(ge=G.FileIndex[ne],ge.size>0&&ge.size<4096)if(bt&&Buffer.isBuffer(ge.content))ge.content.copy(ee,ee.l,0,ge.size),ee.l+=ge.size+63&-64;else{for(ce=0;ce<ge.size;++ce)ee.write_shift(1,ge.content[ce]);for(;ce&63;++ce)ee.write_shift(1,0)}if(bt)ee.l=ee.length;else for(;ee.l<ee.length;)ee.write_shift(1,0);return ee}function P(G,I){var W=G.FullPaths.map(function(ce){return ce.toUpperCase()}),K=W.map(function(ce){var me=ce.split("/");return me[me.length-(ce.slice(-1)=="/"?2:1)]}),ee=!1;I.charCodeAt(0)===47?(ee=!0,I=W[0].slice(0,-1)+I):ee=I.indexOf("/")!==-1;var ne=I.toUpperCase(),de=ee===!0?W.indexOf(ne):K.indexOf(ne);if(de!==-1)return G.FileIndex[de];var xe=!ne.match(Oc);for(ne=ne.replace(tn,""),xe&&(ne=ne.replace(Oc,"!")),de=0;de<W.length;++de)if((xe?W[de].replace(Oc,"!"):W[de]).replace(tn,"")==ne||(xe?K[de].replace(Oc,"!"):K[de]).replace(tn,"")==ne)return G.FileIndex[de];return null}var j=64,L=-2,B="d0cf11e0a1b11ae1",U=[208,207,17,224,161,177,26,225],O="00000000000000000000000000000000",N={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:L,FREESECT:-1,HEADER_SIGNATURE:B,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:O,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function V(G,I,W){c();var K=F(G,W);l.writeFileSync(I,K)}function M(G){for(var I=new Array(G.length),W=0;W<G.length;++W)I[W]=String.fromCharCode(G[W]);return I.join("")}function q(G,I){var W=F(G,I);switch(I&&I.type||"buffer"){case"file":return c(),l.writeFileSync(I.filename,W),W;case"binary":return typeof W=="string"?W:M(W);case"base64":return Cc(typeof W=="string"?W:M(W));case"buffer":if(bt)return Buffer.isBuffer(W)?W:ji(W);case"array":return typeof W=="string"?Gn(W):W}return W}var Y;function z(G){try{var I=G.InflateRaw,W=new I;if(W._processChunk(new Uint8Array([3,0]),W._finishFlushFlag),W.bytesRead)Y=G;else throw new Error("zlib does not expose bytesRead")}catch(K){console.error("cannot use native zlib: "+(K.message||K))}}function re(G,I){if(!Y)return Es(G,I);var W=Y.InflateRaw,K=new W,ee=K._processChunk(G.slice(G.l),K._finishFlushFlag);return G.l+=K.bytesRead,ee}function J(G){return Y?Y.deflateRawSync(G):dt(G)}var te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],oe=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ue=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function ve(G){var I=(G<<1|G<<11)&139536|(G<<5|G<<15)&558144;return(I>>16|I>>8|I)&255}for(var _e=typeof Uint8Array<"u",ye=_e?new Uint8Array(256):[],je=0;je<256;++je)ye[je]=ve(je);function Z(G,I){var W=ye[G&255];return I<=8?W>>>8-I:(W=W<<8|ye[G>>8&255],I<=16?W>>>16-I:(W=W<<8|ye[G>>16&255],W>>>24-I))}function Ge(G,I){var W=I&7,K=I>>>3;return(G[K]|(W<=6?0:G[K+1]<<8))>>>W&3}function Ae(G,I){var W=I&7,K=I>>>3;return(G[K]|(W<=5?0:G[K+1]<<8))>>>W&7}function ze(G,I){var W=I&7,K=I>>>3;return(G[K]|(W<=4?0:G[K+1]<<8))>>>W&15}function qe(G,I){var W=I&7,K=I>>>3;return(G[K]|(W<=3?0:G[K+1]<<8))>>>W&31}function Pe(G,I){var W=I&7,K=I>>>3;return(G[K]|(W<=1?0:G[K+1]<<8))>>>W&127}function ut(G,I,W){var K=I&7,ee=I>>>3,ne=(1<<W)-1,de=G[ee]>>>K;return W<8-K||(de|=G[ee+1]<<8-K,W<16-K)||(de|=G[ee+2]<<16-K,W<24-K)||(de|=G[ee+3]<<24-K),de&ne}function Ye(G,I,W){var K=I&7,ee=I>>>3;return K<=5?G[ee]|=(W&7)<<K:(G[ee]|=W<<K&255,G[ee+1]=(W&7)>>8-K),I+3}function it(G,I,W){var K=I&7,ee=I>>>3;return W=(W&1)<<K,G[ee]|=W,I+1}function ht(G,I,W){var K=I&7,ee=I>>>3;return W<<=K,G[ee]|=W&255,W>>>=8,G[ee+1]=W,I+8}function ir(G,I,W){var K=I&7,ee=I>>>3;return W<<=K,G[ee]|=W&255,W>>>=8,G[ee+1]=W&255,G[ee+2]=W>>>8,I+16}function Fr(G,I){var W=G.length,K=2*W>I?2*W:I+5,ee=0;if(W>=I)return G;if(bt){var ne=DS(K);if(G.copy)G.copy(ne);else for(;ee<G.length;++ee)ne[ee]=G[ee];return ne}else if(_e){var de=new Uint8Array(K);if(de.set)de.set(G);else for(;ee<W;++ee)de[ee]=G[ee];return de}return G.length=K,G}function Xr(G){for(var I=new Array(G),W=0;W<G;++W)I[W]=0;return I}function Hr(G,I,W){var K=1,ee=0,ne=0,de=0,xe=0,ce=G.length,me=_e?new Uint16Array(32):Xr(32);for(ne=0;ne<32;++ne)me[ne]=0;for(ne=ce;ne<W;++ne)G[ne]=0;ce=G.length;var ge=_e?new Uint16Array(ce):Xr(ce);for(ne=0;ne<ce;++ne)me[ee=G[ne]]++,K<ee&&(K=ee),ge[ne]=0;for(me[0]=0,ne=1;ne<=K;++ne)me[ne+16]=xe=xe+me[ne-1]<<1;for(ne=0;ne<ce;++ne)xe=G[ne],xe!=0&&(ge[ne]=me[xe+16]++);var Te=0;for(ne=0;ne<ce;++ne)if(Te=G[ne],Te!=0)for(xe=Z(ge[ne],K)>>K-Te,de=(1<<K+4-Te)-1;de>=0;--de)I[xe|de<<Te]=Te&15|ne<<4;return K}var Jn=_e?new Uint16Array(512):Xr(512),Dn=_e?new Uint16Array(32):Xr(32);if(!_e){for(var ur=0;ur<512;++ur)Jn[ur]=0;for(ur=0;ur<32;++ur)Dn[ur]=0}(function(){for(var G=[],I=0;I<32;I++)G.push(5);Hr(G,Dn,32);var W=[];for(I=0;I<=143;I++)W.push(8);for(;I<=255;I++)W.push(9);for(;I<=279;I++)W.push(7);for(;I<=287;I++)W.push(8);Hr(W,Jn,288)})();var Zr=function(){for(var I=_e?new Uint8Array(32768):[],W=0,K=0;W<ue.length-1;++W)for(;K<ue[W+1];++K)I[K]=W;for(;K<32768;++K)I[K]=29;var ee=_e?new Uint8Array(259):[];for(W=0,K=0;W<oe.length-1;++W)for(;K<oe[W+1];++K)ee[K]=W;function ne(xe,ce){for(var me=0;me<xe.length;){var ge=Math.min(65535,xe.length-me),Te=me+ge==xe.length;for(ce.write_shift(1,+Te),ce.write_shift(2,ge),ce.write_shift(2,~ge&65535);ge-- >0;)ce[ce.l++]=xe[me++]}return ce.l}function de(xe,ce){for(var me=0,ge=0,Te=_e?new Uint16Array(32768):[];ge<xe.length;){var Re=Math.min(65535,xe.length-ge);if(Re<10){for(me=Ye(ce,me,+(ge+Re==xe.length)),me&7&&(me+=8-(me&7)),ce.l=me/8|0,ce.write_shift(2,Re),ce.write_shift(2,~Re&65535);Re-- >0;)ce[ce.l++]=xe[ge++];me=ce.l*8;continue}me=Ye(ce,me,+(ge+Re==xe.length)+2);for(var Ue=0;Re-- >0;){var De=xe[ge];Ue=(Ue<<5^De)&32767;var Ie=-1,st=0;if((Ie=Te[Ue])&&(Ie|=ge&-32768,Ie>ge&&(Ie-=32768),Ie<ge))for(;xe[Ie+st]==xe[ge+st]&&st<250;)++st;if(st>2){De=ee[st],De<=22?me=ht(ce,me,ye[De+1]>>1)-1:(ht(ce,me,3),me+=5,ht(ce,me,ye[De-23]>>5),me+=3);var Xt=De<8?0:De-4>>2;Xt>0&&(ir(ce,me,st-oe[De]),me+=Xt),De=I[ge-Ie],me=ht(ce,me,ye[De]>>3),me-=3;var Zt=De<4?0:De-2>>1;Zt>0&&(ir(ce,me,ge-Ie-ue[De]),me+=Zt);for(var Nr=0;Nr<st;++Nr)Te[Ue]=ge&32767,Ue=(Ue<<5^xe[ge])&32767,++ge;Re-=st-1}else De<=143?De=De+48:me=it(ce,me,1),me=ht(ce,me,ye[De]),Te[Ue]=ge&32767,++ge}me=ht(ce,me,0)-1}return ce.l=(me+7)/8|0,ce.l}return function(ce,me){return ce.length<8?ne(ce,me):de(ce,me)}}();function dt(G){var I=Se(50+Math.floor(G.length*1.1)),W=Zr(G,I);return I.slice(0,W)}var Kt=_e?new Uint16Array(32768):Xr(32768),zr=_e?new Uint16Array(32768):Xr(32768),sr=_e?new Uint16Array(128):Xr(128),Qn=1,Ts=1;function Po(G,I){var W=qe(G,I)+257;I+=5;var K=qe(G,I)+1;I+=5;var ee=ze(G,I)+4;I+=4;for(var ne=0,de=_e?new Uint8Array(19):Xr(19),xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ce=1,me=_e?new Uint8Array(8):Xr(8),ge=_e?new Uint8Array(8):Xr(8),Te=de.length,Re=0;Re<ee;++Re)de[te[Re]]=ne=Ae(G,I),ce<ne&&(ce=ne),me[ne]++,I+=3;var Ue=0;for(me[0]=0,Re=1;Re<=ce;++Re)ge[Re]=Ue=Ue+me[Re-1]<<1;for(Re=0;Re<Te;++Re)(Ue=de[Re])!=0&&(xe[Re]=ge[Ue]++);var De=0;for(Re=0;Re<Te;++Re)if(De=de[Re],De!=0){Ue=ye[xe[Re]]>>8-De;for(var Ie=(1<<7-De)-1;Ie>=0;--Ie)sr[Ue|Ie<<De]=De&7|Re<<3}var st=[];for(ce=1;st.length<W+K;)switch(Ue=sr[Pe(G,I)],I+=Ue&7,Ue>>>=3){case 16:for(ne=3+Ge(G,I),I+=2,Ue=st[st.length-1];ne-- >0;)st.push(Ue);break;case 17:for(ne=3+Ae(G,I),I+=3;ne-- >0;)st.push(0);break;case 18:for(ne=11+Pe(G,I),I+=7;ne-- >0;)st.push(0);break;default:st.push(Ue),ce<Ue&&(ce=Ue);break}var Xt=st.slice(0,W),Zt=st.slice(W);for(Re=W;Re<286;++Re)Xt[Re]=0;for(Re=K;Re<30;++Re)Zt[Re]=0;return Qn=Hr(Xt,Kt,286),Ts=Hr(Zt,zr,30),I}function Do(G,I){if(G[0]==3&&!(G[1]&3))return[hs(I),2];for(var W=0,K=0,ee=DS(I||1<<18),ne=0,de=ee.length>>>0,xe=0,ce=0;!(K&1);){if(K=Ae(G,W),W+=3,K>>>1)K>>1==1?(xe=9,ce=5):(W=Po(G,W),xe=Qn,ce=Ts);else{W&7&&(W+=8-(W&7));var me=G[W>>>3]|G[(W>>>3)+1]<<8;if(W+=32,me>0)for(!I&&de<ne+me&&(ee=Fr(ee,ne+me),de=ee.length);me-- >0;)ee[ne++]=G[W>>>3],W+=8;continue}for(;;){!I&&de<ne+32767&&(ee=Fr(ee,ne+32767),de=ee.length);var ge=ut(G,W,xe),Te=K>>>1==1?Jn[ge]:Kt[ge];if(W+=Te&15,Te>>>=4,!(Te>>>8&255))ee[ne++]=Te;else{if(Te==256)break;Te-=257;var Re=Te<8?0:Te-4>>2;Re>5&&(Re=0);var Ue=ne+oe[Te];Re>0&&(Ue+=ut(G,W,Re),W+=Re),ge=ut(G,W,ce),Te=K>>>1==1?Dn[ge]:zr[ge],W+=Te&15,Te>>>=4;var De=Te<4?0:Te-2>>1,Ie=ue[Te];for(De>0&&(Ie+=ut(G,W,De),W+=De),!I&&de<Ue&&(ee=Fr(ee,Ue+100),de=ee.length);ne<Ue;)ee[ne]=ee[ne-Ie],++ne}}}return I?[ee,W+7>>>3]:[ee.slice(0,ne),W+7>>>3]}function Es(G,I){var W=G.slice(G.l||0),K=Do(W,I);return G.l+=K[1],K[0]}function Ro(G,I){if(G)typeof console<"u"&&console.error(I);else throw new Error(I)}function Va(G,I){var W=G;Gr(W,0);var K=[],ee=[],ne={FileIndex:K,FullPaths:ee};S(ne,{root:I.root});for(var de=W.length-4;(W[de]!=80||W[de+1]!=75||W[de+2]!=5||W[de+3]!=6)&&de>=0;)--de;W.l=de+4,W.l+=4;var xe=W.read_shift(2);W.l+=6;var ce=W.read_shift(4);for(W.l=ce,de=0;de<xe;++de){W.l+=20;var me=W.read_shift(4),ge=W.read_shift(4),Te=W.read_shift(2),Re=W.read_shift(2),Ue=W.read_shift(2);W.l+=8;var De=W.read_shift(4),Ie=o(W.slice(W.l+Te,W.l+Te+Re));W.l+=Te+Re+Ue;var st=W.l;W.l=De+4,Cs(W,me,ge,ne,Ie),W.l=st}return ne}function Cs(G,I,W,K,ee){G.l+=2;var ne=G.read_shift(2),de=G.read_shift(2),xe=s(G);if(ne&8257)throw new Error("Unsupported ZIP encryption");for(var ce=G.read_shift(4),me=G.read_shift(4),ge=G.read_shift(4),Te=G.read_shift(2),Re=G.read_shift(2),Ue="",De=0;De<Te;++De)Ue+=String.fromCharCode(G[G.l++]);if(Re){var Ie=o(G.slice(G.l,G.l+Re));(Ie[21589]||{}).mt&&(xe=Ie[21589].mt),((ee||{})[21589]||{}).mt&&(xe=ee[21589].mt)}G.l+=Re;var st=G.slice(G.l,G.l+me);switch(de){case 8:st=re(G,ge);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+de)}var Xt=!1;ne&8&&(ce=G.read_shift(4),ce==134695760&&(ce=G.read_shift(4),Xt=!0),me=G.read_shift(4),ge=G.read_shift(4)),me!=I&&Ro(Xt,"Bad compressed size: "+I+" != "+me),ge!=W&&Ro(Xt,"Bad uncompressed size: "+W+" != "+ge),Fs(K,Ue,st,{unsafe:!0,mt:xe})}function As(G,I){var W=I||{},K=[],ee=[],ne=Se(1),de=W.compression?8:0,xe=0,ce=0,me=0,ge=0,Te=0,Re=G.FullPaths[0],Ue=Re,De=G.FileIndex[0],Ie=[],st=0;for(ce=1;ce<G.FullPaths.length;++ce)if(Ue=G.FullPaths[ce].slice(Re.length),De=G.FileIndex[ce],!(!De.size||!De.content||Ue=="Sh33tJ5")){var Xt=ge,Zt=Se(Ue.length);for(me=0;me<Ue.length;++me)Zt.write_shift(1,Ue.charCodeAt(me)&127);Zt=Zt.slice(0,Zt.l),Ie[Te]=NL.buf(De.content,0);var Nr=De.content;de==8&&(Nr=J(Nr)),ne=Se(30),ne.write_shift(4,67324752),ne.write_shift(2,20),ne.write_shift(2,xe),ne.write_shift(2,de),De.mt?i(ne,De.mt):ne.write_shift(4,0),ne.write_shift(-4,Ie[Te]),ne.write_shift(4,Nr.length),ne.write_shift(4,De.content.length),ne.write_shift(2,Zt.length),ne.write_shift(2,0),ge+=ne.length,K.push(ne),ge+=Zt.length,K.push(Zt),ge+=Nr.length,K.push(Nr),ne=Se(46),ne.write_shift(4,33639248),ne.write_shift(2,0),ne.write_shift(2,20),ne.write_shift(2,xe),ne.write_shift(2,de),ne.write_shift(4,0),ne.write_shift(-4,Ie[Te]),ne.write_shift(4,Nr.length),ne.write_shift(4,De.content.length),ne.write_shift(2,Zt.length),ne.write_shift(2,0),ne.write_shift(2,0),ne.write_shift(2,0),ne.write_shift(2,0),ne.write_shift(4,0),ne.write_shift(4,Xt),st+=ne.l,ee.push(ne),st+=Zt.length,ee.push(Zt),++Te}return ne=Se(22),ne.write_shift(4,101010256),ne.write_shift(2,0),ne.write_shift(2,0),ne.write_shift(2,Te),ne.write_shift(2,Te),ne.write_shift(4,st),ne.write_shift(4,ge),ne.write_shift(2,0),Lr([Lr(K),Lr(ee),ne])}var Vi={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function of(G,I){if(G.ctype)return G.ctype;var W=G.name||"",K=W.match(/\.([^\.]+)$/);return K&&Vi[K[1]]||I&&(K=(W=I).match(/[\.\\]([^\.\\])+$/),K&&Vi[K[1]])?Vi[K[1]]:"application/octet-stream"}function jl(G){for(var I=Cc(G),W=[],K=0;K<I.length;K+=76)W.push(I.slice(K,K+76));return W.join(`\r
367
+ `)+`\r
368
+ `}function lf(G){var I=G.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(me){var ge=me.charCodeAt(0).toString(16).toUpperCase();return"="+(ge.length==1?"0"+ge:ge)});I=I.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),I.charAt(0)==`
369
+ `&&(I="=0D"+I.slice(1)),I=I.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
370
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var W=[],K=I.split(`\r
371
+ `),ee=0;ee<K.length;++ee){var ne=K[ee];if(ne.length==0){W.push("");continue}for(var de=0;de<ne.length;){var xe=76,ce=ne.slice(de,de+xe);ce.charAt(xe-1)=="="?xe--:ce.charAt(xe-2)=="="?xe-=2:ce.charAt(xe-3)=="="&&(xe-=3),ce=ne.slice(de,de+xe),de+=xe,de<ne.length&&(ce+="="),W.push(ce)}}return W.join(`\r
372
+ `)}function No(G){for(var I=[],W=0;W<G.length;++W){for(var K=G[W];W<=G.length&&K.charAt(K.length-1)=="=";)K=K.slice(0,K.length-1)+G[++W];I.push(K)}for(var ee=0;ee<I.length;++ee)I[ee]=I[ee].replace(/[=][0-9A-Fa-f]{2}/g,function(ne){return String.fromCharCode(parseInt(ne.slice(1),16))});return Gn(I.join(`\r
373
+ `))}function Ul(G,I,W){for(var K="",ee="",ne="",de,xe=0;xe<10;++xe){var ce=I[xe];if(!ce||ce.match(/^\s*$/))break;var me=ce.match(/^(.*?):\s*([^\s].*)$/);if(me)switch(me[1].toLowerCase()){case"content-location":K=me[2].trim();break;case"content-type":ne=me[2].trim();break;case"content-transfer-encoding":ee=me[2].trim();break}}switch(++xe,ee.toLowerCase()){case"base64":de=Gn(Yn(I.slice(xe).join("")));break;case"quoted-printable":de=No(I.slice(xe));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+ee)}var ge=Fs(G,K.slice(W.length),de,{unsafe:!0});ne&&(ge.ctype=ne)}function uf(G,I){if(M(G.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var W=I&&I.root||"",K=(bt&&Buffer.isBuffer(G)?G.toString("binary"):M(G)).split(`\r
374
+ `),ee=0,ne="";for(ee=0;ee<K.length;++ee)if(ne=K[ee],!!/^Content-Location:/i.test(ne)&&(ne=ne.slice(ne.indexOf("file")),W||(W=ne.slice(0,ne.lastIndexOf("/")+1)),ne.slice(0,W.length)!=W))for(;W.length>0&&(W=W.slice(0,W.length-1),W=W.slice(0,W.lastIndexOf("/")+1),ne.slice(0,W.length)!=W););var de=(K[1]||"").match(/boundary="(.*?)"/);if(!de)throw new Error("MAD cannot find boundary");var xe="--"+(de[1]||""),ce=[],me=[],ge={FileIndex:ce,FullPaths:me};S(ge);var Te,Re=0;for(ee=0;ee<K.length;++ee){var Ue=K[ee];Ue!==xe&&Ue!==xe+"--"||(Re++&&Ul(ge,K.slice(Te,ee),W),Te=ee)}return ge}function cf(G,I){var W=I||{},K=W.boundary||"SheetJS";K="------="+K;for(var ee=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+K.slice(2)+'"',"","",""],ne=G.FullPaths[0],de=ne,xe=G.FileIndex[0],ce=1;ce<G.FullPaths.length;++ce)if(de=G.FullPaths[ce].slice(ne.length),xe=G.FileIndex[ce],!(!xe.size||!xe.content||de=="Sh33tJ5")){de=de.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(st){return"_x"+st.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(st){return"_u"+st.charCodeAt(0).toString(16)+"_"});for(var me=xe.content,ge=bt&&Buffer.isBuffer(me)?me.toString("binary"):M(me),Te=0,Re=Math.min(1024,ge.length),Ue=0,De=0;De<=Re;++De)(Ue=ge.charCodeAt(De))>=32&&Ue<128&&++Te;var Ie=Te>=Re*4/5;ee.push(K),ee.push("Content-Location: "+(W.root||"file:///C:/SheetJS/")+de),ee.push("Content-Transfer-Encoding: "+(Ie?"quoted-printable":"base64")),ee.push("Content-Type: "+of(xe,de)),ee.push(""),ee.push(Ie?lf(ge):jl(ge))}return ee.push(K+`--\r
375
+ `),ee.join(`\r
376
+ `)}function Os(G){var I={};return S(I,G),I}function Fs(G,I,W,K){var ee=K&&K.unsafe;ee||S(G);var ne=!ee&&Xe.find(G,I);if(!ne){var de=G.FullPaths[0];I.slice(0,de.length)==de?de=I:(de.slice(-1)!="/"&&(de+="/"),de=(de+I).replace("//","/")),ne={name:a(I),type:2},G.FileIndex.push(ne),G.FullPaths.push(de),ee||Xe.utils.cfb_gc(G)}return ne.content=W,ne.size=W?W.length:0,K&&(K.CLSID&&(ne.clsid=K.CLSID),K.mt&&(ne.mt=K.mt),K.ct&&(ne.ct=K.ct)),ne}function Mo(G,I){S(G);var W=Xe.find(G,I);if(W){for(var K=0;K<G.FileIndex.length;++K)if(G.FileIndex[K]==W)return G.FileIndex.splice(K,1),G.FullPaths.splice(K,1),!0}return!1}function ff(G,I,W){S(G);var K=Xe.find(G,I);if(K){for(var ee=0;ee<G.FileIndex.length;++ee)if(G.FileIndex[ee]==K)return G.FileIndex[ee].name=a(W),G.FullPaths[ee]=W,!0}return!1}function df(G){k(G,!0)}return t.find=P,t.read=x,t.parse=d,t.write=q,t.writeFile=V,t.utils={cfb_new:Os,cfb_add:Fs,cfb_del:Mo,cfb_mov:ff,cfb_gc:df,ReadShift:Lc,CheckField:F3,prep_blob:Gr,bconcat:Lr,use_zlib:z,_deflateRaw:dt,_inflateRaw:Es,consts:N},t}();let vs;function ML(e){vs=e}function IL(e){return typeof e=="string"?Ac(e):Array.isArray(e)?oL(e):e}function Dc(e,t,r){if(typeof vs<"u"&&vs.writeFileSync)return r?vs.writeFileSync(e,t,r):vs.writeFileSync(e,t);if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=Ac(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?oi(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([IL(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var o=File(e);return o.open("w"),o.encoding="binary",Array.isArray(t)&&(t=ps(t)),o.write(t),o.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function LL(e){if(typeof vs<"u")return vs.readFileSync(e);if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}function pr(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function JS(e,t){for(var r=[],n=pr(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function Wd(e){for(var t=[],r=pr(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function $d(e){for(var t=[],r=pr(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function BL(e){for(var t=[],r=pr(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var Vd=new Date(1899,11,30,0,0,0);function Dr(e,t){var r=e.getTime(),n=Vd.getTime()+(e.getTimezoneOffset()-Vd.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var QS=new Date,jL=Vd.getTime()+(QS.getTimezoneOffset()-Vd.getTimezoneOffset())*6e4,e3=QS.getTimezoneOffset();function qd(e){var t=new Date;return t.setTime(e*24*60*60*1e3+jL),t.getTimezoneOffset()!==e3&&t.setTime(t.getTime()+(t.getTimezoneOffset()-e3)*6e4),t}function UL(e){var t=0,r=0,n=!1,a=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!a)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=a.length;++i)if(a[i]){switch(r=1,i>3&&(n=!0),a[i].slice(a[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[i].slice(a[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(a[i],10)}return t}var t3=new Date("2017-02-19T19:06:09.000Z"),r3=isNaN(t3.getFullYear())?new Date("2/19/17"):t3,HL=r3.getFullYear()==2017;function rr(e,t){var r=new Date(e);if(HL)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(r3.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function go(e,t){if(bt&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return oi(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return oi(PS(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return oi(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return oi(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function Gt(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Gt(e[r]));return t}function gr(e,t){for(var r="";r.length<t;)r+=e;return r}function za(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(t=Number(n)))?t/r:t}var zL=["january","february","march","april","may","june","july","august","september","october","november","december"];function Tl(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&zL.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var WL=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,a){if(e||typeof n=="string")return r.split(n);for(var i=r.split(n),s=[i[0]],o=1;o<i.length;++o)s.push(a),s.push(i[o]);return s}}();function n3(e){return e?e.content&&e.type?go(e.content,!0):e.data?wl(e.data):e.asNodeBuffer&&bt?wl(e.asNodeBuffer().toString("binary")):e.asBinary?wl(e.asBinary()):e._data&&e._data.getContent?wl(go(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function a3(e){if(!e)return null;if(e.data)return jd(e.data);if(e.asNodeBuffer&&bt)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return typeof t=="string"?jd(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function $L(e){return e&&e.name.slice(-4)===".bin"?a3(e):n3(e)}function ga(e,t){for(var r=e.FullPaths||pr(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),a=n.replace(/\\/g,"/"),i=0;i<r.length;++i){var s=r[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==s||a==s)return e.files?e.files[r[i]]:e.FileIndex[i]}return null}function C1(e,t){var r=ga(e,t);if(r==null)throw new Error("Cannot find file "+t+" in zip");return r}function Cr(e,t,r){if(!r)return $L(C1(e,t));if(!t)return null;try{return Cr(e,t)}catch{return null}}function Xn(e,t,r){if(!r)return n3(C1(e,t));if(!t)return null;try{return Xn(e,t)}catch{return null}}function VL(e,t,r){return a3(C1(e,t))}function i3(e){for(var t=e.FullPaths||pr(e.files),r=[],n=0;n<t.length;++n)t[n].slice(-1)!="/"&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function _t(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return bt?n=ji(r):n=lL(r),Xe.utils.cfb_add(e,t,n)}Xe.utils.cfb_add(e,t,r)}else e.file(t,r)}function A1(){return Xe.utils.cfb_new()}function s3(e,t){switch(t.type){case"base64":return Xe.read(e,{type:"base64"});case"binary":return Xe.read(e,{type:"binary"});case"buffer":case"array":return Xe.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function Rc(e,t){if(e.charAt(0)=="/")return e.slice(1);var r=t.split("/");t.slice(-1)!="/"&&r.pop();for(var n=e.split("/");n.length!==0;){var a=n.shift();a===".."?r.pop():a!=="."&&r.push(a)}return r.join("/")}var br=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
377
+ `,qL=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,o3=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,YL=/<[^>]*>/g,rn=br.match(o3)?o3:YL,GL=/<\w*:/,KL=/<(\/?)\w+:/;function ot(e,t,r){for(var n={},a=0,i=0;a!==e.length&&!((i=e.charCodeAt(a))===32||i===10||i===13);++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var s=e.match(qL),o=0,l="",c=0,d="",p="",g=1;if(s)for(c=0;c!=s.length;++c){for(p=s[c],i=0;i!=p.length&&p.charCodeAt(i)!==61;++i);for(d=p.slice(0,i).trim();p.charCodeAt(i+1)==32;)++i;for(g=(a=p.charCodeAt(i+1))==34||a==39?1:0,l=p.slice(i+1+g,p.length-g),o=0;o!=d.length&&d.charCodeAt(o)!==58;++o);if(o===d.length)d.indexOf("_")>0&&(d=d.slice(0,d.indexOf("_"))),n[d]=l,n[d.toLowerCase()]=l;else{var v=(o===5&&d.slice(0,5)==="xmlns"?"xmlns":"")+d.slice(o+1);if(n[v]&&d.slice(o-3,o)=="ext")continue;n[v]=l,n[v.toLowerCase()]=l}}return n}function si(e){return e.replace(KL,"<$1")}var l3={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},O1=Wd(l3),Rt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var a=n+"",i=a.indexOf("<![CDATA[");if(i==-1)return a.replace(e,function(o,l){return l3[o]||String.fromCharCode(parseInt(l,o.indexOf("x")>-1?16:10))||o}).replace(t,function(o,l){return String.fromCharCode(parseInt(l,16))});var s=a.indexOf("]]>");return r(a.slice(0,i))+a.slice(i+9,s)+r(a.slice(s+3))}}(),F1=/[&<>'"]/g,XL=/[\u0000-\u0008\u000b-\u001f]/g;function zt(e){var t=e+"";return t.replace(F1,function(r){return O1[r]}).replace(XL,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function u3(e){return zt(e).replace(/ /g,"_x0020_")}var c3=/[\u0000-\u001f]/g;function P1(e){var t=e+"";return t.replace(F1,function(r){return O1[r]}).replace(/\n/g,"<br/>").replace(c3,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function ZL(e){var t=e+"";return t.replace(F1,function(r){return O1[r]}).replace(c3,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var f3=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function JL(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function nr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function D1(e){for(var t="",r=0,n=0,a=0,i=0,s=0,o=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),o=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(o&1023))}return t}function d3(e){var t=hs(2*e.length),r,n,a=1,i=0,s=0,o;for(n=0;n<e.length;n+=a)a=1,(o=e.charCodeAt(n))<128?r=o:o<224?(r=(o&31)*64+(e.charCodeAt(n+1)&63),a=2):o<240?(r=(o&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(o&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function h3(e){return ji(e,"binary").toString("utf8")}var Yd="foo bar baz☃🍣",Yt=bt&&(h3(Yd)==D1(Yd)&&h3||d3(Yd)==D1(Yd)&&d3)||D1,oi=bt?function(e){return ji(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},Nc=function(){var e={};return function(r,n){var a=r+"|"+(n||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}}(),p3=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
378
+ `).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),QL=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),e7=/<\/?(?:vt:)?variant>/g,t7=/<(?:vt:)([^>]*)>([\s\S]*)</;function g3(e,t){var r=ot(e),n=e.match(QL(r.baseType))||[],a=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return a}return n.forEach(function(i){var s=i.replace(e7,"").match(t7);s&&a.push({v:Yt(s[2]),t:s[1]})}),a}var m3=/(^\s|\s$|\n)/;function Yr(e,t){return"<"+e+(t.match(m3)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Mc(e){return pr(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Le(e,t,r){return"<"+e+(r!=null?Mc(r):"")+(t!=null?(t.match(m3)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function R1(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function r7(e,t){switch(typeof e){case"string":var r=Le("vt:lpwstr",zt(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return Le((e|0)==e?"vt:i4":"vt:r8",zt(String(e)));case"boolean":return Le("vt:bool",e?"true":"false")}if(e instanceof Date)return Le("vt:filetime",R1(e));throw new Error("Unable to serialize "+e)}function N1(e){if(bt&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Yt(ps(S1(e)));throw new Error("Bad input format: expected Buffer or string")}var Ic=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Rr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},mo=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Zn={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function n7(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function a7(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var o=0;o<=5;++o,i/=256)e[r+o]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var v3=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},x3=bt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:ji(t)})):v3(e)}:v3,_3=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(Hi(e,a)));return n.join("").replace(tn,"")},Gd=bt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(tn,""):_3(e,t,r)}:_3,y3=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},w3=bt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):y3(e,t,r)}:y3,b3=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(Cl(e,a)));return n.join("")},El=bt?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):b3(t,r,n)}:b3,S3=function(e,t){var r=Br(e,t);return r>0?El(e,t+4,t+4+r-1):""},M1=S3,k3=function(e,t){var r=Br(e,t);return r>0?El(e,t+4,t+4+r-1):""},I1=k3,T3=function(e,t){var r=2*Br(e,t);return r>0?El(e,t+4,t+4+r-1):""},L1=T3,E3=function(t,r){var n=Br(t,r);return n>0?Gd(t,r+4,r+4+n):""},B1=E3,C3=function(e,t){var r=Br(e,t);return r>0?El(e,t+4,t+4+r):""},j1=C3,A3=function(e,t){return n7(e,t)},Kd=A3,U1=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};bt&&(M1=function(t,r){if(!Buffer.isBuffer(t))return S3(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},I1=function(t,r){if(!Buffer.isBuffer(t))return k3(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},L1=function(t,r){if(!Buffer.isBuffer(t))return T3(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},B1=function(t,r){if(!Buffer.isBuffer(t))return E3(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},j1=function(t,r){if(!Buffer.isBuffer(t))return C3(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Kd=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):A3(t,r)},U1=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});function O3(){Gd=function(e,t,r){return Dt.utils.decode(1200,e.slice(t,r)).replace(tn,"")},El=function(e,t,r){return Dt.utils.decode(65001,e.slice(t,r))},M1=function(e,t){var r=Br(e,t);return r>0?Dt.utils.decode(fo,e.slice(t+4,t+4+r-1)):""},I1=function(e,t){var r=Br(e,t);return r>0?Dt.utils.decode(qn,e.slice(t+4,t+4+r-1)):""},L1=function(e,t){var r=2*Br(e,t);return r>0?Dt.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},B1=function(e,t){var r=Br(e,t);return r>0?Dt.utils.decode(1200,e.slice(t+4,t+4+r)):""},j1=function(e,t){var r=Br(e,t);return r>0?Dt.utils.decode(65001,e.slice(t+4,t+4+r)):""}}typeof Dt<"u"&&O3();var Cl=function(e,t){return e[t]},Hi=function(e,t){return e[t+1]*256+e[t]},i7=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Br=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},vo=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},s7=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Lc(e,t){var r="",n,a,i=[],s,o,l,c;switch(t){case"dbcs":if(c=this.l,bt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Hi(this,c)),c+=2;e*=2;break;case"utf8":r=El(this,this.l,this.l+e);break;case"utf16le":e*=2,r=Gd(this,this.l,this.l+e);break;case"wstr":if(typeof Dt<"u")r=Dt.utils.decode(qn,this.slice(this.l,this.l+2*e));else return Lc.call(this,e,"dbcs");e=2*e;break;case"lpstr-ansi":r=M1(this,this.l),e=4+Br(this,this.l);break;case"lpstr-cp":r=I1(this,this.l),e=4+Br(this,this.l);break;case"lpwstr":r=L1(this,this.l),e=4+2*Br(this,this.l);break;case"lpp4":e=4+Br(this,this.l),r=B1(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Br(this,this.l),r=j1(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(s=Cl(this,this.l+e++))!==0;)i.push(Ec(s));r=i.join("");break;case"_wstr":for(e=0,r="";(s=Hi(this,this.l+e))!==0;)i.push(Ec(s)),e+=2;e+=2,r=i.join("");break;case"dbcs-cont":for(r="",c=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=Cl(this,c),this.l=c+1,o=Lc.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),i.join("")+o;i.push(Ec(Hi(this,c))),c+=2}r=i.join(""),e*=2;break;case"cpstr":if(typeof Dt<"u"){r=Dt.utils.decode(qn,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(r="",c=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=Cl(this,c),this.l=c+1,o=Lc.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),i.join("")+o;i.push(Ec(Cl(this,c))),c+=1}r=i.join("");break;default:switch(e){case 1:return n=Cl(this,this.l),this.l++,n;case 2:return n=(t==="i"?i7:Hi)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?vo:s7)(this,this.l),this.l+=4,n):(a=Br(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=Kd(this,this.l):a=Kd([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=w3(this,this.l,e);break}}return this.l+=e,r}var o7=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},l7=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},u7=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function c7(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)u7(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){if(typeof Dt<"u"&&fo==874)for(a=0;a!=t.length;++a){var i=Dt.utils.encode(fo,t.charAt(a));this[this.l+a]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var s=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var o=t.charCodeAt(a);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<s;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,o7(this,t,this.l);break;case 8:if(n=8,r==="f"){a7(this,t,this.l);break}case 16:break;case-4:n=4,l7(this,t,this.l);break}return this.l+=n,this}function F3(e,t){var r=w3(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Gr(e,t){e.l=t,e.read_shift=Lc,e.chk=F3,e.write_shift=c7}function nn(e,t){e.l+=t}function Se(e){var t=hs(e);return Gr(t,0),t}function zi(e,t,r){if(e){var n,a,i;Gr(e,e.l||0);for(var s=e.length,o=0,l=0;e.l<s;){o=e.read_shift(1),o&128&&(o=(o&127)+((e.read_shift(1)&127)<<7));var c=rf[o]||rf[65535];for(n=e.read_shift(1),i=n&127,a=1;a<4&&n&128;++a)i+=((n=e.read_shift(1))&127)<<7*a;l=e.l+i;var d=c.f&&c.f(e,i,r);if(e.l=l,t(d,c,o))return}}}function Fn(){var e=[],t=bt?256:2048,r=function(c){var d=Se(c);return Gr(d,0),d},n=r(t),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(c){return n&&c<n.length-n.l?n:(a(),n=r(Math.max(c+1,t)))},s=function(){return a(),Lr(e)},o=function(c){a(),n=c,n.l==null&&(n.l=n.length),i(t)};return{next:i,push:o,end:s,_bufs:e}}function Oe(e,t,r,n){var a=+t,i;if(!isNaN(a)){n||(n=rf[a].p||(r||[]).length||0),i=1+(a>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var s=e.next(i);a<=127?s.write_shift(1,a):(s.write_shift(1,(a&127)+128),s.write_shift(1,a>>7));for(var o=0;o!=4;++o)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&U1(r)&&e.push(r)}}function Bc(e,t,r){var n=Gt(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function P3(e,t,r){var n=Gt(e);return n.s=Bc(n.s,t.s,r),n.e=Bc(n.e,t.s,r),n}function jc(e,t){if(e.cRel&&e.c<0)for(e=Gt(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Gt(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=at(e);return!e.cRel&&e.cRel!=null&&(r=h7(r)),!e.rRel&&e.rRel!=null&&(r=f7(r)),r}function H1(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+ar(e.s.c)+":"+(e.e.cRel?"":"$")+ar(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+mr(e.s.r)+":"+(e.e.rRel?"":"$")+mr(e.e.r):jc(e.s,t.biff)+":"+jc(e.e,t.biff)}function z1(e){return parseInt(d7(e),10)-1}function mr(e){return""+(e+1)}function f7(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function d7(e){return e.replace(/\$(\d+)$/,"$1")}function W1(e){for(var t=p7(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function ar(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function h7(e){return e.replace(/^([A-Z])/,"$$$1")}function p7(e){return e.replace(/^\$([A-Z])/,"$1")}function g7(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function fr(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function at(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function yn(e){var t=e.indexOf(":");return t==-1?{s:fr(e),e:fr(e)}:{s:fr(e.slice(0,t)),e:fr(e.slice(t+1))}}function vt(e,t){return typeof t>"u"||typeof t=="number"?vt(e.s,e.e):(typeof e!="string"&&(e=at(e)),typeof t!="string"&&(t=at(t)),e==t?e:e+":"+t)}function At(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n<i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function D3(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Kn(e.z,r?Dr(t):t)}catch{}try{return e.w=Kn((e.XF||{}).numFmtId||(r?14:0),r?Dr(t):t)}catch{return""+t}}function li(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Wi[e.v]||e.v:t==null?D3(e,e.v):D3(e,t))}function xs(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function R3(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),s=0,o=0;if(i&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?fr(n.origin):n.origin;s=l.r,o=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var d=At(i["!ref"]);c.s.c=d.s.c,c.s.r=d.s.r,c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),s==-1&&(c.e.r=s=d.e.r+1)}for(var p=0;p!=t.length;++p)if(t[p]){if(!Array.isArray(t[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var g=0;g!=t[p].length;++g)if(!(typeof t[p][g]>"u")){var v={v:t[p][g]},y=s+p,_=o+g;if(c.s.r>y&&(c.s.r=y),c.s.c>_&&(c.s.c=_),c.e.r<y&&(c.e.r=y),c.e.c<_&&(c.e.c=_),t[p][g]&&typeof t[p][g]=="object"&&!Array.isArray(t[p][g])&&!(t[p][g]instanceof Date))v=t[p][g];else if(Array.isArray(v.v)&&(v.f=t[p][g][1],v.v=v.v[0]),v.v===null)if(v.f)v.t="n";else if(n.nullError)v.t="e",v.v=0;else if(n.sheetStubs)v.t="z";else continue;else typeof v.v=="number"?v.t="n":typeof v.v=="boolean"?v.t="b":v.v instanceof Date?(v.z=n.dateNF||Qe[14],n.cellDates?(v.t="d",v.w=Kn(v.z,Dr(v.v))):(v.t="n",v.v=Dr(v.v),v.w=Kn(v.z,v.v))):v.t="s";if(a)i[y]||(i[y]=[]),i[y][_]&&i[y][_].z&&(v.z=i[y][_].z),i[y][_]=v;else{var C=at({c:_,r:y});i[C]&&i[C].z&&(v.z=i[C].z),i[C]=v}}}return c.s.c<1e7&&(i["!ref"]=vt(c)),i}function Al(e,t){return R3(null,e,t)}function m7(e){return e.read_shift(4,"i")}function Wa(e,t){return t||(t=Se(4)),t.write_shift(4,e),t}function an(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function jr(e,t){var r=!1;return t==null&&(r=!0,t=Se(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function v7(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function x7(e,t){return t||(t=Se(4)),t.write_shift(2,0),t.write_shift(2,0),t}function $1(e,t){var r=e.l,n=e.read_shift(1),a=an(e),i=[],s={t:a,h:a};if(n&1){for(var o=e.read_shift(4),l=0;l!=o;++l)i.push(v7(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function _7(e,t){var r=!1;return t==null&&(r=!0,t=Se(15+4*e.t.length)),t.write_shift(1,0),jr(e.t,t),r?t.slice(0,t.l):t}var y7=$1;function w7(e,t){var r=!1;return t==null&&(r=!0,t=Se(23+4*e.t.length)),t.write_shift(1,1),jr(e.t,t),t.write_shift(4,1),x7({},t),r?t.slice(0,t.l):t}function ma(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function xo(e,t){return t==null&&(t=Se(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function _o(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function yo(e,t){return t==null&&(t=Se(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var b7=an,N3=jr;function V1(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Xd(e,t){var r=!1;return t==null&&(r=!0,t=Se(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var S7=an,q1=V1,Y1=Xd;function G1(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?Kd([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):vo(t,0)>>2;return r?a/100:a}function M3(e,t){t==null&&(t=Se(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:a==(a|0)&&a>=-536870912&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function I3(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function k7(e,t){return t||(t=Se(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var wo=I3,Ol=k7;function sn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function bo(e,t){return(t||Se(8)).write_shift(8,e,"f")}function T7(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),s=e.read_shift(1),o=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var c=So[a];c&&(t.rgb=$c(c));break;case 2:t.rgb=$c([s,o,l]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function Zd(e,t){if(t||(t=Se(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function E7(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function C7(e,t){t||(t=Se(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}function L3(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function A7(e){return L3(e,1)}function O7(e){return L3(e,2)}var K1=2,Pn=3,Jd=11,B3=12,Qd=19,e0=64,F7=65,P7=71,D7=4108,R7=4126,Ur=80,j3=81,N7=[Ur,j3],X1={1:{n:"CodePage",t:K1},2:{n:"Category",t:Ur},3:{n:"PresentationFormat",t:Ur},4:{n:"ByteCount",t:Pn},5:{n:"LineCount",t:Pn},6:{n:"ParagraphCount",t:Pn},7:{n:"SlideCount",t:Pn},8:{n:"NoteCount",t:Pn},9:{n:"HiddenCount",t:Pn},10:{n:"MultimediaClipCount",t:Pn},11:{n:"ScaleCrop",t:Jd},12:{n:"HeadingPairs",t:D7},13:{n:"TitlesOfParts",t:R7},14:{n:"Manager",t:Ur},15:{n:"Company",t:Ur},16:{n:"LinksUpToDate",t:Jd},17:{n:"CharacterCount",t:Pn},19:{n:"SharedDoc",t:Jd},22:{n:"HyperlinksChanged",t:Jd},23:{n:"AppVersion",t:Pn,p:"version"},24:{n:"DigSig",t:F7},26:{n:"ContentType",t:Ur},27:{n:"ContentStatus",t:Ur},28:{n:"Language",t:Ur},29:{n:"Version",t:Ur},255:{},2147483648:{n:"Locale",t:Qd},2147483651:{n:"Behavior",t:Qd},1919054434:{}},Z1={1:{n:"CodePage",t:K1},2:{n:"Title",t:Ur},3:{n:"Subject",t:Ur},4:{n:"Author",t:Ur},5:{n:"Keywords",t:Ur},6:{n:"Comments",t:Ur},7:{n:"Template",t:Ur},8:{n:"LastAuthor",t:Ur},9:{n:"RevNumber",t:Ur},10:{n:"EditTime",t:e0},11:{n:"LastPrinted",t:e0},12:{n:"CreatedDate",t:e0},13:{n:"ModifiedDate",t:e0},14:{n:"PageCount",t:Pn},15:{n:"WordCount",t:Pn},16:{n:"CharCount",t:Pn},17:{n:"Thumbnail",t:P7},18:{n:"Application",t:Ur},19:{n:"DocSecurity",t:Pn},255:{},2147483648:{n:"Locale",t:Qd},2147483651:{n:"Behavior",t:Qd},1919054434:{}},U3={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},M7=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function I7(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var L7=I7([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),So=Gt(L7),Wi={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},H3={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},J1={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},t0={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Q1(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function B7(e){var t=Q1();if(!e||!e.match)return t;var r={};if((e.match(rn)||[]).forEach(function(n){var a=ot(n);switch(a[0].replace(GL,"<")){case"<?xml":break;case"<Types":t.xmlns=a["xmlns"+(a[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[a.Extension]=a.ContentType;break;case"<Override":t[J1[a.ContentType]]!==void 0&&t[J1[a.ContentType]].push(a.PartName);break}}),t.xmlns!==Rr.CT)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function z3(e,t){var r=BL(J1),n=[],a;n[n.length]=br,n[n.length]=Le("Types",null,{xmlns:Rr.CT,"xmlns:xsd":Rr.xsd,"xmlns:xsi":Rr.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Le("Default",null,{Extension:l[0],ContentType:l[1]})}));var i=function(l){e[l]&&e[l].length>0&&(a=e[l][0],n[n.length]=Le("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:t0[l][t.bookType]||t0[l].xlsx}))},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Le("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:t0[l][t.bookType]||t0[l].xlsx})})},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Le("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return i("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var kt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Uc(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Hc(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(rn)||[]).forEach(function(a){var i=ot(a);if(i[0]==="<Relationship"){var s={};s.Type=i.Type,s.Target=i.Target,s.Id=i.Id,i.TargetMode&&(s.TargetMode=i.TargetMode);var o=i.TargetMode==="External"?i.Target:Rc(i.Target,t);r[o]=s,n[i.Id]=s}}),r["!id"]=n,r}function Fl(e){var t=[br,Le("Relationships",null,{xmlns:Rr.RELS})];return pr(e["!id"]).forEach(function(r){t[t.length]=Le("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Wt(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,[kt.HLINK,kt.XPATH,kt.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}var j7="application/vnd.oasis.opendocument.spreadsheet";function U7(e,t){for(var r=N1(e),n,a;n=Ic.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(a=ot(n[0],!1),a.path=="/"&&a.type!==j7)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}function H7(e){var t=[br];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
379
+ `),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
380
+ `);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
381
+ `);return t.push("</manifest:manifest>"),t.join("")}function W3(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
382
+ `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
383
+ `,` </rdf:Description>
384
+ `].join("")}function z7(e,t){return[' <rdf:Description rdf:about="'+e+`">
385
+ `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
386
+ `,` </rdf:Description>
387
+ `].join("")}function W7(e){var t=[br];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
388
+ `);for(var r=0;r!=e.length;++r)t.push(W3(e[r][0],e[r][1])),t.push(z7("",e[r][0]));return t.push(W3("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function $3(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Tc.version+"</meta:generator></office:meta></office:document-meta>"}var va=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],$7=function(){for(var e=new Array(va.length),t=0;t<va.length;++t){var r=va[t],n="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function V3(e){var t={};e=Yt(e);for(var r=0;r<va.length;++r){var n=va[r],a=e.match($7[r]);a!=null&&a.length>0&&(t[n[1]]=Rt(a[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=rr(t[n[1]]))}return t}function em(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=zt(t),n[n.length]=r?Le(e,t,r):Yr(e,t))}function q3(e,t){var r=t||{},n=[br,Le("cp:coreProperties",null,{"xmlns:cp":Rr.CORE_PROPS,"xmlns:dc":Rr.dc,"xmlns:dcterms":Rr.dcterms,"xmlns:dcmitype":Rr.dcmitype,"xmlns:xsi":Rr.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&em("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:R1(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&em("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:R1(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=va.length;++i){var s=va[i],o=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&em(s[0],o,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var ko=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Y3=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function G3(e,t,r,n){var a=[];if(typeof e=="string")a=g3(e,n);else for(var i=0;i<e.length;++i)a=a.concat(e[i].map(function(d){return{v:d}}));var s=typeof t=="string"?g3(t,n).map(function(d){return d.v}):t,o=0,l=0;if(s.length>0)for(var c=0;c!==a.length;c+=2){switch(l=+a[c+1].v,a[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=l,r.SheetNames=s.slice(o,o+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=l,r.DefinedNames=s.slice(o,o+l);break;case"Charts":case"Diagramme":r.Chartsheets=l,r.ChartNames=s.slice(o,o+l);break}o+=l}}function V7(e,t,r){var n={};return t||(t={}),e=Yt(e),ko.forEach(function(a){var i=(e.match(Nc(a[0]))||[])[1];switch(a[2]){case"string":i&&(t[a[1]]=Rt(i));break;case"bool":t[a[1]]=i==="true";break;case"raw":var s=e.match(new RegExp("<"+a[0]+"[^>]*>([\\s\\S]*?)</"+a[0]+">"));s&&s.length>0&&(n[a[1]]=s[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&G3(n.HeadingPairs,n.TitlesOfParts,t,r),t}function K3(e){var t=[],r=Le;return e||(e={}),e.Application="SheetJS",t[t.length]=br,t[t.length]=Le("Properties",null,{xmlns:Rr.EXT_PROPS,"xmlns:vt":Rr.vt}),ko.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=zt(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+zt(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var q7=/<[^>]+>[^<]*/g;function Y7(e,t){var r={},n="",a=e.match(q7);if(a)for(var i=0;i!=a.length;++i){var s=a[i],o=ot(s);switch(o[0]){case"<?xml":break;case"<Properties":break;case"<property":n=Rt(o.name);break;case"</property>":n=null;break;default:if(s.indexOf("<vt:")===0){var l=s.split(">"),c=l[0].slice(4),d=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":r[n]=Rt(d);break;case"bool":r[n]=nr(d);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(d,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(d);break;case"filetime":case"date":r[n]=rr(d);break;case"cy":case"error":r[n]=Rt(d);break;default:if(c.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",s,c,l)}}else if(s.slice(0,2)!=="</"){if(t.WTF)throw new Error(s)}}}return r}function X3(e){var t=[br,Le("Properties",null,{xmlns:Rr.CUST_PROPS,"xmlns:vt":Rr.vt})];if(!e)return t.join("");var r=1;return pr(e).forEach(function(a){++r,t[t.length]=Le("property",r7(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:zt(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var tm={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},rm;function G7(e,t,r){rm||(rm=Wd(tm)),t=rm[t]||t,e[t]=r}function K7(e,t){var r=[];return pr(tm).map(function(n){for(var a=0;a<va.length;++a)if(va[a][1]==n)return va[a];for(a=0;a<ko.length;++a)if(ko[a][1]==n)return ko[a];throw n}).forEach(function(n){if(e[n[1]]!=null){var a=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(Yr(tm[n[1]]||n[1],a))}}),Le("DocumentProperties",r.join(""),{xmlns:Zn.o})}function X7(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return e&&pr(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)){for(var s=0;s<va.length;++s)if(i==va[s][1])return;for(s=0;s<ko.length;++s)if(i==ko[s][1])return;for(s=0;s<r.length;++s)if(i==r[s])return;var o=e[i],l="string";typeof o=="number"?(l="float",o=String(o)):o===!0||o===!1?(l="boolean",o=o?"1":"0"):o=String(o),a.push(Le(u3(i),o,{"dt:dt":l}))}}),t&&pr(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)&&!(e&&Object.prototype.hasOwnProperty.call(e,i))){var s=t[i],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s instanceof Date?(o="dateTime.tz",s=s.toISOString()):s=String(s),a.push(Le(u3(i),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+Zn.o+'">'+a.join("")+"</"+n+">"}function nm(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function Z7(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var s=Se(8);return s.write_shift(4,n),s.write_shift(4,a),s}function Z3(e,t,r){var n=e.l,a=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return a}function J3(e,t,r){var n=e.read_shift(0,"lpwstr");return n}function Q3(e,t,r){return t===31?J3(e):Z3(e,t,r)}function am(e,t,r){return Q3(e,t,r===!1?0:4)}function J7(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return Q3(e,t,0)}function Q7(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var a=e.l;r[n]=e.read_shift(0,"lpwstr").replace(tn,""),e.l-a&2&&(e.l+=2)}return r}function e9(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(tn,"");return r}function t9(e){var t=e.l,r=r0(e,j3);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=r0(e,Pn);return[r,n]}function r9(e){for(var t=e.read_shift(4),r=[],n=0;n<t/2;++n)r.push(t9(e));return r}function ek(e,t){for(var r=e.read_shift(4),n={},a=0;a!=r;++a){var i=e.read_shift(4),s=e.read_shift(4);n[i]=e.read_shift(s,t===1200?"utf16le":"utf8").replace(tn,"").replace(Oc,"!"),t===1200&&s%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>3<<2),n}function tk(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function n9(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function r0(e,t,r){var n=e.read_shift(2),a,i=r||{};if(e.l+=2,t!==B3&&n!==t&&N7.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===B3?n:t){case 2:return a=e.read_shift(2,"i"),i.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return e.read_shift(4)!==0;case 19:return a=e.read_shift(4),a;case 30:return Z3(e,n,4).replace(tn,"");case 31:return J3(e);case 64:return nm(e);case 65:return tk(e);case 71:return n9(e);case 80:return am(e,n,!i.raw).replace(tn,"");case 81:return J7(e,n).replace(tn,"");case 4108:return r9(e);case 4126:case 4127:return n==4127?Q7(e):e9(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function rk(e,t){var r=Se(4),n=Se(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Se(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=Z7(t);break;case 31:case 80:for(n=Se(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Lr([r,n])}function nk(e,t){var r=e.l,n=e.read_shift(4),a=e.read_shift(4),i=[],s=0,o=0,l=-1,c={};for(s=0;s!=a;++s){var d=e.read_shift(4),p=e.read_shift(4);i[s]=[d,p+r]}i.sort(function(T,b){return T[1]-b[1]});var g={};for(s=0;s!=a;++s){if(e.l!==i[s][1]){var v=!0;if(s>0&&t)switch(t[i[s-1][0]].t){case 2:e.l+2===i[s][1]&&(e.l+=2,v=!1);break;case 80:e.l<=i[s][1]&&(e.l=i[s][1],v=!1);break;case 4108:e.l<=i[s][1]&&(e.l=i[s][1],v=!1);break}if((!t||s==0)&&e.l<=i[s][1]&&(v=!1,e.l=i[s][1]),v)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(t){var y=t[i[s][0]];if(g[y.n]=r0(e,y.t,{raw:!0}),y.p==="version"&&(g[y.n]=String(g[y.n]>>16)+"."+("0000"+String(g[y.n]&65535)).slice(-4)),y.n=="CodePage")switch(g[y.n]){case 0:g[y.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:ha(o=g[y.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+g[y.n])}}else if(i[s][0]===1){if(o=g.CodePage=r0(e,K1),ha(o),l!==-1){var _=e.l;e.l=i[l][1],c=ek(e,o),e.l=_}}else if(i[s][0]===0){if(o===0){l=s,e.l=i[s+1][1];continue}c=ek(e,o)}else{var C=c[i[s][0]],E;switch(e[e.l]){case 65:e.l+=4,E=tk(e);break;case 30:e.l+=4,E=am(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,E=am(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,E=e.read_shift(4,"i");break;case 19:e.l+=4,E=e.read_shift(4);break;case 5:e.l+=4,E=e.read_shift(8,"f");break;case 11:e.l+=4,E=Sr(e,4);break;case 64:e.l+=4,E=rr(nm(e));break;default:throw new Error("unparsed value: "+e[e.l])}g[C]=E}}return e.l=r+n,g}var ak=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function a9(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function ik(e,t,r){var n=Se(8),a=[],i=[],s=8,o=0,l=Se(8),c=Se(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),i.push(l),a.push(c),s+=8+l.length,!t){c=Se(8),c.write_shift(4,0),a.unshift(c);var d=[Se(4)];for(d[0].write_shift(4,e.length),o=0;o<e.length;++o){var p=e[o][0];for(l=Se(8+2*(p.length+1)+(p.length%2?0:2)),l.write_shift(4,o+2),l.write_shift(4,p.length+1),l.write_shift(0,p,"dbcs");l.l!=l.length;)l.write_shift(1,0);d.push(l)}l=Lr(d),i.unshift(l),s+=8+l.length}for(o=0;o<e.length;++o)if(!(t&&!t[e[o][0]])&&!(ak.indexOf(e[o][0])>-1||Y3.indexOf(e[o][0])>-1)&&e[o][1]!=null){var g=e[o][1],v=0;if(t){v=+t[e[o][0]];var y=r[v];if(y.p=="version"&&typeof g=="string"){var _=g.split(".");g=(+_[0]<<16)+(+_[1]||0)}l=rk(y.t,g)}else{var C=a9(g);C==-1&&(C=31,g=String(g)),l=rk(C,g)}i.push(l),c=Se(8),c.write_shift(4,t?v:2+o),a.push(c),s+=8+l.length}var E=8*(i.length+1);for(o=0;o<i.length;++o)a[o].write_shift(4,E),E+=i[o].length;return n.write_shift(4,s),n.write_shift(4,i.length),Lr([n].concat(a).concat(i))}function sk(e,t,r){var n=e.content;if(!n)return{};Gr(n,0);var a,i,s,o,l=0;n.chk("feff","Byte Order: "),n.read_shift(2);var c=n.read_shift(4),d=n.read_shift(16);if(d!==Xe.utils.consts.HEADER_CLSID&&d!==r)throw new Error("Bad PropertySet CLSID "+d);if(a=n.read_shift(4),a!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);if(i=n.read_shift(16),o=n.read_shift(4),a===1&&o!==n.l)throw new Error("Length mismatch: "+o+" !== "+n.l);a===2&&(s=n.read_shift(16),l=n.read_shift(4));var p=nk(n,t),g={SystemIdentifier:c};for(var v in p)g[v]=p[v];if(g.FMTID=i,a===1)return g;if(l-n.l==2&&(n.l+=2),n.l!==l)throw new Error("Length mismatch 2: "+n.l+" !== "+l);var y;try{y=nk(n,null)}catch{}for(v in y)g[v]=y[v];return g.FMTID=[i,s],g}function ok(e,t,r,n,a,i){var s=Se(a?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Xe.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,a?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,a?68:48);var l=ik(e,r,n);if(o.push(l),a){var c=ik(a,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+l.length),o.push(c)}return Lr(o)}function _s(e,t){return e.read_shift(t),null}function i9(e,t){t||(t=Se(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function s9(e,t,r){for(var n=[],a=e.l+t;e.l<a;)n.push(r(e,a-e.l));if(a!==e.l)throw new Error("Slurp error");return n}function Sr(e,t){return e.read_shift(t)===1}function wn(e,t){return t||(t=Se(2)),t.write_shift(2,+!!e),t}function Ar(e){return e.read_shift(2,"u")}function xa(e,t){return t||(t=Se(2)),t.write_shift(2,e),t}function lk(e,t){return s9(e,t,Ar)}function o9(e){var t=e.read_shift(1),r=e.read_shift(1);return r===1?t:t===1}function uk(e,t,r){return r||(r=Se(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function zc(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont",i=qn;if(r&&r.biff>=8&&(qn=1200),!r||r.biff==8){var s=e.read_shift(1);s&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var o=n?e.read_shift(n,a):"";return qn=i,o}function l9(e){var t=qn;qn=1200;var r=e.read_shift(2),n=e.read_shift(1),a=n&4,i=n&8,s=1+(n&1),o=0,l,c={};i&&(o=e.read_shift(2)),a&&(l=e.read_shift(4));var d=s==2?"dbcs-cont":"sbcs-cont",p=r===0?"":e.read_shift(r,d);return i&&(e.l+=4*o),a&&(e.l+=l),c.t=p,i||(c.raw="<t>"+c.t+"</t>",c.r=c.t),qn=t,c}function u9(e){var t=e.t||"",r=Se(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Se(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return Lr(a)}function To(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function Wc(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):To(e,n,r)}function Eo(e,t,r){if(r.biff>5)return Wc(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ck(e,t,r){return r||(r=Se(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function c9(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function f9(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var a=e.read_shift((n?t-24:t)>>1,"utf16le").replace(tn,"");return n&&(e.l+=24),a}function d9(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var a=e.read_shift(4);if(a===0)return r+n.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var s=e.read_shift(i>>1,"utf16le").replace(tn,"");return r+s}function h9(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return f9(e);case"0303000000000000c000000000000046":return d9(e);default:throw new Error("Unsupported Moniker "+r)}}function n0(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(tn,""):"";return r}function fk(e,t){t||(t=Se(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function p9(e,t){var r=e.l+t,n=e.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var a=e.read_shift(2);e.l+=2;var i,s,o,l,c="",d,p;a&16&&(i=n0(e,r-e.l)),a&128&&(s=n0(e,r-e.l)),(a&257)===257&&(o=n0(e,r-e.l)),(a&257)===1&&(l=h9(e,r-e.l)),a&8&&(c=n0(e,r-e.l)),a&32&&(d=e.read_shift(16)),a&64&&(p=nm(e)),e.l=r;var g=s||o||l||"";g&&c&&(g+="#"+c),g||(g="#"+c),a&2&&g.charAt(0)=="/"&&g.charAt(1)!="/"&&(g="file://"+g);var v={Target:g};return d&&(v.guid=d),p&&(v.time=p),i&&(v.Tooltip=i),v}function g9(e){var t=Se(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),i=a>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)t.write_shift(4,s[r]);if(i==28)n=n.slice(1),fk(n,t);else if(i&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));var o=a>-1?n.slice(0,a):n;for(t.write_shift(4,2*(o.length+1)),r=0;r<o.length;++r)t.write_shift(2,o.charCodeAt(r));t.write_shift(2,0),i&8&&fk(a>-1?n.slice(a+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function dk(e){var t=e.read_shift(1),r=e.read_shift(1),n=e.read_shift(1),a=e.read_shift(1);return[t,r,n,a]}function hk(e,t){var r=dk(e);return r[3]=0,r}function ui(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return{r:t,c:r,ixfe:n}}function Co(e,t,r,n){return n||(n=Se(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function m9(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}function v9(e,t,r){return t===0?"":Eo(e,t,r)}function x9(e,t,r){var n=r.biff>8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[a,i,s]}function pk(e){var t=e.read_shift(2),r=G1(e);return[t,r]}function _9(e,t,r){e.l+=4,t-=4;var n=e.l+t,a=zc(e,t,r),i=e.read_shift(2);if(n-=e.l,i!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+i);return e.l+=i,a}function a0(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function gk(e,t){return t||(t=Se(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function mk(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),a=e.read_shift(1);return{s:{c:n,r:t},e:{c:a,r}}}var y9=mk;function vk(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function w9(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function b9(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function on(e){e.l+=2,e.l+=e.read_shift(2)}var S9={0:on,4:on,5:on,6:on,7:b9,8:on,9:on,10:on,11:on,12:on,13:w9,14:on,15:on,16:on,17:on,18:on,19:on,20:on,21:vk};function k9(e,t){for(var r=e.l+t,n=[];e.l<r;){var a=e.read_shift(2);e.l-=2;try{n.push(S9[a](e,r-e.l))}catch{return e.l=r,n}}return e.l!=r&&(e.l=r),n}function i0(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),t-=2,t>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function im(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=Se(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function T9(e,t){return t===0||e.read_shift(2),1200}function E9(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,a=Eo(e,0,r);return e.read_shift(t+n-e.l),a}function C9(e,t){var r=!t||t.biff==8,n=Se(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function A9(e,t,r){var n=r&&r.biff==8||t==2?e.read_shift(2):(e.l+=t,0);return{fDialog:n&16,fBelow:n&64,fRight:n&128}}function O9(e,t,r){var n=e.read_shift(4),a=e.read_shift(1)&3,i=e.read_shift(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break}var s=zc(e,0,r);return s.length===0&&(s="Sheet1"),{pos:n,hs:a,dt:i,name:s}}function F9(e,t){var r=!t||t.biff>=8?2:1,n=Se(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function P9(e,t){for(var r=e.l+t,n=e.read_shift(4),a=e.read_shift(4),i=[],s=0;s!=a&&e.l<r;++s)i.push(l9(e));return i.Count=n,i.Unique=a,i}function D9(e,t){var r=Se(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],a=0;a<e.length;++a)n[a]=u9(e[a]);var i=Lr([r].concat(n));return i.parts=[r.length].concat(n.map(function(s){return s.length})),i}function R9(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}function N9(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var n=e.read_shift(1);return e.l+=3,n&7&&(t.level=n&7),n&32&&(t.hidden=!0),n&64&&(t.hpt=r/20),t}function M9(e){var t=m9(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var r=e.read_shift(4);return r!==0}function I9(e){return e.read_shift(2),e.read_shift(4)}function xk(e,t,r){var n=0;r&&r.biff==2||(n=e.read_shift(2));var a=e.read_shift(2);r&&r.biff==2&&(n=1-(a>>15),a&=32767);var i={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[i,a]}function L9(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),o=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,r],Dim:[n,a],Flags:i,CurTab:s,FirstTab:o,Selected:l,TabRatio:c}}function B9(){var e=Se(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function j9(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function U9(e){var t=Se(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function H9(){}function z9(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=zc(e,0,r),n}function W9(e,t){var r=e.name||"Arial",n=t&&t.biff==5,a=n?15+r.length:16+2*r.length,i=Se(a);return i.write_shift(2,e.sz*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function $9(e){var t=ui(e);return t.isst=e.read_shift(4),t}function V9(e,t,r,n){var a=Se(10);return Co(e,t,n,a),a.write_shift(4,r),a}function q9(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,a=ui(e);r.biff==2&&e.l++;var i=Wc(e,n-e.l,r);return a.val=i,a}function Y9(e,t,r,n,a){var i=!a||a.biff==8,s=Se(8+ +i+(1+i)*r.length);return Co(e,t,n,s),s.write_shift(2,r.length),i&&s.write_shift(1,1),s.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),s}function G9(e,t,r){var n=e.read_shift(2),a=Eo(e,0,r);return[n,a]}function K9(e,t,r,n){var a=r&&r.biff==5;n||(n=Se(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}var X9=Eo;function _k(e,t,r){var n=e.l+t,a=r.biff==8||!r.biff?4:2,i=e.read_shift(a),s=e.read_shift(a),o=e.read_shift(2),l=e.read_shift(2);return e.l=n,{s:{r:i,c:o},e:{r:s,c:l}}}function Z9(e,t){var r=t.biff==8||!t.biff?4:2,n=Se(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function J9(e){var t=e.read_shift(2),r=e.read_shift(2),n=pk(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function Q9(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l<r;)i.push(pk(e));if(e.l!==r)throw new Error("MulRK read error");var s=e.read_shift(2);if(i.length!=s-a+1)throw new Error("MulRK length mismatch");return{r:n,c:a,C:s,rkrec:i}}function eB(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l<r;)i.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var s=e.read_shift(2);if(i.length!=s-a+1)throw new Error("MulBlank length mismatch");return{r:n,c:a,C:s,ixfe:i}}function tB(e,t,r,n){var a={},i=e.read_shift(4),s=e.read_shift(4),o=e.read_shift(4),l=e.read_shift(2);return a.patternType=M7[o>>26],n.cellStyles&&(a.alc=i&7,a.fWrap=i>>3&1,a.alcV=i>>4&7,a.fJustLast=i>>7&1,a.trot=i>>8&255,a.cIndent=i>>16&15,a.fShrinkToFit=i>>20&1,a.iReadOrder=i>>22&2,a.fAtrNum=i>>26&1,a.fAtrFnt=i>>27&1,a.fAtrAlc=i>>28&1,a.fAtrBdr=i>>29&1,a.fAtrPat=i>>30&1,a.fAtrProt=i>>31&1,a.dgLeft=s&15,a.dgRight=s>>4&15,a.dgTop=s>>8&15,a.dgBottom=s>>12&15,a.icvLeft=s>>16&127,a.icvRight=s>>23&127,a.grbitDiag=s>>30&3,a.icvTop=o&127,a.icvBottom=o>>7&127,a.icvDiag=o>>14&127,a.dgDiag=o>>21&15,a.icvFore=l&127,a.icvBack=l>>7&127,a.fsxButton=l>>14&1),a}function rB(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,t-=6,n.data=tB(e,t,n.fStyle,r),n}function yk(e,t,r,n){var a=r&&r.biff==5;n||(n=Se(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function nB(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function aB(e){var t=Se(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function wk(e,t,r){var n=ui(e);(r.biff==2||t==9)&&++e.l;var a=o9(e);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}function iB(e,t,r,n,a,i){var s=Se(8);return Co(e,t,n,s),uk(r,i,s),s}function sB(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=ui(e),a=sn(e);return n.val=a,n}function oB(e,t,r,n){var a=Se(14);return Co(e,t,n,a),bo(r,a),a}var bk=v9;function lB(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,i==1025||i==14849)return[i,a];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var s=To(e,i),o=[];n>e.l;)o.push(Wc(e));return[i,a,s,o]}function Sk(e,t,r){var n=e.read_shift(2),a,i={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(a=_9(e,t-2,r)),i.body=a||e.read_shift(t-2),typeof a=="string"&&(i.Name=a),i}var uB=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function kk(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(r&&r.biff==2?1:2),l=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),l=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var c=To(e,s,r);a&32&&(c=uB[c.charCodeAt(0)]);var d=n-e.l;r&&r.biff==2&&--d;var p=n==e.l||o===0||!(d>0)?[]:kz(e,d,r,o);return{chKey:i,Name:c,itab:l,rgce:p}}function Tk(e,t,r){if(r.biff<8)return cB(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(x9(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function cB(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=zc(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function fB(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),a=e.read_shift(2),i=To(e,n,r),s=To(e,a,r);return[i,s]}function dB(e,t,r){var n=mk(e);e.l++;var a=e.read_shift(1);return t-=8,[Tz(e,t,r),a,n]}function Ek(e,t,r){var n=y9(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,bz(e,t,r)]}function hB(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function pB(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),o=Eo(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:a},o,s,i]}}function gB(e,t,r){return pB(e,t,r)}function mB(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(a0(e));return r}function vB(e){var t=Se(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)gk(e[r],t);return t}function xB(e,t,r){if(r&&r.biff<8)return yB(e,t,r);var n=vk(e),a=k9(e,t-22,n[1]);return{cmo:n,ft:a}}var _B={8:function(e,t){var r=e.l+t;e.l+=10;var n=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var a=e.read_shift(1);return e.l+=a,e.l=r,{fmt:n}}};function yB(e,t,r){e.l+=4;var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var s=[];return s.push((_B[n]||nn)(e,t,r)),{cmo:[a,n,i],ft:s}}function wB(e,t,r){var n=e.l,a="";try{e.l+=4;var i=(r.lastobj||{cmo:[0,0]}).cmo[1],s;[0,5,7,11,12,14].indexOf(i)==-1?e.l+=6:s=c9(e,6,r);var o=e.read_shift(2);e.read_shift(2),Ar(e,2);var l=e.read_shift(2);e.l+=l;for(var c=1;c<e.lens.length-1;++c){if(e.l-n!=e.lens[c])throw new Error("TxO: bad continue record");var d=e[e.l],p=To(e,e.lens[c+1]-e.lens[c]-1);if(a+=p,a.length>=(d?o:2*o))break}if(a.length!==o&&a.length!==o*2)throw new Error("cchText: "+o+" != "+a.length);return e.l=n+t,{t:a}}catch{return e.l=n+t,{t:a}}}function bB(e,t){var r=a0(e);e.l+=16;var n=p9(e,t-24);return[r,n]}function SB(e){var t=Se(24),r=fr(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return Lr([t,g9(e[1])])}function kB(e,t){e.read_shift(2);var r=a0(e),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(tn,""),[r,n]}function TB(e){var t=e[1].Tooltip,r=Se(10+2*(t.length+1));r.write_shift(2,2048);var n=fr(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<t.length;++a)r.write_shift(2,t.charCodeAt(a));return r.write_shift(2,0),r}function EB(e){var t=[0,0],r;return r=e.read_shift(2),t[0]=U3[r]||r,r=e.read_shift(2),t[1]=U3[r]||r,t}function CB(e){return e||(e=Se(4)),e.write_shift(2,1),e.write_shift(2,1),e}function AB(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(hk(e));return r}function OB(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(hk(e));return r}function FB(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function Ck(e,t,r){if(!r.cellStyles)return nn(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var c={s:a,e:i,w:s,ixfe:o,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function PB(e,t){var r=Se(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function DB(e,t){var r={};return t<32||(e.l+=16,r.header=sn(e),r.footer=sn(e),e.l+=2),r}function RB(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var a=e.read_shift(1);return e.l+=3,a&16&&(n.area=!0),n}function NB(e){for(var t=Se(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}var MB=ui,IB=lk,LB=Wc;function BB(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,a}function jB(e,t,r){r.biffguess&&r.biff==5&&(r.biff=2);var n=ui(e);++e.l;var a=Eo(e,t-7,r);return n.t="str",n.val=a,n}function UB(e){var t=ui(e);++e.l;var r=sn(e);return t.t="n",t.val=r,t}function HB(e,t,r){var n=Se(15);return nf(n,e,t),n.write_shift(8,r,"f"),n}function zB(e){var t=ui(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}function WB(e,t,r){var n=Se(9);return nf(n,e,t),n.write_shift(2,r),n}function $B(e){var t=e.read_shift(1);return t===0?(e.l++,""):e.read_shift(t,"sbcs-cont")}function VB(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function qB(e,t,r){var n=e.l+t,a=ui(e),i=e.read_shift(2),s=To(e,i,r);return e.l=n,a.t="str",a.val=s,a}var YB=[2,3,48,49,131,139,140,245],sm=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Wd({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(o,l){var c=[],d=hs(1);switch(l.type){case"base64":d=Gn(Yn(o));break;case"binary":d=Gn(o);break;case"buffer":case"array":d=o;break}Gr(d,0);var p=d.read_shift(1),g=!!(p&136),v=!1,y=!1;switch(p){case 2:break;case 3:break;case 48:v=!0,g=!0;break;case 49:v=!0,g=!0;break;case 131:break;case 139:break;case 140:y=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+p.toString(16))}var _=0,C=521;p==2&&(_=d.read_shift(2)),d.l+=3,p!=2&&(_=d.read_shift(4)),_>1048576&&(_=1e6),p!=2&&(C=d.read_shift(2));var E=d.read_shift(2),T=l.codepage||1252;p!=2&&(d.l+=16,d.read_shift(1),d[d.l]!==0&&(T=e[d[d.l]]),d.l+=1,d.l+=2),y&&(d.l+=36);for(var b=[],h={},m=Math.min(d.length,p==2?521:C-10-(v?264:0)),x=y?32:11;d.l<m&&d[d.l]!=13;)switch(h={},h.name=Dt.utils.decode(T,d.slice(d.l,d.l+x)).replace(/[\u0000\r\n].*$/g,""),d.l+=x,h.type=String.fromCharCode(d.read_shift(1)),p!=2&&!y&&(h.offset=d.read_shift(4)),h.len=d.read_shift(1),p==2&&(h.offset=d.read_shift(2)),h.dec=d.read_shift(1),h.name.length&&b.push(h),p!=2&&(d.l+=y?13:14),h.type){case"B":(!v||h.len!=8)&&l.WTF&&console.log("Skipping "+h.name+":"+h.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+h.name+":"+h.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+h.type)}if(d[d.l]!==13&&(d.l=C-1),d.read_shift(1)!==13)throw new Error("DBF Terminator not found "+d.l+" "+d[d.l]);d.l=C;var S=0,A=0;for(c[0]=[],A=0;A!=b.length;++A)c[0][A]=b[A].name;for(;_-- >0;){if(d[d.l]===42){d.l+=E;continue}for(++d.l,c[++S]=[],A=0,A=0;A!=b.length;++A){var k=d.slice(d.l,d.l+b[A].len);d.l+=b[A].len,Gr(k,0);var F=Dt.utils.decode(T,k);switch(b[A].type){case"C":F.trim().length&&(c[S][A]=F.replace(/\s+$/,""));break;case"D":F.length===8?c[S][A]=new Date(+F.slice(0,4),+F.slice(4,6)-1,+F.slice(6,8)):c[S][A]=F;break;case"F":c[S][A]=parseFloat(F.trim());break;case"+":case"I":c[S][A]=y?k.read_shift(-4,"i")^2147483648:k.read_shift(4,"i");break;case"L":switch(F.trim().toUpperCase()){case"Y":case"T":c[S][A]=!0;break;case"N":case"F":c[S][A]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+F+"|")}break;case"M":if(!g)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));c[S][A]="##MEMO##"+(y?parseInt(F.trim(),10):k.read_shift(4));break;case"N":F=F.replace(/\u0000/g,"").trim(),F&&F!="."&&(c[S][A]=+F||0);break;case"@":c[S][A]=new Date(k.read_shift(-8,"f")-621356832e5);break;case"T":c[S][A]=new Date((k.read_shift(4)-2440588)*864e5+k.read_shift(4));break;case"Y":c[S][A]=k.read_shift(4,"i")/1e4+k.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[S][A]=-k.read_shift(-8,"f");break;case"B":if(v&&b[A].len==8){c[S][A]=k.read_shift(8,"f");break}case"G":case"P":k.l+=b[A].len;break;case"0":if(b[A].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[A].type)}}}if(p!=2&&d.l<d.length&&d[d.l++]!=26)throw new Error("DBF EOF Marker missing "+(d.l-1)+" of "+d.length+" "+d[d.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=b,c}function n(o,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var d=Al(r(o,c),c);return d["!cols"]=c.DBF.map(function(p){return{wch:p.len,DBF:p}}),delete c.DBF,d}function a(o,l){try{return xs(n(o,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,l){var c=l||{};if(+c.codepage>=0&&ha(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var d=Fn(),p=v0(o,{header:1,raw:!0,cellDates:!0}),g=p[0],v=p.slice(1),y=o["!cols"]||[],_=0,C=0,E=0,T=1;for(_=0;_<g.length;++_){if(((y[_]||{}).DBF||{}).name){g[_]=y[_].DBF.name,++E;continue}if(g[_]!=null){if(++E,typeof g[_]=="number"&&(g[_]=g[_].toString(10)),typeof g[_]!="string")throw new Error("DBF Invalid column name "+g[_]+" |"+typeof g[_]+"|");if(g.indexOf(g[_])!==_){for(C=0;C<1024;++C)if(g.indexOf(g[_]+"_"+C)==-1){g[_]+="_"+C;break}}}}var b=At(o["!ref"]),h=[],m=[],x=[];for(_=0;_<=b.e.c-b.s.c;++_){var S="",A="",k=0,F=[];for(C=0;C<v.length;++C)v[C][_]!=null&&F.push(v[C][_]);if(F.length==0||g[_]==null){h[_]="?";continue}for(C=0;C<F.length;++C){switch(typeof F[C]){case"number":A="B";break;case"string":A="C";break;case"boolean":A="L";break;case"object":A=F[C]instanceof Date?"D":"C";break;default:A="C"}k=Math.max(k,String(F[C]).length),S=S&&S!=A?"C":A}k>250&&(k=250),A=((y[_]||{}).DBF||{}).type,A=="C"&&y[_].DBF.len>k&&(k=y[_].DBF.len),S=="B"&&A=="N"&&(S="N",x[_]=y[_].DBF.dec,k=y[_].DBF.len),m[_]=S=="C"||A=="N"?k:i[S]||0,T+=m[_],h[_]=S}var P=d.next(32);for(P.write_shift(4,318902576),P.write_shift(4,v.length),P.write_shift(2,296+32*E),P.write_shift(2,T),_=0;_<4;++_)P.write_shift(4,0);for(P.write_shift(4,0|(+t[fo]||3)<<8),_=0,C=0;_<g.length;++_)if(g[_]!=null){var j=d.next(32),L=(g[_].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,L,"sbcs"),j.write_shift(1,h[_]=="?"?"C":h[_],"sbcs"),j.write_shift(4,C),j.write_shift(1,m[_]||i[h[_]]||0),j.write_shift(1,x[_]||0),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(1,0),j.write_shift(4,0),j.write_shift(4,0),C+=m[_]||i[h[_]]||0}var B=d.next(264);for(B.write_shift(4,13),_=0;_<65;++_)B.write_shift(4,0);for(_=0;_<v.length;++_){var U=d.next(T);for(U.write_shift(1,0),C=0;C<g.length;++C)if(g[C]!=null)switch(h[C]){case"L":U.write_shift(1,v[_][C]==null?63:v[_][C]?84:70);break;case"B":U.write_shift(8,v[_][C]||0,"f");break;case"N":var O="0";for(typeof v[_][C]=="number"&&(O=v[_][C].toFixed(x[C]||0)),E=0;E<m[C]-O.length;++E)U.write_shift(1,32);U.write_shift(1,O,"sbcs");break;case"D":v[_][C]?(U.write_shift(4,("0000"+v[_][C].getFullYear()).slice(-4),"sbcs"),U.write_shift(2,("00"+(v[_][C].getMonth()+1)).slice(-2),"sbcs"),U.write_shift(2,("00"+v[_][C].getDate()).slice(-2),"sbcs")):U.write_shift(8,"00000000","sbcs");break;case"C":var N=String(v[_][C]!=null?v[_][C]:"").slice(0,m[C]);for(U.write_shift(1,N,"sbcs"),E=0;E<m[C]-N.length;++E)U.write_shift(1,32);break}}return d.next(1).write_shift(1,26),d.end()}return{to_workbook:a,to_sheet:n,from_sheet:s}}(),Ak=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+pr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(g,v){var y=e[v];return typeof y=="number"?b1(y):y},n=function(g,v,y){var _=v.charCodeAt(0)-32<<4|y.charCodeAt(0)-48;return _==59?g:b1(_)};e["|"]=254;function a(g,v){switch(v.type){case"base64":return i(Yn(g),v);case"binary":return i(g,v);case"buffer":return i(bt&&Buffer.isBuffer(g)?g.toString("binary"):ps(g),v);case"array":return i(go(g),v)}throw new Error("Unrecognized type "+v.type)}function i(g,v){var y=g.split(/[\n\r]+/),_=-1,C=-1,E=0,T=0,b=[],h=[],m=null,x={},S=[],A=[],k=[],F=0,P;for(+v.codepage>=0&&ha(+v.codepage);E!==y.length;++E){F=0;var j=y[E].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),L=j.replace(/;;/g,"\0").split(";").map(function(te){return te.replace(/\u0000/g,";")}),B=L[0],U;if(j.length>0)switch(B){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":L[1].charAt(0)=="P"&&h.push(j.slice(3).replace(/;;/g,";"));break;case"C":var O=!1,N=!1,V=!1,M=!1,q=-1,Y=-1;for(T=1;T<L.length;++T)switch(L[T].charAt(0)){case"A":break;case"X":C=parseInt(L[T].slice(1))-1,N=!0;break;case"Y":for(_=parseInt(L[T].slice(1))-1,N||(C=0),P=b.length;P<=_;++P)b[P]=[];break;case"K":U=L[T].slice(1),U.charAt(0)==='"'?U=U.slice(1,U.length-1):U==="TRUE"?U=!0:U==="FALSE"?U=!1:isNaN(za(U))?isNaN(Tl(U).getDate())||(U=rr(U)):(U=za(U),m!==null&&po(m)&&(U=qd(U))),typeof Dt<"u"&&typeof U=="string"&&(v||{}).type!="string"&&(v||{}).codepage&&(U=Dt.utils.decode(v.codepage,U)),O=!0;break;case"E":M=!0;var z=Nl(L[T].slice(1),{r:_,c:C});b[_][C]=[b[_][C],z];break;case"S":V=!0,b[_][C]=[b[_][C],"S5S"];break;case"G":break;case"R":q=parseInt(L[T].slice(1))-1;break;case"C":Y=parseInt(L[T].slice(1))-1;break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}if(O&&(b[_][C]&&b[_][C].length==2?b[_][C][0]=U:b[_][C]=U,m=null),V){if(M)throw new Error("SYLK shared formula cannot have own formula");var re=q>-1&&b[q][Y];if(!re||!re[1])throw new Error("SYLK shared formula cannot find base");b[_][C][1]=Gk(re[1],{r:_-q,c:C-Y})}break;case"F":var J=0;for(T=1;T<L.length;++T)switch(L[T].charAt(0)){case"X":C=parseInt(L[T].slice(1))-1,++J;break;case"Y":for(_=parseInt(L[T].slice(1))-1,P=b.length;P<=_;++P)b[P]=[];break;case"M":F=parseInt(L[T].slice(1))/20;break;case"F":break;case"G":break;case"P":m=h[parseInt(L[T].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(k=L[T].slice(1).split(" "),P=parseInt(k[0],10);P<=parseInt(k[1],10);++P)F=parseInt(k[2],10),A[P-1]=F===0?{hidden:!0}:{wch:F},ys(A[P-1]);break;case"C":C=parseInt(L[T].slice(1))-1,A[C]||(A[C]={});break;case"R":_=parseInt(L[T].slice(1))-1,S[_]||(S[_]={}),F>0?(S[_].hpt=F,S[_].hpx=Dl(F)):F===0&&(S[_].hidden=!0);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}J<1&&(m=null);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}}return S.length>0&&(x["!rows"]=S),A.length>0&&(x["!cols"]=A),v&&v.sheetRows&&(b=b.slice(0,v.sheetRows)),[b,x]}function s(g,v){var y=a(g,v),_=y[0],C=y[1],E=Al(_,v);return pr(C).forEach(function(T){E[T]=C[T]}),E}function o(g,v){return xs(s(g,v),v)}function l(g,v,y,_){var C="C;Y"+(y+1)+";X"+(_+1)+";K";switch(g.t){case"n":C+=g.v||0,g.f&&!g.F&&(C+=";E"+pm(g.f,{r:y,c:_}));break;case"b":C+=g.v?"TRUE":"FALSE";break;case"e":C+=g.w||g.v;break;case"d":C+='"'+(g.w||g.v)+'"';break;case"s":C+='"'+g.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return C}function c(g,v){v.forEach(function(y,_){var C="F;W"+(_+1)+" "+(_+1)+" ";y.hidden?C+="0":(typeof y.width=="number"&&!y.wpx&&(y.wpx=Vc(y.width)),typeof y.wpx=="number"&&!y.wch&&(y.wch=qc(y.wpx)),typeof y.wch=="number"&&(C+=Math.round(y.wch))),C.charAt(C.length-1)!=" "&&g.push(C)})}function d(g,v){v.forEach(function(y,_){var C="F;";y.hidden?C+="M0;":y.hpt?C+="M"+20*y.hpt+";":y.hpx&&(C+="M"+20*Yc(y.hpx)+";"),C.length>2&&g.push(C+"R"+(_+1))})}function p(g,v){var y=["ID;PWXL;N;E"],_=[],C=At(g["!ref"]),E,T=Array.isArray(g),b=`\r
389
+ `;y.push("P;PGeneral"),y.push("F;P0;DG0G8;M255"),g["!cols"]&&c(y,g["!cols"]),g["!rows"]&&d(y,g["!rows"]),y.push("B;Y"+(C.e.r-C.s.r+1)+";X"+(C.e.c-C.s.c+1)+";D"+[C.s.c,C.s.r,C.e.c,C.e.r].join(" "));for(var h=C.s.r;h<=C.e.r;++h)for(var m=C.s.c;m<=C.e.c;++m){var x=at({r:h,c:m});E=T?(g[h]||[])[m]:g[x],!(!E||E.v==null&&(!E.f||E.F))&&_.push(l(E,g,h,m))}return y.join(b)+b+_.join(b)+b+"E"+b}return{to_workbook:o,to_sheet:s,from_sheet:p}}(),Ok=function(){function e(i,s){switch(s.type){case"base64":return t(Yn(i),s);case"binary":return t(i,s);case"buffer":return t(bt&&Buffer.isBuffer(i)?i.toString("binary"):ps(i),s);case"array":return t(go(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var o=i.split(`
390
+ `),l=-1,c=-1,d=0,p=[];d!==o.length;++d){if(o[d].trim()==="BOT"){p[++l]=[],c=0;continue}if(!(l<0)){var g=o[d].trim().split(","),v=g[0],y=g[1];++d;for(var _=o[d]||"";(_.match(/["]/g)||[]).length&1&&d<o.length-1;)_+=`
391
+ `+o[++d];switch(_=_.trim(),+v){case-1:if(_==="BOT"){p[++l]=[],c=0;continue}else if(_!=="EOD")throw new Error("Unrecognized DIF special command "+_);break;case 0:_==="TRUE"?p[l][c]=!0:_==="FALSE"?p[l][c]=!1:isNaN(za(y))?isNaN(Tl(y).getDate())?p[l][c]=y:p[l][c]=rr(y):p[l][c]=za(y),++c;break;case 1:_=_.slice(1,_.length-1),_=_.replace(/""/g,'"'),_&&_.match(/^=".*"$/)&&(_=_.slice(2,-1)),p[l][c++]=_!==""?_:null;break}if(_==="EOD")break}}return s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),p}function r(i,s){return Al(e(i,s),s)}function n(i,s){return xs(r(i,s),s)}var a=function(){var i=function(l,c,d,p,g){l.push(c),l.push(d+","+p),l.push('"'+g.replace(/"/g,'""')+'"')},s=function(l,c,d,p){l.push(c+","+d),l.push(c==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(l){var c=[],d=At(l["!ref"]),p,g=Array.isArray(l);i(c,"TABLE",0,1,"sheetjs"),i(c,"VECTORS",0,d.e.r-d.s.r+1,""),i(c,"TUPLES",0,d.e.c-d.s.c+1,""),i(c,"DATA",0,0,"");for(var v=d.s.r;v<=d.e.r;++v){s(c,-1,0,"BOT");for(var y=d.s.c;y<=d.e.c;++y){var _=at({r:v,c:y});if(p=g?(l[v]||[])[y]:l[_],!p){s(c,1,0,"");continue}switch(p.t){case"n":var C=p.w;!C&&p.v!=null&&(C=p.v),C==null?p.f&&!p.F?s(c,1,0,"="+p.f):s(c,1,0,""):s(c,0,C,"V");break;case"b":s(c,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":s(c,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=Kn(p.z||Qe[14],Dr(rr(p.v)))),s(c,0,p.w,"V");break;default:s(c,1,0,"")}}}s(c,-1,0,"EOD");var E=`\r
392
+ `,T=c.join(E);return T}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),Fk=function(){function e(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
393
+ `)}function t(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(p,g){for(var v=p.split(`
394
+ `),y=-1,_=-1,C=0,E=[];C!==v.length;++C){var T=v[C].trim().split(":");if(T[0]==="cell"){var b=fr(T[1]);if(E.length<=b.r)for(y=E.length;y<=b.r;++y)E[y]||(E[y]=[]);switch(y=b.r,_=b.c,T[2]){case"t":E[y][_]=e(T[3]);break;case"v":E[y][_]=+T[3];break;case"vtf":var h=T[T.length-1];case"vtc":switch(T[3]){case"nl":E[y][_]=!!+T[4];break;default:E[y][_]=+T[4];break}T[2]=="vtf"&&(E[y][_]=[E[y][_],h])}}}return g&&g.sheetRows&&(E=E.slice(0,g.sheetRows)),E}function n(p,g){return Al(r(p,g),g)}function a(p,g){return xs(n(p,g),g)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
395
+ `),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
396
+ `)+`
397
+ `,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
398
+ `),l="--SocialCalcSpreadsheetControlSave--";function c(p){if(!p||!p["!ref"])return"";for(var g=[],v=[],y,_="",C=yn(p["!ref"]),E=Array.isArray(p),T=C.s.r;T<=C.e.r;++T)for(var b=C.s.c;b<=C.e.c;++b)if(_=at({r:T,c:b}),y=E?(p[T]||[])[b]:p[_],!(!y||y.v==null||y.t==="z")){switch(v=["cell",_,"t"],y.t){case"s":case"str":v.push(t(y.v));break;case"n":y.f?(v[2]="vtf",v[3]="n",v[4]=y.v,v[5]=t(y.f)):(v[2]="v",v[3]=y.v);break;case"b":v[2]="vt"+(y.f?"f":"c"),v[3]="nl",v[4]=y.v?"1":"0",v[5]=t(y.f||(y.v?"TRUE":"FALSE"));break;case"d":var h=Dr(rr(y.v));v[2]="vtc",v[3]="nd",v[4]=""+h,v[5]=y.w||Kn(y.z||Qe[14],h);break;case"e":continue}g.push(v.join(":"))}return g.push("sheet:c:"+(C.e.c-C.s.c+1)+":r:"+(C.e.r-C.s.r+1)+":tvf:1"),g.push("valueformat:1:text-wiki"),g.join(`
399
+ `)}function d(p){return[i,s,o,s,c(p),l].join(`
400
+ `)}return{to_workbook:a,to_sheet:n,from_sheet:d}}(),Pl=function(){function e(d,p,g,v,y){y.raw?p[g][v]=d:d===""||(d==="TRUE"?p[g][v]=!0:d==="FALSE"?p[g][v]=!1:isNaN(za(d))?isNaN(Tl(d).getDate())?p[g][v]=d:p[g][v]=rr(d):p[g][v]=za(d))}function t(d,p){var g=p||{},v=[];if(!d||d.length===0)return v;for(var y=d.split(/[\r\n]/),_=y.length-1;_>=0&&y[_].length===0;)--_;for(var C=10,E=0,T=0;T<=_;++T)E=y[T].indexOf(" "),E==-1?E=y[T].length:E++,C=Math.max(C,E);for(T=0;T<=_;++T){v[T]=[];var b=0;for(e(y[T].slice(0,C).trim(),v,T,b,g),b=1;b<=(y[T].length-C)/10+1;++b)e(y[T].slice(C+(b-1)*10,C+b*10).trim(),v,T,b,g)}return g.sheetRows&&(v=v.slice(0,g.sheetRows)),v}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(d){for(var p={},g=!1,v=0,y=0;v<d.length;++v)(y=d.charCodeAt(v))==34?g=!g:!g&&y in r&&(p[y]=(p[y]||0)+1);y=[];for(v in p)Object.prototype.hasOwnProperty.call(p,v)&&y.push([p[v],v]);if(!y.length){p=n;for(v in p)Object.prototype.hasOwnProperty.call(p,v)&&y.push([p[v],v])}return y.sort(function(_,C){return _[0]-C[0]||n[_[1]]-n[C[1]]}),r[y.pop()[1]]||44}function i(d,p){var g=p||{},v="",y=g.dense?[]:{},_={s:{c:0,r:0},e:{c:0,r:0}};d.slice(0,4)=="sep="?d.charCodeAt(5)==13&&d.charCodeAt(6)==10?(v=d.charAt(4),d=d.slice(7)):d.charCodeAt(5)==13||d.charCodeAt(5)==10?(v=d.charAt(4),d=d.slice(6)):v=a(d.slice(0,1024)):g&&g.FS?v=g.FS:v=a(d.slice(0,1024));var C=0,E=0,T=0,b=0,h=0,m=v.charCodeAt(0),x=!1,S=0,A=d.charCodeAt(0);d=d.replace(/\r\n/mg,`
401
+ `);var k=g.dateNF!=null?DL(g.dateNF):null;function F(){var P=d.slice(b,h),j={};if(P.charAt(0)=='"'&&P.charAt(P.length-1)=='"'&&(P=P.slice(1,-1).replace(/""/g,'"')),P.length===0)j.t="z";else if(g.raw)j.t="s",j.v=P;else if(P.trim().length===0)j.t="s",j.v=P;else if(P.charCodeAt(0)==61)P.charCodeAt(1)==34&&P.charCodeAt(P.length-1)==34?(j.t="s",j.v=P.slice(2,-1).replace(/""/g,'"')):lH(P)?(j.t="n",j.f=P.slice(1)):(j.t="s",j.v=P);else if(P=="TRUE")j.t="b",j.v=!0;else if(P=="FALSE")j.t="b",j.v=!1;else if(!isNaN(T=za(P)))j.t="n",g.cellText!==!1&&(j.w=P),j.v=T;else if(!isNaN(Tl(P).getDate())||k&&P.match(k)){j.z=g.dateNF||Qe[14];var L=0;k&&P.match(k)&&(P=RL(P,g.dateNF,P.match(k)||[]),L=1),g.cellDates?(j.t="d",j.v=rr(P,L)):(j.t="n",j.v=Dr(rr(P,L))),g.cellText!==!1&&(j.w=Kn(j.z,j.v instanceof Date?Dr(j.v):j.v)),g.cellNF||delete j.z}else j.t="s",j.v=P;if(j.t=="z"||(g.dense?(y[C]||(y[C]=[]),y[C][E]=j):y[at({c:E,r:C})]=j),b=h+1,A=d.charCodeAt(b),_.e.c<E&&(_.e.c=E),_.e.r<C&&(_.e.r=C),S==m)++E;else if(E=0,++C,g.sheetRows&&g.sheetRows<=C)return!0}e:for(;h<d.length;++h)switch(S=d.charCodeAt(h)){case 34:A===34&&(x=!x);break;case m:case 10:case 13:if(!x&&F())break e;break}return h-b>0&&F(),y["!ref"]=vt(_),y}function s(d,p){return!(p&&p.PRN)||p.FS||d.slice(0,4)=="sep="||d.indexOf(" ")>=0||d.indexOf(",")>=0||d.indexOf(";")>=0?i(d,p):Al(t(d,p),p)}function o(d,p){var g="",v=p.type=="string"?[0,0,0,0]:Dm(d,p);switch(p.type){case"base64":g=Yn(d);break;case"binary":g=d;break;case"buffer":p.codepage==65001?g=d.toString("utf8"):p.codepage&&typeof Dt<"u"?g=Dt.utils.decode(p.codepage,d):g=bt&&Buffer.isBuffer(d)?d.toString("binary"):ps(d);break;case"array":g=go(d);break;case"string":g=d;break;default:throw new Error("Unrecognized type "+p.type)}return v[0]==239&&v[1]==187&&v[2]==191?g=Yt(g.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?g=Yt(g):p.type=="binary"&&typeof Dt<"u"&&p.codepage&&(g=Dt.utils.decode(p.codepage,Dt.utils.encode(28591,g))),g.slice(0,19)=="socialcalc:version:"?Fk.to_sheet(p.type=="string"?g:Yt(g),p):s(g,p)}function l(d,p){return xs(o(d,p),p)}function c(d){for(var p=[],g=At(d["!ref"]),v,y=Array.isArray(d),_=g.s.r;_<=g.e.r;++_){for(var C=[],E=g.s.c;E<=g.e.c;++E){var T=at({r:_,c:E});if(v=y?(d[_]||[])[E]:d[T],!v||v.v==null){C.push(" ");continue}for(var b=(v.w||(li(v),v.w)||"").slice(0,10);b.length<10;)b+=" ";C.push(b+(E===0?" ":""))}p.push(C.join(""))}return p.join(`
402
+ `)}return{to_workbook:l,to_sheet:o,from_sheet:c}}();function GB(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=Ak.to_workbook(e,r);return r.WTF=n,a}catch(i){if(r.WTF=n,!i.message.match(/SYLK bad record ID/)&&n)throw i;return Pl.to_workbook(e,t)}}var Ao=function(){function e(z,re,J){if(z){Gr(z,z.l||0);for(var te=J.Enum||q;z.l<z.length;){var oe=z.read_shift(2),ue=te[oe]||te[65535],ve=z.read_shift(2),_e=z.l+ve,ye=ue.f&&ue.f(z,ve,J);if(z.l=_e,re(ye,ue,oe))return}}}function t(z,re){switch(re.type){case"base64":return r(Gn(Yn(z)),re);case"binary":return r(Gn(z),re);case"buffer":case"array":return r(z,re)}throw"Unsupported type "+re.type}function r(z,re){if(!z)return z;var J=re||{},te=J.dense?[]:{},oe="Sheet1",ue="",ve=0,_e={},ye=[],je=[],Z={s:{r:0,c:0},e:{r:0,c:0}},Ge=J.sheetRows||0;if(z[2]==0&&(z[3]==8||z[3]==9)&&z.length>=16&&z[14]==5&&z[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(z[2]==2)J.Enum=q,e(z,function(Pe,ut,Ye){switch(Ye){case 0:J.vers=Pe,Pe>=4096&&(J.qpro=!0);break;case 6:Z=Pe;break;case 204:Pe&&(ue=Pe);break;case 222:ue=Pe;break;case 15:case 51:J.qpro||(Pe[1].v=Pe[1].v.slice(1));case 13:case 14:case 16:Ye==14&&(Pe[2]&112)==112&&(Pe[2]&15)>1&&(Pe[2]&15)<15&&(Pe[1].z=J.dateNF||Qe[14],J.cellDates&&(Pe[1].t="d",Pe[1].v=qd(Pe[1].v))),J.qpro&&Pe[3]>ve&&(te["!ref"]=vt(Z),_e[oe]=te,ye.push(oe),te=J.dense?[]:{},Z={s:{r:0,c:0},e:{r:0,c:0}},ve=Pe[3],oe=ue||"Sheet"+(ve+1),ue="");var it=J.dense?(te[Pe[0].r]||[])[Pe[0].c]:te[at(Pe[0])];if(it){it.t=Pe[1].t,it.v=Pe[1].v,Pe[1].z!=null&&(it.z=Pe[1].z),Pe[1].f!=null&&(it.f=Pe[1].f);break}J.dense?(te[Pe[0].r]||(te[Pe[0].r]=[]),te[Pe[0].r][Pe[0].c]=Pe[1]):te[at(Pe[0])]=Pe[1];break}},J);else if(z[2]==26||z[2]==14)J.Enum=Y,z[2]==14&&(J.qpro=!0,z.l=0),e(z,function(Pe,ut,Ye){switch(Ye){case 204:oe=Pe;break;case 22:Pe[1].v=Pe[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Pe[3]>ve&&(te["!ref"]=vt(Z),_e[oe]=te,ye.push(oe),te=J.dense?[]:{},Z={s:{r:0,c:0},e:{r:0,c:0}},ve=Pe[3],oe="Sheet"+(ve+1)),Ge>0&&Pe[0].r>=Ge)break;J.dense?(te[Pe[0].r]||(te[Pe[0].r]=[]),te[Pe[0].r][Pe[0].c]=Pe[1]):te[at(Pe[0])]=Pe[1],Z.e.c<Pe[0].c&&(Z.e.c=Pe[0].c),Z.e.r<Pe[0].r&&(Z.e.r=Pe[0].r);break;case 27:Pe[14e3]&&(je[Pe[14e3][0]]=Pe[14e3][1]);break;case 1537:je[Pe[0]]=Pe[1],Pe[0]==ve&&(oe=Pe[1]);break}},J);else throw new Error("Unrecognized LOTUS BOF "+z[2]);if(te["!ref"]=vt(Z),_e[ue||oe]=te,ye.push(ue||oe),!je.length)return{SheetNames:ye,Sheets:_e};for(var Ae={},ze=[],qe=0;qe<je.length;++qe)_e[ye[qe]]?(ze.push(je[qe]||ye[qe]),Ae[je[qe]]=_e[je[qe]]||_e[ye[qe]]):(ze.push(je[qe]),Ae[je[qe]]={"!ref":"A1"});return{SheetNames:ze,Sheets:Ae}}function n(z,re){var J=re||{};if(+J.codepage>=0&&ha(+J.codepage),J.type=="string")throw new Error("Cannot write WK1 to JS string");var te=Fn(),oe=At(z["!ref"]),ue=Array.isArray(z),ve=[];Be(te,0,i(1030)),Be(te,6,l(oe));for(var _e=Math.min(oe.e.r,8191),ye=oe.s.r;ye<=_e;++ye)for(var je=mr(ye),Z=oe.s.c;Z<=oe.e.c;++Z){ye===oe.s.r&&(ve[Z]=ar(Z));var Ge=ve[Z]+je,Ae=ue?(z[ye]||[])[Z]:z[Ge];if(!(!Ae||Ae.t=="z"))if(Ae.t=="n")(Ae.v|0)==Ae.v&&Ae.v>=-32768&&Ae.v<=32767?Be(te,13,v(ye,Z,Ae.v)):Be(te,14,_(ye,Z,Ae.v));else{var ze=li(Ae);Be(te,15,p(ye,Z,ze.slice(0,239)))}}return Be(te,1),te.end()}function a(z,re){var J=re||{};if(+J.codepage>=0&&ha(+J.codepage),J.type=="string")throw new Error("Cannot write WK3 to JS string");var te=Fn();Be(te,0,s(z));for(var oe=0,ue=0;oe<z.SheetNames.length;++oe)(z.Sheets[z.SheetNames[oe]]||{})["!ref"]&&Be(te,27,M(z.SheetNames[oe],ue++));var ve=0;for(oe=0;oe<z.SheetNames.length;++oe){var _e=z.Sheets[z.SheetNames[oe]];if(!(!_e||!_e["!ref"])){for(var ye=At(_e["!ref"]),je=Array.isArray(_e),Z=[],Ge=Math.min(ye.e.r,8191),Ae=ye.s.r;Ae<=Ge;++Ae)for(var ze=mr(Ae),qe=ye.s.c;qe<=ye.e.c;++qe){Ae===ye.s.r&&(Z[qe]=ar(qe));var Pe=Z[qe]+ze,ut=je?(_e[Ae]||[])[qe]:_e[Pe];if(!(!ut||ut.t=="z"))if(ut.t=="n")Be(te,23,F(Ae,qe,ve,ut.v));else{var Ye=li(ut);Be(te,22,S(Ae,qe,ve,Ye.slice(0,239)))}}++ve}}return Be(te,1),te.end()}function i(z){var re=Se(2);return re.write_shift(2,z),re}function s(z){var re=Se(26);re.write_shift(2,4096),re.write_shift(2,4),re.write_shift(4,0);for(var J=0,te=0,oe=0,ue=0;ue<z.SheetNames.length;++ue){var ve=z.SheetNames[ue],_e=z.Sheets[ve];if(!(!_e||!_e["!ref"])){++oe;var ye=yn(_e["!ref"]);J<ye.e.r&&(J=ye.e.r),te<ye.e.c&&(te=ye.e.c)}}return J>8191&&(J=8191),re.write_shift(2,J),re.write_shift(1,oe),re.write_shift(1,te),re.write_shift(2,0),re.write_shift(2,0),re.write_shift(1,1),re.write_shift(1,2),re.write_shift(4,0),re.write_shift(4,0),re}function o(z,re,J){var te={s:{c:0,r:0},e:{c:0,r:0}};return re==8&&J.qpro?(te.s.c=z.read_shift(1),z.l++,te.s.r=z.read_shift(2),te.e.c=z.read_shift(1),z.l++,te.e.r=z.read_shift(2),te):(te.s.c=z.read_shift(2),te.s.r=z.read_shift(2),re==12&&J.qpro&&(z.l+=2),te.e.c=z.read_shift(2),te.e.r=z.read_shift(2),re==12&&J.qpro&&(z.l+=2),te.s.c==65535&&(te.s.c=te.e.c=te.s.r=te.e.r=0),te)}function l(z){var re=Se(8);return re.write_shift(2,z.s.c),re.write_shift(2,z.s.r),re.write_shift(2,z.e.c),re.write_shift(2,z.e.r),re}function c(z,re,J){var te=[{c:0,r:0},{t:"n",v:0},0,0];return J.qpro&&J.vers!=20768?(te[0].c=z.read_shift(1),te[3]=z.read_shift(1),te[0].r=z.read_shift(2),z.l+=2):(te[2]=z.read_shift(1),te[0].c=z.read_shift(2),te[0].r=z.read_shift(2)),te}function d(z,re,J){var te=z.l+re,oe=c(z,re,J);if(oe[1].t="s",J.vers==20768){z.l++;var ue=z.read_shift(1);return oe[1].v=z.read_shift(ue,"utf8"),oe}return J.qpro&&z.l++,oe[1].v=z.read_shift(te-z.l,"cstr"),oe}function p(z,re,J){var te=Se(7+J.length);te.write_shift(1,255),te.write_shift(2,re),te.write_shift(2,z),te.write_shift(1,39);for(var oe=0;oe<te.length;++oe){var ue=J.charCodeAt(oe);te.write_shift(1,ue>=128?95:ue)}return te.write_shift(1,0),te}function g(z,re,J){var te=c(z,re,J);return te[1].v=z.read_shift(2,"i"),te}function v(z,re,J){var te=Se(7);return te.write_shift(1,255),te.write_shift(2,re),te.write_shift(2,z),te.write_shift(2,J,"i"),te}function y(z,re,J){var te=c(z,re,J);return te[1].v=z.read_shift(8,"f"),te}function _(z,re,J){var te=Se(13);return te.write_shift(1,255),te.write_shift(2,re),te.write_shift(2,z),te.write_shift(8,J,"f"),te}function C(z,re,J){var te=z.l+re,oe=c(z,re,J);if(oe[1].v=z.read_shift(8,"f"),J.qpro)z.l=te;else{var ue=z.read_shift(2);h(z.slice(z.l,z.l+ue),oe),z.l+=ue}return oe}function E(z,re,J){var te=re&32768;return re&=-32769,re=(te?z:0)+(re>=8192?re-16384:re),(te?"":"$")+(J?ar(re):mr(re))}var T={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},b=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function h(z,re){Gr(z,0);for(var J=[],te=0,oe="",ue="",ve="",_e="";z.l<z.length;){var ye=z[z.l++];switch(ye){case 0:J.push(z.read_shift(8,"f"));break;case 1:ue=E(re[0].c,z.read_shift(2),!0),oe=E(re[0].r,z.read_shift(2),!1),J.push(ue+oe);break;case 2:{var je=E(re[0].c,z.read_shift(2),!0),Z=E(re[0].r,z.read_shift(2),!1);ue=E(re[0].c,z.read_shift(2),!0),oe=E(re[0].r,z.read_shift(2),!1),J.push(je+Z+":"+ue+oe)}break;case 3:if(z.l<z.length){console.error("WK1 premature formula end");return}break;case 4:J.push("("+J.pop()+")");break;case 5:J.push(z.read_shift(2));break;case 6:{for(var Ge="";ye=z[z.l++];)Ge+=String.fromCharCode(ye);J.push('"'+Ge.replace(/"/g,'""')+'"')}break;case 8:J.push("-"+J.pop());break;case 23:J.push("+"+J.pop());break;case 22:J.push("NOT("+J.pop()+")");break;case 20:case 21:_e=J.pop(),ve=J.pop(),J.push(["AND","OR"][ye-20]+"("+ve+","+_e+")");break;default:if(ye<32&&b[ye])_e=J.pop(),ve=J.pop(),J.push(ve+b[ye]+_e);else if(T[ye]){if(te=T[ye][1],te==69&&(te=z[z.l++]),te>J.length){console.error("WK1 bad formula parse 0x"+ye.toString(16)+":|"+J.join("|")+"|");return}var Ae=J.slice(-te);J.length-=te,J.push(T[ye][0]+"("+Ae.join(",")+")")}else return ye<=7?console.error("WK1 invalid opcode "+ye.toString(16)):ye<=24?console.error("WK1 unsupported op "+ye.toString(16)):ye<=30?console.error("WK1 invalid opcode "+ye.toString(16)):ye<=115?console.error("WK1 unsupported function opcode "+ye.toString(16)):console.error("WK1 unrecognized opcode "+ye.toString(16))}}J.length==1?re[1].f=""+J[0]:console.error("WK1 bad formula parse |"+J.join("|")+"|")}function m(z){var re=[{c:0,r:0},{t:"n",v:0},0];return re[0].r=z.read_shift(2),re[3]=z[z.l++],re[0].c=z[z.l++],re}function x(z,re){var J=m(z);return J[1].t="s",J[1].v=z.read_shift(re-4,"cstr"),J}function S(z,re,J,te){var oe=Se(6+te.length);oe.write_shift(2,z),oe.write_shift(1,J),oe.write_shift(1,re),oe.write_shift(1,39);for(var ue=0;ue<te.length;++ue){var ve=te.charCodeAt(ue);oe.write_shift(1,ve>=128?95:ve)}return oe.write_shift(1,0),oe}function A(z,re){var J=m(z);J[1].v=z.read_shift(2);var te=J[1].v>>1;if(J[1].v&1)switch(te&7){case 0:te=(te>>3)*5e3;break;case 1:te=(te>>3)*500;break;case 2:te=(te>>3)/20;break;case 3:te=(te>>3)/200;break;case 4:te=(te>>3)/2e3;break;case 5:te=(te>>3)/2e4;break;case 6:te=(te>>3)/16;break;case 7:te=(te>>3)/64;break}return J[1].v=te,J}function k(z,re){var J=m(z),te=z.read_shift(4),oe=z.read_shift(4),ue=z.read_shift(2);if(ue==65535)return te===0&&oe===3221225472?(J[1].t="e",J[1].v=15):te===0&&oe===3489660928?(J[1].t="e",J[1].v=42):J[1].v=0,J;var ve=ue&32768;return ue=(ue&32767)-16446,J[1].v=(1-ve*2)*(oe*Math.pow(2,ue+32)+te*Math.pow(2,ue)),J}function F(z,re,J,te){var oe=Se(14);if(oe.write_shift(2,z),oe.write_shift(1,J),oe.write_shift(1,re),te==0)return oe.write_shift(4,0),oe.write_shift(4,0),oe.write_shift(2,65535),oe;var ue=0,ve=0,_e=0,ye=0;return te<0&&(ue=1,te=-te),ve=Math.log2(te)|0,te/=Math.pow(2,ve-31),ye=te>>>0,ye&2147483648||(te/=2,++ve,ye=te>>>0),te-=ye,ye|=2147483648,ye>>>=0,te*=Math.pow(2,32),_e=te>>>0,oe.write_shift(4,_e),oe.write_shift(4,ye),ve+=16383+(ue?32768:0),oe.write_shift(2,ve),oe}function P(z,re){var J=k(z);return z.l+=re-14,J}function j(z,re){var J=m(z),te=z.read_shift(4);return J[1].v=te>>6,J}function L(z,re){var J=m(z),te=z.read_shift(8,"f");return J[1].v=te,J}function B(z,re){var J=L(z);return z.l+=re-10,J}function U(z,re){return z[z.l+re-1]==0?z.read_shift(re,"cstr"):""}function O(z,re){var J=z[z.l++];J>re-1&&(J=re-1);for(var te="";te.length<J;)te+=String.fromCharCode(z[z.l++]);return te}function N(z,re,J){if(!(!J.qpro||re<21)){var te=z.read_shift(1);z.l+=17,z.l+=1,z.l+=2;var oe=z.read_shift(re-21,"cstr");return[te,oe]}}function V(z,re){for(var J={},te=z.l+re;z.l<te;){var oe=z.read_shift(2);if(oe==14e3){for(J[oe]=[0,""],J[oe][0]=z.read_shift(2);z[z.l];)J[oe][1]+=String.fromCharCode(z[z.l]),z.l++;z.l++}}return J}function M(z,re){var J=Se(5+z.length);J.write_shift(2,14e3),J.write_shift(2,re);for(var te=0;te<z.length;++te){var oe=z.charCodeAt(te);J[J.l++]=oe>127?95:oe}return J[J.l++]=0,J}var q={0:{n:"BOF",f:Ar},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:g},14:{n:"NUMBER",f:y},15:{n:"LABEL",f:d},16:{n:"FORMULA",f:C},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:d},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:U},222:{n:"SHEETNAMELP",f:O},65535:{n:""}},Y={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:x},23:{n:"NUMBER17",f:k},24:{n:"NUMBER18",f:A},25:{n:"FORMULA19",f:P},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:V},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:j},38:{n:"??"},39:{n:"NUMBER27",f:L},40:{n:"FORMULA28",f:B},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:U},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:N},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}();function KB(e){var t={},r=e.match(rn),n=0,a=!1;if(r)for(;n!=r.length;++n){var i=ot(r[n]);switch(i[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!i.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if(i.val=="1")break;t.cp=w1[parseInt(i.val,10)];break;case"<outline":if(!i.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=i.val;break;case"<sz":t.sz=i.val;break;case"<strike":if(!i.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!i.val)break;switch(i.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting";break}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if(i.val=="0")break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if(i.val=="0")break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":i.rgb&&(t.color=i.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=i.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=i.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(i[0].charCodeAt(1)!==47&&!a)throw new Error("Unrecognized rich format "+i[0])}}return t}var XB=function(){var e=Nc("t"),t=Nc("rPr");function r(i){var s=i.match(e);if(!s)return{t:"s",v:""};var o={t:"s",v:Rt(s[1])},l=i.match(t);return l&&(o.s=KB(l[1])),o}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(s){return s.replace(n,"").split(a).map(r).filter(function(o){return o.v})}}(),ZB=function(){var t=/(\r\n|\n)/g;function r(a,i,s){var o=[];a.u&&o.push("text-decoration: underline;"),a.uval&&o.push("text-underline-style:"+a.uval+";"),a.sz&&o.push("font-size:"+a.sz+"pt;"),a.outline&&o.push("text-effect: outline;"),a.shadow&&o.push("text-shadow: auto;"),i.push('<span style="'+o.join("")+'">'),a.b&&(i.push("<b>"),s.push("</b>")),a.i&&(i.push("<i>"),s.push("</i>")),a.strike&&(i.push("<s>"),s.push("</s>"));var l=a.valign||"";return l=="superscript"||l=="super"?l="sup":l=="subscript"&&(l="sub"),l!=""&&(i.push("<"+l+">"),s.push("</"+l+">")),s.push("</span>"),a}function n(a){var i=[[],a.v,[]];return a.v?(a.s&&r(a.s,i[0],i[2]),i[0].join("")+i[1].replace(t,"<br/>")+i[2].join("")):""}return function(i){return i.map(n).join("")}}(),JB=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,QB=/<(?:\w+:)?r>/,ej=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function om(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Rt(Yt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Yt(e),r&&(n.h=P1(n.t))):e.match(QB)&&(n.r=Yt(e),n.t=Rt(Yt((e.replace(ej,"").match(JB)||[]).join("").replace(rn,""))),r&&(n.h=ZB(XB(n.r)))),n):{t:""}}var tj=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,rj=/<(?:\w+:)?(?:si|sstItem)>/g,nj=/<\/(?:\w+:)?(?:si|sstItem)>/;function aj(e,t){var r=[],n="";if(!e)return r;var a=e.match(tj);if(a){n=a[2].replace(rj,"").split(nj);for(var i=0;i!=n.length;++i){var s=om(n[i].trim(),t);s!=null&&(r[r.length]=s)}a=ot(a[1]),r.Count=a.count,r.Unique=a.uniqueCount}return r}var ij=/^\s|\s$|[\t\n\r]/;function Pk(e,t){if(!t.bookSST)return"";var r=[br];r[r.length]=Le("sst",null,{xmlns:mo[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(ij)&&(i+=' xml:space="preserve"'),i+=">"+zt(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function sj(e){return[e.read_shift(4),e.read_shift(4)]}function oj(e,t){var r=[],n=!1;return zi(e,function(i,s,o){switch(o){case 159:r.Count=i[0],r.Unique=i[1];break;case 19:r.push(i);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(s.T,!n||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),r}function lj(e,t){return t||(t=Se(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var uj=_7;function cj(e){var t=Fn();Oe(t,159,lj(e));for(var r=0;r<e.length;++r)Oe(t,19,uj(e[r]));return Oe(t,160),t.end()}function Dk(e){if(typeof Dt<"u")return Dt.utils.encode(fo,e);for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function $i(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function fj(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=$i(e,4),t.U=$i(e,4),t.W=$i(e,4),t}function dj(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},a=e.read_shift(4),i=[];a-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function hj(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(dj(e));return t}function pj(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function gj(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=$i(e,4),t.U=$i(e,4),t.W=$i(e,4),t}function mj(e){var t=gj(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function Rk(e,t){var r=e.l+t,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function Nk(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function vj(e){var t=$i(e);switch(t.Minor){case 2:return[t.Minor,xj(e)];case 3:return[t.Minor,_j()];case 4:return[t.Minor,yj(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function xj(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=Rk(e,r),a=Nk(e,e.length-e.l);return{t:"Std",h:n,v:a}}function _j(){throw new Error("File is password-protected: ECMA-376 Extensible")}function yj(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(rn,function(i){var s=ot(i);switch(si(s[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach(function(o){n[o]=s[o]});break;case"<dataIntegrity":n.encryptedHmacKey=s.encryptedHmacKey,n.encryptedHmacValue=s.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=s.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(s);break;default:throw s[0]}}),n}function wj(e,t){var r={},n=r.EncryptionVersionInfo=$i(e,4);if(t-=4,n.Minor!=2)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var a=e.read_shift(4);return t-=4,r.EncryptionHeader=Rk(e,a),t-=a,r.EncryptionVerifier=Nk(e,t),r}function bj(e){var t={},r=t.EncryptionVersionInfo=$i(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function lm(e){var t=0,r,n=Dk(e),a=n.length+1,i,s,o,l,c;for(r=hs(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)s=r[i],o=t&16384?1:0,l=t<<1&32767,c=o|l,t=c^s;return t^52811}var Mk=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(s){return(s/2|s*128)&255},a=function(s,o){return n(s^o)},i=function(s){for(var o=t[s.length-1],l=104,c=s.length-1;c>=0;--c)for(var d=s[c],p=0;p!=7;++p)d&64&&(o^=r[l]),d*=2,--l;return o};return function(s){for(var o=Dk(s),l=i(o),c=o.length,d=hs(16),p=0;p!=16;++p)d[p]=0;var g,v,y;for((c&1)===1&&(g=l>>8,d[c]=a(e[0],g),--c,g=l&255,v=o[o.length-1],d[c]=a(v,g));c>0;)--c,g=l>>8,d[c]=a(o[c],g),--c,g=l&255,d[c]=a(o[c],g);for(c=15,y=15-o.length;y>0;)g=l>>8,d[c]=a(e[y],g),--c,--y,g=l&255,d[c]=a(o[c],g),--c,--y;return d}}(),Sj=function(e,t,r,n,a){a||(a=t),n||(n=Mk(e));var i,s;for(i=0;i!=t.length;++i)s=t[i],s^=n[r],s=(s>>5|s<<3)&255,a[i]=s,++r;return[a,r,n]},kj=function(e){var t=0,r=Mk(e);return function(n){var a=Sj("",n,t,r);return t=a[1],a[0]}};function Tj(e,t,r,n){var a={key:Ar(e),verificationBytes:Ar(e)};return r.password&&(a.verifier=lm(r.password)),n.valid=a.verificationBytes===a.verifier,n.valid&&(n.insitu=kj(r.password)),a}function Ej(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=bj(e):n.Data=wj(e,t),n}function Cj(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?Ej(e,t-2,n):Tj(e,r.biff>=8?t:t-2,r,n),n}var Ik=function(){function e(a,i){switch(i.type){case"base64":return t(Yn(a),i);case"binary":return t(a,i);case"buffer":return t(bt&&Buffer.isBuffer(a)?a.toString("binary"):ps(a),i);case"array":return t(go(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var s=i||{},o=s.dense?[]:{},l=a.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(d,p){Array.isArray(o)&&(o[p]=[]);for(var g=/\\\w+\b/g,v=0,y,_=-1;y=g.exec(d);){switch(y[0]){case"\\cell":var C=d.slice(v,g.lastIndex-y[0].length);if(C[0]==" "&&(C=C.slice(1)),++_,C.length){var E={v:C,t:"s"};Array.isArray(o)?o[p][_]=E:o[at({r:p,c:_})]=E}break}v=g.lastIndex}_>c.e.c&&(c.e.c=_)}),o["!ref"]=vt(c),o}function r(a,i){return xs(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],s=At(a["!ref"]),o,l=Array.isArray(a),c=s.s.r;c<=s.e.r;++c){i.push("\\trowd\\trautofit1");for(var d=s.s.c;d<=s.e.c;++d)i.push("\\cellx"+(d+1));for(i.push("\\pard\\intbl"),d=s.s.c;d<=s.e.c;++d){var p=at({r:c,c:d});o=l?(a[c]||[])[d]:a[p],!(!o||o.v==null&&(!o.f||o.F))&&(i.push(" "+(o.w||(li(o),o.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Aj(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function $c(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function Oj(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(t,r,n),i=Math.min(t,r,n),s=a-i;if(s===0)return[0,0,t];var o=0,l=0,c=a+i;switch(l=s/(c>1?2-c:c),a){case t:o=((r-n)/s+6)%6;break;case r:o=(n-t)/s+2;break;case n:o=(t-r)/s+4;break}return[o/6,l,c/2]}function Fj(e){var t=e[0],r=e[1],n=e[2],a=r*2*(n<.5?n:1-n),i=n-a/2,s=[i,i,i],o=6*t,l;if(r!==0)switch(o|0){case 0:case 6:l=a*o,s[0]+=a,s[1]+=l;break;case 1:l=a*(2-o),s[0]+=l,s[1]+=a;break;case 2:l=a*(o-2),s[1]+=a,s[2]+=l;break;case 3:l=a*(4-o),s[1]+=l,s[2]+=a;break;case 4:l=a*(o-4),s[2]+=a,s[0]+=l;break;case 5:l=a*(6-o),s[2]+=l,s[0]+=a;break}for(var c=0;c!=3;++c)s[c]=Math.round(s[c]*255);return s}function s0(e,t){if(t===0)return e;var r=Oj(Aj(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),$c(Fj(r))}var Lk=6,Pj=15,Dj=1,ln=Lk;function Vc(e){return Math.floor((e+Math.round(128/ln)/256)*ln)}function qc(e){return Math.floor((e-5)/ln*100+.5)/100}function o0(e){return Math.round((e*ln+5)/ln*256)/256}function um(e){return o0(qc(Vc(e)))}function cm(e){var t=Math.abs(e-um(e)),r=ln;if(t>.005)for(ln=Dj;ln<Pj;++ln)Math.abs(e-um(e))<=t&&(t=Math.abs(e-um(e)),r=ln);ln=r}function ys(e){e.width?(e.wpx=Vc(e.width),e.wch=qc(e.wpx),e.MDW=ln):e.wpx?(e.wch=qc(e.wpx),e.width=o0(e.wch),e.MDW=ln):typeof e.wch=="number"&&(e.width=o0(e.wch),e.wpx=Vc(e.width),e.MDW=ln),e.customWidth&&delete e.customWidth}var Rj=96,Bk=Rj;function Yc(e){return e*96/Bk}function Dl(e){return e*Bk/96}var Nj={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function Mj(e,t,r,n){t.Borders=[];var a={},i=!1;(e[0].match(rn)||[]).forEach(function(s){var o=ot(s);switch(si(o[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":a={},o.diagonalUp&&(a.diagonalUp=nr(o.diagonalUp)),o.diagonalDown&&(a.diagonalDown=nr(o.diagonalDown)),t.Borders.push(a);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in borders")}})}function Ij(e,t,r,n){t.Fills=[];var a={},i=!1;(e[0].match(rn)||[]).forEach(function(s){var o=ot(s);switch(si(o[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":a={},t.Fills.push(a);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(a),a={};break;case"<patternFill":case"<patternFill>":o.patternType&&(a.patternType=o.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":a.bgColor||(a.bgColor={}),o.indexed&&(a.bgColor.indexed=parseInt(o.indexed,10)),o.theme&&(a.bgColor.theme=parseInt(o.theme,10)),o.tint&&(a.bgColor.tint=parseFloat(o.tint)),o.rgb&&(a.bgColor.rgb=o.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":a.fgColor||(a.fgColor={}),o.theme&&(a.fgColor.theme=parseInt(o.theme,10)),o.tint&&(a.fgColor.tint=parseFloat(o.tint)),o.rgb!=null&&(a.fgColor.rgb=o.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in fills")}})}function Lj(e,t,r,n){t.Fonts=[];var a={},i=!1;(e[0].match(rn)||[]).forEach(function(s){var o=ot(s);switch(si(o[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(a),a={};break;case"<name":o.val&&(a.name=Yt(o.val));break;case"<name/>":case"</name>":break;case"<b":a.bold=o.val?nr(o.val):1;break;case"<b/>":a.bold=1;break;case"<i":a.italic=o.val?nr(o.val):1;break;case"<i/>":a.italic=1;break;case"<u":switch(o.val){case"none":a.underline=0;break;case"single":a.underline=1;break;case"double":a.underline=2;break;case"singleAccounting":a.underline=33;break;case"doubleAccounting":a.underline=34;break}break;case"<u/>":a.underline=1;break;case"<strike":a.strike=o.val?nr(o.val):1;break;case"<strike/>":a.strike=1;break;case"<outline":a.outline=o.val?nr(o.val):1;break;case"<outline/>":a.outline=1;break;case"<shadow":a.shadow=o.val?nr(o.val):1;break;case"<shadow/>":a.shadow=1;break;case"<condense":a.condense=o.val?nr(o.val):1;break;case"<condense/>":a.condense=1;break;case"<extend":a.extend=o.val?nr(o.val):1;break;case"<extend/>":a.extend=1;break;case"<sz":o.val&&(a.sz=+o.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":o.val&&(a.vertAlign=o.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":o.val&&(a.family=parseInt(o.val,10));break;case"<family/>":case"</family>":break;case"<scheme":o.val&&(a.scheme=o.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(o.val=="1")break;o.codepage=w1[parseInt(o.val,10)];break;case"<color":if(a.color||(a.color={}),o.auto&&(a.color.auto=nr(o.auto)),o.rgb)a.color.rgb=o.rgb.slice(-6);else if(o.indexed){a.color.index=parseInt(o.indexed,10);var l=So[a.color.index];a.color.index==81&&(l=So[1]),l||(l=So[1]),a.color.rgb=l[0].toString(16)+l[1].toString(16)+l[2].toString(16)}else o.theme&&(a.color.theme=parseInt(o.theme,10),o.tint&&(a.color.tint=parseFloat(o.tint)),o.theme&&r.themeElements&&r.themeElements.clrScheme&&(a.color.rgb=s0(r.themeElements.clrScheme[a.color.theme].rgb,a.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in fonts")}})}function Bj(e,t,r){t.NumberFmt=[];for(var n=pr(Qe),a=0;a<n.length;++a)t.NumberFmt[n[a]]=Qe[n[a]];var i=e[0].match(rn);if(i)for(a=0;a<i.length;++a){var s=ot(i[a]);switch(si(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var o=Rt(Yt(s.formatCode)),l=parseInt(s.numFmtId,10);if(t.NumberFmt[l]=o,l>0){if(l>392){for(l=392;l>60&&t.NumberFmt[l]!=null;--l);t.NumberFmt[l]=o}ii(o,l)}}break;case"</numFmt>":break;default:if(r.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}function jj(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=Le("numFmt",null,{numFmtId:n,formatCode:zt(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=Le("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var l0=["numFmtId","fillId","fontId","borderId","xfId"],u0=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Uj(e,t,r){t.CellXf=[];var n,a=!1;(e[0].match(rn)||[]).forEach(function(i){var s=ot(i),o=0;switch(si(s[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=s,delete n[0],o=0;o<l0.length;++o)n[l0[o]]&&(n[l0[o]]=parseInt(n[l0[o]],10));for(o=0;o<u0.length;++o)n[u0[o]]&&(n[u0[o]]=nr(n[u0[o]]));if(t.NumberFmt&&n.numFmtId>392){for(o=392;o>60;--o)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[o]){n.numFmtId=o;break}}t.CellXf.push(n);break;case"</xf>":break;case"<alignment":case"<alignment/>":var l={};s.vertical&&(l.vertical=s.vertical),s.horizontal&&(l.horizontal=s.horizontal),s.textRotation!=null&&(l.textRotation=s.textRotation),s.indent&&(l.indent=s.indent),s.wrapText&&(l.wrapText=nr(s.wrapText)),n.alignment=l;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":a=!0;break;case"</AlternateContent>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}function Hj(e){var t=[];return t[t.length]=Le("cellXfs",null),e.forEach(function(r){t[t.length]=Le("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=Le("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var zj=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,l,c){var d={};if(!o)return d;o=o.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var p;return(p=o.match(t))&&Bj(p,d,c),(p=o.match(a))&&Lj(p,d,l,c),(p=o.match(n))&&Ij(p,d,l,c),(p=o.match(i))&&Mj(p,d,l,c),(p=o.match(r))&&Uj(p,d,c),d}}();function jk(e,t){var r=[br,Le("styleSheet",null,{xmlns:mo[0],"xmlns:vt":Rr.vt})],n;return e.SSF&&(n=jj(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=Hj(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function Wj(e,t){var r=e.read_shift(2),n=an(e);return[r,n]}function $j(e,t,r){r||(r=Se(6+4*t.length)),r.write_shift(2,e),jr(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Vj(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=E7(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var o=e.read_shift(1);o>0&&(n.family=o);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=T7(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=an(e),n}function qj(e,t){t||(t=Se(25+4*32)),t.write_shift(2,e.sz*20),C7(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Zd(e.color,t);var n=0;return n=2,t.write_shift(1,n),jr(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Yj=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],fm,Gj=nn;function Uk(e,t){t||(t=Se(4*3+8*7+16*1)),fm||(fm=Wd(Yj));var r=fm[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Zd({auto:1},t),Zd({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Kj(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function Hk(e,t,r){r||(r=Se(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Gc(e,t){return t||(t=Se(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Xj=nn;function Zj(e,t){return t||(t=Se(51)),t.write_shift(1,0),Gc(null,t),Gc(null,t),Gc(null,t),Gc(null,t),Gc(null,t),t.length>t.l?t.slice(0,t.l):t}function Jj(e,t){return t||(t=Se(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),Xd(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function Qj(e,t,r){var n=Se(2052);return n.write_shift(4,e),Xd(t,n),Xd(r,n),n.length>n.l?n.slice(0,n.l):n}function eU(e,t,r){var n={};n.NumberFmt=[];for(var a in Qe)n.NumberFmt[a]=Qe[a];n.CellXf=[],n.Fonts=[];var i=[],s=!1;return zi(e,function(l,c,d){switch(d){case 44:n.NumberFmt[l[0]]=l[1],ii(l[1],l[0]);break;case 43:n.Fonts.push(l),l.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(l.color.rgb=s0(t.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&n.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:i.push(d),s=!0;break;case 38:i.pop(),s=!1;break;default:if(c.T>0)i.push(d);else if(c.T<0)i.pop();else if(!s||r.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+d.toString(16))}}),n}function tU(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(Oe(e,615,Wa(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&Oe(e,44,$j(a,t[a]))}),Oe(e,616))}}function rU(e){var t=1;Oe(e,611,Wa(t)),Oe(e,43,qj({sz:12,color:{theme:1},name:"Calibri",family:2})),Oe(e,612)}function nU(e){var t=2;Oe(e,603,Wa(t)),Oe(e,45,Uk({patternType:"none"})),Oe(e,45,Uk({patternType:"gray125"})),Oe(e,604)}function aU(e){var t=1;Oe(e,613,Wa(t)),Oe(e,46,Zj()),Oe(e,614)}function iU(e){var t=1;Oe(e,626,Wa(t)),Oe(e,47,Hk({numFmtId:0},65535)),Oe(e,627)}function sU(e,t){Oe(e,617,Wa(t.length)),t.forEach(function(r){Oe(e,47,Hk(r,0))}),Oe(e,618)}function oU(e){var t=1;Oe(e,619,Wa(t)),Oe(e,48,Jj({xfId:0,name:"Normal"})),Oe(e,620)}function lU(e){var t=0;Oe(e,505,Wa(t)),Oe(e,506)}function uU(e){var t=0;Oe(e,508,Qj(t,"TableStyleMedium9","PivotStyleMedium4")),Oe(e,509)}function cU(e,t){var r=Fn();return Oe(r,278),tU(r,e.SSF),rU(r),nU(r),aU(r),iU(r),sU(r,t.cellXfs),oU(r),lU(r),uU(r),Oe(r,279),r.end()}var fU=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function dU(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(rn)||[]).forEach(function(a){var i=ot(a);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=i.val;break;case"<a:sysClr":n.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[fU.indexOf(i[0])]=n,n={}):n.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function hU(){}function pU(){}var gU=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,mU=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,vU=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function xU(e,t,r){t.themeElements={};var n;[["clrScheme",gU,dU],["fontScheme",mU,hU],["fmtScheme",vU,pU]].forEach(function(a){if(!(n=e.match(a[1])))throw new Error(a[0]+" not found in themeElements");a[2](n,t,r)})}var _U=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function zk(e,t){(!e||e.length===0)&&(e=dm());var r,n={};if(!(r=e.match(_U)))throw new Error("themeElements not found in theme");return xU(r[0],n,t),n.raw=e,n}function dm(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[br];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function yU(e,t,r){var n=e.l+t,a=e.read_shift(4);if(a!==124226){if(!r.cellStyles){e.l=n;return}var i=e.slice(e.l);e.l=n;var s;try{s=s3(i,{type:"array"})}catch{return}var o=Xn(s,"theme/theme/theme1.xml",!0);if(o)return zk(o,r)}}function wU(e){return e.read_shift(4)}function bU(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=SU(e,4);break;case 2:t.xclrValue=dk(e);break;case 3:t.xclrValue=wU(e);break;case 4:e.l+=4;break}return e.l+=8,t}function SU(e,t){return nn(e,t)}function kU(e,t){return nn(e,t)}function TU(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=bU(e);break;case 6:n[1]=kU(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function EU(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),i=[];a-- >0;)i.push(TU(e,r-e.l));return{ixfe:n,ext:i}}function CU(e,t){t.forEach(function(r){switch(r[0]){}})}function AU(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:an(e)}}function OU(e){var t=Se(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),jr(e.name,t),t.slice(0,t.l)}function FU(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function PU(e){var t=Se(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function DU(e,t){var r=Se(8+2*t.length);return r.write_shift(4,e),jr(t,r),r.slice(0,r.l)}function RU(e){return e.l+=4,e.read_shift(4)!=0}function NU(e,t){var r=Se(8);return r.write_shift(4,e),r.write_shift(4,1),r}function MU(e,t,r){var n={Types:[],Cell:[],Value:[]},a=r||{},i=[],s=!1,o=2;return zi(e,function(l,c,d){switch(d){case 335:n.Types.push({name:l.name});break;case 51:l.forEach(function(p){o==1?n.Cell.push({type:n.Types[p[0]-1].name,index:p[1]}):o==0&&n.Value.push({type:n.Types[p[0]-1].name,index:p[1]})});break;case 337:o=l?1:0;break;case 338:o=2;break;case 35:i.push(d),s=!0;break;case 36:i.pop(),s=!1;break;default:if(!c.T){if(!s||a.WTF&&i[i.length-1]!=35)throw new Error("Unexpected record 0x"+d.toString(16))}}}),n}function IU(){var e=Fn();return Oe(e,332),Oe(e,334,Wa(1)),Oe(e,335,OU({name:"XLDAPR",version:12e4,flags:3496657072})),Oe(e,336),Oe(e,339,DU(1,"XLDAPR")),Oe(e,52),Oe(e,35,Wa(514)),Oe(e,4096,Wa(0)),Oe(e,4097,xa(1)),Oe(e,36),Oe(e,53),Oe(e,340),Oe(e,337,NU(1)),Oe(e,51,PU([[1,0]])),Oe(e,338),Oe(e,333),e.end()}function LU(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var a=!1,i=2,s;return e.replace(rn,function(o){var l=ot(o);switch(si(l[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:l.name});break;case"</metadataType>":break;case"<futureMetadata":for(var c=0;c<n.Types.length;++c)n.Types[c].name==l.name&&(s=n.Types[c]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":i==1?n.Cell.push({type:n.Types[l.t-1].name,index:+l.v}):i==0&&n.Value.push({type:n.Types[l.t-1].name,index:+l.v});break;case"</rc>":break;case"<cellMetadata":i=1;break;case"</cellMetadata>":i=2;break;case"<valueMetadata":i=0;break;case"</valueMetadata>":i=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<rvb":if(!s)break;s.offsets||(s.offsets=[]),s.offsets.push(+l.i);break;default:if(!a&&r.WTF)throw new Error("unrecognized "+l[0]+" in metadata")}return o}),n}function Wk(){var e=[br];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
403
+ <metadataTypes count="1">
404
+ <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
405
+ </metadataTypes>
406
+ <futureMetadata name="XLDAPR" count="1">
407
+ <bk>
408
+ <extLst>
409
+ <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
410
+ <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
411
+ </ext>
412
+ </extLst>
413
+ </bk>
414
+ </futureMetadata>
415
+ <cellMetadata count="1">
416
+ <bk>
417
+ <rc t="1" v="0"/>
418
+ </bk>
419
+ </cellMetadata>
420
+ </metadata>`),e.join("")}function BU(e){var t=[];if(!e)return t;var r=1;return(e.match(rn)||[]).forEach(function(n){var a=ot(n);switch(a[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete a[0],a.i?r=a.i:a.i=r,t.push(a);break}}),t}function jU(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=at(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}function UU(e,t,r){var n=[];return zi(e,function(i,s,o){switch(o){case 63:n.push(i);break;default:if(!s.T)throw new Error("Unexpected record 0x"+o.toString(16))}}),n}function Zte(){}function HU(e,t,r,n){if(!e)return e;var a=n||{},i=!1;zi(e,function(o,l,c){switch(c){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(!l.T){if(!i||a.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}},a)}function zU(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var Rl=1024;function $k(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[Le("xml",null,{"xmlns:v":Zn.v,"xmlns:o":Zn.o,"xmlns:x":Zn.x,"xmlns:mv":Zn.mv}).replace(/\/>/,">"),Le("o:shapelayout",Le("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Le("v:shapetype",[Le("v:stroke",null,{joinstyle:"miter"}),Le("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Rl<e*1e3;)Rl+=1e3;return t.forEach(function(i){var s=fr(i[0]),o={color2:"#BEFF82",type:"gradient"};o.type=="gradient"&&(o.angle="-180");var l=o.type=="gradient"?Le("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Le("v:fill",l,o),d={on:"t",obscured:"t"};++Rl,a=a.concat(["<v:shape"+Mc({id:"_x0000_s"+Rl,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,Le("v:shadow",null,d),Le("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Yr("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Yr("x:AutoFill","False"),Yr("x:Row",String(s.r)),Yr("x:Column",String(s.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function Vk(e,t,r,n){var a=Array.isArray(e),i;t.forEach(function(s){var o=fr(s.ref);if(a?(e[o.r]||(e[o.r]=[]),i=e[o.r][o.c]):i=e[s.ref],!i){i={t:"z"},a?e[o.r][o.c]=i:e[s.ref]=i;var l=At(e["!ref"]||"BDWGO1000001:A1");l.s.r>o.r&&(l.s.r=o.r),l.e.r<o.r&&(l.e.r=o.r),l.s.c>o.c&&(l.s.c=o.c),l.e.c<o.c&&(l.e.c=o.c);var c=vt(l);c!==e["!ref"]&&(e["!ref"]=c)}i.c||(i.c=[]);var d={a:s.author,t:s.t,r:s.r,T:r};s.h&&(d.h=s.h);for(var p=i.c.length-1;p>=0;--p){if(!r&&i.c[p].T)return;r&&!i.c[p].T&&i.c.splice(p,1)}if(r&&n){for(p=0;p<n.length;++p)if(d.a==n[p].id){d.a=n[p].name||d.a;break}}i.c.push(d)})}function WU(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],a=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);a&&a[1]&&a[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?author[^>]*>(.*)/);o&&r.push(o[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?comment[^>]*>/);if(o){var l=ot(o[0]),c={author:l.authorId&&r[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},d=fr(l.ref);if(!(t.sheetRows&&t.sheetRows<=d.r)){var p=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),g=!!p&&!!p[1]&&om(p[1])||{r:"",t:"",h:""};c.r=g.r,g.r=="<t></t>"&&(g.t=g.h=""),c.t=(g.t||"").replace(/\r\n/g,`
421
+ `).replace(/\r/g,`
422
+ `),t.cellHTML&&(c.h=g.h),n.push(c)}}}}),n}function qk(e){var t=[br,Le("comments",null,{xmlns:mo[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var i=zt(a.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(a=r.indexOf(zt(l.a))),i.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)t.push(Yr("t",zt(i[0]||"")));else{for(var s=`Comment:
423
+ `+i[0]+`
424
+ `,o=1;o<i.length;++o)s+=`Reply:
425
+ `+i[o]+`
426
+ `;t.push(Yr("t",zt(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function $U(e,t){var r=[],n=!1,a={},i=0;return e.replace(rn,function(o,l){var c=ot(o);switch(si(c[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":a={author:c.personId,guid:c.id,ref:c.ref,T:1};break;case"</threadedComment>":a.t!=null&&r.push(a);break;case"<text>":case"<text":i=l+o.length;break;case"</text>":a.t=e.slice(i,l).replace(/\r\n/g,`
427
+ `).replace(/\r/g,`
428
+ `);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return o}),r}function VU(e,t,r){var n=[br,Le("ThreadedComments",null,{xmlns:Rr.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var l={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};o==0?i=l.id:l.parentId=i,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(Le("threadedComment",Yr("text",s.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function qU(e,t){var r=[],n=!1;return e.replace(rn,function(i){var s=ot(i);switch(si(s[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:s.displayname,id:s.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return i}),r}function YU(e){var t=[br,Le("personList",null,{xmlns:Rr.TCMNT,"xmlns:x":mo[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Le("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function GU(e){var t={};t.iauthor=e.read_shift(4);var r=wo(e);return t.rfx=r.s,t.ref=at(r.s),e.l+=16,t}function KU(e,t){return t==null&&(t=Se(36)),t.write_shift(4,e[1].iauthor),Ol(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var XU=an;function ZU(e){return jr(e.slice(0,54))}function JU(e,t){var r=[],n=[],a={},i=!1;return zi(e,function(o,l,c){switch(c){case 632:n.push(o);break;case 635:a=o;break;case 637:a.t=o.t,a.h=o.h,a.r=o.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!l.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}),r}function QU(e){var t=Fn(),r=[];return Oe(t,628),Oe(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),Oe(t,632,ZU(a.a)))})}),Oe(t,631),Oe(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:fr(n[0]),e:fr(n[0])};Oe(t,635,KU([i,a])),a.t&&a.t.length>0&&Oe(t,637,w7(a)),Oe(t,636),delete a.iauthor})}),Oe(t,634),Oe(t,629),t.end()}var eH="application/vnd.ms-office.vbaProject";function tH(e){var t=Xe.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Xe.utils.cfb_add(t,a,e.FileIndex[n].content)}}),Xe.write(t)}function rH(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&Xe.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var Yk=["xlsb","xlsm","xlam","biff8","xla"];function nH(){return{"!type":"dialog"}}function aH(){return{"!type":"dialog"}}function iH(){return{"!type":"macro"}}function sH(){return{"!type":"macro"}}var Nl=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,s){var o=!1,l=!1;i.length==0?l=!0:i.charAt(0)=="["&&(l=!0,i=i.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var c=i.length>0?parseInt(i,10)|0:0,d=s.length>0?parseInt(s,10)|0:0;return o?d+=t.c:--d,l?c+=t.r:--c,a+(o?"":"$")+ar(d)+(l?"":"$")+mr(c)}return function(a,i){return t=i,a.replace(e,r)}}(),hm=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,pm=function(){return function(t,r){return t.replace(hm,function(n,a,i,s,o,l){var c=W1(s)-(i?0:r.c),d=z1(l)-(o?0:r.r),p=d==0?"":o?d+1:"["+d+"]",g=c==0?"":i?c+1:"["+c+"]";return a+"R"+p+"C"+g})}}();function Gk(e,t){return e.replace(hm,function(r,n,a,i,s,o){return n+(a=="$"?a+i:ar(W1(i)+t.c))+(s=="$"?s+o:mr(z1(o)+t.r))})}function oH(e,t,r){var n=yn(t),a=n.s,i=fr(r),s={r:i.r-a.r,c:i.c-a.c};return Gk(e,s)}function lH(e){return e.length!=1}function Kk(e){return e.replace(/_xlfn\./g,"")}function Or(e){e.l+=1}function ws(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function Xk(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Zk(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=ws(e),o=ws(e);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function Zk(e){var t=ws(e),r=ws(e),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function uH(e,t,r){if(r.biff<8)return Zk(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=ws(e),s=ws(e);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function Jk(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return cH(e);var n=e.read_shift(r&&r.biff==12?4:2),a=ws(e);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function cH(e){var t=ws(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function fH(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function dH(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return hH(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,o=(i&32768)>>15;if(i&=16383,o==1)for(;a>524287;)a-=1048576;if(s==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:s,rRel:o}}function hH(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function pH(e,t,r){var n=(e[e.l++]&96)>>5,a=Xk(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function gH(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var s=Xk(e,i,r);return[n,a,s]}function mH(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function vH(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function xH(e,t,r){var n=(e[e.l++]&96)>>5,a=uH(e,t-1,r);return[n,a]}function _H(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Qk(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function yH(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function wH(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function bH(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function SH(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function kH(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function eT(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function TH(e){return e.read_shift(2),eT(e)}function EH(e){return e.read_shift(2),eT(e)}function CH(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=Jk(e,0,r);return[n,a]}function AH(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=dH(e,0,r);return[n,a]}function OH(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=Jk(e,0,r);return[n,a,i]}function FH(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[Rz[a],iT[a],n]}function PH(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:DH(e);return[a,(i[0]===0?iT:Dz)[i[1]]]}function DH(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function RH(e,t,r){e.l+=r&&r.biff==2?3:4}function NH(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function MH(e){return e.l++,Wi[e.read_shift(1)]}function IH(e){return e.l++,e.read_shift(2)}function LH(e){return e.l++,e.read_shift(1)!==0}function BH(e){return e.l++,sn(e)}function jH(e,t,r){return e.l++,zc(e,t-1,r)}function UH(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Sr(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Wi[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=sn(e);break;case 2:r[1]=Eo(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function HH(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?wo:a0)(e));return a}function zH(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,s=[];i!=n&&(s[i]=[]);++i)for(var o=0;o!=a;++o)s[i][o]=UH(e,r.biff);return s}function WH(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function $H(e,t,r){if(r.biff==5)return VH(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function VH(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function qH(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function YH(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function GH(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function KH(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var XH=nn,ZH=nn,JH=nn;function Kc(e,t,r){return e.l+=2,[fH(e)]}function gm(e){return e.l+=6,[]}var QH=Kc,ez=gm,tz=gm,rz=Kc;function tT(e){return e.l+=2,[Ar(e),e.read_shift(2)&1]}var nz=Kc,az=tT,iz=gm,sz=Kc,oz=Kc,lz=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function uz(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),s=lz[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:a,C:i}}function cz(e){return e.l+=2,[e.read_shift(4)]}function fz(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function dz(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function hz(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function pz(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function gz(e){return e.l+=4,[0,0]}var rT={1:{n:"PtgExp",f:NH},2:{n:"PtgTbl",f:JH},3:{n:"PtgAdd",f:Or},4:{n:"PtgSub",f:Or},5:{n:"PtgMul",f:Or},6:{n:"PtgDiv",f:Or},7:{n:"PtgPower",f:Or},8:{n:"PtgConcat",f:Or},9:{n:"PtgLt",f:Or},10:{n:"PtgLe",f:Or},11:{n:"PtgEq",f:Or},12:{n:"PtgGe",f:Or},13:{n:"PtgGt",f:Or},14:{n:"PtgNe",f:Or},15:{n:"PtgIsect",f:Or},16:{n:"PtgUnion",f:Or},17:{n:"PtgRange",f:Or},18:{n:"PtgUplus",f:Or},19:{n:"PtgUminus",f:Or},20:{n:"PtgPercent",f:Or},21:{n:"PtgParen",f:Or},22:{n:"PtgMissArg",f:Or},23:{n:"PtgStr",f:jH},26:{n:"PtgSheet",f:fz},27:{n:"PtgEndSheet",f:dz},28:{n:"PtgErr",f:MH},29:{n:"PtgBool",f:LH},30:{n:"PtgInt",f:IH},31:{n:"PtgNum",f:BH},32:{n:"PtgArray",f:_H},33:{n:"PtgFunc",f:FH},34:{n:"PtgFuncVar",f:PH},35:{n:"PtgName",f:WH},36:{n:"PtgRef",f:CH},37:{n:"PtgArea",f:pH},38:{n:"PtgMemArea",f:qH},39:{n:"PtgMemErr",f:XH},40:{n:"PtgMemNoMem",f:ZH},41:{n:"PtgMemFunc",f:YH},42:{n:"PtgRefErr",f:GH},43:{n:"PtgAreaErr",f:mH},44:{n:"PtgRefN",f:AH},45:{n:"PtgAreaN",f:xH},46:{n:"PtgMemAreaN",f:hz},47:{n:"PtgMemNoMemN",f:pz},57:{n:"PtgNameX",f:$H},58:{n:"PtgRef3d",f:OH},59:{n:"PtgArea3d",f:gH},60:{n:"PtgRefErr3d",f:KH},61:{n:"PtgAreaErr3d",f:vH},255:{}},mz={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},vz={1:{n:"PtgElfLel",f:tT},2:{n:"PtgElfRw",f:sz},3:{n:"PtgElfCol",f:QH},6:{n:"PtgElfRwV",f:oz},7:{n:"PtgElfColV",f:rz},10:{n:"PtgElfRadical",f:nz},11:{n:"PtgElfRadicalS",f:iz},13:{n:"PtgElfColS",f:ez},15:{n:"PtgElfColSV",f:tz},16:{n:"PtgElfRadicalLel",f:az},25:{n:"PtgList",f:uz},29:{n:"PtgSxName",f:cz},255:{}},xz={0:{n:"PtgAttrNoop",f:gz},1:{n:"PtgAttrSemi",f:kH},2:{n:"PtgAttrIf",f:bH},4:{n:"PtgAttrChoose",f:yH},8:{n:"PtgAttrGoto",f:wH},16:{n:"PtgAttrSum",f:RH},32:{n:"PtgAttrBaxcel",f:Qk},33:{n:"PtgAttrBaxcel",f:Qk},64:{n:"PtgAttrSpace",f:TH},65:{n:"PtgAttrSpaceSemi",f:EH},128:{n:"PtgAttrIfError",f:SH},255:{}};function Xc(e,t,r,n){if(n.biff<8)return nn(e,t);for(var a=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=zH(e,0,n),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=HH(e,r[s][1],n),i.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=a-e.l,t!==0&&i.push(nn(e,t)),i}function Zc(e,t,r){for(var n=e.l+t,a,i,s=[];n!=e.l;)t=n-e.l,i=e[e.l],a=rT[i]||rT[mz[i]],(i===24||i===25)&&(a=(i===24?vz:xz)[e[e.l+1]]),!a||!a.f?nn(e,t):s.push([a.n,a.f(e,t,r)]);return s}function _z(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],i=0;i<n.length;++i){var s=n[i];if(s)switch(s[0]){case 2:a.push('"'+s[1].replace(/"/g,'""')+'"');break;default:a.push(s[1])}else a.push("")}t.push(a.join(","))}return t.join(";")}var yz={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function wz(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function nT(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function aT(e,t,r){var n=nT(e,t,r);return n=="#REF"?n:wz(n,r)}function un(e,t,r,n,a){var i=a&&a.biff||8,s={s:{c:0,r:0}},o=[],l,c,d,p=0,g=0,v,y="";if(!e[0]||!e[0][0])return"";for(var _=-1,C="",E=0,T=e[0].length;E<T;++E){var b=e[0][E];switch(b[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=o.pop(),c=o.pop(),_>=0){switch(e[0][_][1][0]){case 0:C=gr(" ",e[0][_][1][1]);break;case 1:C=gr("\r",e[0][_][1][1]);break;default:if(C="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][_][1][0])}c=c+C,_=-1}o.push(c+yz[b[0]]+l);break;case"PtgIsect":l=o.pop(),c=o.pop(),o.push(c+" "+l);break;case"PtgUnion":l=o.pop(),c=o.pop(),o.push(c+","+l);break;case"PtgRange":l=o.pop(),c=o.pop(),o.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":d=Bc(b[1][1],s,a),o.push(jc(d,i));break;case"PtgRefN":d=r?Bc(b[1][1],r,a):b[1][1],o.push(jc(d,i));break;case"PtgRef3d":p=b[1][1],d=Bc(b[1][2],s,a),y=aT(n,p,a),o.push(y+"!"+jc(d,i));break;case"PtgFunc":case"PtgFuncVar":var h=b[1][0],m=b[1][1];h||(h=0),h&=127;var x=h==0?[]:o.slice(-h);o.length-=h,m==="User"&&(m=x.shift()),o.push(m+"("+x.join(",")+")");break;case"PtgBool":o.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(b[1]);break;case"PtgNum":o.push(String(b[1]));break;case"PtgStr":o.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(b[1]);break;case"PtgAreaN":v=P3(b[1][1],r?{s:r}:s,a),o.push(H1(v,a));break;case"PtgArea":v=P3(b[1][1],s,a),o.push(H1(v,a));break;case"PtgArea3d":p=b[1][1],v=b[1][2],y=aT(n,p,a),o.push(y+"!"+H1(v,a));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":g=b[1][2];var S=(n.names||[])[g-1]||(n[0]||[])[g],A=S?S.Name:"SH33TJSNAME"+String(g);A&&A.slice(0,6)=="_xlfn."&&!a.xlfn&&(A=A.slice(6)),o.push(A);break;case"PtgNameX":var k=b[1][1];g=b[1][2];var F;if(a.biff<=5)k<0&&(k=-k),n[k]&&(F=n[k][g]);else{var P="";if(((n[k]||[])[0]||[])[0]==14849||(((n[k]||[])[0]||[])[0]==1025?n[k][g]&&n[k][g].itab>0&&(P=n.SheetNames[n[k][g].itab-1]+"!"):P=n.SheetNames[g-1]+"!"),n[k]&&n[k][g])P+=n[k][g].Name;else if(n[0]&&n[0][g])P+=n[0][g].Name;else{var j=(nT(n,k,a)||"").split(";;");j[g-1]?P=j[g-1]:P+="SH33TJSERRX"}o.push(P);break}F||(F={Name:"SH33TJSERRY"}),o.push(F.Name);break;case"PtgParen":var L="(",B=")";if(_>=0){switch(C="",e[0][_][1][0]){case 2:L=gr(" ",e[0][_][1][1])+L;break;case 3:L=gr("\r",e[0][_][1][1])+L;break;case 4:B=gr(" ",e[0][_][1][1])+B;break;case 5:B=gr("\r",e[0][_][1][1])+B;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][_][1][0])}_=-1}o.push(L+o.pop()+B);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":d={c:b[1][1],r:b[1][0]};var U={c:r.c,r:r.r};if(n.sharedf[at(d)]){var O=n.sharedf[at(d)];o.push(un(O,s,U,n,a))}else{var N=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(d.c<c[0].s.c||d.c>c[0].e.c)&&!(d.r<c[0].s.r||d.r>c[0].e.r)){o.push(un(c[1],s,U,n,a)),N=!0;break}N||o.push(b[1])}break;case"PtgArray":o.push("{"+_z(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":_=E;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var V=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&_>=0&&V.indexOf(e[0][E][0])==-1){b=e[0][_];var M=!0;switch(b[1][0]){case 4:M=!1;case 0:C=gr(" ",b[1][1]);break;case 5:M=!1;case 1:C=gr("\r",b[1][1]);break;default:if(C="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}o.push((M?C:"")+o.pop()+(M?"":C)),_=-1}}if(o.length>1&&a.WTF)throw new Error("bad formula stack");return o[0]}function bz(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,s=e.read_shift(a);if(s==65535)return[[],nn(e,t-2)];var o=Zc(e,s,r);return t!==s+a&&(i=Xc(e,t-s-a,o,r)),e.l=n,[o,i]}function Sz(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,s=e.read_shift(a);if(s==65535)return[[],nn(e,t-2)];var o=Zc(e,s,r);return t!==s+a&&(i=Xc(e,t-s-a,o,r)),e.l=n,[o,i]}function kz(e,t,r,n){var a=e.l+t,i=Zc(e,n,r),s;return a!==e.l&&(s=Xc(e,a-e.l,i,r)),[i,s]}function Tz(e,t,r){var n=e.l+t,a,i=e.read_shift(2),s=Zc(e,i,r);return i==65535?[[],nn(e,t-2)]:(t!==i+2&&(a=Xc(e,n-i-2,s,r)),[s,a])}function Ez(e){var t;if(Hi(e,e.l+6)!==65535)return[sn(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function Cz(e){if(e==null){var t=Se(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return bo(e);return bo(0)}function mm(e,t,r){var n=e.l+t,a=ui(e);r.biff==2&&++e.l;var i=Ez(e),s=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=Sz(e,n-e.l,r);return{cell:a,val:i[0],formula:o,shared:s>>3&1,tt:i[1]}}function Az(e,t,r,n,a){var i=Co(t,r,a),s=Cz(e.v),o=Se(6),l=33;o.write_shift(2,l),o.write_shift(4,0);for(var c=Se(e.bf.length),d=0;d<e.bf.length;++d)c[d]=e.bf[d];var p=Lr([i,s,o,c]);return p}function c0(e,t,r){var n=e.read_shift(4),a=Zc(e,n,r),i=e.read_shift(4),s=i>0?Xc(e,i,a,r):null;return[a,s]}var Oz=c0,f0=c0,Fz=c0,Pz=c0,Dz={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},iT={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Rz={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function sT(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Nz(e){var t="of:="+e.replace(hm,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function vm(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function Mz(e){return e.replace(/\./,"!")}var Jc={},Ml={},Qc=typeof Map<"u";function xm(e,t,r){var n=0,a=e.length;if(r){if(Qc?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=Qc?r.get(t):r[t];n<i.length;++n)if(e[i[n]].t===t)return e.Count++,i[n]}}else for(;n<a;++n)if(e[n].t===t)return e.Count++,n;return e[a]={t},e.Count++,e.Unique++,r&&(Qc?(r.has(t)||r.set(t,[]),r.get(t).push(a)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(a))),a}function d0(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(ln=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=qc(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=o0(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function Oo(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function bs(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){ii(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function oT(e,t,r,n,a,i){try{n.cellNF&&(e.z=Qe[t])}catch(o){if(n.WTF)throw o}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=rr(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(Qe[t]==null&&ii(PL[t]||"General",t),e.t==="e")e.w=e.w||Wi[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Fc(e.v);else if(e.t==="d"){var s=Dr(e.v);(s|0)===s?e.w=s.toString(10):e.w=Fc(s)}else{if(e.v===void 0)return"";e.w=ho(e.v,Ml)}else e.t==="d"?e.w=Kn(t,Dr(e.v),Ml):e.w=Kn(t,e.v,Ml)}catch(o){if(n.WTF)throw o}if(n.cellStyles&&r!=null)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=s0(a.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=a.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=s0(a.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=a.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(o){if(n.WTF&&i.Fills)throw o}}}function Iz(e,t,r){if(e&&e["!ref"]){var n=At(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function Lz(e,t){var r=At(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=vt(r))}var Bz=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,jz=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Uz=/<(?:\w:)?hyperlink [^>]*>/mg,Hz=/"(\w*:\w*)"/,zz=/<(?:\w:)?col\b[^>]*[\/]?>/g,Wz=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,$z=/<(?:\w:)?pageMargins[^>]*\/>/g,lT=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Vz=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,qz=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Yz(e,t,r,n,a,i,s){if(!e)return e;n||(n={"!id":{}});var o=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",d="",p=e.match(jz);p?(c=e.slice(0,p.index),d=e.slice(p.index+p[0].length)):c=d=e;var g=c.match(lT);g?_m(g[0],o,a,r):(g=c.match(Vz))&&Kz(g[0],g[1]||"",o,a,r);var v=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(v>0){var y=c.slice(v,v+50).match(Hz);y&&Lz(o,y[1])}var _=c.match(qz);_&&_[1]&&lW(_[1],a);var C=[];if(t.cellStyles){var E=c.match(zz);E&&nW(C,E)}p&&fW(p[1],o,t,l,i,s);var T=d.match(Wz);T&&(o["!autofilter"]=iW(T[0]));var b=[],h=d.match(Bz);if(h)for(v=0;v!=h.length;++v)b[v]=At(h[v].slice(h[v].indexOf('"')+1));var m=d.match(Uz);m&&eW(o,m,n);var x=d.match($z);if(x&&(o["!margins"]=tW(ot(x[0]))),!o["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(o["!ref"]=vt(l)),t.sheetRows>0&&o["!ref"]){var S=At(o["!ref"]);t.sheetRows<=+S.e.r&&(S.e.r=t.sheetRows-1,S.e.r>l.e.r&&(S.e.r=l.e.r),S.e.r<S.s.r&&(S.s.r=S.e.r),S.e.c>l.e.c&&(S.e.c=l.e.c),S.e.c<S.s.c&&(S.s.c=S.e.c),o["!fullref"]=o["!ref"],o["!ref"]=vt(S))}return C.length>0&&(o["!cols"]=C),b.length>0&&(o["!merges"]=b),o}function Gz(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+vt(e[r])+'"/>';return t+"</mergeCells>"}function _m(e,t,r,n){var a=ot(e);r.Sheets[n]||(r.Sheets[n]={}),a.codeName&&(r.Sheets[n].CodeName=Rt(Yt(a.codeName)))}function Kz(e,t,r,n,a){_m(e.slice(0,e.indexOf(">")),r,n,a)}function Xz(e,t,r,n,a){var i=!1,s={},o=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}i=!0,s.codeName=oi(zt(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),o=(o||"")+Le("outlinePr",null,c)}!i&&!o||(a[a.length]=Le("sheetPr",o,s))}var Zz=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Jz=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Qz(e){var t={sheet:1};return Zz.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),Jz.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=lm(e.password).toString(16).toUpperCase()),Le("sheetProtection",null,t)}function eW(e,t,r){for(var n=Array.isArray(e),a=0;a!=t.length;++a){var i=ot(Yt(t[a]),!0);if(!i.ref)return;var s=((r||{})["!id"]||[])[i.id];s?(i.Target=s.Target,i.location&&(i.Target+="#"+Rt(i.location))):(i.Target="#"+Rt(i.location),s={Target:i.Target,TargetMode:"Internal"}),i.Rel=s,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var o=At(i.ref),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c){var d=at({c,r:l});n?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=i):(e[d]||(e[d]={t:"z",v:void 0}),e[d].l=i)}}}function tW(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function rW(e){return Oo(e),Le("pageMargins",null,e)}function nW(e,t){for(var r=!1,n=0;n!=t.length;++n){var a=ot(t[n],!0);a.hidden&&(a.hidden=nr(a.hidden));var i=parseInt(a.min,10)-1,s=parseInt(a.max,10)-1;for(a.outlineLevel&&(a.level=+a.outlineLevel||0),delete a.min,delete a.max,a.width=+a.width,!r&&a.width&&(r=!0,cm(a.width)),ys(a);i<=s;)e[i++]=Gt(a)}}function aW(e,t){for(var r=["<cols>"],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=Le("col",null,d0(a,n)));return r[r.length]="</cols>",r.join("")}function iW(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function sW(e,t,r,n){var a=typeof e.ref=="string"?e.ref:vt(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,s=yn(a);s.s.r==s.e.r&&(s.e.r=yn(t["!ref"]).e.r,a=vt(s));for(var o=0;o<i.length;++o){var l=i[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return o==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),Le("autoFilter",null,{ref:a})}var oW=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function lW(e,t){t.Views||(t.Views=[{}]),(e.match(oW)||[]).forEach(function(r,n){var a=ot(r);t.Views[n]||(t.Views[n]={}),+a.zoomScale&&(t.Views[n].zoom=+a.zoomScale),nr(a.rightToLeft)&&(t.Views[n].RTL=!0)})}function uW(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Le("sheetViews",Le("sheetView",null,a),{})}function cW(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=Wi[e.v];break;case"d":n&&n.cellDates?a=rr(e.v,-1).toISOString():(e=Gt(e),e.t="n",a=""+(e.v=Dr(rr(e.v)))),typeof e.z>"u"&&(e.z=Qe[14]);break;default:a=e.v;break}var o=Yr("v",zt(a)),l={r:t},c=bs(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){o=Yr("v",""+xm(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=i&&(e.t=i,e.v=s),typeof e.f=="string"&&e.f){var d=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=Le("f",zt(e.f),d)+(e.v!=null?o:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),Le("c",o,l)}var fW=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,i=Nc("v"),s=Nc("f");return function(l,c,d,p,g,v){for(var y=0,_="",C=[],E=[],T=0,b=0,h=0,m="",x,S,A=0,k=0,F,P,j=0,L=0,B=Array.isArray(v.CellXf),U,O=[],N=[],V=Array.isArray(c),M=[],q={},Y=!1,z=!!d.sheetStubs,re=l.split(t),J=0,te=re.length;J!=te;++J){_=re[J].trim();var oe=_.length;if(oe!==0){var ue=0;e:for(y=0;y<oe;++y)switch(_[y]){case">":if(_[y-1]!="/"){++y;break e}if(d&&d.cellStyles){if(S=ot(_.slice(ue,y),!0),A=S.r!=null?parseInt(S.r,10):A+1,k=-1,d.sheetRows&&d.sheetRows<A)continue;q={},Y=!1,S.ht&&(Y=!0,q.hpt=parseFloat(S.ht),q.hpx=Dl(q.hpt)),S.hidden=="1"&&(Y=!0,q.hidden=!0),S.outlineLevel!=null&&(Y=!0,q.level=+S.outlineLevel),Y&&(M[A-1]=q)}break;case"<":ue=y;break}if(ue>=y)break;if(S=ot(_.slice(ue,y),!0),A=S.r!=null?parseInt(S.r,10):A+1,k=-1,!(d.sheetRows&&d.sheetRows<A)){p.s.r>A-1&&(p.s.r=A-1),p.e.r<A-1&&(p.e.r=A-1),d&&d.cellStyles&&(q={},Y=!1,S.ht&&(Y=!0,q.hpt=parseFloat(S.ht),q.hpx=Dl(q.hpt)),S.hidden=="1"&&(Y=!0,q.hidden=!0),S.outlineLevel!=null&&(Y=!0,q.level=+S.outlineLevel),Y&&(M[A-1]=q)),C=_.slice(y).split(e);for(var ve=0;ve!=C.length&&C[ve].trim().charAt(0)=="<";++ve);for(C=C.slice(ve),y=0;y!=C.length;++y)if(_=C[y].trim(),_.length!==0){if(E=_.match(r),T=y,b=0,h=0,_="<c "+(_.slice(0,1)=="<"?">":"")+_,E!=null&&E.length===2){for(T=0,m=E[1],b=0;b!=m.length&&!((h=m.charCodeAt(b)-64)<1||h>26);++b)T=26*T+h;--T,k=T}else++k;for(b=0;b!=_.length&&_.charCodeAt(b)!==62;++b);if(++b,S=ot(_.slice(0,b),!0),S.r||(S.r=at({r:A-1,c:k})),m=_.slice(b),x={t:""},(E=m.match(i))!=null&&E[1]!==""&&(x.v=Rt(E[1])),d.cellFormula){if((E=m.match(s))!=null&&E[1]!==""){if(x.f=Rt(Yt(E[1])).replace(/\r\n/g,`
429
+ `),d.xlfn||(x.f=Kk(x.f)),E[0].indexOf('t="array"')>-1)x.F=(m.match(a)||[])[1],x.F.indexOf(":")>-1&&O.push([At(x.F),x.F]);else if(E[0].indexOf('t="shared"')>-1){P=ot(E[0]);var _e=Rt(Yt(E[1]));d.xlfn||(_e=Kk(_e)),N[parseInt(P.si,10)]=[P,_e,S.r]}}else(E=m.match(/<f[^>]*\/>/))&&(P=ot(E[0]),N[P.si]&&(x.f=oH(N[P.si][1],N[P.si][2],S.r)));var ye=fr(S.r);for(b=0;b<O.length;++b)ye.r>=O[b][0].s.r&&ye.r<=O[b][0].e.r&&ye.c>=O[b][0].s.c&&ye.c<=O[b][0].e.c&&(x.F=O[b][1])}if(S.t==null&&x.v===void 0)if(x.f||x.F)x.v=0,x.t="n";else if(z)x.t="z";else continue;else x.t=S.t||"n";switch(p.s.c>k&&(p.s.c=k),p.e.c<k&&(p.e.c=k),x.t){case"n":if(x.v==""||x.v==null){if(!z)continue;x.t="z"}else x.v=parseFloat(x.v);break;case"s":if(typeof x.v>"u"){if(!z)continue;x.t="z"}else F=Jc[parseInt(x.v,10)],x.v=F.t,x.r=F.r,d.cellHTML&&(x.h=F.h);break;case"str":x.t="s",x.v=x.v!=null?Yt(x.v):"",d.cellHTML&&(x.h=P1(x.v));break;case"inlineStr":E=m.match(n),x.t="s",E!=null&&(F=om(E[1]))?(x.v=F.t,d.cellHTML&&(x.h=F.h)):x.v="";break;case"b":x.v=nr(x.v);break;case"d":d.cellDates?x.v=rr(x.v,1):(x.v=Dr(rr(x.v,1)),x.t="n");break;case"e":(!d||d.cellText!==!1)&&(x.w=x.v),x.v=H3[x.v];break}if(j=L=0,U=null,B&&S.s!==void 0&&(U=v.CellXf[S.s],U!=null&&(U.numFmtId!=null&&(j=U.numFmtId),d.cellStyles&&U.fillId!=null&&(L=U.fillId))),oT(x,j,L,d,g,v),d.cellDates&&B&&x.t=="n"&&po(Qe[j])&&(x.t="d",x.v=qd(x.v)),S.cm&&d.xlmeta){var je=(d.xlmeta.Cell||[])[+S.cm-1];je&&je.type=="XLDAPR"&&(x.D=!0)}if(V){var Z=fr(S.r);c[Z.r]||(c[Z.r]=[]),c[Z.r][Z.c]=x}else c[S.r]=x}}}}M.length>0&&(c["!rows"]=M)}}();function dW(e,t,r,n){var a=[],i=[],s=At(e["!ref"]),o="",l,c="",d=[],p=0,g=0,v=e["!rows"],y=Array.isArray(e),_={r:c},C,E=-1;for(g=s.s.c;g<=s.e.c;++g)d[g]=ar(g);for(p=s.s.r;p<=s.e.r;++p){for(i=[],c=mr(p),g=s.s.c;g<=s.e.c;++g){l=d[g]+c;var T=y?(e[p]||[])[g]:e[l];T!==void 0&&(o=cW(T,l,e,t))!=null&&i.push(o)}(i.length>0||v&&v[p])&&(_={r:c},v&&v[p]&&(C=v[p],C.hidden&&(_.hidden=1),E=-1,C.hpx?E=Yc(C.hpx):C.hpt&&(E=C.hpt),E>-1&&(_.ht=E,_.customHeight=1),C.level&&(_.outlineLevel=C.level)),a[a.length]=Le("row",i.join(""),_))}if(v)for(;p<v.length;++p)v&&v[p]&&(_={r:p+1},C=v[p],C.hidden&&(_.hidden=1),E=-1,C.hpx?E=Yc(C.hpx):C.hpt&&(E=C.hpt),E>-1&&(_.ht=E,_.customHeight=1),C.level&&(_.outlineLevel=C.level),a[a.length]=Le("row","",_));return a.join("")}function uT(e,t,r,n){var a=[br,Le("worksheet",null,{xmlns:mo[0],"xmlns:r":Rr.r})],i=r.SheetNames[e],s=0,o="",l=r.Sheets[i];l==null&&(l={});var c=l["!ref"]||"A1",d=At(c);if(d.e.c>16383||d.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),c=vt(d)}n||(n={}),l["!comments"]=[];var p=[];Xz(l,r,e,t,a),a[a.length]=Le("dimension",null,{ref:c}),a[a.length]=uW(l,t,e,r),t.sheetFormat&&(a[a.length]=Le("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(a[a.length]=aW(l,l["!cols"])),a[s=a.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(o=dW(l,t),o.length>0&&(a[a.length]=o)),a.length>s+1&&(a[a.length]="</sheetData>",a[s]=a[s].replace("/>",">")),l["!protect"]&&(a[a.length]=Qz(l["!protect"])),l["!autofilter"]!=null&&(a[a.length]=sW(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(a[a.length]=Gz(l["!merges"]));var g=-1,v,y=-1;return l["!links"].length>0&&(a[a.length]="<hyperlinks>",l["!links"].forEach(function(_){_[1].Target&&(v={ref:_[0]},_[1].Target.charAt(0)!="#"&&(y=Wt(n,-1,zt(_[1].Target).replace(/#.*$/,""),kt.HLINK),v["r:id"]="rId"+y),(g=_[1].Target.indexOf("#"))>-1&&(v.location=zt(_[1].Target.slice(g+1))),_[1].Tooltip&&(v.tooltip=zt(_[1].Tooltip)),a[a.length]=Le("hyperlink",null,v))}),a[a.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(a[a.length]=rW(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=Yr("ignoredErrors",Le("ignoredError",null,{numberStoredAsText:1,sqref:c}))),p.length>0&&(y=Wt(n,-1,"../drawings/drawing"+(e+1)+".xml",kt.DRAW),a[a.length]=Le("drawing",null,{"r:id":"rId"+y}),l["!drawing"]=p),l["!comments"].length>0&&(y=Wt(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",kt.VML),a[a.length]=Le("legacyDrawing",null,{"r:id":"rId"+y}),l["!legacy"]=y),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function hW(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function pW(e,t,r){var n=Se(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=Yc(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,l=n.l;n.l+=4;for(var c={r:e,c:0},d=0;d<16;++d)if(!(t.s.c>d+1<<10||t.e.c<d<<10)){for(var p=-1,g=-1,v=d<<10;v<d+1<<10;++v){c.c=v;var y=Array.isArray(r)?(r[c.r]||[])[c.c]:r[at(c)];y&&(p<0&&(p=v),g=v)}p<0||(++o,n.write_shift(4,p),n.write_shift(4,g))}var _=n.l;return n.l=l,n.write_shift(4,o),n.l=_,n.length>n.l?n.slice(0,n.l):n}function gW(e,t,r,n){var a=pW(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&Oe(e,0,a)}var mW=wo,vW=Ol;function xW(){}function _W(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=b7(e),r}function yW(e,t,r){r==null&&(r=Se(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Zd({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),N3(e,r),r.slice(0,r.l)}function wW(e){var t=ma(e);return[t]}function bW(e,t,r){return r==null&&(r=Se(8)),xo(t,r)}function SW(e){var t=_o(e);return[t]}function kW(e,t,r){return r==null&&(r=Se(4)),yo(t,r)}function TW(e){var t=ma(e),r=e.read_shift(1);return[t,r,"b"]}function EW(e,t,r){return r==null&&(r=Se(9)),xo(t,r),r.write_shift(1,e.v?1:0),r}function CW(e){var t=_o(e),r=e.read_shift(1);return[t,r,"b"]}function AW(e,t,r){return r==null&&(r=Se(5)),yo(t,r),r.write_shift(1,e.v?1:0),r}function OW(e){var t=ma(e),r=e.read_shift(1);return[t,r,"e"]}function FW(e,t,r){return r==null&&(r=Se(9)),xo(t,r),r.write_shift(1,e.v),r}function PW(e){var t=_o(e),r=e.read_shift(1);return[t,r,"e"]}function DW(e,t,r){return r==null&&(r=Se(8)),yo(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function RW(e){var t=ma(e),r=e.read_shift(4);return[t,r,"s"]}function NW(e,t,r){return r==null&&(r=Se(12)),xo(t,r),r.write_shift(4,t.v),r}function MW(e){var t=_o(e),r=e.read_shift(4);return[t,r,"s"]}function IW(e,t,r){return r==null&&(r=Se(8)),yo(t,r),r.write_shift(4,t.v),r}function LW(e){var t=ma(e),r=sn(e);return[t,r,"n"]}function BW(e,t,r){return r==null&&(r=Se(16)),xo(t,r),bo(e.v,r),r}function cT(e){var t=_o(e),r=sn(e);return[t,r,"n"]}function jW(e,t,r){return r==null&&(r=Se(12)),yo(t,r),bo(e.v,r),r}function UW(e){var t=ma(e),r=G1(e);return[t,r,"n"]}function HW(e,t,r){return r==null&&(r=Se(12)),xo(t,r),M3(e.v,r),r}function zW(e){var t=_o(e),r=G1(e);return[t,r,"n"]}function WW(e,t,r){return r==null&&(r=Se(8)),yo(t,r),M3(e.v,r),r}function $W(e){var t=ma(e),r=$1(e);return[t,r,"is"]}function VW(e){var t=ma(e),r=an(e);return[t,r,"str"]}function qW(e,t,r){return r==null&&(r=Se(12+4*e.v.length)),xo(t,r),jr(e.v,r),r.length>r.l?r.slice(0,r.l):r}function YW(e){var t=_o(e),r=an(e);return[t,r,"str"]}function GW(e,t,r){return r==null&&(r=Se(8+4*e.v.length)),yo(t,r),jr(e.v,r),r.length>r.l?r.slice(0,r.l):r}function KW(e,t,r){var n=e.l+t,a=ma(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"b"];if(r.cellFormula){e.l+=2;var o=f0(e,n-e.l,r);s[3]=un(o,null,a,r.supbooks,r)}else e.l=n;return s}function XW(e,t,r){var n=e.l+t,a=ma(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"e"];if(r.cellFormula){e.l+=2;var o=f0(e,n-e.l,r);s[3]=un(o,null,a,r.supbooks,r)}else e.l=n;return s}function ZW(e,t,r){var n=e.l+t,a=ma(e);a.r=r["!row"];var i=sn(e),s=[a,i,"n"];if(r.cellFormula){e.l+=2;var o=f0(e,n-e.l,r);s[3]=un(o,null,a,r.supbooks,r)}else e.l=n;return s}function JW(e,t,r){var n=e.l+t,a=ma(e);a.r=r["!row"];var i=an(e),s=[a,i,"str"];if(r.cellFormula){e.l+=2;var o=f0(e,n-e.l,r);s[3]=un(o,null,a,r.supbooks,r)}else e.l=n;return s}var QW=wo,e$=Ol;function t$(e,t){return t==null&&(t=Se(4)),t.write_shift(4,e),t}function r$(e,t){var r=e.l+t,n=wo(e),a=V1(e),i=an(e),s=an(e),o=an(e);e.l=r;var l={rfx:n,relId:a,loc:i,display:o};return s&&(l.Tooltip=s),l}function n$(e,t){var r=Se(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Ol({s:fr(e[0]),e:fr(e[0])},r),Y1("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return jr(a||"",r),jr(e[1].Tooltip||"",r),jr("",r),r.slice(0,r.l)}function a$(){}function i$(e,t,r){var n=e.l+t,a=I3(e),i=e.read_shift(1),s=[a];if(s[2]=i,r.cellFormula){var o=Oz(e,n-e.l,r);s[1]=o}else e.l=n;return s}function s$(e,t,r){var n=e.l+t,a=wo(e),i=[a];if(r.cellFormula){var s=Pz(e,n-e.l,r);i[1]=s,e.l=n}else e.l=n;return i}function o$(e,t,r){r==null&&(r=Se(18));var n=d0(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var fT=["left","right","top","bottom","header","footer"];function l$(e){var t={};return fT.forEach(function(r){t[r]=sn(e)}),t}function u$(e,t){return t==null&&(t=Se(6*8)),Oo(e),fT.forEach(function(r){bo(e[r],t)}),t}function c$(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function f$(e,t,r){r==null&&(r=Se(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function d$(e){var t=Se(24);return t.write_shift(4,4),t.write_shift(4,1),Ol(e,t),t}function h$(e,t){return t==null&&(t=Se(16*4+2)),t.write_shift(2,e.password?lm(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function p$(){}function g$(){}function m$(e,t,r,n,a,i,s){if(!e)return e;var o=t||{};n||(n={"!id":{}});var l=o.dense?[]:{},c,d={s:{r:2e6,c:2e6},e:{r:0,c:0}},p=!1,g=!1,v,y,_,C,E,T,b,h,m,x=[];o.biff=12,o["!row"]=0;var S=0,A=!1,k=[],F={},P=o.supbooks||a.supbooks||[[]];if(P.sharedf=F,P.arrayf=k,P.SheetNames=a.SheetNames||a.Sheets.map(function(V){return V.name}),!o.supbooks&&(o.supbooks=P,a.Names))for(var j=0;j<a.Names.length;++j)P[0][j+1]=a.Names[j];var L=[],B=[],U=!1;rf[16]={n:"BrtShortReal",f:cT};var O;if(zi(e,function(M,q,Y){if(!g)switch(Y){case 148:c=M;break;case 0:v=M,o.sheetRows&&o.sheetRows<=v.r&&(g=!0),h=mr(C=v.r),o["!row"]=v.r,(M.hidden||M.hpt||M.level!=null)&&(M.hpt&&(M.hpx=Dl(M.hpt)),B[M.r]=M);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(y={t:M[2]},M[2]){case"n":y.v=M[1];break;case"s":b=Jc[M[1]],y.v=b.t,y.r=b.r;break;case"b":y.v=!!M[1];break;case"e":y.v=M[1],o.cellText!==!1&&(y.w=Wi[y.v]);break;case"str":y.t="s",y.v=M[1];break;case"is":y.t="s",y.v=M[1].t;break}if((_=s.CellXf[M[0].iStyleRef])&&oT(y,_.numFmtId,null,o,i,s),E=M[0].c==-1?E+1:M[0].c,o.dense?(l[C]||(l[C]=[]),l[C][E]=y):l[ar(E)+h]=y,o.cellFormula){for(A=!1,S=0;S<k.length;++S){var z=k[S];v.r>=z[0].s.r&&v.r<=z[0].e.r&&E>=z[0].s.c&&E<=z[0].e.c&&(y.F=vt(z[0]),A=!0)}!A&&M.length>3&&(y.f=M[3])}if(d.s.r>v.r&&(d.s.r=v.r),d.s.c>E&&(d.s.c=E),d.e.r<v.r&&(d.e.r=v.r),d.e.c<E&&(d.e.c=E),o.cellDates&&_&&y.t=="n"&&po(Qe[_.numFmtId])){var re=gs(y.v);re&&(y.t="d",y.v=new Date(re.y,re.m-1,re.d,re.H,re.M,re.S,re.u))}O&&(O.type=="XLDAPR"&&(y.D=!0),O=void 0);break;case 1:case 12:if(!o.sheetStubs||p)break;y={t:"z",v:void 0},E=M[0].c==-1?E+1:M[0].c,o.dense?(l[C]||(l[C]=[]),l[C][E]=y):l[ar(E)+h]=y,d.s.r>v.r&&(d.s.r=v.r),d.s.c>E&&(d.s.c=E),d.e.r<v.r&&(d.e.r=v.r),d.e.c<E&&(d.e.c=E),O&&(O.type=="XLDAPR"&&(y.D=!0),O=void 0);break;case 176:x.push(M);break;case 49:O=((o.xlmeta||{}).Cell||[])[M-1];break;case 494:var J=n["!id"][M.relId];for(J?(M.Target=J.Target,M.loc&&(M.Target+="#"+M.loc),M.Rel=J):M.relId==""&&(M.Target="#"+M.loc),C=M.rfx.s.r;C<=M.rfx.e.r;++C)for(E=M.rfx.s.c;E<=M.rfx.e.c;++E)o.dense?(l[C]||(l[C]=[]),l[C][E]||(l[C][E]={t:"z",v:void 0}),l[C][E].l=M):(T=at({c:E,r:C}),l[T]||(l[T]={t:"z",v:void 0}),l[T].l=M);break;case 426:if(!o.cellFormula)break;k.push(M),m=o.dense?l[C][E]:l[ar(E)+h],m.f=un(M[1],d,{r:v.r,c:E},P,o),m.F=vt(M[0]);break;case 427:if(!o.cellFormula)break;F[at(M[0].s)]=M[1],m=o.dense?l[C][E]:l[ar(E)+h],m.f=un(M[1],d,{r:v.r,c:E},P,o);break;case 60:if(!o.cellStyles)break;for(;M.e>=M.s;)L[M.e--]={width:M.w/256,hidden:!!(M.flags&1),level:M.level},U||(U=!0,cm(M.w/256)),ys(L[M.e+1]);break;case 161:l["!autofilter"]={ref:vt(M)};break;case 476:l["!margins"]=M;break;case 147:a.Sheets[r]||(a.Sheets[r]={}),M.name&&(a.Sheets[r].CodeName=M.name),(M.above||M.left)&&(l["!outline"]={above:M.above,left:M.left});break;case 137:a.Views||(a.Views=[{}]),a.Views[0]||(a.Views[0]={}),M.RTL&&(a.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:p=!0;break;case 36:p=!1;break;case 37:p=!0;break;case 38:p=!1;break;default:if(!q.T){if(!p||o.WTF)throw new Error("Unexpected record 0x"+Y.toString(16))}}},o),delete o.supbooks,delete o["!row"],!l["!ref"]&&(d.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(l["!ref"]=vt(c||d)),o.sheetRows&&l["!ref"]){var N=At(l["!ref"]);o.sheetRows<=+N.e.r&&(N.e.r=o.sheetRows-1,N.e.r>d.e.r&&(N.e.r=d.e.r),N.e.r<N.s.r&&(N.s.r=N.e.r),N.e.c>d.e.c&&(N.e.c=d.e.c),N.e.c<N.s.c&&(N.s.c=N.e.c),l["!fullref"]=l["!ref"],l["!ref"]=vt(N))}return x.length>0&&(l["!merges"]=x),L.length>0&&(l["!cols"]=L),B.length>0&&(l["!rows"]=B),l}function v$(e,t,r,n,a,i,s){if(t.v===void 0)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":t=Gt(t),t.z=t.z||Qe[14],t.v=Dr(rr(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v;break}var l={r,c:n};switch(l.s=bs(a.cellXfs,t,a),t.l&&i["!links"].push([at(l),t.l]),t.c&&i["!comments"].push([at(l),t.c]),t.t){case"s":case"str":return a.bookSST?(o=xm(a.Strings,t.v,a.revStrings),l.t="s",l.v=o,s?Oe(e,18,IW(t,l)):Oe(e,7,NW(t,l))):(l.t="str",s?Oe(e,17,GW(t,l)):Oe(e,6,qW(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?Oe(e,13,WW(t,l)):Oe(e,2,HW(t,l)):s?Oe(e,16,jW(t,l)):Oe(e,5,BW(t,l)),!0;case"b":return l.t="b",s?Oe(e,15,AW(t,l)):Oe(e,4,EW(t,l)),!0;case"e":return l.t="e",s?Oe(e,14,DW(t,l)):Oe(e,3,FW(t,l)),!0}return s?Oe(e,12,kW(t,l)):Oe(e,1,bW(t,l)),!0}function x$(e,t,r,n){var a=At(t["!ref"]||"A1"),i,s="",o=[];Oe(e,145);var l=Array.isArray(t),c=a.e.r;t["!rows"]&&(c=Math.max(a.e.r,t["!rows"].length-1));for(var d=a.s.r;d<=c;++d){s=mr(d),gW(e,t,a,d);var p=!1;if(d<=a.e.r)for(var g=a.s.c;g<=a.e.c;++g){d===a.s.r&&(o[g]=ar(g)),i=o[g]+s;var v=l?(t[d]||[])[g]:t[i];if(!v){p=!1;continue}p=v$(e,v,d,g,n,t,p)}}Oe(e,146)}function _$(e,t){!t||!t["!merges"]||(Oe(e,177,t$(t["!merges"].length)),t["!merges"].forEach(function(r){Oe(e,176,e$(r))}),Oe(e,178))}function y$(e,t){!t||!t["!cols"]||(Oe(e,390),t["!cols"].forEach(function(r,n){r&&Oe(e,60,o$(n,r))}),Oe(e,391))}function w$(e,t){!t||!t["!ref"]||(Oe(e,648),Oe(e,649,d$(At(t["!ref"]))),Oe(e,650))}function b$(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=Wt(r,-1,n[1].Target.replace(/#.*$/,""),kt.HLINK);Oe(e,494,n$(n,a))}}),delete t["!links"]}function S$(e,t,r,n){if(t["!comments"].length>0){var a=Wt(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",kt.VML);Oe(e,551,Y1("rId"+a)),t["!legacy"]=a}}function k$(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:vt(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,o=yn(i);o.s.r==o.e.r&&(o.e.r=yn(t["!ref"]).e.r,i=vt(o));for(var l=0;l<s.length;++l){var c=s[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+i;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),Oe(e,161,Ol(At(i))),Oe(e,162)}}function T$(e,t,r){Oe(e,133),Oe(e,137,f$(t,r)),Oe(e,138),Oe(e,134)}function E$(e,t){t["!protect"]&&Oe(e,535,h$(t["!protect"]))}function C$(e,t,r,n){var a=Fn(),i=r.SheetNames[e],s=r.Sheets[i]||{},o=i;try{r&&r.Workbook&&(o=r.Workbook.Sheets[e].CodeName||o)}catch{}var l=At(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Oe(a,129),(r.vbaraw||s["!outline"])&&Oe(a,147,yW(o,s["!outline"])),Oe(a,148,vW(l)),T$(a,s,r.Workbook),y$(a,s),x$(a,s,e,t),E$(a,s),k$(a,s,r,e),_$(a,s),b$(a,s,n),s["!margins"]&&Oe(a,476,u$(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&w$(a,s),S$(a,s,e,n),Oe(a,130),a.end()}function A$(e){var t=[],r=e.match(/^<c:numCache>/),n;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var s=i.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);s&&(t[+s[1]]=r?+s[2]:s[2])});var a=Rt((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(i){n=i.replace(/<.*?>/g,"")}),[t,a,n]}function O$(e,t,r,n,a,i){var s=i||{"!type":"chart"};if(!e)return i;var o=0,l=0,c="A",d={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(p){var g=A$(p);d.s.r=d.s.c=0,d.e.c=o,c=ar(o),g[0].forEach(function(v,y){s[c+mr(y)]={t:"n",v,z:g[1]},l=y}),d.e.r<l&&(d.e.r=l),++o}),o>0&&(s["!ref"]=vt(d)),s}function F$(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s,o=e.match(lT);return o&&_m(o[0],i,a,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}function P$(e,t){e.l+=10;var r=an(e);return{name:r}}function D$(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s=!1;return zi(e,function(l,c,d){switch(d){case 550:i["!rel"]=l;break;case 651:a.Sheets[r]||(a.Sheets[r]={}),l.name&&(a.Sheets[r].CodeName=l.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!(c.T>0)){if(!(c.T<0)){if(!s||t.WTF)throw new Error("Unexpected record 0x"+d.toString(16))}}}},t),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}var ym=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],R$=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],N$=[],M$=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function dT(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],a=0;a!=t.length;++a){var i=t[a];if(n[i[0]]==null)n[i[0]]=i[1];else switch(i[2]){case"bool":typeof n[i[0]]=="string"&&(n[i[0]]=nr(n[i[0]]));break;case"int":typeof n[i[0]]=="string"&&(n[i[0]]=parseInt(n[i[0]],10));break}}}function hT(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=nr(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function pT(e){hT(e.WBProps,ym),hT(e.CalcPr,M$),dT(e.WBView,R$),dT(e.Sheets,N$),Ml.date1904=nr(e.WBProps.date1904)}function I$(e){return!e.Workbook||!e.Workbook.WBProps?"false":nr(e.Workbook.WBProps.date1904)?"true":"false"}var L$="][*?/\\".split("");function gT(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return L$.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function B$(e,t,r){e.forEach(function(n,a){gT(n);for(var i=0;i<a;++i)if(n==e[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var s=t&&t[a]&&t[a].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function mT(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];B$(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)Iz(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}var j$=/<\w+:workbook/;function U$(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,a="xmlns",i={},s=0;if(e.replace(rn,function(l,c){var d=ot(l);switch(si(d[0])){case"<?xml":break;case"<workbook":l.match(j$)&&(a="xmlns"+l.match(/<(\w+):/)[1]),r.xmlns=d[a];break;case"</workbook>":break;case"<fileVersion":delete d[0],r.AppVersion=d;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":ym.forEach(function(p){if(d[p[0]]!=null)switch(p[2]){case"bool":r.WBProps[p[0]]=nr(d[p[0]]);break;case"int":r.WBProps[p[0]]=parseInt(d[p[0]],10);break;default:r.WBProps[p[0]]=d[p[0]]}}),d.codeName&&(r.WBProps.CodeName=Yt(d.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete d[0],r.WBView.push(d);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(d.state){case"hidden":d.Hidden=1;break;case"veryHidden":d.Hidden=2;break;default:d.Hidden=0}delete d.state,d.name=Rt(Yt(d.name)),delete d[0],r.Sheets.push(d);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":n=!0;break;case"</definedNames>":n=!1;break;case"<definedName":i={},i.Name=Yt(d.name),d.comment&&(i.Comment=d.comment),d.localSheetId&&(i.Sheet=+d.localSheetId),nr(d.hidden||"0")&&(i.Hidden=!0),s=c+l.length;break;case"</definedName>":i.Ref=Rt(Yt(e.slice(s,c))),r.Names.push(i);break;case"<definedName/>":break;case"<calcPr":delete d[0],r.CalcPr=d;break;case"<calcPr/>":delete d[0],r.CalcPr=d;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</AlternateContent>":n=!1;break;case"<revisionPtr":break;default:if(!n&&t.WTF)throw new Error("unrecognized "+d[0]+" in workbook")}return l}),mo.indexOf(r.xmlns)===-1)throw new Error("Unknown Namespace: "+r.xmlns);return pT(r),r}function vT(e){var t=[br];t[t.length]=Le("workbook",null,{xmlns:mo[0],"xmlns:r":Rr.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(ym.forEach(function(o){e.Workbook.WBProps[o[0]]!=null&&e.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=e.Workbook.WBProps[o[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=Le("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:zt(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=Le("sheet",null,s)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(o){var l={name:o.Name};o.Comment&&(l.comment=o.Comment),o.Sheet!=null&&(l.localSheetId=""+o.Sheet),o.Hidden&&(l.hidden="1"),o.Ref&&(t[t.length]=Le("definedName",zt(o.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function H$(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=q1(e),r.name=an(e),r}function z$(e,t){return t||(t=Se(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Y1(e.strRelID,t),jr(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function W$(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?an(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function $$(e,t){t||(t=Se(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),N3(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function V$(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function q$(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=S7(e),s=Fz(e,0,r),o=V1(e);e.l=n;var l={Name:i,Ptg:s};return a<268435455&&(l.Sheet=a),o&&(l.Comment=o),l}function Y$(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],a=!1;t||(t={}),t.biff=12;var i=[],s=[[]];return s.SheetNames=[],s.XTI=[],rf[16]={n:"BrtFRTArchID$",f:V$},zi(e,function(l,c,d){switch(d){case 156:s.SheetNames.push(l.name),r.Sheets.push(l);break;case 153:r.WBProps=l;break;case 39:l.Sheet!=null&&(t.SID=l.Sheet),l.Ref=un(l.Ptg,null,null,s,t),delete t.SID,delete l.Ptg,i.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:s[0].length?s.push([d,l]):s[0]=[d,l],s[s.length-1].XTI=[];break;case 362:s.length===0&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(l),s.XTI=s.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(d),a=!0;break;case 36:n.pop(),a=!1;break;case 37:n.push(d),a=!0;break;case 38:n.pop(),a=!1;break;case 16:break;default:if(!c.T){if(!a||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+d.toString(16))}}},t),pT(r),r.Names=i,r.supbooks=s,r}function G$(e,t){Oe(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};Oe(e,156,z$(a))}Oe(e,144)}function K$(e,t){t||(t=Se(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return jr("SheetJS",t),jr(Tc.version,t),jr(Tc.version,t),jr("7262",t),t.length>t.l?t.slice(0,t.l):t}function X$(e,t){t||(t=Se(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function Z$(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&i==-1&&(i=n);i>a||(Oe(e,135),Oe(e,158,X$(a)),Oe(e,136))}}function J$(e,t){var r=Fn();return Oe(r,131),Oe(r,128,K$()),Oe(r,153,$$(e.Workbook&&e.Workbook.WBProps||null)),Z$(r,e),G$(r,e),Oe(r,132),r.end()}function Q$(e,t,r){return t.slice(-4)===".bin"?Y$(e,r):U$(e,r)}function eV(e,t,r,n,a,i,s,o){return t.slice(-4)===".bin"?m$(e,n,r,a,i,s,o):Yz(e,n,r,a,i,s,o)}function tV(e,t,r,n,a,i,s,o){return t.slice(-4)===".bin"?D$(e,n,r,a,i):F$(e,n,r,a,i)}function rV(e,t,r,n,a,i,s,o){return t.slice(-4)===".bin"?iH():sH()}function nV(e,t,r,n,a,i,s,o){return t.slice(-4)===".bin"?nH():aH()}function aV(e,t,r,n){return t.slice(-4)===".bin"?eU(e,r,n):zj(e,r,n)}function iV(e,t,r){return zk(e,r)}function sV(e,t,r){return t.slice(-4)===".bin"?oj(e,r):aj(e,r)}function oV(e,t,r){return t.slice(-4)===".bin"?JU(e,r):WU(e,r)}function lV(e,t,r){return t.slice(-4)===".bin"?UU(e):BU(e)}function uV(e,t,r,n){return r.slice(-4)===".bin"?HU(e,t,r,n):void 0}function cV(e,t,r){return t.slice(-4)===".bin"?MU(e,t,r):LU(e,t,r)}function fV(e,t,r){return(t.slice(-4)===".bin"?J$:vT)(e)}function dV(e,t,r,n,a){return(t.slice(-4)===".bin"?C$:uT)(e,r,n,a)}function hV(e,t,r){return(t.slice(-4)===".bin"?cU:jk)(e,r)}function pV(e,t,r){return(t.slice(-4)===".bin"?cj:Pk)(e,r)}function gV(e,t,r){return(t.slice(-4)===".bin"?QU:qk)(e)}function mV(e){return(e.slice(-4)===".bin"?IU:Wk)()}var xT=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,_T=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function $a(e,t){var r=e.split(/\s+/),n=[];if(n[0]=r[0],r.length===1)return n;var a=e.match(xT),i,s,o,l;if(a)for(l=0;l!=a.length;++l)i=a[l].match(_T),(s=i[1].indexOf(":"))===-1?n[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?o="xmlns"+i[1].slice(6):o=i[1].slice(s+1),n[o]=i[2].slice(1,i[2].length-1));return n}function vV(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(xT),a,i,s,o;if(n)for(o=0;o!=n.length;++o)a=n[o].match(_T),(i=a[1].indexOf(":"))===-1?r[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?s="xmlns"+a[1].slice(6):s=a[1].slice(i+1),r[s]=a[2].slice(1,a[2].length-1));return r}var ef;function xV(e,t){var r=ef[e]||Rt(e);return r==="General"?ho(t):Kn(r,t)}function _V(e,t,r,n){var a=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=nr(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=rr(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Rt(t)]=a}function yV(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||Wi[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Fc(e.v):e.w=ho(e.v):e.w=xV(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var n=ef[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&po(n)){var a=gs(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(i){if(r.WTF)throw i}}}function wV(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=Nj[n.Pattern]||n.Pattern)}e[t.ID]=t}function bV(e,t,r,n,a,i,s,o,l,c){var d="General",p=n.StyleID,g={};c=c||{};var v=[],y=0;for(p===void 0&&o&&(p=o.StyleID),p===void 0&&s&&(p=s.StyleID);i[p]!==void 0&&(i[p].nf&&(d=i[p].nf),i[p].Interior&&v.push(i[p].Interior),!!i[p].Parent);)p=i[p].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=nr(e);break;case"String":n.t="s",n.r=f3(Rt(e)),n.v=e.indexOf("<")>-1?Rt(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(rr(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=Rt(e):n.v<60&&(n.v=n.v-1),(!d||d=="General")&&(d="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=H3[e],c.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=f3(t||e));break}if(yV(n,d,c),c.cellFormula!==!1)if(n.Formula){var _=Rt(n.Formula);_.charCodeAt(0)==61&&(_=_.slice(1)),n.f=Nl(_,a),delete n.Formula,n.ArrayRange=="RC"?n.F=Nl("RC:RC",a):n.ArrayRange&&(n.F=Nl(n.ArrayRange,a),l.push([At(n.F),n.F]))}else for(y=0;y<l.length;++y)a.r>=l[y][0].s.r&&a.r<=l[y][0].e.r&&a.c>=l[y][0].s.c&&a.c<=l[y][0].e.c&&(n.F=l[y][1]);c.cellStyles&&(v.forEach(function(C){!g.patternType&&C.patternType&&(g.patternType=C.patternType)}),n.s=g),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function SV(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,`
430
+ `).replace(/\r/g,`
431
+ `),e.v=e.w=e.ixfe=void 0}function wm(e,t){var r=t||{};kl();var n=wl(N1(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(typeof Dt<"u"?n=Dt.utils.decode(65001,jd(n)):n=Yt(n));var a=n.slice(0,1024).toLowerCase(),i=!1;if(a=a.replace(/".*?"/g,""),(a.indexOf(">")&1023)>Math.min(a.indexOf(",")&1023,a.indexOf(";")&1023)){var s=Gt(r);return s.type="string",Pl.to_workbook(n,s)}if(a.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(ut){a.indexOf("<"+ut)>=0&&(i=!0)}),i)return iq(n,r);ef={"General Number":"General","General Date":Qe[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Qe[15],"Short Date":Qe[14],"Long Time":Qe[19],"Medium Time":Qe[18],"Short Time":Qe[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Qe[2],Standard:Qe[4],Percent:Qe[10],Scientific:Qe[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var o,l=[],c,d={},p=[],g=r.dense?[]:{},v="",y={},_={},C=$a('<Data ss:Type="String">'),E=0,T=0,b=0,h={s:{r:2e6,c:2e6},e:{r:0,c:0}},m={},x={},S="",A=0,k=[],F={},P={},j=0,L=[],B=[],U={},O=[],N,V=!1,M=[],q=[],Y={},z=0,re=0,J={Sheets:[],WBProps:{date1904:!1}},te={};Ic.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var oe="";o=Ic.exec(n);)switch(o[3]=(oe=o[3]).toLowerCase()){case"data":if(oe=="data"){if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break}if(l[l.length-1][1])break;o[1]==="/"?bV(n.slice(E,o.index),S,C,l[l.length-1][0]=="comment"?U:y,{c:T,r:b},m,O[T],_,M,r):(S="",C=$a(o[0]),E=o.index+o[0].length);break;case"cell":if(o[1]==="/")if(B.length>0&&(y.c=B),(!r.sheetRows||r.sheetRows>b)&&y.v!==void 0&&(r.dense?(g[b]||(g[b]=[]),g[b][T]=y):g[ar(T)+mr(b)]=y),y.HRef&&(y.l={Target:Rt(y.HRef)},y.HRefScreenTip&&(y.l.Tooltip=y.HRefScreenTip),delete y.HRef,delete y.HRefScreenTip),(y.MergeAcross||y.MergeDown)&&(z=T+(parseInt(y.MergeAcross,10)|0),re=b+(parseInt(y.MergeDown,10)|0),k.push({s:{c:T,r:b},e:{c:z,r:re}})),!r.sheetStubs)y.MergeAcross?T=z+1:++T;else if(y.MergeAcross||y.MergeDown){for(var ue=T;ue<=z;++ue)for(var ve=b;ve<=re;++ve)(ue>T||ve>b)&&(r.dense?(g[ve]||(g[ve]=[]),g[ve][ue]={t:"z"}):g[ar(ue)+mr(ve)]={t:"z"});T=z+1}else++T;else y=vV(o[0]),y.Index&&(T=+y.Index-1),T<h.s.c&&(h.s.c=T),T>h.e.c&&(h.e.c=T),o[0].slice(-2)==="/>"&&++T,B=[];break;case"row":o[1]==="/"||o[0].slice(-2)==="/>"?(b<h.s.r&&(h.s.r=b),b>h.e.r&&(h.e.r=b),o[0].slice(-2)==="/>"&&(_=$a(o[0]),_.Index&&(b=+_.Index-1)),T=0,++b):(_=$a(o[0]),_.Index&&(b=+_.Index-1),Y={},(_.AutoFitHeight=="0"||_.Height)&&(Y.hpx=parseInt(_.Height,10),Y.hpt=Yc(Y.hpx),q[b]=Y),_.Hidden=="1"&&(Y.hidden=!0,q[b]=Y));break;case"worksheet":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"));p.push(v),h.s.r<=h.e.r&&h.s.c<=h.e.c&&(g["!ref"]=vt(h),r.sheetRows&&r.sheetRows<=h.e.r&&(g["!fullref"]=g["!ref"],h.e.r=r.sheetRows-1,g["!ref"]=vt(h))),k.length&&(g["!merges"]=k),O.length>0&&(g["!cols"]=O),q.length>0&&(g["!rows"]=q),d[v]=g}else h={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=T=0,l.push([o[3],!1]),c=$a(o[0]),v=Rt(c.Name),g=r.dense?[]:{},k=[],M=[],q=[],te={name:v,Hidden:0},J.Sheets.push(te);break;case"table":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else{if(o[0].slice(-2)=="/>")break;l.push([o[3],!1]),O=[],V=!1}break;case"style":o[1]==="/"?wV(m,x,r):x=$a(o[0]);break;case"numberformat":x.nf=Rt($a(o[0]).Format||"General"),ef[x.nf]&&(x.nf=ef[x.nf]);for(var _e=0;_e!=392&&Qe[_e]!=x.nf;++_e);if(_e==392){for(_e=57;_e!=392;++_e)if(Qe[_e]==null){ii(x.nf,_e);break}}break;case"column":if(l[l.length-1][0]!=="table")break;if(N=$a(o[0]),N.Hidden&&(N.hidden=!0,delete N.Hidden),N.Width&&(N.wpx=parseInt(N.Width,10)),!V&&N.wpx>10){V=!0,ln=Lk;for(var ye=0;ye<O.length;++ye)O[ye]&&ys(O[ye])}V&&ys(N),O[N.Index-1||O.length]=N;for(var je=0;je<+N.Span;++je)O[O.length]=Gt(N);break;case"namedrange":if(o[1]==="/")break;J.Names||(J.Names=[]);var Z=ot(o[0]),Ge={Name:Z.Name,Ref:Nl(Z.RefersTo.slice(1),{r:0,c:0})};J.Sheets.length>0&&(Ge.Sheet=J.Sheets.length-1),J.Names.push(Ge);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(o[0].slice(-2)==="/>")break;o[1]==="/"?S+=n.slice(A,o.index):A=o.index+o[0].length;break;case"interior":if(!r.cellStyles)break;x.Interior=$a(o[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(o[0].slice(-2)==="/>")break;o[1]==="/"?G7(F,oe,n.slice(j,o.index)):j=o.index+o[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else l.push([o[3],!1]);break;case"comment":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"));SV(U),B.push(U)}else l.push([o[3],!1]),c=$a(o[0]),U={a:c.Author};break;case"autofilter":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else if(o[0].charAt(o[0].length-2)!=="/"){var Ae=$a(o[0]);g["!autofilter"]={ref:Nl(Ae.Range).replace(/\$/g,"")},l.push([o[3],!0])}break;case"name":break;case"datavalidation":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break;case"null":break;default:if(l.length==0&&o[3]=="document"||l.length==0&&o[3]=="uof")return NT(n,r);var ze=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:ze=!1}break;case"componentoptions":switch(o[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:ze=!1}break;case"excelworkbook":switch(o[3]){case"date1904":J.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:ze=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":break;case"height":break;case"width":break;default:ze=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if(o[0].slice(-2)!=="/>")if(o[1]==="/")switch(n.slice(j,o.index)){case"SheetHidden":te.Hidden=1;break;case"SheetVeryHidden":te.Hidden=2;break}else j=o.index+o[0].length;break;case"header":g["!margins"]||Oo(g["!margins"]={},"xlml"),isNaN(+ot(o[0]).Margin)||(g["!margins"].header=+ot(o[0]).Margin);break;case"footer":g["!margins"]||Oo(g["!margins"]={},"xlml"),isNaN(+ot(o[0]).Margin)||(g["!margins"].footer=+ot(o[0]).Margin);break;case"pagemargins":var qe=ot(o[0]);g["!margins"]||Oo(g["!margins"]={},"xlml"),isNaN(+qe.Top)||(g["!margins"].top=+qe.Top),isNaN(+qe.Left)||(g["!margins"].left=+qe.Left),isNaN(+qe.Right)||(g["!margins"].right=+qe.Right),isNaN(+qe.Bottom)||(g["!margins"].bottom=+qe.Bottom);break;case"displayrighttoleft":J.Views||(J.Views=[]),J.Views[0]||(J.Views[0]={}),J.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":g["!outline"]||(g["!outline"]={}),g["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":g["!outline"]||(g["!outline"]={}),g["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:ze=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:ze=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ze=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ze=!1}break;case"querytable":switch(o[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:ze=!1}break;case"datavalidation":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:ze=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:ze=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:ze=!1}break;case"smarttags":break;default:ze=!1;break}if(ze||o[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(o[0].slice(-2)==="/>")break;o[1]==="/"?_V(P,oe,L,n.slice(j,o.index)):(L=o,j=o.index+o[0].length);break}if(r.WTF)throw"Unrecognized tag: "+o[3]+"|"+l.join("|")}var Pe={};return!r.bookSheets&&!r.bookProps&&(Pe.Sheets=d),Pe.SheetNames=p,Pe.Workbook=J,Pe.SSF=Gt(Qe),Pe.Props=F,Pe.Custprops=P,Pe}function bm(e,t){switch(Fm(t=t||{}),t.type||"base64"){case"base64":return wm(Yn(e),t);case"binary":case"buffer":case"file":return wm(e,t);case"array":return wm(ps(e),t)}}function kV(e,t){var r=[];return e.Props&&r.push(K7(e.Props,t)),e.Custprops&&r.push(X7(e.Props,e.Custprops)),r.join("")}function TV(){return""}function EV(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,a){var i=[];i.push(Le("NumberFormat",null,{"ss:Format":zt(Qe[n.numFmtId])}));var s={"ss:ID":"s"+(21+a)};r.push(Le("Style",i.join(""),s))}),Le("Styles",r.join(""))}function yT(e){return Le("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+pm(e.Ref,{r:0,c:0})})}function CV(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var a=t[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(yT(a)))}return Le("Names",r.join(""))}function AV(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,i=[],s=0;s<a.length;++s){var o=a[s];o.Sheet==r&&(o.Name.match(/^_xlfn\./)||i.push(yT(o)))}return i.join("")}function OV(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push("<PageSetup>"),e["!margins"].header&&a.push(Le("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(Le("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(Le("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(Le("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(n.Workbook.Sheets[i]&&!n.Workbook.Sheets[i].Hidden);++i);i==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),e["!protect"]&&(a.push(Yr("ProtectContents","True")),e["!protect"].objects&&a.push(Yr("ProtectObjects","True")),e["!protect"].scenarios&&a.push(Yr("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(Yr("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(Yr("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&a.push("<"+s[1]+"/>")})),a.length==0?"":Le("WorksheetOptions",a.join(""),{xmlns:Zn.x})}function FV(e){return e.map(function(t){var r=JL(t.t||""),n=Le("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Le("Comment",n,{"ss:Author":t.a})}).join("")}function PV(e,t,r,n,a,i,s){if(!e||e.v==null&&e.f==null)return"";var o={};if(e.f&&(o["ss:Formula"]="="+zt(pm(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var l=fr(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=zt(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=zt(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],d=0;d!=c.length;++d)c[d].s.c!=s.c||c[d].s.r!=s.r||(c[d].e.c>c[d].s.c&&(o["ss:MergeAcross"]=c[d].e.c-c[d].s.c),c[d].e.r>c[d].s.r&&(o["ss:MergeDown"]=c[d].e.r-c[d].s.r));var p="",g="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",g=String(e.v);break;case"b":p="Boolean",g=e.v?"1":"0";break;case"e":p="Error",g=Wi[e.v];break;case"d":p="DateTime",g=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Qe[14]);break;case"s":p="String",g=ZL(e.v||"");break}var v=bs(n.cellXfs,e,n);o["ss:StyleID"]="s"+(21+v),o["ss:Index"]=s.c+1;var y=e.v!=null?g:"",_=e.t=="z"?"":'<Data ss:Type="'+p+'">'+y+"</Data>";return(e.c||[]).length>0&&(_+=FV(e.c)),Le("Cell",_,o)}function DV(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Dl(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function RV(e,t,r,n){if(!e["!ref"])return"";var a=At(e["!ref"]),i=e["!merges"]||[],s=0,o=[];e["!cols"]&&e["!cols"].forEach(function(C,E){ys(C);var T=!!C.width,b=d0(E,C),h={"ss:Index":E+1};T&&(h["ss:Width"]=Vc(b.width)),C.hidden&&(h["ss:Hidden"]="1"),o.push(Le("Column",null,h))});for(var l=Array.isArray(e),c=a.s.r;c<=a.e.r;++c){for(var d=[DV(c,(e["!rows"]||[])[c])],p=a.s.c;p<=a.e.c;++p){var g=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>p)&&!(i[s].s.r>c)&&!(i[s].e.c<p)&&!(i[s].e.r<c)){(i[s].s.c!=p||i[s].s.r!=c)&&(g=!0);break}if(!g){var v={r:c,c:p},y=at(v),_=l?(e[c]||[])[p]:e[y];d.push(PV(_,y,e,t,r,n,v))}}d.push("</Row>"),d.length>2&&o.push(d.join(""))}return o.join("")}function NV(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],s=i?AV(i,t,e,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=i?RV(i,t,e,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(OV(i,t,e,r)),n.join("")}function MV(e,t){t||(t={}),e.SSF||(e.SSF=Gt(Qe)),e.SSF&&(kl(),Pc(e.SSF),t.revssf=$d(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],bs(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(kV(e,t)),r.push(TV()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(Le("Worksheet",NV(n,t,e),{"ss:Name":zt(e.SheetNames[n])}));return r[2]=EV(e,t),r[3]=CV(e),br+Le("Workbook",r.join(""),{xmlns:Zn.ss,"xmlns:o":Zn.o,"xmlns:x":Zn.x,"xmlns:ss":Zn.ss,"xmlns:dt":Zn.dt,"xmlns:html":Zn.html})}function IV(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=A7(r),r.length-r.l<=4)return t;var n=r.read_shift(4);if(n==0||n>40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(t.UnicodeClipboardFormat=O7(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var LV=[60,1084,2066,2165,2175];function BV(e,t,r,n,a){var i=n,s=[],o=r.slice(r.l,r.l+i);if(a&&a.enc&&a.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:a.enc.insitu(o)}s.push(o),r.l+=i;for(var l=Hi(r,r.l),c=km[l],d=0;c!=null&&LV.indexOf(l)>-1;)i=Hi(r,r.l+2),d=r.l+4,l==2066?d+=4:(l==2165||l==2175)&&(d+=12),o=r.slice(d,r.l+4+i),s.push(o),r.l+=4+i,c=km[l=Hi(r,r.l)];var p=Lr(s);Gr(p,0);var g=0;p.lens=[];for(var v=0;v<s.length;++v)p.lens.push(g),g+=s[v].length;if(p.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+p.length+" < "+n;return t.f(p,p.length,a)}function ci(e,t,r){if(e.t!=="z"&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=Qe[n])}catch(i){if(t.WTF)throw i}if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||Wi[e.v]:n===0||n=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Fc(e.v):e.w=ho(e.v):e.w=Kn(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(i){if(t.WTF)throw i}if(t.cellDates&&n&&e.t=="n"&&po(Qe[n]||String(n))){var a=gs(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}}function h0(e,t,r){return{v:e,ixfe:t,t:r}}function jV(e,t){var r={opts:{}},n={},a=t.dense?[]:{},i={},s={},o=null,l=[],c="",d={},p,g="",v,y,_,C,E={},T=[],b,h,m=[],x=[],S={Sheets:[],WBProps:{date1904:!1},Views:[{}]},A={},k=function(dt){return dt<8?So[dt]:dt<64&&x[dt-8]||So[dt]},F=function(dt,Kt,zr){var sr=Kt.XF.data;if(!(!sr||!sr.patternType||!zr||!zr.cellStyles)){Kt.s={},Kt.s.patternType=sr.patternType;var Qn;(Qn=$c(k(sr.icvFore)))&&(Kt.s.fgColor={rgb:Qn}),(Qn=$c(k(sr.icvBack)))&&(Kt.s.bgColor={rgb:Qn})}},P=function(dt,Kt,zr){if(!(Y>1)&&!(zr.sheetRows&&dt.r>=zr.sheetRows)){if(zr.cellStyles&&Kt.XF&&Kt.XF.data&&F(dt,Kt,zr),delete Kt.ixfe,delete Kt.XF,p=dt,g=at(dt),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),dt.r<s.s.r&&(s.s.r=dt.r),dt.c<s.s.c&&(s.s.c=dt.c),dt.r+1>s.e.r&&(s.e.r=dt.r+1),dt.c+1>s.e.c&&(s.e.c=dt.c+1),zr.cellFormula&&Kt.f){for(var sr=0;sr<T.length;++sr)if(!(T[sr][0].s.c>dt.c||T[sr][0].s.r>dt.r)&&!(T[sr][0].e.c<dt.c||T[sr][0].e.r<dt.r)){Kt.F=vt(T[sr][0]),(T[sr][0].s.c!=dt.c||T[sr][0].s.r!=dt.r)&&delete Kt.f,Kt.f&&(Kt.f=""+un(T[sr][1],s,dt,M,j));break}}zr.dense?(a[dt.r]||(a[dt.r]=[]),a[dt.r][dt.c]=Kt):a[g]=Kt}},j={enc:!1,sbcch:0,snames:[],sharedf:E,arrayf:T,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(j.password=t.password);var L,B=[],U=[],O=[],N=[],V=!1,M=[];M.SheetNames=j.snames,M.sharedf=j.sharedf,M.arrayf=j.arrayf,M.names=[],M.XTI=[];var q=0,Y=0,z=0,re=[],J=[],te;j.codepage=1200,ha(1200);for(var oe=!1;e.l<e.length-1;){var ue=e.l,ve=e.read_shift(2);if(ve===0&&q===10)break;var _e=e.l===e.length?0:e.read_shift(2),ye=km[ve];if(ye&&ye.f){if(t.bookSheets&&q===133&&ve!==133)break;if(q=ve,ye.r===2||ye.r==12){var je=e.read_shift(2);if(_e-=2,!j.enc&&je!==ve&&((je&255)<<8|je>>8)!==ve)throw new Error("rt mismatch: "+je+"!="+ve);ye.r==12&&(e.l+=10,_e-=10)}var Z={};if(ve===10?Z=ye.f(e,_e,j):Z=BV(ve,ye,e,_e,j),Y==0&&[9,521,1033,2057].indexOf(q)===-1)continue;switch(ve){case 34:r.opts.Date1904=S.WBProps.date1904=Z;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(j.enc||(e.l=0),j.enc=Z,!t.password)throw new Error("File is password-protected");if(Z.valid==null)throw new Error("Encryption scheme unsupported");if(!Z.valid)throw new Error("Password is incorrect");break;case 92:j.lastuser=Z;break;case 66:var Ge=Number(Z);switch(Ge){case 21010:Ge=1200;break;case 32768:Ge=1e4;break;case 32769:Ge=1252;break}ha(j.codepage=Ge),oe=!0;break;case 317:j.rrtabid=Z;break;case 25:j.winlocked=Z;break;case 439:r.opts.RefreshAll=Z;break;case 12:r.opts.CalcCount=Z;break;case 16:r.opts.CalcDelta=Z;break;case 17:r.opts.CalcIter=Z;break;case 13:r.opts.CalcMode=Z;break;case 14:r.opts.CalcPrecision=Z;break;case 95:r.opts.CalcSaveRecalc=Z;break;case 15:j.CalcRefMode=Z;break;case 2211:r.opts.FullCalc=Z;break;case 129:Z.fDialog&&(a["!type"]="dialog"),Z.fBelow||((a["!outline"]||(a["!outline"]={})).above=!0),Z.fRight||((a["!outline"]||(a["!outline"]={})).left=!0);break;case 224:m.push(Z);break;case 430:M.push([Z]),M[M.length-1].XTI=[];break;case 35:case 547:M[M.length-1].push(Z);break;case 24:case 536:te={Name:Z.Name,Ref:un(Z.rgce,s,null,M,j)},Z.itab>0&&(te.Sheet=Z.itab-1),M.names.push(te),M[0]||(M[0]=[],M[0].XTI=[]),M[M.length-1].push(Z),Z.Name=="_xlnm._FilterDatabase"&&Z.itab>0&&Z.rgce&&Z.rgce[0]&&Z.rgce[0][0]&&Z.rgce[0][0][0]=="PtgArea3d"&&(J[Z.itab-1]={ref:vt(Z.rgce[0][0][1][2])});break;case 22:j.ExternCount=Z;break;case 23:M.length==0&&(M[0]=[],M[0].XTI=[]),M[M.length-1].XTI=M[M.length-1].XTI.concat(Z),M.XTI=M.XTI.concat(Z);break;case 2196:if(j.biff<8)break;te!=null&&(te.Comment=Z[1]);break;case 18:a["!protect"]=Z;break;case 19:Z!==0&&j.WTF&&console.error("Password verifier: "+Z);break;case 133:i[Z.pos]=Z,j.snames.push(Z.name);break;case 10:{if(--Y)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,a["!ref"]=vt(s),t.sheetRows&&t.sheetRows<=s.e.r){var Ae=s.e.r;s.e.r=t.sheetRows-1,a["!fullref"]=a["!ref"],a["!ref"]=vt(s),s.e.r=Ae}s.e.r++,s.e.c++}B.length>0&&(a["!merges"]=B),U.length>0&&(a["!objects"]=U),O.length>0&&(a["!cols"]=O),N.length>0&&(a["!rows"]=N),S.Sheets.push(A)}c===""?d=a:n[c]=a,a=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(j.biff===8&&(j.biff={9:2,521:3,1033:4}[ve]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Z.BIFFVer]||8),j.biffguess=Z.BIFFVer==0,Z.BIFFVer==0&&Z.dt==4096&&(j.biff=5,oe=!0,ha(j.codepage=28591)),j.biff==8&&Z.BIFFVer==0&&Z.dt==16&&(j.biff=2),Y++)break;if(a=t.dense?[]:{},j.biff<8&&!oe&&(oe=!0,ha(j.codepage=t.codepage||1252)),j.biff<5||Z.BIFFVer==0&&Z.dt==4096){c===""&&(c="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var ze={pos:e.l-_e,name:c};i[ze.pos]=ze,j.snames.push(c)}else c=(i[ue]||{name:""}).name;Z.dt==32&&(a["!type"]="chart"),Z.dt==64&&(a["!type"]="macro"),B=[],U=[],j.arrayf=T=[],O=[],N=[],V=!1,A={Hidden:(i[ue]||{hs:0}).hs,name:c}}break;case 515:case 3:case 2:a["!type"]=="chart"&&(t.dense?(a[Z.r]||[])[Z.c]:a[at({c:Z.c,r:Z.r})])&&++Z.c,b={ixfe:Z.ixfe,XF:m[Z.ixfe]||{},v:Z.val,t:"n"},z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P({c:Z.c,r:Z.r},b,t);break;case 5:case 517:b={ixfe:Z.ixfe,XF:m[Z.ixfe],v:Z.val,t:Z.t},z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P({c:Z.c,r:Z.r},b,t);break;case 638:b={ixfe:Z.ixfe,XF:m[Z.ixfe],v:Z.rknum,t:"n"},z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P({c:Z.c,r:Z.r},b,t);break;case 189:for(var qe=Z.c;qe<=Z.C;++qe){var Pe=Z.rkrec[qe-Z.c][0];b={ixfe:Pe,XF:m[Pe],v:Z.rkrec[qe-Z.c][1],t:"n"},z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P({c:qe,r:Z.r},b,t)}break;case 6:case 518:case 1030:{if(Z.val=="String"){o=Z;break}if(b=h0(Z.val,Z.cell.ixfe,Z.tt),b.XF=m[b.ixfe],t.cellFormula){var ut=Z.formula;if(ut&&ut[0]&&ut[0][0]&&ut[0][0][0]=="PtgExp"){var Ye=ut[0][0][1][0],it=ut[0][0][1][1],ht=at({r:Ye,c:it});E[ht]?b.f=""+un(Z.formula,s,Z.cell,M,j):b.F=((t.dense?(a[Ye]||[])[it]:a[ht])||{}).F}else b.f=""+un(Z.formula,s,Z.cell,M,j)}z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P(Z.cell,b,t),o=Z}break;case 7:case 519:if(o)o.val=Z,b=h0(Z,o.cell.ixfe,"s"),b.XF=m[b.ixfe],t.cellFormula&&(b.f=""+un(o.formula,s,o.cell,M,j)),z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P(o.cell,b,t),o=null;else throw new Error("String record expects Formula");break;case 33:case 545:{T.push(Z);var ir=at(Z[0].s);if(v=t.dense?(a[Z[0].s.r]||[])[Z[0].s.c]:a[ir],t.cellFormula&&v){if(!o||!ir||!v)break;v.f=""+un(Z[1],s,Z[0],M,j),v.F=vt(Z[0])}}break;case 1212:{if(!t.cellFormula)break;if(g){if(!o)break;E[at(o.cell)]=Z[0],v=t.dense?(a[o.cell.r]||[])[o.cell.c]:a[at(o.cell)],(v||{}).f=""+un(Z[0],s,p,M,j)}}break;case 253:b=h0(l[Z.isst].t,Z.ixfe,"s"),l[Z.isst].h&&(b.h=l[Z.isst].h),b.XF=m[b.ixfe],z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P({c:Z.c,r:Z.r},b,t);break;case 513:t.sheetStubs&&(b={ixfe:Z.ixfe,XF:m[Z.ixfe],t:"z"},z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P({c:Z.c,r:Z.r},b,t));break;case 190:if(t.sheetStubs)for(var Fr=Z.c;Fr<=Z.C;++Fr){var Xr=Z.ixfe[Fr-Z.c];b={ixfe:Xr,XF:m[Xr],t:"z"},z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P({c:Fr,r:Z.r},b,t)}break;case 214:case 516:case 4:b=h0(Z.val,Z.ixfe,"s"),b.XF=m[b.ixfe],z>0&&(b.z=re[b.ixfe>>8&63]),ci(b,t,r.opts.Date1904),P({c:Z.c,r:Z.r},b,t);break;case 0:case 512:Y===1&&(s=Z);break;case 252:l=Z;break;case 1054:if(j.biff==4){re[z++]=Z[1];for(var Hr=0;Hr<z+163&&Qe[Hr]!=Z[1];++Hr);Hr>=163&&ii(Z[1],z+163)}else ii(Z[1],Z[0]);break;case 30:{re[z++]=Z;for(var Jn=0;Jn<z+163&&Qe[Jn]!=Z;++Jn);Jn>=163&&ii(Z,z+163)}break;case 229:B=B.concat(Z);break;case 93:U[Z.cmo[0]]=j.lastobj=Z;break;case 438:j.lastobj.TxO=Z;break;case 127:j.lastobj.ImData=Z;break;case 440:for(C=Z[0].s.r;C<=Z[0].e.r;++C)for(_=Z[0].s.c;_<=Z[0].e.c;++_)v=t.dense?(a[C]||[])[_]:a[at({c:_,r:C})],v&&(v.l=Z[1]);break;case 2048:for(C=Z[0].s.r;C<=Z[0].e.r;++C)for(_=Z[0].s.c;_<=Z[0].e.c;++_)v=t.dense?(a[C]||[])[_]:a[at({c:_,r:C})],v&&v.l&&(v.l.Tooltip=Z[1]);break;case 28:{if(j.biff<=5&&j.biff>=2)break;v=t.dense?(a[Z[0].r]||[])[Z[0].c]:a[at(Z[0])];var Dn=U[Z[2]];v||(t.dense?(a[Z[0].r]||(a[Z[0].r]=[]),v=a[Z[0].r][Z[0].c]={t:"z"}):v=a[at(Z[0])]={t:"z"},s.e.r=Math.max(s.e.r,Z[0].r),s.s.r=Math.min(s.s.r,Z[0].r),s.e.c=Math.max(s.e.c,Z[0].c),s.s.c=Math.min(s.s.c,Z[0].c)),v.c||(v.c=[]),y={a:Z[1],t:Dn.TxO.t},v.c.push(y)}break;case 2173:CU(m[Z.ixfe],Z.ext);break;case 125:{if(!j.cellStyles)break;for(;Z.e>=Z.s;)O[Z.e--]={width:Z.w/256,level:Z.level||0,hidden:!!(Z.flags&1)},V||(V=!0,cm(Z.w/256)),ys(O[Z.e+1])}break;case 520:{var ur={};Z.level!=null&&(N[Z.r]=ur,ur.level=Z.level),Z.hidden&&(N[Z.r]=ur,ur.hidden=!0),Z.hpt&&(N[Z.r]=ur,ur.hpt=Z.hpt,ur.hpx=Dl(Z.hpt))}break;case 38:case 39:case 40:case 41:a["!margins"]||Oo(a["!margins"]={}),a["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[ve]]=Z;break;case 161:a["!margins"]||Oo(a["!margins"]={}),a["!margins"].header=Z.header,a["!margins"].footer=Z.footer;break;case 574:Z.RTL&&(S.Views[0].RTL=!0);break;case 146:x=Z;break;case 2198:L=Z;break;case 140:h=Z;break;case 442:c?A.CodeName=Z||A.name:S.WBProps.CodeName=Z||"ThisWorkbook";break}}else ye||console.error("Missing Info for XLS Record 0x"+ve.toString(16)),e.l+=_e}return r.SheetNames=pr(i).sort(function(Zr,dt){return Number(Zr)-Number(dt)}).map(function(Zr){return i[Zr].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&d["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=d)):r.Preamble=d,r.Sheets&&J.forEach(function(Zr,dt){r.Sheets[r.SheetNames[dt]]["!autofilter"]=Zr}),r.Strings=l,r.SSF=Gt(Qe),j.enc&&(r.Encryption=j.enc),L&&(r.Themes=L),r.Metadata={},h!==void 0&&(r.Metadata.Country=h),M.names.length>0&&(S.Names=M.names),r.Workbook=S,r}var tf={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function UV(e,t,r){var n=Xe.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var a=sk(n,X1,tf.DSI);for(var i in a)t[i]=a[i]}catch(c){if(r.WTF)throw c}var s=Xe.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var o=sk(s,Z1,tf.SI);for(var l in o)t[l]==null&&(t[l]=o[l])}catch(c){if(r.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(G3(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function HV(e,t){var r=[],n=[],a=[],i=0,s,o=JS(X1,"n"),l=JS(Z1,"n");if(e.Props)for(s=pr(e.Props),i=0;i<s.length;++i)(Object.prototype.hasOwnProperty.call(o,s[i])?r:Object.prototype.hasOwnProperty.call(l,s[i])?n:a).push([s[i],e.Props[s[i]]]);if(e.Custprops)for(s=pr(e.Custprops),i=0;i<s.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},s[i])||(Object.prototype.hasOwnProperty.call(o,s[i])?r:Object.prototype.hasOwnProperty.call(l,s[i])?n:a).push([s[i],e.Custprops[s[i]]]);var c=[];for(i=0;i<a.length;++i)ak.indexOf(a[i][0])>-1||Y3.indexOf(a[i][0])>-1||a[i][1]!=null&&c.push(a[i]);n.length&&Xe.utils.cfb_add(t,"/SummaryInformation",ok(n,tf.SI,l,Z1)),(r.length||c.length)&&Xe.utils.cfb_add(t,"/DocumentSummaryInformation",ok(r,tf.DSI,o,X1,c.length?c:null,tf.UDI))}function Sm(e,t){t||(t={}),Fm(t),Bd(),t.codepage&&Ld(t.codepage);var r,n;if(e.FullPaths){if(Xe.find(e,"/encryption"))throw new Error("File is password-protected");r=Xe.find(e,"!CompObj"),n=Xe.find(e,"/Workbook")||Xe.find(e,"/Book")}else{switch(t.type){case"base64":e=Gn(Yn(e));break;case"binary":e=Gn(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Gr(e,0),n={content:e}}var a,i;if(r&&IV(r),t.bookProps&&!t.bookSheets)a={};else{var s=bt?"buffer":"array";if(n&&n.content)a=jV(n.content,t);else if((i=Xe.find(e,"PerfectOffice_MAIN"))&&i.content)a=Ao.to_workbook(i.content,(t.type=s,t));else if((i=Xe.find(e,"NativeContent_MAIN"))&&i.content)a=Ao.to_workbook(i.content,(t.type=s,t));else throw(i=Xe.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&Xe.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=tH(e))}var o={};return e.FullPaths&&UV(e,o,t),a.Props=a.Custprops=o,t.bookFiles&&(a.cfb=e),a}function zV(e,t){var r=t||{},n=Xe.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Xe.utils.cfb_add(n,a,wT(e,r)),r.biff==8&&(e.Props||e.Custprops)&&HV(e,n),r.biff==8&&e.vbaraw&&rH(n,Xe.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var rf={0:{f:hW},1:{f:wW},2:{f:UW},3:{f:OW},4:{f:TW},5:{f:LW},6:{f:VW},7:{f:RW},8:{f:JW},9:{f:ZW},10:{f:KW},11:{f:XW},12:{f:SW},13:{f:zW},14:{f:PW},15:{f:CW},16:{f:cT},17:{f:YW},18:{f:MW},19:{f:$1},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:q$},40:{},42:{},43:{f:Vj},44:{f:Wj},45:{f:Gj},46:{f:Xj},47:{f:Kj},48:{},49:{f:m7},50:{},51:{f:FU},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Ck},62:{f:$W},63:{f:jU},64:{f:p$},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:nn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:c$},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:_W},148:{f:mW,p:16},151:{f:a$},152:{},153:{f:W$},154:{},155:{},156:{f:H$},157:{},158:{},159:{T:1,f:sj},160:{T:-1},161:{T:1,f:wo},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:QW},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:AU},336:{T:-1},337:{f:RU,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:q1},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Tk},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:i$},427:{f:s$},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:l$},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:xW},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:r$},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:q1},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:XU},633:{T:1},634:{T:-1},635:{T:1,f:GU},636:{T:-1},637:{f:y7},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:P$},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:g$},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},km={6:{f:mm},10:{f:_s},12:{f:Ar},13:{f:Ar},14:{f:Sr},15:{f:Sr},16:{f:sn},17:{f:Sr},18:{f:Sr},19:{f:Ar},20:{f:bk},21:{f:bk},23:{f:Tk},24:{f:kk},25:{f:Sr},26:{},27:{},28:{f:gB},29:{},34:{f:Sr},35:{f:Sk},38:{f:sn},39:{f:sn},40:{f:sn},41:{f:sn},42:{f:Sr},43:{f:Sr},47:{f:Cj},49:{f:z9},51:{f:Ar},60:{},61:{f:L9},64:{f:Sr},65:{f:H9},66:{f:Ar},77:{},80:{},81:{},82:{},85:{f:Ar},89:{},90:{},91:{},92:{f:E9},93:{f:xB},94:{},95:{f:Sr},96:{},97:{},99:{f:Sr},125:{f:Ck},128:{f:nB},129:{f:A9},130:{f:Ar},131:{f:Sr},132:{f:Sr},133:{f:O9},134:{},140:{f:EB},141:{f:Ar},144:{},146:{f:OB},151:{},152:{},153:{},154:{},155:{},156:{f:Ar},157:{},158:{},160:{f:IB},161:{f:DB},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Q9},190:{f:eB},193:{f:_s},197:{},198:{},199:{},200:{},201:{},202:{f:Sr},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Ar},220:{},221:{f:Sr},222:{},224:{f:rB},225:{f:T9},226:{f:_s},227:{},229:{f:mB},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:P9},253:{f:$9},255:{f:R9},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:lk},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Sr},353:{f:_s},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:lB},431:{f:Sr},432:{},433:{},434:{},437:{},438:{f:wB},439:{f:Sr},440:{f:bB},441:{},442:{f:Wc},443:{},444:{f:Ar},445:{},446:{},448:{f:_s},449:{f:I9,r:2},450:{f:_s},512:{f:_k},513:{f:MB},515:{f:sB},516:{f:q9},517:{f:wk},519:{f:LB},520:{f:N9},523:{},545:{f:Ek},549:{f:xk},566:{},574:{f:j9},638:{f:J9},659:{},1048:{},1054:{f:G9},1084:{},1212:{f:dB},2048:{f:kB},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:i0},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:_s},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:FB,r:12},2173:{f:EU,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Sr,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:fB,r:12},2197:{},2198:{f:yU,r:12},2199:{},2200:{},2201:{},2202:{f:hB,r:12},2203:{f:_s},2204:{},2205:{},2206:{},2207:{},2211:{f:M9},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Ar},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:RB},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:AB},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:_k},1:{},2:{f:zB},3:{f:UB},4:{f:jB},5:{f:wk},7:{f:$B},8:{},9:{f:i0},11:{},22:{f:Ar},30:{f:X9},31:{},32:{},33:{f:Ek},36:{},37:{f:xk},50:{f:VB},62:{},52:{},67:{},68:{f:Ar},69:{},86:{},126:{},127:{f:BB},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:qB},223:{},234:{},354:{},421:{},518:{f:mm},521:{f:i0},536:{f:kk},547:{f:Sk},561:{},579:{},1030:{f:mm},1033:{f:i0},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Be(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,i),i>0&&U1(r)&&e.push(r)}}function WV(e,t,r,n){var a=(r||[]).length||0;if(a<=8224)return Be(e,t,r,a);var i=t;if(!isNaN(i)){for(var s=r.parts||[],o=0,l=0,c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;var d=e.next(4);for(d.write_shift(2,i),d.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l<a;){for(d=e.next(4),d.write_shift(2,60),c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;d.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c}}}function nf(e,t,r){return e||(e=Se(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function $V(e,t,r,n){var a=Se(9);return nf(a,e,t),uk(r,n||"b",a),a}function VV(e,t,r){var n=Se(8+2*r.length);return nf(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function qV(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var a=t.t=="d"?Dr(rr(t.v)):t.v;a==(a|0)&&a>=0&&a<65536?Be(e,2,WB(r,n,a)):Be(e,3,HB(r,n,a));return;case"b":case"e":Be(e,5,$V(r,n,t.v,t.t));return;case"s":case"str":Be(e,4,VV(r,n,(t.v||"").slice(0,255)));return}Be(e,1,nf(null,r,n))}function YV(e,t,r,n){var a=Array.isArray(t),i=At(t["!ref"]||"A1"),s,o="",l=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),s=vt(i)}for(var c=i.s.r;c<=i.e.r;++c){o=mr(c);for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(l[d]=ar(d)),s=l[d]+o;var p=a?(t[c]||[])[d]:t[s];p&&qV(e,p,c,d)}}}function GV(e,t){for(var r=t||{},n=Fn(),a=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==r.sheet&&(a=i);if(a==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return Be(n,r.biff==4?1033:r.biff==3?521:9,im(e,16,r)),YV(n,e.Sheets[e.SheetNames[a]],a,r),Be(n,10),n.end()}function KV(e,t,r){Be(e,49,W9({sz:12,name:"Arial"},r))}function XV(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&Be(e,1054,K9(a,t[a],r))})}function ZV(e,t){var r=Se(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),Be(e,2151,r),r=Se(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),gk(At(t["!ref"]||"A1"),r),r.write_shift(4,4),Be(e,2152,r)}function JV(e,t){for(var r=0;r<16;++r)Be(e,224,yk({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){Be(e,224,yk(n,0,t))})}function QV(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];Be(e,440,SB(n)),n[1].Tooltip&&Be(e,2048,TB(n))}delete t["!links"]}function eq(e,t){if(t){var r=0;t.forEach(function(n,a){++r<=256&&n&&Be(e,125,PB(d0(a,n),a))})}}function tq(e,t,r,n,a){var i=16+bs(a.cellXfs,t,a);if(t.v==null&&!t.bf){Be(e,513,Co(r,n,i));return}if(t.bf)Be(e,6,Az(t,r,n,a,i));else switch(t.t){case"d":case"n":var s=t.t=="d"?Dr(rr(t.v)):t.v;Be(e,515,oB(r,n,s,i));break;case"b":case"e":Be(e,517,iB(r,n,t.v,i,a,t.t));break;case"s":case"str":if(a.bookSST){var o=xm(a.Strings,t.v,a.revStrings);Be(e,253,V9(r,n,o,i))}else Be(e,516,Y9(r,n,(t.v||"").slice(0,255),i,a));break;default:Be(e,513,Co(r,n,i))}}function rq(e,t,r){var n=Fn(),a=r.SheetNames[e],i=r.Sheets[a]||{},s=(r||{}).Workbook||{},o=(s.Sheets||[])[e]||{},l=Array.isArray(i),c=t.biff==8,d,p="",g=[],v=At(i["!ref"]||"A1"),y=c?65536:16384;if(v.e.c>255||v.e.r>=y){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");v.e.c=Math.min(v.e.c,255),v.e.r=Math.min(v.e.c,y-1)}Be(n,2057,im(r,16,t)),Be(n,13,xa(1)),Be(n,12,xa(100)),Be(n,15,wn(!0)),Be(n,17,wn(!1)),Be(n,16,bo(.001)),Be(n,95,wn(!0)),Be(n,42,wn(!1)),Be(n,43,wn(!1)),Be(n,130,xa(1)),Be(n,128,aB()),Be(n,131,wn(!1)),Be(n,132,wn(!1)),c&&eq(n,i["!cols"]),Be(n,512,Z9(v,t)),c&&(i["!links"]=[]);for(var _=v.s.r;_<=v.e.r;++_){p=mr(_);for(var C=v.s.c;C<=v.e.c;++C){_===v.s.r&&(g[C]=ar(C)),d=g[C]+p;var E=l?(i[_]||[])[C]:i[d];E&&(tq(n,E,_,C,t),c&&E.l&&i["!links"].push([d,E.l]))}}var T=o.CodeName||o.name||a;return c&&Be(n,574,U9((s.Views||[])[0])),c&&(i["!merges"]||[]).length&&Be(n,229,vB(i["!merges"])),c&&QV(n,i),Be(n,442,ck(T)),c&&ZV(n,i),Be(n,10),n.end()}function nq(e,t,r){var n=Fn(),a=(e||{}).Workbook||{},i=a.Sheets||[],s=a.WBProps||{},o=r.biff==8,l=r.biff==5;if(Be(n,2057,im(e,5,r)),r.bookType=="xla"&&Be(n,135),Be(n,225,o?xa(1200):null),Be(n,193,i9(2)),l&&Be(n,191),l&&Be(n,192),Be(n,226),Be(n,92,C9("SheetJS",r)),Be(n,66,xa(o?1200:1252)),o&&Be(n,353,xa(0)),o&&Be(n,448),Be(n,317,NB(e.SheetNames.length)),o&&e.vbaraw&&Be(n,211),o&&e.vbaraw){var c=s.CodeName||"ThisWorkbook";Be(n,442,ck(c))}Be(n,156,xa(17)),Be(n,25,wn(!1)),Be(n,18,wn(!1)),Be(n,19,xa(0)),o&&Be(n,431,wn(!1)),o&&Be(n,444,xa(0)),Be(n,61,B9()),Be(n,64,wn(!1)),Be(n,141,xa(0)),Be(n,34,wn(I$(e)=="true")),Be(n,14,wn(!0)),o&&Be(n,439,wn(!1)),Be(n,218,xa(0)),KV(n,e,r),XV(n,e.SSF,r),JV(n,r),o&&Be(n,352,wn(!1));var d=n.end(),p=Fn();o&&Be(p,140,CB()),o&&r.Strings&&WV(p,252,D9(r.Strings)),Be(p,10);var g=p.end(),v=Fn(),y=0,_=0;for(_=0;_<e.SheetNames.length;++_)y+=(o?12:11)+(o?2:1)*e.SheetNames[_].length;var C=d.length+y+g.length;for(_=0;_<e.SheetNames.length;++_){var E=i[_]||{};Be(v,133,F9({pos:C,hs:E.Hidden||0,dt:0,name:e.SheetNames[_]},r)),C+=t[_].length}var T=v.end();if(y!=T.length)throw new Error("BS8 "+y+" != "+T.length);var b=[];return d.length&&b.push(d),T.length&&b.push(T),g.length&&b.push(g),Lr(b)}function aq(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=Gt(Qe)),e&&e.SSF&&(kl(),Pc(e.SSF),r.revssf=$d(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Pm(r),r.cellXfs=[],bs(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var a=0;a<e.SheetNames.length;++a)n[n.length]=rq(a,r,e);return n.unshift(nq(e,n,r)),Lr(n)}function wT(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var a=yn(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return aq(e,t);case 4:case 3:case 2:return GV(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function bT(e,t){var r=t||{},n=r.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var a=e.match(/<table/i);if(!a)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),s=a.index,o=i&&i.index||e.length,l=WL(e.slice(s,o),/(:?<tr[^>]*>)/i,"<tr>"),c=-1,d=0,p=0,g=0,v={s:{r:1e7,c:1e7},e:{r:0,c:0}},y=[];for(s=0;s<l.length;++s){var _=l[s].trim(),C=_.slice(0,3).toLowerCase();if(C=="<tr"){if(++c,r.sheetRows&&r.sheetRows<=c){--c;break}d=0;continue}if(!(C!="<td"&&C!="<th")){var E=_.split(/<\/t[dh]>/i);for(o=0;o<E.length;++o){var T=E[o].trim();if(T.match(/<t[dh]/i)){for(var b=T,h=0;b.charAt(0)=="<"&&(h=b.indexOf(">"))>-1;)b=b.slice(h+1);for(var m=0;m<y.length;++m){var x=y[m];x.s.c==d&&x.s.r<c&&c<=x.e.r&&(d=x.e.c+1,m=-1)}var S=ot(T.slice(0,T.indexOf(">")));g=S.colspan?+S.colspan:1,((p=+S.rowspan)>1||g>1)&&y.push({s:{r:c,c:d},e:{r:c+(p||1)-1,c:d+g-1}});var A=S.t||S["data-t"]||"";if(!b.length){d+=g;continue}if(b=p3(b),v.s.r>c&&(v.s.r=c),v.e.r<c&&(v.e.r=c),v.s.c>d&&(v.s.c=d),v.e.c<d&&(v.e.c=d),!b.length){d+=g;continue}var k={t:"s",v:b};r.raw||!b.trim().length||A=="s"||(b==="TRUE"?k={t:"b",v:!0}:b==="FALSE"?k={t:"b",v:!1}:isNaN(za(b))?isNaN(Tl(b).getDate())||(k={t:"d",v:rr(b)},r.cellDates||(k={t:"n",v:Dr(k.v)}),k.z=r.dateNF||Qe[14]):k={t:"n",v:za(b)}),r.dense?(n[c]||(n[c]=[]),n[c][d]=k):n[at({r:c,c:d})]=k,d+=g}}}}return n["!ref"]=vt(v),y.length&&(n["!merges"]=y),n}function ST(e,t,r,n){for(var a=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var o=0,l=0,c=0;c<a.length;++c)if(!(a[c].s.r>r||a[c].s.c>s)&&!(a[c].e.r<r||a[c].e.c<s)){if(a[c].s.r<r||a[c].s.c<s){o=-1;break}o=a[c].e.r-a[c].s.r+1,l=a[c].e.c-a[c].s.c+1;break}if(!(o<0)){var d=at({r,c:s}),p=n.dense?(e[r]||[])[s]:e[d],g=p&&p.v!=null&&(p.h||P1(p.w||(li(p),p.w)||""))||"",v={};o>1&&(v.rowspan=o),l>1&&(v.colspan=l),n.editable?g='<span contenteditable="true">'+g+"</span>":p&&(v["data-t"]=p&&p.t||"z",p.v!=null&&(v["data-v"]=p.v),p.z!=null&&(v["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(g='<a href="'+p.l.Target+'">'+g+"</a>")),v.id=(n.id||"sjs")+"-"+d,i.push(Le("td",g,v))}}var y="<tr>";return y+i.join("")+"</tr>"}var kT='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',TT="</body></html>";function iq(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find <table>");if(r.length==1)return xs(bT(r[0],t),t);var n=Lm();return r.forEach(function(a,i){Bm(n,bT(a,t),"Sheet"+(i+1))}),n}function ET(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function CT(e,t){var r=t||{},n=r.header!=null?r.header:kT,a=r.footer!=null?r.footer:TT,i=[n],s=yn(e["!ref"]);r.dense=Array.isArray(e),i.push(ET(e,s,r));for(var o=s.s.r;o<=s.e.r;++o)i.push(ST(e,s,o,r));return i.push("</table>"+a),i.join("")}function AT(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?fr(n.origin):n.origin;a=s.r,i=s.c}var o=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var d=yn(e["!ref"]);c.s.r=Math.min(c.s.r,d.s.r),c.s.c=Math.min(c.s.c,d.s.c),c.e.r=Math.max(c.e.r,d.e.r),c.e.c=Math.max(c.e.c,d.e.c),a==-1&&(c.e.r=a=d.e.r+1)}var p=[],g=0,v=e["!rows"]||(e["!rows"]=[]),y=0,_=0,C=0,E=0,T=0,b=0;for(e["!cols"]||(e["!cols"]=[]);y<o.length&&_<l;++y){var h=o[y];if(FT(h)){if(n.display)continue;v[_]={hidden:!0}}var m=h.children;for(C=E=0;C<m.length;++C){var x=m[C];if(!(n.display&&FT(x))){var S=x.hasAttribute("data-v")?x.getAttribute("data-v"):x.hasAttribute("v")?x.getAttribute("v"):p3(x.innerHTML),A=x.getAttribute("data-z")||x.getAttribute("z");for(g=0;g<p.length;++g){var k=p[g];k.s.c==E+i&&k.s.r<_+a&&_+a<=k.e.r&&(E=k.e.c+1-i,g=-1)}b=+x.getAttribute("colspan")||1,((T=+x.getAttribute("rowspan")||1)>1||b>1)&&p.push({s:{r:_+a,c:E+i},e:{r:_+a+(T||1)-1,c:E+i+(b||1)-1}});var F={t:"s",v:S},P=x.getAttribute("data-t")||x.getAttribute("t")||"";S!=null&&(S.length==0?F.t=P||"z":n.raw||S.trim().length==0||P=="s"||(S==="TRUE"?F={t:"b",v:!0}:S==="FALSE"?F={t:"b",v:!1}:isNaN(za(S))?isNaN(Tl(S).getDate())||(F={t:"d",v:rr(S)},n.cellDates||(F={t:"n",v:Dr(F.v)}),F.z=n.dateNF||Qe[14]):F={t:"n",v:za(S)})),F.z===void 0&&A!=null&&(F.z=A);var j="",L=x.getElementsByTagName("A");if(L&&L.length)for(var B=0;B<L.length&&!(L[B].hasAttribute("href")&&(j=L[B].getAttribute("href"),j.charAt(0)!="#"));++B);j&&j.charAt(0)!="#"&&(F.l={Target:j}),n.dense?(e[_+a]||(e[_+a]=[]),e[_+a][E+i]=F):e[at({c:E+i,r:_+a})]=F,c.e.c<E+i&&(c.e.c=E+i),E+=b}}++_}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),c.e.r=Math.max(c.e.r,_-1+a),e["!ref"]=vt(c),_>=l&&(e["!fullref"]=vt((c.e.r=o.length-y+_-1+a,c))),e}function OT(e,t){var r=t||{},n=r.dense?[]:{};return AT(n,e,t)}function sq(e,t){return xs(OT(e,t),t)}function FT(e){var t="",r=oq(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function oq(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function lq(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(n,a){return Array(parseInt(a,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,`
432
+ `),r=Rt(t.replace(/<[^>]*>/g,""));return[r]}var PT={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function DT(e,t){var r=t||{},n=N1(e),a=[],i,s,o={name:""},l="",c=0,d,p,g={},v=[],y=r.dense?[]:{},_,C,E={value:""},T="",b=0,h=[],m=-1,x=-1,S={s:{r:1e6,c:1e7},e:{r:0,c:0}},A=0,k={},F=[],P={},j=0,L=0,B=[],U=1,O=1,N=[],V={Names:[]},M={},q=["",""],Y=[],z={},re="",J=0,te=!1,oe=!1,ue=0;for(Ic.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");_=Ic.exec(n);)switch(_[3]=_[3].replace(/_.*$/,"")){case"table":case"工作表":_[1]==="/"?(S.e.c>=S.s.c&&S.e.r>=S.s.r?y["!ref"]=vt(S):y["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=S.e.r&&(y["!fullref"]=y["!ref"],S.e.r=r.sheetRows-1,y["!ref"]=vt(S)),F.length&&(y["!merges"]=F),B.length&&(y["!rows"]=B),d.name=d.名称||d.name,typeof JSON<"u"&&JSON.stringify(d),v.push(d.name),g[d.name]=y,oe=!1):_[0].charAt(_[0].length-2)!=="/"&&(d=ot(_[0],!1),m=x=-1,S.s.r=S.s.c=1e7,S.e.r=S.e.c=0,y=r.dense?[]:{},F=[],B=[],oe=!0);break;case"table-row-group":_[1]==="/"?--A:++A;break;case"table-row":case"行":if(_[1]==="/"){m+=U,U=1;break}if(p=ot(_[0],!1),p.行号?m=p.行号-1:m==-1&&(m=0),U=+p["number-rows-repeated"]||1,U<10)for(ue=0;ue<U;++ue)A>0&&(B[m+ue]={level:A});x=-1;break;case"covered-table-cell":_[1]!=="/"&&++x,r.sheetStubs&&(r.dense?(y[m]||(y[m]=[]),y[m][x]={t:"z"}):y[at({r:m,c:x})]={t:"z"}),T="",h=[];break;case"table-cell":case"数据":if(_[0].charAt(_[0].length-2)==="/")++x,E=ot(_[0],!1),O=parseInt(E["number-columns-repeated"]||"1",10),C={t:"z",v:null},E.formula&&r.cellFormula!=!1&&(C.f=sT(Rt(E.formula))),(E.数据类型||E["value-type"])=="string"&&(C.t="s",C.v=Rt(E["string-value"]||""),r.dense?(y[m]||(y[m]=[]),y[m][x]=C):y[at({r:m,c:x})]=C),x+=O-1;else if(_[1]!=="/"){++x,T="",b=0,h=[],O=1;var ve=U?m+U-1:m;if(x>S.e.c&&(S.e.c=x),x<S.s.c&&(S.s.c=x),m<S.s.r&&(S.s.r=m),ve>S.e.r&&(S.e.r=ve),E=ot(_[0],!1),Y=[],z={},C={t:E.数据类型||E["value-type"],v:null},r.cellFormula)if(E.formula&&(E.formula=Rt(E.formula)),E["number-matrix-columns-spanned"]&&E["number-matrix-rows-spanned"]&&(j=parseInt(E["number-matrix-rows-spanned"],10)||0,L=parseInt(E["number-matrix-columns-spanned"],10)||0,P={s:{r:m,c:x},e:{r:m+j-1,c:x+L-1}},C.F=vt(P),N.push([P,C.F])),E.formula)C.f=sT(E.formula);else for(ue=0;ue<N.length;++ue)m>=N[ue][0].s.r&&m<=N[ue][0].e.r&&x>=N[ue][0].s.c&&x<=N[ue][0].e.c&&(C.F=N[ue][1]);switch((E["number-columns-spanned"]||E["number-rows-spanned"])&&(j=parseInt(E["number-rows-spanned"],10)||0,L=parseInt(E["number-columns-spanned"],10)||0,P={s:{r:m,c:x},e:{r:m+j-1,c:x+L-1}},F.push(P)),E["number-columns-repeated"]&&(O=parseInt(E["number-columns-repeated"],10)),C.t){case"boolean":C.t="b",C.v=nr(E["boolean-value"]);break;case"float":C.t="n",C.v=parseFloat(E.value);break;case"percentage":C.t="n",C.v=parseFloat(E.value);break;case"currency":C.t="n",C.v=parseFloat(E.value);break;case"date":C.t="d",C.v=rr(E["date-value"]),r.cellDates||(C.t="n",C.v=Dr(C.v)),C.z="m/d/yy";break;case"time":C.t="n",C.v=UL(E["time-value"])/86400,r.cellDates&&(C.t="d",C.v=qd(C.v)),C.z="HH:MM:SS";break;case"number":C.t="n",C.v=parseFloat(E.数据数值);break;default:if(C.t==="string"||C.t==="text"||!C.t)C.t="s",E["string-value"]!=null&&(T=Rt(E["string-value"]),h=[]);else throw new Error("Unsupported value type "+C.t)}}else{if(te=!1,C.t==="s"&&(C.v=T||"",h.length&&(C.R=h),te=b==0),M.Target&&(C.l=M),Y.length>0&&(C.c=Y,Y=[]),T&&r.cellText!==!1&&(C.w=T),te&&(C.t="z",delete C.v),(!te||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=m))for(var _e=0;_e<U;++_e){if(O=parseInt(E["number-columns-repeated"]||"1",10),r.dense)for(y[m+_e]||(y[m+_e]=[]),y[m+_e][x]=_e==0?C:Gt(C);--O>0;)y[m+_e][x+O]=Gt(C);else for(y[at({r:m+_e,c:x})]=C;--O>0;)y[at({r:m+_e,c:x+O})]=Gt(C);S.e.c<=x&&(S.e.c=x)}O=parseInt(E["number-columns-repeated"]||"1",10),x+=O-1,O=0,C={},T="",h=[]}M={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(_[1]==="/"){if((i=a.pop())[0]!==_[3])throw"Bad state: "+i}else _[0].charAt(_[0].length-2)!=="/"&&a.push([_[3],!0]);break;case"annotation":if(_[1]==="/"){if((i=a.pop())[0]!==_[3])throw"Bad state: "+i;z.t=T,h.length&&(z.R=h),z.a=re,Y.push(z)}else _[0].charAt(_[0].length-2)!=="/"&&a.push([_[3],!1]);re="",J=0,T="",b=0,h=[];break;case"creator":_[1]==="/"?re=n.slice(J,_.index):J=_.index+_[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(_[1]==="/"){if((i=a.pop())[0]!==_[3])throw"Bad state: "+i}else _[0].charAt(_[0].length-2)!=="/"&&a.push([_[3],!1]);T="",b=0,h=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(_[1]==="/"){if(k[o.name]=l,(i=a.pop())[0]!==_[3])throw"Bad state: "+i}else _[0].charAt(_[0].length-2)!=="/"&&(l="",o=ot(_[0],!1),a.push([_[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(a[a.length-1][0]){case"time-style":case"date-style":s=ot(_[0],!1),l+=PT[_[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(a[a.length-1][0]){case"time-style":case"date-style":s=ot(_[0],!1),l+=PT[_[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(_[0].slice(-2)==="/>")break;if(_[1]==="/")switch(a[a.length-1][0]){case"number-style":case"date-style":case"time-style":l+=n.slice(c,_.index);break}else c=_.index+_[0].length;break;case"named-range":s=ot(_[0],!1),q=vm(s["cell-range-address"]);var ye={Name:s.name,Ref:q[0]+"!"+q[1]};oe&&(ye.Sheet=v.length),V.Names.push(ye);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(a[a.length-1][0])>-1)break;if(_[1]==="/"&&(!E||!E["string-value"])){var je=lq(n.slice(b,_.index));T=(T.length>0?T+`
433
+ `:"")+je[0]}else ot(_[0],!1),b=_.index+_[0].length;break;case"s":break;case"database-range":if(_[1]==="/")break;try{q=vm(ot(_[0])["target-range-address"]),g[q[0]]["!autofilter"]={ref:q[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(_[1]!=="/"){if(M=ot(_[0],!1),!M.href)break;M.Target=Rt(M.href),delete M.href,M.Target.charAt(0)=="#"&&M.Target.indexOf(".")>-1?(q=vm(M.Target.slice(1)),M.Target="#"+q[0]+"!"+q[1]):M.Target.match(/^\.\.[\\\/]/)&&(M.Target=M.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(_[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(_)}}var Z={Sheets:g,SheetNames:v,Workbook:V};return r.bookSheets&&delete Z.Sheets,Z}function RT(e,t){t=t||{},ga(e,"META-INF/manifest.xml")&&U7(Cr(e,"META-INF/manifest.xml"),t);var r=Xn(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=DT(Yt(r),t);return ga(e,"meta.xml")&&(n.Props=V3(Cr(e,"meta.xml"))),n}function NT(e,t){return DT(e,t)}var uq=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Mc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return br+t}}(),MT=function(){var e=function(i){return zt(i).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=` <table:table-cell />
434
+ `,r=` <table:covered-table-cell/>
435
+ `,n=function(i,s,o){var l=[];l.push(' <table:table table:name="'+zt(s.SheetNames[o])+`" table:style-name="ta1">
436
+ `);var c=0,d=0,p=yn(i["!ref"]||"A1"),g=i["!merges"]||[],v=0,y=Array.isArray(i);if(i["!cols"])for(d=0;d<=p.e.c;++d)l.push(" <table:table-column"+(i["!cols"][d]?' table:style-name="co'+i["!cols"][d].ods+'"':"")+`></table:table-column>
437
+ `);var _="",C=i["!rows"]||[];for(c=0;c<p.s.r;++c)_=C[c]?' table:style-name="ro'+C[c].ods+'"':"",l.push(" <table:table-row"+_+`></table:table-row>
438
+ `);for(;c<=p.e.r;++c){for(_=C[c]?' table:style-name="ro'+C[c].ods+'"':"",l.push(" <table:table-row"+_+`>
439
+ `),d=0;d<p.s.c;++d)l.push(t);for(;d<=p.e.c;++d){var E=!1,T={},b="";for(v=0;v!=g.length;++v)if(!(g[v].s.c>d)&&!(g[v].s.r>c)&&!(g[v].e.c<d)&&!(g[v].e.r<c)){(g[v].s.c!=d||g[v].s.r!=c)&&(E=!0),T["table:number-columns-spanned"]=g[v].e.c-g[v].s.c+1,T["table:number-rows-spanned"]=g[v].e.r-g[v].s.r+1;break}if(E){l.push(r);continue}var h=at({r:c,c:d}),m=y?(i[c]||[])[d]:i[h];if(m&&m.f&&(T["table:formula"]=zt(Nz(m.f)),m.F&&m.F.slice(0,h.length)==h)){var x=yn(m.F);T["table:number-matrix-columns-spanned"]=x.e.c-x.s.c+1,T["table:number-matrix-rows-spanned"]=x.e.r-x.s.r+1}if(!m){l.push(t);continue}switch(m.t){case"b":b=m.v?"TRUE":"FALSE",T["office:value-type"]="boolean",T["office:boolean-value"]=m.v?"true":"false";break;case"n":b=m.w||String(m.v||0),T["office:value-type"]="float",T["office:value"]=m.v||0;break;case"s":case"str":b=m.v==null?"":m.v,T["office:value-type"]="string";break;case"d":b=m.w||rr(m.v).toISOString(),T["office:value-type"]="date",T["office:date-value"]=rr(m.v).toISOString(),T["table:style-name"]="ce1";break;default:l.push(t);continue}var S=e(b);if(m.l&&m.l.Target){var A=m.l.Target;A=A.charAt(0)=="#"?"#"+Mz(A.slice(1)):A,A.charAt(0)!="#"&&!A.match(/^\w+:/)&&(A="../"+A),S=Le("text:a",S,{"xlink:href":A.replace(/&/g,"&amp;")})}l.push(" "+Le("table:table-cell",Le("text:p",S,{}),T)+`
440
+ `)}l.push(` </table:table-row>
441
+ `)}return l.push(` </table:table>
442
+ `),l.join("")},a=function(i,s){i.push(` <office:automatic-styles>
443
+ `),i.push(` <number:date-style style:name="N37" number:automatic-order="true">
444
+ `),i.push(` <number:month number:style="long"/>
445
+ `),i.push(` <number:text>/</number:text>
446
+ `),i.push(` <number:day number:style="long"/>
447
+ `),i.push(` <number:text>/</number:text>
448
+ `),i.push(` <number:year/>
449
+ `),i.push(` </number:date-style>
450
+ `);var o=0;s.SheetNames.map(function(c){return s.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var d=0;d<c["!cols"].length;++d)if(c["!cols"][d]){var p=c["!cols"][d];if(p.width==null&&p.wpx==null&&p.wch==null)continue;ys(p),p.ods=o;var g=c["!cols"][d].wpx+"px";i.push(' <style:style style:name="co'+o+`" style:family="table-column">
451
+ `),i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+g+`"/>
452
+ `),i.push(` </style:style>
453
+ `),++o}}});var l=0;s.SheetNames.map(function(c){return s.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var d=0;d<c["!rows"].length;++d)if(c["!rows"][d]){c["!rows"][d].ods=l;var p=c["!rows"][d].hpx+"px";i.push(' <style:style style:name="ro'+l+`" style:family="table-row">
454
+ `),i.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
455
+ `),i.push(` </style:style>
456
+ `),++l}}}),i.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
457
+ `),i.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
458
+ `),i.push(` </style:style>
459
+ `),i.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
460
+ `),i.push(` </office:automatic-styles>
461
+ `)};return function(s,o){var l=[br],c=Mc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),d=Mc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});o.bookType=="fods"?(l.push("<office:document"+c+d+`>
462
+ `),l.push($3().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
463
+ `),a(l,s),l.push(` <office:body>
464
+ `),l.push(` <office:spreadsheet>
465
+ `);for(var p=0;p!=s.SheetNames.length;++p)l.push(n(s.Sheets[s.SheetNames[p]],s,p));return l.push(` </office:spreadsheet>
466
+ `),l.push(` </office:body>
467
+ `),o.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function IT(e,t){if(t.bookType=="fods")return MT(e,t);var r=A1(),n="",a=[],i=[];return n="mimetype",_t(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",_t(r,n,MT(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",_t(r,n,uq(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",_t(r,n,br+$3()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",_t(r,n,W7(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",_t(r,n,H7(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Fo(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Tm(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Yt(ps(e))}function cq(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Gn(oi(e))}function fq(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Ss(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function LT(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function dq(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,a=t+13;a>=t;--a)n=n*256+e[a];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function hq(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function af(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function $t(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function vr(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function It(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=af(e,r),i=a&7;a=Math.floor(a/8);var s=0,o;if(a==0)break;switch(i){case 0:{for(var l=r[0];e[r[0]++]>=128;);o=e.slice(l,r[0])}break;case 5:s=4,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=af(e,r),o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var c={data:o,type:i};t[a]==null?t[a]=[c]:t[a].push(c)}return t}function Kr(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push($t(n*8+a.type)),a.type==2&&t.push($t(a.data.length)),t.push(a.data))})}),Ss(t)}function Em(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function _a(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=af(e,n),i=It(e.slice(n[0],n[0]+a));n[0]+=a;var s={id:vr(i[1][0].data),messages:[]};i[2].forEach(function(o){var l=It(o.data),c=vr(l[3][0].data);s.messages.push({meta:l,data:e.slice(n[0],n[0]+c)}),n[0]+=c}),(t=i[3])!=null&&t[0]&&(s.merge=vr(i[3][0].data)>>>0>0),r.push(s)}return r}function Il(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:$t(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:$t(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:$t(s.data.length)}],n[2].push({data:Kr(s.meta),type:2})});var i=Kr(n);t.push($t(i.length)),t.push(i),a.forEach(function(s){return t.push(s)})}),Ss(t)}function pq(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=af(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var o=s-59;s=t[r[0]],o>1&&(s|=t[r[0]+1]<<8),o>2&&(s|=t[r[0]+2]<<16),o>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=o}a.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var l=0,c=0;if(i==1?(c=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(c=(t[r[0]++]>>2)+1,i==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Ss(a)],l==0)throw new Error("Invalid offset 0");if(l>a[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(a.push(a[0].slice(-l)),c-=l;c>=a[a.length-1].length;)a.push(a[a.length-1]),c-=a[a.length-1].length;a.push(a[0].slice(-l,-l+c))}}var d=Ss(a);if(d.length!=n)throw new Error("Unexpected length: ".concat(d.length," != ").concat(n));return d}function ya(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(pq(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Ss(t)}function Ll(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),a=new Uint8Array(4);t.push(a);var i=$t(n),s=i.length;t.push(i),n<=60?(s++,t.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,a[0]=0,a[1]=s&255,a[2]=s>>8&255,a[3]=s>>16&255,r+=n}return Ss(t)}function gq(e,t,r,n){var a=Fo(e),i=a.getUint32(4,!0),s=(n>1?12:8)+LT(i&(n>1?3470:398))*4,o=-1,l=-1,c=NaN,d=new Date(2001,0,1);i&512&&(o=a.getUint32(s,!0),s+=4),s+=LT(i&(n>1?12288:4096))*4,i&16&&(l=a.getUint32(s,!0),s+=4),i&32&&(c=a.getFloat64(s,!0),s+=8),i&64&&(d.setTime(d.getTime()+a.getFloat64(s,!0)*1e3),s+=8);var p;switch(e[2]){case 0:break;case 2:p={t:"n",v:c};break;case 3:p={t:"s",v:t[l]};break;case 5:p={t:"d",v:d};break;case 6:p={t:"b",v:c>0};break;case 7:p={t:"n",v:c/86400};break;case 8:p={t:"e",v:0};break;case 9:if(o>-1)p={t:"s",v:r[o]};else if(l>-1)p={t:"s",v:t[l]};else if(!isNaN(c))p={t:"n",v:c};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return p}function mq(e,t,r){var n=Fo(e),a=n.getUint32(8,!0),i=12,s=-1,o=-1,l=NaN,c=NaN,d=new Date(2001,0,1);a&1&&(l=dq(e,i),i+=16),a&2&&(c=n.getFloat64(i,!0),i+=8),a&4&&(d.setTime(d.getTime()+n.getFloat64(i,!0)*1e3),i+=8),a&8&&(o=n.getUint32(i,!0),i+=4),a&16&&(s=n.getUint32(i,!0),i+=4);var p;switch(e[1]){case 0:break;case 2:p={t:"n",v:l};break;case 3:p={t:"s",v:t[o]};break;case 5:p={t:"d",v:d};break;case 6:p={t:"b",v:c>0};break;case 7:p={t:"n",v:c/86400};break;case 8:p={t:"e",v:0};break;case 9:if(s>-1)p={t:"s",v:r[s]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)));break;case 10:p={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)))}return p}function Cm(e,t){var r=new Uint8Array(32),n=Fo(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,hq(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function Am(e,t){var r=new Uint8Array(32),n=Fo(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function vq(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return gq(e,t,r,e[0]);case 5:return mq(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function cn(e){var t=It(e);return af(t[1][0].data)}function BT(e,t){var r=It(t.data),n=vr(r[1][0].data),a=r[3],i=[];return(a||[]).forEach(function(s){var o=It(s.data),l=vr(o[1][0].data)>>>0;switch(n){case 1:i[l]=Tm(o[3][0].data);break;case 8:{var c=e[cn(o[9][0].data)][0],d=It(c.data),p=e[cn(d[1][0].data)][0],g=vr(p.meta[1][0].data);if(g!=2001)throw new Error("2000 unexpected reference to ".concat(g));var v=It(p.data);i[l]=v[3].map(function(y){return Tm(y.data)}).join("")}break}}),i}function xq(e,t){var r,n,a,i,s,o,l,c,d,p,g,v,y,_,C=It(e),E=vr(C[1][0].data)>>>0,T=vr(C[2][0].data)>>>0,b=((n=(r=C[8])==null?void 0:r[0])==null?void 0:n.data)&&vr(C[8][0].data)>0||!1,h,m;if((i=(a=C[7])==null?void 0:a[0])!=null&&i.data&&t!=0)h=(o=(s=C[7])==null?void 0:s[0])==null?void 0:o.data,m=(c=(l=C[6])==null?void 0:l[0])==null?void 0:c.data;else if((p=(d=C[4])==null?void 0:d[0])!=null&&p.data&&t!=1)h=(v=(g=C[4])==null?void 0:g[0])==null?void 0:v.data,m=(_=(y=C[3])==null?void 0:y[0])==null?void 0:_.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var x=b?4:1,S=Fo(h),A=[],k=0;k<h.length/2;++k){var F=S.getUint16(k*2,!0);F<65535&&A.push([k,F])}if(A.length!=T)throw"Expected ".concat(T," cells, found ").concat(A.length);var P=[];for(k=0;k<A.length-1;++k)P[A[k][0]]=m.subarray(A[k][1]*x,A[k+1][1]*x);return A.length>=1&&(P[A[A.length-1][0]]=m.subarray(A[A.length-1][1]*x)),{R:E,cells:P}}function _q(e,t){var r,n=It(t.data),a=(r=n==null?void 0:n[7])!=null&&r[0]?vr(n[7][0].data)>>>0>0?1:0:-1,i=Em(n[5],function(s){return xq(s,a)});return{nrows:vr(n[4][0].data)>>>0,data:i.reduce(function(s,o){return s[o.R]||(s[o.R]=[]),o.cells.forEach(function(l,c){if(s[o.R][c])throw new Error("Duplicate cell r=".concat(o.R," c=").concat(c));s[o.R][c]=l}),s},[])}}function yq(e,t,r){var n,a=It(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(vr(a[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(a[6][0].data));if(i.e.c=(vr(a[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(a[7][0].data));r["!ref"]=vt(i);var s=It(a[4][0].data),o=BT(e,e[cn(s[4][0].data)][0]),l=(n=s[17])!=null&&n[0]?BT(e,e[cn(s[17][0].data)][0]):[],c=It(s[3][0].data),d=0;c[1].forEach(function(p){var g=It(p.data),v=e[cn(g[2][0].data)][0],y=vr(v.meta[1][0].data);if(y!=6002)throw new Error("6001 unexpected reference to ".concat(y));var _=_q(e,v);_.data.forEach(function(C,E){C.forEach(function(T,b){var h=at({r:d+E,c:b}),m=vq(T,o,l);m&&(r[h]=m)})}),d+=_.nrows})}function wq(e,t){var r=It(t.data),n={"!ref":"A1"},a=e[cn(r[2][0].data)],i=vr(a[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return yq(e,a[0],n),n}function bq(e,t){var r,n=It(t.data),a={name:(r=n[1])!=null&&r[0]?Tm(n[1][0].data):"",sheets:[]},i=Em(n[2],cn);return i.forEach(function(s){e[s].forEach(function(o){var l=vr(o.meta[1][0].data);l==6e3&&a.sheets.push(wq(e,o))})}),a}function Sq(e,t){var r=Lm(),n=It(t.data),a=Em(n[1],cn);if(a.forEach(function(i){e[i].forEach(function(s){var o=vr(s.meta[1][0].data);if(o==2){var l=bq(e,s);l.sheets.forEach(function(c,d){Bm(r,c,d==0?l.name:l.name+"_"+d,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function Om(e){var t,r,n,a,i={},s=[];if(e.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var c;try{c=ya(l.content)}catch(p){return console.log("?? "+l.content.length+" "+(p.message||p))}var d;try{d=_a(c)}catch(p){return console.log("## "+(p.message||p))}d.forEach(function(p){i[p.id]=p.messages,s.push(p.id)})}}),!s.length)throw new Error("File has no messages");var o=((a=(n=(r=(t=i==null?void 0:i[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&vr(i[1][0].meta[1][0].data)==1&&i[1][0];if(o||s.forEach(function(l){i[l].forEach(function(c){var d=vr(c.meta[1][0].data)>>>0;if(d==1)if(!o)o=c;else throw new Error("Document has multiple roots")})}),!o)throw new Error("Cannot find Document root");return Sq(i,o)}function kq(e,t,r){var n,a,i,s;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var o=((s=(i=e[8])==null?void 0:i[0])==null?void 0:s.data)&&vr(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var l=0,c=Fo(e[7][0].data),d=0,p=[],g=Fo(e[4][0].data),v=0,y=[],_=0;_<t.length;++_){if(t[_]==null){c.setUint16(_*2,65535,!0),g.setUint16(_*2,65535);continue}c.setUint16(_*2,d,!0),g.setUint16(_*2,v,!0);var C,E;switch(typeof t[_]){case"string":C=Cm({t:"s",v:t[_]},r),E=Am({t:"s",v:t[_]},r);break;case"number":C=Cm({t:"n",v:t[_]},r),E=Am({t:"n",v:t[_]},r);break;case"boolean":C=Cm({t:"b",v:t[_]},r),E=Am({t:"b",v:t[_]},r);break;default:throw new Error("Unsupported value "+t[_])}p.push(C),d+=C.length,y.push(E),v+=E.length,++l}for(e[2][0].data=$t(l);_<e[7][0].data.length/2;++_)c.setUint16(_*2,65535,!0),g.setUint16(_*2,65535,!0);return e[6][0].data=Ss(p),e[3][0].data=Ss(y),l}function Tq(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=yn(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(vt(n)));var i=v0(r,{range:n,header:1}),s=["~Sh33tJ5~"];i.forEach(function(re){return re.forEach(function(J){typeof J=="string"&&s.push(J)})});var o={},l=[],c=Xe.read(t.numbers,{type:"base64"});c.FileIndex.map(function(re,J){return[re,c.FullPaths[J]]}).forEach(function(re){var J=re[0],te=re[1];if(J.type==2&&J.name.match(/\.iwa/)){var oe=J.content,ue=ya(oe),ve=_a(ue);ve.forEach(function(_e){l.push(_e.id),o[_e.id]={deps:[],location:te,type:vr(_e.messages[0].meta[1][0].data)}})}}),l.sort(function(re,J){return re-J});var d=l.filter(function(re){return re>1}).map(function(re){return[re,$t(re)]});c.FileIndex.map(function(re,J){return[re,c.FullPaths[J]]}).forEach(function(re){var J=re[0];if(re[1],!!J.name.match(/\.iwa/)){var te=_a(ya(J.content));te.forEach(function(oe){oe.messages.forEach(function(ue){d.forEach(function(ve){oe.messages.some(function(_e){return vr(_e.meta[1][0].data)!=11006&&fq(_e.data,ve[1])})&&o[ve[0]].deps.push(oe.id)})})})}});for(var p=Xe.find(c,o[1].location),g=_a(ya(p.content)),v,y=0;y<g.length;++y){var _=g[y];_.id==1&&(v=_)}var C=cn(It(v.messages[0].data)[1][0].data);for(p=Xe.find(c,o[C].location),g=_a(ya(p.content)),y=0;y<g.length;++y)_=g[y],_.id==C&&(v=_);for(C=cn(It(v.messages[0].data)[2][0].data),p=Xe.find(c,o[C].location),g=_a(ya(p.content)),y=0;y<g.length;++y)_=g[y],_.id==C&&(v=_);for(C=cn(It(v.messages[0].data)[2][0].data),p=Xe.find(c,o[C].location),g=_a(ya(p.content)),y=0;y<g.length;++y)_=g[y],_.id==C&&(v=_);var E=It(v.messages[0].data);{E[6][0].data=$t(n.e.r+1),E[7][0].data=$t(n.e.c+1);var T=cn(E[46][0].data),b=Xe.find(c,o[T].location),h=_a(ya(b.content));{for(var m=0;m<h.length&&h[m].id!=T;++m);if(h[m].id!=T)throw"Bad ColumnRowUIDMapArchive";var x=It(h[m].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var S=0;S<=n.e.c;++S){var A=[];A[1]=A[2]=[{type:0,data:$t(S+420690)}],x[1].push({type:2,data:Kr(A)}),x[2].push({type:0,data:$t(S)}),x[3].push({type:0,data:$t(S)})}x[4]=[],x[5]=[],x[6]=[];for(var k=0;k<=n.e.r;++k)A=[],A[1]=A[2]=[{type:0,data:$t(k+726270)}],x[4].push({type:2,data:Kr(A)}),x[5].push({type:0,data:$t(k)}),x[6].push({type:0,data:$t(k)});h[m].messages[0].data=Kr(x)}b.content=Ll(Il(h)),b.size=b.content.length,delete E[46];var F=It(E[4][0].data);{F[7][0].data=$t(n.e.r+1);var P=It(F[1][0].data),j=cn(P[2][0].data);b=Xe.find(c,o[j].location),h=_a(ya(b.content));{if(h[0].id!=j)throw"Bad HeaderStorageBucket";var L=It(h[0].messages[0].data);for(k=0;k<i.length;++k){var B=It(L[2][0].data);B[1][0].data=$t(k),B[4][0].data=$t(i[k].length),L[2][k]={type:L[2][0].type,data:Kr(B)}}h[0].messages[0].data=Kr(L)}b.content=Ll(Il(h)),b.size=b.content.length;var U=cn(F[2][0].data);b=Xe.find(c,o[U].location),h=_a(ya(b.content));{if(h[0].id!=U)throw"Bad HeaderStorageBucket";for(L=It(h[0].messages[0].data),S=0;S<=n.e.c;++S)B=It(L[2][0].data),B[1][0].data=$t(S),B[4][0].data=$t(n.e.r+1),L[2][S]={type:L[2][0].type,data:Kr(B)};h[0].messages[0].data=Kr(L)}b.content=Ll(Il(h)),b.size=b.content.length;var O=cn(F[4][0].data);(function(){for(var re=Xe.find(c,o[O].location),J=_a(ya(re.content)),te,oe=0;oe<J.length;++oe){var ue=J[oe];ue.id==O&&(te=ue)}var ve=It(te.messages[0].data);{ve[3]=[];var _e=[];s.forEach(function(Z,Ge){_e[1]=[{type:0,data:$t(Ge)}],_e[2]=[{type:0,data:$t(1)}],_e[3]=[{type:2,data:cq(Z)}],ve[3].push({type:2,data:Kr(_e)})})}te.messages[0].data=Kr(ve);var ye=Il(J),je=Ll(ye);re.content=je,re.size=re.content.length})();var N=It(F[3][0].data);{var V=N[1][0];delete N[2];var M=It(V.data);{var q=cn(M[2][0].data);(function(){for(var re=Xe.find(c,o[q].location),J=_a(ya(re.content)),te,oe=0;oe<J.length;++oe){var ue=J[oe];ue.id==q&&(te=ue)}var ve=It(te.messages[0].data);{delete ve[6],delete N[7];var _e=new Uint8Array(ve[5][0].data);ve[5]=[];for(var ye=0,je=0;je<=n.e.r;++je){var Z=It(_e);ye+=kq(Z,i[je],s),Z[1][0].data=$t(je),ve[5].push({data:Kr(Z),type:2})}ve[1]=[{type:0,data:$t(n.e.c+1)}],ve[2]=[{type:0,data:$t(n.e.r+1)}],ve[3]=[{type:0,data:$t(ye)}],ve[4]=[{type:0,data:$t(n.e.r+1)}]}te.messages[0].data=Kr(ve);var Ge=Il(J),Ae=Ll(Ge);re.content=Ae,re.size=re.content.length})()}V.data=Kr(M)}F[3][0].data=Kr(N)}E[4][0].data=Kr(F)}v.messages[0].data=Kr(E);var Y=Il(g),z=Ll(Y);return p.content=z,p.size=p.content.length,c}function jT(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function Fm(e){jT([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Pm(e){jT([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Eq(e){return kt.WS.indexOf(e)>-1?"sheet":e==kt.CS?"chart":e==kt.DS?"dialog":e==kt.MS?"macro":e&&e.length?e:"sheet"}function Cq(e,t){if(!e)return 0;try{e=t.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,Eq(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function Aq(e,t,r,n,a,i,s,o,l,c,d,p){try{i[n]=Hc(Xn(e,r,!0),t);var g=Cr(e,t),v;switch(o){case"sheet":v=eV(g,t,a,l,i[n],c,d,p);break;case"chart":if(v=tV(g,t,a,l,i[n],c,d,p),!v||!v["!drawel"])break;var y=Rc(v["!drawel"].Target,t),_=Uc(y),C=zU(Xn(e,y,!0),Hc(Xn(e,_,!0),y)),E=Rc(C,y),T=Uc(E);v=O$(Xn(e,E,!0),E,l,Hc(Xn(e,T,!0),E),c,v);break;case"macro":v=rV(g,t,a,l,i[n],c,d,p);break;case"dialog":v=nV(g,t,a,l,i[n],c,d,p);break;default:throw new Error("Unrecognized sheet type "+o)}s[n]=v;var b=[];i&&i[n]&&pr(i[n]).forEach(function(h){var m="";if(i[n][h].Type==kt.CMNT){m=Rc(i[n][h].Target,t);var x=oV(Cr(e,m,!0),m,l);if(!x||!x.length)return;Vk(v,x,!1)}i[n][h].Type==kt.TCMNT&&(m=Rc(i[n][h].Target,t),b=b.concat($U(Cr(e,m,!0),l)))}),b&&b.length&&Vk(v,b,!0,l.people||[])}catch(h){if(l.WTF)throw h}}function wa(e){return e.charAt(0)=="/"?e.slice(1):e}function UT(e,t){if(kl(),t=t||{},Fm(t),ga(e,"META-INF/manifest.xml")||ga(e,"objectdata.xml"))return RT(e,t);if(ga(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Om<"u"){if(e.FileIndex)return Om(e);var r=Xe.utils.cfb_new();return i3(e).forEach(function(B){_t(r,B,VL(e,B))}),Om(r)}throw new Error("Unsupported NUMBERS file")}if(!ga(e,"[Content_Types].xml"))throw ga(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):ga(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=i3(e),a=B7(Xn(e,"[Content_Types].xml")),i=!1,s,o;if(a.workbooks.length===0&&(o="xl/workbook.xml",Cr(e,o,!0)&&a.workbooks.push(o)),a.workbooks.length===0){if(o="xl/workbook.bin",!Cr(e,o,!0))throw new Error("Could not find workbook");a.workbooks.push(o),i=!0}a.workbooks[0].slice(-3)=="bin"&&(i=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(Jc=[],a.sst)try{Jc=sV(Cr(e,wa(a.sst)),a.sst,t)}catch(B){if(t.WTF)throw B}t.cellStyles&&a.themes.length&&(l=iV(Xn(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(c=aV(Cr(e,wa(a.style)),a.style,l,t))}a.links.map(function(B){try{var U=Hc(Xn(e,Uc(wa(B))),B);return uV(Cr(e,wa(B)),U,B,t)}catch{}});var d=Q$(Cr(e,wa(a.workbooks[0])),a.workbooks[0],t),p={},g="";a.coreprops.length&&(g=Cr(e,wa(a.coreprops[0]),!0),g&&(p=V3(g)),a.extprops.length!==0&&(g=Cr(e,wa(a.extprops[0]),!0),g&&V7(g,p,t)));var v={};(!t.bookSheets||t.bookProps)&&a.custprops.length!==0&&(g=Xn(e,wa(a.custprops[0]),!0),g&&(v=Y7(g,t)));var y={};if((t.bookSheets||t.bookProps)&&(d.Sheets?s=d.Sheets.map(function(U){return U.name}):p.Worksheets&&p.SheetNames.length>0&&(s=p.SheetNames),t.bookProps&&(y.Props=p,y.Custprops=v),t.bookSheets&&typeof s<"u"&&(y.SheetNames=s),t.bookSheets?y.SheetNames:t.bookProps))return y;s={};var _={};t.bookDeps&&a.calcchain&&(_=lV(Cr(e,wa(a.calcchain)),a.calcchain));var C=0,E={},T,b;{var h=d.Sheets;p.Worksheets=h.length,p.SheetNames=[];for(var m=0;m!=h.length;++m)p.SheetNames[m]=h[m].name}var x=i?"bin":"xml",S=a.workbooks[0].lastIndexOf("/"),A=(a.workbooks[0].slice(0,S+1)+"_rels/"+a.workbooks[0].slice(S+1)+".rels").replace(/^\//,"");ga(e,A)||(A="xl/_rels/workbook."+x+".rels");var k=Hc(Xn(e,A,!0),A.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=cV(Cr(e,wa(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=qU(Cr(e,wa(a.people[0])),t)),k&&(k=Cq(k,d.Sheets));var F=Cr(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(C=0;C!=p.Worksheets;++C){var P="sheet";if(k&&k[C]?(T="xl/"+k[C][1].replace(/[\/]?xl\//,""),ga(e,T)||(T=k[C][1]),ga(e,T)||(T=A.replace(/_rels\/.*$/,"")+k[C][1]),P=k[C][2]):(T="xl/worksheets/sheet"+(C+1-F)+"."+x,T=T.replace(/sheet0\./,"sheet.")),b=T.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(C!=t.sheets)continue e;break;case"string":if(p.SheetNames[C].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var j=!1,L=0;L!=t.sheets.length;++L)typeof t.sheets[L]=="number"&&t.sheets[L]==C&&(j=1),typeof t.sheets[L]=="string"&&t.sheets[L].toLowerCase()==p.SheetNames[C].toLowerCase()&&(j=1);if(!j)continue e}}Aq(e,T,b,p.SheetNames[C],C,E,s,P,t,d,l,c)}return y={Directory:a,Workbook:d,Props:p,Custprops:v,Deps:_,Sheets:s,SheetNames:p.SheetNames,Strings:Jc,Styles:c,Themes:l,SSF:Gt(Qe)},t&&t.bookFiles&&(e.files?(y.keys=n,y.files=e.files):(y.keys=[],y.files={},e.FullPaths.forEach(function(B,U){B=B.replace(/^Root Entry[\/]/,""),y.keys.push(B),y.files[B]=e.FileIndex[U]}))),t&&t.bookVBA&&(a.vba.length>0?y.vbaraw=Cr(e,wa(a.vba[0]),!0):a.defaults&&a.defaults.bin===eH&&(y.vbaraw=Cr(e,"xl/vbaProject.bin",!0))),y}function Oq(e,t){var r=t||{},n="Workbook",a=Xe.find(e,n);try{if(n="/!DataSpaces/Version",a=Xe.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(fj(a.content),n="/!DataSpaces/DataSpaceMap",a=Xe.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var i=hj(a.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",a=Xe.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=pj(a.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",a=Xe.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);mj(a.content)}catch{}if(n="/EncryptionInfo",a=Xe.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=vj(a.content);if(n="/EncryptedPackage",a=Xe.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],a.content,r.password||"",r);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],a.content,r.password||"",r);throw new Error("File is password-protected")}function Fq(e,t){return t.bookType=="ods"?IT(e,t):t.bookType=="numbers"?Tq(e,t):t.bookType=="xlsb"?Pq(e,t):HT(e,t)}function Pq(e,t){Rl=1024,e&&!e.SSF&&(e.SSF=Gt(Qe)),e&&e.SSF&&(kl(),Pc(e.SSF),t.revssf=$d(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Qc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=Yk.indexOf(t.bookType)>-1,a=Q1();Pm(t=t||{});var i=A1(),s="",o=0;if(t.cellXfs=[],bs(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",_t(i,s,q3(e.Props,t)),a.coreprops.push(s),Wt(t.rels,2,s,kt.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,_t(i,s,K3(e.Props)),a.extprops.push(s),Wt(t.rels,3,s,kt.EXT_PROPS),e.Custprops!==e.Props&&pr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",_t(i,s,X3(e.Custprops)),a.custprops.push(s),Wt(t.rels,4,s,kt.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var d={"!id":{}},p=e.Sheets[e.SheetNames[o-1]],g=(p||{})["!type"]||"sheet";switch(g){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,_t(i,s,dV(o-1,s,t,e,d)),a.sheets.push(s),Wt(t.wbrels,-1,"worksheets/sheet"+o+"."+r,kt.WS[0])}if(p){var v=p["!comments"],y=!1,_="";v&&v.length>0&&(_="xl/comments"+o+"."+r,_t(i,_,gV(v,_)),a.comments.push(_),Wt(d,-1,"../comments"+o+"."+r,kt.CMNT),y=!0),p["!legacy"]&&y&&_t(i,"xl/drawings/vmlDrawing"+o+".vml",$k(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}d["!id"].rId1&&_t(i,Uc(s),Fl(d))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,_t(i,s,pV(t.Strings,s,t)),a.strs.push(s),Wt(t.wbrels,-1,"sharedStrings."+r,kt.SST)),s="xl/workbook."+r,_t(i,s,fV(e,s)),a.workbooks.push(s),Wt(t.rels,1,s,kt.WB),s="xl/theme/theme1.xml",_t(i,s,dm(e.Themes,t)),a.themes.push(s),Wt(t.wbrels,-1,"theme/theme1.xml",kt.THEME),s="xl/styles."+r,_t(i,s,hV(e,s,t)),a.styles.push(s),Wt(t.wbrels,-1,"styles."+r,kt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",_t(i,s,e.vbaraw),a.vba.push(s),Wt(t.wbrels,-1,"vbaProject.bin",kt.VBA)),s="xl/metadata."+r,_t(i,s,mV(s)),a.metadata.push(s),Wt(t.wbrels,-1,"metadata."+r,kt.XLMETA),_t(i,"[Content_Types].xml",z3(a,t)),_t(i,"_rels/.rels",Fl(t.rels)),_t(i,"xl/_rels/workbook."+r+".rels",Fl(t.wbrels)),delete t.revssf,delete t.ssf,i}function HT(e,t){Rl=1024,e&&!e.SSF&&(e.SSF=Gt(Qe)),e&&e.SSF&&(kl(),Pc(e.SSF),t.revssf=$d(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Qc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=Yk.indexOf(t.bookType)>-1,a=Q1();Pm(t=t||{});var i=A1(),s="",o=0;if(t.cellXfs=[],bs(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",_t(i,s,q3(e.Props,t)),a.coreprops.push(s),Wt(t.rels,2,s,kt.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,_t(i,s,K3(e.Props)),a.extprops.push(s),Wt(t.rels,3,s,kt.EXT_PROPS),e.Custprops!==e.Props&&pr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",_t(i,s,X3(e.Custprops)),a.custprops.push(s),Wt(t.rels,4,s,kt.CUST_PROPS));var d=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var p={"!id":{}},g=e.Sheets[e.SheetNames[o-1]],v=(g||{})["!type"]||"sheet";switch(v){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,_t(i,s,uT(o-1,t,e,p)),a.sheets.push(s),Wt(t.wbrels,-1,"worksheets/sheet"+o+"."+r,kt.WS[0])}if(g){var y=g["!comments"],_=!1,C="";if(y&&y.length>0){var E=!1;y.forEach(function(T){T[1].forEach(function(b){b.T==!0&&(E=!0)})}),E&&(C="xl/threadedComments/threadedComment"+o+"."+r,_t(i,C,VU(y,d,t)),a.threadedcomments.push(C),Wt(p,-1,"../threadedComments/threadedComment"+o+"."+r,kt.TCMNT)),C="xl/comments"+o+"."+r,_t(i,C,qk(y)),a.comments.push(C),Wt(p,-1,"../comments"+o+"."+r,kt.CMNT),_=!0}g["!legacy"]&&_&&_t(i,"xl/drawings/vmlDrawing"+o+".vml",$k(o,g["!comments"])),delete g["!comments"],delete g["!legacy"]}p["!id"].rId1&&_t(i,Uc(s),Fl(p))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,_t(i,s,Pk(t.Strings,t)),a.strs.push(s),Wt(t.wbrels,-1,"sharedStrings."+r,kt.SST)),s="xl/workbook."+r,_t(i,s,vT(e)),a.workbooks.push(s),Wt(t.rels,1,s,kt.WB),s="xl/theme/theme1.xml",_t(i,s,dm(e.Themes,t)),a.themes.push(s),Wt(t.wbrels,-1,"theme/theme1.xml",kt.THEME),s="xl/styles."+r,_t(i,s,jk(e,t)),a.styles.push(s),Wt(t.wbrels,-1,"styles."+r,kt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",_t(i,s,e.vbaraw),a.vba.push(s),Wt(t.wbrels,-1,"vbaProject.bin",kt.VBA)),s="xl/metadata."+r,_t(i,s,Wk()),a.metadata.push(s),Wt(t.wbrels,-1,"metadata."+r,kt.XLMETA),d.length>1&&(s="xl/persons/person.xml",_t(i,s,YU(d)),a.people.push(s),Wt(t.wbrels,-1,"persons/person.xml",kt.PEOPLE)),_t(i,"[Content_Types].xml",z3(a,t)),_t(i,"_rels/.rels",Fl(t.rels)),_t(i,"xl/_rels/workbook."+r+".rels",Fl(t.wbrels)),delete t.revssf,delete t.ssf,i}function Dm(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Yn(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Dq(e,t){return Xe.find(e,"EncryptedPackage")?Oq(e,t):Sm(e,t)}function Rq(e,t){var r,n=e,a=t||{};return a.type||(a.type=bt&&Buffer.isBuffer(e)?"buffer":"base64"),r=s3(n,a),UT(r,a)}function zT(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return bm(e.slice(r),t);default:break e}return Pl.to_workbook(e,t)}function Nq(e,t){var r="",n=Dm(e,t);switch(t.type){case"base64":r=Yn(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=go(e);break;default:throw new Error("Unrecognized type "+t.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(r=Yt(r)),t.type="binary",zT(r,t)}function Mq(e,t){var r=e;return t.type=="base64"&&(r=Yn(r)),r=Dt.utils.decode(1200,r.slice(2),"str"),t.type="binary",zT(r,t)}function Iq(e){return e.match(/[^\x00-\x7F]/)?oi(e):e}function Rm(e,t,r,n){return n?(r.type="string",Pl.to_workbook(e,r)):Pl.to_workbook(t,r)}function p0(e,t){Bd();var r=t||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return p0(new Uint8Array(e),(r=Gt(r),r.type="array",r));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!r.type&&(r.type=typeof Deno<"u"?"buffer":"array");var n=e,a=[0,0,0,0],i=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),Ml={},r.dateNF&&(Ml.dateNF=r.dateNF),r.type||(r.type=bt&&Buffer.isBuffer(e)?"buffer":"base64"),r.type=="file"&&(r.type=bt?"buffer":"binary",n=LL(e),typeof Uint8Array<"u"&&!bt&&(r.type="array")),r.type=="string"&&(i=!0,r.type="binary",r.codepage=65001,n=Iq(e)),r.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var s=new ArrayBuffer(3),o=new Uint8Array(s);if(o.foo="bar",!o.foo)return r=Gt(r),r.type="array",p0(S1(n),r)}switch((a=Dm(n,r))[0]){case 208:if(a[1]===207&&a[2]===17&&a[3]===224&&a[4]===161&&a[5]===177&&a[6]===26&&a[7]===225)return Dq(Xe.read(n,r),r);break;case 9:if(a[1]<=8)return Sm(n,r);break;case 60:return bm(n,r);case 73:if(a[1]===73&&a[2]===42&&a[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(a[1]===68)return GB(n,r);break;case 84:if(a[1]===65&&a[2]===66&&a[3]===76)return Ok.to_workbook(n,r);break;case 80:return a[1]===75&&a[2]<9&&a[3]<9?Rq(n,r):Rm(e,n,r,i);case 239:return a[3]===60?bm(n,r):Rm(e,n,r,i);case 255:if(a[1]===254)return Mq(n,r);if(a[1]===0&&a[2]===2&&a[3]===0)return Ao.to_workbook(n,r);break;case 0:if(a[1]===0&&(a[2]>=2&&a[3]===0||a[2]===0&&(a[3]===8||a[3]===9)))return Ao.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return sm.to_workbook(n,r);case 123:if(a[1]===92&&a[2]===114&&a[3]===116)return Ik.to_workbook(n,r);break;case 10:case 13:case 32:return Nq(n,r);case 137:if(a[1]===80&&a[2]===78&&a[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return YB.indexOf(a[0])>-1&&a[2]<=12&&a[3]<=31?sm.to_workbook(n,r):Rm(e,n,r,i)}function WT(e,t){var r=t||{};return r.type="file",p0(e,r)}function $T(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Dc(t.file,Xe.write(e,{type:bt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Xe.write(e,t)}function Lq(e,t){var r=Gt(t||{}),n=Fq(e,r);return VT(n,r)}function Bq(e,t){var r=Gt(t||{}),n=HT(e,r);return VT(n,r)}function VT(e,t){var r={},n=bt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?Xe.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(Ac(a))}return t.password&&typeof encrypt_agile<"u"?$T(encrypt_agile(a,t.password),t):t.type==="file"?Dc(t.file,a):t.type=="string"?Yt(a):a}function jq(e,t){var r=t||{},n=zV(e,r);return $T(n,r)}function fi(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Cc(oi(n));case"binary":return oi(n);case"string":return e;case"file":return Dc(t.file,n,"utf8");case"buffer":return bt?ji(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):fi(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Uq(e,t){switch(t.type){case"base64":return Cc(e);case"binary":return e;case"string":return e;case"file":return Dc(t.file,e,"binary");case"buffer":return bt?ji(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function g0(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?Cc(r):t.type=="string"?Yt(r):r;case"file":return Dc(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Nm(e,t){Bd(),mT(e);var r=Gt(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=Nm(e,r);return r.type="array",Ac(n)}return Bq(e,r)}function m0(e,t){Bd(),mT(e);var r=Gt(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=m0(e,r);return r.type="array",Ac(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=e.SheetNames.indexOf(r.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return fi(MV(e,r),r);case"slk":case"sylk":return fi(Ak.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"htm":case"html":return fi(CT(e.Sheets[e.SheetNames[a]],r),r);case"txt":return Uq(XT(e.Sheets[e.SheetNames[a]],r),r);case"csv":return fi(Im(e.Sheets[e.SheetNames[a]],r),r,"\uFEFF");case"dif":return fi(Ok.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"dbf":return g0(sm.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"prn":return fi(Pl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"rtf":return fi(Ik.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"eth":return fi(Fk.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"fods":return fi(IT(e,r),r);case"wk1":return g0(Ao.sheet_to_wk1(e.Sheets[e.SheetNames[a]],r),r);case"wk3":return g0(Ao.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),g0(wT(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),jq(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return Lq(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function Mm(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function qT(e,t,r){var n=r||{};return n.type="file",n.file=t,Mm(n),m0(e,n)}function Hq(e,t,r){var n=r||{};return n.type="file",n.file=t,Mm(n),Nm(e,n)}function zq(e,t,r,n){var a=r||{};a.type="file",a.file=e,Mm(a),a.type="buffer";var i=n;return i instanceof Function||(i=r),vs.writeFile(e,m0(t,a),i)}function YT(e,t,r,n,a,i,s,o){var l=mr(r),c=o.defval,d=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),p=!0,g=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(g,"__rowNum__",{value:r,enumerable:!1})}catch{g.__rowNum__=r}else g.__rowNum__=r;if(!s||e[r])for(var v=t.s.c;v<=t.e.c;++v){var y=s?e[r][v]:e[n[v]+l];if(y===void 0||y.t===void 0){if(c===void 0)continue;i[v]!=null&&(g[i[v]]=c);continue}var _=y.v;switch(y.t){case"z":if(_==null)break;continue;case"e":_=_==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+y.t)}if(i[v]!=null){if(_==null)if(y.t=="e"&&_===null)g[i[v]]=null;else if(c!==void 0)g[i[v]]=c;else if(d&&_===null)g[i[v]]=null;else continue;else g[i[v]]=d&&(y.t!=="n"||y.t==="n"&&o.rawNumbers!==!1)?_:li(y,_,o);_!=null&&(p=!1)}}return{row:g,isempty:p}}function v0(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],s=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},d=c.range!=null?c.range:e["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof d){case"string":l=At(d);break;case"number":l=At(e["!ref"]),l.s.r=d;break;default:l=d}n>0&&(a=0);var p=mr(l.s.r),g=[],v=[],y=0,_=0,C=Array.isArray(e),E=l.s.r,T=0,b={};C&&!e[E]&&(e[E]=[]);var h=c.skipHidden&&e["!cols"]||[],m=c.skipHidden&&e["!rows"]||[];for(T=l.s.c;T<=l.e.c;++T)if(!(h[T]||{}).hidden)switch(g[T]=ar(T),r=C?e[E][T]:e[g[T]+p],n){case 1:i[T]=T-l.s.c;break;case 2:i[T]=g[T];break;case 3:i[T]=c.header[T-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),o=s=li(r,null,c),_=b[s]||0,!_)b[s]=1;else{do o=s+"_"+_++;while(b[o]);b[s]=_,b[o]=1}i[T]=o}for(E=l.s.r+a;E<=l.e.r;++E)if(!(m[E]||{}).hidden){var x=YT(e,l,E,g,n,i,C,c);(x.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(v[y++]=x.row)}return v.length=y,v}var GT=/"/g;function KT(e,t,r,n,a,i,s,o){for(var l=!0,c=[],d="",p=mr(r),g=t.s.c;g<=t.e.c;++g)if(n[g]){var v=o.dense?(e[r]||[])[g]:e[n[g]+p];if(v==null)d="";else if(v.v!=null){l=!1,d=""+(o.rawNumbers&&v.t=="n"?v.v:li(v,null,o));for(var y=0,_=0;y!==d.length;++y)if((_=d.charCodeAt(y))===a||_===i||_===34||o.forceQuotes){d='"'+d.replace(GT,'""')+'"';break}d=="ID"&&(d='"ID"')}else v.f!=null&&!v.F?(l=!1,d="="+v.f,d.indexOf(",")>=0&&(d='"'+d.replace(GT,'""')+'"')):d="";c.push(d)}return o.blankrows===!1&&l?null:c.join(s)}function Im(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=At(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),o=n.RS!==void 0?n.RS:`
468
+ `,l=o.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),d="",p=[];n.dense=Array.isArray(e);for(var g=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],y=a.s.c;y<=a.e.c;++y)(g[y]||{}).hidden||(p[y]=ar(y));for(var _=0,C=a.s.r;C<=a.e.r;++C)(v[C]||{}).hidden||(d=KT(e,a,C,p,s,l,i,n),d!=null&&(n.strip&&(d=d.replace(c,"")),(d||n.blankrows!==!1)&&r.push((_++?o:"")+d)));return delete n.dense,r.join("")}function XT(e,t){t||(t={}),t.FS=" ",t.RS=`
469
+ `;var r=Im(e,t);if(typeof Dt>"u"||t.type=="string")return r;var n=Dt.utils.encode(1200,r,"str");return"ÿþ"+n}function Wq(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=At(e["!ref"]),i="",s=[],o,l=[],c=Array.isArray(e);for(o=a.s.c;o<=a.e.c;++o)s[o]=ar(o);for(var d=a.s.r;d<=a.e.r;++d)for(i=mr(d),o=a.s.c;o<=a.e.c;++o)if(t=s[o]+i,r=c?(e[d]||[])[o]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function ZT(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,o=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?fr(n.origin):n.origin;s=l.r,o=l.c}var c,d={s:{c:0,r:0},e:{c:o,r:s+t.length-1+a}};if(i["!ref"]){var p=At(i["!ref"]);d.e.c=Math.max(d.e.c,p.e.c),d.e.r=Math.max(d.e.r,p.e.r),s==-1&&(s=p.e.r+1,d.e.r=s+t.length-1+a)}else s==-1&&(s=0,d.e.r=t.length-1+a);var g=n.header||[],v=0;t.forEach(function(_,C){pr(_).forEach(function(E){(v=g.indexOf(E))==-1&&(g[v=g.length]=E);var T=_[E],b="z",h="",m=at({c:o+v,r:s+C+a});c=sf(i,m),T&&typeof T=="object"&&!(T instanceof Date)?i[m]=T:(typeof T=="number"?b="n":typeof T=="boolean"?b="b":typeof T=="string"?b="s":T instanceof Date?(b="d",n.cellDates||(b="n",T=Dr(T)),h=n.dateNF||Qe[14]):T===null&&n.nullError&&(b="e",T=0),c?(c.t=b,c.v=T,delete c.w,delete c.R,h&&(c.z=h)):i[m]=c={t:b,v:T},h&&(c.z=h))})}),d.e.c=Math.max(d.e.c,o+g.length-1);var y=mr(s);if(a)for(v=0;v<g.length;++v)i[ar(v+o)+y]={t:"s",v:g[v]};return i["!ref"]=vt(d),i}function $q(e,t){return ZT(null,e,t)}function sf(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=fr(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?sf(e,at(t)):sf(e,at({r:t,c:r||0}))}function Vq(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function Lm(){return{SheetNames:[],Sheets:{}}}function Bm(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(gT(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function qq(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Vq(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function Yq(e,t){return e.z=t,e}function JT(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Gq(e,t,r){return JT(e,"#"+t,r)}function Kq(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function Xq(e,t,r,n){for(var a=typeof t!="string"?t:At(t),i=typeof t=="string"?t:vt(t),s=a.s.r;s<=a.e.r;++s)for(var o=a.s.c;o<=a.e.c;++o){var l=sf(e,s,o);l.t="n",l.F=i,delete l.v,s==a.s.r&&o==a.s.c&&(l.f=r,n&&(l.D=!0))}return e}var Zq={encode_col:ar,encode_row:mr,encode_cell:at,encode_range:vt,decode_col:W1,decode_row:z1,split_cell:g7,decode_cell:fr,decode_range:yn,format_cell:li,sheet_add_aoa:R3,sheet_add_json:ZT,sheet_add_dom:AT,aoa_to_sheet:Al,json_to_sheet:$q,table_to_sheet:OT,table_to_book:sq,sheet_to_csv:Im,sheet_to_txt:XT,sheet_to_json:v0,sheet_to_html:CT,sheet_to_formulae:Wq,sheet_to_row_object_array:v0,sheet_get_cell:sf,book_new:Lm,book_append_sheet:Bm,book_set_sheet_visibility:qq,cell_set_number_format:Yq,cell_set_hyperlink:JT,cell_set_internal_link:Gq,cell_add_comment:Kq,sheet_set_array_formula:Xq,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},x0;function Jq(e){x0=e}function Qq(e,t){var r=x0(),n=t??{};if(e==null||e["!ref"]==null)return r.push(null),r;var a=At(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),o=n.RS!==void 0?n.RS:`
470
+ `,l=o.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),d="",p=[];n.dense=Array.isArray(e);for(var g=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],y=a.s.c;y<=a.e.c;++y)(g[y]||{}).hidden||(p[y]=ar(y));var _=a.s.r,C=!1,E=0;return r._read=function(){if(!C)return C=!0,r.push("\uFEFF");for(;_<=a.e.r;)if(++_,!(v[_-1]||{}).hidden&&(d=KT(e,a,_-1,p,s,l,i,n),d!=null&&(n.strip&&(d=d.replace(c,"")),d||n.blankrows!==!1)))return r.push((E++?o:"")+d);return r.push(null)},r}function eY(e,t){var r=x0(),n=t||{},a=n.header!=null?n.header:kT,i=n.footer!=null?n.footer:TT;r.push(a);var s=yn(e["!ref"]);n.dense=Array.isArray(e),r.push(ET(e,s,n));var o=s.s.r,l=!1;return r._read=function(){if(o>s.e.r)return l||(l=!0,r.push("</table>"+i)),r.push(null);for(;o<=s.e.r;){r.push(ST(e,s,o,n)),++o;break}},r}function tY(e,t){var r=x0({objectMode:!0});if(e==null||e["!ref"]==null)return r.push(null),r;var n={t:"n",v:0},a=0,i=1,s=[],o=0,l="",c={s:{r:0,c:0},e:{r:0,c:0}},d=t||{},p=d.range!=null?d.range:e["!ref"];switch(d.header===1?a=1:d.header==="A"?a=2:Array.isArray(d.header)&&(a=3),typeof p){case"string":c=At(p);break;case"number":c=At(e["!ref"]),c.s.r=p;break;default:c=p}a>0&&(i=0);var g=mr(c.s.r),v=[],y=0,_=Array.isArray(e),C=c.s.r,E=0,T={};_&&!e[C]&&(e[C]=[]);var b=d.skipHidden&&e["!cols"]||[],h=d.skipHidden&&e["!rows"]||[];for(E=c.s.c;E<=c.e.c;++E)if(!(b[E]||{}).hidden)switch(v[E]=ar(E),n=_?e[C][E]:e[v[E]+g],a){case 1:s[E]=E-c.s.c;break;case 2:s[E]=v[E];break;case 3:s[E]=d.header[E-c.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),l=o=li(n,null,d),y=T[o]||0,!y)T[o]=1;else{do l=o+"_"+y++;while(T[l]);T[o]=y,T[l]=1}s[E]=l}return C=c.s.r+i,r._read=function(){for(;C<=c.e.r;)if(!(h[C-1]||{}).hidden){var m=YT(e,c,C,v,a,s,_,d);if(++C,m.isempty===!1||(a===1?d.blankrows!==!1:d.blankrows)){r.push(m.row);return}}return r.push(null)},r}var rY={to_json:tY,to_html:eY,to_csv:Qq,set_readable:Jq};const nY=Tc.version,aY=Object.freeze(Object.defineProperty({__proto__:null,CFB:Xe,SSF:XS,parse_xlscfb:Sm,parse_zip:UT,read:p0,readFile:WT,readFileSync:WT,set_cptable:sL,set_fs:ML,stream:rY,utils:Zq,version:nY,write:m0,writeFile:qT,writeFileAsync:zq,writeFileSync:qT,writeFileXLSX:Hq,writeXLSX:Nm},Symbol.toStringTag,{value:"Module"}));gt.OnChainAdvancedSearch=QI,gt.OnChainBadge=M6,gt.OnChainCompositeForm=lc,gt.OnChainDropMenu=WD,gt.OnChainExcelViewer=$D,gt.OnChainForm=Vb,gt.OnChainFormItem=TS,gt.OnChainGenAntImage=_S,gt.OnChainGlobalLoading=L6,gt.OnChainHighLightWords=ns,gt.OnChainIcon=lt,gt.OnChainImage=g1,gt.OnChainInput=I_,gt.OnChainLoading=Go,gt.OnChainLoadingSkCube=I6,gt.OnChainMarkdown=rb,gt.OnChainModal=io,gt.OnChainMosaic=Za,gt.OnChainPopupSelect=SS,gt.OnChainProvider=LC,gt.OnChainPublicTree=rL,gt.OnChainQueryBuilder=AS,gt.OnChainResourceTree=$2,gt.OnChainScrollBar=UD,gt.OnChainScrollBarAssembly=eL,gt.OnChainSelect=zs,gt.OnChainSelectPopupForm=gS,gt.OnChainTableSelection=bS,gt.OnChainViewerError=HD,Object.defineProperty(gt,Symbol.toStringTag,{value:"Module"})});