@prisma/cli 2.20.0 → 3.0.0-alpha.0

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 (183) hide show
  1. package/LICENSE +158 -0
  2. package/README.md +29 -28
  3. package/dist/adapters/config.js +74 -0
  4. package/dist/adapters/local-state.js +98 -0
  5. package/dist/adapters/mock-api.js +57 -0
  6. package/dist/adapters/token-storage.js +43 -0
  7. package/dist/cli.js +9 -0
  8. package/dist/cli2.js +59 -0
  9. package/dist/commands/app/index.js +223 -0
  10. package/dist/commands/auth/index.js +42 -0
  11. package/dist/commands/branch/index.js +51 -0
  12. package/dist/commands/project/index.js +45 -0
  13. package/dist/controllers/app.js +813 -0
  14. package/dist/controllers/auth.js +107 -0
  15. package/dist/controllers/branch.js +73 -0
  16. package/dist/controllers/project.js +214 -0
  17. package/dist/controllers/select-prompt-port.js +12 -0
  18. package/dist/lib/app/bun-project.js +39 -0
  19. package/dist/lib/app/env-vars.js +24 -0
  20. package/dist/lib/app/local-dev.js +149 -0
  21. package/dist/lib/app/preview-build.js +283 -0
  22. package/dist/lib/app/preview-interaction.js +38 -0
  23. package/dist/lib/app/preview-progress.js +139 -0
  24. package/dist/lib/app/preview-provider.js +232 -0
  25. package/dist/lib/auth/auth-ops.js +57 -0
  26. package/dist/lib/auth/client.js +22 -0
  27. package/dist/lib/auth/guard.js +34 -0
  28. package/dist/lib/auth/login.js +117 -0
  29. package/dist/output/patterns.js +93 -0
  30. package/dist/presenters/app.js +405 -0
  31. package/dist/presenters/auth.js +73 -0
  32. package/dist/presenters/branch.js +111 -0
  33. package/dist/presenters/project.js +84 -0
  34. package/dist/shell/command-meta.js +320 -0
  35. package/dist/shell/command-runner.js +33 -0
  36. package/dist/shell/errors.js +66 -0
  37. package/dist/shell/global-flags.js +25 -0
  38. package/dist/shell/help.js +78 -0
  39. package/dist/shell/output.js +54 -0
  40. package/dist/shell/prompt.js +31 -0
  41. package/dist/shell/runtime.js +51 -0
  42. package/dist/shell/ui.js +59 -0
  43. package/dist/use-cases/auth.js +70 -0
  44. package/dist/use-cases/branch.js +95 -0
  45. package/dist/use-cases/create-cli-gateways.js +93 -0
  46. package/dist/use-cases/project.js +75 -0
  47. package/package.json +49 -137
  48. package/build/child.js +0 -4110
  49. package/build/index.js +0 -104447
  50. package/build/public/demo.html +0 -17
  51. package/build/public/demoChunk.js +0 -2
  52. package/build/public/electron-darwin.html +0 -19
  53. package/build/public/electron-linux.html +0 -18
  54. package/build/public/electron-mac.html +0 -18
  55. package/build/public/electron-win.html +0 -17
  56. package/build/public/electron-win32.html +0 -18
  57. package/build/public/electron.html +0 -17
  58. package/build/public/electronBus.js +0 -2
  59. package/build/public/electronChunk.js +0 -2
  60. package/build/public/favicon/apple-touch-icon.png +0 -0
  61. package/build/public/favicon/favicon-16x16.png +0 -0
  62. package/build/public/favicon/favicon-32x32.png +0 -0
  63. package/build/public/favicon/prisma.png +0 -0
  64. package/build/public/fonts/Inter.ttf +0 -0
  65. package/build/public/fonts/RobotoMono.ttf +0 -0
  66. package/build/public/icons/.DS_Store +0 -0
  67. package/build/public/icons/alert.svg +0 -5
  68. package/build/public/icons/array.svg +0 -4
  69. package/build/public/icons/bin.svg +0 -37
  70. package/build/public/icons/boolean.svg +0 -4
  71. package/build/public/icons/check.svg +0 -3
  72. package/build/public/icons/chevron-down.svg +0 -3
  73. package/build/public/icons/code.svg +0 -4
  74. package/build/public/icons/cross.svg +0 -11
  75. package/build/public/icons/data-tool.svg +0 -5
  76. package/build/public/icons/database.svg +0 -4
  77. package/build/public/icons/datetime.svg +0 -4
  78. package/build/public/icons/double-arrow-right.svg +0 -4
  79. package/build/public/icons/download.svg +0 -4
  80. package/build/public/icons/ellipsis.svg +0 -10
  81. package/build/public/icons/enum.svg +0 -6
  82. package/build/public/icons/expand.svg +0 -4
  83. package/build/public/icons/eye.svg +0 -20
  84. package/build/public/icons/filters.svg +0 -5
  85. package/build/public/icons/folder.svg +0 -6
  86. package/build/public/icons/hamburger.svg +0 -4
  87. package/build/public/icons/icon.svg +0 -199
  88. package/build/public/icons/logo.svg +0 -199
  89. package/build/public/icons/logotype.svg +0 -4
  90. package/build/public/icons/number.svg +0 -7
  91. package/build/public/icons/object.svg +0 -5
  92. package/build/public/icons/play.svg +0 -6
  93. package/build/public/icons/plus.svg +0 -4
  94. package/build/public/icons/refresh.svg +0 -4
  95. package/build/public/icons/search.svg +0 -7
  96. package/build/public/icons/settings.svg +0 -8
  97. package/build/public/icons/string.svg +0 -4
  98. package/build/public/icons/tick-indeterminate.svg +0 -3
  99. package/build/public/icons/tick.svg +0 -4
  100. package/build/public/illustrations/.DS_Store +0 -0
  101. package/build/public/illustrations/empty.svg +0 -1
  102. package/build/public/illustrations/read.svg +0 -1
  103. package/build/public/illustrations/searching.svg +0 -1
  104. package/build/public/images/.DS_Store +0 -0
  105. package/build/public/images/icon-1024.png +0 -0
  106. package/build/public/index.html +0 -49
  107. package/build/public/main.31f688a6254e294d9128.css +0 -118
  108. package/build/public/main.31f688a6254e294d9128.css.map +0 -1
  109. package/build/public/main.364c712f32662ff0e43d.css +0 -116
  110. package/build/public/main.364c712f32662ff0e43d.css.map +0 -1
  111. package/build/public/main.42ef3fe7e97347765c91.css +0 -118
  112. package/build/public/main.42ef3fe7e97347765c91.css.map +0 -1
  113. package/build/public/main.503446defafe7aeca2f3.css +0 -116
  114. package/build/public/main.503446defafe7aeca2f3.css.map +0 -1
  115. package/build/public/main.c50a3b5980fe26f78b65.css +0 -118
  116. package/build/public/main.c50a3b5980fe26f78b65.css.map +0 -1
  117. package/build/public/main.cda25e5813776c2af295.css +0 -116
  118. package/build/public/main.cda25e5813776c2af295.css.map +0 -1
  119. package/build/public/main.dbac3b290f78404ff579.css +0 -116
  120. package/build/public/main.dbac3b290f78404ff579.css.map +0 -1
  121. package/build/public/main.f8ce44e122e5e2b8f778.css +0 -118
  122. package/build/public/main.f8ce44e122e5e2b8f778.css.map +0 -1
  123. package/build/public/main.fc9ea7521a4aecce1a77.css +0 -118
  124. package/build/public/main.fc9ea7521a4aecce1a77.css.map +0 -1
  125. package/build/public/main.js +0 -403
  126. package/build/public/main.js.map +0 -1
  127. package/build/public/mainChunk.0a84f3ba4d2ab481e877.css +0 -116
  128. package/build/public/mainChunk.1b327d58afbddc917bce.css +0 -118
  129. package/build/public/mainChunk.2cdf583b2bd51aa67587.css +0 -118
  130. package/build/public/mainChunk.544af00f7e9ffcbe782c.css +0 -118
  131. package/build/public/mainChunk.56f96a13868b2b4a53be.css +0 -118
  132. package/build/public/mainChunk.5cee429bfbf06e7ecb39.css +0 -118
  133. package/build/public/mainChunk.a862474ed4cdb421ffa2.css +0 -118
  134. package/build/public/mainChunk.ada34153c4911b5ac22b.css +0 -118
  135. package/build/public/mainChunk.c16a8d01b2c49b2f2751.css +0 -118
  136. package/build/public/mainChunk.ca4a878d5478b9320be8.css +0 -116
  137. package/build/public/mainChunk.e3adc8758b4395546cef.css +0 -116
  138. package/build/public/mainChunk.f2c59fcbfc455d8b9de5.css +0 -118
  139. package/build/public/mainChunk.js +0 -396
  140. package/build/public/preview.html +0 -16
  141. package/build/public/previewBus.js +0 -2
  142. package/build/public/previewChunk.js +0 -2
  143. package/build/public/projects.html +0 -86
  144. package/build/public/server.html +0 -16
  145. package/build/public/serverBus.js +0 -2
  146. package/build/public/serverChunk.js +0 -2
  147. package/build/public/splash.html +0 -17
  148. package/build/public/studioBundle.828f34b1781061528841.css +0 -118
  149. package/build/public/studioBundle.bfe9138b2e0293fcb7da.css +0 -118
  150. package/build/public/studioBundle.c5b256eede880e502aac.css +0 -118
  151. package/build/public/studioBundle.e43df511c8e2e368900a.css +0 -118
  152. package/build/public/studioBundle.e69382554c2a2942ae32.css +0 -118
  153. package/build/public/studioBundle.ee21aa56a3999a2b380b.css +0 -118
  154. package/build/public/studioBundle.js +0 -396
  155. package/build/public/vercel.html +0 -16
  156. package/build/public/vercelChunk.js +0 -2
  157. package/build/xdg-open +0 -1066
  158. package/install/index.js +0 -5
  159. package/preinstall/index.js +0 -71
  160. package/prisma-client/README.md +0 -27
  161. package/prisma-client/generator-build/.DS_Store +0 -0
  162. package/prisma-client/generator-build/index.js +0 -79697
  163. package/prisma-client/index-browser.js +0 -3
  164. package/prisma-client/index.d.ts +0 -1
  165. package/prisma-client/index.js +0 -11
  166. package/prisma-client/package.json +0 -138
  167. package/prisma-client/runtime/index-browser.d.ts +0 -267
  168. package/prisma-client/runtime/index-browser.js +0 -2273
  169. package/prisma-client/runtime/index.d.ts +0 -1018
  170. package/prisma-client/runtime/index.js +0 -35028
  171. package/prisma-client/scripts/backup-index-browser.js +0 -3
  172. package/prisma-client/scripts/backup-index.d.ts +0 -1
  173. package/prisma-client/scripts/backup-index.js +0 -11
  174. package/prisma-client/scripts/colors.js +0 -180
  175. package/prisma-client/scripts/default-index-browser.js +0 -12
  176. package/prisma-client/scripts/default-index.d.ts +0 -47
  177. package/prisma-client/scripts/default-index.js +0 -12
  178. package/prisma-client/scripts/get-packed-client.js +0 -12
  179. package/prisma-client/scripts/mock-fs.js +0 -14
  180. package/prisma-client/scripts/postinstall.d.ts +0 -5
  181. package/prisma-client/scripts/postinstall.js +0 -398
  182. package/scripts/install-entry.js +0 -8
  183. package/scripts/preinstall-entry.js +0 -9
@@ -1,403 +0,0 @@
1
- !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=101)}([function(e,t,n){"use strict";e.exports=n(103)},function(e,t,n){"use strict";n.r(t),function(e,o){n.d(t,"$mobx",(function(){return S})),n.d(t,"FlowCancellationError",(function(){return Rt})),n.d(t,"IDerivationState",(function(){return J})),n.d(t,"ObservableMap",(function(){return wn})),n.d(t,"ObservableSet",(function(){return _n})),n.d(t,"Reaction",(function(){return Ye})),n.d(t,"_allowStateChanges",(function(){return _e})),n.d(t,"_allowStateChangesInsideComputed",(function(){return Se})),n.d(t,"_allowStateReadsEnd",(function(){return fe})),n.d(t,"_allowStateReadsStart",(function(){return he})),n.d(t,"_endAction",(function(){return Ee})),n.d(t,"_getAdministration",(function(){return xn})),n.d(t,"_getGlobalState",(function(){return Ge})),n.d(t,"_interceptReads",(function(){return Pt})),n.d(t,"_isComputingDerivation",(function(){return se})),n.d(t,"_resetGlobalState",(function(){return Ve})),n.d(t,"_startAction",(function(){return be})),n.d(t,"action",(function(){return rt})),n.d(t,"autorun",(function(){return lt})),n.d(t,"comparer",(function(){return I})),n.d(t,"computed",(function(){return ne})),n.d(t,"configure",(function(){return gt})),n.d(t,"createAtom",(function(){return P})),n.d(t,"decorate",(function(){return vt})),n.d(t,"entries",(function(){return Vt})),n.d(t,"extendObservable",(function(){return mt})),n.d(t,"flow",(function(){return Tt})),n.d(t,"get",(function(){return Bt})),n.d(t,"getAtom",(function(){return Nn})),n.d(t,"getDebugName",(function(){return Fn})),n.d(t,"getDependencyTree",(function(){return wt})),n.d(t,"getObserverTree",(function(){return Et})),n.d(t,"has",(function(){return Ht})),n.d(t,"intercept",(function(){return It})),n.d(t,"isAction",(function(){return st})),n.d(t,"isArrayLike",(function(){return w})),n.d(t,"isBoxedObservable",(function(){return De})),n.d(t,"isComputed",(function(){return Nt})),n.d(t,"isComputedProp",(function(){return xt})),n.d(t,"isFlowCancellationError",(function(){return St})),n.d(t,"isObservable",(function(){return Lt})),n.d(t,"isObservableArray",(function(){return mn})),n.d(t,"isObservableMap",(function(){return bn})),n.d(t,"isObservableObject",(function(){return An})),n.d(t,"isObservableProp",(function(){return Mt})),n.d(t,"isObservableSet",(function(){return On})),n.d(t,"keys",(function(){return kt})),n.d(t,"observable",(function(){return Q})),n.d(t,"observe",(function(){return zt})),n.d(t,"onBecomeObserved",(function(){return dt})),n.d(t,"onBecomeUnobserved",(function(){return ht})),n.d(t,"onReactionError",(function(){return Ke})),n.d(t,"reaction",(function(){return pt})),n.d(t,"remove",(function(){return Wt})),n.d(t,"runInAction",(function(){return it})),n.d(t,"set",(function(){return jt})),n.d(t,"spy",(function(){return et})),n.d(t,"toJS",(function(){return Yt})),n.d(t,"trace",(function(){return Kt})),n.d(t,"transaction",(function(){return Qt})),n.d(t,"untracked",(function(){return ce})),n.d(t,"values",(function(){return Gt})),n.d(t,"when",(function(){return Xt}));
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
- this file except in compliance with the License. You may obtain a copy of the
6
- License at http://www.apache.org/licenses/LICENSE-2.0
7
-
8
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11
- MERCHANTABLITY OR NON-INFRINGEMENT.
12
-
13
- See the Apache Version 2.0 License for specific language governing permissions
14
- and limitations under the License.
15
- ***************************************************************************** */
16
- var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}var u=[];Object.freeze(u);var c={};function p(){return++ke.mobxGuid}function d(e){throw h(!1,e),"X"}function h(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(c);function f(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function v(e){return null!==e&&"object"==typeof e}function m(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function C(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return v(e)&&!0===e[n]}}function w(e){return Array.isArray(e)||mn(e)}function b(e){return e instanceof Map}function E(e){return e instanceof Set}function _(e){var t=new Set;for(var n in e)t.add(n);return Object.getOwnPropertySymbols(e).forEach((function(n){Object.getOwnPropertyDescriptor(e,n).enumerable&&t.add(n)})),Array.from(t)}function O(e){return e&&e.toString?e.toString():new String(e).toString()}function R(e){return null===e?null:"object"==typeof e?""+e:e}var S=Symbol("mobx administration"),T=function(){function e(e){void 0===e&&(e="Atom@"+p()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=J.NOT_TRACKING}return e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.reportObserved=function(){return Ue(this)},e.prototype.reportChanged=function(){Be(),function(e){if(e.lowestObserverState===J.STALE)return;e.lowestObserverState=J.STALE,e.observers.forEach((function(t){t.dependenciesState===J.UP_TO_DATE&&(t.isTracing!==Z.NONE&&qe(t,e),t.onBecomeStale()),t.dependenciesState=J.STALE}))}(this),ze()},e.prototype.toString=function(){return this.name},e}(),D=C("Atom",T);function P(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var o=new T(e);return t!==g&&dt(o,t),n!==g&&ht(o,n),o}var I={identity:function(e,t){return e===t},structural:function(e,t){return Mn(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return Mn(e,t,1)}},A=Symbol("mobx did run lazy initializers"),N=Symbol("mobx pending decorators"),x={},F={};function L(e,t){var n=t?x:F;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return M(this),this[e]},set:function(t){M(this),this[e]=t}})}function M(e){var t,n;if(!0!==e[A]){var o=e[N];if(o){y(e,A,!0);var r=l(Object.getOwnPropertySymbols(o),Object.keys(o));try{for(var i=s(r),a=i.next();!a.done;a=i.next()){var u=o[a.value];u.propertyCreator(e,u.prop,u.descriptor,u.decoratorTarget,u.decoratorArguments)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}}}function k(e,t){return function(){var n,o=function(o,r,s,a){if(!0===a)return t(o,r,s,o,n),null;if(!Object.prototype.hasOwnProperty.call(o,N)){var l=o[N];y(o,N,i({},l))}return o[N][r]={prop:r,propertyCreator:t,descriptor:s,decoratorTarget:o,decoratorArguments:n},L(r,e)};return G(arguments)?(n=u,o.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),o)}}function G(e){return(2===e.length||3===e.length)&&("string"==typeof e[1]||"symbol"==typeof e[1])||4===e.length&&!0===e[3]}function V(e,t,n){return Lt(e)?e:Array.isArray(e)?Q.array(e,{name:n}):m(e)?Q.object(e,void 0,{name:n}):b(e)?Q.map(e,{name:n}):E(e)?Q.set(e,{name:n}):e}function j(e){return e}function W(t){h(t);var n=k(!0,(function(e,n,o,r,i){var s=o?o.initializer?o.initializer.call(e):o.value:void 0;Sn(e).addObservableProp(n,s,t)})),o=(void 0!==e&&e.env,n);return o.enhancer=t,o}var H={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function B(e){return null==e?H:"string"==typeof e?{name:e,deep:!0,proxy:!0}:e}Object.freeze(H);var z=W(V),U=W((function(e,t,n){return null==e||An(e)||mn(e)||bn(e)||On(e)?e:Array.isArray(e)?Q.array(e,{name:n,deep:!1}):m(e)?Q.object(e,void 0,{name:n,deep:!1}):b(e)?Q.map(e,{name:n,deep:!1}):E(e)?Q.set(e,{name:n,deep:!1}):d(!1)})),q=W(j),Y=W((function(e,t,n){return Mn(e,t)?t:e}));function K(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?j:V}var $={box:function(e,t){arguments.length>2&&X("box");var n=B(t);return new Te(e,K(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&X("array");var n=B(t);return dn(e,K(n),n.name)},map:function(e,t){arguments.length>2&&X("map");var n=B(t);return new wn(e,K(n),n.name)},set:function(e,t){arguments.length>2&&X("set");var n=B(t);return new _n(e,K(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&X("object");var o=B(n);if(!1===o.proxy)return mt({},e,t,o);var r=yt(o),i=mt({},void 0,void 0,o),s=on(i);return Ct(s,e,t,r),s},ref:q,shallow:U,deep:z,struct:Y},Q=function(e,t,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return z.apply(null,arguments);if(Lt(e))return e;var o=m(e)?Q.object(e,t,n):Array.isArray(e)?Q.array(e,t):b(e)?Q.map(e,t):E(e)?Q.set(e,t):e;if(o!==e)return o;d(!1)};function X(e){d("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys($).forEach((function(e){return Q[e]=$[e]}));var J,Z,ee=k(!1,(function(e,t,n,o,r){var s=n.get,a=n.set,l=r[0]||{};Sn(e).addComputedProp(e,t,i({get:s,set:a,context:e},l))})),te=ee({equals:I.structural}),ne=function(e,t,n){if("string"==typeof t)return ee.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return ee.apply(null,arguments);var o="object"==typeof t?t:{};return o.get=e,o.set="function"==typeof t?t:o.set,o.name=o.name||e.name||"",new Pe(o)};ne.struct=te,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(J||(J={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Z||(Z={}));var oe=function(e){this.cause=e};function re(e){return e instanceof oe}function ie(e){switch(e.dependenciesState){case J.UP_TO_DATE:return!1;case J.NOT_TRACKING:case J.STALE:return!0;case J.POSSIBLY_STALE:for(var t=he(!0),n=pe(),o=e.observing,r=o.length,i=0;i<r;i++){var s=o[i];if(Ie(s)){if(ke.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return de(n),fe(t),!0}if(e.dependenciesState===J.STALE)return de(n),fe(t),!0}}return ge(e),de(n),fe(t),!1}}function se(){return null!==ke.trackingDerivation}function ae(e){var t=e.observers.size>0;ke.computationDepth>0&&t&&d(!1),ke.allowStateChanges||!t&&"strict"!==ke.enforceActions||d(!1)}function le(e,t,n){var o=he(!0);ge(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++ke.runId;var r,i=ke.trackingDerivation;if(ke.trackingDerivation=e,!0===ke.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(e){r=new oe(e)}return ke.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,o=J.UP_TO_DATE,r=0,i=e.unboundDepsCount,s=0;s<i;s++){0===(a=n[s]).diffValue&&(a.diffValue=1,r!==s&&(n[r]=a),r++),a.dependenciesState>o&&(o=a.dependenciesState)}n.length=r,e.newObserving=null,i=t.length;for(;i--;){0===(a=t[i]).diffValue&&We(a,e),a.diffValue=0}for(;r--;){var a;1===(a=n[r]).diffValue&&(a.diffValue=0,je(a,e))}o!==J.UP_TO_DATE&&(e.dependenciesState=o,e.onBecomeStale())}(e),fe(o),r}function ue(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)We(t[n],e);e.dependenciesState=J.NOT_TRACKING}function ce(e){var t=pe();try{return e()}finally{de(t)}}function pe(){var e=ke.trackingDerivation;return ke.trackingDerivation=null,e}function de(e){ke.trackingDerivation=e}function he(e){var t=ke.allowStateReads;return ke.allowStateReads=e,t}function fe(e){ke.allowStateReads=e}function ge(e){if(e.dependenciesState!==J.UP_TO_DATE){e.dependenciesState=J.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=J.UP_TO_DATE}}var ve=0,me=1,ye=Object.getOwnPropertyDescriptor((function(){}),"name");ye&&ye.configurable;function Ce(e,t,n){var o=function(){return we(e,t,n||this,arguments)};return o.isMobxAction=!0,o}function we(e,t,n,o){var r=be(e,n,o);try{return t.apply(n,o)}catch(e){throw r.error=e,e}finally{Ee(r)}}function be(e,t,n){var o=0,r=pe();Be();var i={prevDerivation:r,prevAllowStateChanges:Oe(!0),prevAllowStateReads:he(!0),notifySpy:!1,startTime:o,actionId:me++,parentActionId:ve};return ve=i.actionId,i}function Ee(e){ve!==e.actionId&&d("invalid action stack. did you forget to finish an action?"),ve=e.parentActionId,void 0!==e.error&&(ke.suppressReactionErrors=!0),Re(e.prevAllowStateChanges),fe(e.prevAllowStateReads),ze(),de(e.prevDerivation),e.notifySpy,ke.suppressReactionErrors=!1}function _e(e,t){var n,o=Oe(e);try{n=t()}finally{Re(o)}return n}function Oe(e){var t=ke.allowStateChanges;return ke.allowStateChanges=e,t}function Re(e){ke.allowStateChanges=e}function Se(e){var t,n=ke.computationDepth;ke.computationDepth=0;try{t=e()}finally{ke.computationDepth=n}return t}var Te=function(e){function t(t,n,o,r,i){void 0===o&&(o="ObservableValue@"+p()),void 0===r&&(r=!0),void 0===i&&(i=I.default);var s=e.call(this,o)||this;return s.enhancer=n,s.name=o,s.equals=i,s.hasUnreportedChange=!1,s.value=n(t,void 0,o),s}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value;if((e=this.prepareNewValue(e))!==ke.UNCHANGED){0,this.setNewValue(e)}},t.prototype.prepareNewValue=function(e){if(ae(this),rn(this)){var t=an(this,{object:this,type:"update",newValue:e});if(!t)return ke.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?ke.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),ln(this)&&cn(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return sn(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),un(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return R(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(T),De=C("ObservableValue",Te),Pe=function(){function e(e){this.dependenciesState=J.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=J.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+p(),this.value=new oe(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Z.NONE,h(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+p(),e.set&&(this.setter=Ce(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?I.structural:I.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==J.UP_TO_DATE)return;e.lowestObserverState=J.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===J.UP_TO_DATE&&(t.dependenciesState=J.POSSIBLY_STALE,t.isTracing!==Z.NONE&&qe(t,e),t.onBecomeStale())}))}(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&d("Cycle detected in computation "+this.name+": "+this.derivation),0!==ke.inBatch||0!==this.observers.size||this.keepAlive?(Ue(this),ie(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===J.STALE)return;e.lowestObserverState=J.STALE,e.observers.forEach((function(t){t.dependenciesState===J.POSSIBLY_STALE?t.dependenciesState=J.STALE:t.dependenciesState===J.UP_TO_DATE&&(e.lowestObserverState=J.UP_TO_DATE)}))}(this)):ie(this)&&(this.warnAboutUntrackedRead(),Be(),this.value=this.computeValue(!1),ze());var e=this.value;if(re(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(re(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){h(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else h(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===J.NOT_TRACKING,n=this.computeValue(!0),o=t||re(e)||re(n)||!this.equals(e,n);return o&&(this.value=n),o},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,ke.computationDepth++,e)t=le(this,this.derivation,this.scope);else if(!0===ke.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new oe(e)}return ke.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(ue(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,o=!0,r=void 0;return lt((function(){var i=n.get();if(!o||t){var s=pe();e({type:"update",object:n,newValue:i,oldValue:r}),de(s)}o=!1,r=i}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return R(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),Ie=C("ComputedValue",Pe),Ae=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Ne=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},xe={};function Fe(){return"undefined"!=typeof window?window:void 0!==o?o:"undefined"!=typeof self?self:xe}var Le=!0,Me=!1,ke=function(){var e=Fe();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Le=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ne).version&&(Le=!1),Le?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ne):(setTimeout((function(){Me||d("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Ne)}();function Ge(){return ke}function Ve(){var e=new Ne;for(var t in e)-1===Ae.indexOf(t)&&(ke[t]=e[t]);ke.allowStateChanges=!ke.enforceActions}function je(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function We(e,t){e.observers.delete(t),0===e.observers.size&&He(e)}function He(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ke.pendingUnobservations.push(e))}function Be(){ke.inBatch++}function ze(){if(0==--ke.inBatch){Qe();for(var e=ke.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Pe&&n.suspend())}ke.pendingUnobservations=[]}}function Ue(e){var t=ke.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.size&&ke.inBatch>0&&He(e),!1)}function qe(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Z.BREAK){var n=[];!function e(t,n,o){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(o).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,o+1)}))}(wt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof Pe?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var Ye=function(){function e(e,t,n,o){void 0===e&&(e="Reaction@"+p()),void 0===o&&(o=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=o,this.observing=[],this.newObserving=[],this.dependenciesState=J.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+p(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Z.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,ke.pendingReactions.push(this),Qe())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Be(),this._isScheduled=!1,ie(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}ze()}},e.prototype.track=function(e){if(!this.isDisposed){Be();0,this._isRunning=!0;var t=le(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ue(this),re(t)&&this.reportExceptionInDerivation(t.cause),ze()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(ke.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";ke.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),ke.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Be(),ue(this),ze()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[S]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),Kt(this,e)},e}();function Ke(e){return ke.globalReactionErrorHandlers.push(e),function(){var t=ke.globalReactionErrorHandlers.indexOf(e);t>=0&&ke.globalReactionErrorHandlers.splice(t,1)}}var $e=function(e){return e()};function Qe(){ke.inBatch>0||ke.isRunningReactions||$e(Xe)}function Xe(){ke.isRunningReactions=!0;for(var e=ke.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),o=0,r=n.length;o<r;o++)n[o].runReaction()}ke.isRunningReactions=!1}var Je=C("Reaction",Ye);function Ze(e){var t=$e;$e=function(n){return e((function(){return t(n)}))}}function et(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function tt(){d(!1)}function nt(e){return function(t,n,o){if(o){if(o.value)return{value:Ce(e,o.value),enumerable:!1,configurable:!0,writable:!0};var r=o.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Ce(e,r.call(this))}}}return ot(e).apply(this,arguments)}}function ot(e){return function(t,n,o){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){y(this,n,rt(e,t))}})}}var rt=function(e,t,n,o){return 1===arguments.length&&"function"==typeof e?Ce(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?Ce(e,t):1===arguments.length&&"string"==typeof e?nt(e):!0!==o?nt(t).apply(null,arguments):void y(e,t,Ce(e.name||t,n.value,this))};function it(e,t){return we("string"==typeof e?e:e.name||"<unnamed action>","function"==typeof e?e:t,this,void 0)}function st(e){return"function"==typeof e&&!0===e.isMobxAction}function at(e,t,n){y(e,t,Ce(t,n.bind(e)))}function lt(e,t){void 0===t&&(t=c);var n,o=t&&t.name||e.name||"Autorun@"+p();if(!t.scheduler&&!t.delay)n=new Ye(o,(function(){this.track(s)}),t.onError,t.requiresObservable);else{var r=ct(t),i=!1;n=new Ye(o,(function(){i||(i=!0,r((function(){i=!1,n.isDisposed||n.track(s)})))}),t.onError,t.requiresObservable)}function s(){e(n)}return n.schedule(),n.getDisposer()}rt.bound=function(e,t,n,o){return!0===o?(at(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return at(this,t,n.value||n.initializer.call(this)),this[t]},set:tt}:{enumerable:!1,configurable:!0,set:function(e){at(this,t,e)},get:function(){}}};var ut=function(e){return e()};function ct(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ut}function pt(e,t,n){void 0===n&&(n=c);var o,r,i,s=n.name||"Reaction@"+p(),a=rt(s,n.onError?(o=n.onError,r=t,function(){try{return r.apply(this,arguments)}catch(e){o.call(this,e)}}):t),l=!n.scheduler&&!n.delay,u=ct(n),d=!0,h=!1,f=n.compareStructural?I.structural:n.equals||I.default,g=new Ye(s,(function(){d||l?v():h||(h=!0,u(v))}),n.onError,n.requiresObservable);function v(){if(h=!1,!g.isDisposed){var t=!1;g.track((function(){var n=e(g);t=d||!f(i,n),i=n})),d&&n.fireImmediately&&a(i,g),d||!0!==t||a(i,g),d&&(d=!1)}}return g.schedule(),g.getDisposer()}function dt(e,t,n){return ft("onBecomeObserved",e,t,n)}function ht(e,t,n){return ft("onBecomeUnobserved",e,t,n)}function ft(e,t,n,o){var r="function"==typeof o?Nn(t,n):Nn(t),i="function"==typeof o?o:n,s=e+"Listeners";return r[s]?r[s].add(i):r[s]=new Set([i]),"function"!=typeof r[e]?d(!1):function(){var e=r[s];e&&(e.delete(i),0===e.size&&delete r[s])}}function gt(e){var t=e.enforceActions,n=e.computedRequiresReaction,o=e.computedConfigurable,r=e.disableErrorBoundaries,i=e.reactionScheduler,s=e.reactionRequiresObservable,a=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((ke.pendingReactions.length||ke.inBatch||ke.isRunningReactions)&&d("isolateGlobalState should be called before MobX is running any reactions"),Me=!0,Le&&(0==--Fe().__mobxInstanceCount&&(Fe().__mobxGlobals=void 0),ke=new Ne)),void 0!==t){var l=void 0;switch(t){case!0:case"observed":l=!0;break;case!1:case"never":l=!1;break;case"strict":case"always":l="strict";break;default:d("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}ke.enforceActions=l,ke.allowStateChanges=!0!==l&&"strict"!==l}void 0!==n&&(ke.computedRequiresReaction=!!n),void 0!==s&&(ke.reactionRequiresObservable=!!s),void 0!==a&&(ke.observableRequiresReaction=!!a,ke.allowStateReads=!ke.observableRequiresReaction),void 0!==o&&(ke.computedConfigurable=!!o),void 0!==r&&(!0===r&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),ke.disableErrorBoundaries=!!r),i&&Ze(i)}function vt(e,t){var n="function"==typeof e?e.prototype:e,o=function(e){var o=t[e];Array.isArray(o)||(o=[o]);var r=Object.getOwnPropertyDescriptor(n,e),i=o.reduce((function(t,o){return o(n,e,t)}),r);i&&Object.defineProperty(n,e,i)};for(var r in t)o(r);return e}function mt(e,t,n,o){var r=yt(o=B(o));return M(e),Sn(e,o.name,r.enhancer),t&&Ct(e,t,n,r),e}function yt(e){return e.defaultDecorator||(!1===e.deep?q:z)}function Ct(e,t,n,o){var r,i;Be();try{var a=_(t);try{for(var l=s(a),u=l.next();!u.done;u=l.next()){var c=u.value,p=Object.getOwnPropertyDescriptor(t,c);0;var d=(n&&c in n?n[c]:p.get?ee:o)(e,c,p,!0);d&&Object.defineProperty(e,c,d)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}finally{ze()}}function wt(e,t){return bt(Nn(e,t))}function bt(e){var t,n,o={name:e.name};return e.observing&&e.observing.length>0&&(o.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(bt)),o}function Et(e,t){return _t(Nn(e,t))}function _t(e){var t={name:e.name};return function(e){return e.observers&&e.observers.size>0}(e)&&(t.observers=Array.from(function(e){return e.observers}(e)).map(_t)),t}var Ot=0;function Rt(){this.message="FLOW_CANCELLED"}function St(e){return e instanceof Rt}function Tt(e){1!==arguments.length&&d("Flow expects 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,o=this,r=arguments,i=++Ot,s=rt(t+" - runid: "+i+" - init",e).apply(o,r),a=void 0,l=new Promise((function(e,o){var r=0;function l(e){var n;a=void 0;try{n=rt(t+" - runid: "+i+" - yield "+r++,s.next).call(s,e)}catch(e){return o(e)}c(n)}function u(e){var n;a=void 0;try{n=rt(t+" - runid: "+i+" - yield "+r++,s.throw).call(s,e)}catch(e){return o(e)}c(n)}function c(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(a=Promise.resolve(t.value)).then(l,u);t.then(c,o)}n=o,l(void 0)}));return l.cancel=rt(t+" - runid: "+i+" - cancel",(function(){try{a&&Dt(a);var e=s.return(void 0),t=Promise.resolve(e.value);t.then(g,g),Dt(t),n(new Rt)}catch(e){n(e)}})),l}}function Dt(e){"function"==typeof e.cancel&&e.cancel()}function Pt(e,t,n){var o;if(bn(e)||mn(e)||De(e))o=xn(e);else{if(!An(e))return d(!1);if("string"!=typeof t)return d(!1);o=xn(e,t)}return void 0!==o.dehancer?d(!1):(o.dehancer="function"==typeof t?t:n,function(){o.dehancer=void 0})}function It(e,t,n){return"function"==typeof n?function(e,t,n){return xn(e,t).intercept(n)}(e,t,n):function(e,t){return xn(e).intercept(t)}(e,t)}function At(e,t){if(null==e)return!1;if(void 0!==t){if(!1===An(e))return!1;if(!e[S].values.has(t))return!1;var n=Nn(e,t);return Ie(n)}return Ie(e)}function Nt(e){return arguments.length>1?d(!1):At(e)}function xt(e,t){return"string"!=typeof t?d(!1):At(e,t)}function Ft(e,t){return null!=e&&(void 0!==t?!!An(e)&&e[S].values.has(t):An(e)||!!e[S]||D(e)||Je(e)||Ie(e))}function Lt(e){return 1!==arguments.length&&d(!1),Ft(e)}function Mt(e,t){return"string"!=typeof t?d(!1):Ft(e,t)}function kt(e){return An(e)?e[S].getKeys():bn(e)||On(e)?Array.from(e.keys()):mn(e)?e.map((function(e,t){return t})):d(!1)}function Gt(e){return An(e)?kt(e).map((function(t){return e[t]})):bn(e)?kt(e).map((function(t){return e.get(t)})):On(e)?Array.from(e.values()):mn(e)?e.slice():d(!1)}function Vt(e){return An(e)?kt(e).map((function(t){return[t,e[t]]})):bn(e)?kt(e).map((function(t){return[t,e.get(t)]})):On(e)?Array.from(e.entries()):mn(e)?e.map((function(e,t){return[t,e]})):d(!1)}function jt(e,t,n){if(2!==arguments.length||On(e))if(An(e)){var o=e[S],r=o.values.get(t);r?o.write(t,n):o.addObservableProp(t,n,o.defaultEnhancer)}else if(bn(e))e.set(t,n);else if(On(e))e.add(t);else{if(!mn(e))return d(!1);"number"!=typeof t&&(t=parseInt(t,10)),h(t>=0,"Not a valid index: '"+t+"'"),Be(),t>=e.length&&(e.length=t+1),e[t]=n,ze()}else{Be();var i=t;try{for(var s in i)jt(e,s,i[s])}finally{ze()}}}function Wt(e,t){if(An(e))e[S].remove(t);else if(bn(e))e.delete(t);else if(On(e))e.delete(t);else{if(!mn(e))return d(!1);"number"!=typeof t&&(t=parseInt(t,10)),h(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function Ht(e,t){return An(e)?xn(e).has(t):bn(e)||On(e)?e.has(t):mn(e)?t>=0&&t<e.length:d(!1)}function Bt(e,t){if(Ht(e,t))return An(e)?e[t]:bn(e)?e.get(t):mn(e)?e[t]:d(!1)}function zt(e,t,n,o){return"function"==typeof n?function(e,t,n,o){return xn(e,t).observe(n,o)}(e,t,n,o):function(e,t,n){return xn(e).observe(t,n)}(e,t,n)}Rt.prototype=Object.create(Error.prototype);var Ut={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function qt(e,t,n,o){return o.detectCycles&&e.set(t,n),n}function Yt(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=Ut),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(n=new Map),function e(t,n,o){if(!n.recurseEverything&&!Lt(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(De(t))return e(t.get(),n,o);if(Lt(t)&&kt(t),!0===n.detectCycles&&null!==t&&o.has(t))return o.get(t);if(mn(t)||Array.isArray(t)){var r=qt(o,t,[],n),i=t.map((function(t){return e(t,n,o)}));r.length=i.length;for(var s=0,a=i.length;s<a;s++)r[s]=i[s];return r}if(On(t)||Object.getPrototypeOf(t)===Set.prototype){if(!1===n.exportMapsAsObjects){var l=qt(o,t,new Set,n);return t.forEach((function(t){l.add(e(t,n,o))})),l}var u=qt(o,t,[],n);return t.forEach((function(t){u.push(e(t,n,o))})),u}if(bn(t)||Object.getPrototypeOf(t)===Map.prototype){if(!1===n.exportMapsAsObjects){var c=qt(o,t,new Map,n);return t.forEach((function(t,r){c.set(r,e(t,n,o))})),c}var p=qt(o,t,{},n);return t.forEach((function(t,r){p[r]=e(t,n,o)})),p}var d=qt(o,t,{},n);return _(t).forEach((function(r){d[r]=e(t[r],n,o)})),d}(e,t,n)}function Kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var o=$t(e);if(!o)return d(!1);o.isTracing===Z.NONE&&console.log("[mobx.trace] '"+o.name+"' tracing enabled"),o.isTracing=n?Z.BREAK:Z.LOG}function $t(e){switch(e.length){case 0:return ke.trackingDerivation;case 1:return Nn(e[0]);case 2:return Nn(e[0],e[1])}}function Qt(e,t){void 0===t&&(t=void 0),Be();try{return e.apply(t)}finally{ze()}}function Xt(e,t,n){return 1===arguments.length||t&&"object"==typeof t?Zt(e,t):Jt(e,t,n||{})}function Jt(e,t,n){var o;"number"==typeof n.timeout&&(o=setTimeout((function(){if(!i[S].isDisposed){i();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+p();var r=Ce(n.name+"-effect",t),i=lt((function(t){e()&&(t.dispose(),o&&clearTimeout(o),r())}),n);return i}function Zt(e,t){var n;var o=new Promise((function(o,r){var s=Jt(e,o,i(i({},t),{onError:r}));n=function(){s(),r("WHEN_CANCELLED")}}));return o.cancel=n,o}function en(e){return e[S]}function tn(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var nn={has:function(e,t){if(t===S||"constructor"===t||t===A)return!0;var n=en(e);return tn(t)?n.has(t):t in e},get:function(e,t){if(t===S||"constructor"===t||t===A)return e[t];var n=en(e),o=n.values.get(t);if(o instanceof T){var r=o.get();return void 0===r&&n.has(t),r}return tn(t)&&n.has(t),e[t]},set:function(e,t,n){return!!tn(t)&&(jt(e,t,n),!0)},deleteProperty:function(e,t){return!!tn(t)&&(en(e).remove(t),!0)},ownKeys:function(e){return en(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return d("Dynamic observable objects cannot be frozen"),!1}};function on(e){var t=new Proxy(e,nn);return e[S].proxy=t,t}function rn(e){return void 0!==e.interceptors&&e.interceptors.length>0}function sn(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function an(e,t){var n=pe();try{for(var o=l(e.interceptors||[]),r=0,i=o.length;r<i&&(h(!(t=o[r](t))||t.type,"Intercept handlers should return nothing or a change object"),t);r++);return t}finally{de(n)}}function ln(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function un(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function cn(e,t){var n=pe(),o=e.changeListeners;if(o){for(var r=0,i=(o=o.slice()).length;r<i;r++)o[r](t);de(n)}}var pn={get:function(e,t){return t===S?e[S]:"length"===t?e[S].getArrayLength():"number"==typeof t?fn.get.call(e,t):"string"!=typeof t||isNaN(t)?fn.hasOwnProperty(t)?fn[t]:e[t]:fn.get.call(e,parseInt(t))},set:function(e,t,n){return"length"===t&&e[S].setArrayLength(n),"number"==typeof t&&fn.set.call(e,t,n),"symbol"==typeof t||isNaN(t)?e[t]=n:fn.set.call(e,parseInt(t),n),!0},preventExtensions:function(e){return d("Observable arrays cannot be frozen"),!1}};function dn(e,t,n,o){void 0===n&&(n="ObservableArray@"+p()),void 0===o&&(o=!1);var r,i,s,a=new hn(n,t,o);r=a.values,i=S,s=a,Object.defineProperty(r,i,{enumerable:!1,writable:!1,configurable:!0,value:s});var l=new Proxy(a.values,pn);if(a.proxy=l,e&&e.length){var u=Oe(!0);a.spliceWithArray(0,0,e),Re(u)}return l}var hn=function(){function e(e,t,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new T(e||"ObservableArray@"+p()),this.enhancer=function(n,o){return t(n,o,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return sn(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),un(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),o=0;o<e-t;o++)n[o]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=t},e.prototype.spliceWithArray=function(e,t,n){var o=this;ae(this.atom);var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:null==t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=u),rn(this)){var i=an(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!i)return u;t=i.removedCount,n=i.added}n=0===n.length?n:n.map((function(e){return o.enhancer(e,void 0)}));var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var o;if(n.length<1e4)return(o=this.values).splice.apply(o,l([e,t],n));var r=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),r},e.prototype.notifyArrayChildUpdate=function(e,t,n){var o=!this.owned&&!1,r=ln(this),i=r||o?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),r&&cn(this,i)},e.prototype.notifyArraySplice=function(e,t,n){var o=!this.owned&&!1,r=ln(this),i=r||o?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),r&&cn(this,i)},e}(),fn={intercept:function(e){return this[S].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[S].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[S];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=this[S];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray(e);case 2:return r.spliceWithArray(e,t)}return r.spliceWithArray(e,t,n)},spliceWithArray:function(e,t,n){return this[S].spliceWithArray(e,t,n)},push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this[S];return n.spliceWithArray(n.values.length,0,e),n.values.length},pop:function(){return this.splice(Math.max(this[S].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this[S];return n.spliceWithArray(0,0,e),n.values.length},reverse:function(){var e=this.slice();return e.reverse.apply(e,arguments)},sort:function(e){var t=this.slice();return t.sort.apply(t,arguments)},remove:function(e){var t=this[S],n=t.dehanceValues(t.values).indexOf(e);return n>-1&&(this.splice(n,1),!0)},get:function(e){var t=this[S];if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},set:function(e,t){var n=this[S],o=n.values;if(e<o.length){ae(n.atom);var r=o[e];if(rn(n)){var i=an(n,{type:"update",object:n.proxy,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,r))!==r&&(o[e]=t,n.notifyArrayChildUpdate(e,t,r))}else{if(e!==o.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+o.length);n.spliceWithArray(e,0,[t])}}};["concat","every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach((function(e){fn[e]=function(){var t=this[S];t.atom.reportObserved();var n=t.dehanceValues(t.values);return n[e].apply(n,arguments)}}));var gn,vn=C("ObservableArrayAdministration",hn);function mn(e){return v(e)&&vn(e[S])}var yn,Cn={},wn=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableMap@"+p()),this.enhancer=t,this.name=n,this[gn]=Cn,this._keysAtom=P(this.name+".keys()"),this[Symbol.toStringTag]="Map","function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!ke.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var o=n=new Te(this._has(e),j,this.name+"."+O(e)+"?",!1);this._hasMap.set(e,o),ht(o,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(rn(this)){var o=an(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!o)return this;t=o.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(rn(this)&&!(o=an(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=ln(this),o=n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return Qt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),n&&cn(this,o),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==ke.UNCHANGED){var o=ln(this),r=o?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;0,n.setNewValue(t),o&&cn(this,r)}},e.prototype._addValue=function(e,t){var n=this;ae(this._keysAtom),Qt((function(){var o=new Te(t,n.enhancer,n.name+"."+O(e),!1);n._data.set(e,o),t=o.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var o=ln(this),r=o?{type:"add",object:this,name:e,newValue:t}:null;o&&cn(this,r)},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=0,n=Array.from(this.keys());return Vn({next:function(){return t<n.length?{value:e.get(n[t++]),done:!1}:{done:!0}}})},e.prototype.entries=function(){var e=this,t=0,n=Array.from(this.keys());return Vn({next:function(){if(t<n.length){var o=n[t++];return{value:[o,e.get(o)],done:!1}}return{done:!0}}})},e.prototype[(gn=S,Symbol.iterator)]=function(){return this.entries()},e.prototype.forEach=function(e,t){var n,o;try{for(var r=s(this),i=r.next();!i.done;i=r.next()){var l=a(i.value,2),u=l[0],c=l[1];e.call(t,c,u,this)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}},e.prototype.merge=function(e){var t=this;return bn(e)&&(e=e.toJS()),Qt((function(){m(e)?_(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=a(e,2),o=n[0],r=n[1];return t.set(o,r)})):b(e)?(e.constructor!==Map&&d("Cannot initialize from classes that inherit from Map: "+e.constructor.name),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&d("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;Qt((function(){ce((function(){var t,n;try{for(var o=s(e.keys()),r=o.next();!r.done;r=o.next()){var i=r.value;e.delete(i)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}))}))},e.prototype.replace=function(e){var t=this;return Qt((function(){var n,o=m(n=e)?Object.keys(n):Array.isArray(n)?n.map((function(e){return a(e,1)[0]})):b(n)||bn(n)?Array.from(n.keys()):d("Cannot get keys from '"+n+"'");Array.from(t.keys()).filter((function(e){return-1===o.indexOf(e)})).forEach((function(e){return t.delete(e)})),t.merge(e)})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e,t,n={};try{for(var o=s(this),r=o.next();!r.done;r=o.next()){var i=a(r.value,2),l=i[0],u=i[1];n["symbol"==typeof l?l:O(l)]=u}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+Array.from(this.keys()).map((function(t){return O(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return un(this,e)},e.prototype.intercept=function(e){return sn(this,e)},e}(),bn=C("ObservableMap",wn),En={},_n=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableSet@"+p()),this.name=n,this[yn]=En,this._data=new Set,this._atom=P(this.name),this[Symbol.toStringTag]="Set","function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,o){return t(e,o,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Qt((function(){ce((function(){var t,n;try{for(var o=s(e._data.values()),r=o.next();!r.done;r=o.next()){var i=r.value;e.delete(i)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}))}))},e.prototype.forEach=function(e,t){var n,o;try{for(var r=s(this),i=r.next();!i.done;i=r.next()){var a=i.value;e.call(t,a,a,this)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((ae(this._atom),rn(this))&&!(o=an(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){Qt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=ln(this),o=n?{type:"add",object:this,newValue:e}:null;0,n&&cn(this,o)}return this},e.prototype.delete=function(e){var t=this;if(rn(this)&&!(o=an(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=ln(this),o=n?{type:"delete",object:this,oldValue:e}:null;return Qt((function(){t._atom.reportChanged(),t._data.delete(e)})),n&&cn(this,o),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Vn({next:function(){var o=e;return e+=1,o<n.length?{value:[t[o],n[o]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e=this,t=0,n=Array.from(this._data.values());return Vn({next:function(){return t<n.length?{value:e.dehanceValue(n[t++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return On(e)&&(e=e.toJS()),Qt((function(){Array.isArray(e)||E(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&d("Cannot initialize set from "+e)})),this},e.prototype.observe=function(e,t){return un(this,e)},e.prototype.intercept=function(e){return sn(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},e.prototype[(yn=S,Symbol.iterator)]=function(){return this.values()},e}(),On=C("ObservableSet",_n),Rn=function(){function e(e,t,n,o){void 0===t&&(t=new Map),this.target=e,this.values=t,this.name=n,this.defaultEnhancer=o,this.keysAtom=new T(n+".keys")}return e.prototype.read=function(e){return this.values.get(e).get()},e.prototype.write=function(e,t){var n=this.target,o=this.values.get(e);if(o instanceof Pe)o.set(t);else{if(rn(this)){if(!(i=an(this,{type:"update",object:this.proxy||n,name:e,newValue:t})))return;t=i.newValue}if((t=o.prepareNewValue(t))!==ke.UNCHANGED){var r=ln(this),i=r?{type:"update",object:this.proxy||n,oldValue:o.value,name:e,newValue:t}:null;0,o.setNewValue(t),r&&cn(this,i)}}},e.prototype.has=function(e){var t=this.pendingKeys||(this.pendingKeys=new Map),n=t.get(e);if(n)return n.get();var o=!!this.values.get(e);return n=new Te(o,j,this.name+"."+O(e)+"?",!1),t.set(e,n),n.get()},e.prototype.addObservableProp=function(e,t,n){void 0===n&&(n=this.defaultEnhancer);var o=this.target;if(rn(this)){var r=an(this,{object:this.proxy||o,name:e,type:"add",newValue:t});if(!r)return;t=r.newValue}var i=new Te(t,n,this.name+"."+O(e),!1);this.values.set(e,i),t=i.value,Object.defineProperty(o,e,function(e){return Tn[e]||(Tn[e]={configurable:!0,enumerable:!0,get:function(){return this[S].read(e)},set:function(t){this[S].write(e,t)}})}(e)),this.notifyPropertyAddition(e,t)},e.prototype.addComputedProp=function(e,t,n){var o,r,i,s=this.target;n.name=n.name||this.name+"."+O(t),this.values.set(t,new Pe(n)),(e===s||(o=e,r=t,!(i=Object.getOwnPropertyDescriptor(o,r))||!1!==i.configurable&&!1!==i.writable))&&Object.defineProperty(e,t,function(e){return Dn[e]||(Dn[e]={configurable:ke.computedConfigurable,enumerable:!1,get:function(){return Pn(this).read(e)},set:function(t){Pn(this).write(e,t)}})}(t))},e.prototype.remove=function(e){if(this.values.has(e)){var t=this.target;if(rn(this))if(!(s=an(this,{object:this.proxy||t,name:e,type:"remove"})))return;try{Be();var n=ln(this),o=this.values.get(e),r=o&&o.get();if(o&&o.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){var i=this.pendingKeys.get(e);i&&i.set(!1)}delete this.target[e];var s=n?{type:"remove",object:this.proxy||t,oldValue:r,name:e}:null;0,n&&cn(this,s)}finally{ze()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return un(this,e)},e.prototype.intercept=function(e){return sn(this,e)},e.prototype.notifyPropertyAddition=function(e,t){var n=ln(this),o=n?{type:"add",object:this.proxy||this.target,name:e,newValue:t}:null;if(n&&cn(this,o),this.pendingKeys){var r=this.pendingKeys.get(e);r&&r.set(!0)}this.keysAtom.reportChanged()},e.prototype.getKeys=function(){var e,t;this.keysAtom.reportObserved();var n=[];try{for(var o=s(this.values),r=o.next();!r.done;r=o.next()){var i=a(r.value,2),l=i[0];i[1]instanceof Te&&n.push(l)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},e}();function Sn(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n=V),Object.prototype.hasOwnProperty.call(e,S))return e[S];m(e)||(t=(e.constructor.name||"ObservableObject")+"@"+p()),t||(t="ObservableObject@"+p());var o=new Rn(e,new Map,O(t),n);return y(e,S,o),o}var Tn=Object.create(null),Dn=Object.create(null);function Pn(e){var t=e[S];return t||(M(e),e[S])}var In=C("ObservableObjectAdministration",Rn);function An(e){return!!v(e)&&(M(e),In(e[S]))}function Nn(e,t){if("object"==typeof e&&null!==e){if(mn(e))return void 0!==t&&d(!1),e[S].atom;if(On(e))return e[S];if(bn(e)){var n=e;return void 0===t?n._keysAtom:((o=n._data.get(t)||n._hasMap.get(t))||d(!1),o)}var o;if(M(e),t&&!e[S]&&e[t],An(e))return t?((o=e[S].values.get(t))||d(!1),o):d(!1);if(D(e)||Ie(e)||Je(e))return e}else if("function"==typeof e&&Je(e[S]))return e[S];return d(!1)}function xn(e,t){return e||d("Expecting some object"),void 0!==t?xn(Nn(e,t)):D(e)||Ie(e)||Je(e)||bn(e)||On(e)?e:(M(e),e[S]?e[S]:void d(!1))}function Fn(e,t){return(void 0!==t?Nn(e,t):An(e)||bn(e)||On(e)?xn(e):Nn(e)).name}var Ln=Object.prototype.toString;function Mn(e,t,n){return void 0===n&&(n=-1),function e(t,n,o,r,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var s=typeof t;if("function"!==s&&"object"!==s&&"object"!=typeof n)return!1;var a=Ln.call(t);if(a!==Ln.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n);case"[object Map]":case"[object Set]":o>=0&&o++}t=kn(t),n=kn(n);var l="[object Array]"===a;if(!l){if("object"!=typeof t||"object"!=typeof n)return!1;var u=t.constructor,c=n.constructor;if(u!==c&&!("function"==typeof u&&u instanceof u&&"function"==typeof c&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}if(0===o)return!1;o<0&&(o=-1);i=i||[];var p=(r=r||[]).length;for(;p--;)if(r[p]===t)return i[p]===n;if(r.push(t),i.push(n),l){if((p=t.length)!==n.length)return!1;for(;p--;)if(!e(t[p],n[p],o-1,r,i))return!1}else{var d=Object.keys(t),h=void 0;if(p=d.length,Object.keys(n).length!==p)return!1;for(;p--;)if(h=d[p],!Gn(n,h)||!e(t[h],n[h],o-1,r,i))return!1}return r.pop(),i.pop(),!0}(e,t,n)}function kn(e){return mn(e)?e.slice():b(e)||bn(e)||E(e)||On(e)?Array.from(e.entries()):e}function Gn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vn(e){return e[Symbol.iterator]=jn,e}function jn(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:et,extras:{getDebugName:Fn},$mobx:S})}.call(this,n(79),n(33))},function(e,t,n){"use strict";var o=n(21);class r extends Error{constructor(e){super(e.message),this.path=e.path,this.message=e.message,this.context=e.context||null,this.nativeError=e.nativeError}}t.a=(e,t,n,i)=>{const s=new r({path:e,message:t,context:n||null,nativeError:i||new Error});return console.error(`[${s.path}] ${s.message}`,s.context,{nativeError:{message:s.nativeError.message}}),Object(o.b)(o=>{o.setExtra("path",e),o.setExtra("message",t),o.setExtra("context",JSON.stringify(n)),o.setExtra("nativeError",i)}),Object(o.a)(s),s}},function(e,t,n){(function(e,o){var r;
17
- /**
18
- * @license
19
- * Lodash <https://lodash.com/>
20
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
21
- * Released under MIT license <https://lodash.com/license>
22
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
23
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
24
- */(function(){var i="Expected a function",s="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Function]",f="[object GeneratorFunction]",g="[object Map]",v="[object Number]",m="[object Object]",y="[object RegExp]",C="[object Set]",w="[object String]",b="[object Symbol]",E="[object WeakMap]",_="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",D="[object Int16Array]",P="[object Int32Array]",I="[object Uint8Array]",A="[object Uint16Array]",N="[object Uint32Array]",x=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M=/&(?:amp|lt|gt|quot|#39);/g,k=/[&<>"']/g,G=RegExp(M.source),V=RegExp(k.source),j=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(q.source),K=/^\s+|\s+$/g,$=/^\s+/,Q=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oe=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,se=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,pe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",fe="[\\ud800-\\udfff]",ge="["+he+"]",ve="["+de+"]",me="\\d+",ye="[\\u2700-\\u27bf]",Ce="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+he+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",Ee="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Se="(?:"+Ce+"|"+we+")",Te="(?:"+Re+"|"+we+")",De="(?:"+ve+"|"+be+")"+"?",Pe="[\\ufe0e\\ufe0f]?"+De+("(?:\\u200d(?:"+[Ee,_e,Oe].join("|")+")[\\ufe0e\\ufe0f]?"+De+")*"),Ie="(?:"+[ye,_e,Oe].join("|")+")"+Pe,Ae="(?:"+[Ee+ve+"?",ve,_e,Oe,fe].join("|")+")",Ne=RegExp("['’]","g"),xe=RegExp(ve,"g"),Fe=RegExp(be+"(?="+be+")|"+Ae+Pe,"g"),Le=RegExp([Re+"?"+Ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Re,"$"].join("|")+")",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Re+Se,"$"].join("|")+")",Re+"?"+Se+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Re+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Ie].join("|"),"g"),Me=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ge=["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"],Ve=-1,je={};je[R]=je[S]=je[T]=je[D]=je[P]=je[I]=je["[object Uint8ClampedArray]"]=je[A]=je[N]=!0,je[l]=je[u]=je[_]=je[c]=je[O]=je[p]=je[d]=je[h]=je[g]=je[v]=je[m]=je[y]=je[C]=je[w]=je[E]=!1;var We={};We[l]=We[u]=We[_]=We[O]=We[c]=We[p]=We[R]=We[S]=We[T]=We[D]=We[P]=We[g]=We[v]=We[m]=We[y]=We[C]=We[w]=We[b]=We[I]=We["[object Uint8ClampedArray]"]=We[A]=We[N]=!0,We[d]=We[h]=We[E]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,ze=parseInt,Ue="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,Ye=Ue||qe||Function("return this")(),Ke=t&&!t.nodeType&&t,$e=Ke&&"object"==typeof o&&o&&!o.nodeType&&o,Qe=$e&&$e.exports===Ke,Xe=Qe&&Ue.process,Je=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,ot=Je&&Je.isSet,rt=Je&&Je.isTypedArray;function it(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function st(e,t,n,o){for(var r=-1,i=null==e?0:e.length;++r<i;){var s=e[r];t(o,s,n(s),e)}return o}function at(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(!t(e[n],n,e))return!1;return!0}function ct(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var s=e[n];t(s,n,e)&&(i[r++]=s)}return i}function pt(e,t){return!!(null==e?0:e.length)&&bt(e,t,0)>-1}function dt(e,t,n){for(var o=-1,r=null==e?0:e.length;++o<r;)if(n(t,e[o]))return!0;return!1}function ht(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}function ft(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}function gt(e,t,n,o){var r=-1,i=null==e?0:e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function vt(e,t,n,o){var r=null==e?0:e.length;for(o&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function mt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var yt=Rt("length");function Ct(e,t,n){var o;return n(e,(function(e,n,r){if(t(e,n,r))return o=n,!1})),o}function wt(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function bt(e,t,n){return t==t?function(e,t,n){var o=n-1,r=e.length;for(;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):wt(e,_t,n)}function Et(e,t,n,o){for(var r=n-1,i=e.length;++r<i;)if(o(e[r],t))return r;return-1}function _t(e){return e!=e}function Ot(e,t){var n=null==e?0:e.length;return n?Dt(e,t)/n:NaN}function Rt(e){return function(t){return null==t?void 0:t[e]}}function St(e){return function(t){return null==e?void 0:e[t]}}function Tt(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function Dt(e,t){for(var n,o=-1,r=e.length;++o<r;){var i=t(e[o]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Pt(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function It(e){return function(t){return e(t)}}function At(e,t){return ht(t,(function(t){return e[t]}))}function Nt(e,t){return e.has(t)}function xt(e,t){for(var n=-1,o=e.length;++n<o&&bt(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length;n--&&bt(t,e[n],0)>-1;);return n}function Lt(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}var Mt=St({À:"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"}),kt=St({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Gt(e){return"\\"+He[e]}function Vt(e){return Me.test(e)}function jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function Wt(e,t){return function(n){return e(t(n))}}function Ht(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[r++]=n)}return i}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Ut(e){return Vt(e)?function(e){var t=Fe.lastIndex=0;for(;Fe.test(e);)++t;return t}(e):yt(e)}function qt(e){return Vt(e)?function(e){return e.match(Fe)||[]}(e):function(e){return e.split("")}(e)}var Yt=St({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Kt=function e(t){var n,o=(t=null==t?Ye:Kt.defaults(Ye.Object(),t,Kt.pick(Ye,Ge))).Array,r=t.Date,de=t.Error,he=t.Function,fe=t.Math,ge=t.Object,ve=t.RegExp,me=t.String,ye=t.TypeError,Ce=o.prototype,we=he.prototype,be=ge.prototype,Ee=t["__core-js_shared__"],_e=we.toString,Oe=be.hasOwnProperty,Re=0,Se=(n=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Te=be.toString,De=_e.call(ge),Pe=Ye._,Ie=ve("^"+_e.call(Oe).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=Qe?t.Buffer:void 0,Fe=t.Symbol,Me=t.Uint8Array,He=Ae?Ae.allocUnsafe:void 0,Ue=Wt(ge.getPrototypeOf,ge),qe=ge.create,Ke=be.propertyIsEnumerable,$e=Ce.splice,Xe=Fe?Fe.isConcatSpreadable:void 0,Je=Fe?Fe.iterator:void 0,yt=Fe?Fe.toStringTag:void 0,St=function(){try{var e=ei(ge,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Qt=r&&r.now!==Ye.Date.now&&r.now,Xt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Jt=fe.ceil,Zt=fe.floor,en=ge.getOwnPropertySymbols,tn=Ae?Ae.isBuffer:void 0,nn=t.isFinite,on=Ce.join,rn=Wt(ge.keys,ge),sn=fe.max,an=fe.min,ln=r.now,un=t.parseInt,cn=fe.random,pn=Ce.reverse,dn=ei(t,"DataView"),hn=ei(t,"Map"),fn=ei(t,"Promise"),gn=ei(t,"Set"),vn=ei(t,"WeakMap"),mn=ei(ge,"create"),yn=vn&&new vn,Cn={},wn=Ti(dn),bn=Ti(hn),En=Ti(fn),_n=Ti(gn),On=Ti(vn),Rn=Fe?Fe.prototype:void 0,Sn=Rn?Rn.valueOf:void 0,Tn=Rn?Rn.toString:void 0;function Dn(e){if(zs(e)&&!xs(e)&&!(e instanceof Nn)){if(e instanceof An)return e;if(Oe.call(e,"__wrapped__"))return Di(e)}return new An(e)}var Pn=function(){function e(){}return function(t){if(!Bs(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function In(){}function An(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Nn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ln;++t<n;)this.add(e[t])}function kn(e){var t=this.__data__=new Fn(e);this.size=t.size}function Gn(e,t){var n=xs(e),o=!n&&Ns(e),r=!n&&!o&&ks(e),i=!n&&!o&&!r&&Js(e),s=n||o||r||i,a=s?Pt(e.length,me):[],l=a.length;for(var u in e)!t&&!Oe.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ai(u,l))||a.push(u);return a}function Vn(e){var t=e.length;return t?e[ko(0,t-1)]:void 0}function jn(e,t){return Oi(yr(e),$n(t,0,e.length))}function Wn(e){return Oi(yr(e))}function Hn(e,t,n){(void 0!==n&&!Ps(e[t],n)||void 0===n&&!(t in e))&&Yn(e,t,n)}function Bn(e,t,n){var o=e[t];Oe.call(e,t)&&Ps(o,n)&&(void 0!==n||t in e)||Yn(e,t,n)}function zn(e,t){for(var n=e.length;n--;)if(Ps(e[n][0],t))return n;return-1}function Un(e,t,n,o){return eo(e,(function(e,r,i){t(o,e,n(e),i)})),o}function qn(e,t){return e&&Cr(t,wa(t),e)}function Yn(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kn(e,t){for(var n=-1,r=t.length,i=o(r),s=null==e;++n<r;)i[n]=s?void 0:ga(e,t[n]);return i}function $n(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,o,r,i){var s,a=1&t,u=2&t,d=4&t;if(n&&(s=r?n(e,o,r,i):n(e)),void 0!==s)return s;if(!Bs(e))return e;var E=xs(e);if(E){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Oe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!a)return yr(e,s)}else{var x=oi(e),F=x==h||x==f;if(ks(e))return dr(e,a);if(x==m||x==l||F&&!r){if(s=u||F?{}:ii(e),!a)return u?function(e,t){return Cr(e,ni(e),t)}(e,function(e,t){return e&&Cr(t,ba(t),e)}(s,e)):function(e,t){return Cr(e,ti(e),t)}(e,qn(s,e))}else{if(!We[x])return r?e:{};s=function(e,t,n){var o=e.constructor;switch(t){case _:return hr(e);case c:case p:return new o(+e);case O:return function(e,t){var n=t?hr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case S:case T:case D:case P:case I:case"[object Uint8ClampedArray]":case A:case N:return fr(e,n);case g:return new o;case v:case w:return new o(e);case y:return function(e){var t=new e.constructor(e.source,oe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new o;case b:return r=e,Sn?ge(Sn.call(r)):{}}var r}(e,x,a)}}i||(i=new kn);var L=i.get(e);if(L)return L;i.set(e,s),$s(e)?e.forEach((function(o){s.add(Qn(o,t,n,o,e,i))})):Us(e)&&e.forEach((function(o,r){s.set(r,Qn(o,t,n,r,e,i))}));var M=E?void 0:(d?u?Yr:qr:u?ba:wa)(e);return at(M||e,(function(o,r){M&&(o=e[r=o]),Bn(s,r,Qn(o,t,n,r,e,i))})),s}function Xn(e,t,n){var o=n.length;if(null==e)return!o;for(e=ge(e);o--;){var r=n[o],i=t[r],s=e[r];if(void 0===s&&!(r in e)||!i(s))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new ye(i);return wi((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,o){var r=-1,i=pt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=ht(t,It(n))),o?(i=dt,s=!1):t.length>=200&&(i=Nt,s=!1,t=new Mn(t));e:for(;++r<a;){var c=e[r],p=null==n?c:n(c);if(c=o||0!==c?c:0,s&&p==p){for(var d=u;d--;)if(t[d]===p)continue e;l.push(c)}else i(t,p,o)||l.push(c)}return l}Dn.templateSettings={escape:j,evaluate:W,interpolate:H,variable:"",imports:{_:Dn}},Dn.prototype=In.prototype,Dn.prototype.constructor=Dn,An.prototype=Pn(In.prototype),An.prototype.constructor=An,Nn.prototype=Pn(In.prototype),Nn.prototype.constructor=Nn,xn.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},xn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},xn.prototype.get=function(e){var t=this.__data__;if(mn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Oe.call(t,e)?t[e]:void 0},xn.prototype.has=function(e){var t=this.__data__;return mn?void 0!==t[e]:Oe.call(t,e)},xn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mn&&void 0===t?"__lodash_hash_undefined__":t,this},Fn.prototype.clear=function(){this.__data__=[],this.size=0},Fn.prototype.delete=function(e){var t=this.__data__,n=zn(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Fn.prototype.get=function(e){var t=this.__data__,n=zn(t,e);return n<0?void 0:t[n][1]},Fn.prototype.has=function(e){return zn(this.__data__,e)>-1},Fn.prototype.set=function(e,t){var n=this.__data__,o=zn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Ln.prototype.clear=function(){this.size=0,this.__data__={hash:new xn,map:new(hn||Fn),string:new xn}},Ln.prototype.delete=function(e){var t=Jr(this,e).delete(e);return this.size-=t?1:0,t},Ln.prototype.get=function(e){return Jr(this,e).get(e)},Ln.prototype.has=function(e){return Jr(this,e).has(e)},Ln.prototype.set=function(e,t){var n=Jr(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},kn.prototype.clear=function(){this.__data__=new Fn,this.size=0},kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},kn.prototype.get=function(e){return this.__data__.get(e)},kn.prototype.has=function(e){return this.__data__.has(e)},kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Fn){var o=n.__data__;if(!hn||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(o)}return n.set(e,t),this.size=n.size,this};var eo=Er(lo),to=Er(uo,!0);function no(e,t){var n=!0;return eo(e,(function(e,o,r){return n=!!t(e,o,r)})),n}function oo(e,t,n){for(var o=-1,r=e.length;++o<r;){var i=e[o],s=t(i);if(null!=s&&(void 0===a?s==s&&!Xs(s):n(s,a)))var a=s,l=i}return l}function ro(e,t){var n=[];return eo(e,(function(e,o,r){t(e,o,r)&&n.push(e)})),n}function io(e,t,n,o,r){var i=-1,s=e.length;for(n||(n=si),r||(r=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?io(a,t-1,n,o,r):ft(r,a):o||(r[r.length]=a)}return r}var so=_r(),ao=_r(!0);function lo(e,t){return e&&so(e,t,wa)}function uo(e,t){return e&&ao(e,t,wa)}function co(e,t){return ct(t,(function(t){return js(e[t])}))}function po(e,t){for(var n=0,o=(t=lr(t,e)).length;null!=e&&n<o;)e=e[Si(t[n++])];return n&&n==o?e:void 0}function ho(e,t,n){var o=t(e);return xs(e)?o:ft(o,n(e))}function fo(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yt&&yt in ge(e)?function(e){var t=Oe.call(e,yt),n=e[yt];try{e[yt]=void 0;var o=!0}catch(e){}var r=Te.call(e);o&&(t?e[yt]=n:delete e[yt]);return r}(e):function(e){return Te.call(e)}(e)}function go(e,t){return e>t}function vo(e,t){return null!=e&&Oe.call(e,t)}function mo(e,t){return null!=e&&t in ge(e)}function yo(e,t,n){for(var r=n?dt:pt,i=e[0].length,s=e.length,a=s,l=o(s),u=1/0,c=[];a--;){var p=e[a];a&&t&&(p=ht(p,It(t))),u=an(p.length,u),l[a]=!n&&(t||i>=120&&p.length>=120)?new Mn(a&&p):void 0}p=e[0];var d=-1,h=l[0];e:for(;++d<i&&c.length<u;){var f=p[d],g=t?t(f):f;if(f=n||0!==f?f:0,!(h?Nt(h,g):r(c,g,n))){for(a=s;--a;){var v=l[a];if(!(v?Nt(v,g):r(e[a],g,n)))continue e}h&&h.push(g),c.push(f)}}return c}function Co(e,t,n){var o=null==(e=vi(e,t=lr(t,e)))?e:e[Si(Vi(t))];return null==o?void 0:it(o,e,n)}function wo(e){return zs(e)&&fo(e)==l}function bo(e,t,n,o,r){return e===t||(null==e||null==t||!zs(e)&&!zs(t)?e!=e&&t!=t:function(e,t,n,o,r,i){var s=xs(e),a=xs(t),h=s?u:oi(e),f=a?u:oi(t),E=(h=h==l?m:h)==m,R=(f=f==l?m:f)==m,S=h==f;if(S&&ks(e)){if(!ks(t))return!1;s=!0,E=!1}if(S&&!E)return i||(i=new kn),s||Js(e)?zr(e,t,n,o,r,i):function(e,t,n,o,r,i,s){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!i(new Me(e),new Me(t)));case c:case p:case v:return Ps(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case w:return e==t+"";case g:var a=jt;case C:var l=1&o;if(a||(a=Bt),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;o|=2,s.set(e,t);var h=zr(a(e),a(t),o,r,i,s);return s.delete(e),h;case b:if(Sn)return Sn.call(e)==Sn.call(t)}return!1}(e,t,h,n,o,r,i);if(!(1&n)){var T=E&&Oe.call(e,"__wrapped__"),D=R&&Oe.call(t,"__wrapped__");if(T||D){var P=T?e.value():e,I=D?t.value():t;return i||(i=new kn),r(P,I,n,o,i)}}if(!S)return!1;return i||(i=new kn),function(e,t,n,o,r,i){var s=1&n,a=qr(e),l=a.length,u=qr(t).length;if(l!=u&&!s)return!1;var c=l;for(;c--;){var p=a[c];if(!(s?p in t:Oe.call(t,p)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var h=!0;i.set(e,t),i.set(t,e);var f=s;for(;++c<l;){p=a[c];var g=e[p],v=t[p];if(o)var m=s?o(v,g,p,t,e,i):o(g,v,p,e,t,i);if(!(void 0===m?g===v||r(g,v,n,o,i):m)){h=!1;break}f||(f="constructor"==p)}if(h&&!f){var y=e.constructor,C=t.constructor;y==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof C&&C instanceof C||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,o,r,i)}(e,t,n,o,bo,r))}function Eo(e,t,n,o){var r=n.length,i=r,s=!o;if(null==e)return!i;for(e=ge(e);r--;){var a=n[r];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){var l=(a=n[r])[0],u=e[l],c=a[1];if(s&&a[2]){if(void 0===u&&!(l in e))return!1}else{var p=new kn;if(o)var d=o(u,c,l,e,t,p);if(!(void 0===d?bo(c,u,3,o,p):d))return!1}}return!0}function _o(e){return!(!Bs(e)||(t=e,Se&&Se in t))&&(js(e)?Ie:se).test(Ti(e));var t}function Oo(e){return"function"==typeof e?e:null==e?qa:"object"==typeof e?xs(e)?Io(e[0],e[1]):Po(e):tl(e)}function Ro(e){if(!di(e))return rn(e);var t=[];for(var n in ge(e))Oe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function So(e){if(!Bs(e))return function(e){var t=[];if(null!=e)for(var n in ge(e))t.push(n);return t}(e);var t=di(e),n=[];for(var o in e)("constructor"!=o||!t&&Oe.call(e,o))&&n.push(o);return n}function To(e,t){return e<t}function Do(e,t){var n=-1,r=Ls(e)?o(e.length):[];return eo(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Po(e){var t=Zr(e);return 1==t.length&&t[0][2]?fi(t[0][0],t[0][1]):function(n){return n===e||Eo(n,e,t)}}function Io(e,t){return ui(e)&&hi(t)?fi(Si(e),t):function(n){var o=ga(n,e);return void 0===o&&o===t?va(n,e):bo(t,o,3)}}function Ao(e,t,n,o,r){e!==t&&so(t,(function(i,s){if(r||(r=new kn),Bs(i))!function(e,t,n,o,r,i,s){var a=yi(e,n),l=yi(t,n),u=s.get(l);if(u)return void Hn(e,n,u);var c=i?i(a,l,n+"",e,t,s):void 0,p=void 0===c;if(p){var d=xs(l),h=!d&&ks(l),f=!d&&!h&&Js(l);c=l,d||h||f?xs(a)?c=a:Ms(a)?c=yr(a):h?(p=!1,c=dr(l,!0)):f?(p=!1,c=fr(l,!0)):c=[]:Ys(l)||Ns(l)?(c=a,Ns(a)?c=sa(a):Bs(a)&&!js(a)||(c=ii(l))):p=!1}p&&(s.set(l,c),r(c,l,o,i,s),s.delete(l));Hn(e,n,c)}(e,t,s,n,Ao,o,r);else{var a=o?o(yi(e,s),i,s+"",e,t,r):void 0;void 0===a&&(a=i),Hn(e,s,a)}}),ba)}function No(e,t){var n=e.length;if(n)return ai(t+=t<0?n:0,n)?e[t]:void 0}function xo(e,t,n){var o=-1;return t=ht(t.length?t:[qa],It(Xr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Do(e,(function(e,n,r){return{criteria:ht(t,(function(t){return t(e)})),index:++o,value:e}})),(function(e,t){return function(e,t,n){var o=-1,r=e.criteria,i=t.criteria,s=r.length,a=n.length;for(;++o<s;){var l=gr(r[o],i[o]);if(l){if(o>=a)return l;var u=n[o];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Fo(e,t,n){for(var o=-1,r=t.length,i={};++o<r;){var s=t[o],a=po(e,s);n(a,s)&&Ho(i,lr(s,e),a)}return i}function Lo(e,t,n,o){var r=o?Et:bt,i=-1,s=t.length,a=e;for(e===t&&(t=yr(t)),n&&(a=ht(e,It(n)));++i<s;)for(var l=0,u=t[i],c=n?n(u):u;(l=r(a,c,l,o))>-1;)a!==e&&$e.call(a,l,1),$e.call(e,l,1);return e}function Mo(e,t){for(var n=e?t.length:0,o=n-1;n--;){var r=t[n];if(n==o||r!==i){var i=r;ai(r)?$e.call(e,r,1):er(e,r)}}return e}function ko(e,t){return e+Zt(cn()*(t-e+1))}function Go(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Vo(e,t){return bi(gi(e,t,qa),e+"")}function jo(e){return Vn(Pa(e))}function Wo(e,t){var n=Pa(e);return Oi(n,$n(t,0,n.length))}function Ho(e,t,n,o){if(!Bs(e))return e;for(var r=-1,i=(t=lr(t,e)).length,s=i-1,a=e;null!=a&&++r<i;){var l=Si(t[r]),u=n;if(r!=s){var c=a[l];void 0===(u=o?o(c,l,a):void 0)&&(u=Bs(c)?c:ai(t[r+1])?[]:{})}Bn(a,l,u),a=a[l]}return e}var Bo=yn?function(e,t){return yn.set(e,t),e}:qa,zo=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:Ba(t),writable:!0})}:qa;function Uo(e){return Oi(Pa(e))}function qo(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=o(i);++r<i;)s[r]=e[r+t];return s}function Yo(e,t){var n;return eo(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}function Ko(e,t,n){var o=0,r=null==e?o:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;o<r;){var i=o+r>>>1,s=e[i];null!==s&&!Xs(s)&&(n?s<=t:s<t)?o=i+1:r=i}return r}return $o(e,t,qa,n)}function $o(e,t,n,o){t=n(t);for(var r=0,i=null==e?0:e.length,s=t!=t,a=null===t,l=Xs(t),u=void 0===t;r<i;){var c=Zt((r+i)/2),p=n(e[c]),d=void 0!==p,h=null===p,f=p==p,g=Xs(p);if(s)var v=o||f;else v=u?f&&(o||d):a?f&&d&&(o||!h):l?f&&d&&!h&&(o||!g):!h&&!g&&(o?p<=t:p<t);v?r=c+1:i=c}return an(i,4294967294)}function Qo(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var s=e[n],a=t?t(s):s;if(!n||!Ps(a,l)){var l=a;i[r++]=0===s?0:s}}return i}function Xo(e){return"number"==typeof e?e:Xs(e)?NaN:+e}function Jo(e){if("string"==typeof e)return e;if(xs(e))return ht(e,Jo)+"";if(Xs(e))return Tn?Tn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zo(e,t,n){var o=-1,r=pt,i=e.length,s=!0,a=[],l=a;if(n)s=!1,r=dt;else if(i>=200){var u=t?null:Gr(e);if(u)return Bt(u);s=!1,r=Nt,l=new Mn}else l=t?[]:a;e:for(;++o<i;){var c=e[o],p=t?t(c):c;if(c=n||0!==c?c:0,s&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue e;t&&l.push(p),a.push(c)}else r(l,p,n)||(l!==a&&l.push(p),a.push(c))}return a}function er(e,t){return null==(e=vi(e,t=lr(t,e)))||delete e[Si(Vi(t))]}function tr(e,t,n,o){return Ho(e,t,n(po(e,t)),o)}function nr(e,t,n,o){for(var r=e.length,i=o?r:-1;(o?i--:++i<r)&&t(e[i],i,e););return n?qo(e,o?0:i,o?i+1:r):qo(e,o?i+1:0,o?r:i)}function or(e,t){var n=e;return n instanceof Nn&&(n=n.value()),gt(t,(function(e,t){return t.func.apply(t.thisArg,ft([e],t.args))}),n)}function rr(e,t,n){var r=e.length;if(r<2)return r?Zo(e[0]):[];for(var i=-1,s=o(r);++i<r;)for(var a=e[i],l=-1;++l<r;)l!=i&&(s[i]=Zn(s[i]||a,e[l],t,n));return Zo(io(s,1),t,n)}function ir(e,t,n){for(var o=-1,r=e.length,i=t.length,s={};++o<r;){var a=o<i?t[o]:void 0;n(s,e[o],a)}return s}function sr(e){return Ms(e)?e:[]}function ar(e){return"function"==typeof e?e:qa}function lr(e,t){return xs(e)?e:ui(e,t)?[e]:Ri(aa(e))}var ur=Vo;function cr(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:qo(e,t,n)}var pr=$t||function(e){return Ye.clearTimeout(e)};function dr(e,t){if(t)return e.slice();var n=e.length,o=He?He(n):new e.constructor(n);return e.copy(o),o}function hr(e){var t=new e.constructor(e.byteLength);return new Me(t).set(new Me(e)),t}function fr(e,t){var n=t?hr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gr(e,t){if(e!==t){var n=void 0!==e,o=null===e,r=e==e,i=Xs(e),s=void 0!==t,a=null===t,l=t==t,u=Xs(t);if(!a&&!u&&!i&&e>t||i&&s&&l&&!a&&!u||o&&s&&l||!n&&l||!r)return 1;if(!o&&!i&&!u&&e<t||u&&n&&r&&!o&&!i||a&&n&&r||!s&&r||!l)return-1}return 0}function vr(e,t,n,r){for(var i=-1,s=e.length,a=n.length,l=-1,u=t.length,c=sn(s-a,0),p=o(u+c),d=!r;++l<u;)p[l]=t[l];for(;++i<a;)(d||i<s)&&(p[n[i]]=e[i]);for(;c--;)p[l++]=e[i++];return p}function mr(e,t,n,r){for(var i=-1,s=e.length,a=-1,l=n.length,u=-1,c=t.length,p=sn(s-l,0),d=o(p+c),h=!r;++i<p;)d[i]=e[i];for(var f=i;++u<c;)d[f+u]=t[u];for(;++a<l;)(h||i<s)&&(d[f+n[a]]=e[i++]);return d}function yr(e,t){var n=-1,r=e.length;for(t||(t=o(r));++n<r;)t[n]=e[n];return t}function Cr(e,t,n,o){var r=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=o?o(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),r?Yn(n,a,l):Bn(n,a,l)}return n}function wr(e,t){return function(n,o){var r=xs(n)?st:Un,i=t?t():{};return r(n,e,Xr(o,2),i)}}function br(e){return Vo((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,s&&li(n[0],n[1],s)&&(i=r<3?void 0:i,r=1),t=ge(t);++o<r;){var a=n[o];a&&e(t,a,o,i)}return t}))}function Er(e,t){return function(n,o){if(null==n)return n;if(!Ls(n))return e(n,o);for(var r=n.length,i=t?r:-1,s=ge(n);(t?i--:++i<r)&&!1!==o(s[i],i,s););return n}}function _r(e){return function(t,n,o){for(var r=-1,i=ge(t),s=o(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(i[l],l,i))break}return t}}function Or(e){return function(t){var n=Vt(t=aa(t))?qt(t):void 0,o=n?n[0]:t.charAt(0),r=n?cr(n,1).join(""):t.slice(1);return o[e]()+r}}function Rr(e){return function(t){return gt(ja(Na(t).replace(Ne,"")),e,"")}}function Sr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Pn(e.prototype),o=e.apply(n,t);return Bs(o)?o:n}}function Tr(e){return function(t,n,o){var r=ge(t);if(!Ls(t)){var i=Xr(n,3);t=wa(t),n=function(e){return i(r[e],e,r)}}var s=e(t,n,o);return s>-1?r[i?t[s]:s]:void 0}}function Dr(e){return Ur((function(t){var n=t.length,o=n,r=An.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new ye(i);if(r&&!a&&"wrapper"==$r(s))var a=new An([],!0)}for(o=a?o:n;++o<n;){var l=$r(s=t[o]),u="wrapper"==l?Kr(s):void 0;a=u&&ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[$r(u[0])].apply(a,u[3]):1==s.length&&ci(s)?a[l]():a.thru(s)}return function(){var e=arguments,o=e[0];if(a&&1==e.length&&xs(o))return a.plant(o).value();for(var r=0,i=n?t[r].apply(this,e):o;++r<n;)i=t[r].call(this,i);return i}}))}function Pr(e,t,n,r,i,s,a,l,u,c){var p=128&t,d=1&t,h=2&t,f=24&t,g=512&t,v=h?void 0:Sr(e);return function m(){for(var y=arguments.length,C=o(y),w=y;w--;)C[w]=arguments[w];if(f)var b=Qr(m),E=Lt(C,b);if(r&&(C=vr(C,r,i,f)),s&&(C=mr(C,s,a,f)),y-=E,f&&y<c){var _=Ht(C,b);return Mr(e,t,Pr,m.placeholder,n,C,_,l,u,c-y)}var O=d?n:this,R=h?O[e]:e;return y=C.length,l?C=mi(C,l):g&&y>1&&C.reverse(),p&&u<y&&(C.length=u),this&&this!==Ye&&this instanceof m&&(R=v||Sr(R)),R.apply(O,C)}}function Ir(e,t){return function(n,o){return function(e,t,n,o){return lo(e,(function(e,r,i){t(o,n(e),r,i)})),o}(n,e,t(o),{})}}function Ar(e,t){return function(n,o){var r;if(void 0===n&&void 0===o)return t;if(void 0!==n&&(r=n),void 0!==o){if(void 0===r)return o;"string"==typeof n||"string"==typeof o?(n=Jo(n),o=Jo(o)):(n=Xo(n),o=Xo(o)),r=e(n,o)}return r}}function Nr(e){return Ur((function(t){return t=ht(t,It(Xr())),Vo((function(n){var o=this;return e(t,(function(e){return it(e,o,n)}))}))}))}function xr(e,t){var n=(t=void 0===t?" ":Jo(t)).length;if(n<2)return n?Go(t,e):t;var o=Go(t,Jt(e/Ut(t)));return Vt(t)?cr(qt(o),0,e).join(""):o.slice(0,e)}function Fr(e){return function(t,n,r){return r&&"number"!=typeof r&&li(t,n,r)&&(n=r=void 0),t=na(t),void 0===n?(n=t,t=0):n=na(n),function(e,t,n,r){for(var i=-1,s=sn(Jt((t-e)/(n||1)),0),a=o(s);s--;)a[r?s:++i]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:na(r),e)}}function Lr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ia(t),n=ia(n)),e(t,n)}}function Mr(e,t,n,o,r,i,s,a,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var p=[e,t,r,c?i:void 0,c?s:void 0,c?void 0:i,c?void 0:s,a,l,u],d=n.apply(void 0,p);return ci(e)&&Ci(d,p),d.placeholder=o,Ei(d,e,t)}function kr(e){var t=fe[e];return function(e,n){if(e=ia(e),(n=null==n?0:an(oa(n),292))&&nn(e)){var o=(aa(e)+"e").split("e");return+((o=(aa(t(o[0]+"e"+(+o[1]+n)))+"e").split("e"))[0]+"e"+(+o[1]-n))}return t(e)}}var Gr=gn&&1/Bt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Xa;function Vr(e){return function(t){var n=oi(t);return n==g?jt(t):n==C?zt(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function jr(e,t,n,r,a,l,u,c){var p=2&t;if(!p&&"function"!=typeof e)throw new ye(i);var d=r?r.length:0;if(d||(t&=-97,r=a=void 0),u=void 0===u?u:sn(oa(u),0),c=void 0===c?c:oa(c),d-=a?a.length:0,64&t){var h=r,f=a;r=a=void 0}var g=p?void 0:Kr(e),v=[e,t,n,r,a,h,f,l,u,c];if(g&&function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,a=128==o&&8==n||128==o&&256==n&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?vr(u,l,t[4]):l,e[4]=u?Ht(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?mr(u,l,t[6]):l,e[6]=u?Ht(e[5],s):t[6]);(l=t[7])&&(e[7]=l);128&o&&(e[8]=null==e[8]?t[8]:an(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(v,g),e=v[0],t=v[1],n=v[2],r=v[3],a=v[4],!(c=v[9]=void 0===v[9]?p?0:e.length:sn(v[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||16==t?function(e,t,n){var r=Sr(e);return function i(){for(var s=arguments.length,a=o(s),l=s,u=Qr(i);l--;)a[l]=arguments[l];var c=s<3&&a[0]!==u&&a[s-1]!==u?[]:Ht(a,u);if((s-=c.length)<n)return Mr(e,t,Pr,i.placeholder,void 0,a,c,void 0,void 0,n-s);var p=this&&this!==Ye&&this instanceof i?r:e;return it(p,this,a)}}(e,t,c):32!=t&&33!=t||a.length?Pr.apply(void 0,v):function(e,t,n,r){var i=1&t,s=Sr(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=r.length,p=o(c+l),d=this&&this!==Ye&&this instanceof t?s:e;++u<c;)p[u]=r[u];for(;l--;)p[u++]=arguments[++a];return it(d,i?n:this,p)}}(e,t,n,r);else var m=function(e,t,n){var o=1&t,r=Sr(e);return function t(){var i=this&&this!==Ye&&this instanceof t?r:e;return i.apply(o?n:this,arguments)}}(e,t,n);return Ei((g?Bo:Ci)(m,v),e,t)}function Wr(e,t,n,o){return void 0===e||Ps(e,be[n])&&!Oe.call(o,n)?t:e}function Hr(e,t,n,o,r,i){return Bs(e)&&Bs(t)&&(i.set(t,e),Ao(e,t,void 0,Hr,i),i.delete(t)),e}function Br(e){return Ys(e)?void 0:e}function zr(e,t,n,o,r,i){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=i.get(e);if(u&&i.get(t))return u==t;var c=-1,p=!0,d=2&n?new Mn:void 0;for(i.set(e,t),i.set(t,e);++c<a;){var h=e[c],f=t[c];if(o)var g=s?o(f,h,c,t,e,i):o(h,f,c,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!mt(t,(function(e,t){if(!Nt(d,t)&&(h===e||r(h,e,n,o,i)))return d.push(t)}))){p=!1;break}}else if(h!==f&&!r(h,f,n,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Ur(e){return bi(gi(e,void 0,Fi),e+"")}function qr(e){return ho(e,wa,ti)}function Yr(e){return ho(e,ba,ni)}var Kr=yn?function(e){return yn.get(e)}:Xa;function $r(e){for(var t=e.name+"",n=Cn[t],o=Oe.call(Cn,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t}function Qr(e){return(Oe.call(Dn,"placeholder")?Dn:e).placeholder}function Xr(){var e=Dn.iteratee||Ya;return e=e===Ya?Oo:e,arguments.length?e(arguments[0],arguments[1]):e}function Jr(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Zr(e){for(var t=wa(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,hi(r)]}return t}function ei(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return _o(n)?n:void 0}var ti=en?function(e){return null==e?[]:(e=ge(e),ct(en(e),(function(t){return Ke.call(e,t)})))}:rl,ni=en?function(e){for(var t=[];e;)ft(t,ti(e)),e=Ue(e);return t}:rl,oi=fo;function ri(e,t,n){for(var o=-1,r=(t=lr(t,e)).length,i=!1;++o<r;){var s=Si(t[o]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&Hs(r)&&ai(s,r)&&(xs(e)||Ns(e))}function ii(e){return"function"!=typeof e.constructor||di(e)?{}:Pn(Ue(e))}function si(e){return xs(e)||Ns(e)||!!(Xe&&e&&e[Xe])}function ai(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function li(e,t,n){if(!Bs(n))return!1;var o=typeof t;return!!("number"==o?Ls(n)&&ai(t,n.length):"string"==o&&t in n)&&Ps(n[t],e)}function ui(e,t){if(xs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xs(e))||(z.test(e)||!B.test(e)||null!=t&&e in ge(t))}function ci(e){var t=$r(e),n=Dn[t];if("function"!=typeof n||!(t in Nn.prototype))return!1;if(e===n)return!0;var o=Kr(n);return!!o&&e===o[0]}(dn&&oi(new dn(new ArrayBuffer(1)))!=O||hn&&oi(new hn)!=g||fn&&"[object Promise]"!=oi(fn.resolve())||gn&&oi(new gn)!=C||vn&&oi(new vn)!=E)&&(oi=function(e){var t=fo(e),n=t==m?e.constructor:void 0,o=n?Ti(n):"";if(o)switch(o){case wn:return O;case bn:return g;case En:return"[object Promise]";case _n:return C;case On:return E}return t});var pi=Ee?js:il;function di(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||be)}function hi(e){return e==e&&!Bs(e)}function fi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in ge(n)))}}function gi(e,t,n){return t=sn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=sn(r.length-t,0),a=o(s);++i<s;)a[i]=r[t+i];i=-1;for(var l=o(t+1);++i<t;)l[i]=r[i];return l[t]=n(a),it(e,this,l)}}function vi(e,t){return t.length<2?e:po(e,qo(t,0,-1))}function mi(e,t){for(var n=e.length,o=an(t.length,n),r=yr(e);o--;){var i=t[o];e[o]=ai(i,n)?r[i]:void 0}return e}function yi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ci=_i(Bo),wi=Xt||function(e,t){return Ye.setTimeout(e,t)},bi=_i(zo);function Ei(e,t,n){var o=t+"";return bi(e,function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return at(a,(function(n){var o="_."+n[0];t&n[1]&&!pt(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(o),n)))}function _i(e){var t=0,n=0;return function(){var o=ln(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Oi(e,t){var n=-1,o=e.length,r=o-1;for(t=void 0===t?o:t;++n<t;){var i=ko(n,r),s=e[i];e[i]=e[n],e[n]=s}return e.length=t,e}var Ri=function(e){var t=_s(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(U,(function(e,n,o,r){t.push(o?r.replace(te,"$1"):n||e)})),t}));function Si(e){if("string"==typeof e||Xs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ti(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Di(e){if(e instanceof Nn)return e.clone();var t=new An(e.__wrapped__,e.__chain__);return t.__actions__=yr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Pi=Vo((function(e,t){return Ms(e)?Zn(e,io(t,1,Ms,!0)):[]})),Ii=Vo((function(e,t){var n=Vi(t);return Ms(n)&&(n=void 0),Ms(e)?Zn(e,io(t,1,Ms,!0),Xr(n,2)):[]})),Ai=Vo((function(e,t){var n=Vi(t);return Ms(n)&&(n=void 0),Ms(e)?Zn(e,io(t,1,Ms,!0),void 0,n):[]}));function Ni(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:oa(n);return r<0&&(r=sn(o+r,0)),wt(e,Xr(t,3),r)}function xi(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=o-1;return void 0!==n&&(r=oa(n),r=n<0?sn(o+r,0):an(r,o-1)),wt(e,Xr(t,3),r,!0)}function Fi(e){return(null==e?0:e.length)?io(e,1):[]}function Li(e){return e&&e.length?e[0]:void 0}var Mi=Vo((function(e){var t=ht(e,sr);return t.length&&t[0]===e[0]?yo(t):[]})),ki=Vo((function(e){var t=Vi(e),n=ht(e,sr);return t===Vi(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yo(n,Xr(t,2)):[]})),Gi=Vo((function(e){var t=Vi(e),n=ht(e,sr);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yo(n,void 0,t):[]}));function Vi(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var ji=Vo(Wi);function Wi(e,t){return e&&e.length&&t&&t.length?Lo(e,t):e}var Hi=Ur((function(e,t){var n=null==e?0:e.length,o=Kn(e,t);return Mo(e,ht(t,(function(e){return ai(e,n)?+e:e})).sort(gr)),o}));function Bi(e){return null==e?e:pn.call(e)}var zi=Vo((function(e){return Zo(io(e,1,Ms,!0))})),Ui=Vo((function(e){var t=Vi(e);return Ms(t)&&(t=void 0),Zo(io(e,1,Ms,!0),Xr(t,2))})),qi=Vo((function(e){var t=Vi(e);return t="function"==typeof t?t:void 0,Zo(io(e,1,Ms,!0),void 0,t)}));function Yi(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(Ms(e))return t=sn(e.length,t),!0})),Pt(t,(function(t){return ht(e,Rt(t))}))}function Ki(e,t){if(!e||!e.length)return[];var n=Yi(e);return null==t?n:ht(n,(function(e){return it(t,void 0,e)}))}var $i=Vo((function(e,t){return Ms(e)?Zn(e,t):[]})),Qi=Vo((function(e){return rr(ct(e,Ms))})),Xi=Vo((function(e){var t=Vi(e);return Ms(t)&&(t=void 0),rr(ct(e,Ms),Xr(t,2))})),Ji=Vo((function(e){var t=Vi(e);return t="function"==typeof t?t:void 0,rr(ct(e,Ms),void 0,t)})),Zi=Vo(Yi);var es=Vo((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ki(e,n)}));function ts(e){var t=Dn(e);return t.__chain__=!0,t}function ns(e,t){return t(e)}var os=Ur((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,r=function(t){return Kn(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Nn&&ai(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:ns,args:[r],thisArg:void 0}),new An(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(r)}));var rs=wr((function(e,t,n){Oe.call(e,n)?++e[n]:Yn(e,n,1)}));var is=Tr(Ni),ss=Tr(xi);function as(e,t){return(xs(e)?at:eo)(e,Xr(t,3))}function ls(e,t){return(xs(e)?lt:to)(e,Xr(t,3))}var us=wr((function(e,t,n){Oe.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var cs=Vo((function(e,t,n){var r=-1,i="function"==typeof t,s=Ls(e)?o(e.length):[];return eo(e,(function(e){s[++r]=i?it(t,e,n):Co(e,t,n)})),s})),ps=wr((function(e,t,n){Yn(e,n,t)}));function ds(e,t){return(xs(e)?ht:Do)(e,Xr(t,3))}var hs=wr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var fs=Vo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&li(e,t[0],t[1])?t=[]:n>2&&li(t[0],t[1],t[2])&&(t=[t[0]]),xo(e,io(t,1),[])})),gs=Qt||function(){return Ye.Date.now()};function vs(e,t,n){return t=n?void 0:t,jr(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ms(e,t){var n;if("function"!=typeof t)throw new ye(i);return e=oa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ys=Vo((function(e,t,n){var o=1;if(n.length){var r=Ht(n,Qr(ys));o|=32}return jr(e,o,t,n,r)})),Cs=Vo((function(e,t,n){var o=3;if(n.length){var r=Ht(n,Qr(Cs));o|=32}return jr(t,o,e,n,r)}));function ws(e,t,n){var o,r,s,a,l,u,c=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ye(i);function f(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function g(e){return c=e,l=wi(m,t),p?f(e):a}function v(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-c>=s}function m(){var e=gs();if(v(e))return y(e);l=wi(m,function(e){var n=t-(e-u);return d?an(n,s-(e-c)):n}(e))}function y(e){return l=void 0,h&&o?f(e):(o=r=void 0,a)}function C(){var e=gs(),n=v(e);if(o=arguments,r=this,u=e,n){if(void 0===l)return g(u);if(d)return pr(l),l=wi(m,t),f(u)}return void 0===l&&(l=wi(m,t)),a}return t=ia(t)||0,Bs(n)&&(p=!!n.leading,s=(d="maxWait"in n)?sn(ia(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),C.cancel=function(){void 0!==l&&pr(l),c=0,o=u=r=l=void 0},C.flush=function(){return void 0===l?a:y(gs())},C}var bs=Vo((function(e,t){return Jn(e,1,t)})),Es=Vo((function(e,t,n){return Jn(e,ia(t)||0,n)}));function _s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(i);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(_s.Cache||Ln),n}function Os(e){if("function"!=typeof e)throw new ye(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}_s.Cache=Ln;var Rs=ur((function(e,t){var n=(t=1==t.length&&xs(t[0])?ht(t[0],It(Xr())):ht(io(t,1),It(Xr()))).length;return Vo((function(o){for(var r=-1,i=an(o.length,n);++r<i;)o[r]=t[r].call(this,o[r]);return it(e,this,o)}))})),Ss=Vo((function(e,t){return jr(e,32,void 0,t,Ht(t,Qr(Ss)))})),Ts=Vo((function(e,t){return jr(e,64,void 0,t,Ht(t,Qr(Ts)))})),Ds=Ur((function(e,t){return jr(e,256,void 0,void 0,void 0,t)}));function Ps(e,t){return e===t||e!=e&&t!=t}var Is=Lr(go),As=Lr((function(e,t){return e>=t})),Ns=wo(function(){return arguments}())?wo:function(e){return zs(e)&&Oe.call(e,"callee")&&!Ke.call(e,"callee")},xs=o.isArray,Fs=Ze?It(Ze):function(e){return zs(e)&&fo(e)==_};function Ls(e){return null!=e&&Hs(e.length)&&!js(e)}function Ms(e){return zs(e)&&Ls(e)}var ks=tn||il,Gs=et?It(et):function(e){return zs(e)&&fo(e)==p};function Vs(e){if(!zs(e))return!1;var t=fo(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ys(e)}function js(e){if(!Bs(e))return!1;var t=fo(e);return t==h||t==f||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ws(e){return"number"==typeof e&&e==oa(e)}function Hs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Bs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function zs(e){return null!=e&&"object"==typeof e}var Us=tt?It(tt):function(e){return zs(e)&&oi(e)==g};function qs(e){return"number"==typeof e||zs(e)&&fo(e)==v}function Ys(e){if(!zs(e)||fo(e)!=m)return!1;var t=Ue(e);if(null===t)return!0;var n=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_e.call(n)==De}var Ks=nt?It(nt):function(e){return zs(e)&&fo(e)==y};var $s=ot?It(ot):function(e){return zs(e)&&oi(e)==C};function Qs(e){return"string"==typeof e||!xs(e)&&zs(e)&&fo(e)==w}function Xs(e){return"symbol"==typeof e||zs(e)&&fo(e)==b}var Js=rt?It(rt):function(e){return zs(e)&&Hs(e.length)&&!!je[fo(e)]};var Zs=Lr(To),ea=Lr((function(e,t){return e<=t}));function ta(e){if(!e)return[];if(Ls(e))return Qs(e)?qt(e):yr(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=oi(e);return(t==g?jt:t==C?Bt:Pa)(e)}function na(e){return e?(e=ia(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function oa(e){var t=na(e),n=t%1;return t==t?n?t-n:t:0}function ra(e){return e?$n(oa(e),0,4294967295):0}function ia(e){if("number"==typeof e)return e;if(Xs(e))return NaN;if(Bs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(K,"");var n=ie.test(e);return n||ae.test(e)?ze(e.slice(2),n?2:8):re.test(e)?NaN:+e}function sa(e){return Cr(e,ba(e))}function aa(e){return null==e?"":Jo(e)}var la=br((function(e,t){if(di(t)||Ls(t))Cr(t,wa(t),e);else for(var n in t)Oe.call(t,n)&&Bn(e,n,t[n])})),ua=br((function(e,t){Cr(t,ba(t),e)})),ca=br((function(e,t,n,o){Cr(t,ba(t),e,o)})),pa=br((function(e,t,n,o){Cr(t,wa(t),e,o)})),da=Ur(Kn);var ha=Vo((function(e,t){e=ge(e);var n=-1,o=t.length,r=o>2?t[2]:void 0;for(r&&li(t[0],t[1],r)&&(o=1);++n<o;)for(var i=t[n],s=ba(i),a=-1,l=s.length;++a<l;){var u=s[a],c=e[u];(void 0===c||Ps(c,be[u])&&!Oe.call(e,u))&&(e[u]=i[u])}return e})),fa=Vo((function(e){return e.push(void 0,Hr),it(_a,void 0,e)}));function ga(e,t,n){var o=null==e?void 0:po(e,t);return void 0===o?n:o}function va(e,t){return null!=e&&ri(e,t,mo)}var ma=Ir((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),e[t]=n}),Ba(qa)),ya=Ir((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),Oe.call(e,t)?e[t].push(n):e[t]=[n]}),Xr),Ca=Vo(Co);function wa(e){return Ls(e)?Gn(e):Ro(e)}function ba(e){return Ls(e)?Gn(e,!0):So(e)}var Ea=br((function(e,t,n){Ao(e,t,n)})),_a=br((function(e,t,n,o){Ao(e,t,n,o)})),Oa=Ur((function(e,t){var n={};if(null==e)return n;var o=!1;t=ht(t,(function(t){return t=lr(t,e),o||(o=t.length>1),t})),Cr(e,Yr(e),n),o&&(n=Qn(n,7,Br));for(var r=t.length;r--;)er(n,t[r]);return n}));var Ra=Ur((function(e,t){return null==e?{}:function(e,t){return Fo(e,t,(function(t,n){return va(e,n)}))}(e,t)}));function Sa(e,t){if(null==e)return{};var n=ht(Yr(e),(function(e){return[e]}));return t=Xr(t),Fo(e,n,(function(e,n){return t(e,n[0])}))}var Ta=Vr(wa),Da=Vr(ba);function Pa(e){return null==e?[]:At(e,wa(e))}var Ia=Rr((function(e,t,n){return t=t.toLowerCase(),e+(n?Aa(t):t)}));function Aa(e){return Va(aa(e).toLowerCase())}function Na(e){return(e=aa(e))&&e.replace(ue,Mt).replace(xe,"")}var xa=Rr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Fa=Rr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),La=Or("toLowerCase");var Ma=Rr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var ka=Rr((function(e,t,n){return e+(n?" ":"")+Va(t)}));var Ga=Rr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Va=Or("toUpperCase");function ja(e,t,n){return e=aa(e),void 0===(t=n?void 0:t)?function(e){return ke.test(e)}(e)?function(e){return e.match(Le)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Wa=Vo((function(e,t){try{return it(e,void 0,t)}catch(e){return Vs(e)?e:new de(e)}})),Ha=Ur((function(e,t){return at(t,(function(t){t=Si(t),Yn(e,t,ys(e[t],e))})),e}));function Ba(e){return function(){return e}}var za=Dr(),Ua=Dr(!0);function qa(e){return e}function Ya(e){return Oo("function"==typeof e?e:Qn(e,1))}var Ka=Vo((function(e,t){return function(n){return Co(n,e,t)}})),$a=Vo((function(e,t){return function(n){return Co(e,n,t)}}));function Qa(e,t,n){var o=wa(t),r=co(t,o);null!=n||Bs(t)&&(r.length||!o.length)||(n=t,t=e,e=this,r=co(t,wa(t)));var i=!(Bs(n)&&"chain"in n&&!n.chain),s=js(e);return at(r,(function(n){var o=t[n];e[n]=o,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),r=n.__actions__=yr(this.__actions__);return r.push({func:o,args:arguments,thisArg:e}),n.__chain__=t,n}return o.apply(e,ft([this.value()],arguments))})})),e}function Xa(){}var Ja=Nr(ht),Za=Nr(ut),el=Nr(mt);function tl(e){return ui(e)?Rt(Si(e)):function(e){return function(t){return po(t,e)}}(e)}var nl=Fr(),ol=Fr(!0);function rl(){return[]}function il(){return!1}var sl=Ar((function(e,t){return e+t}),0),al=kr("ceil"),ll=Ar((function(e,t){return e/t}),1),ul=kr("floor");var cl,pl=Ar((function(e,t){return e*t}),1),dl=kr("round"),hl=Ar((function(e,t){return e-t}),0);return Dn.after=function(e,t){if("function"!=typeof t)throw new ye(i);return e=oa(e),function(){if(--e<1)return t.apply(this,arguments)}},Dn.ary=vs,Dn.assign=la,Dn.assignIn=ua,Dn.assignInWith=ca,Dn.assignWith=pa,Dn.at=da,Dn.before=ms,Dn.bind=ys,Dn.bindAll=Ha,Dn.bindKey=Cs,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return xs(e)?e:[e]},Dn.chain=ts,Dn.chunk=function(e,t,n){t=(n?li(e,t,n):void 0===t)?1:sn(oa(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,s=0,a=o(Jt(r/t));i<r;)a[s++]=qo(e,i,i+=t);return a},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=o(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return ft(xs(n)?yr(n):[n],io(t,1))},Dn.cond=function(e){var t=null==e?0:e.length,n=Xr();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new ye(i);return[n(e[0]),e[1]]})):[],Vo((function(n){for(var o=-1;++o<t;){var r=e[o];if(it(r[0],this,n))return it(r[1],this,n)}}))},Dn.conforms=function(e){return function(e){var t=wa(e);return function(n){return Xn(n,e,t)}}(Qn(e,1))},Dn.constant=Ba,Dn.countBy=rs,Dn.create=function(e,t){var n=Pn(e);return null==t?n:qn(n,t)},Dn.curry=function e(t,n,o){var r=jr(t,8,void 0,void 0,void 0,void 0,void 0,n=o?void 0:n);return r.placeholder=e.placeholder,r},Dn.curryRight=function e(t,n,o){var r=jr(t,16,void 0,void 0,void 0,void 0,void 0,n=o?void 0:n);return r.placeholder=e.placeholder,r},Dn.debounce=ws,Dn.defaults=ha,Dn.defaultsDeep=fa,Dn.defer=bs,Dn.delay=Es,Dn.difference=Pi,Dn.differenceBy=Ii,Dn.differenceWith=Ai,Dn.drop=function(e,t,n){var o=null==e?0:e.length;return o?qo(e,(t=n||void 0===t?1:oa(t))<0?0:t,o):[]},Dn.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?qo(e,0,(t=o-(t=n||void 0===t?1:oa(t)))<0?0:t):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!0):[]},Dn.fill=function(e,t,n,o){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&li(e,t,n)&&(n=0,o=r),function(e,t,n,o){var r=e.length;for((n=oa(n))<0&&(n=-n>r?0:r+n),(o=void 0===o||o>r?r:oa(o))<0&&(o+=r),o=n>o?0:ra(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},Dn.filter=function(e,t){return(xs(e)?ct:ro)(e,Xr(t,3))},Dn.flatMap=function(e,t){return io(ds(e,t),1)},Dn.flatMapDeep=function(e,t){return io(ds(e,t),1/0)},Dn.flatMapDepth=function(e,t,n){return n=void 0===n?1:oa(n),io(ds(e,t),n)},Dn.flatten=Fi,Dn.flattenDeep=function(e){return(null==e?0:e.length)?io(e,1/0):[]},Dn.flattenDepth=function(e,t){return(null==e?0:e.length)?io(e,t=void 0===t?1:oa(t)):[]},Dn.flip=function(e){return jr(e,512)},Dn.flow=za,Dn.flowRight=Ua,Dn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o},Dn.functions=function(e){return null==e?[]:co(e,wa(e))},Dn.functionsIn=function(e){return null==e?[]:co(e,ba(e))},Dn.groupBy=us,Dn.initial=function(e){return(null==e?0:e.length)?qo(e,0,-1):[]},Dn.intersection=Mi,Dn.intersectionBy=ki,Dn.intersectionWith=Gi,Dn.invert=ma,Dn.invertBy=ya,Dn.invokeMap=cs,Dn.iteratee=Ya,Dn.keyBy=ps,Dn.keys=wa,Dn.keysIn=ba,Dn.map=ds,Dn.mapKeys=function(e,t){var n={};return t=Xr(t,3),lo(e,(function(e,o,r){Yn(n,t(e,o,r),e)})),n},Dn.mapValues=function(e,t){var n={};return t=Xr(t,3),lo(e,(function(e,o,r){Yn(n,o,t(e,o,r))})),n},Dn.matches=function(e){return Po(Qn(e,1))},Dn.matchesProperty=function(e,t){return Io(e,Qn(t,1))},Dn.memoize=_s,Dn.merge=Ea,Dn.mergeWith=_a,Dn.method=Ka,Dn.methodOf=$a,Dn.mixin=Qa,Dn.negate=Os,Dn.nthArg=function(e){return e=oa(e),Vo((function(t){return No(t,e)}))},Dn.omit=Oa,Dn.omitBy=function(e,t){return Sa(e,Os(Xr(t)))},Dn.once=function(e){return ms(2,e)},Dn.orderBy=function(e,t,n,o){return null==e?[]:(xs(t)||(t=null==t?[]:[t]),xs(n=o?void 0:n)||(n=null==n?[]:[n]),xo(e,t,n))},Dn.over=Ja,Dn.overArgs=Rs,Dn.overEvery=Za,Dn.overSome=el,Dn.partial=Ss,Dn.partialRight=Ts,Dn.partition=hs,Dn.pick=Ra,Dn.pickBy=Sa,Dn.property=tl,Dn.propertyOf=function(e){return function(t){return null==e?void 0:po(e,t)}},Dn.pull=ji,Dn.pullAll=Wi,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Lo(e,t,Xr(n,2)):e},Dn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Lo(e,t,void 0,n):e},Dn.pullAt=Hi,Dn.range=nl,Dn.rangeRight=ol,Dn.rearg=Ds,Dn.reject=function(e,t){return(xs(e)?ct:ro)(e,Os(Xr(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var o=-1,r=[],i=e.length;for(t=Xr(t,3);++o<i;){var s=e[o];t(s,o,e)&&(n.push(s),r.push(o))}return Mo(e,r),n},Dn.rest=function(e,t){if("function"!=typeof e)throw new ye(i);return Vo(e,t=void 0===t?t:oa(t))},Dn.reverse=Bi,Dn.sampleSize=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:oa(t),(xs(e)?jn:Wo)(e,t)},Dn.set=function(e,t,n){return null==e?e:Ho(e,t,n)},Dn.setWith=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:Ho(e,t,n,o)},Dn.shuffle=function(e){return(xs(e)?Wn:Uo)(e)},Dn.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&li(e,t,n)?(t=0,n=o):(t=null==t?0:oa(t),n=void 0===n?o:oa(n)),qo(e,t,n)):[]},Dn.sortBy=fs,Dn.sortedUniq=function(e){return e&&e.length?Qo(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?Qo(e,Xr(t,2)):[]},Dn.split=function(e,t,n){return n&&"number"!=typeof n&&li(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=aa(e))&&("string"==typeof t||null!=t&&!Ks(t))&&!(t=Jo(t))&&Vt(e)?cr(qt(e),0,n):e.split(t,n):[]},Dn.spread=function(e,t){if("function"!=typeof e)throw new ye(i);return t=null==t?0:sn(oa(t),0),Vo((function(n){var o=n[t],r=cr(n,0,t);return o&&ft(r,o),it(e,this,r)}))},Dn.tail=function(e){var t=null==e?0:e.length;return t?qo(e,1,t):[]},Dn.take=function(e,t,n){return e&&e.length?qo(e,0,(t=n||void 0===t?1:oa(t))<0?0:t):[]},Dn.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?qo(e,(t=o-(t=n||void 0===t?1:oa(t)))<0?0:t,o):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new ye(i);return Bs(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),ws(e,t,{leading:o,maxWait:t,trailing:r})},Dn.thru=ns,Dn.toArray=ta,Dn.toPairs=Ta,Dn.toPairsIn=Da,Dn.toPath=function(e){return xs(e)?ht(e,Si):Xs(e)?[e]:yr(Ri(aa(e)))},Dn.toPlainObject=sa,Dn.transform=function(e,t,n){var o=xs(e),r=o||ks(e)||Js(e);if(t=Xr(t,4),null==n){var i=e&&e.constructor;n=r?o?new i:[]:Bs(e)&&js(i)?Pn(Ue(e)):{}}return(r?at:lo)(e,(function(e,o,r){return t(n,e,o,r)})),n},Dn.unary=function(e){return vs(e,1)},Dn.union=zi,Dn.unionBy=Ui,Dn.unionWith=qi,Dn.uniq=function(e){return e&&e.length?Zo(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?Zo(e,Xr(t,2)):[]},Dn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zo(e,void 0,t):[]},Dn.unset=function(e,t){return null==e||er(e,t)},Dn.unzip=Yi,Dn.unzipWith=Ki,Dn.update=function(e,t,n){return null==e?e:tr(e,t,ar(n))},Dn.updateWith=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:tr(e,t,ar(n),o)},Dn.values=Pa,Dn.valuesIn=function(e){return null==e?[]:At(e,ba(e))},Dn.without=$i,Dn.words=ja,Dn.wrap=function(e,t){return Ss(ar(t),e)},Dn.xor=Qi,Dn.xorBy=Xi,Dn.xorWith=Ji,Dn.zip=Zi,Dn.zipObject=function(e,t){return ir(e||[],t||[],Bn)},Dn.zipObjectDeep=function(e,t){return ir(e||[],t||[],Ho)},Dn.zipWith=es,Dn.entries=Ta,Dn.entriesIn=Da,Dn.extend=ua,Dn.extendWith=ca,Qa(Dn,Dn),Dn.add=sl,Dn.attempt=Wa,Dn.camelCase=Ia,Dn.capitalize=Aa,Dn.ceil=al,Dn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=ia(n))==n?n:0),void 0!==t&&(t=(t=ia(t))==t?t:0),$n(ia(e),t,n)},Dn.clone=function(e){return Qn(e,4)},Dn.cloneDeep=function(e){return Qn(e,5)},Dn.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},Dn.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},Dn.conformsTo=function(e,t){return null==t||Xn(e,t,wa(t))},Dn.deburr=Na,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=ll,Dn.endsWith=function(e,t,n){e=aa(e),t=Jo(t);var o=e.length,r=n=void 0===n?o:$n(oa(n),0,o);return(n-=t.length)>=0&&e.slice(n,r)==t},Dn.eq=Ps,Dn.escape=function(e){return(e=aa(e))&&V.test(e)?e.replace(k,kt):e},Dn.escapeRegExp=function(e){return(e=aa(e))&&Y.test(e)?e.replace(q,"\\$&"):e},Dn.every=function(e,t,n){var o=xs(e)?ut:no;return n&&li(e,t,n)&&(t=void 0),o(e,Xr(t,3))},Dn.find=is,Dn.findIndex=Ni,Dn.findKey=function(e,t){return Ct(e,Xr(t,3),lo)},Dn.findLast=ss,Dn.findLastIndex=xi,Dn.findLastKey=function(e,t){return Ct(e,Xr(t,3),uo)},Dn.floor=ul,Dn.forEach=as,Dn.forEachRight=ls,Dn.forIn=function(e,t){return null==e?e:so(e,Xr(t,3),ba)},Dn.forInRight=function(e,t){return null==e?e:ao(e,Xr(t,3),ba)},Dn.forOwn=function(e,t){return e&&lo(e,Xr(t,3))},Dn.forOwnRight=function(e,t){return e&&uo(e,Xr(t,3))},Dn.get=ga,Dn.gt=Is,Dn.gte=As,Dn.has=function(e,t){return null!=e&&ri(e,t,vo)},Dn.hasIn=va,Dn.head=Li,Dn.identity=qa,Dn.includes=function(e,t,n,o){e=Ls(e)?e:Pa(e),n=n&&!o?oa(n):0;var r=e.length;return n<0&&(n=sn(r+n,0)),Qs(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&bt(e,t,n)>-1},Dn.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:oa(n);return r<0&&(r=sn(o+r,0)),bt(e,t,r)},Dn.inRange=function(e,t,n){return t=na(t),void 0===n?(n=t,t=0):n=na(n),function(e,t,n){return e>=an(t,n)&&e<sn(t,n)}(e=ia(e),t,n)},Dn.invoke=Ca,Dn.isArguments=Ns,Dn.isArray=xs,Dn.isArrayBuffer=Fs,Dn.isArrayLike=Ls,Dn.isArrayLikeObject=Ms,Dn.isBoolean=function(e){return!0===e||!1===e||zs(e)&&fo(e)==c},Dn.isBuffer=ks,Dn.isDate=Gs,Dn.isElement=function(e){return zs(e)&&1===e.nodeType&&!Ys(e)},Dn.isEmpty=function(e){if(null==e)return!0;if(Ls(e)&&(xs(e)||"string"==typeof e||"function"==typeof e.splice||ks(e)||Js(e)||Ns(e)))return!e.length;var t=oi(e);if(t==g||t==C)return!e.size;if(di(e))return!Ro(e).length;for(var n in e)if(Oe.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return bo(e,t)},Dn.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?bo(e,t,void 0,n):!!o},Dn.isError=Vs,Dn.isFinite=function(e){return"number"==typeof e&&nn(e)},Dn.isFunction=js,Dn.isInteger=Ws,Dn.isLength=Hs,Dn.isMap=Us,Dn.isMatch=function(e,t){return e===t||Eo(e,t,Zr(t))},Dn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,Eo(e,t,Zr(t),n)},Dn.isNaN=function(e){return qs(e)&&e!=+e},Dn.isNative=function(e){if(pi(e))throw new de("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _o(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=qs,Dn.isObject=Bs,Dn.isObjectLike=zs,Dn.isPlainObject=Ys,Dn.isRegExp=Ks,Dn.isSafeInteger=function(e){return Ws(e)&&e>=-9007199254740991&&e<=9007199254740991},Dn.isSet=$s,Dn.isString=Qs,Dn.isSymbol=Xs,Dn.isTypedArray=Js,Dn.isUndefined=function(e){return void 0===e},Dn.isWeakMap=function(e){return zs(e)&&oi(e)==E},Dn.isWeakSet=function(e){return zs(e)&&"[object WeakSet]"==fo(e)},Dn.join=function(e,t){return null==e?"":on.call(e,t)},Dn.kebabCase=xa,Dn.last=Vi,Dn.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=o;return void 0!==n&&(r=(r=oa(n))<0?sn(o+r,0):an(r,o-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,r):wt(e,_t,r,!0)},Dn.lowerCase=Fa,Dn.lowerFirst=La,Dn.lt=Zs,Dn.lte=ea,Dn.max=function(e){return e&&e.length?oo(e,qa,go):void 0},Dn.maxBy=function(e,t){return e&&e.length?oo(e,Xr(t,2),go):void 0},Dn.mean=function(e){return Ot(e,qa)},Dn.meanBy=function(e,t){return Ot(e,Xr(t,2))},Dn.min=function(e){return e&&e.length?oo(e,qa,To):void 0},Dn.minBy=function(e,t){return e&&e.length?oo(e,Xr(t,2),To):void 0},Dn.stubArray=rl,Dn.stubFalse=il,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=pl,Dn.nth=function(e,t){return e&&e.length?No(e,oa(t)):void 0},Dn.noConflict=function(){return Ye._===this&&(Ye._=Pe),this},Dn.noop=Xa,Dn.now=gs,Dn.pad=function(e,t,n){e=aa(e);var o=(t=oa(t))?Ut(e):0;if(!t||o>=t)return e;var r=(t-o)/2;return xr(Zt(r),n)+e+xr(Jt(r),n)},Dn.padEnd=function(e,t,n){e=aa(e);var o=(t=oa(t))?Ut(e):0;return t&&o<t?e+xr(t-o,n):e},Dn.padStart=function(e,t,n){e=aa(e);var o=(t=oa(t))?Ut(e):0;return t&&o<t?xr(t-o,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(aa(e).replace($,""),t||0)},Dn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&li(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=na(e),void 0===t?(t=e,e=0):t=na(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var r=cn();return an(e+r*(t-e+Be("1e-"+((r+"").length-1))),t)}return ko(e,t)},Dn.reduce=function(e,t,n){var o=xs(e)?gt:Tt,r=arguments.length<3;return o(e,Xr(t,4),n,r,eo)},Dn.reduceRight=function(e,t,n){var o=xs(e)?vt:Tt,r=arguments.length<3;return o(e,Xr(t,4),n,r,to)},Dn.repeat=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:oa(t),Go(aa(e),t)},Dn.replace=function(){var e=arguments,t=aa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(e,t,n){var o=-1,r=(t=lr(t,e)).length;for(r||(r=1,e=void 0);++o<r;){var i=null==e?void 0:e[Si(t[o])];void 0===i&&(o=r,i=n),e=js(i)?i.call(e):i}return e},Dn.round=dl,Dn.runInContext=e,Dn.sample=function(e){return(xs(e)?Vn:jo)(e)},Dn.size=function(e){if(null==e)return 0;if(Ls(e))return Qs(e)?Ut(e):e.length;var t=oi(e);return t==g||t==C?e.size:Ro(e).length},Dn.snakeCase=Ma,Dn.some=function(e,t,n){var o=xs(e)?mt:Yo;return n&&li(e,t,n)&&(t=void 0),o(e,Xr(t,3))},Dn.sortedIndex=function(e,t){return Ko(e,t)},Dn.sortedIndexBy=function(e,t,n){return $o(e,t,Xr(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var o=Ko(e,t);if(o<n&&Ps(e[o],t))return o}return-1},Dn.sortedLastIndex=function(e,t){return Ko(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return $o(e,t,Xr(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Ko(e,t,!0)-1;if(Ps(e[n],t))return n}return-1},Dn.startCase=ka,Dn.startsWith=function(e,t,n){return e=aa(e),n=null==n?0:$n(oa(n),0,e.length),t=Jo(t),e.slice(n,n+t.length)==t},Dn.subtract=hl,Dn.sum=function(e){return e&&e.length?Dt(e,qa):0},Dn.sumBy=function(e,t){return e&&e.length?Dt(e,Xr(t,2)):0},Dn.template=function(e,t,n){var o=Dn.templateSettings;n&&li(e,t,n)&&(t=void 0),e=aa(e),t=ca({},t,o,Wr);var r,i,s=ca({},t.imports,o.imports,Wr),a=wa(s),l=At(s,a),u=0,c=t.interpolate||ce,p="__p += '",d=ve((t.escape||ce).source+"|"+c.source+"|"+(c===H?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),h="//# sourceURL="+(Oe.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Ve+"]")+"\n";e.replace(d,(function(t,n,o,s,a,l){return o||(o=s),p+=e.slice(u,l).replace(pe,Gt),n&&(r=!0,p+="' +\n__e("+n+") +\n'"),a&&(i=!0,p+="';\n"+a+";\n__p += '"),o&&(p+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var f=Oe.call(t,"variable")&&t.variable;f||(p="with (obj) {\n"+p+"\n}\n"),p=(i?p.replace(x,""):p).replace(F,"$1").replace(L,"$1;"),p="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Wa((function(){return he(a,h+"return "+p).apply(void 0,l)}));if(g.source=p,Vs(g))throw g;return g},Dn.times=function(e,t){if((e=oa(e))<1||e>9007199254740991)return[];var n=4294967295,o=an(e,4294967295);e-=4294967295;for(var r=Pt(o,t=Xr(t));++n<e;)t(n);return r},Dn.toFinite=na,Dn.toInteger=oa,Dn.toLength=ra,Dn.toLower=function(e){return aa(e).toLowerCase()},Dn.toNumber=ia,Dn.toSafeInteger=function(e){return e?$n(oa(e),-9007199254740991,9007199254740991):0===e?e:0},Dn.toString=aa,Dn.toUpper=function(e){return aa(e).toUpperCase()},Dn.trim=function(e,t,n){if((e=aa(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Jo(t)))return e;var o=qt(e),r=qt(t);return cr(o,xt(o,r),Ft(o,r)+1).join("")},Dn.trimEnd=function(e,t,n){if((e=aa(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Jo(t)))return e;var o=qt(e);return cr(o,0,Ft(o,qt(t))+1).join("")},Dn.trimStart=function(e,t,n){if((e=aa(e))&&(n||void 0===t))return e.replace($,"");if(!e||!(t=Jo(t)))return e;var o=qt(e);return cr(o,xt(o,qt(t))).join("")},Dn.truncate=function(e,t){var n=30,o="...";if(Bs(t)){var r="separator"in t?t.separator:r;n="length"in t?oa(t.length):n,o="omission"in t?Jo(t.omission):o}var i=(e=aa(e)).length;if(Vt(e)){var s=qt(e);i=s.length}if(n>=i)return e;var a=n-Ut(o);if(a<1)return o;var l=s?cr(s,0,a).join(""):e.slice(0,a);if(void 0===r)return l+o;if(s&&(a+=l.length-a),Ks(r)){if(e.slice(a).search(r)){var u,c=l;for(r.global||(r=ve(r.source,aa(oe.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var p=u.index;l=l.slice(0,void 0===p?a:p)}}else if(e.indexOf(Jo(r),a)!=a){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+o},Dn.unescape=function(e){return(e=aa(e))&&G.test(e)?e.replace(M,Yt):e},Dn.uniqueId=function(e){var t=++Re;return aa(e)+t},Dn.upperCase=Ga,Dn.upperFirst=Va,Dn.each=as,Dn.eachRight=ls,Dn.first=Li,Qa(Dn,(cl={},lo(Dn,(function(e,t){Oe.call(Dn.prototype,t)||(cl[t]=e)})),cl),{chain:!1}),Dn.VERSION="4.17.15",at(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dn[e].placeholder=Dn})),at(["drop","take"],(function(e,t){Nn.prototype[e]=function(n){n=void 0===n?1:sn(oa(n),0);var o=this.__filtered__&&!t?new Nn(this):this.clone();return o.__filtered__?o.__takeCount__=an(n,o.__takeCount__):o.__views__.push({size:an(n,4294967295),type:e+(o.__dir__<0?"Right":"")}),o},Nn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),at(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;Nn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xr(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),at(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Nn.prototype[e]=function(){return this[n](1).value()[0]}})),at(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Nn.prototype[e]=function(){return this.__filtered__?new Nn(this):this[n](1)}})),Nn.prototype.compact=function(){return this.filter(qa)},Nn.prototype.find=function(e){return this.filter(e).head()},Nn.prototype.findLast=function(e){return this.reverse().find(e)},Nn.prototype.invokeMap=Vo((function(e,t){return"function"==typeof e?new Nn(this):this.map((function(n){return Co(n,e,t)}))})),Nn.prototype.reject=function(e){return this.filter(Os(Xr(e)))},Nn.prototype.slice=function(e,t){e=oa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Nn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=oa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Nn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Nn.prototype.toArray=function(){return this.take(4294967295)},lo(Nn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=Dn[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);r&&(Dn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,a=t instanceof Nn,l=s[0],u=a||xs(t),c=function(e){var t=r.apply(Dn,ft([e],s));return o&&p?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(a=u=!1);var p=this.__chain__,d=!!this.__actions__.length,h=i&&!p,f=a&&!d;if(!i&&u){t=f?t:new Nn(this);var g=e.apply(t,s);return g.__actions__.push({func:ns,args:[c],thisArg:void 0}),new An(g,p)}return h&&f?e.apply(this,s):(g=this.thru(c),h?o?g.value()[0]:g.value():g)})})),at(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var r=this.value();return t.apply(xs(r)?r:[],e)}return this[n]((function(n){return t.apply(xs(n)?n:[],e)}))}})),lo(Nn.prototype,(function(e,t){var n=Dn[t];if(n){var o=n.name+"";Oe.call(Cn,o)||(Cn[o]=[]),Cn[o].push({name:t,func:n})}})),Cn[Pr(void 0,2).name]=[{name:"wrapper",func:void 0}],Nn.prototype.clone=function(){var e=new Nn(this.__wrapped__);return e.__actions__=yr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yr(this.__views__),e},Nn.prototype.reverse=function(){if(this.__filtered__){var e=new Nn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Nn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=xs(e),o=t<0,r=n?e.length:0,i=function(e,t,n){var o=-1,r=n.length;for(;++o<r;){var i=n[o],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=an(t,e+s);break;case"takeRight":e=sn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=i.start,a=i.end,l=a-s,u=o?a:s-1,c=this.__iteratees__,p=c.length,d=0,h=an(l,this.__takeCount__);if(!n||!o&&r==l&&h==l)return or(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var g=-1,v=e[u+=t];++g<p;){var m=c[g],y=m.iteratee,C=m.type,w=y(v);if(2==C)v=w;else if(!w){if(1==C)continue e;break e}}f[d++]=v}return f},Dn.prototype.at=os,Dn.prototype.chain=function(){return ts(this)},Dn.prototype.commit=function(){return new An(this.value(),this.__chain__)},Dn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ta(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Dn.prototype.plant=function(e){for(var t,n=this;n instanceof In;){var o=Di(n);o.__index__=0,o.__values__=void 0,t?r.__wrapped__=o:t=o;var r=o;n=n.__wrapped__}return r.__wrapped__=e,t},Dn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Nn){var t=e;return this.__actions__.length&&(t=new Nn(this)),(t=t.reverse()).__actions__.push({func:ns,args:[Bi],thisArg:void 0}),new An(t,this.__chain__)}return this.thru(Bi)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return or(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Je&&(Dn.prototype[Je]=function(){return this}),Dn}();Ye._=Kt,void 0===(r=function(){return Kt}.call(t,n,t,o))||(o.exports=r)}).call(this)}).call(this,n(33),n(116)(e))},function(e,t,n){var o;
25
- /*!
26
- Copyright (c) 2017 Jed Watson.
27
- Licensed under the MIT License (MIT), see
28
- http://jedwatson.github.io/classnames
29
- */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var s=r.apply(null,o);s&&e.push(s)}else if("object"===i)for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var o=n(1),r=n(0),i=n(20),s=0;var a={};function l(e){return a[e]||(a[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+s+")";return s++,t}(e)),a[e]}function u(e,t){if(c(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!Object.hasOwnProperty.call(t,n[r])||!c(e[n[r]],t[n[r]]))return!1;return!0}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var d=l("patchMixins"),h=l("patchedDefinition");function f(e,t){for(var n=this,o=arguments.length,r=new Array(o>2?o-2:0),i=2;i<o;i++)r[i-2]=arguments[i];t.locks++;try{var s;return null!=e&&(s=e.apply(this,r)),s}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,r)}))}}function g(e,t){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];f.call.apply(f,[this,e,t].concat(o))}}function v(e,t,n){var o=function(e,t){var n=e[d]=e[d]||{},o=n[t]=n[t]||{};return o.locks=o.locks||0,o.methods=o.methods||[],o}(e,t);o.methods.indexOf(n)<0&&o.methods.push(n);var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r[h]){var i=e[t],s=function e(t,n,o,r,i){var s,a=g(i,r);return(s={})[h]=!0,s.get=function(){return a},s.set=function(i){if(this===t)a=g(i,r);else{var s=e(this,n,o,r,i);Object.defineProperty(this,n,s)}},s.configurable=!0,s.enumerable=o,s}(e,t,r?r.enumerable:void 0,o,i);Object.defineProperty(e,t,s)}}var m=o.$mobx||"$mobx",y=l("isUnmounted"),C=l("skipRender"),w=l("isForcingUpdate");function b(e){var t=e.prototype;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==r.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==_)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=_;O(t,"props"),O(t,"state");var n=t.render;return t.render=function(){return E.call(this,n)},v(t,"componentWillUnmount",(function(){if(!0!==Object(i.b)()){if(this.render[m])this.render[m].dispose();else;this[y]=!0}})),e}function E(e){var t=this;if(!0===Object(i.b)())return e.call(this);p(this,C,!1),p(this,w,!1);var n,s=(n=this).displayName||n.name||n.constructor&&(n.constructor.displayName||n.constructor.name)||"<component>",a=e.bind(this),l=!1,u=new o.Reaction(s+".render()",(function(){if(!l&&(l=!0,!0!==t[y])){var e=!0;try{p(t,w,!0),t[C]||r.Component.prototype.forceUpdate.call(t),e=!1}finally{p(t,w,!1),e&&u.dispose()}}}));function c(){l=!1;var e=void 0,t=void 0;if(u.track((function(){try{t=Object(o._allowStateChanges)(!1,a)}catch(t){e=t}})),e)throw e;return t}return u.reactComponent=this,c[m]=u,this.render=c,c.call(this)}function _(e,t){return Object(i.b)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!u(this.props,e)}function O(e,t){var n=l("reactProp_"+t+"_valueHolder"),r=l("reactProp_"+t+"_atomHolder");function i(){return this[r]||p(this,r,Object(o.createAtom)("reactive "+t)),this[r]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return o._allowStateReadsStart&&o._allowStateReadsEnd&&(e=Object(o._allowStateReadsStart)(!0)),i.call(this).reportObserved(),o._allowStateReadsStart&&o._allowStateReadsEnd&&Object(o._allowStateReadsEnd)(e),this[n]},set:function(e){this[w]||u(this[n],e)?p(this,n,e):(p(this,n,e),p(this,C,!0),i.call(this).reportChanged(),p(this,C,!1))}})}var R="function"==typeof Symbol&&Symbol.for,S=R?Symbol.for("react.forward_ref"):"function"==typeof r.forwardRef&&Object(r.forwardRef)((function(e){return null})).$$typeof,T=R?Symbol.for("react.memo"):"function"==typeof r.memo&&Object(r.memo)((function(e){return null})).$$typeof;function D(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),T&&e.$$typeof===T)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(S&&e.$$typeof===S){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return Object(r.forwardRef)((function(){var e=arguments;return Object(r.createElement)(i.a,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(r.Component,e)?b(e):Object(i.c)(e)}if(!r.Component)throw new Error("mobx-react requires React to be available");if(!o.observable)throw new Error("mobx-react requires mobx to be available")},function(e,t,n){e.exports={container:"stringListInput__container___2swMu",input:"stringListInput__input___3KxqP",text:"stringListInput__text___OCfaD",itemContainer:"stringListInput__itemContainer___1kfQ3",itemScrollContainer:"stringListInput__itemScrollContainer___2jpEZ",item:"stringListInput__item___oYFir",invalid:"stringListInput__invalid___1vflZ",dragButton:"stringListInput__dragButton___3VZID",closeButton:"stringListInput__closeButton___ZQVHI",addScalarListItemBtn:"stringListInput__addScalarListItemBtn___3eq9P",separator:"stringListInput__separator___15H7M",draggedOver:"stringListInput__draggedOver___1OudA"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l}));
30
- /*! *****************************************************************************
31
- Copyright (c) Microsoft Corporation. All rights reserved.
32
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
33
- this file except in compliance with the License. You may obtain a copy of the
34
- License at http://www.apache.org/licenses/LICENSE-2.0
35
-
36
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
37
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
38
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
39
- MERCHANTABLITY OR NON-INFRINGEMENT.
40
-
41
- See the Apache Version 2.0 License for specific language governing permissions
42
- and limitations under the License.
43
- ***************************************************************************** */
44
- var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=n(85),s=n.n(i);class a extends r.a.PureComponent{componentDidMount(){var e;const{target:t,keys:n,preventDefault:o,stopPropagation:r,onMatch:i}=this.props,a=null!==(e=null==t?void 0:t.current)&&void 0!==e?e:document;this.instance=s()(a),this.instance.bind(n,(e,t)=>{o&&e.preventDefault(),r&&e.stopImmediatePropagation(),i(e,t)},"keydown")}componentWillUnmount(){this.instance.unbind(this.props.keys,"keydown")}render(){return r.a.createElement(r.a.Fragment,null)}}a.defaultProps={preventDefault:!0,stopPropagation:!0},t.a=a},function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=n(4),s=n.n(i),a=n(5),l=n(38),u=n.n(l),c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};t.a=Object(a.a)(e=>{var{innerRef:t,className:n,children:o,ghost:i=!1,wide:a=!1,blue:l=!1,green:p=!1,red:d=!1,disabled:h,onClick:f}=e,g=c(e,["innerRef","className","children","ghost","wide","blue","green","red","disabled","onClick"]);return r.a.createElement("button",Object.assign({ref:t,className:s()(u.a.container,{[u.a.wide]:a,[u.a.ghost]:i,[u.a.blue]:l,[u.a.green]:p,[u.a.red]:d,[u.a.disabled]:h},n),onClick:e=>{h||f&&(e.stopPropagation(),e.preventDefault(),f(e))}},g),o)})},function(e,t,n){e.exports={container:"modelListTab__container___29izS",content:"modelListTab__content___1OmrS",header:"modelListTab__header___1EvRY",title:"modelListTab__title___1Px7_",search:"modelListTab__search___1pIL5",section:"modelListTab__section___1q7LJ",allModels:"modelListTab__allModels___12jNN",sectionTitle:"modelListTab__sectionTitle___2ufGa",list:"modelListTab__list___1YrvZ",model:"modelListTab__model___TOnWD",active:"modelListTab__active___2Mz5S",spacer:"modelListTab__spacer___37qug",count:"modelListTab__count___1rbcv",empty:"modelListTab__empty___3bjNs"}},function(e,t,n){"use strict";(function(e,o,r){n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"m",(function(){return u})),n.d(t,"k",(function(){return c})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return v})),n.d(t,"l",(function(){return E})),n.d(t,"j",(function(){return _})),n.d(t,"e",(function(){return O}));var i=n(13);n(43);function s(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}var a={};function l(){return s()?o:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function u(){var e=l(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var o=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return o(n[0])+o(n[1])+o(n[2])+o(n[3])+o(n[4])+o(n[5])+o(n[6])+o(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function c(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+o}}function p(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function d(e){var t=l();if(!("console"in t))return e();var n=t.console,o={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(o[e]=n[e],n[e]=n[e].__sentry_original__)}));var r=e();return Object.keys(o).forEach((function(e){n[e]=o[e]})),r}function h(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function g(){try{return document.location.href}catch(e){return""}}function v(e){try{for(var t=e,n=[],o=0,r=0,i=" > ".length,s=void 0;t&&o++<5&&!("html"===(s=m(t))||o>1&&r+n.length*i+s.length>=80);)n.push(s),r+=s.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function m(e){var t,n,o,r,s,a=e,l=[];if(!a||!a.tagName)return"";if(l.push(a.tagName.toLowerCase()),a.id&&l.push("#"+a.id),(t=a.className)&&Object(i.k)(t))for(n=t.split(/\s+/),s=0;s<n.length;s++)l.push("."+n[s]);var u=["type","name","title","alt"];for(s=0;s<u.length;s++)o=u[s],(r=a.getAttribute(o))&&l.push("["+o+'="'+r+'"]');return l.join("")}var y=Date.now(),C=0,w={now:function(){var e=Date.now()-y;return e<C&&(e=C),C=e,e},timeOrigin:y},b=function(){if(s())try{return(e="perf_hooks",r.require(e)).performance}catch(e){return w}var e;return l().performance&&void 0===performance.timeOrigin&&(performance.timeOrigin=performance.timing&&performance.timing.navigationStart||y),l().performance||w}();function E(){return(b.timeOrigin+b.now())/1e3}function _(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var o=Date.parse(""+t);return isNaN(o)?6e4:o-e}function O(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}}).call(this,n(79),n(33),n(117)(e))},function(e,t,n){e.exports={container:"treeRowArray__container___1P327",meta:"treeRowArray__meta___25j1T",fieldValue:"treeRowArray__fieldValue___252_J",active:"treeRowArray__active___1IAQk",expanded:"treeRowArray__expanded___3F3_2",expandButton:"treeRowArray__expandButton___3cT9V",loader:"treeRowArray__loader___VE_Y1",icon:"treeRowArray__icon___3G9vb",fieldName:"treeRowArray__fieldName___fBFuR",fieldType:"treeRowArray__fieldType___29VZt"}},function(e,t,n){"use strict";function o(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return g(e,Error)}}function r(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function i(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function s(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function a(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return"undefined"!=typeof Event&&g(e,Event)}function p(e){return"undefined"!=typeof Element&&g(e,Element)}function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function h(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function f(e){return u(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"k",(function(){return a})),n.d(t,"i",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return p})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"g",(function(){return g}))},,function(e,t,n){e.exports={container:"common__container___2zXy-",content:"common__content___36zmj",description:"common__description___1PMKW",reportBtn:"common__reportBtn___1G4K6",detailsBtn:"common__detailsBtn___3Lo9l",open:"common__open___f811G",dump:"common__dump___22Qyr"}},function(e,t,n){e.exports={tooltip:"whereFilter__tooltip___1-sKN",empty:"whereFilter__empty___2wRNA",emptyText:"whereFilter__emptyText___3vXpS",cell:"whereFilter__cell___lAX11",invalid:"whereFilter__invalid___2hkwX",fields:"whereFilter__fields___3H8zX",field:"whereFilter__field___39bq0",dropdown:"whereFilter__dropdown___1ZSmK",operation:"whereFilter__operation___Lc2hE",value:"whereFilter__value___YdsKB",deleteButton:"whereFilter__deleteButton___2ldYp",addButton:"whereFilter__addButton___3RgEr"}},function(e,t,n){"use strict";var o=n(0);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var i=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 1.714C14 .768 13.105 0 12 0s-2 .768-2 1.714V10H1.714C.768 10 0 10.895 0 12s.768 2 1.714 2H10v8.286c0 .947.895 1.714 2 1.714s2-.767 2-1.714V14h8.286c.947 0 1.714-.895 1.714-2s-.767-2-1.714-2H14V1.714z"});t.a=function(e){return o.createElement("svg",r({viewBox:"0 0 24 24"},e),i)}},function(e,t,n){e.exports={container:"splash__container___1YIMq",left:"splash__left___E6uNp",right:"splash__right___3rGDF",logotype:"splash__logotype___2DRLX",logo:"splash__logo___2gNIC",fadeIn:"splash__fadeIn___31cOw",type:"splash__type___3nbw8",updateContainer:"splash__updateContainer___23fd_",downloadIcon:"splash__downloadIcon___1fui7",updateText:"splash__updateText___2EhR-",links:"splash__links___-5fAz",link:"splash__link___PnOwG",slideInRight:"splash__slideInRight___cjDlt",footer:"splash__footer___1R8nF"}},function(e,t,n){e.exports={container:"common__container___pAvTU",pill:"common__pill___3vOMq",label:"common__label___2MJDp",open:"common__open___wWjld",exists:"common__exists___Dfp0A"}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return C}));var o=n(1),r=n(0),i=n.n(r);if(!r.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!o.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var s=!1;function a(){return s}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(){var e=Object(r.useState)(0)[1];return Object(r.useCallback)((function(){e((function(e){return e+1}))}),[])}function c(e){return Object(o.getDependencyTree)(e)}var p,d=1e4,h=new Set;function f(){void 0===p&&(p=setTimeout(g,1e4))}function g(){p=void 0;var e=Date.now(),t=h,n=Array.isArray(t),o=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(o>=t.length)break;r=t[o++]}else{if((o=t.next()).done)break;r=o.value}var i=r,s=i.current;s&&e>=s.cleanAt&&(s.reaction.dispose(),i.current=null,h.delete(i))}h.size>0&&f()}var v={};function m(e){return"observer"+e}function y(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=v),a())return e();var r,s=(n.useForceUpdate||u)(),l=i.a.useRef(null);if(!l.current){var p=new o.Reaction(m(t),(function(){g.mounted?s():(p.dispose(),l.current=null)})),g=function(e){return{cleanAt:Date.now()+d,reaction:e}}(p);l.current=g,r=l,h.add(r),f()}var y,C,w=l.current.reaction;if(i.a.useDebugValue(w,c),i.a.useEffect((function(){var e;return e=l,h.delete(e),l.current?l.current.mounted=!0:(l.current={reaction:new o.Reaction(m(t),(function(){s()})),cleanAt:1/0},s()),function(){l.current.reaction.dispose(),l.current=null}}),[]),w.track((function(){try{y=e()}catch(e){C=e}})),C)throw C;return y}function C(e,t){if(a())return e;var n,o,i,s=l({forwardRef:!1},t),u=e.displayName||e.name,c=function(t,n){return y((function(){return e(t,n)}),u)};return c.displayName=u,n=s.forwardRef?Object(r.memo)(Object(r.forwardRef)(c)):Object(r.memo)(c),o=e,i=n,Object.keys(o).forEach((function(e){w[e]||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})),n.displayName=u,n}var w={$$typeof:!0,render:!0,compare:!0,type:!0};function b(e){var t=e.children,n=e.render,o=t||n;return"function"!=typeof o?null:y(o)}function E(e,t,n,o,r){var i="children"===t?"render":"children",s="function"==typeof e[t],a="function"==typeof e[i];return s&&a?new Error("MobX Observer: Do not use children and render in the same time in`"+n):s||a?null:new Error("Invalid prop `"+r+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}b.propTypes={children:E,render:E},b.displayName="Observer"}).call(this,n(33))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l}));var o=n(7),r=n(130);function i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Object(r.a)();if(i&&i[e])return i[e].apply(i,o.d(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function s(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return i("captureException",e,{originalException:e,syntheticException:t})}function a(e){i("configureScope",e)}function l(e){i("withScope",e)}},function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=n(4),s=n.n(i),a=n(5),l=n(92),u=n.n(l),c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class p extends r.a.PureComponent{constructor(){super(...arguments),this.handleDragStart=e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/html",e.target.parentNode),e.dataTransfer.setDragImage(e.target.parentNode,20,20),this.props.onDragStart(e)},this.handleDragEnd=e=>{this.props.onDragEnd(e)}}render(){const e=this.props,{className:t,children:n}=e,o=c(e,["className","children"]);return r.a.createElement("div",Object.assign({draggable:!0,className:s()(u.a.container,t)},o,{onDragStart:e=>this.handleDragStart(e),onDragEnd:e=>this.handleDragEnd(e)}),n)}}t.a=Object(a.a)(p)},function(e,t,n){"use strict";var o=n(0);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var i=o.createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M24 10H0V6h24v4zM24 18H0v-4h24v4z",fill:"currentColor"});t.a=function(e){return o.createElement("svg",r({viewBox:"0 0 24 24"},e),i)}},function(e,t,n){e.exports={container:"settingsDropdown__container___3z9p3",button:"settingsDropdown__button___18aTV",dot:"settingsDropdown__dot___3Fp0r",menu:"settingsDropdown__menu___3aYCb",menuItem:"settingsDropdown__menuItem___1U4i6",highlight:"settingsDropdown__highlight___32lAS"}},function(e,t,n){e.exports={container:"relationInput__container___1ThT3",table:"relationInput__table___19djt",footer:"relationInput__footer___2A_O8",footerBtn:"relationInput__footerBtn___2aXRg",disabled:"relationInput__disabled___3hN9A"}},function(e,t,n){e.exports={container:"skeleton__container___emhhy",tab1:"skeleton__tab1___13CKf",tab2:"skeleton__tab2___20qW1",tabEmptySpace:"skeleton__tabEmptySpace___1c609",filter1:"skeleton__filter1___2tWTs",filter2:"skeleton__filter2___1ZdyJ",filter3:"skeleton__filter3___3BYCU",filter4:"skeleton__filter4___iWTiO",separator:"skeleton__separator___1tYZc",button1:"skeleton__button1___6HgGH",btnSpace:"skeleton__btnSpace___ERzWk",pulsate:"skeleton__pulsate___3n5_x",table:"skeleton__table___N0zn4"}},function(e,t,n){e.exports={container:"treeRowObject__container___3A_d9",meta:"treeRowObject__meta___2NUI6",fieldValue:"treeRowObject__fieldValue___3FO4M",active:"treeRowObject__active___2U8JA",expanded:"treeRowObject__expanded___2x1cu",expandButton:"treeRowObject__expandButton___1d-Y1",loader:"treeRowObject__loader___F4g0X",icon:"treeRowObject__icon___2Waic",fieldName:"treeRowObject__fieldName___2eN8f",fieldType:"treeRowObject__fieldType___3oOrP"}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return g}));n(7);var o=n(13),r=n(99),i=n(11),s=n(43);function a(e,t,n){if(t in e){var o=e[t],r=n(o);if("function"==typeof r)try{r.prototype=r.prototype||{},Object.defineProperties(r,{__sentry_original__:{enumerable:!1,value:o}})}catch(e){}e[t]=r}}function l(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function u(e){if(Object(o.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Object(o.f)(e)){var s=e,a={};a.type=s.type;try{a.target=Object(o.c)(s.target)?Object(i.h)(s.target):Object.prototype.toString.call(s.target)}catch(e){a.target="<unknown>"}try{a.currentTarget=Object(o.c)(s.currentTarget)?Object(i.h)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(e){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Object(o.g)(e,CustomEvent)&&(a.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,r)&&(a[r]=s);return a}return e}function c(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function p(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var o=f(e,t);return c(o)>n?p(e,t-1,n):o}function d(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(o.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(i.e)(t)+"]":t}function h(e,t,n,i){if(void 0===n&&(n=1/0),void 0===i&&(i=new r.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=d(e);return Object(o.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var s=d(t,e);if(Object(o.i)(s))return s;var a=u(t),l=Array.isArray(t)?[]:{};if(i.memoize(t))return"[Circular ~]";for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(l[c]=h(c,a[c],n-1,i));return i.unmemoize(t),l}function f(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return h(e,n,t)})))}catch(e){return"**non-serializable**"}}function g(e,t){void 0===t&&(t=40);var n=Object.keys(u(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(s.d)(n[0],t);for(var o=n.length;o>0;o--){var r=n.slice(0,o).join(", ");if(!(r.length>t))return o===n.length?r:Object(s.d)(r,t)}return""}}).call(this,n(33))},function(e,t,n){e.exports={input:"stringInput__input___1nuFd"}},function(e,t,n){"use strict";(function(e){function o(e){return Array(2*e).fill(" ").join("")}function r(t,n=1){return void 0===t?"undefined":null===t?"null":t instanceof Date||t instanceof e||t instanceof Uint8Array||"object"!=typeof t?"string"==typeof(i=t)?`"${i}"`:"bigint"==typeof i?`BigInt(${i})`:i instanceof Date?`"${i.toISOString()}"`:i instanceof e?`Buffer.from("${i.toString("base64")}", "base64")`:i instanceof Uint8Array?`Buffer.from("${e.from(i).toString("base64")}", "base64")`:""+i:Array.isArray(t)?["[",t.map(e=>[o(n),r(e,n+1),","].join("")).join("\n"),o(n-1)+"]"].join("\n"):["{",Object.entries(t).map(([e,t])=>[o(n),e,": ",r(t,n+1),","].join("")).join("\n"),o(n-1)+"}"].join("\n");var i}n.d(t,"a",(function(){return r}))}).call(this,n(58).Buffer)},function(e,t,n){t.AgGridReact=n(118).AgGridReact,t.AgGridColumn=n(83).AgGridColumn},function(e,t,n){e.exports={tooltip:"paginationFilter__tooltip___1Kv-n",tooltipBody:"paginationFilter__tooltipBody___2uMG1",text:"paginationFilter__text___1fw-B",separator:"paginationFilter__separator___2SE1-",input:"paginationFilter__input___3U3GR"}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports={container:"tab__container___31t2Y",title:"tab__title___3lWD0",active:"tab__active___20Qn1",preview:"tab__preview___3LnuI",modelListTabButton:"tab__modelListTabButton___1LWzz",closeButton:"tab__closeButton___2fW--",dirtyIndicator:"tab__dirtyIndicator___1ip2l"}},function(e,t,n){e.exports={container:"shortcutDialog__container___2HqaE",title:"shortcutDialog__title___Ixjfc",content:"shortcutDialog__content___2fRq2",section:"shortcutDialog__section___2nlDt",sectionName:"shortcutDialog__sectionName___mKuVj",row:"shortcutDialog__row___2mwnb",name:"shortcutDialog__name___r76LP",keys:"shortcutDialog__keys___2IlEb",separator:"shortcutDialog__separator___3t_0H"}},function(e,t,n){e.exports={container:"tableCellHeader__container___2iNTE",sortable:"tableCellHeader__sortable___1zbP_",title:"tableCellHeader__title___3Waiz",spacer:"tableCellHeader__spacer___RolO5",sortIndicator:"tableCellHeader__sortIndicator___1GL5D",visible:"tableCellHeader__visible___jJ9z5",asc:"tableCellHeader__asc___A9_Ga"}},function(e,t,n){e.exports={container:"databrowser__container___1bjSq",header:"databrowser__header___2n4uV",separator:"databrowser__separator___1pAfj",refreshBtn:"databrowser__refreshBtn___2Gh0s",spin:"databrowser__spin___1VJMp",deleteBtn:"databrowser__deleteBtn___2od-Y",pendingActions:"databrowser__pendingActions___KskOX"}},function(e,t,n){e.exports={container:"button__container___3JwB8",wide:"button__wide___zFraP",ghost:"button__ghost___1AqAA",blue:"button__blue___2UViu",green:"button__green___2Wbt8",red:"button__red___T2dtd",disabled:"button__disabled___2YAWg"}},function(e,t,n){e.exports={container:"treeRowScalar__container___3VO1k",meta:"treeRowScalar__meta___3W9EG",fieldValue:"treeRowScalar__fieldValue___1JM7l",active:"treeRowScalar__active___2D8cv",icon:"treeRowScalar__icon___3vOUu",fieldName:"treeRowScalar__fieldName___2Q7Fz"}},function(e,t,n){e.exports={container:"treeRowEnum__container___1BvlB",meta:"treeRowEnum__meta___3KwyU",fieldValue:"treeRowEnum__fieldValue___1XlB2",active:"treeRowEnum__active___36Wf5",icon:"treeRowEnum__icon___3nxRW",fieldName:"treeRowEnum__fieldName___318vf"}},function(e,t,n){e.exports={header:"projectList__header___29NxR",search:"projectList__search___3pDQR",list:"projectList__list___4f-0A",project:"projectList__project___10qIh",projectMeta:"projectList__projectMeta___k0Fza",projectName:"projectList__projectName___3YDBD",projectDir:"projectList__projectDir___3SxJY"}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(104)},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var o=n(13);function r(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,o=n.length;if(o<=150)return n;t>o&&(t=o);var r=Math.max(t-60,0);r<5&&(r=0);var i=Math.min(r+140,o);return i>o-5&&(i=o),i===o&&(r=Math.max(i-140,0)),n=n.slice(r,i),r>0&&(n="'{snip} "+n),i<o&&(n+=" {snip}"),n}function s(e,t){if(!Array.isArray(e))return"";for(var n=[],o=0;o<e.length;o++){var r=e[o];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t){return!!Object(o.k)(e)&&(Object(o.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(11),r=Object(o.f)(),i="Sentry Logger ",s=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(o.c)((function(){r.console.log(i+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(o.c)((function(){r.console.warn(i+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(o.c)((function(){r.console.error(i+"[Error]: "+e.join(" "))}))},e}();r.__SENTRY__=r.__SENTRY__||{};var a=r.__SENTRY__.logger||(r.__SENTRY__.logger=new s)},function(e,t,n){e.exports={container:"dropdown__container___11T0r",button:"dropdown__button___3xS77",open:"dropdown__open___-e2ns",textButton:"dropdown__textButton___sGVgo",caret:"dropdown__caret___1qGs0",select:"dropdown__select___25Dvb"}},function(e,t,n){e.exports={tooltip:"fieldFilter__tooltip___3J0S6",search:"fieldFilter__search___2Zn2V",checkbox:"fieldFilter__checkbox___25xt2",name:"fieldFilter__name___3IkX7",type:"fieldFilter__type___39jns"}},function(e,t,n){e.exports={dialog:"readonlyDialog__dialog___3jn8P",container:"readonlyDialog__container___3mNtq",illustration:"readonlyDialog__illustration___2vuK1",title:"readonlyDialog__title___oCTsV",content:"readonlyDialog__content___2kMdX"}},function(e,t,n){e.exports={container:"pendingActions__container___1YCGs",separator:"pendingActions__separator___kmJsD",action:"pendingActions__action___xJiD8",discardBtn:"pendingActions__discardBtn___2_0fX"}},function(e,t,n){e.exports={container:"table__container___1WFQ4",firstCommittedRow:"table__firstCommittedRow___30U0h",tableCell:"table__tableCell___15YXU",dirty:"table__dirty___2pcvp",invalid:"table__invalid___2pjdh",empty:"table__empty___2igOE"}},function(e,t,n){"use strict";(function(e){var o=n(0),r=n.n(o),i=n(5),s=n(4),a=n.n(s),l=n(51),u=n(62),c=n.n(u);class p extends r.a.Component{constructor(){super(...arguments),this.handleClickRelation=()=>{const{api:e,node:t,field:n}=this.props;this.props.resizeRowForRelation(t,n);const o=e.getFocusedCell();e.startEditingCell({rowIndex:o.rowIndex,colKey:o.column})},this.getRenderedValue=()=>{const{node:{data:t},field:n}=this.props,o=t,r=o.value[n.name];return o?n.isRelation?null:n.isJson?JSON.stringify(r||null):void 0===r?n.defaultAsString:null===r?"null":n.isBigInt?n.isList?"["+r.map(e=>e.toString()).join(", ")+"]":r.toString():n.isBytes?n.isList?"["+r.map(t=>(t instanceof Uint8Array?e.from(t):t).toString("base64")).join(", ")+"]":(r instanceof Uint8Array?e.from(r):r).toString("base64"):n.isList?JSON.stringify(r):String(r):""}}render(){const{node:{data:e},field:t}=this.props,n=e;if(!n)return r.a.createElement("div",{className:c.a.loading});const o=n.value[t.name],i=void 0===o,s=null===o;return r.a.createElement("div",{className:a()(c.a.container,{[c.a.placeholder]:i||s,[c.a.relation]:t.isRelation})},t.isRelation&&r.a.createElement(l.a,{type:t.type,isList:t.isList,isNull:!o,count:(o||[]).length,onClick:this.handleClickRelation}),this.getRenderedValue())}}t.a=Object(i.a)(p)}).call(this,n(58).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(0),r=n.n(o),i=n(4),s=n.n(i),a=n(55),l=n.n(a);class u extends r.a.Component{render(){const{type:e,count:t=0,isList:n=!1,isNull:o=!1,isPressed:i=!1,onClick:a}=this.props;return r.a.createElement("div",{"data-cy":"relation-pill","data-cy-null":""+o,className:s()(l.a.pill,{[l.a.isNull]:o,[l.a.isPressed]:i}),onClick:a},n&&r.a.createElement("span",{className:l.a.count},t),r.a.createElement("span",{className:l.a.modelName},e))}}},function(e,t,n){e.exports={itemContainer:"booleanListInput__itemContainer___1f6Zr",itemDropdown:"booleanListInput__itemDropdown___2qi3a"}},function(e,t,n){e.exports={container:"dialog__container___3ja9Z",header:"dialog__header___3so_W",error:"dialog__error___3Pj0M",closeButton:"dialog__closeButton___2K5Cs",footer:"dialog__footer___3vGZ6"}},function(e,t,n){e.exports={container:"dropdownMenu__container___3EPTI",mask:"dropdownMenu__mask___3aRX_",item:"dropdownMenu__item___1XVeL",highlighted:"dropdownMenu__highlighted___3g9FB"}},function(e,t,n){e.exports={pill:"relationPill__pill___1Yu4q",modelName:"relationPill__modelName___2g8HA",isNull:"relationPill__isNull___1ZNrS",isPressed:"relationPill__isPressed___1dMfG",count:"relationPill__count___U2XjW"}},function(e,t,n){e.exports={container:"autosuggest__container___2qjda",input:"autosuggest__input___1IP9E",dropdown:"autosuggest__dropdown___3yFi_",match:"autosuggest__match___3ktdc",highlight:"autosuggest__highlight___2b60V"}},,function(e,t,n){"use strict";(function(e){
45
- /*!
46
- * The buffer module from node.js, for the browser.
47
- *
48
- * @author Feross Aboukhadijeh <http://feross.org>
49
- * @license MIT
50
- */
51
- var o=n(111),r=n(112),i=n(113);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return u(this,e,t,n)}function u(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,o):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|f(t,n),r=(e=a(e,o)).write(t,n);r!==o&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?a(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=a(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(o)return j(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function v(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function m(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,o,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,o,r){var i,s=1,a=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var c=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){for(var p=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){p=!1;break}if(p)return i}return-1}function C(e,t,n,o){n=Number(n)||0;var r=e.length-n;o?(o=Number(o))>r&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var s=0;s<o;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function w(e,t,n,o){return H(j(t,e.length-n),e,n,o)}function b(e,t,n,o){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function E(e,t,n,o){return b(e,t,n,o)}function _(e,t,n,o){return H(W(t),e,n,o)}function O(e,t,n,o){return H(function(e,t){for(var n,o,r,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),o=n>>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function R(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r<n;){var i,s,a,l,u=e[r],c=null,p=u>239?4:u>223?3:u>191?2:1;if(r+p<=n)switch(p){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[r+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[r+1],s=e[r+2],128==(192&i)&&128==(192&s)&&(l=(15&u)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[r+1],s=e[r+2],a=e[r+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,p=1):c>65535&&(c-=65536,o.push(c>>>10&1023|55296),c=56320|1023&c),o.push(c),r+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,o){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof o?a(e,t).fill(n,o):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return p(null,e)},l.allocUnsafeSlow=function(e){return p(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=l.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,r),r+=s.length}return o},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,o,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(o,r),c=e.slice(t,n),p=0;p<a;++p)if(u[p]!==c[p]){i=u[p],s=c[p];break}return i<s?-1:s<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},l.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(127&e[r]);return o}function D(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(e[r]);return o}function P(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var r="",i=t;i<n;++i)r+=V(e[i]);return r}function I(e,t,n){for(var o=e.slice(t,n),r="",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,o,r,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function x(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r<i;++r)e[n+r]=(t&255<<8*(o?r:1-r))>>>8*(o?r:1-r)}function F(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r<i;++r)e[n+r]=t>>>8*(o?r:3-r)&255}function L(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,o,i){return i||L(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function k(e,t,n,o,i){return i||L(e,0,n,8),r.write(e,t,n,o,52,8),n+8}l.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;n=new l(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=this[e+--t],r=1;t>0&&(r*=256);)o+=this[e+--t]*r;return o},l.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i<n&&(r*=256);)this[t+i]=e/r&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var r,i=o-n;if(this===e&&n<t&&t<o)for(r=i-1;r>=0;--r)e[r+t]=this[r+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=l.isBuffer(e)?e:j(new l(e,o).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var o=e.length,r=null,i=[],s=0;s<o;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,o){for(var r=0;r<o&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(33))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o,r=n(13);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(o||(o={}));var i=function(){function e(e){var t=this;this._state=o.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(o.RESOLVED,e)},this._reject=function(e){t._setResult(o.REJECTED,e)},this._setResult=function(e,n){t._state===o.PENDING&&(Object(r.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==o.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===o.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===o.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,o){if(Array.isArray(t))if(0!==t.length){var r=t.length,i=[];t.forEach((function(t,s){e.resolve(t).then((function(e){i[s]=e,0===(r-=1)&&n(i)})).then(null,o)}))}else n([]);else o(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var o=this;return new e((function(e,r){o._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void r(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void r(e)}else r(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,o){var r,i;return n.then((function(e){i=!1,r=e,t&&t()}),(function(e){i=!0,r=e,t&&t()})).then((function(){i?o(r):e(r)}))}))},e}()},function(e,t,n){e.exports={container:"tabCloseConfirmDialog__container___11H91",content:"tabCloseConfirmDialog__content___2QJO2",description:"tabCloseConfirmDialog__description___SBawK"}},function(e,t,n){e.exports={container:"updateReadyDialog__container___szetw",content:"updateReadyDialog__content___ykBmu",description:"updateReadyDialog__description___2u8Uf"}},function(e,t,n){e.exports={container:"tableCellRenderer__container___3dY9l",placeholder:"tableCellRenderer__placeholder___1N9Vk",relation:"tableCellRenderer__relation___3b7Ht",loading:"tableCellRenderer__loading___2N4i2"}},function(e,t,n){e.exports={container:"tableCellHeaderWithSearch__container___V9i5z",title:"tableCellHeaderWithSearch__title___1qqRD",input:"tableCellHeaderWithSearch__input___1rrdT",inputPlaceholder:"tableCellHeaderWithSearch__inputPlaceholder___HBsNg"}},function(e,t,n){e.exports={container:"spinner__container___382HS",one:"spinner__one___wpqjK",two:"spinner__two___24EM8",three:"spinner__three___KujVe",pulse:"spinner__pulse___1waL4"}},,function(e,t,n){e.exports={container:"tableEmptyOverlay__container___1BlLB"}},function(e,t,n){e.exports={input:"booleanInput__input___9r-jf"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var o=n(7),r=n(59),i=n(13),s=n(11),a=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,s){var a=this;return void 0===s&&(s=0),new r.a((function(r,l){var u=e[s];if(null===t||"function"!=typeof u)r(t);else{var c=u(o.a({},t),n);Object(i.m)(c)?c.then((function(t){return a._notifyEventProcessors(e,t,n,s+1).then(r)})).then(null,l):a._notifyEventProcessors(e,c,n,s+1).then(r).then(null,l)}}))},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=o.a({},this._tags,e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=o.a({},this._tags,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=o.a({},this._extra,e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=o.a({},this._extra,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._span&&(this._span.transaction=e),this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){var n;return this._context=o.a({},this._context,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=o.d(t._breadcrumbs),n._tags=o.a({},t._tags),n._extra=o.a({},t._extra),n._context=o.a({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=o.d(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=o.a({timestamp:Object(s.l)()},e);return this._breadcrumbs=void 0!==t&&t>=0?o.d(this._breadcrumbs,[n]).slice(-t):o.d(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=o.a({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=o.a({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=o.a({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=o.a({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._span&&(e.contexts=o.a({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=o.d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(o.d(l(),this._eventProcessors),e,t)},e}();function l(){var e=Object(s.f)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function u(e){l().push(e)}},function(e,t,n){e.exports={container:"input__container___2tuDB",input:"input__input___2y3V7",file:"input__file___23xmo"}},function(e,t,n){e.exports={container:"checkbox__container___2IDlh",checkbox:"checkbox__checkbox___2mfYm",checked:"checkbox__checked___2xTUv"}},function(e,t,n){e.exports={container:"tableCellEditor__container___kRCDR",invalid:"tableCellEditor__invalid___2pJv8",phantom:"tableCellEditor__phantom___2sqgm"}},function(e,t,n){e.exports={container:"layout__container___1n0mR",header:"layout__header___SYsle",body:"layout__body___UaADf"}},function(e,t,n){"use strict";
52
- /*
53
- object-assign
54
- (c) Sindre Sorhus
55
- @license MIT
56
- */var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=s(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))r.call(n,c)&&(l[c]=n[c]);if(o){a=o(n);for(var p=0;p<a.length;p++)i.call(n,a[p])&&(l[a[p]]=n[a[p]])}}return l}},function(e,t,n){"use strict";(function(e){
57
- /**
58
- * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v23.1.1
59
- * @link http://www.ag-grid.com/
60
- ' * @license MIT
61
- */
62
- Object.defineProperty(t,"__esModule",{value:!0});
63
- /**
64
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
65
- * @version v23.1.1
66
- * @link http://www.ag-grid.com/
67
- * @license MIT
68
- */
69
- var n=function(){function e(e,t,n,o){void 0===o&&(o=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,o||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var n=t.match(e.hexRe);if(n)return new e((o=parseInt(n[1],16))/255,(r=parseInt(n[2],16))/255,(i=parseInt(n[3],16))/255,(s=void 0!==n[4]?parseInt(n[4],16):255)/255);if(n=t.match(e.shortHexRe)){var o=parseInt(n[1],16),r=parseInt(n[2],16),i=parseInt(n[3],16),s=void 0!==n[4]?parseInt(n[4],16):15;return new e((o+=16*o)/255,(r+=16*r)/255,(i+=16*i)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var n=t.match(e.rgbRe);if(n)return new e(+n[1]/255,+n[2]/255,+n[3]/255);if(n=t.match(e.rgbaRe))return new e(+n[1]/255,+n[2]/255,+n[3]/255,+n[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,o,r){void 0===r&&(r=1);var i=e.HSBtoRGB(t,n,o);return new e(i[0],i[1],i[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var o=Math.min(e,t,n),r=Math.max(e,t,n),i=NaN;if(o!==r){var s=r-o,a=(r-e)/s,l=(r-t)/s,u=(r-n)/s;i=e===r?u-l:t===r?2+a-u:4+l-a,(i/=6)<0&&(i+=1)}return[360*i,0!==r?(r-o)/r:0,r]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var o=0,r=0,i=0;if(0===t)o=r=i=n;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=n*(1-t),u=n*(1-t*a),c=n*(1-t*(1-a));switch(s>>0){case 0:o=n,r=c,i=l;break;case 1:o=u,r=n,i=l;break;case 2:o=l,r=n,i=c;break;case 3:o=l,r=u,i=n;break;case 4:o=c,r=l,i=n;break;case 5:o=n,r=l,i=u}}return[o,r,i]},e.prototype.derive=function(t,n,o,r){var i=e.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&o>1&&(s=.05);var a=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);s=Math.max(Math.min(s*o,1),0);var u=Math.max(Math.min(this.a*r,1),0),c=e.HSBtoRGB(a,l,s);return c.push(u),e.fromArray(c)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({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",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",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"}),e}();
70
- /**
71
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
72
- * @version v23.1.1
73
- * @link http://www.ag-grid.com/
74
- * @license MIT
75
- */function o(e,t){void 0===t&&(t=",");for(var n,o,r,i=[],s=function(e){return"\r"===e||"\n"===e},a=!1,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){i[l]||(i[l]=[]),i[l][u]||(i[l][u]="")};if(f(),'"'===d){if(a)return'"'===h?(i[l][u]+='"',c++):a=!1,n=l,o=u,r=c,"continue";if(void 0===p||p===t||s(p))return a=!0,n=l,o=u,r=c,"continue"}if(!a){if(d===t)return u++,f(),n=l,o=u,r=c,"continue";if(s(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,n=l,o=u,r=c,"continue"}i[l][u]+=d,n=l,o=u,r=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=n,c=o,p=r;return i}var r,i,s,a,l,u,c=Object.freeze({__proto__:null,stringToArray:o});
76
- /**
77
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
78
- * @version v23.1.1
79
- * @link http://www.ag-grid.com/
80
- * @license MIT
81
- */function p(){return void 0===i&&(i=/*@cc_on!@*/!!document.documentMode),i}function d(){return void 0===s&&(s=!p()&&!!window.StyleMedia),s}function h(){if(void 0===r){var e=window;r=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||(t=e.safari&&e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return r}function f(){if(void 0===a){var e=window;a=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return a}function g(){if(void 0===l){var e=window;l=void 0!==e.InstallTrigger}return l}var v=Object.freeze({__proto__:null,isBrowserIE:p,isBrowserEdge:d,isBrowserSafari:h,isBrowserChrome:f,isBrowserFirefox:g,isIOSUserAgent:function(){return void 0===u&&(u=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),u},getMaxDivHeight:function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var o=2*e;if(n.style.height=o+"px",o>t||n.clientHeight!==o)break;e=o}return document.body.removeChild(n),e},getScrollbarWidth:function(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;return t.parentNode&&t.parentNode.removeChild(t),n},hasOverflowScrolling:function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),n=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var o=window.getComputedStyle(t);if("touch"===o.overflowScrolling&&(n=!0),!n)for(var r=0,i=e;r<i.length;r++)if("touch"===o[i[r]+"OverflowScrolling"]){n=!0;break}return t.parentNode&&t.parentNode.removeChild(t),n},getBodyWidth:function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},getBodyHeight:function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}});
82
- /**
83
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
84
- * @version v23.1.1
85
- * @link http://www.ag-grid.com/
86
- * @license MIT
87
- */function m(e){return null==e||""===e?null:e}function y(e,t){return void 0===t&&(t=!1),null!=e&&(t||""!==e)}function C(e){return!y(e)}function w(e){return y(e)&&e.toString?e.toString():null}function b(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.keys(e).map((function(t){return e[t]}))}var E=Object.freeze({__proto__:null,makeNull:m,exists:y,missing:C,missingOrEmpty:function(e){return!e||C(e)||0===e.length},toStringOrNull:w,referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:function(e,t,n){void 0===n&&(n=!1);var o=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&r)return 0;if(o)return-1;if(r)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"==typeof e){if(!n)return i(e,t);try{return e.localeCompare(t)}catch(n){return i(e,t)}}return i(e,t)},find:function e(t,n,o){if(null==t)return null;if(!Array.isArray(t))return e(b(t),n,o);for(var r=t,i=null,s=0;s<r.length;s++){var a=r[s];if("string"==typeof n){if(a[n]===o){i=a;break}}else if(n(a)){i=a;break}}return i},values:b}),_=/[&<>"']/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};
88
- /**
89
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
90
- * @version v23.1.1
91
- * @link http://www.ag-grid.com/
92
- * @license MIT
93
- */function R(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function S(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}var T=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function o(e){if(0==(4294967168&e))return t(e);var o="";return 0==(4294965248&e)?o=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),o=t(e>>12&15|224),o+=n(e,6)):0==(4292870144&e)&&(o=t(e>>18&7|240),o+=n(e,12),o+=n(e,6)),o+=t(63&e|128)}for(var r=function(e){for(var t,n,o=[],r=0,i=e.length;r<i;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<i?56320==(64512&(n=e.charCodeAt(r++)))?o.push(((1023&t)<<10)+(1023&n)+65536):(o.push(t),r--):o.push(t);return o}(e),i=r.length,s=-1,a="";++s<i;)a+=o(r[s]);return a},camelCaseToHyphen:R,hyphenToCamelCase:S,capitalise:function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()},escape:function(e){return null!=e&&e.replace?e.replace(_,(function(e){return O[e]})):e},camelCaseToHumanText:function(e){return e&&null!=e?e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" "):null}});
94
- /**
95
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
96
- * @version v23.1.1
97
- * @link http://www.ag-grid.com/
98
- * @license MIT
99
- */function D(e,t){if(t&&0!==t.length){if(!(t.indexOf(" ")>=0)){if(e.classList)e.classList.add(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ");n.indexOf(t)<0&&(n.push(t),e.setAttribute("class",n.join(" ")))}else e.setAttribute("class",t);return e}t.split(" ").forEach((function(t){return D(e,t)}))}}function P(e,t){if(e.classList)e.classList.remove(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ").filter((function(e){return e!==t})).join(" ");e.setAttribute("class",n)}}function I(e,t,n){n?D(e,t):P(e,t)}function A(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var n=e.className===t,o=e.className.indexOf(" "+t+" ")>=0,r=0===e.className.indexOf(t+" "),i=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return n||o||r||i}return!1}function N(e,t){I(e,"ag-hidden",!t)}function x(e){var t=window.getComputedStyle(e),n=t.height,o=t.width,r=t.paddingTop,i=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,u=t.marginRight,c=t.marginBottom,p=t.marginLeft,d=t.boxSizing;return{height:parseFloat(n),width:parseFloat(o),paddingTop:parseFloat(r),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(c),marginLeft:parseFloat(p),boxSizing:d}}function F(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function L(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function M(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n],r=e.children[n];r!==o&&e.insertBefore(o,r)}}function G(e,t){t=j(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function V(e,t){t=j(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function j(e){return"number"==typeof e?e+"px":e}function W(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function H(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function B(e){return W(e)||H(e)}var z=Object.freeze({__proto__:null,addCssClass:D,removeCssClass:P,addOrRemoveCssClass:I,radioCssClass:function(e,t,n){for(var o=e.parentElement.firstChild;o;)t&&I(o,t,o===e),n&&I(o,n,o!==e),o=o.nextSibling},containsClass:A,setDisplayed:N,setVisible:function(e,t){I(e,"ag-invisible",!t)},isElementChildOfClass:function(e,t,n){for(var o=0;e;){if(A(e,t))return!0;if(e=e.parentElement,n&&++o>n)break}return!1},getElementSize:x,getInnerHeight:function(e){var t=x(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height},getInnerWidth:function(e){var t=x(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width},getAbsoluteHeight:function(e){var t=x(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)},getAbsoluteWidth:function(e){var t=x(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)},getScrollLeft:function(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),f()&&(n=e.scrollWidth-e.clientWidth-n)),n},setScrollLeft:function(e,t,n){n&&((h()||f())&&(t=e.scrollWidth-e.clientWidth-t),g()&&(t*=-1)),e.scrollLeft=t},clearElement:F,removeElement:function(e,t){L(e.querySelector(t))},removeFromParent:L,isVisible:function(e){return null!==e.offsetParent},loadTemplate:M,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:function(e){return e&&e.clientHeight?e.clientHeight:0},offsetWidth:function(e){return e&&e.clientWidth?e.clientWidth:0},ensureDomOrder:function(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},setDomChildOrder:k,insertTemplateWithDomOrder:function(e,t,n){var o;return n?(n.insertAdjacentHTML("afterend",t),o=n.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,o=e.firstChild),o},prependDC:function(e,t){y(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:function(e,t){t&&Object.keys(t).forEach((function(n){var o=S(n);o&&(e.style[o]=t[n])}))},isHorizontalScrollShowing:function(e){return e.clientWidth<e.scrollWidth},isVerticalScrollShowing:function(e){return e.clientHeight<e.scrollHeight},setElementWidth:function(e,t){"flex"===t?(e.style.width=null,e.style.minWidth=null,e.style.maxWidth=null,e.style.flex="1 1 auto"):G(e,t)},setFixedWidth:G,setElementHeight:function(e,t){"flex"===t?(e.style.height=null,e.style.minHeight=null,e.style.maxHeight=null,e.style.flex="1 1 auto"):V(e,t)},setFixedHeight:V,formatSize:j,isNode:W,isElement:H,isNodeOrElement:B,copyNodeList:function(e){for(var t=e?e.length:0,n=[],o=0;o<t;o++)n.push(e[o]);return n},iterateNamedNodeMap:function(e,t){if(e)for(var n=0;n<e.length;n++){var o=e[n];t(o.name,o.value)}},setCheckboxState:function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0}});
100
- /**
101
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
102
- * @version v23.1.1
103
- * @link http://www.ag-grid.com/
104
- * @license MIT
105
- */function U(e,t){e&&!C(e)&&(Array.isArray(e)?e.forEach((function(e,n){return t(""+n,e)})):Object.keys(e).forEach((function(n){return t(n,e[n])})))}function q(e,t){return e[t]}function Y(e,t,n){e[t]=n}function K(e,t,n,o){var r=q(e,n);void 0!==r&&Y(t,n,o?o(r):r)}var $=Object.freeze({__proto__:null,iterateObject:U,cloneObject:function(e){for(var t={},n=Object.keys(e),o=0;o<n.length;o++){var r=n[o],i=e[r];t[r]=i}return t},deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},getProperty:q,setProperty:Y,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];n.forEach((function(n){return K(e,t,n)}))},copyPropertyIfPresent:K,getAllKeysInObjects:function(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)},mergeDeep:function e(t,n,o){void 0===o&&(o=!0),y(n)&&U(n,(function(n,r){var i=t[n];i!==r&&("object"!=typeof i||"object"!=typeof r||Array.isArray(i)?(o||void 0!==r)&&(t[n]=r):e(i,r))}))},assign:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){y(t)&&U(t,(function(t,n){e[t]=n}))})),e},missingOrEmptyObject:function(e){return C(e)||0===Object.keys(e).length},get:function(e,t,n){if(null==e)return n;for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return n;var i=r[o[0]];return null!=i?i:n},set:function(e,t,n){if(null!=e){for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return;r[o[0]]=n}},deepFreeze:function e(t){return Object.freeze(t),b(t).filter((function(e){return null!=e})).forEach((function(t){"object"!=typeof t&&"function"!=typeof t||e(t)})),t},getValueUsingField:function(e,t,n){if(t&&e){if(!n)return e[t];for(var o=t.split("."),r=e,i=0;i<o.length;i++)if(C(r=r[o[i]]))return null;return r}}});
106
- /**
107
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
108
- * @version v23.1.1
109
- * @link http://www.ag-grid.com/
110
- * @license MIT
111
- */var Q=Object.freeze({__proto__:null,getNameOfClass:function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var o=0;o<e.length;o++){var r=e[o];Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var i=0,s=0,a=0,l=0,u=0,c=0;c<t;c++)i+=c,s+=u=e[c],l+=c*c,a+=c*u;var p=(t*a-i*s)/(t*l-i*i),d=s/t-p*i/t,h=[];for(c=0;c<=t;c++)h.push(parseFloat((c*p+d).toFixed(n)));return h},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return U(e,(function(e,n){var o=R(e);t.push(o+": "+n+";")})),t.join(" ")},message:function(e){var t=document.createElement("div"),n=document.querySelector("#__ag__message");if(t.innerHTML=e,!n){n=M('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(n)}n.insertBefore(t,n.children[0])},bindCellRendererToHtmlElement:function(e,t){e.then((function(e){var n=e.getGui();null!=n&&("object"==typeof n?t.appendChild(n):t.innerHTML=n)}))}});
112
- /**
113
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
114
- * @version v23.1.1
115
- * @link http://www.ag-grid.com/
116
- * @license MIT
117
- */function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var o=e[n];if(y(o))return o}return null}function J(e){if(e&&e.length)return e[e.length-1]}function Z(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&re(e,(function(e,o){return n?n(e,t[o]):t[o]===e}))}function ee(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function te(e,t){ie(t,(function(t){return ee(e,t)}))}function ne(e,t,n){e.splice(n,0,t)}function oe(e,t){return e.indexOf(t)>-1}function re(e,t){if(null==e)return!0;for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function ie(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n],n)}function se(e,t){if(null==e)return null;for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var ae=Object.freeze({__proto__:null,firstExistingValue:X,anyExists:function(e){return e&&null!=X(e)},existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:J,areEqual:Z,compareArrays:function(e,t){return Z(e,t)},shallowCompare:function(e,t){return Z(e,t)},sortNumerically:function(e){return e.sort((function(e,t){return e-t}))},removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var o=e[n]===t,r=e[n+1]===t;o&&r&&e.splice(n+1,1)}},removeFromArray:ee,removeAllFromArray:te,insertIntoArray:ne,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){ne(e,t[o],n)}},moveInArray:function(e,t,n){te(e,t),ie(t.slice().reverse(),(function(t){return ne(e,t,n)}))},includes:oe,flatten:function(e){return[].concat.apply([],e)},pushAll:function(e,t){null!=t&&null!=e&&ie(t,(function(t){return e.push(t)}))},toStrings:function(e){return se(e,w)},findIndex:function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1},every:re,some:function(e,t){if(null==e)return!1;for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1},forEach:ie,map:se,filter:function(e,t){if(null==e)return null;for(var n=[],o=0;o<e.length;o++)t(e[o],o)&&n.push(e[o]);return n},reduce:function(e,t,n){if(null==e||null==n)return null;for(var o=n,r=0;r<e.length;r++)o=t(o,e[r],r);return o},forEachSnapshotFirst:function(e,t){e&&e.slice(0).forEach(t)}});
118
- /**
119
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
120
- * @version v23.1.1
121
- * @link http://www.ag-grid.com/
122
- * @license MIT
123
- */function le(e,t){for(var n=""+e;n.length<t;)n="0"+n;return n}function ue(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}var ce=Object.freeze({__proto__:null,padStart:le,createArrayOfNumbers:function(e,t){for(var n=[],o=e;o<=t;o++)n.push(o);return n},isNumeric:function(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)},getMaxSafeInteger:function(){return Number.MAX_SAFE_INTEGER||9007199254740991},cleanNumber:function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},decToHex:function(e,t){for(var n="",o=0;o<t;o++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e){return"number"!=typeof e?"":ue(Math.round(100*e)/100)},formatNumberCommas:ue,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}});
124
- /**
125
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
126
- * @version v23.1.1
127
- * @link http://www.ag-grid.com/
128
- * @license MIT
129
- */function pe(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return le(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return le(e,2)})).join(":")),o}function de(e){if(!e)return null;var t=e.split(" "),n=t[0],o=t[1];if(!n)return null;var r=n.split("-").map((function(e){return parseInt(e,10)}));if(3!==r.filter((function(e){return!isNaN(e)})).length)return null;var i=r[0],s=r[1],a=r[2],l=new Date(i,s-1,a);if(l.getFullYear()!==i||l.getMonth()!==s-1||l.getDate()!==a)return null;if(!o||"00:00:00"===o)return l;var u=o.split(":").map((function(e){return parseInt(e,10)})),c=u[0],p=u[1],d=u[2];return c>=0&&c<24&&l.setHours(c),p>=0&&p<60&&l.setMinutes(p),d>=0&&d<60&&l.setSeconds(d),l}var he=Object.freeze({__proto__:null,serialiseDate:pe,parseDateTimeFromString:de}),fe=["touchstart","touchend","touchmove","touchcancel"],ge=["mouseover","mouseout","mouseenter","mouseleave"],ve={};
130
- /**
131
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
132
- * @version v23.1.1
133
- * @link http://www.ag-grid.com/
134
- * @license MIT
135
- */var me,ye=(me={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof ve[e])return ve[e];var t=document.createElement(me[e]||"div"),n=(e="on"+e)in t;return n||(t.setAttribute(e,"return;"),n="function"==typeof t[e]),t=null,ve[e]=n});function Ce(e){var t=e;return t.target||t.srcElement}function we(e){for(var t=[],n=Ce(e);n;)t.push(n),n=n.parentElement;return t}function be(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:we(e)}var Ee=Object.freeze({__proto__:null,stopPropagationForAgGrid:function(e){e.__ag_Grid_Stop_Propagation=!0},isStopPropagationForAgGrid:function(e){return!0===e.__ag_Grid_Stop_Propagation},isEventSupported:ye,getCellCompForEvent:function(e,t){for(var n=Ce(t);n;){var o=e.getDomData(n,"cellComp");if(o)return o;n=n.parentElement}return null},addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},getTarget:Ce,isElementInEventPath:function(e,t){return!(!t||!e)&&be(t).indexOf(e)>=0},createEventPath:we,addAgGridEventPath:function(e){e.__agGridEventPath=be(e)},getEventPath:be,addSafePassiveEventListener:function(e,t,n,o){var r=oe(fe,n)?{passive:!0}:void 0;oe(ge,n)?e&&e.addEventListenerOutsideAngular&&e.addEventListenerOutsideAngular(t,n,o,r):t.addEventListener(n,o,r)}}),_e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Oe=/([^\s,]+)/g,Re={};
136
- /**
137
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
138
- * @version v23.1.1
139
- * @link http://www.ag-grid.com/
140
- * @license MIT
141
- */function Se(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function Te(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a=n&&!o;window.clearTimeout(o),o=window.setTimeout((function(){o=null,n||e.apply(s,r)}),t),a&&e.apply(s,r)}}var De=Object.freeze({__proto__:null,doOnce:function(e,t){Re[t]||(e(),Re[t]=!0)},getFunctionParameters:function(e){var t=e.toString().replace(_e,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(Oe)||[]},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},executeInAWhile:function(e){Se(e,400)},executeNextVMTurn:function(e){Se(e,0)},executeAfter:Se,debounce:Te,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},callIfPresent:function(e){e&&e()}});
142
- /**
143
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
144
- * @version v23.1.1
145
- * @link http://www.ag-grid.com/
146
- * @license MIT
147
- */function Pe(e,t,n,o){var r=o?Ne:Ae,i=t.map((function(t){return{value:t,relevance:r(e.toLowerCase(),t.toLocaleLowerCase())}}));return i.sort((function(e,t){return t.relevance-e.relevance})),n&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function Ie(e){var t,n,o,r=e.toLowerCase(),i=new Array(r.length-1);for(t=n=0,o=i.length;n<=o;t=n+=1)i[t]=r.slice(t,t+2);return i}function Ae(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=Ie(e),i=Ie(t),s=r.length+i.length,a=0;for(n=0,o=r.length;n<o;n++){var l,u=r[n],c=void 0;for(c=0,l=i.length;c<l;c++){u===i[c]&&a++}}return a>0?2*a/s:0}function Ne(e,t){for(var n=e.replace(/\s/g,""),o=t.replace(/\s/g,""),r=0,i=0,s=0;s<n.length;s++){var a=o.indexOf(n[s]);-1!==a&&(i=a,r+=100*(o.length-i)/o.length,r*=r)}return r}var xe=Object.freeze({__proto__:null,fuzzyCheckStrings:function(e,t,n){var o={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return o[e]=Pe(e,n)})),o},fuzzySuggestions:Pe,get_bigrams:Ie,string_distances:Ae,string_weighted_distances:Ne}),Fe={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};
148
- /**
149
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
150
- * @version v23.1.1
151
- * @link http://www.ag-grid.com/
152
- * @license MIT
153
- */function Le(e,t,n,o){var r=null,i=n&&n.getColDef().icons;if(i&&(r=i[e]),t&&!r){var s=t.getIcons();s&&(r=s[e])}if(!r){var a=document.createElement("span"),l=Fe[e];return l||(o?l=e:(console.warn("ag-Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),a}var u=void 0;if("function"==typeof r)u=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");u=r}return"string"==typeof u?M(u):B(u)?u:void console.warn("ag-Grid: iconRenderer should return back a string or a dom object")}var Me=Object.freeze({__proto__:null,iconNameClassMap:Fe,createIcon:function(e,t,n){var o=Le(e,t,n);if(o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r},createIconNoSpan:Le}),ke=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_Z=90,e.KEY_Y=89,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e}();
154
- /**
155
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
156
- * @version v23.1.1
157
- * @link http://www.ag-grid.com/
158
- * @license MIT
159
- */function Ge(e,t){return(e.which||e.keyCode)===t}var Ve=Object.freeze({__proto__:null,isKeyPressed:Ge,isCharacterKey:function(e){var t=e.which;return"number"==typeof t&&t?!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&16!==e.which:void 0===t},isEventFromPrintableCharacter:function(e){var t=String.fromCharCode(e.charCode);if(Ge(e,ke.KEY_NEW_LINE))return!1;if(e.altKey||e.ctrlKey)return!1;if(y(e.key)){var n=1===e.key.length,o=function(e){return(d()||p())&&"Del"===e.key&&46===e.charCode}(e);return n||o}return"qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}".indexOf(t)>=0},isUserSuppressingKeyboardEvent:function(e,t,n,o,r){var i=e.getSuppressKeyboardEventFunc(),s=o.getColDef().suppressKeyboardEvent;if(!i&&!s)return!1;var a={event:t,editing:r,column:o,api:e.getApi(),node:n,data:n.data,colDef:o.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!s||!s(a))||!!i&&i(a)}});
160
- /**
161
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
162
- * @version v23.1.1
163
- * @link http://www.ag-grid.com/
164
- * @license MIT
165
- */var je=Object.freeze({__proto__:null,keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}});
166
- /**
167
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
168
- * @version v23.1.1
169
- * @link http://www.ag-grid.com/
170
- * @license MIT
171
- */var We=Object.freeze({__proto__:null,normalizeWheel:function(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}},isLeftClick:function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},areEventsNear:function(e,t,n){if(0===n)return!1;var o=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(o,r)<=n}});
172
- /**
173
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
174
- * @version v23.1.1
175
- * @link http://www.ag-grid.com/
176
- * @license MIT
177
- */var He=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(e){for(var n=function(e,n){var o=t[e.id],r=t[n.id],i=void 0!==o,s=void 0!==r;return i&&s?o-r:!i&&!s?e.__objectId-n.__objectId:i?1:-1},o=!1,r=0;r<e.length-1;r++)if(n(e[r],e[r+1])>0){o=!0;break}o&&e.sort(n)}},traverseNodesWithKey:function(e,t){var n=[];!function e(o){o.forEach((function(o){if(o.group||o.hasChildren()){n.push(o.key);var r=n.join("|");t(o,r),e(o.childrenAfterGroup),n.pop()}}))}(e)}});
178
- /**
179
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
180
- * @version v23.1.1
181
- * @link http://www.ag-grid.com/
182
- * @license MIT
183
- */var Be,ze=Object.freeze({__proto__:null,convertToSet:function(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}}),Ue=function(){return(Ue=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},qe=Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue({},Q),ae),v),c),he),z),Ee),De),xe),E),Me),Ve),je),We),ce),$),He),ze),T),Ye=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();
184
- /**
185
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
186
- * @version v23.1.1
187
- * @link http://www.ag-grid.com/
188
- * @license MIT
189
- */(
190
- /**
191
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
192
- * @version v23.1.1
193
- * @link http://www.ag-grid.com/
194
- * @license MIT
195
- */
196
- Be=t.PromiseStatus||(t.PromiseStatus={}))[Be.IN_PROGRESS=0]="IN_PROGRESS",Be[Be.RESOLVED=1]="RESOLVED";var Ke=function(){function e(e){var n=this;this.status=t.PromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],e((function(e){return n.onDone(e)}),(function(e){return n.onReject(e)}))}return e.all=function(t){return new e((function(e){var n=t.length,o=new Array(n);ie(t,(function(t,r){t.then((function(t){o[r]=t,0===--n&&e(o)}))}))}))},e.resolve=function(t){return new e((function(e){return e(t)}))},e.prototype.then=function(e){this.status===t.PromiseStatus.IN_PROGRESS?this.waiters.push(e):e(this.resolution)},e.prototype.map=function(t){var n=this;return new e((function(e){return n.then((function(n){return e(t(n))}))}))},e.prototype.resolveNow=function(e,n){return this.status==t.PromiseStatus.IN_PROGRESS?e:n(this.resolution)},e.prototype.onDone=function(e){this.status=t.PromiseStatus.RESOLVED,this.resolution=e,ie(this.waiters,(function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),$e=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),Qe=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=qe.toStringOrNull(e);for(var n=0;;){var o=void 0;if(e?(o=e,0!==n&&(o+="_"+n)):t?(o=t,0!==n&&(o+="_"+n)):o=""+n,!this.existingKeys[o])return this.existingKeys[o]=!0,o;n++}},e}(),Xe=function(){function e(e,t){if(this.beanWrappers={},this.componentsMappedByName={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return qe.values(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},e.prototype.createComponentFromElement=function(e,t,n){var o=e.nodeName,r=n?n[e.getAttribute("ref")]:void 0;return this.createComponent(o,t,e,r)},e.prototype.createComponent=function(e,t,n,o){if(this.componentsMappedByName&&this.componentsMappedByName[e]){this.componentsMappedByName[e];var r=new this.componentsMappedByName[e](o);return this.wireBean(r,t),r}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),qe.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),qe.iterateObject(this.beanWrappers,(function(t,n){var o;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(o=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,i,s=e.getBeansForParameters(o,n.bean.name),a=(r=n.bean,i=[null].concat(s),new(r.bind.apply(r,i)));n.beanInstance=a}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n=void 0;return n=e.prototype.constructor?e.prototype.constructor.name:""+e,void console.error("context item "+n+" is not a bean")}var o={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=o},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=t.lookupBeanInstance(o,n.beanName,n.optional);e[n.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){qe.iterateObject(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var i=t.getBeansForParameters(r,o);e[n].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var o=n.constructor;if(o.hasOwnProperty("__agBeanMetaData"))t(o.__agBeanMetaData,this.getBeanName(o));n=Object.getPrototypeOf(n)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var n=this,o=[];return e&&qe.iterateObject(e,(function(e,r){var i=n.lookupBeanInstance(t,r);o[Number(e)]=i})),o},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var o=this.beanWrappers[t];return o?o.beanInstance:(n||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach((function(e){n.forEachMetaDataInHierarchy(e,(function(n){var o=n[t];o&&o.forEach((function(t){return e[t]()}))}))}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e}();
197
- /**
198
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
199
- * @version v23.1.1
200
- * @link http://www.ag-grid.com/
201
- * @license MIT
202
- */function Je(e,t,n){var o=st(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function Ze(e,t,n){var o=st(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function et(e,t,n){var o=st(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function tt(e){return function(t){st(t).beanName=e}}function nt(e){return function(t,n,o){rt(t,e,!1,t,n,null)}}function ot(e){return function(t,n,o){rt(t,e,!0,t,n,null)}}function rt(e,t,n,o,r,i){if(null!==t)if("number"!=typeof i){var s=st(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:n})}else console.error("ag-Grid: Autowired should be on an attribute");else console.error("ag-Grid: Autowired name should not be null")}function it(e){return function(t,n,o){var r,i="function"==typeof t?t:t.constructor;if("number"==typeof o){var s=void 0;n?(r=st(i),s=n):(r=st(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][o]=e}}}function st(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}
203
- /**
204
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
205
- * @version v23.1.1
206
- * @link http://www.ag-grid.com/
207
- * @license MIT
208
- */var at,lt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ut=function(e,t){return function(n,o){t(n,o,e)}},ct=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}var t;return t=e,e.prototype.setBeans=function(e,t,n){if(void 0===n&&(n=null),this.logger=e.create("EventService"),n){var o=t.useAsyncEvents();this.addGlobalListener(n,o)}},e.prototype.getListeners=function(e,t){var n=t?this.allAsyncListeners:this.allSyncListeners,o=n.get(e);return o||(o=new Set,n.set(e,o)),o},e.prototype.addEventListener=function(e,t,n){var o=this;return void 0===n&&(n=!1),this.getListeners(e,n).add(t),function(){return o.removeEventListener(e,t,n)}},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n).delete(t)},e.prototype.addModalPriorityEventListener=function(e,n,o){return void 0===o&&(o=!1),this.addEventListener(e+t.PRIORITY,n,o)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,n){var o=this,r=e.type,i=function(t){return t.forEach((function(t){n?o.dispatchAsync((function(){return t(e)})):t(e)}))};i(this.getListeners(r+t.PRIORITY,n)),i(this.getListeners(r,n)),(n?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(t){n?o.dispatchAsync((function(){return t(r,e)})):t(r,e)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},e.PRIORITY="-P1",lt([ut(0,it("loggerFactory")),ut(1,it("gridOptionsWrapper")),ut(2,it("globalEventListener"))],e.prototype,"setBeans",null),e=t=lt([tt("eventService")],e)}();(
209
- /**
210
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
211
- * @version v23.1.1
212
- * @link http://www.ag-grid.com/
213
- * @license MIT
214
- */
215
- at=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",at.CommunityAllModules="@ag-grid-community/all",at.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",at.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",at.CsvExportModule="@ag-grid-community/csv-export",at.RowNodeCache="@ag-grid-community/row-node-cache",at.EnterpriseCoreModule="@ag-grid-enterprise/core",at.EnterpriseAllModules="@ag-grid-enterprise/all",at.RowGroupingModule="@ag-grid-enterprise/row-grouping",at.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",at.FiltersToolPanelModule="@ag-grid-enterprise/filters-tool-panel",at.MenuModule="@ag-grid-enterprise/menu",at.SetFilterModule="@ag-grid-enterprise/set-filter",at.StatusBarModule="@ag-grid-enterprise/status-bar",at.SideBarModule="@ag-grid-enterprise/side-bar",at.RangeSelectionModule="@ag-grid-enterprise/range-selection",at.MasterDetailModule="@ag-grid-enterprise/master-detail",at.RichSelectModule="@ag-grid-enterprise/rich-select",at.GridChartsModule="@ag-grid-enterprise/charts",at.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",at.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",at.ExcelExportModule="@ag-grid-enterprise/excel-export",at.ClipboardModule="@ag-grid-enterprise/clipboard",at.DateTimeCellEditorModule="@ag-grid-enterprise/date-time-cell-editor",at.AngularModule="@ag-grid-community/angular",at.ReactModule="@ag-grid-community/react",at.VueModule="@ag-grid-community/vue",at.PolymerModule="@ag-grid-community/polymer";
216
- /**
217
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
218
- * @version v23.1.1
219
- * @link http://www.ag-grid.com/
220
- * @license MIT
221
- */
222
- var pt=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&qe.doOnce((function(){console.warn("ag-Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid-packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(e,t){if(this.isRegistered(e))return!0;var n=t+e,o="ag-Grid: unable to use "+t+" as module "+e+" is not present. Please see: https://www.ag-grid.com/javascript-grid-modules/";return qe.doOnce((function(){console.warn(o)}),n),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return qe.values(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),dt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ht=function(){function e(e,t,n,o){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ct,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=n,this.primary=o}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.colDef.flex&&(this.flex=this.colDef.flex),this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var n=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=qe.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!n,this.tooltipFieldContainsDots=qe.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!n,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(qe.missing(this.colDef)||qe.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function n(e,t,n){qe.doOnce((function(){n?console.warn(e,n):qe.doOnce((function(){return console.warn(e)}),t)}),t)}if(!pt.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){qe.exists(e[o])&&(pt.isPackageBased()?n("ag-Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):n("ag-Grid: "+o+" is only valid with ag-Grid Enterprise Module "+t.ModuleNames.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(pt.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(pt.isPackageBased()?n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),pt.isRegistered(t.ModuleNames.DateTimeCellEditorModule)||"agRichSelect"!==this.colDef.cellEditor&&"agDateTimeCellEditor"!==this.colDef.cellEditor||(pt.isPackageBased()?n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnDateTimeMissing"):n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+t.ModuleNames.DateTimeCellEditorModule,"ColumnDateTimeMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){qe.exists(e[t])&&n("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}qe.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&n("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),qe.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup","ColumnCheck_sksldjf"),qe.get(this,"colDef.cellRendererParams.keyMap",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_ieiruhgdf"),qe.get(this,"colDef.cellRendererParams.keyMap",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_uitolghj"),e.floatingCellRenderer&&(n("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer","ColumnCheck_soihwewe"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(n("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework","ColumnCheck_zdkiouhwer"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams","ColumnCheck_retiuhjs"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(n("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter","ColumnCheck_qwroeihjdf"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(n("ag-Grid: since v12, cellFormatter is now valueFormatter","ColumnCheck_eoireknml"),qe.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&n("ag-Grid: since v15, headerCellTemplate is gone, use header component instead.","ColumnCheck_eroihxcm"),e.headerCellRenderer&&n("ag-Grid: since v15, headerCellRenderer is gone, use header component instead.","ColumnCheck_terteuh"),e.volatile&&n("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells.","ColumnCheck_weoihjxcv"),e.suppressSorting&&(n("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.","ColumnCheck_43ljrer",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(n("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.","ColumnCheck_erlkhfdm",this.colDef),this.colDef.filter=!1),e.suppressResize&&(n("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.","ColumnCheck_weoihjxcv",this.colDef),this.colDef.resizable=!1),e.tooltip&&(n("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.","ColumnCheck_adslknjwef",this.colDef),this.colDef.tooltipValueGetter=e.tooltip),e.suppressToolPanel&&(n("ag-Grid: since v22, colDef.suppressToolPanel is gone, instead use suppressColumnsToolPanel / suppressFiltersToolPanel.","ColumnCheck_weihjlsjkdf",this.colDef),this.colDef.suppressColumnsToolPanel=!0)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===ke.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===ke.SORT_DESC},e.prototype.isSortNone=function(){return qe.missing(this.sort)},e.prototype.isSorting=function(){return qe.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,o){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);o&&qe.mergeDeep(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===ke.PINNED_LEFT?this.pinned=ke.PINNED_LEFT:e===ke.PINNED_RIGHT?this.pinned=ke.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===ke.PINNED_LEFT||this.pinned===ke.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===ke.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===ke.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(qe.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(qe.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(t,n){void 0===n&&(n="api"),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.flex&&"flex"!==n&&(this.flex=0),this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,n)))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("ag-Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("ag-Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("ag-Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",dt([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),dt([nt("columnUtils")],e.prototype,"columnUtils",void 0),dt([nt("columnApi")],e.prototype,"columnApi",void 0),dt([nt("gridApi")],e.prototype,"gridApi",void 0),dt([nt("context")],e.prototype,"context",void 0),dt([Ze],e.prototype,"initialise",null),e}(),ft=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gt=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new ct,this.groupId=t,this.instanceId=n,this.originalColumnGroup=e,this.pinned=o}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=qe.last(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var n=!1;return this.children.forEach((function(o){t===o&&(n=!0),o instanceof e&&o.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof ht?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof ht?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var n=this;if(this.isPadding())for(;n.getParent()&&n.isPadding();)n=n.getParent();n.originalColumnGroup.isExpandable()?this.children.forEach((function(o){switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.originalColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:n.originalColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:o instanceof e&&o.isPadding()&&!o.displayedChildren.length||t.displayedChildren.push(o)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.HEADER_GROUP_PADDING="padding",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",ft([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),vt=function(){function e(e,t,n,o){this.localEventService=new ct,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=n,this.level=o}return e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(n){n instanceof ht?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?gt.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(ht.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,o=!1,r=this.findChildren(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();if(l===gt.HEADER_GROUP_SHOW_OPEN)t=!0,o=!0;else if(l===gt.HEADER_GROUP_SHOW_CLOSED)n=!0,o=!0;else{if(t=!0,n=!0,l===gt.HEADER_GROUP_PADDING)o=o||a.children.some((function(e){return void 0!==e.getColumnGroupShow()}))}}}var u=t&&n&&o;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildren=function(){var t=this.children,n=t[0];if(n&&(!n.isPadding||!n.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),mt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},yt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ct=function(e,t){return function(n,o){t(n,o,e)}},wt=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,n){var o=new Qe;if(n){var r=n.map((function(e){return e.getId()}));o.addExistingKeys(r)}var i=n?n.slice():null,s=this.recursivelyCreateColumns(e,0,t,i,o,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,o);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof vt&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var n=this,o=[];return e.forEach((function(e){var r=n.createAutoGroupTreeItem(t,e);o.push(r)})),o},e.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,o=this.findDepth(e)-1;o>=0;o--){var r=new vt(null,"FAKE_PATH_"+t.getId()+"}_"+o,!0,o);this.context.wireBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},e.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof vt;)t++,n=n[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,n,o){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof vt){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,o);a.setChildren(l),r.push(a)}else{for(var u=void 0,c=void 0,p=n-1;p>=t;p--){var d=o.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new vt(h,d,!0,t);this.context.wireBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u){if(r.push(u),e.some((function(e){return e instanceof vt}))){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},e.prototype.findMaxDept=function(e,t){for(var n=t,o=0;o<e.length;o++){var r=e[o];if(r instanceof vt){var i=r,s=this.findMaxDept(i.getChildren(),t+1);n<s&&(n=s)}}return n},e.prototype.recursivelyCreateColumns=function(e,t,n,o,r,i){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(n,e,t,o,r,i):s.createColumn(n,e,o,r,i),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,n,o,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId,null),l=new vt(s,a,!1,n);this.context.wireBean(l);var u=this.recursivelyCreateColumns(s.children,n+1,e,o,r,l);return l.setChildren(u),l},e.prototype.createMergedColGroupDef=function(e){var t={};return qe.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),qe.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,n,o,r){var i=this.mergeColDefs(t);this.checkForDeprecatedItems(i);var s=this.findExistingColumn(t,n);if(s)s.setColDef(i,t);else{var a=o.getUniqueKey(i.colId,i.field);s=new ht(i,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var n=qe.find(t,(function(t){var n=t.getUserProvidedColDef();return!!n&&(n===e||!(null===n.colId||void 0===n.colId)&&n.colId===e.colId)}));return n&&qe.removeFromArray(t,n),n},e.prototype.mergeColDefs=function(e){var t={};return qe.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),qe.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var n;if(e.type instanceof Array){e.type.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e.type}else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");n=e.type.split(",")}var o=qe.assign({},this.gridOptionsWrapper.getColumnTypes(),mt);n.forEach((function(e){var n=o[e.trim()];n?qe.assign(t,n):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},yt([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),yt([nt("columnUtils")],e.prototype,"columnUtils",void 0),yt([nt("context")],e.prototype,"context",void 0),yt([Ct(0,it("loggerFactory"))],e.prototype,"setBeans",null),e=yt([tt("columnFactory")],e)}(),bt=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e}(),Et=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t="number"!=typeof n?0:n+1,this.existingIds[e]=t,t},e}(),_t=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ot=function(e,t){return function(n,o){t(n,o,e)}},Rt=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0,this.flexActive=!1}return e.prototype.init=function(){this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var e=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns,r=this.columnFactory.createColumnTree(e,!0,o);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,o),this.extractPivotColumns(t,o),this.createValueColumns(t,o),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isImmutableColumns()&&n&&this.resetColumnState(!0,t);var i={type:bt.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(i);var s={type:bt.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s),this.flexActive=this.getDisplayedCenterColumns().some((function(e){return!!e.getFlex()}))},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},e.prototype.checkDisplayedVirtualColumns=function(){if(null!=this.displayedCenterColumns){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");if(this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")){var t={type:bt.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:bt.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var n=this.getPrimaryColumn(t),o=null;return this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;Z(r,e)&&i===n&&(o=t)})),o},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,n=this.displayedRightColumns?qe.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?qe.last(this.displayedLeftColumns):null,n=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===n,e)}))},e.prototype.autoSizeColumns=function(e,t,n){var o=this;void 0===n&&(n="api"),this.animationFrameService.flushAllFrames();var r=[],i=-1;for(null==t&&(t=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==i;)i=0,this.actionOnGridColumns(e,(function(e){if(r.indexOf(e)>=0)return!1;var s=o.autoWidthCalculator.getPreferredWidthForColumn(e,t);if(s>0){var a=o.normaliseColumnWidth(e,s);e.setActualWidth(a,n),r.push(e),i++}return!0}),n);if(r.length){var s={type:bt.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"};this.eventService.dispatchEvent(s)}},e.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns([e],t,n)},e.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns(n,e,t)},e.prototype.getColumnsFromTree=function(e){var t=[],n=function(e){for(var o=0;o<e.length;o++){var r=e[o];r instanceof ht?t.push(r):r instanceof vt&&n(r.getChildren())}};return n(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case ke.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case ke.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,n,o){for(var r,i=[],s=null,a=function(a){var l,u=t[a],c=t.length-a,p=Math.min(u.getColSpan(e),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(n?(l=!1,d.forEach((function(e){n(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&s)!!o&&o(u)&&i.push(s);i.push(u)}s=u,r=a},l=0;l<t.length;l++)a(l),l=r;return i},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,n,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),n=e.getLeft()+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&n<o)&&!(t>r&&n>r)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,n,o,r,i){var s=this;if(void 0===i&&(i="api"),e&&!qe.missingOrEmpty(e)){var a=!1;if(e.forEach((function(e){var r=s.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;qe.removeFromArray(t,r)}o(r),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var l={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,bt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),bt.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),bt.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),bt.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,bt.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),bt.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,n,o,r){var i=this;t.length=0,qe.exists(e)&&e.forEach((function(e){var n=i.getPrimaryColumn(e);n&&t.push(n)})),this.primaryColumns.forEach((function(e){var n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var s={type:n,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,bt.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),bt.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),bt.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},e.prototype.setColumnWidths=function(e,t,n,o){var r=this;void 0===o&&(o="api");var i=[];e.forEach((function(e){var n=r.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(t=!t),t)){var o=r.getDisplayedColAfter(n);if(!o)return;var s=n.getActualWidth()-e.newWidth,a=o.getActualWidth()+s;i.push({width:a,ratios:[1],columns:[o]})}})),0!==i.length&&(this.resizeColumnSets(i,n,o),this.flexActive&&this.refreshFlexedColumns())},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,o=0,r=0,i=!0;return t.forEach((function(e){o+=e.getMinWidth(),e.getMaxWidth()>0?r+=e.getMaxWidth():i=!1})),n>=o&&(!i||n<=r)},e.prototype.resizeColumnSets=function(e,t,n){if(!e||e.every(this.checkMinAndMaxWidthsForSet.bind(this))){var o=[],r=[];e.forEach((function(e){var t=e.width,i=e.columns,s=e.ratios,a={},l={};i.forEach((function(e){return r.push(e)}));for(var u=!0,c=0,p=function(){if(++c>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";u=!1;var e=[],n=0,o=t;i.forEach((function(t,r){if(l[t.getId()])o-=a[t.getId()];else{e.push(t);var i=s[r];n+=i}}));var r=1/n;e.forEach((function(n,i){var c;i===e.length-1?c=o:(c=Math.round(s[i]*t*r),o-=c),c<n.getMinWidth()?(c=n.getMinWidth(),l[n.getId()]=!0,u=!0):n.getMaxWidth()>0&&c>n.getMaxWidth()&&(c=n.getMaxWidth(),l[n.getId()]=!0,u=!0),a[n.getId()]=c}))};u;){if("break"===p())break}i.forEach((function(e){var t=a[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),o.push(e))}))}));var i=o.length>0;if(i&&(this.setLeftValues(n),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),i||t){var s={type:bt.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(s)}}else if(t){var a=e&&e.length>0?e[0].columns:null,l={type:bt.EVENT_COLUMN_RESIZED,columns:a,column:a&&1===a.length?a[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(l)}},e.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){e.setAggFunc(t);var o={type:bt.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)}},e.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var o=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,o);var r={type:bt.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)},e.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("ag-Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var o=this.getGridColumns(e);if(!!this.doesMovePassRules(o,t)){qe.moveInArray(this.gridColumns,o,t),this.updateDisplayedColumns(n);var r={type:bt.EVENT_COLUMN_MOVED,columns:o,column:1===o.length?o[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return qe.moveInArray(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,n=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(n=!1):t=!0})),n},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof vt){var o=n;if(o.getColGroupDef()&&o.getColGroupDef().marryChildren){var r=[];o.getLeafColumns().forEach((function(t){var n=e.indexOf(t);r.push(n)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>o.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},e.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var o=this.gridColumns[e];this.moveColumn(o,t,n)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case ke.PINNED_LEFT:return this.leftWidth;case ke.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),n=this.getWidthOfColsInList(this.displayedRightColumns);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var o={type:bt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case ke.PINNED_LEFT:return this.getDisplayedLeftColumns();case ke.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return qe.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return qe.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},e.prototype.setColumnsVisible=function(e,t,n){var o=this;void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:bt.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},e.prototype.setColumnsPinned=function(e,t,n){var o,r=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),o=!0===t||t===ke.PINNED_LEFT?ke.PINNED_LEFT:t===ke.PINNED_RIGHT?ke.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),n,(function(){return{type:bt.EVENT_COLUMN_PINNED,pinned:o,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,n,o){var r=this;if(!qe.missingOrEmpty(e)){var i=[];if(e.forEach((function(e){var n=r.getGridColumn(e);n&&(!1!==t(n)&&i.push(n))})),i.length&&(this.updateDisplayedColumns(n),qe.exists(o)&&o)){var s=o();s.columns=i,s.column=1===i.length?i[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],n=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var o=t.getParent();o.getOriginalColumnGroup().getLevel()!==n;)o=o.getParent();if(o!==e)return o}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&qe.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:o,width:e.getActualWidth(),pivotIndex:n,pinned:e.getPinned(),rowGroupIndex:t,flex:e.getFlex()}},e.prototype.getColumnState=function(){if(qe.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,n){return t.indexOf(e.colId)-t.indexOf(n.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var n=this.getColumnsFromTree(this.primaryColumnTree),o=[],r=1e3,i=1e3;n&&n.forEach((function(e){var t=e.getColDef().rowGroupIndex,n=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};qe.missing(t)&&n&&(l.rowGroupIndex=r++),qe.missing(s)&&a&&(l.pivotIndex=i++),o.push(l)})),this.setColumnState(o,e,t)},e.prototype.setColumnState=function(e,t,n){var o=this;if(void 0===t&&(t=!1),void 0===n&&(n="api"),qe.missingOrEmpty(this.primaryColumns))return!1;var r=this.getColumnState();this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},u=[];if(e&&(e.forEach((function(e){if(qe.exists(o.getAutoColumn(e.colId)))u.push(e);else{var t=o.getPrimaryColumn(e.colId);t?(o.syncColumnWithStateItem(t,e,a,l,n),qe.removeFromArray(i,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),this.flexActive&&this.refreshFlexedColumns(void 0,void 0,!0)),i.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),u.forEach((function(e){var t=o.getAutoColumn(e.colId);o.syncColumnWithStateItem(t,e,a,l,n)})),e){var c=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return c.indexOf(e.getId())-c.indexOf(t.getId())}))}if(this.putFixedColumnsFirst(),this.updateDisplayedColumns(n),!t){var p={type:bt.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(p)}return this.raiseColumnEvents(r,n),s},e.prototype.raiseColumnEvents=function(e,t){var n=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var o=this.getColumnState(),r=function(r,i,s){if(!Z(e.map(i).sort(),o.map(i).sort())){var a={type:r,columns:s,column:1===s.length?s[0]:null,api:n.gridApi,columnApi:n.columnApi,source:t};n.eventService.dispatchEvent(a)}},i=function(t){var o=[],r={};return e.forEach((function(e){r[e.colId]=e})),n.gridColumns.forEach((function(e){var n=r[e.getColId()];n&&!t(n,e)||o.push(e)})),o};r(bt.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns);r(bt.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns);r(bt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns);this.raiseColumnPinnedEvent(i((function(e,t){return e.pinned!==t.getPinned()})),t);var s=i((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t);this.raiseColumnResizeEvent(i((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n={type:bt.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},e.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n={type:bt.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},e.prototype.raiseColumnResizeEvent=function(e,t){if(e.length){var n={type:bt.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},e.prototype.raiseColumnMovedEvent=function(e,t){for(var n=[],o=this.getColumnState(),r=function(t){var r=e[t],s=o[t];if(!r||s.hide)return"continue";if(r.colId!==s.colId){var a=qe.find(i.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));n.push(a)}},i=this,s=0;s<o.length;s++)r(s);if(n.length){var a={type:bt.EVENT_COLUMN_MOVED,columns:n,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(a)}},e.prototype.sortColumnListUsingIndexes=function(e,t,n){return e[t.getId()]-e[n.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,n,o,r){if(e){e.setVisible(!t.hide,r),e.setPinned(t.pinned);var i=this.gridOptionsWrapper.getMinColWidth();null!=t.flex&&(e.setFlex(t.flex),!this.flexActive&&t.flex&&(this.flexActive=!0)),t.width&&i&&t.width>=i&&e.setActualWidth(t.width,r),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,r),this.valueColumns.push(e)):(qe.exists(t.aggFunc)&&console.warn("ag-Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1,r)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,r),n[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,r),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,r),o[e.getId()]=t.pivotIndex):e.setPivotActive(!1,r)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var o=t(e);o&&n.push(o)})),n},e.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("ag-Grid: could not find column "+e),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var n=0;n<t.length;n++)if(this.columnsMatch(t[n],e))return t[n];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&qe.exists(this.groupAutoColumns)&&!qe.missing(this.groupAutoColumns)?qe.find(this.groupAutoColumns,(function(n){return t.columnsMatch(n,e)})):null},e.prototype.columnsMatch=function(e,t){var n=e===t,o=e.getColDef()===t,r=e.getColId()==t;return n||o||r},e.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var o=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,o):o},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,n){var o=t?t.getColGroupDef():null;return o?this.getHeaderName(o,null,e,t,n):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,n,o,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:n,originalColumnGroup:o,location:r,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof i?i(s):"string"==typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?qe.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,r=null;if(qe.exists(o))r=o?o.getAggFunc():null,n=!0;else{var i=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();i&&s?(r=e.getAggFunc(),n=!0):n=!1}if(n){var a="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof gt)return e;var n=this.getAllDisplayedColumnGroups(),o="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof gt){var i=n;(o?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},e.prototype.extractColumns=function(e,t,n,o,r){var i=this;t||(t=[]);var s=t.filter((function(e){return i.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return i.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));s.forEach((function(e){return n(e,!1)}));var u=[];return l.forEach((function(e){"number"==typeof o(e.getColDef())&&u.push(e)})),u.sort((function(e,t){var n=o(e.getColDef()),r=o(t.getColDef());return n===r?0:n<r?-1:1})),l.forEach((function(e){if(r(e.getColDef())){if(u.indexOf(e)>=0)return;u.push(e)}})),u.forEach((function(e){return n(e,!0)})),a.concat(u)},e.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof vt){var n={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(n)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof vt){var n=t;e.push({groupId:n.getGroupId(),open:n.isExpanded()})}})),e},e.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=n.getOriginalColumnGroup(t);i&&i.isExpanded()!==r&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),o.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),o.forEach((function(e){var t={type:bt.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,n){var o;void 0===n&&(n="api"),o=e instanceof vt?e.getId():e,this.setColumnGroupState([{groupId:o,open:t}],n)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof vt)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof vt){var o=n;o.getId()===e&&(t=o)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&qe.includes(e.groupAutoColumns,t),o=e.valueColumns&&qe.includes(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&qe.includes(e.groupAutoColumns,t)||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){qe.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&qe.exists(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var n=e&&e.length>0;if(n||this.secondaryColumnsPresent){if(n){this.processSecondaryColumnDefinitions(e);var o=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=o.columnTree,this.secondaryHeaderRowCount=o.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){var o=function(e){e.forEach((function(e){if(qe.exists(e.children)){var r=e;n&&n(r),o(r.children)}else{t&&t(e)}}))};e&&o(e)}},e.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:bt.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!qe.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(n){e.lastPrimaryOrder.indexOf(n)>=0&&(t=!1)})),!t){var n=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),o=this.gridColumns.filter((function(e){return n.indexOf(e)<0})),r=n.slice();o.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=r.indexOf(e)>=0,o=n.indexOf(e)<0;t&&o&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var o=n.map((function(e){return r.indexOf(e)})),i=Math.max.apply(Math,o);qe.insertIntoArray(r,e,i+1)}else r.push(e)}else r.push(e)})),this.gridColumns=r}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var e=this.gridColumns.filter((function(e){return e.getColDef().lockPosition})),t=this.gridColumns.filter((function(e){return!e.getColDef().lockPosition}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!qe.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.refreshFlexedColumns(void 0,void 0,!0),this.updateBodyWidths();var t={type:bt.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,n=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(r){if(o){var i=t.getWidthOfColsInList(r);r.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var s=0;r.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}qe.removeAllFromArray(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof gt&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ht&&t.push(e)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case ke.PINNED_LEFT:n=this.displayedLeftHeaderRows[t];break;case ke.PINNED_RIGHT:n=this.displayedRightHeaderRows[t];break;default:n=this.displayedCentreHeaderRows[t]}return qe.missing(n)&&(n=[]),n},e.prototype.updateDisplayedVirtualGroups=function(e){this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={};var t=function(n,o,r){for(var i=!1,s=0;s<n.length;s++){var a=n[s],l=void 0;if(a instanceof ht)l=!0===e[a.getId()];else l=t(a.getDisplayedChildren(),o,r+1);l&&(i=!0,o[r]||(o[r]=[]),o[r].push(a))}return i};t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return this.displayedCenterColumns.filter(this.isColumnInViewport.bind(this))},e.prototype.refreshFlexedColumns=function(e,t,n){if(void 0===t&&(t="flex"),this.flexActive&&(this.flexViewportWidth=e||this.flexViewportWidth,this.flexViewportWidth)){var o=this.displayedCenterColumns.filter((function(e){return!e.getFlex()})),r=this.displayedCenterColumns.filter((function(e){return e.getFlex()}));if(r.length){var i,s=[];e:for(;;){var a=r.reduce((function(e,t){return e+t.getFlex()}),0);i=this.flexViewportWidth-this.getWidthOfColsInList(o);for(var l=0;l<r.length;l++){var u=r[l],c=i*u.getFlex()/a,p=void 0;if(c<u.getMinWidth()?p=u.getMinWidth():null!=u.getMaxWidth()&&c>u.getMaxWidth()&&(p=u.getMaxWidth()),p){u.setActualWidth(p,t),qe.removeFromArray(r,u),o.push(u);continue e}s[l]=Math.round(c)}break}var d=i;r.forEach((function(e,n){e.setActualWidth(Math.min(s[n],d),t),d-=s[n]})),this.setLeftValues(t),n||(this.updateBodyWidths(),this.fireResizedEventForColumns(r,t))}else this.flexActive=!1}},e.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var r=[],i=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?i.push(e):r.push(e)}));for(var s=r.slice(0),a=!1,l=function(e){qe.removeFromArray(r,e),i.push(e)};!a;){a=!0;var u=e-this.getWidthOfColsInList(i);if(u<=0)r.forEach((function(e){e.setMinimum(t)}));else for(var c=u/this.getWidthOfColsInList(r),p=u,d=r.length-1;d>=0;d--){var h=r[d],f=Math.round(h.getActualWidth()*c);if(f<h.getMinWidth())h.setMinimum(t),l(h),a=!1;else if(h.isGreaterThanMax(f))h.setActualWidth(h.getMaxWidth(),t),l(h),a=!1;else{0===d?h.setActualWidth(p,t):h.setActualWidth(f,t)}p-=f}}this.setLeftValues(t),this.updateBodyWidths(),n||this.fireResizedEventForColumns(s,t)}},e.prototype.fireResizedEventForColumns=function(e,t){var n=this;e.forEach((function(e){var o={type:bt.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:n.gridApi,columnApi:n.columnApi,source:t};n.eventService.dispatchEvent(o)}))},e.prototype.buildDisplayedTrees=function(e){var t=[],n=[],o=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:o.push(e)}}));var r=new Et;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,ke.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,ke.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof gt&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn(),n=this.gridOptionsWrapper.isGroupSuppressRow();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e&&!n){var o=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(o,this.groupAutoColumns)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},e.prototype.autoColsEqual=function(e,t){return Z(e,t,(function(e,t){return e.getColId()===t.getColId()}))},e.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},e.prototype.hasFloatingFilters=function(){var e=this.gridOptionsWrapper.getDefaultColDef();return null!=e&&!0===e.floatingFilter||null!=this.columnDefs&&this.columnDefs.some((function(e){return!0===e.floatingFilter}))},_t([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_t([nt("expressionService")],e.prototype,"expressionService",void 0),_t([nt("columnFactory")],e.prototype,"columnFactory",void 0),_t([nt("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),_t([nt("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),_t([nt("eventService")],e.prototype,"eventService",void 0),_t([nt("columnUtils")],e.prototype,"columnUtils",void 0),_t([nt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),_t([nt("autoGroupColService")],e.prototype,"autoGroupColService",void 0),_t([ot("aggFuncService")],e.prototype,"aggFuncService",void 0),_t([ot("valueCache")],e.prototype,"valueCache",void 0),_t([ot("animationFrameService")],e.prototype,"animationFrameService",void 0),_t([nt("columnApi")],e.prototype,"columnApi",void 0),_t([nt("gridApi")],e.prototype,"gridApi",void 0),_t([Ze],e.prototype,"init",null),_t([Ot(0,it("loggerFactory"))],e.prototype,"setBeans",null),e=_t([tt("columnController")],e)}(),St=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Tt=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){var t=this.gridOptionsWrapper,n=null!=e.minWidth?e.minWidth:t.getMinColWidth(),o=null!=e.maxWidth?e.maxWidth:t.getMaxColWidth()||qe.getMaxSafeInteger(),r=null!=e.width?e.width:t.getColWidth();return Math.max(Math.min(r,o),n)},e.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1,r=function(t,i){for(var s=0;s<t.length;s++){if(o)return;var a=t[s];if(a instanceof vt)r(a.getChildren(),i+1),n[i]=a;else a===e&&(o=!0)}};return r(t,0),o?n:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var o=this;t&&t.forEach((function(t){t instanceof vt&&o.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof gt&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof gt&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},St([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=St([tt("columnUtils")],e)}(),Dt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pt=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,n,o,r){var i,s,a=this,l=[],u=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),c=[],p=!s,d=0;d<r.length;d++)if(p||r[d]!==s[d]){var h=a.createColumnGroup(r[d],n,u,o);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=i[d];0===c.length?l.push(e):qe.last(c).addChild(e);i=c,s=r})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,n,o){var r=e.getGroupId(),i=t.getInstanceIdForKey(r),s=n[gt.createUniqueId(r,i)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),qe.exists(s)?s.reset():(s=new gt(e,r,i,o),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={},n=function(e){e.forEach((function(e){if(e instanceof gt){var o=e;t[e.getUniqueId()]=o,n(o.getChildren())}}))};return e&&n(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof gt){var o=e;n.setupParentsIntoColumns(o.getChildren(),o)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1,r=function(e,i){for(var s=0;s<e.length;s++){if(o)return;var a=e[s];if(a instanceof vt)r(a.getChildren(),i+1),n[i]=a;else a===t&&(o=!0)}};return r(e,0),o?n:(console.warn("could not get path"),null)},Dt([nt("columnUtils")],e.prototype,"columnUtils",void 0),Dt([nt("context")],e.prototype,"context",void 0),e=Dt([tt("displayedGroupCreator")],e)}(),It=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},At=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","enableMultiRowDragging","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","processChartOptions","getChartToolbarItems","fillOperation"],e.ALL_PROPERTIES=It(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Nt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},xt=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned","chartDataType"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","flex","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","sortable","resizable","singleClickEdit","floatingFilter"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=Nt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Ft=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var n=[];return t.forEach((function(t){var o=e.DEFAULT_BY_KEY[t];o?n.push(o):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var n=[];return t.forEach((function(t){var o=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));o=r}else o=t;n.push(o)})),n},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),Lt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mt=function(e,t){return function(n,o){t(n,o,e)}},kt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};
223
- /**
224
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
225
- * @version v23.1.1
226
- * @link http://www.ag-grid.com/
227
- * @license MIT
228
- */function Gt(e){return!0===e||"true"===e}var Vt=function(){function e(){this.propertyEventService=new ct,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.removeEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener)},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var o=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),o),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var r=function(e){return"ag-Grid: '"+e+"' is not supported on the Server-Side Row Model"};qe.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupDefaultExpanded")),qe.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeFooter")),qe.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&pt.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("ag-Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.updateLayoutClassesListener=this.updateLayoutClasses.bind(this),this.addEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener)},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),o=kt(xt.ALL_PROPERTIES,xt.FRAMEWORK_PROPERTIES);e.checkProperties(n,o,o,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=kt(At.ALL_PROPERTIES,At.FRAMEWORK_PROPERTIES,qe.values(bt).map((function(e){return Wt.getCallbackForEvent(e)}))),n=kt(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,n,o,r){var i=qe.fuzzyCheckStrings(e,t,n);qe.iterateObject(i,(function(e,t){console.warn("ag-grid: invalid "+o+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+o+" properties please check: "+r)},e.prototype.getDomData=function(e,t){var n=e[this.domDataKey];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var o=e[this.domDataKey];qe.missing(o)&&(o={},e[this.domDataKey]=o),o[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return Gt(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return Gt(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return Gt(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return Gt(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return qe.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===ke.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return Gt(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return Gt(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return Gt(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return Gt(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return Gt(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return Gt(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return Gt(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return Gt(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return Gt(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!Gt(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return Gt(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=Gt(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return Gt(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return Gt(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return Gt(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return Gt(this.gridOptions.groupMultiAutoColumn)||Gt(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return Gt(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return Gt(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return Gt(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return Gt(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return Gt(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return Gt(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return Gt(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return Gt(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return Gt(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isPivotSuppressAutoColumn=function(){return Gt(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return Gt(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return Gt(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return Gt(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return Gt(this.gridOptions.suppressRowDrag)},e.prototype.isSuppressMoveWhenRowDragging=function(){return Gt(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isEnableMultiRowDragging=function(){return Gt(this.gridOptions.enableMultiRowDragging)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||ke.DOM_LAYOUT_NORMAL;return-1===[ke.DOM_LAYOUT_PRINT,ke.DOM_LAYOUT_AUTO_HEIGHT,ke.DOM_LAYOUT_NORMAL].indexOf(e)?(qe.doOnce((function(){return console.warn("ag-Grid: "+e+" is not valid for DOM Layout, valid values are "+ke.DOM_LAYOUT_NORMAL+", "+ke.DOM_LAYOUT_AUTO_HEIGHT+" and "+ke.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),ke.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return Gt(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return Gt(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Gt(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return Gt(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return Gt(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return Gt(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return Gt(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return Gt(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return Gt(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return Gt(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return Gt(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return Gt(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return Gt(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return Gt(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return Gt(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return Gt(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return Gt(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return this.gridOptions.undoRedoCellEditingLimit},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return Gt(this.gridOptions.embedFullWidthRows)||Gt(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isImmutableData=function(){return Gt(this.gridOptions.immutableData)},e.prototype.isImmutableColumns=function(){return Gt(this.gridOptions.immutableColumns)},e.prototype.isEnsureDomOrder=function(){return Gt(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!Gt(this.gridOptions.enableCharts)&&pt.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return Gt(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return Gt(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return Gt(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.isPaginateChildRows=function(){return!!(this.isGroupSuppressRow()||this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren())||Gt(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return Gt(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return Gt(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(e){return!e&&Gt(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return Gt(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return Gt(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return Gt(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return Gt(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return Gt(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return Gt(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return Gt(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return Gt(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return Gt(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return Gt(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return Gt(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return Gt(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Gt(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return Gt(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return Gt(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return Gt(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return Gt(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return Gt(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return Gt(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return Gt(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return Gt(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Gt(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getAsyncTransactionWaitMillis=function(){return qe.exists(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:ke.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return Gt(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Gt(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return Gt(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return Gt(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return Gt(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return pt.isRegistered(t.ModuleNames.RangeSelectionModule)&&Gt(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return Gt(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return Gt(this.gridOptions.enableFillHandle)},e.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},e.prototype.isSuppressMultiRangeSelection=function(){return Gt(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return Gt(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return Gt(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){return!!Gt(this.gridOptions.masterDetail)&&pt.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return Gt(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){return this.gridOptions.keepDetailRowsCount>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return Gt(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return Gt(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return Gt(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isFunctionsReadOnly=function(){return Gt(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return Gt(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return Gt(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return Gt(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return Gt(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return Gt(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Gt(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){return!!Gt(this.gridOptions.treeData)&&pt.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return Gt(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return Gt(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return Gt(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return Gt(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return e=this.gridOptions.viewportRowModelPageSize,t=5,e>0?e:t;var e,t},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return Gt(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return qe.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var n=this.gridOptions,o=n[e];if(o!==t){n[e]=t;var r={type:e,currentValue:t,previousValue:o};this.propertyEventService.dispatchEvent(r)}},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===ke.DOM_LAYOUT_AUTO_HEIGHT,n=e===ke.DOM_LAYOUT_PRINT,o=e===ke.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){qe.addOrRemoveCssClass(e,"ag-layout-auto-height",t),qe.addOrRemoveCssClass(e,"ag-layout-normal",o),qe.addOrRemoveCssClass(e,"ag-layout-print",n)}))},e.prototype.addEventListener=function(e,t){n.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,t)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipShowDelay=function(){var e=this.gridOptions.tooltipShowDelay;return qe.exists(e)?(e<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,e)):null},e.prototype.isTooltipMouseTrack=function(){return Gt(this.gridOptions.tooltipMouseTrack)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&qe.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&qe.exists(e)?e:document},e.prototype.getMinColWidth=function(){if(this.gridOptions.minColWidth>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var e=this.getFromTheme(null,"headerCellMinWidth");return Math.max(e,n.MIN_COL_WIDTH)},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(qe.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=ke.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0;this.scrollWidth=e?this.gridOptions.scrollbarWidth:qe.getScrollbarWidth()}return this.scrollWidth},e.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var n={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},o={};Object.keys(n).forEach((function(t){var r=n[t],i=e.gridOptions[t];if(void 0!==i){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+r),o[r]=i}})),Object.keys(o).length>0&&!qe.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=Ft.parse(t.sideBar));var r=this.gridOptions.sideBar;if(Object.keys(o).length>0&&r&&r.toolPanels){var i=r.toolPanels.filter((function(e){return"columns"===e.id}));1===i.length&&qe.mergeDeep(i[0],{componentParams:o})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.deprecatedEmbedFullWidthRows&&console.warn("ag-Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing."),t.doesDataFlower&&console.warn("ag-Grid: since v21.1, doesDataFlower is deprecated. Master/Detail is the new way for showing child data for a row and was introduced over a year ago. Please migrate your code to use master/detail instead."),t.enableOldSetFilterModel&&console.warn("ag-Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards."),t.floatingFilter&&(console.warn("ag-Grid: since v23.1, floatingFilter on the gridOptions is deprecated. Please use floatingFilter on the colDef instead."),t.defaultColDef||(t.defaultColDef={}),null==t.defaultColDef.floatingFilter&&(t.defaultColDef.floatingFilter=!0));var s=function(e,n,o){null!=t[e]&&(console.warn("ag-grid: since version "+o+", '"+e+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==t[n]&&(t[n]=t[e]))};s("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),s("deltaRowDataMode","immutableData","23.1.x"),s("deltaColumnMode","immutableColumns","23.1.x")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&qe.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(qe.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),qe.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,n){var o=e.gridOptions.localeText;return o&&o[t]?o[t]:n}},e.prototype.globalEventHandler=function(e,t){var n=Wt.getCallbackForEvent(e);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||qe.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var n={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context},o=this.gridOptions.getRowHeight(n);if(null!=o)return{height:o,estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var r=this.getDefaultRowHeight(),i=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:r,s=Math.min(r,i);if(this.columnController.isAutoRowHeightActive()){if(t)return{height:i,estimated:!0};var a=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(a,s),estimated:!1}}return{height:i,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",Lt([nt("gridOptions")],e.prototype,"gridOptions",void 0),Lt([nt("columnController")],e.prototype,"columnController",void 0),Lt([nt("eventService")],e.prototype,"eventService",void 0),Lt([nt("gridApi")],e.prototype,"gridApi",void 0),Lt([nt("columnApi")],e.prototype,"columnApi",void 0),Lt([nt("environment")],e.prototype,"environment",void 0),Lt([nt("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),Lt([nt("context")],e.prototype,"context",void 0),Lt([Mt(0,it("gridApi")),Mt(1,it("columnApi"))],e.prototype,"agWire",null),Lt([et],e.prototype,"destroy",null),Lt([Ze],e.prototype,"init",null),e=n=Lt([tt("gridOptionsWrapper")],e)}(),jt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},Wt=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,n,o){void 0===o&&(o=!1),Ht(n),"object"!=typeof t&&(t={});var r=t,i=function(e){return void 0!==n[e]};return jt(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEach((function(e){return r[e]=n[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toBoolean(n[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toNumber(n[t])})),o||e.EVENTS.filter((function(t){return i(t)||i(e.getCallbackForEvent(t))})).forEach((function(e){return Vt.checkEventDeprecation(e)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,n,o,r){if(t){Ht(t);var i=n,s=function(e){return t[e]};jt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(s).forEach((function(e){return i[e]=t[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(s).forEach((function(n){return i[n]=e.toBoolean(t[n].currentValue)})),e.NUMBER_PROPERTIES.filter(s).forEach((function(n){return i[n]=e.toNumber(t[n].currentValue)})),t.enableCellTextSelection&&o.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&o.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&o.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&o.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&o.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&o.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&o.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&o.setDatasource(t.datasource.currentValue),t.headerHeight&&o.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&o.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&r.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&o.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&o.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.suppressMoveWhenRowDragging&&o.setSuppressMoveWhenRowDragging(e.toBoolean(t.suppressMoveWhenRowDragging.currentValue)),t.suppressRowClickSelection&&o.setSuppressRowClickSelection(e.toBoolean(t.suppressRowClickSelection.currentValue)),t.gridAutoHeight&&o.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&o.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&o.setSideBar(t.sideBar.currentValue);var a={type:bt.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};qe.iterateObject(t,(function(e,t){a[e]=t})),o.dispatchEvent(a)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=At.STRING_PROPERTIES,e.OBJECT_PROPERTIES=At.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=At.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=At.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=At.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=At.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=At.ALL_PROPERTIES,e}();
229
- /**
230
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
231
- * @version v23.1.1
232
- * @link http://www.ag-grid.com/
233
- * @license MIT
234
- */function Ht(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}
235
- /**
236
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
237
- * @version v23.1.1
238
- * @link http://www.ag-grid.com/
239
- * @license MIT
240
- */Wt.EVENTS=qe.values(bt);var Bt,zt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ut=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.getContext=function(){return e.context},this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new ct),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,n){var o=this;if(!this.destroyed){e instanceof HTMLElement?qe.addSafePassiveEventListener(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function(){return e.removeEventListener(t,n),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==r})),null};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.wireDependentBean=function(e,t){return e.destroy&&this.addDestroyFunc(e.destroy.bind(e)),this.wireBean(e,t)},e.prototype.wireBean=function(e,t){return(t||this.getContext()).wireBean(e),e},e.EVENT_DESTROYED="destroyed",zt([nt("context")],e.prototype,"context",void 0),zt([nt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),zt([et],e.prototype,"destroy",null),e}(),qt=(Bt=function(e,t){return(Bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Bt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Yt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kt=new Ye,$t=function(e){function t(t){var n=e.call(this)||this;return n.childComponents=[],n.annotatedEventListeners=[],n.displayed=!0,n.visible=!0,n.compId=Kt.next(),t&&n.setTemplate(t),n}return qt(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e,t){var n=this,o=qe.copyNodeList(e.childNodes);qe.forEach(o,(function(o){if(o instanceof HTMLElement){var r=n.getContext().createComponentFromElement(o,(function(e){n.copyAttributesFromNode(o,e.getGui())}),t);if(r){if(r.addItems&&o.children.length){n.createChildComponentsFromTags(o);var i=Array.prototype.slice.call(o.children);r.addItems(i)}n.swapComponentForNode(r,e,o)}else o.childNodes&&n.createChildComponentsFromTags(o)}}))},t.prototype.copyAttributesFromNode=function(e,t){qe.iterateNamedNodeMap(e.attributes,(function(e,n){return t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var o=e.getGui();t.replaceChild(o,n),t.insertBefore(document.createComment(n.nodeName),o),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors((function(o){n[o.attributeName]===t&&(n[o.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,o=t.constructor.name;n&&n[o]&&n[o].querySelectors&&qe.forEach(n[o].querySelectors,(function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=qe.loadTemplate(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(n){var o=e.eGui.querySelector(n.querySelector);o&&(t[n.attributeName]=o.__agComponent||o)}))}},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");qe.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),qe.forEach(t,(function(t){var n=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,n),e.annotatedEventListeners.push({eventName:t.eventName,listener:n})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],n=Object.getPrototypeOf(this);null!=n;){var o=n.__agComponentMetaData,r=n.constructor.name;if(void 0===r){var i=/function\s([^(]{1,})\(/.exec(n.constructor.toString());i&&i.length>1&&(r=i[1].trim())}o&&o[r]&&o[r][e]&&(t=t.concat(o[r][e])),n=Object.getPrototypeOf(n)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(qe.forEach(this.annotatedEventListeners,(function(t){return e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(t||(t=this.eGui),qe.isNodeOrElement(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.childComponents.push(n)}},t.prototype.addFeature=function(e,t){this.wireDependentBean(e,t)},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,qe.setVisible(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,qe.setDisplayed(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){qe.forEach(this.childComponents,(function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners(),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){qe.addCssClass(this.eGui,e)},t.prototype.removeCssClass=function(e){qe.removeCssClass(this.eGui,e)},t.prototype.addOrRemoveCssClass=function(e,t){qe.addOrRemoveCssClass(this.eGui,e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Yt([Je],t.prototype,"createChildComponentsPreConstruct",null),t}(Ut),Qt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qt(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){qe.addCssClass(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&qe.removeCssClass(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}($t);function Jt(e){return Zt.bind(this,"[ref="+e+"]")}function Zt(e,t,n,o){null!==e?"number"!=typeof o?tn(t,"querySelectors",{attributeName:n,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function en(e,t,n){null!==e?tn(t,"listenerMethods",{methodName:n,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function tn(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}
241
- /**
242
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
243
- * @version v23.1.1
244
- * @link http://www.ag-grid.com/
245
- * @license MIT
246
- */(e,e.constructor.name);o[t]||(o[t]=[]),o[t].push(n)}var nn,on=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return on(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===ke.KEY_BACKSPACE||e.keyPress===ke.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==ke.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e));qe.exists(t)&&n.setValue(t,!0),this.addDestroyableEventListener(n.getGui(),"keydown",(function(e){var t=e.keyCode===ke.KEY_PAGE_UP,n=e.keyCode===ke.KEY_PAGE_DOWN;(t||n)&&e.preventDefault()}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;qe.isBrowserSafari()||e.getFocusableElement().focus();var t=e.getInputElement();if(this.highlightAllOnFocus)t.select();else{var n=e.getValue(),o=qe.exists(n)&&n.length||0;o&&t.setSelectionRange(o,o)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.focusOut=function(){var e=this.eInput.getInputElement();qe.isBrowserIE()&&e.setSelectionRange(0,0)},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',rn([Jt("eInput")],t.prototype,"eInput",void 0),t}(Xt),an=function(){function e(e,t,n){var o=this;this.alive=!0,e.newDateComponent(t).then((function(e){o.alive?(o.dateComp=e,n.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),o.tempValue&&e.setDate(o.tempValue)):e.destroy&&e.destroy()}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp&&this.dateComp.destroy&&this.dateComp.destroy()},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e}(),ln=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions?e.filterOptions:t,this.mapCustomOptions(),this.selectDefaultItem(e)},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){"string"!=typeof t&&(t.displayKey?t.displayName?t.test?e.customFilterOptions[t.displayKey]=t:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("ag-Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),un=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.applyActive=!1,t.hidePopup=null,t.appliedModel=null,t}return un(t,e),t.prototype.onFilterChanged=function(){console.warn("ag-Grid: you should not call onFilterChanged() directly on the filter, please call\n gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.postConstruct=function(){var e='\n <div>\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper" ref="eFilterBodyWrapper">\n '+this.createBodyTemplate()+"\n </div>\n </div>";this.setTemplate(e)},t.prototype.init=function(e){this.setParams(e),this.resetUiToDefaults(!0),this.updateUiVisibility(),this.setupOnBtApplyDebounce()},t.prototype.setParams=function(e){if(this.providedFilterParams=e,e.newRowsAction===t.NEW_ROWS_ACTION_KEEP)this.newRowsActionKeep=!0;else if(e.newRowsAction===t.NEW_ROWS_ACTION_CLEAR)this.newRowsActionKeep=!1;else{var n=this.rowModel.getType(),o=[ke.ROW_MODEL_TYPE_SERVER_SIDE,ke.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=o.indexOf(n)>=0}this.applyActive=t.isUseApplyButton(e),this.createButtonPanel(e)},t.prototype.createButtonPanel=function(e){var t=this,n=!0===e.clearButton,o=!0===e.resetButton;if(this.applyActive||n||o){var r=this.gridOptionsWrapper.getLocaleTextFunc(),i=document.createElement("div");qe.addCssClass(i,"ag-filter-apply-panel");var s=function(e,n){var o=qe.loadTemplate('<button type="button" class="ag-standard-button ag-filter-apply-panel-button">'+e+"</button>");i.appendChild(o),t.addDestroyableEventListener(o,"click",n)};n&&s(r("clearFilter","Clear Filter"),(function(){return t.onBtClear()})),o&&s(r("resetFilter","Reset Filter"),(function(){return t.onBtReset()})),this.applyActive&&s(r("applyFilter","Apply Filter"),(function(){return t.onBtApply()})),this.eFilterBodyWrapper.parentElement.appendChild(i)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=qe.debounce(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){e?this.setModelIntoUi(e):this.resetUiToDefaults(),this.updateUiVisibility(),this.applyModel()},t.prototype.onBtClear=function(){this.resetUiToDefaults(),this.updateUiVisibility(),this.onUiChanged()},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.appliedModel;return this.appliedModel=this.getModelFromUi(),!this.areModelsEqual(this.appliedModel,e)},t.prototype.onBtApply=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t});var n=this.providedFilterParams,o=n.closeOnApply,r=n.applyButton,i=n.resetButton;o&&!e&&this.hidePopup&&(r||i)&&(this.hidePopup(),this.hidePopup=null)},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||(this.resetUiToDefaults(),this.appliedModel=null)},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e){void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),e?this.onBtApply(!0):this.applyActive||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){this.hidePopup=e.hidePopup},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when applyButton = true"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return e.apply&&!e.applyButton&&(console.warn("ag-Grid: as of ag-Grid v21, filterParams.apply is now filterParams.applyButton, please change to applyButton"),e.applyButton=!0),!0===e.applyButton},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.NEW_ROWS_ACTION_KEEP="keep",t.NEW_ROWS_ACTION_CLEAR="clear",cn([Jt("eFilterBodyWrapper")],t.prototype,"eFilterBodyWrapper",void 0),cn([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),cn([nt("rowModel")],t.prototype,"rowModel",void 0),cn([Ze],t.prototype,"postConstruct",null),t}($t),dn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(nn||(nn={}));var fn,gn={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",inRangeStart:"From",inRangeEnd:"To",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dn(t,e),t.prototype.showValueFrom=function(e){return!this.doesFilterHaveHiddenInput(e)&&e!==t.EMPTY},t.prototype.showValueTo=function(e){return e===t.IN_RANGE},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.eJoinOperatorAnd.setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(nn.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(nn.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(nn.One),condition2:this.createCondition(nn.Two)}:this.createCondition(nn.One):null},t.prototype.getCondition1Type=function(){return this.eType1.getValue()},t.prototype.getCondition2Type=function(){return this.eType2.getValue()},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;if(o){var i=e,s=t;n=this.areSimpleModelsEqual(i,s)}else{var a=e,l=t;n=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.condition2)}return n},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,n="OR"===t.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,nn.One),this.setConditionIntoUi(t.condition2,nn.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(!0),this.eJoinOperatorOr.setValue(!1),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,nn.One),this.setConditionIntoUi(null,nn.Two)}},t.prototype.doesFilterPass=function(e){var t=this.getModel();if(t.operator){var n=t,o=this.individualConditionPasses(e,n.condition1),r=this.individualConditionPasses(e,n.condition2);return"AND"===n.operator?o&&r:o||r}var i=t;return this.individualConditionPasses(e,i)},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new ln,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions();t.forEach((function(t){var n=function(){var n="string"==typeof t?t:t.displayKey;return{value:n,text:e.translate(n)}};e.eType1.addOption(n()),e.eType2.addOption(n())}));var n=t.length<=1;this.eType1.setDisabled(n),this.eType2.setDisabled(n)},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(nn.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(nn.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.isConditionUiComplete(nn.One),t=this.allowTwoConditions&&e;qe.setDisplayed(this.eCondition2Body,t),qe.setDisplayed(this.eType2.getGui(),t),qe.setDisplayed(this.eJoinOperatorPanel,t)},t.prototype.resetUiToDefaults=function(e){var t="ag-simple-filter-and-or-"+this.getCompId(),n=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.optionsFactory.getDefaultOption();this.eType1.setValue(o,e),this.eType2.setValue(o,e),this.eJoinOperatorAnd.setValue(!0,e).setName(t).setLabel(n("andCondition","AND")),this.eJoinOperatorOr.setValue(!1,e).setName(t).setLabel(n("orCondition","OR"))},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),n=gn[e];return!n&&this.optionsFactory.getCustomOption(e)&&(n=this.optionsFactory.getCustomOption(e).displayName),t(e,n)},t.prototype.addChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",hn([Jt("eOptions1")],t.prototype,"eType1",void 0),hn([Jt("eOptions2")],t.prototype,"eType2",void 0),hn([Jt("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),hn([Jt("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),hn([Jt("eCondition2Body")],t.prototype,"eCondition2Body",void 0),hn([Jt("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),t}(pn),mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mn(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("ag-Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.nullComparator=function(e,n,o){if(null==o)switch(e){case t.EMPTY:return 0;case t.EQUALS:return this.scalarFilterParams.includeBlanksInEquals?0:1;case t.NOT_EQUAL:return this.scalarFilterParams.includeBlanksInEquals?1:0;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInGreaterThan?1:-1;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInLessThan?-1:1}return this.comparator()(n,o)},t.prototype.individualConditionPasses=function(e,n){var o=this.scalarFilterParams.valueGetter(e.node),r=this.mapRangeFromModel(n),i=r.from,s=r.to,a=n.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=i||l.hideFilterInput))return l.test(i,o);var u=this.nullComparator(a,i,o);switch(a){case t.EQUALS:return 0===u;case t.NOT_EQUAL:return 0!==u;case t.GREATER_THAN:return u>0;case t.GREATER_THAN_OR_EQUAL:return u>=0;case t.LESS_THAN:return u<0;case t.LESS_THAN_OR_EQUAL:return u<=0;case t.IN_RANGE:var c=this.nullComparator(a,s,o);return this.scalarFilterParams.inRangeInclusive?u>=0&&c<=0:u>0&&c<0;default:throw new Error("Unexpected type of filter: "+a)}},t}(vn),Cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cn(t,e),t.prototype.mapRangeFromModel=function(e){return{from:de(e.dateFrom),to:de(e.dateTo)}},t.prototype.setValueFromFloatingFilter=function(e){if(null!=e){var t=de(e);this.dateCondition1FromComp.setDate(t)}else this.dateCondition1FromComp.setDate(null);this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},t.prototype.setConditionIntoUi=function(e,t){var n=e?[de(e.dateFrom),de(e.dateTo)]:[null,null],o=n[0],r=n[1],i=this.getFromToComponents(t),s=i[0],a=i[1];s.setDate(o),a.setDate(r)},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),this.dateCondition1FromComp.setDate(null),this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t,this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t={onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams};this.dateCondition1FromComp=new an(this.userComponentFactory,t,this.eCondition1PanelFrom),this.dateCondition1ToComp=new an(this.userComponentFactory,t,this.eCondition1PanelTo),this.dateCondition2FromComp=new an(this.userComponentFactory,t,this.eCondition2PanelFrom),this.dateCondition2ToComp=new an(this.userComponentFactory,t,this.eCondition2PanelTo),this.addDestroyFunc((function(){e.dateCondition1FromComp.destroy(),e.dateCondition1ToComp.destroy(),e.dateCondition2FromComp.destroy(),e.dateCondition2ToComp.destroy()}))},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===nn.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom">\n </div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo">\n </div>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===nn.One?this.getCondition1Type():this.getCondition2Type();if(t===vn.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(t))return!0;var n=this.getFromToComponents(e),o=n[0],r=n[1];return null!=o.getDate()&&(t!==vn.IN_RANGE||null!=r.getDate())},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.createCondition=function(e){var n=e===nn.One?this.getCondition1Type():this.getCondition2Type(),o=this.getFromToComponents(e),r=o[0],i=o[1];return{dateFrom:pe(r.getDate()),dateTo:pe(i.getDate()),type:n,filterType:t.FILTER_TYPE}},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc()("dateFormatOoo","yyyy-mm-dd");this.dateCondition1FromComp.setInputPlaceholder(e),this.dateCondition1ToComp.setInputPlaceholder(e),this.dateCondition2FromComp.setInputPlaceholder(e),this.dateCondition2ToComp.setInputPlaceholder(e)},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.getCondition1Type();N(this.eCondition1PanelFrom,this.showValueFrom(t)),N(this.eCondition1PanelTo,this.showValueTo(t));var n=this.getCondition2Type();N(this.eCondition2PanelFrom,this.showValueFrom(n)),N(this.eCondition2PanelTo,this.showValueTo(n))},t.prototype.getFromToComponents=function(e){return e===nn.One?[this.dateCondition1FromComp,this.dateCondition1ToComp]:[this.dateCondition2FromComp,this.dateCondition2ToComp]},t.FILTER_TYPE="date",t.DEFAULT_FILTER_OPTIONS=[yn.EQUALS,yn.GREATER_THAN,yn.LESS_THAN,yn.NOT_EQUAL,yn.IN_RANGE],wn([Jt("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),wn([Jt("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),wn([Jt("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),wn([Jt("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),wn([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(yn),En=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ct,this.eElement=e,this.preventMouseClick=t;var o=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",o,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",i,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var o=this.touchStart;window.setTimeout((function(){var r=n.touchStart===o;if(n.touching&&r&&!n.moved){n.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t};n.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!qe.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var n={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var n={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),_n=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),On=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return _n(t,e),t.prototype.init=function(e){var n=qe.firstExistingValue(e.template,t.TEMPLATE);n=n&&n.trim?n.trim():n,this.setTemplate(n),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=qe.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var o=qe.createIconNoSpan(e,this.gridOptionsWrapper,n);t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new En(this.getGui(),!0),o=t.isSuppressMenuHide(),r=o&&qe.exists(this.eMenu),i=r?new En(this.eMenu,!0):n;if(this.params.enableMenu){var s=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(i,En[s],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addDestroyableEventListener(n,En.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),r&&this.addDestroyFunc((function(){return i.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||qe.isIOSUserAgent()&&!t)qe.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0");var n=this.eMenu.style;n.transition="opacity 0.2s, border 0.2s",n["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.setMouseOverParent=function(e){this.gridOptionsWrapper.isSuppressMenuHide()||(this.eMenu.style.opacity=e?"1":"0")},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){qe.removeFromParent(this.eSortAsc),qe.removeFromParent(this.eSortDesc),qe.removeFromParent(this.eSortNone),qe.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,ht.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",(function(n){var o=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!(o||r)){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}})),this.addDestroyableEventListener(this.params.column,ht.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,bt.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&qe.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&qe.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();qe.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),n=t.indexOf(e),o=t.length>1,r=e.isSorting()&&o;qe.setDisplayed(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():qe.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,ht.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();qe.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation"> <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on"> <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span> <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span> <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span> <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span> <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span> <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span> </div></div>',On([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),On([nt("sortController")],t.prototype,"sortController",void 0),On([nt("menuFactory")],t.prototype,"menuFactory",void 0),On([nt("eventService")],t.prototype,"eventService",void 0),On([Jt("eFilter")],t.prototype,"eFilter",void 0),On([Jt("eSortAsc")],t.prototype,"eSortAsc",void 0),On([Jt("eSortDesc")],t.prototype,"eSortDesc",void 0),On([Jt("eSortNone")],t.prototype,"eSortNone",void 0),On([Jt("eSortOrder")],t.prototype,"eSortOrder",void 0),On([Jt("eMenu")],t.prototype,"eMenu",void 0),On([Jt("eLabel")],t.prototype,"eLabel",void 0),On([Jt("eText")],t.prototype,"eText",void 0),t}($t),Sn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Tn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Sn(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!qe.isStopPropagationForAgGrid(t)){var n=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){qe.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",n),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",n),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var o=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(o,vt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(o,vt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new En(e);this.addDestroyableEventListener(n,En.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();qe.setDisplayed(this.eOpenIcon,e),qe.setDisplayed(this.eCloseIcon,!e)}else qe.setDisplayed(this.eOpenIcon,!1),qe.setDisplayed(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=qe.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return qe.setDisplayed(this.eOpenIcon,!1),void qe.setDisplayed(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(qe.exists(e)){var t=qe.escape(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation"><span ref="agLabel" class="ag-header-group-text" role="columnheader"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',Tn([nt("columnController")],t.prototype,"columnController",void 0),Tn([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Tn([Jt("agOpened")],t.prototype,"eOpenIcon",void 0),Tn([Jt("agClosed")],t.prototype,"eCloseIcon",void 0),t}($t),Pn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},In=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.highlighted=null,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var n=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(n)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,o){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:o}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var n=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(n)},e.prototype.getRowIndexString=function(){return this.rowPinned===ke.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===ke.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=qe.exists(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,n),this.checkRowSelectable();var r=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(r)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&qe.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var n=this.createGlobalRowEvent(bt.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(n),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var n=this.columnController.getPrimaryColumn(e),o=this.valueService.getValue(n,this);this.valueService.setValue(this,n,t),this.dispatchCellChangedEvent(n,t,o)},e.prototype.setGroupValue=function(e,t){var n=this.columnController.getGridColumn(e);qe.missing(this.groupData)&&(this.groupData={});var o=n.getColId(),r=this.groupData[o];r!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(n,t,r))},e.prototype.setAggData=function(e){var t=this,n=qe.getAllKeysInObjects([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.columnController.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(n,r,i)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyRowGroupNode=function(){return this.group&&qe.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,o){var r={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:o};this.dispatchLocalEvent(r)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,n=!1,o=!1;if(this.childrenAfterGroup)for(var r=0;r<this.childrenAfterGroup.length;r++){var i=this.childrenAfterGroup[r];if(i.selectable)switch(i.isSelected()){case!0:t=!0;break;case!1:n=!0;break;default:o=!0}}e=o?void 0:!(!t||n)||!(!t&&n)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===ke.PINNED_TOP||this.rowPinned===ke.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),n=!0===e.newValue,o=!0===e.clearSelection,r=!0===e.suppressFinishActions,i=!0===e.rangeSelect,s=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(i){var a=this.selectionController.getLastSelectedNode()!==this,l=this.gridOptionsWrapper.isRowSelectionMulti();if(a&&l)return this.doRowRangeSelection()}var u=0;s&&this.group||this.selectThisNode(n)&&u++;if(t&&this.group&&(u+=this.selectChildNodes(n,s)),!r){if(n&&(o||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var c={type:bt.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(c)}n&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=this.gridOptionsWrapper.isGroupSelectsChildren(),t=this.selectionController.getLastSelectedNode(),n=this.rowModel.getNodesInRangeForSelection(this,t),o=0;n.forEach((function(t){t.group&&e||t.selectThisNode(!0)&&o++})),this.selectionController.updateGroupsFromChildrenSelections();var r={type:bt.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(r),o},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var n=this.createGlobalRowEvent(bt.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(n),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterFilter:this.childrenAfterGroup;if(!qe.missing(n)){for(var o=0,r=0;r<n.length;r++)o+=n[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return o}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new ct),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,n=this,o=!0,r=!1;o&&!r;){var i=n.parent;qe.exists(i)&&n.firstChild?i.rowGroupColumn===e&&(r=!0,t=i):o=!1,n=i}return r?t:null},e.prototype.isFullWidthCell=function(){var e=this.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e(this)},e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",Pn([nt("eventService")],e.prototype,"mainEventService",void 0),Pn([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Pn([nt("selectionController")],e.prototype,"selectionController",void 0),Pn([nt("columnController")],e.prototype,"columnController",void 0),Pn([nt("valueService")],e.prototype,"valueService",void 0),Pn([nt("rowModel")],e.prototype,"rowModel",void 0),Pn([nt("context")],e.prototype,"context",void 0),Pn([nt("valueCache")],e.prototype,"valueCache",void 0),Pn([nt("columnApi")],e.prototype,"columnApi",void 0),Pn([nt("gridApi")],e.prototype,"gridApi",void 0),e}(),An=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.labelSeparator="",t.labelAlignment="left",t.config={},t.label="",t}return An(t,e),t.prototype.postConstruct=function(){qe.addCssClass(this.getGui(),"ag-labeled"),qe.addCssClass(this.eLabel,"ag-label");var e=this.config,t=e.labelSeparator,n=e.label,o=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){this.eLabel.innerText=this.label+this.labelSeparator,qe.addOrRemoveCssClass(this.eLabel,"ag-hidden",""===this.label)},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return qe.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),qe.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),qe.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||qe.setElementWidth(this.eLabel,e),this},Nn([Ze],t.prototype,"postConstruct",null),t}($t),Fn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ln=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return Fn(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),qe.addCssClass(this.getGui(),this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addDestroyableEventListener(this,t.EVENT_CHANGED,(function(){e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return qe.setFixedWidth(this.getGui(),e),this},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return e&&t.setAttribute("disabled","true"),qe.addOrRemoveCssClass(t,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(xn),Mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.config={},t.TEMPLATE='\n <div role="presentation">\n <label ref="eLabel" class="ag-input-field-label"></label>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <%displayField% ref="eInput" class="ag-input-field-input"></%displayField%>\n </div>\n </div>',t}return Mn(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),qe.addCssClass(this.eLabel,this.className+"-label"),qe.addCssClass(this.eWrapper,this.className+"-input-wrapper"),qe.addCssClass(this.eInput,this.className+"-input"),qe.addCssClass(this.getGui(),"ag-input-field");var t=this.eInput.id?this.eInput.id:"ag-input-id-"+this.getCompId();this.eLabel.htmlFor=t,this.eInput.id=t;var n=this.config,o=n.width,r=n.value;null!=o&&this.setWidth(o),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.eInput,"input",(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setInputType=function(){this.inputType&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return qe.setElementWidth(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){var t=this.eInput;return e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder"),this},t.prototype.setDisabled=function(t){return t?this.eInput.setAttribute("disabled","true"):this.eInput.removeAttribute("disabled"),e.prototype.setDisabled.call(this,t)},kn([Jt("eLabel")],t.prototype,"eLabel",void 0),kn([Jt("eWrapper")],t.prototype,"eWrapper",void 0),kn([Jt("eInput")],t.prototype,"eInput",void 0),t}(Ln),Vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wn=function(e){function t(){var t=e.call(this)||this;return t.className="ag-checkbox",t.displayTag="input",t.inputType="checkbox",t.labelAlignment="right",t.selected=!1,t.readOnly=!1,t.passive=!1,t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return Vn(t,e),t.prototype.addInputListeners=function(){this.addDestroyableEventListener(this.eInput,"click",this.onCheckboxClick.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){qe.addOrRemoveCssClass(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return qe.addOrRemoveCssClass(this.eWrapper,"ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){var e=this.getNextValue();this.passive?this.dispatchChange(e):this.setValue(e)},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=this.selected,this.eInput.indeterminate=void 0===this.selected,t||this.dispatchChange(this.selected))},t.prototype.dispatchChange=function(e,n){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,event:n});var o=this.getInputElement(),r={type:bt.EVENT_CHECKBOX_CHANGED,id:o.id,name:o.name,selected:e};this.eventService.dispatchEvent(r)},t.prototype.onCheckboxClick=function(e){this.selected=e.target.checked,this.refreshSelectedClass(this.selected),this.dispatchChange(this.selected,e)},t.prototype.refreshSelectedClass=function(e){qe.addOrRemoveCssClass(this.eWrapper,"ag-checked",!0===e),qe.addOrRemoveCssClass(this.eWrapper,"ag-indeterminate",null==e)},jn([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),jn([nt("eventService")],t.prototype,"eventService",void 0),t}(Gn),Hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},zn=function(e){function t(){return e.call(this,'<div class="ag-selection-checkbox"><ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox></div>')||this}return Hn(t,e),t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();this.eCheckbox.setValue(e,!0)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return qe.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return qe.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckbox,Wn.EVENT_CHANGED,(function(e){e.selected?t.onUncheckedClicked(e.event||{}):t.onCheckedClicked()})),this.addDestroyableEventListener(this.rowNode,In.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,bt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setDisplayed(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},Bn([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Bn([nt("eventService")],t.prototype,"eventService",void 0),Bn([Jt("eCheckbox")],t.prototype,"eCheckbox",void 0),t}($t),Un={propertyName:"dateComponent",isCellRenderer:function(){return!1}},qn={propertyName:"headerComponent",isCellRenderer:function(){return!1}},Yn={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},Kn={propertyName:"groupRowInnerRenderer",isCellRenderer:function(){return!0}},$n={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},Qn={propertyName:"pinnedRowCellRenderer",isCellRenderer:function(){return!0}},Xn={propertyName:"cellEditor",isCellRenderer:function(){return!1}},Jn={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},Zn={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},eo={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},to={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},no={propertyName:"filter",isCellRenderer:function(){return!1}},oo={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},ro={propertyName:"toolPanel",isCellRenderer:function(){return!1}},io={propertyName:"statusPanel",isCellRenderer:function(){return!1}},so=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(fn||(fn={}));var ao,lo=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Un,"agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,qn,"agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,Yn,"agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Kn,null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,n){return this.createAndInitUserComponent(null,e,{propertyName:t,isCellRenderer:function(){return!0}},n)},e.prototype.newCellRenderer=function(e,t,n){return void 0===n&&(n=!1),this.createAndInitUserComponent(e,t,n?Qn:$n,null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,Xn,"agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,Jn,null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Zn,"agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,eo,"agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){return this.createAndInitUserComponent(e.colDef,e,to,"agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,n,o){return this.createAndInitUserComponent(e,t,no,n,!1,o)},e.prototype.newSetFilterCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,$n,null,!0)},e.prototype.newFloatingFilterComponent=function(e,t,n){return this.createAndInitUserComponent(e,t,oo,n,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,ro)},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,io)},e.prototype.createAndInitUserComponent=function(e,t,n,o,r,i){void 0===r&&(r=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,n,t,o,r);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,n.propertyName,t,s.paramsFromSelector);this.addReactHacks(l);var u=i?i(l,a):l,c=this.initComponent(a,u);return null==c?Ke.resolve(a):c.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=qe.cloneObject(t));var n=this.context.getBean("frameworkComponentWrapper");n&&(e.frameworkComponentWrapper=n)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var n=new e;return this.initComponent(n,t),n},e.prototype.lookupComponentClassDef=function(e,t,n,o){void 0===n&&(n=null);var r,i=null,s=null,a=null,l=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?i=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?s=u:a=u)),l=e[t+"Framework"],r=e[t+"Selector"]}if(s&&l||i&&l||a&&l)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(l&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(r&&(i||s||a||l))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(l)return{componentFromFramework:!0,component:l,source:fn.HARDCODED,paramsFromSelector:null};if(s)return{componentFromFramework:!1,component:s,source:fn.HARDCODED,paramsFromSelector:null};if(a)return this.agComponentUtils.adaptFunction(t,a,!1,fn.HARDCODED);var c,p=r?r(n):null;if(!(c=p&&p.component?p.component:i||o))return null;var d=this.lookupFromRegisteredComponents(t,c);return d?{componentFromFramework:d.componentFromFramework,component:d.component,source:d.source,paramsFromSelector:p?p.params:null}:null},e.prototype.lookupFromRegisteredComponents=function(e,t){var n=null!=t?t:e,o=this.userComponentRegistry.retrieve(n);return null==o?null:o.componentFromFramework?{component:o.component,componentFromFramework:!0,source:fn.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(o.component)?{component:o.component,componentFromFramework:!1,source:o.source==ao.REGISTERED?fn.REGISTERED_BY_NAME:fn.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,o.component,o.componentFromFramework,o.source==ao.REGISTERED?fn.REGISTERED_BY_NAME:fn.DEFAULT)},e.prototype.createFinalParams=function(e,t,n,o){void 0===o&&(o=null);var r={};qe.mergeDeep(r,n);var i=e?e[t+"Params"]:null;return null!=i&&("function"==typeof i?qe.mergeDeep(r,i(n)):"object"==typeof i&&qe.mergeDeep(r,i)),qe.mergeDeep(r,o),r},e.prototype.createComponentInstance=function(e,t,n,o,r){var i,s=t.propertyName,a=this.lookupComponentClassDef(e,s,n,o);if(!a||!a.component){var l=e?e[s]:o,u=l||o;return r||console.error("Could not find component "+u+", did you forget to configure this component?"),null}if(a.componentFromFramework){var c=a.component,p=this.componentMetadataProvider.retrieve(s);i=this.frameworkComponentWrapper.wrap(c,p.mandatoryMethodList,p.optionalMethodList,t,o)}else i=new a.component;return{componentInstance:i,paramsFromSelector:a.paramsFromSelector}},e.prototype.initComponent=function(e,t){if(this.context.wireBean(e),null!=e.init)return e.init(t)},so([nt("gridOptions")],e.prototype,"gridOptions",void 0),so([nt("context")],e.prototype,"context",void 0),so([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),so([nt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),so([nt("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),so([ot("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e=so([tt("userComponentFactory")],e)}(),uo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),co=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},po=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return uo(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),n=null==e.value,o=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var r=e.node;if(r.footer)o=(e.colDef&&e.colDef.showRowGroup)!==(r.rowGroupColumn&&r.rowGroupColumn.getColId())}this.cellIsBlank=t||n||o,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===ke.PINNED_LEFT,t=this.params.pinned===ke.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!n:this.columnController.isPinningLeft()?!e:!n},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){qe.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var n=e*t,o=this.getGui(),r=this.gridOptionsWrapper.isEnableRtl()?"paddingRight":"paddingLeft";o.style[r]=n+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,In.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||qe.get(e.colDef,"cellRendererParams.innerRenderer",null)||qe.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var n=qe.cloneObject(this.params);n.value=this.params.value,"function"==typeof t?e=t(n):"string"==typeof t?e=this.expressionService.evaluate(t,n):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,n=this.params,o=this.displayedGroup.rowGroupColumn,r=o||n.column,i=this.params.value,s=r?this.valueFormatterService.formatValue(r,n.node,n.scope,i):null;n.valueFormatted=s,(e=n.fullWidth?this.useFullWidth(n):this.useInnerRenderer(this.params.colDef.cellRendererParams,r.getColDef(),n))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,n){var o=this,r=null,i=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(i&&null!=i.component&&i.source!=fn.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,n);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=fn.DEFAULT?this.userComponentFactory.newCellRenderer(t,n):s&&s.source==fn.DEFAULT&&qe.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,n):this.userComponentFactory.newCellRenderer({},n)}return null!=r?r.then((function(e){null!=e?qe.bindCellRendererToHtmlElement(r,o.eValue):o.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value})):this.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value,r},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?qe.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,In.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){qe.exists(this.params.value)&&(this.eValue.innerText=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var n=new zn;this.getContext().wireBean(n),n.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc((function(){return n.destroy()}))}qe.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,n=qe.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),o=qe.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(n),this.eContracted.appendChild(o),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(e.node,In.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,In.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){qe.isKeyPressed(e,ke.KEY_ENTER)&&!this.params.suppressEnterExpand&&(this.params.column&&this.params.column.isCellEditable(this.params.node)||(e.preventDefault(),this.onExpandOrContract()))},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var n=t.rowGroupColumn;this.draggedFromHideOpenParents=!!n&&!e.isRowGroupDisplayed(n.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var o=t.parent;!qe.missing(o);){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroup=o;break}o=o.parent}qe.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){qe.isStopPropagationForAgGrid(e)||(qe.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){qe.isStopPropagationForAgGrid(e)||(qe.isElementInEventPath(this.eExpanded,e)||qe.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract())},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;qe.setDisplayed(this.eContracted,!t),qe.setDisplayed(this.eExpanded,t)}else qe.setDisplayed(this.eExpanded,!1),qe.setDisplayed(this.eContracted,!1);var n=this.displayedGroup,o=this.columnController.isPivotMode()&&n.leafGroup,r=!n.isExpandable(),i=n.footer||r||o;this.addOrRemoveCssClass("ag-row-group",!i),this.addOrRemoveCssClass("ag-row-group-leaf-indent",i)},t.prototype.destroy=function(){this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy(),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper"><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',co([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),co([nt("expressionService")],t.prototype,"expressionService",void 0),co([nt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),co([nt("columnController")],t.prototype,"columnController",void 0),co([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),co([Jt("eExpanded")],t.prototype,"eExpanded",void 0),co([Jt("eContracted")],t.prototype,"eContracted",void 0),co([Jt("eCheckbox")],t.prototype,"eCheckbox",void 0),co([Jt("eValue")],t.prototype,"eValue",void 0),co([Jt("eChildCount")],t.prototype,"eChildCount",void 0),t}($t),ho=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},go=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return ho(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),o=e.formatValue(n),r=qe.exists(o)?o:n,i=t>=0;this.eDelta.innerHTML=i?"↑"+r:"↓"+r,qe.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",i),qe.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!i)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){qe.removeCssClass(this.eValue,"ag-value-change-value-highlight"),qe.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue&&(qe.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:qe.exists(e.value)?this.eValue.innerHTML=t:qe.clearElement(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())){if("number"==typeof t&&"number"==typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&qe.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',fo([nt("filterManager")],t.prototype,"filterManager",void 0),t}($t),vo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yo=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return vo(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=qe.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&qe.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(qe.missing(t)&&(t=""),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=t,qe.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:qe.exists(e.value)?this.eCurrent.innerHTML=t:qe.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',mo([nt("filterManager")],t.prototype,"filterManager",void 0),t}($t),Co=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bo=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Co(t,e),t.prototype.init=function(e){var t=qe.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=n("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',wo([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),wo([Jt("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),wo([Jt("eLoadingText")],t.prototype,"eLoadingText",void 0),t}($t),Eo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_o=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Oo=function(e){function t(){return e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this}return Eo(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,qe.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(n){var o={value:n},r=t.valueFormatterService.formatValue(e.column,null,null,n),i=null!=r;o.text=i?r:n,t.eSelect.addOption(o)})),this.eSelect.setValue(e.value,!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},_o([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),_o([nt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),_o([Jt("eSelect")],t.prototype,"eSelect",void 0),t}(Xt),Ro=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ro(t,e),t.prototype.isPopup=function(){return!0},t}(sn),To=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Do=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return To(t,e),t.prototype.isPopup=function(){return!0},t}(Oo),Po=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Io=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ao=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Po(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),qe.exists(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==ke.KEY_LEFT||t==ke.KEY_UP||t==ke.KEY_RIGHT||t==ke.KEY_DOWN||e.shiftKey&&t==ke.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',Io([Jt("eTextArea")],t.prototype,"eTextArea",void 0),t}(Xt),No=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return No(t,e),t.prototype.mapRangeFromModel=function(e){return{from:e.filter,to:e.filterTo}},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),[this.eValueFrom1,this.eValueFrom2,this.eValueTo1,this.eValueTo2].forEach((function(e){return e.setValue(null,t)})),this.resetPlaceholder()},t.prototype.setConditionIntoUi=function(e,t){var n=t===nn.One,o=n?this.eValueFrom1:this.eValueFrom2,r=n?this.eValueTo1:this.eValueTo2;o.setValue(e?""+e.filter:null),r.setValue(e?""+e.filterTo:null)},t.prototype.setValueFromFloatingFilter=function(e){this.eValueFrom1.setValue(e),this.eValueFrom2.setValue(null),this.eValueTo1.setValue(null),this.eValueTo2.setValue(null)},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.addValueChangedListeners()},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValueFrom1.onValueChange(t),this.eValueFrom2.onValueChange(t),this.eValueTo1.onValueChange(t),this.eValueTo2.onValueChange(t)},t.prototype.resetPlaceholder=function(){var e=this.translate.bind(this),t=this.getCondition1Type()===yn.IN_RANGE,n=this.getCondition2Type()===yn.IN_RANGE;this.eValueFrom1.setInputPlaceholder(e(t?"inRangeStart":"filterOoo")),this.eValueTo1.setInputPlaceholder(e(t?"inRangeEnd":"filterOoo")),this.eValueFrom2.setInputPlaceholder(e(n?"inRangeStart":"filterOoo")),this.eValueTo2.setInputPlaceholder(e(n?"inRangeEnd":"filterOoo"))},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),this.eValueFrom1.getInputElement().focus()},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===nn.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-number-field class="ag-filter-from ag-filter-filter" ref="eValueFrom'+t+'"></ag-input-number-field>\n <ag-input-number-field class="ag-filter-to ag-filter-filter" ref="eValueTo'+t+'"></ag-input-number-field>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===nn.One,n=t?this.getCondition1Type():this.getCondition2Type(),o=t?this.eValueFrom1:this.eValueFrom2,r=t?this.eValueTo1:this.eValueTo2,i=this.stringToFloat(o.getValue()),s=this.stringToFloat(r.getValue());return n!==vn.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||(n===vn.IN_RANGE?null!=i&&null!=s:null!=i))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var t=qe.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.createCondition=function(e){var n=e===nn.One,o=n?this.getCondition1Type():this.getCondition2Type(),r=n?this.eValueFrom1:this.eValueFrom2,i=this.stringToFloat(r.getValue()),s=n?this.eValueTo1:this.eValueTo2,a=this.stringToFloat(s.getValue()),l={filterType:t.FILTER_TYPE,type:o};return this.doesFilterHaveHiddenInput(o)||(l.filter=i,l.filterTo=a),l},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.showValueFrom(this.getCondition1Type());qe.setDisplayed(this.eValueFrom1.getGui(),t);var n=this.showValueTo(this.getCondition1Type());qe.setDisplayed(this.eValueTo1.getGui(),n);var o=this.showValueFrom(this.getCondition2Type());qe.setDisplayed(this.eValueFrom2.getGui(),o);var r=this.showValueTo(this.getCondition2Type());qe.setDisplayed(this.eValueTo2.getGui(),r)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[yn.EQUALS,yn.NOT_EQUAL,yn.LESS_THAN,yn.LESS_THAN_OR_EQUAL,yn.GREATER_THAN,yn.GREATER_THAN_OR_EQUAL,yn.IN_RANGE],xo([Jt("eValueFrom1")],t.prototype,"eValueFrom1",void 0),xo([Jt("eValueFrom2")],t.prototype,"eValueFrom2",void 0),xo([Jt("eValueTo1")],t.prototype,"eValueTo1",void 0),xo([Jt("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(yn),Lo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ko=function(e){function t(){return e.call(this)||this}return Lo(t,e),t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',Mo([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}($t),Go=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},jo=function(e){function t(){return e.call(this)||this}return Go(t,e),t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',Vo([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}($t),Wo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ho=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return Wo(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(Xt),Bo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Uo=function(e){function t(){return e.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return Bo(t,e),t.prototype.init=function(e){var t=this;this.shouldUseBrowserDatePicker(e)&&(p()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.getInputElement().type="date"),this.listener=e.onDateChanged,this.addDestroyableEventListener(this.eDateInput.getInputElement(),"input",(function(e){e.target===document.activeElement&&t.listener()}))},t.prototype.getDate=function(){return de(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(pe(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:f()||g()},zo([Jt("eDateInput")],t.prototype,"eDateInput",void 0),t}($t),qo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,n=this.conditionToString(t.condition1),o=this.conditionToString(t.condition2);return n+" "+t.operator+" "+o}var r=e;return this.conditionToString(r)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new ln,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.prototype.isTypeEditable=function(e){return!this.doesFilterHaveHiddenInput(e)&&e&&e!==vn.IN_RANGE&&e!==vn.EMPTY},t}($t),Ko=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$o=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qo=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex; overflow: hidden;"></div>\n </div>')||this}return Ko(t,e),t.prototype.getDefaultFilterOptions=function(){return bn.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type===vn.IN_RANGE?e.dateFrom+"-"+e.dateTo:null!=e.dateFrom?""+e.dateFrom:""+e.type},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent(),this.eReadOnlyText.setDisabled(!0)},t.prototype.setEditable=function(e){N(this.eDateWrapper,e),N(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var o=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(o),o){if(t){var r=t;this.dateComp.setDate(de(r.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=pe(this.dateComp.getDate());this.params.parentFilterInstance((function(n){n&&n.onFloatingFilterChanged(e.getLastType(),t)}))},t.prototype.createDateComponent=function(){var e=this,t=pn.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:Te(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new an(this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},$o([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),$o([Jt("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),$o([Jt("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Yo),Xo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xo(t,e),t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getValue=function(e){var t=e.getValue();return(t=m(t))&&""===t.trim()&&(t=null),t},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValue1.onValueChange(t),this.eValue2.onValueChange(t)},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.comparator=this.textFilterParams.textCustomComparator||t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter||(1==this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===nn.One?this.eValue1:this.eValue2).setValue(e?e.filter:null)},t.prototype.createCondition=function(e){var n=e===nn.One,o=n?this.getCondition1Type():this.getCondition2Type(),r=n?this.eValue1:this.eValue2,i=this.getValue(r),s={filterType:t.FILTER_TYPE,type:o};return this.doesFilterHaveHiddenInput(o)||(s.filter=i),s},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),[this.eValue1,this.eValue2].forEach((function(e){return e.setValue(null,t)})),this.resetPlaceholder()},t.prototype.resetPlaceholder=function(){var e=this.translate.bind(this)("filterOoo","Filter...");[this.eValue1,this.eValue2].forEach((function(t){return t.setInputPlaceholder(e)}))},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.setValue(e),this.eValue2.setValue(null)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===nn.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-text-field class="ag-filter-filter" ref="eValue'+t+'"></ag-input-text-field>\n </div>'},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());N(this.eValue1.getGui(),t);var n=this.showValueFrom(this.getCondition2Type());N(this.eValue2.getGui(),n)},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),this.eValue1.getInputElement().focus()},t.prototype.isConditionUiComplete=function(e){var t=e===nn.One,n=t?this.getCondition1Type():this.getCondition2Type();return n!==vn.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||null!=this.getValue(t?this.eValue1:this.eValue2))},t.prototype.individualConditionPasses=function(e,t){var n=t.filter,o=t.type,r=this.textFilterParams.valueGetter(e.node),i=this.formatter(r),s=this.optionsFactory.getCustomOption(o);if(s&&(null!=n||s.hideFilterInput))return s.test(n,i);if(null==r)return o===vn.NOT_EQUAL||o===vn.NOT_CONTAINS;var a=this.formatter(n);return this.comparator(o,i,a)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[vn.CONTAINS,vn.NOT_CONTAINS,vn.EQUALS,vn.NOT_EQUAL,vn.STARTS_WITH,vn.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,n,o){switch(e){case t.CONTAINS:return n.indexOf(o)>=0;case t.NOT_CONTAINS:return-1===n.indexOf(o);case t.EQUALS:return n===o;case t.NOT_EQUAL:return n!=o;case t.STARTS_WITH:return 0===n.indexOf(o);case t.ENDS_WITH:var r=n.lastIndexOf(o);return r>=0&&r===n.length-o.length;default:return console.warn("invalid filter type "+e),!1}},Jo([Jt("eValue1")],t.prototype,"eValue1",void 0),Jo([Jt("eValue2")],t.prototype,"eValue2",void 0),t}(vn),er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return er(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){if(!this.isEventFromFloatingFilter(t)){this.setLastTypeFromModel(e);var n=this.getTextFromModel(e);this.eFloatingFilterInput.setValue(n);var o=this.canWeEditAfterModelFromParentFilter(e);this.setEditable(o)}},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=pn.isUseApplyButton(this.params.filterParams);var n=pn.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o=Te(this.syncUpWithParentFilter.bind(this),n),r=this.eFloatingFilterInput.getGui();this.addDestroyableEventListener(r,"input",o),this.addDestroyableEventListener(r,"keypress",o),this.addDestroyableEventListener(r,"keydown",o);var i=t.column.getDefinition();i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0)},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=this.eFloatingFilterInput.getValue(),o=Ge(e,ke.KEY_ENTER);this.applyActive&&!o||this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),n)}))},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},tr([Jt("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),tr([Ze],t.prototype,"postConstruct",null),t}(Yo),or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t.prototype.getDefaultFilterOptions=function(){return Fo.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==vn.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(nr),ir=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return Zo.DEFAULT_FILTER_OPTIONS},t}(nr),ar=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
247
- /**
248
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
249
- * @version v23.1.1
250
- * @link http://www.ag-grid.com/
251
- * @license MIT
252
- */!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(ao||(ao={}));var lr,ur=function(){function e(){this.agGridDefaults={agDateInput:Uo,agColumnHeader:Rn,agColumnGroupHeader:Dn,agTextColumnFloatingFilter:sr,agNumberColumnFloatingFilter:rr,agDateColumnFloatingFilter:Qo,agAnimateShowChangeCellRenderer:go,agAnimateSlideCellRenderer:yo,agGroupCellRenderer:po,agGroupRowRenderer:po,agLoadingCellRenderer:bo,agCellEditor:sn,agTextCellEditor:sn,agSelectCellEditor:Oo,agPopupTextCellEditor:So,agPopupSelectCellEditor:Do,agLargeTextCellEditor:Ao,agTextColumnFilter:Zo,agNumberColumnFilter:Fo,agDateColumnFilter:bn,agLoadingOverlay:ko,agNoRowsOverlay:jo,agTooltipComponent:Ho},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},e.prototype.registerComponent=function(e,t){var n=this.translateIfDeprecated(e);this.frameworkComponents[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComponents[n]=t},e.prototype.registerFwComponent=function(e,t){var n=this.translateIfDeprecated(e);this.jsComponents[n]?console.error("Trying to register a component that you have already registered for plain javascript: "+n):this.frameworkComponents[n]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:ao.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:ao.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:ao.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-Grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(qe.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},ar([nt("gridOptions")],e.prototype,"gridOptions",void 0),ar([nt("context")],e.prototype,"context",void 0),ar([Ze],e.prototype,"init",null),e=ar([tt("userComponentRegistry")],e)}(),cr=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var o=0;o<e.childrenAfterGroup.length;o++){var r=e.childrenAfterGroup[o];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[o],t,n):n&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];){var o={rowNode:t,children:null};this.mapToItems[t.id]=o,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var o=e;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),t.forEach((function(e){return n.nodeIdsToColumns[o.id][e.getId()]=!0})),o=o.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,o=0;o<t;o++){var r=this.mapToItems[n.id],i=this.mapToItems[n.parent.id];i.children||(i.children=[]),i.children.push(r),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return n[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!n[e.getId()]}))},e}(),pr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dr=function(e,t){return function(n,o){t(n,o,e)}},hr=function(){function e(){this.events=[]}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.events.push(this.eventService.addEventListener(bt.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.events.push(this.eventService.addEventListener(bt.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)))},e.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()})),this.events=[]},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return qe.iterateObject(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},e.prototype.getSelectedRows=function(){var e=[];return qe.iterateObject(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;qe.iterateObject(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new cr(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,n={},o=0;return qe.iterateObject(this.selectedNodes,(function(r,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];o+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),qe.iterateObject(n,(function(e,t){t.calculateSelectedFromChildren()})),o},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){qe.exists(t)&&e.id!==t.id&&(qe.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},e.prototype.syncInNewRowNode=function(e){qe.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var o=0,r=n.length;o<r;o++){var i=n[o];i.isSelected()?t.push(i):i.group&&i.children&&e(i.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")}else console.warn("getBestCostNodeSelection is only available when using normal row model")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return qe.iterateObject(this.selectedNodes,(function(t,n){n&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!n)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else qe.iterateObject(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:bt.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==ke.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,n=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(n):t.forEachNode(n),this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:bt.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},pr([nt("eventService")],e.prototype,"eventService",void 0),pr([nt("rowModel")],e.prototype,"rowModel",void 0),pr([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),pr([nt("columnApi")],e.prototype,"columnApi",void 0),pr([nt("gridApi")],e.prototype,"gridApi",void 0),pr([dr(0,it("loggerFactory"))],e.prototype,"setBeans",null),pr([Ze],e.prototype,"init",null),pr([et],e.prototype,"destroy",null),e=pr([tt("selectionController")],e)}(),fr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gr=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error("ag-Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n){void 0===n&&(n=!0),this.columnController.setColumnWidths([{key:e,newWidth:t}],!1,n)},e.prototype.setColumnWidths=function(e,t){void 0===t&&(t=!0),this.columnController.setColumnWidths(e,!1,t)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e,t){return this.columnController.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){return this.columnController.autoSizeColumns(e,t,"api")},e.prototype.autoSizeAllColumns=function(e){this.columnController.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},fr([nt("columnController")],e.prototype,"columnController",void 0),e=fr([tt("columnApi")],e)}();
253
- /**
254
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
255
- * @version v23.1.1
256
- * @link http://www.ag-grid.com/
257
- * @license MIT
258
- */(
259
- /**
260
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
261
- * @version v23.1.1
262
- * @link http://www.ag-grid.com/
263
- * @license MIT
264
- */
265
- lr=t.CellRangeType||(t.CellRangeType={}))[lr.VALUE=0]="VALUE",lr[lr.DIMENSION=1]="DIMENSION";
266
- /**
267
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
268
- * @version v23.1.1
269
- * @link http://www.ag-grid.com/
270
- * @license MIT
271
- */
272
- var vr,mr,yr,Cr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};(vr=t.DragSourceType||(t.DragSourceType={}))[vr.ToolPanel=0]="ToolPanel",vr[vr.HeaderCell=1]="HeaderCell",vr[vr.RowDrag=2]="RowDrag",vr[vr.ChartPanel=3]="ChartPanel",(mr=t.VerticalDirection||(t.VerticalDirection={}))[mr.Up=0]="Up",mr[mr.Down=1]="Down",(yr=t.HorizontalDirection||(t.HorizontalDirection={}))[yr.Left=0]="Left",yr[yr.Right=1]="Right";var wr,br=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var n;return n=e,e.prototype.init=function(){this.ePinnedIcon=qe.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=qe.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=qe.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=qe.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=qe.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=qe.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=qe.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=qe.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=qe.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},e.prototype.removeDragSource=function(e){var t=qe.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),qe.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(e,t){var n=this.getHorizontalDirection(e),o=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var r=qe.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(r!==this.lastDropTarget)this.leaveLastTargetIfExists(e,n,o,t),this.enterDragTargetIfExists(r,e,n,o,t),this.lastDropTarget=r;else if(r&&r.onDragging){var i=this.createDropTargetEvent(r,e,n,o,t);r.onDragging(i)}},e.prototype.enterDragTargetIfExists=function(e,t,n,o,r){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,o,r);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,n,o){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,n,o);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],n=e.getSecondaryContainers?e.getSecondaryContainers():null;return n&&(t=t.concat(n)),t},e.prototype.isMouseOnDropTarget=function(e,t){var n=!1;return this.getAllContainersFromDropTarget(t).filter((function(e){return e})).forEach((function(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var r=e.clientX>=o.left&&e.clientX<=o.right,i=e.clientY>=o.top&&e.clientY<=o.bottom;r&&i&&(n=!0)}})),n&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},e.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},e.prototype.findExternalZone=function(e){var t=this.dropTargets.filter((function(e){return e.external}));return qe.find(t,(function(t){return t.getContainer()===e.getContainer()}))},e.prototype.getHorizontalDirection=function(e){var n=this.eventLastTime.clientX,o=e.clientX;return n===o?null:n>o?t.HorizontalDirection.Left:t.HorizontalDirection.Right},e.prototype.getVerticalDirection=function(e){var n=this.eventLastTime.clientY,o=e.clientY;return n===o?null:n>o?t.VerticalDirection.Up:t.VerticalDirection.Down},e.prototype.createDropTargetEvent=function(e,t,n,o,r){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this.gridApi,l=this.columnApi,u=this.dragItem,c=this.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:o,hDirection:n,dragSource:c,fromNudge:r,dragItem:u,api:a,columnApi:l,dropZoneTarget:i}},e.prototype.positionGhost=function(e){var t=this.eGhost,n=t.getBoundingClientRect().height,o=qe.getBodyWidth()-2,r=qe.getBodyHeight()-2,i=e.pageY-n/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=window.pageYOffset||a.documentElement.scrollTop,u=window.pageXOffset||a.documentElement.scrollLeft;o>0&&s+t.clientWidth>o+u&&(s=o+u-t.clientWidth),s<0&&(s=0),r>0&&i+t.clientHeight>r+l&&(i=r+l-t.clientHeight),i<0&&(i=0),t.style.left=s+"px",t.style.top=i+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=qe.loadTemplate(n.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&qe.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),o=this.dragSource.dragItemName;qe.isFunction(o)&&(o=o()),t.innerHTML=qe.escape(o),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument();this.eGhostParent=r.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,t){var o;switch(void 0===t&&(t=!1),qe.clearElement(this.eGhostIcon),e||(e=this.dragSource.defaultIconName||n.ICON_NOT_ALLOWED),e){case n.ICON_PINNED:o=this.ePinnedIcon;break;case n.ICON_MOVE:o=this.eMoveIcon;break;case n.ICON_LEFT:o=this.eLeftIcon;break;case n.ICON_RIGHT:o=this.eRightIcon;break;case n.ICON_GROUP:o=this.eGroupIcon;break;case n.ICON_AGGREGATE:o=this.eAggregateIcon;break;case n.ICON_PIVOT:o=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:o=this.eDropNotAllowedIcon;break;case n.ICON_HIDE:o=this.eHideIcon}qe.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",t),o===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||o&&this.eGhostIcon.appendChild(o)},e.ICON_PINNED="pinned",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.ICON_HIDE="hide",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',Cr([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Cr([nt("dragService")],e.prototype,"dragService",void 0),Cr([nt("environment")],e.prototype,"environment",void 0),Cr([nt("columnApi")],e.prototype,"columnApi",void 0),Cr([nt("gridApi")],e.prototype,"gridApi",void 0),Cr([Ze],e.prototype,"init",null),Cr([et],e.prototype,"destroy",null),e=n=Cr([tt("dragAndDropService")],e)}(),Er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_r=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Or=function(e){function n(t,n,o,r){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" role="presentation"></div>')||this;return i.rowNode=t,i.column=n,i.cellValue=o,i.beans=r,i}return Er(n,e),n.prototype.postConstruct=function(){this.getGui().appendChild(qe.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new Tr(this,this.beans,this.rowNode,this.column):new Sr(this,this.beans,this.rowNode,this.column);this.addFeature(e,this.beans.context)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isEnableMultiRowDragging())return 1;var e=this.beans.selectionController.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&qe.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(){var e=this,n={rowNode:this.rowNode,columns:[this.column],defaultTextValue:this.cellValue},o=this.column.getColDef().rowDragText,r={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var t=e.getSelectedCount();return o?o(n,t):1===t?e.cellValue:t+" rows"},getDragItem:function(){return n},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(r)}))},_r([Ze],n.prototype,"postConstruct",null),n}($t),Rr=function(e){function t(t,n,o){var r=e.call(this)||this;return r.parent=t,r.column=o,r.rowNode=n,r}return Er(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);qe.isFunction(this.column.getColDef().rowDrag)?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(Ut),Sr=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return Er(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},_r([Ze],t.prototype,"postConstruct",null),t}(Rr),Tr=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return Er(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,bt.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.eventService,bt.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.eventService,bt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridPanel.getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)},_r([Ze],t.prototype,"postConstruct",null),t}(Rr),Dr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ir=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.getGuiCalledOnChild=!1,n.cellEditor=t,n}return Dr(t,e),t.prototype.onKeyDown=function(e){qe.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(n){var o=this;this.params=n,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){o.cellEditor.destroy&&o.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.getPopupPosition=function(){if(this.cellEditor.getPopupPosition)return this.cellEditor.getPopupPosition()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",Pr([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Xt),Ar=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xr=function(e){function t(t,n,o,r,i){var s=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return s.rowNode=t,s.column=n,s.cellValue=o,s.beans=r,s.eCell=i,s}return Ar(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(qe.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag,o=qe.isBrowserIE();o||e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e}):function(){try{var n=JSON.stringify(t.rowNode.data);o?e.dataTransfer.setData("text",n):(e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n))}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},Nr([Ze],t.prototype,"postConstruct",null),t}($t),Fr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
273
- /**
274
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
275
- * @version v23.1.1
276
- * @link http://www.ag-grid.com/
277
- * @license MIT
278
- */!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(wr||(wr={}));var Mr,kr=function(e){function t(t,n){var o=e.call(this)||this;return o.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=wr.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=t,o.location=n,o}return Fr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addDestroyableEventListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addDestroyableEventListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onMouseMove.bind(this)),this.addDestroyableEventListener(e,"mousedown",this.onMouseDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=wr.WAITING_TO_SHOW},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===wr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=wr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===wr.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=wr.NOTHING},t.prototype.destroyTooltipComp=function(){qe.addCssClass(this.tooltipComp.getGui(),"ag-tooltip-hiding");var e=this.tooltipPopupDestroyFunc,t=this.tooltipComp;window.setTimeout((function(){e(),t.destroy&&t.destroy()}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=this.parentComp.getTooltipText();if(e){this.state=wr.SHOWING,this.tooltipInstanceCount++;var t={location:this.location,api:this.gridApi,columnApi:this.columnApi,colDef:this.parentComp.getComponentHolder(),column:this.parentComp.getColumn,context:this.gridOptionsWrapper.getContext(),rowIndex:this.parentComp.getCellPosition&&this.parentComp.getCellPosition().rowIndex,value:e},n=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.newTooltipComponent(t).then(n)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==wr.SHOWING||this.tooltipInstanceCount!==e)t.destroy&&t.destroy();else{var n=t.getGui();this.tooltipComp=t,qe.containsClass(n,"ag-tooltip")||qe.addCssClass(n,"ag-tooltip-custom"),this.tooltipPopupDestroyFunc=this.popupService.addPopup(!1,n,!1),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Lr([nt("popupService")],t.prototype,"popupService",void 0),Lr([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Lr([nt("columnApi")],t.prototype,"columnApi",void 0),Lr([nt("gridApi")],t.prototype,"gridApi",void 0),Lr([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Lr([Ze],t.prototype,"postConstruct",null),t}(Ut),Gr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vr=function(){return(Vr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},jr=function(e){function n(t,n,o,r,i,s,a){var l=e.call(this)||this;if(l.hasChartRange=!1,l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=n,l.column=o,l.rowNode=r,l.rowComp=i,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=l.beans.rangeController&&n.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusController.isCellFocused(l.cellPosition),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled&&l.beans.rangeController){var u=l.beans.rangeController;l.rangeCount=u.getCellRangeCount(l.cellPosition),l.hasChartRange=l.getHasChartRange()}return l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return Gr(n,e),n.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],n=this.column,o=this.getCellWidth(),r=this.modifyLeftForPrintLayout(this.getCellLeft()),i=this.getInitialValueToRender(),s=qe.get(this.column,"colDef.template",null)?i:qe.escape(i);this.tooltip=this.getToolTip();var a=qe.escape(this.tooltip),l=qe.escape(n.getId()),u="",c="",p=this.preProcessStylesFromColDef(),d=this.getInitialCssClasses(),h=this.getStylesForRowSpanning(),f=qe.escape(this.getAriaColumnIndex());return this.usingWrapper&&(u='<div ref="eCellWrapper" class="ag-cell-wrapper" role="presentation">\n <span ref="eCellValue" role="gridcell" aria-colindex="'+f+'" class="ag-cell-value" '+e+">",c="</span></div>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="'+(this.usingWrapper?"presentation":"gridcell")+'"'),this.usingWrapper||t.push(" aria-colindex="+f),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+qe.escape(d.join(" "))+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&qe.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+Number(o)+"px; left: "+Number(r)+"px; "+qe.escape(p)+" "+qe.escape(h)+'" >'),t.push(u),qe.exists(s,!0)&&t.push(s),t.push(c),t.push("</div>"),t.join("")},n.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},n.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.refreshHandle(),qe.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.addFeature(new kr(this,"cell"),this.beans.context)},n.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);qe.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},n.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?qe.last(this.colsSpanning):this.column).getLeft()},n.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},n.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},n.prototype.setupColSpan=function(){qe.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,bt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,bt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},n.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,o=this.column.getPinned(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnController.getDisplayedColAfter(n))&&!qe.missing(n))&&o===n.getPinned();r++);return t},n.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();qe.areEqual(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},n.prototype.getAriaColumnIndex=function(){return(this.beans.columnController.getAllDisplayedColumns().indexOf(this.column)+1).toString()},n.prototype.refreshAriaIndex=function(){var e=this.getAriaColumnIndex();(this.usingWrapper?this.eCellValue:this.getGui()).setAttribute("aria-colindex",e)},n.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-auto-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),qe.pushAll(e,this.preProcessClassesFromColDef()),qe.pushAll(e,this.preProcessCellClassRules()),qe.pushAll(e,this.getInitialRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},n.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},n.prototype.getRenderedRow=function(){return this.rowComp},n.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},n.prototype.getCellRenderer=function(){return this.cellRenderer},n.prototype.getCellEditor=function(){return this.cellEditor},n.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editingCell){var t=this.getComponentHolder(),n=e&&e.newData,o=e&&e.suppressFlash||t.suppressCellFlash,r=e&&e.forceRefresh,i=this.value;this.value=this.getValue();var s=!this.valuesAreEqual(i,this.value);if(r||s){this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value),!n&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!o&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},n.prototype.flashCell=function(){this.animateCell("data-changed")},n.prototype.animateCell=function(e){var t="ag-cell-"+e,n="ag-cell-"+e+"-animation",o=this.getGui();qe.addCssClass(o,t),qe.removeCssClass(o,n),window.setTimeout((function(){qe.removeCssClass(o,t),qe.addCssClass(o,n),window.setTimeout((function(){qe.removeCssClass(o,n)}),1e3)}),500)},n.prototype.replaceContentsAfterRefresh=function(){qe.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},n.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=Vr({},this.rowNode.data),this.angular1Compile())},n.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){return t.remove()}))}}},n.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&qe.addStylesToElement(this.getGui(),e)},n.prototype.preProcessStylesFromColDef=function(){return qe.cssStyleObjectToMarkup(this.processStylesFromColDef())},n.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var n={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;return t}},n.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return qe.addCssClass(e.getGui(),t)}))},n.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},n.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},n.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.chooseCellRenderer(),this.usingCellRenderer)this.createCellRendererInstance();else{var n=this.getValueToUse();null!=n&&(this.eParentOfValue.innerHTML=qe.escape(n))}},n.prototype.attemptCellRendererRefresh=function(){if(qe.missing(this.cellRenderer)||!this.cellRenderer||qe.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),n=this.cellRenderer.refresh(t);return!0===n||void 0===n},n.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){var t=qe.exists(e);if(!t||this.tooltip!==e.toString()){qe.exists(this.tooltip);this.tooltip=e,this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&(t?this.eParentOfValue.setAttribute("title",this.tooltip):this.eParentOfValue.removeAttribute("title"))}}},n.prototype.valuesAreEqual=function(e,t){var n=this.getComponentHolder(),o=n?n.equals:null;return o?o(e,t):e===t},n.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&qe.exists(t))return qe.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var n=e.tooltipValueGetter||e.tooltip;return n?n({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data}):null},n.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?qe.escape(this.tooltip):this.tooltip},n.prototype.processCellClassRules=function(e,t){var n=this.getComponentHolder();this.beans.stylingService.processClassRules(n.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:n,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},n.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){return qe.addCssClass(e.getGui(),t)}),(function(t){return qe.removeCssClass(e.getGui(),t)}))},n.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){return e.push(t)}),(function(e){})),e},n.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,this.includeRowDraggingComponent=!1,void(this.includeDndSourceComponent=!1);var t="function"==typeof e.checkboxSelection,n="function"==typeof e.rowDrag,o="function"==typeof e.dndSource;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=n||!0===e.rowDrag,this.includeDndSourceComponent=o||!0===e.dndSource;var r=this.beans.gridOptionsWrapper.isEnableCellTextSelection();this.usingWrapper=r||this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},n.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var t=this.createCellRendererParams(),o=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",t);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",t)&&this.rowNode.rowPinned?(this.cellRendererType=n.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):o?(this.cellRendererType=n.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},n.prototype.createCellRendererInstance=function(e){var t=this;if(void 0===e&&(e=!1),this.usingCellRenderer){var o=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(o||r||this.autoHeightCell)&&(e=!1);var i=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===n.CELL_RENDERER_TYPE_NORMAL;this.createCellRendererFunc=function(){t.createCellRendererFunc=null;var e=t.beans.userComponentFactory.newCellRenderer(t.getComponentHolder(),i,!a);e&&e.then(s)},e?this.beans.taskQueue.createTask(this.createCellRendererFunc,this.rowNode.rowIndex,"createTasksP2"):this.createCellRendererFunc()}},n.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),qe.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},n.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,n){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,n)}}},n.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},n.prototype.getValueToUse=function(){return null!=this.valueFormatted?this.valueFormatted:this.value},n.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},n.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),o=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&n&&!o;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},n.prototype.onMouseEvent=function(e,t){if(!qe.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},n.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,bt.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},n.prototype.createEvent=function(e,t){var n={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(n.$scope=this.scope),n},n.prototype.onMouseOut=function(e){var t=this.createEvent(e,bt.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},n.prototype.onMouseOver=function(e){var t=this.createEvent(e,bt.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},n.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,bt.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},n.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},n.prototype.startEditingIfEnabled=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var o=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(e,t,n);this.createCellEditor(r).then(o),qe.missing(this.cellEditor)&&n&&this.focusCell(!0)}},n.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(n){if(!(n.isPopup&&n.isPopup()))return n;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var o=new Ir(n);return t.beans.context.wireBean(o),o.init(e),o}))},n.prototype.afterCellEditorCreated=function(e,t){if(!(e!==this.cellEditorVersion)&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var n=this.createEvent(null,bt.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(n)}else t.destroy&&t.destroy()},n.prototype.addInCellEditor=function(){qe.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},n.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null,n=this.beans.gridOptionsWrapper.isStopEditingWhenGridLosesFocus();this.hideEditorPopup=this.beans.popupService.addPopup(n,t,!0,(function(){e.onPopupEditorClosed()}));var o={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0};"under"===(this.cellEditor&&this.cellEditor.getPopupPosition?this.cellEditor.getPopupPosition():"over")?this.beans.popupService.positionPopupUnderComponent(o):this.beans.popupService.positionPopupOverComponent(o),this.angular1Compile()},n.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusController.isCellFocused(this.cellPosition)&&this.focusCell(!0))},n.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;qe.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),qe.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),qe.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),qe.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),qe.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)}},n.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},n.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},n.prototype.parseValue=function(e){var t=this.getComponentHolder(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return qe.exists(o)?this.beans.expressionService.evaluate(o,n):e},n.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,e)},n.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},n.prototype.isEditing=function(){return this.editingCell},n.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case ke.KEY_ENTER:this.onEnterKeyDown();break;case ke.KEY_F2:this.onF2KeyDown();break;case ke.KEY_ESCAPE:this.onEscapeKeyDown();break;case ke.KEY_TAB:this.onTabKeyDown(e);break;case ke.KEY_BACKSPACE:case ke.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case ke.KEY_DOWN:case ke.KEY_UP:case ke.KEY_RIGHT:case ke.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},n.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},n.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.cellPosition,!0),e.preventDefault())},n.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController){var t=this.beans.rangeController.extendLatestRangeInDirection(e);t&&this.beans.rowRenderer.ensureCellVisible(t)}},n.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},n.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},n.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,ke.KEY_DOWN,this.cellPosition,!1):this.startRowOrCellEdit(ke.KEY_ENTER)},n.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,ke.KEY_DOWN,this.cellPosition,!1)},n.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(ke.KEY_F2)},n.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},n.prototype.onKeyPress=function(e){if(!(qe.getTarget(e)!==this.getGui())&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):qe.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},n.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.editingCell&&t.isRowSelection()){var n=!this.rowNode.isSelected();(n||t.isRowDeselection())&&this.rowNode.setSelected(n)}e.preventDefault()},n.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,o=e.shiftKey,r=e.target,i=this.beans,s=i.eventService,a=i.rangeController;if(!this.isRightClickInExistingRange(e)){if(!o||a&&!a.getCellRanges().length){var l=(qe.isBrowserIE()||qe.isBrowserEdge())&&r.classList.contains("ag-cell");this.focusCell(l)}else e.preventDefault();if(!this.containsWidget(r)){if(a){var u=this.cellPosition;if(o)a.extendLatestRangeToCell(u);else{var c=t||n;a.setRangeToCell(u,c)}}s.dispatchEvent(this.createEvent(e,bt.EVENT_CELL_MOUSE_DOWN))}}},n.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeController;if(t&&(t.isCellInAnyRange(this.getCellPosition())&&2===e.button))return!0;return!1},n.prototype.containsWidget=function(e){return qe.isElementChildOfClass(e,"ag-selection-checkbox",3)},n.prototype.isDoubleClickOnIPad=function(){if(!qe.isIOSUserAgent()||qe.isEventSupported("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},n.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,o=t.gridOptionsWrapper,r=this.createEvent(e,bt.EVENT_CELL_CLICKED);n.dispatchEvent(r);var i=this.getComponentHolder();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(o.isSingleClickEdit()||i.singleClickEdit)&&!o.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},n.prototype.getCellPosition=function(){return this.cellPosition},n.prototype.getParentRow=function(){return this.eParentRow},n.prototype.setParentRow=function(e){this.eParentRow=e},n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},n.prototype.destroy=function(){this.createCellRendererFunc&&this.beans.taskQueue.cancelTask(this.createCellRendererFunc),this.stopEditing(),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null),this.selectionHandle&&this.selectionHandle.destroy(),e.prototype.destroy.call(this)},n.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px",this.refreshAriaIndex()},n.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout&&this.column.getPinned()!==ke.PINNED_LEFT?this.column.getPinned()===ke.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},n.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},n.prototype.getRangeBorders=function(){var e,t,n=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,s=!1,a=!1,l=this.cellPosition.column,u=this.beans,c=u.rangeController,p=u.columnController;o?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(n.cellPosition,e)}));e||(a=!0),t||(i=!0);for(var h=0;h<d.length&&!(r&&i&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),v=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellPosition)&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(v,this.cellPosition)&&(s=!0),!a&&f.columns.indexOf(e)<0&&(a=!0),!i&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:s,left:a}},n.prototype.getInitialRangeClasses=function(){var e=[];if(!this.rangeSelectionEnabled||!this.rangeCount)return e;e.push("ag-cell-range-selected"),this.hasChartRange&&e.push("ag-cell-range-chart");var t=Math.min(this.rangeCount,4);if(e.push("ag-cell-range-selected-"+t),this.isSingleCell()&&e.push("ag-cell-range-single-cell"),this.rangeCount>0){var n=this.getRangeBorders();n.top&&e.push("ag-cell-range-top"),n.right&&e.push("ag-cell-range-right"),n.bottom&&e.push("ag-cell-range-bottom"),n.left&&e.push("ag-cell-range-left")}return this.selectionHandle&&e.push("ag-cell-range-handle"),e},n.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){var e=this.beans.rangeController;if(e){var t=this.cellPosition,n=this.rangeCount,o=e.getCellRangeCount(t),r=this.getGui();n!==o&&(qe.addOrRemoveCssClass(r,"ag-cell-range-selected",0!==o),qe.addOrRemoveCssClass(r,"ag-cell-range-selected-1",1===o),qe.addOrRemoveCssClass(r,"ag-cell-range-selected-2",2===o),qe.addOrRemoveCssClass(r,"ag-cell-range-selected-3",3===o),qe.addOrRemoveCssClass(r,"ag-cell-range-selected-4",o>=4),this.rangeCount=o);var i=this.getHasChartRange();i!==this.hasChartRange&&(this.hasChartRange=i,qe.addOrRemoveCssClass(r,"ag-cell-range-chart",this.hasChartRange)),this.updateRangeBorders(),qe.addOrRemoveCssClass(r,"ag-cell-range-single-cell",this.isSingleCell()),this.refreshHandle()}},n.prototype.getHasChartRange=function(){var e=this.beans.rangeController;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return qe.includes([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},n.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=e.rangeController,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var s=qe.last(r),a=this.getCellPosition(),l=1===i&&(n.isEnableFillHandle()||n.isEnableRangeHandle())&&!this.editingCell;if(this.hasChartRange){var u=r[0].type===t.CellRangeType.DIMENSION&&o.isCellInSpecificRange(a,r[0]);qe.addOrRemoveCssClass(this.getGui(),"ag-cell-range-chart-category",u),l=s.type===t.CellRangeType.VALUE}return l&&null!=s.endRow&&o.isContiguousRange(s)&&o.isBottomRightCell(s,a)},n.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,n=e.context,o=e.rangeController,r=qe.last(o.getCellRanges()).type,i=t.isEnableFillHandle()&&qe.missing(r)?"fill":"range";this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle.destroy(),this.selectionHandle=void 0),this.selectionHandle||(this.selectionHandle=n.createComponentFromElement(document.createElement("ag-"+i+"-handle"))),this.selectionHandle.refresh(this)},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.refreshHandle=function(){if(this.beans.rangeController){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle.destroy(),this.selectionHandle=null),e&&this.addSelectionHandle(),qe.addOrRemoveCssClass(this.getGui(),"ag-cell-range-handle",!!this.selectionHandle)}},n.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,o=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left,s=this.getGui();qe.addOrRemoveCssClass(s,"ag-cell-range-top",n),qe.addOrRemoveCssClass(s,"ag-cell-range-right",o),qe.addOrRemoveCssClass(s,"ag-cell-range-bottom",r),qe.addOrRemoveCssClass(s,"ag-cell-range-left",i)},n.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,qe.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},n.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,qe.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},n.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.eCellValue=this.getRefElement("eCellValue"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.addRowDragging=function(){var e=this.beans.gridOptionsWrapper.isPagination(),t=this.beans.gridOptionsWrapper.isRowDragManaged(),n=this.beans.gridOptionsWrapper.isRowModelDefault();if(t){if(!n)return void qe.doOnce((function(){return console.warn("ag-Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(e)return void qe.doOnce((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var o=new Or(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(o,this.beans.context),this.eCellWrapper.insertBefore(o.getGui(),this.eParentOfValue)},n.prototype.addDndSource=function(){var e=new xr(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.addFeature(e,this.beans.context),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addSelectionCheckbox=function(){var e=new zn;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,null)}))},n.prototype.isSingleCell=function(){var e=this.beans.rangeController;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},n.prototype.onCellFocused=function(e){var t=this.beans.focusController.isCellFocused(this.cellPosition);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&qe.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t);if(t&&e&&e.forceBrowserFocus){var n=this.getFocusableElement();n.focus(),document.activeElement&&document.activeElement!==document.body||n.focus()}var o=this.beans.gridOptionsWrapper.isFullRowEdit();t||o||!this.editingCell||this.stopRowOrCellEdit()},n.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,n=!1,o=this.getValue();if(!e)this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),n=!0);if(this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(qe.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var r=this.cellRendererGui;r&&this.getGui().appendChild(r)}this.setInlineEditingClass(),n&&t!==o&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var i=this.createEvent(null,bt.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)}else this.editingCell=!1},n.DOM_DATA_KEY_CELL_COMP="cellComp",n.CELL_RENDERER_TYPE_NORMAL="cellRenderer",n.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",n}($t),Wr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hr=function(){return(Hr=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Br=function(e){function n(t,n,o,r,i,s,a,l,u,c,p){var d=e.call(this)||this;return d.eAllRowContainers=[],d.active=!0,d.rowContainerReadyCount=0,d.refreshNeeded=!1,d.columnRefreshPending=!1,d.cellComps={},d.createSecondPassFuncs=[],d.removeFirstPassFuncs=[],d.removeSecondPassFuncs=[],d.initialised=!1,d.elementOrderChanged=!1,d.lastMouseDownOnDragger=!1,d.parentScope=t,d.beans=a,d.bodyContainerComp=n,d.pinnedLeftContainerComp=o,d.pinnedRightContainerComp=r,d.fullWidthContainerComp=i,d.rowNode=s,d.rowIsEven=d.rowNode.rowIndex%2==0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=u,d.printLayout=c,d.embedFullWidth=p,d.setAnimateFlags(l),d}return Wr(n,e),n.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEach((function(e){return qe.removeCssClass(e,"ag-opacity-zero")}))}))},n.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var n=[],o=this.rowNode.rowHeight,r=this.getInitialRowClasses(t).join(" "),i=qe.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=qe.escape(a),u=this.getInitialRowTopStyle(),c=this.rowNode.getRowIndexString(),p=this.beans.gridPanel.headerRootComp.getHeaderRowCount();return n.push("<div"),n.push(' role="row"'),n.push(' row-index="'+c+'" aria-rowindex="'+(p+this.rowNode.rowIndex+1)+'"'),n.push(i?' row-id="'+i+'"':""),n.push(a?' row-business-key="'+l+'"':""),n.push(' comp-id="'+this.getCompId()+'"'),n.push(' class="'+r+'"'),n.push(' style="height: '+o+"px; "+u+" "+s+'">'),n.push(e),n.push("</div>"),n.join("")},n.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},n.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},n.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+n+"px; ":"transform: translateY("+n+"px);"},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},n.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},n.prototype.lazyCreateCells=function(e,t){if(this.active){var n=this.createCells(e);t.innerHTML=n.template,this.callAfterRowAttachedOnCells(n.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},n.prototype.createRowContainer=function(e,t,n){var o=this,r=this.useAnimationFrameForCreate,i=r?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(i.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(o.getCompId());o.afterRowAttached(e,s),n(s),r?o.beans.taskQueue.createTask(o.lazyCreateCells.bind(o,t,s),o.rowNode.rowIndex,"createTasksP1"):(o.callAfterRowAttachedOnCells(i.cellComps,s),o.rowContainerReadyCount=3)}))},n.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=Hr({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},n.prototype.setupRowContainers=function(){var e=this.rowNode.isFullWidthCell(),t=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnController.isPivotMode(),r=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowNode.stub?this.createFullWidthRows(n.LOADING_CELL_RENDERER,n.LOADING_CELL_RENDERER_COMP_NAME):t?this.createFullWidthRows(n.DETAIL_CELL_RENDERER,n.DETAIL_CELL_RENDERER_COMP_NAME):e?this.createFullWidthRows(n.FULL_WIDTH_CELL_RENDERER,null):r?this.createFullWidthRows(n.GROUP_ROW_RENDERER,n.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},n.prototype.setupNormalRowContainers=function(){var e,t=this,n=[],o=[];this.printLayout?e=this.beans.columnController.getAllDisplayedColumns():(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return t.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,o,(function(e){return t.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,n,(function(e){return t.ePinnedLeftRow=e}))},n.prototype.createFullWidthRows=function(e,t){var n=this;if(this.fullWidthRow=!0,this.embedFullWidth){if(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,(function(e){n.eFullWidthRowBody=e}),(function(e){n.fullWidthRowComponentBody=e})),this.printLayout)return;this.createFullWidthRowContainer(this.pinnedLeftContainerComp,ke.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){n.eFullWidthRowLeft=e}),(function(e){n.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,ke.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){n.eFullWidthRowRight=e}),(function(e){n.fullWidthRowComponentRight=e}))}else this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){n.eFullWidthRow=e}),(function(e){n.fullWidthRowComponent=e}))},n.prototype.setAnimateFlags=function(e){if(e){var t=qe.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.fullWidthRow},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n,o){if(!t||!n)return!0;if(!n.refresh)return!1;var r=e.createFullWidthParams(t,o);return n.refresh(r)},n=t(this.eFullWidthRow,this.fullWidthRowComponent,null),o=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),r=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,ke.PINNED_LEFT),i=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,ke.PINNED_RIGHT);return n&&o&&r&&i},n.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,In.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,In.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,bt.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,bt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,bt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,bt.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,bt.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,bt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,bt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,bt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(e,bt.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.addListenersForCellComps=function(){var e=this;this.addDestroyableEventListener(this.rowNode,In.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addDestroyableEventListener(this.rowNode,In.EVENT_CELL_CHANGED,(function(t){e.forEachCellComp((function(e){return e.onCellChanged(t)}))}))},n.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},n.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.eAllRowContainers.forEach((function(t){qe.removeCssClass(t,"ag-row-highlight-above"),qe.removeCssClass(t,"ag-row-highlight-below"),e&&qe.addCssClass(t,"ag-row-highlight-"+e)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},n.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},n.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponent),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponentBody),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,ke.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,ke.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},n.prototype.getContainerForCell=function(e){switch(e){case ke.PINNED_LEFT:return this.ePinnedLeftRow;case ke.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},n.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},n.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.createTask(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex,"createTasksP1")}else this.refreshNeeded=!0},n.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,n;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],n=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,n),this.elementOrderChanged=!1;var o=Object.keys(this.cellComps);e.forEach((function(e){return qe.removeFromArray(o,e.getId())})),t.forEach((function(e){return qe.removeFromArray(o,e.getId())})),n.forEach((function(e){return qe.removeFromArray(o,e.getId())}));var r=o.filter(this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(r)}},n.prototype.onColumnMoved=function(){this.elementOrderChanged=!0},n.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var n=t.cellComps[e];qe.missing(n)||(n.detach(),n.destroy(),t.cellComps[e]=null)}))},n.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),n=this.cellComps[e];if(!n||this.isCellInWrongRow(n))return!0;var o=n.isEditing(),r=this.beans.focusController.isCellFocused(n.getCellPosition());if(o||r){var i=n.getColumn();return!(t.indexOf(i)>=0)}return!0},n.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),n=e.getColumn().getPinned(),o=this.getContainerForCell(n),r=e.getParentRow();r!==o&&(r&&r.removeChild(t),o.appendChild(t),e.setParentRow(o),this.elementOrderChanged=!0)}},n.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),n=this.getContainerForCell(t.getPinned());return e.getParentRow()!==n},n.prototype.insertCellsIntoContainer=function(e,t){var n=this;if(e){var o=[],r=[];if(t.forEach((function(t){var i=t.getId(),s=n.cellComps[i];s?n.ensureCellInCorrectContainer(s):n.createNewCell(t,e,o,r)})),o.length>0&&(qe.appendHtml(e,o.join("")),this.callAfterRowAttachedOnCells(r,e)),this.elementOrderChanged&&this.beans.gridOptionsWrapper.isEnsureDomOrder()){var i=t.map((function(e){return n.getCellForCol(e)}));qe.setDomChildOrder(e,i)}}},n.prototype.addDomData=function(e){var t=this.beans.gridOptionsWrapper;t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,null)}))},n.prototype.createNewCell=function(e,t,n,o){var r=new jr(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),i=r.getCreateTemplate();n.push(i),o.push(r),this.cellComps[e.getId()]=r,r.setParentRow(t),this.elementOrderChanged=!0},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"mousedown":this.onRowMouseDown(t)}},n.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!qe.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(bt.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){this.lastMouseDownOnDragger=qe.isElementChildOfClass(e.target,"ag-row-drag",3)},n.prototype.onRowClick=function(e){if(!(qe.isStopPropagationForAgGrid(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(bt.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!r&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:o})}}}},n.prototype.createFullWidthRowContainer=function(e,n,o,r,i,s,a){var l=this,u=this.createTemplate("",o);e.appendRowTemplate(u,(function(){var o=e.getRowElement(l.getCompId()),u=l.createFullWidthParams(o,n),c=function(e){if(l.isAlive()){var t=e.getGui();o.appendChild(t),a(e)}else e.destroy&&e.destroy()},p=l.beans.detailRowCompCache.get(l.rowNode,n);if(p)c(p);else{var d=l.beans.userComponentFactory.newFullWidthCellRenderer(u,r,i);if(!d){var h=pt.isRegistered(t.ModuleNames.MasterDetailModule);return void("agDetailCellRenderer"!==i||h?console.error("ag-Grid: fullWidthCellRenderer "+i+" not found"):console.warn("ag-Grid: cell renderer agDetailCellRenderer (for master detail) not found. Did you forget to include the master detail module?"))}d.then(c)}l.afterRowAttached(e,o),s(o),l.angular1Compile(o)}))},n.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},n.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},n.prototype.getInitialRowClasses=function(e){var t=[],n=this.beans.gridOptionsWrapper.isTreeData(),o=this.rowNode;return qe.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),o.isRowPinned()&&t.push("ag-row-pinned"),o.isSelected()&&t.push("ag-row-selected"),o.group?(t.push("ag-row-group"),t.push("ag-row-level-"+o.level),o.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(o.parent?o.parent.level+1:"0")),o.stub&&t.push("ag-row-loading"),this.fullWidthRow&&t.push("ag-full-width-row"),(n?o.allChildrenCount:o.group&&!o.footer)&&t.push(o.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),o.dragging&&t.push("ag-row-dragging"),qe.pushAll(t,this.processClassesFromGridOptions()),qe.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return qe.addOrRemoveCssClass(e,"ag-row-last",t)})))},n.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},n.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(bt.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},n.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(bt.EVENT_ROW_EDITING_STARTED):this.createRowEvent(bt.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),this.editingRow||(this.forEachCellComp((function(o){var r=o===n;r?o.startEditingIfEnabled(e,t,r):o.startEditingIfEnabled(null,null,r)})),this.setEditingRow(!0))},n.prototype.forEachCellComp=function(e){qe.iterateObject(this.cellComps,(function(t,n){n&&e(n)}))},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return qe.addCssClass(e,t)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return qe.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return qe.removeCssClass(e,t)}))}))},n.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},n=this.beans.gridOptionsWrapper.getRowClass();if(n){if("function"==typeof n)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(n)}var o=this.beans.gridOptionsWrapper.getRowClassFunc();o&&t(o({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()}));return e},n.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return qe.cssStyleObjectToMarkup(e)},n.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return qe.addStylesToElement(t,e)}))},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope});return qe.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.createCells=function(e){var t=this,n=[],o=[];return e.forEach((function(e){var r=new jr(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),i=r.getCreateTemplate();n.push(i),o.push(r),t.cellComps[e.getId()]=r})),{template:n.join(""),cellComps:o}},n.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-selected",e)}))},n.prototype.callAfterRowAttachedOnCells=function(e,t){var n=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),n.editingRow&&e.startEditingIfEnabled()}))},n.prototype.afterRowAttached=function(e,t){var n=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(qe.exists(n.rowNode.rowTop)){var e=n.roundRowTopToBounds(n.rowNode.rowTop);n.setRowTop(e)}else qe.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.createTask(this.addHoverFunctionality.bind(this,t),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t)},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,In.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||qe.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,In.EVENT_MOUSE_LEAVE,(function(){qe.removeCssClass(e,"ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),o)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(qe.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=bt.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+bt.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=bt.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+bt.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroy=function(t){(void 0===t&&(t=!1),this.active=!1,this.destroyFullWidthComponents(),t)?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var n=this.createRowEvent(bt.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(n),this.beans.eventService.dispatchEvent(n),e.prototype.destroy.call(this)},n.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},n.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&qe.exists(e)){var t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=n})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+n+")"}))}},n.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getRenderedCellForColumn=function(e){var t=this,n=this.cellComps[e.getColId()];if(n)return n;var o=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return t&&-1!==t.getColSpanningList().indexOf(e)}));return o.length?o[0]:void 0},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes())},n.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),n=this.rowNode.rowIndex%2==0,o=this.rowIsEven!==n,r=this.beans.gridPanel.headerRootComp.getHeaderRowCount();o&&(this.rowIsEven=n),this.eAllRowContainers.forEach((function(i){i.setAttribute("row-index",t),i.setAttribute("aria-rowindex",(r+e.rowNode.rowIndex+1).toString()),o&&(qe.addOrRemoveCssClass(i,"ag-row-even",n),qe.addOrRemoveCssClass(i,"ag-row-odd",!n))}))},n.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},n.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},n.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},n.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},n.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},n.DOM_DATA_KEY_RENDERED_ROW="renderedRow",n.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",n.GROUP_ROW_RENDERER="groupRowRenderer",n.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",n.LOADING_CELL_RENDERER="loadingCellRenderer",n.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",n.DETAIL_CELL_RENDERER="detailCellRenderer",n.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",n}($t),zr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ur=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},qr=function(e,t){return function(n,o){t(n,o,e)}},Yr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return zr(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.getGridCore=function(){return this.gridCore},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,bt.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.registerCellEventListeners=function(){var e=this;this.addDestroyableEventListener(this.eventService,bt.EVENT_CELL_FOCUSED,(function(t){e.forEachCellComp((function(e){return e.onCellFocused(t)}))})),this.addDestroyableEventListener(this.eventService,bt.EVENT_FLASH_CELLS,(function(t){e.forEachCellComp((function(e){return e.onFlashCells(t)}))})),this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_HOVER_CHANGED,(function(){e.forEachCellComp((function(e){return e.onColumnHover()}))})),this.addDestroyableEventListener(this.eventService,bt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.forEachCellComp((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addDestroyableEventListener(this.eventService,bt.EVENT_RANGE_SELECTION_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRangeSelectionChanged()}))})),this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_MOVED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_PINNED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_VISIBLE,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addDestroyableEventListener(this.eventService,bt.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnController.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.forEachCellComp((function(e){e.getColumn()===t&&n(e)}))},o=function(){n((function(e){return e.onLeftChanged()}))},r=function(){n((function(e){return e.onWidthChanged()}))},i=function(){n((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){n((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(ht.EVENT_LEFT_CHANGED,o),t.addEventListener(ht.EVENT_WIDTH_CHANGED,r),t.addEventListener(ht.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(ht.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(ht.EVENT_LEFT_CHANGED,o),t.removeEventListener(ht.EVENT_WIDTH_CHANGED,r),t.removeEventListener(ht.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(ht.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){qe.missing(e)&&(e={type:bt.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function n(n,o){var r=o.getCellForCol(e);r&&t.push(r)}return qe.iterateObject(this.rowCompsByIndex,n),qe.iterateObject(this.floatingBottomRowComps,n),qe.iterateObject(this.floatingTopRowComps,n),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWidth)},t.prototype.refreshFloatingRows=function(e,t,n,o,r,i){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new Br(s.$scope,r,n,o,i,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return qe.missing(e)||qe.iterateObject(this.rowCompsByIndex,(function(n,o){var r=o.getRowNode();e.indexOf(r)>=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusController.getFocusCellToUseAfterRefresh();if(qe.missing(t))return null;var n=document.activeElement,o=this.gridOptionsWrapper.getDomData(n,jr.DOM_DATA_KEY_CELL_COMP);return qe.missing(o)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&e.recycleRows,o=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=this.binRowComps(n);this.redraw(r,o),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var n=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(n)}))}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,n){n.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,n){return n.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){qe.iterateObject(this.rowCompsByIndex,e),qe.iterateObject(this.floatingTopRowComps,e),qe.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,n){var o=this.rowCompsByIndex[t];o&&o.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellRenderer();n&&t.push(n)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,n){var o,r,i=this;qe.exists(e)&&(o={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===ke.PINNED_TOP?o.top[e.id]=!0:e.rowPinned===ke.PINNED_BOTTOM?o.bottom[e.id]=!0:o.normal[e.id]=!0}))),qe.exists(t)&&(r={},t.forEach((function(e){var t=i.columnController.getGridColumn(e);qe.exists(t)&&(r[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),i=t.id,s=t.rowPinned;if(qe.exists(o))if(s===ke.PINNED_BOTTOM){if(!o.bottom[i])return}else if(s===ke.PINNED_TOP){if(!o.top[i])return}else if(!o.normal[i])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();r&&!r[t]||n(e)}))};qe.iterateObject(this.rowCompsByIndex,(function(e,t){s(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t),e.prototype.destroy.call(this)},t.prototype.binRowComps=function(e){var t,n=this,o={};return e?(t=[],qe.iterateObject(this.rowCompsByIndex,(function(e,r){var i=r.getRowNode();qe.exists(i.id)?(o[i.id]=r,delete n.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),o},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCompsByIndex).filter((function(e){return!t[e]}));this.removeRowComps(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=qe.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow),o=function(e,o){var r=Number(e);(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(o)&&n.push(r)};return qe.iterateObject(this.rowCompsByIndex,o),qe.iterateObject(e,o),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw(e);this.removeRowCompsNotToDraw(r),this.printLayout&&(t=!1);var i=[],s=[];r.forEach((function(r){var a=o.createOrUpdateRowComp(r,e,t,n);qe.exists(a)&&(s.push(a),qe.pushAll(i,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),qe.executeNextVMTurn(i),n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask(this.destroyRowComps.bind(this,e,t)):this.destroyRowComps(e,t),this.checkAngularCompile(),this.gridPanel.updateRowCount()},t.prototype.flushContainers=function(e){qe.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];qe.iterateObject(this.rowCompsByIndex,(function(t,n){if(n.isFullWidth()){var o=n.getRowNode().rowIndex;e.push(o.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];qe.iterateObject(this.rowCompsByIndex,(function(t,n){if(n.isFullWidth()&&!n.refreshFullWidth()){var o=n.getRowNode().rowIndex;e.push(o.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,n,o){var r,i=this.rowCompsByIndex[e];if(i||(r=this.paginationProxy.getRow(e),qe.exists(r)&&qe.exists(t)&&t[r.id]&&r.alreadyRendered&&(i=t[r.id],t[r.id]=null)),!i){if(r||(r=this.paginationProxy.getRow(e)),!qe.exists(r))return;i=this.createRowComp(r,n,o)}else i.ensureDomOrder();return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[e]=i,i},t.prototype.destroyRowComps=function(e,t){var n=[];qe.iterateObject(e,(function(e,o){o&&(o.destroy(t),qe.pushAll(n,o.getAndClearDelayedDestroyFunctions()))})),qe.executeInAWhile(n)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.paginationProxy.getPixelOffset(),r=this.maxDivHeightScaler.getOffset(),i=this.gridPanel.getVScrollPosition(),s=i.top,a=i.bottom,l=this.gridOptionsWrapper.getRowBufferInPixels(),u=s+o+r-l,c=a+o+r+l;this.ensureAllRowsInRangeHaveHeightsCalculated(u,c);var p=this.paginationProxy.getRowIndexAtPixel(u),d=this.paginationProxy.getRowIndexAtPixel(c),h=this.paginationProxy.getPageFirstRow(),f=this.paginationProxy.getPageLastRow();p<h&&(p=h),d>f&&(d=f),e=p,t=d}else e=0,t=-1;var g=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,v=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),m=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);g&&!v&&t-e>m&&(t=e+m);var y=e!==this.firstRenderedRow,C=t!==this.lastRenderedRow;if(y||C){this.firstRenderedRow=e,this.lastRenderedRow=t;var w={type:bt.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var b={type:bt.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(b)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusController.isRowNodeFocused(t),o=e.isEditing(),r=t.detail;return!!(n||o||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowComp=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=n&&!o&&!this.printLayout,i=new Br(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,r,this.printLayout,this.embedFullWidthRows);return i.init(),i},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,n,o){for(var r=n,i=!1;!i;){if(this.gridOptionsWrapper.isEnableRtl()?t===ke.KEY_LEFT&&(r=this.getLastCellOfColSpan(r)):t===ke.KEY_RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(t,r),qe.missing(r))i=!0;else{var s=this.rowPositionUtils.getRowNode(r);if(!s.detail&&!s.isFullWidthCell())if(s.group){var a=this.columnController.isPivotMode();this.gridOptionsWrapper.isGroupUseEntireRow(a)||(i=!0)}else i=!0}}if(o){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(qe.exists(l)){var u=l({key:t,previousCellPosition:n,nextCellPosition:r||null,event:e});qe.exists(u)?(u.floating&&(qe.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),r={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):r=null}}if(r){this.ensureCellVisible(r);var c=this.getComponentForCell(r);c&&(r=c.getCellPosition(),this.ensureCellVisible(r),this.focusController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(r))}},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:qe.last(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){qe.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,n){var o=this.getComponentForCell(e);o&&o.startRowOrCellEdit(t,n)},t.prototype.getComponentForCell=function(e){var t;switch(e.rowPinned){case ke.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case ke.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;this.moveToCellAfter(e,n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusController.getFocusedCell();if(qe.missing(t))return!1;var n=this.getComponentForCell(t);return!qe.missing(n)&&this.moveToCellAfter(n,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var n=e.getCellPosition();e.stopEditing();var o=this.findNextCellToFocusOn(n,t,!0),r=qe.exists(o);return r&&(o.startEditingIfEnabled(null,null,!0),o.focusCell(!1)),r},t.prototype.moveToNextEditingRow=function(e,t){var n=e.getCellPosition(),o=this.findNextCellToFocusOn(n,t,!0),r=qe.exists(o);return r&&this.moveEditToNextCellOrRow(e,o),r},t.prototype.moveToNextCellNotEditing=function(e,t){var n=e.getCellPosition(),o=this.findNextCellToFocusOn(n,t,!1),r=qe.exists(o);return r&&o.focusCell(!0),r},t.prototype.moveEditToNextCellOrRow=function(e,t){var n=e.getCellPosition(),o=t.getCellPosition();if(n.rowIndex===o.rowIndex&&n.rowPinned===o.rowPinned)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var r=e.getRenderedRow(),i=t.getRenderedRow();e.setFocusOutOnEditor(),r.stopEditing(),i.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var o=e;;){t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if(qe.exists(r)){var i=r({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});qe.exists(i)?(i.floating&&(qe.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),i.rowPinned=i.floating),o={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}):o=null}if(!o)return null;if(n){var s=this.lookupRowNodeForCell(o);if(!o.column.isCellEditable(s))continue}qe.missing(o.rowPinned)&&this.gridPanel.ensureIndexVisible(o.rowIndex),o.column.isPinned()||this.gridPanel.ensureColumnVisible(o.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(o);if(!qe.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(o),a}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===ke.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===ke.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},Ur([nt("paginationProxy")],t.prototype,"paginationProxy",void 0),Ur([nt("columnController")],t.prototype,"columnController",void 0),Ur([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ur([nt("$scope")],t.prototype,"$scope",void 0),Ur([nt("eventService")],t.prototype,"eventService",void 0),Ur([nt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ur([nt("rowModel")],t.prototype,"rowModel",void 0),Ur([nt("loggerFactory")],t.prototype,"loggerFactory",void 0),Ur([nt("focusController")],t.prototype,"focusController",void 0),Ur([nt("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Ur([nt("columnApi")],t.prototype,"columnApi",void 0),Ur([nt("gridApi")],t.prototype,"gridApi",void 0),Ur([nt("beans")],t.prototype,"beans",void 0),Ur([nt("maxDivHeightScaler")],t.prototype,"maxDivHeightScaler",void 0),Ur([nt("animationFrameService")],t.prototype,"animationFrameService",void 0),Ur([nt("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Ur([ot("rangeController")],t.prototype,"rangeController",void 0),Ur([qr(0,it("loggerFactory"))],t.prototype,"agWire",null),t=Ur([tt("rowRenderer")],t)}(Ut),Kr=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,n,o,r){qe.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,n,o,r)},e.addToolPanelClassesFromColDef=function(e,t,n,o,r){qe.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o,r)},e.addColumnClassesFromCollDef=function(e,t,n,o,r,i){if(!qe.missing(e)){var s;if("function"==typeof e)s=e({colDef:t,column:r,columnGroup:i,context:o.getContext(),api:o.getApi()});else s=e;"string"==typeof s?qe.addCssClass(n,s):Array.isArray(s)&&s.forEach((function(e){qe.addCssClass(n,e)}))}},e}(),$r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xr=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return $r(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addDestroyableEventListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Qr([nt("columnHoverService")],t.prototype,"columnHoverService",void 0),Qr([Ze],t.prototype,"postConstruct",null),t}(Ut),Jr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zr=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=r,i.beans=o,i.printLayout=o.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,i}return Jr(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?qe.last(this.colsSpanning):this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,ht.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=qe.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),n=this.getColumnOrGroup().getOldLeft();this.setLeft(n),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===ke.PINNED_LEFT?t:e.getPinned()===ke.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){if(qe.exists(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ht){var t=this.beans.columnController.getAllDisplayedColumns().indexOf(this.columnOrGroup);this.ariaEl.setAttribute("aria-colindex",(t+1).toString())}else this.ariaEl.removeAttribute("aria-colindex")},t}(Ut),ei=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ti=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ni=function(e){function t(t,n){var o=e.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.cbSelectAll=t,o.column=n;var r=n.getColDef();return o.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,o}return ei(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,bt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,Wn.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,o=function(o){e.gridOptionsWrapper.isGroupSelectsChildren()&&o.group||(o.isSelected()?t++:o.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(o):this.gridApi.forEachNode(o),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===ke.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},ti([nt("gridApi")],t.prototype,"gridApi",void 0),ti([nt("columnApi")],t.prototype,"columnApi",void 0),ti([nt("eventService")],t.prototype,"eventService",void 0),ti([nt("rowModel")],t.prototype,"rowModel",void 0),ti([nt("selectionController")],t.prototype,"selectionController",void 0),ti([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ti([Ze],t.prototype,"postConstruct",null),t}(Ut),oi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ri=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ii=function(e){function n(t,o,r){var i=e.call(this,n.TEMPLATE)||this;return i.column=t,i.dragSourceDropTarget=o,i.pinned=r,i}return oi(n,e),n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),n=e.sortable,o=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,n,o),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(n),this.addColumnHoverListener(),this.addMouseListeners(),this.addFeature(new Xr([this.column],this.getGui())),this.addDestroyableEventListener(this.column,ht.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(new ni(this.cbSelectAll,this.column));var r=new Zr(this.column,this.getGui(),this.beans);r.init(),this.addDestroyFunc(r.destroy.bind(r)),this.addAttributes(),Kr.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},n.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);qe.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.addMouseListeners=function(){var e=this.onMouseOverOut.bind(this);this.addGuiEventListener("mouseenter",e),this.addGuiEventListener("mouseleave",e)},n.prototype.onMouseOverOut=function(e){this.headerComp&&this.headerComp.setMouseOverParent&&this.headerComp.setMouseOverParent("mouseenter"===e.type)},n.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();qe.addCssClass(t,"ag-header-cell-sortable")}},n.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},n.prototype.appendHeaderComp=function(e,t,n){var o=this,r={column:this.column,displayName:e,enableSorting:t,enableMenu:n,showColumnMenu:function(e){o.gridApi.showColumnMenuAfterButtonClick(o.column,e)},progressSort:function(e){o.sortController.progressSort(o.column,!!e,"uiColumnSorted")},setSort:function(e,t){o.sortController.setSortForColumn(o.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},i=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(r).then(i)},n.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e),this.headerComp=t},n.prototype.onColumnMovingChanged=function(){this.column.isMoving()?qe.addCssClass(this.getGui(),"ag-header-cell-moving"):qe.removeCssClass(this.getGui(),"ag-header-cell-moving")},n.prototype.setupMove=function(e,n){var o=this,r=this.column.getColDef(),i=this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||r.lockPosition;if((!i||r.enableRowGroup||r.enablePivot)&&e){var s={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:br.ICON_HIDE,getDragItem:function(){return o.createDragItem()},dragItemName:n,dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return!i&&o.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return!i&&o.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(s,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(s)}))}},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var n=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(n);var o=!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize,r=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();if(o){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")}));var i=new En(this.eResize);this.addDestroyableEventListener(i,En.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")})),this.addDestroyFunc(i.destroy.bind(i))}}else qe.removeFromParent(this.eResize)},n.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),o=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnController.setColumnWidths(o,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&qe.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,qe.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.addFeature(new kr(this,"header")))},n.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,ht.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,ht.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,ht.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},n.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==ke.PINNED_LEFT&&(t*=-1):this.pinned===ke.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on"> <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div> <ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',ri([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ri([nt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ri([nt("columnController")],n.prototype,"columnController",void 0),ri([nt("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),ri([nt("menuFactory")],n.prototype,"menuFactory",void 0),ri([nt("gridApi")],n.prototype,"gridApi",void 0),ri([nt("columnApi")],n.prototype,"columnApi",void 0),ri([nt("sortController")],n.prototype,"sortController",void 0),ri([nt("eventService")],n.prototype,"eventService",void 0),ri([nt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ri([nt("columnHoverService")],n.prototype,"columnHoverService",void 0),ri([nt("beans")],n.prototype,"beans",void 0),ri([Jt("eResize")],n.prototype,"eResize",void 0),ri([Jt("cbSelectAll")],n.prototype,"cbSelectAll",void 0),ri([Ze],n.prototype,"init",null),n}($t),si=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ai=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},li=function(e){function n(t,o,r){var i=e.call(this,n.TEMPLATE)||this;return i.childColumnsDestroyFuncs=[],i.columnGroup=t,i.dragSourceDropTarget=o,i.pinned=r,i}return si(n,e),n.prototype.postConstruct=function(){Kr.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(new Xr(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new Zr(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},n.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,ht.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},n.prototype.getColumn=function(){return this.columnGroup},n.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},n.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.addFeature(new kr(this,"headerGroup")))},n.prototype.onColumnMovingChanged=function(){qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},n.prototype.appendHeaderGroupComp=function(e){var t=this,n={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var o=this.columnGroup,r=o.getLeafColumns();o.getParent()&&o.getParent().getLeafColumns().length===r.length;)o=o.getParent();var i=o.getColGroupDef();i&&(e=i.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(n).then(s)},n.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},n.prototype.addClasses=function(){var e=this.columnGroup.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+e+"-group")},n.prototype.setupMove=function(e,n){var o=this;if(e&&!this.isSuppressMoving()){var r=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),i={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:br.ICON_HIDE,dragItemName:n,getDragItem:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return r.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return r.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(i)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),qe.removeFromArray(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},n.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,gt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},n.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},n.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(ht.EVENT_WIDTH_CHANGED,t),n.addEventListener(ht.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){n.removeEventListener(ht.EVENT_WIDTH_CHANGED,t),n.removeEventListener(ht.EVENT_VISIBLE_CHANGED,t)}))}))},n.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},n.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},n.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,n,"uiColumnResized")}))}}else qe.removeFromParent(this.eHeaderCellResize)},n.prototype.onResizeStart=function(e){var t=this,n=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=n.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var o=null;if(e&&(o=this.columnController.getDisplayedGroupAfter(this.columnGroup)),o){var r=o.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;qe.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizing=function(e,t){var n=[],o=this.normaliseDragChange(t);n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+o}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o}),this.columnController.resizeColumnSets(n,e,"uiColumnDragged"),e&&qe.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==ke.PINNED_LEFT&&(t*=-1):this.pinned===ke.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-group-cell" role="presentation"> <div ref="agResize" class="ag-header-cell-resize" role="presentation"></div></div>',ai([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ai([nt("columnController")],n.prototype,"columnController",void 0),ai([nt("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),ai([nt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ai([nt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ai([nt("gridApi")],n.prototype,"gridApi",void 0),ai([nt("columnApi")],n.prototype,"columnApi",void 0),ai([nt("beans")],n.prototype,"beans",void 0),ai([Ze],n.prototype,"postConstruct",null),n}($t),ui=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ci=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pi=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return ui(t,e),t.prototype.init=function(e){this.params=e,this.eFloatingFilterText.setDisabled(!0)},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var o=n.getModelAsString(e);t.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")},ci([Jt("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),t}($t),di=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fi=function(e){function n(t){var o=e.call(this,n.TEMPLATE)||this;return o.column=t,o}return di(n,e),n.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(new Xr([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},n.prototype.setupFloatingFilter=function(){var e=this,t=this.column.getColDef();t.filter&&t.floatingFilter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?(e.setupWithFloatingFilter(t),e.setupSyncWithFilter()):e.setupEmpty()})):this.setupEmpty()):this.setupEmpty()},n.prototype.setupLeftPositioning=function(){var e=new Zr(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},n.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){var n=e.getFilterComponent().resolveNow(null,(function(e){return e.getModel()}));e.onParentModelChanged(n,t)};this.addDestroyableEventListener(this.column,ht.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},n.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},n.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){I(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,ht.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var n=e.getGui();I(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),I(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),N(this.eButtonWrapper,!this.suppressFilterButton);var o=Le("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(o),this.eFloatingFilterBody.appendChild(n),e.afterGuiAttached&&e.afterGuiAttached()}else t()},n.prototype.parentFilterInstance=function(e){this.getFilterComponent().then(e)},n.prototype.getFilterComponent=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI")},n.prototype.getFloatingFilterInstance=function(){var e,o=this.column.getColDef();if("string"==typeof o.filter)e=n.filterToFloatingFilterNames[o.filter];else if(o.filterFramework);else if(!0===o.filter){e=pt.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}var r=this.filterManager.createFilterParams(this.column,this.column.getColDef()),i=this.userComponentFactory.createFinalParams(o,"filter",r),s={api:this.gridApi,column:this.column,filterParams:i,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!o.floatingFilterComponentParams&&!!o.floatingFilterComponentParams.suppressFilterButton;var a=this.userComponentFactory.newFloatingFilterComponent(o,s,e);if(!a){var l=this.getFilterComponentPrototype(o);if(l&&l.prototype&&l.prototype.getModelAsString){var u=this.userComponentFactory.createUserComponentFromConcreteClass(pi,s);a=Ke.resolve(u)}}return a},n.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},n.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},n.prototype.setupEmpty=function(){N(this.eButtonWrapper,!1)},n.prototype.currentParentModel=function(){return this.getFilterComponent().resolveNow(null,(function(e){return e.getModel()}))},n.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(n){return n.onParentModelChanged(e,t)}))},n.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},n.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n.TEMPLATE='<div class="ag-header-cell" role="presentation">\n <div ref="eFloatingFilterBody" role="columnheader"></div>\n <div class="ag-floating-filter-button" ref="eButtonWrapper" role="presentation">\n <button type="button" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter"></button>\n </div>\n </div>',hi([nt("columnHoverService")],n.prototype,"columnHoverService",void 0),hi([nt("eventService")],n.prototype,"eventService",void 0),hi([nt("beans")],n.prototype,"beans",void 0),hi([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),hi([nt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),hi([nt("gridApi")],n.prototype,"gridApi",void 0),hi([nt("columnApi")],n.prototype,"columnApi",void 0),hi([nt("filterManager")],n.prototype,"filterManager",void 0),hi([nt("menuFactory")],n.prototype,"menuFactory",void 0),hi([Jt("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),hi([Jt("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),hi([Jt("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),hi([Ze],n.prototype,"postConstruct",null),n}($t),gi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
279
- /**
280
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
281
- * @version v23.1.1
282
- * @link http://www.ag-grid.com/
283
- * @license MIT
284
- */!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(Mr||(Mr={}));var mi,yi=function(e){function t(t,n,o,r){var i=e.call(this,'<div class="ag-header-row" role="row" />')||this;i.headerComps={},i.dept=t,i.type=n,i.pinned=o,i.dropTarget=r;var s=Mr[n].toLowerCase().replace(/_/g,"-");return i.addCssClass("ag-header-row-"+s),h()&&(i.getGui().style.transform="translateZ(0)"),i}return gi(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(n){e(t.headerComps[n])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var n=t.headerComps[e];t.getGui().removeChild(n.getGui()),n.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,n=this.columnController.getHeaderRowCount(),o=[],r=0;this.columnController.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnController.hasFloatingFilters()&&(n++,r=1),e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+r),s=0;s<i;s++)o.push(e);o.push(t);for(s=0;s<r;s++)o.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=o[s];this.getGui().style.top=a+"px",this.getGui().style.height=o[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT?C(this.pinned)?this.columnController.getContainerWidth(ke.PINNED_RIGHT)+this.columnController.getContainerWidth(ke.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDepth=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT){if(C(this.pinned)){var t=[];return[ke.PINNED_LEFT,null,ke.PINNED_RIGHT].forEach((function(n){var o=e.columnController.getVirtualHeaderGroupRow(n,e.type==Mr.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(o)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==Mr.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=Object.keys(this.headerComps),n=[];if(this.getItemsAtDepth().forEach((function(o){if(!o.isEmptyGroup()){var r,i,s=o.getUniqueId(),a=e.getGui();t.indexOf(s)>=0?ee(t,s):(r=e.createHeaderComp(o),e.headerComps[s]=r,i=r.getGui(),a.appendChild(i)),n.push(s)}})),this.removeAndDestroyChildComponents(t),this.gridOptionsWrapper.isEnsureDomOrder()){var o=n.map((function(t){return e.headerComps[t].getGui()}));k(this.getGui(),o)}},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case Mr.COLUMN:t=new ii(e,this.dropTarget,this.pinned);break;case Mr.COLUMN_GROUP:t=new li(e,this.dropTarget,this.pinned);break;case Mr.FLOATING_FILTER:t=new fi(e)}return this.getContext().wireBean(t),t},vi([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),vi([nt("columnController")],t.prototype,"columnController",void 0),vi([nt("eventService")],t.prototype,"eventService",void 0),vi([Ze],t.prototype,"init",null),t}($t),Ci=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wi=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!qe.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?br.ICON_PINNED:br.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,r=n.filter((function(e){return o[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnController.setColumnsVisible(o,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnController.setColumnsPinned(o,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),n=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!qe.missing(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var r=this.normaliseDirection(e.hDirection),i=e.dragSource.type,s=e.dragSource.getDragItem().columns;s=s.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(i,s,r,o,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),n=qe.sortNumerically(e.map((function(e){return t.indexOf(e)}))),o=n[0];return qe.last(n)-o!==n.length-1?null:o},e.prototype.attemptMoveColumns=function(e,n,o,r,i){var s=o===t.HorizontalDirection.Left,a=o===t.HorizontalDirection.Right,l=this.calculateValidMoves(n,a,r),u=this.calculateOldIndex(n);if(0!==l.length){var c=l[0],p=null!==u&&!i;if(e==t.DragSourceType.HeaderCell&&(p=null!==u),p){if(s&&c>=u)return;if(a&&c<=u)return}for(var d=0;d<l.length;d++){var h=l[d];if(this.columnController.doesMovePassRules(n,h))return void this.columnController.moveColumns(n,h,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){if(this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable})))return[];var o,r=this.columnController.getDisplayedColumns(this.pinned),i=this.columnController.getAllGridColumns(),s=r.filter((function(t){return qe.includes(e,t)})),a=r.filter((function(t){return!qe.includes(e,t)})),l=i.filter((function(t){return!qe.includes(e,t)})),u=0,c=n;if(t){var p=0;s.forEach((function(e){return p+=e.getActualWidth()})),c-=p}if(c>0){for(var d=0;d<a.length;d++){if((c-=a[d].getActualWidth())<0)break;u++}t&&u++}if(u>0){var h=a[u-1];o=l.indexOf(h)+1}else-1===(o=l.indexOf(a[0]))&&(o=0);var f=[o];if(t)for(var g=o+1,v=i.length-1;g<=v;)f.push(g),g++;else{g=o,v=i.length-1;for(var m=i[g];g<=v&&this.isColumnHidden(r,m);)g++,f.push(g),m=i[g];g=o-1;for(;g>=0;)f.push(g),g--}return f},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(br.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(br.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(br.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var n=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(n.length>0&&(this.dragAndDropService.setGhostIcon(br.ICON_PINNED),this.failedMoveAttempts>7)){var o=this.needToMoveLeft?ke.PINNED_LEFT:ke.PINNED_RIGHT;this.setColumnsPinned(n,o,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Ci([nt("loggerFactory")],e.prototype,"loggerFactory",void 0),Ci([nt("columnController")],e.prototype,"columnController",void 0),Ci([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ci([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ci([Ze],e.prototype,"init",null),e}(),bi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ei=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;(this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly())||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?br.ICON_PINNED:br.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},bi([nt("columnController")],e.prototype,"columnController",void 0),bi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),_i=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
285
- /**
286
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
287
- * @version v23.1.1
288
- * @link http://www.ag-grid.com/
289
- * @license MIT
290
- */!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(mi||(mi={}));var Oi,Ri=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case ke.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case ke.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new wi(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new Ei(this.pinned);this.context.wireBean(e),this.dropListeners[mi.ColumnMove]=this.moveColumnController,this.dropListeners[mi.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel?mi.Pivot:mi.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},_i([nt("context")],e.prototype,"context",void 0),_i([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),_i([nt("columnController")],e.prototype,"columnController",void 0),_i([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_i([Ze],e.prototype,"init",null),e}(),Si=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ti=function(){function e(e,t,n){this.headerRowComps=[],this.events=[],this.eContainer=e,this.pinned=n,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.events=[this.eventService.addEventListener(bt.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(bt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(bt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(bt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(bt.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(bt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))]},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===ke.PINNED_LEFT,t=this.pinned===ke.PINNED_RIGHT,n=this.columnController,o=this.gridOptionsWrapper.isEnableRtl();if(e||t){var r=n[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(o&&e||!o&&t)&&(r+=this.scrollWidth),G(this.eContainer,r)}},e.prototype.destroy=function(){this.removeHeaderRowComps(),this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.getRowComps=function(){return this.headerRowComps},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,n=new Ri(this.pinned,t);this.context.wireBean(n),n.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){return e.destroy()})),this.headerRowComps.length=0,F(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var n=t!==e-1?Mr.COLUMN_GROUP:Mr.COLUMN,o=new yi(t,n,this.pinned,this.dropTarget);this.context.wireBean(o),this.headerRowComps.push(o),o.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(o.getGui())}if(!this.columnController.isPivotMode()&&this.columnController.hasFloatingFilters()){o=new yi(e,Mr.FLOATING_FILTER,this.pinned,this.dropTarget);this.context.wireBean(o),this.headerRowComps.push(o),o.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(o.getGui())}},Si([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Si([nt("context")],e.prototype,"context",void 0),Si([nt("columnController")],e.prototype,"columnController",void 0),Si([nt("eventService")],e.prototype,"eventService",void 0),Si([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Si([Ze],e.prototype,"init",null),Si([et],e.prototype,"destroy",null),e}(),Di=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ii=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Di(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new Ti(this.eHeaderContainer,this.eHeaderViewport,null),n=new Ti(this.ePinnedLeftHeader,null,ke.PINNED_LEFT),o=new Ti(this.ePinnedRightHeader,null,ke.PINNED_RIGHT);this.childContainers=[t,n,o],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){this.childContainers.forEach((function(e){return e.destroy()})),e.prototype.destroy.call(this)},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();I(this.getGui(),"ag-pivot-on",e),I(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+1+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){N(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){N(this.ePinnedRightHeader,e)},t.prototype.getHeaderRowCount=function(){return 0===this.childContainers.length?0:this.childContainers[0].getRowComps().length},t.TEMPLATE='\n <div class="ag-header" role="presentation">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="rowgroup"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',Pi([Jt("ePinnedLeftHeader")],t.prototype,"ePinnedLeftHeader",void 0),Pi([Jt("ePinnedRightHeader")],t.prototype,"ePinnedRightHeader",void 0),Pi([Jt("eHeaderContainer")],t.prototype,"eHeaderContainer",void 0),Pi([Jt("eHeaderViewport")],t.prototype,"eHeaderViewport",void 0),Pi([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pi([nt("columnController")],t.prototype,"columnController",void 0),Pi([nt("eventService")],t.prototype,"eventService",void 0),Pi([nt("gridApi")],t.prototype,"gridApi",void 0),Pi([nt("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Pi([Ze],t.prototype,"postConstruct",null),t}($t),Ai=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ni=function(){function e(){this.allFilters=new Map,this.quickFilter=null,this.quickFilterParts=null,this.processingFilterChange=!1,this.eventListenerDestroyers=[]}var n;return n=e,e.prototype.init=function(){this.eventListenerDestroyers=[this.eventService.addEventListener(bt.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(bt.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this))],this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},e.prototype.setFilterModel=function(e){var t=this,n=[];if(e){var o=qe.convertToSet(Object.keys(e));this.allFilters.forEach((function(r,i){var s=e[i];t.setModelOnFilterWrapper(r.filterPromise,s),n.push(r.filterPromise),o.delete(i)})),o.forEach((function(o){var r=t.columnController.getPrimaryColumn(o);if(r){var i=t.getOrCreateFilterWrapper(r,"NO_UI");t.setModelOnFilterWrapper(i.filterPromise,e[o]),n.push(i.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+o)}))}else this.allFilters.forEach((function(e){t.setModelOnFilterWrapper(e.filterPromise,null),n.push(e.filterPromise)}));Ke.all(n).then((function(e){return t.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},e.prototype.getFilterModel=function(){var e={};return this.allFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"==typeof o.getModel){var r=o.getModel();qe.exists(r)&&(e[n]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;this.allFilters.forEach((function(t){e||t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e,t){this.allFilters.forEach((function(n){var o=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(o,e,t)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){var n=e.data,o=!0;return this.allFilters.forEach((function(r){if(o&&null!=r){var i=r.filterPromise.resolveNow(void 0,(function(e){return e}));if(null!=i&&i!==t&&i.isFilterActive()){if(!i.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");o=i.doesFilterPass({node:e,data:n})}}})),o},e.prototype.parseQuickFilter=function(e){return qe.exists(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-Side Row Model"),null):null},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(e){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged",e),this.checkExternalFilter(),this.allFilters.forEach((function(e){e.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var t={type:bt.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};e&&qe.mergeDeep(t,e),this.processingFilterChange=!0,this.eventService.dispatchEvent(t),this.processingFilterChange=!1},e.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this,o=this.columnController.getAllColumnsForQuickFilter();return qe.some(o,(function(o){var r=n.getQuickFilterTextForColumn(o,e);return qe.exists(r)&&r.indexOf(t)>=0}))},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return qe.every(this.quickFilterParts,(function(o){return n?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e))&&!(this.advancedFilterPresent&&!this.doesFilterPass(e,t)))},e.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var r={value:n,node:t,data:t.data,column:e,colDef:o,context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(r)}return qe.exists(n)?n.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var t=this,o=[];ie(this.columnController.getAllColumnsForQuickFilter(),(function(n){var r=t.getQuickFilterTextForColumn(n,e);qe.exists(r)&&o.push(r)})),e.quickFilterAggregateText=o.join(n.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){this.allFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(n){return t.valueService.getValue(e,n,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(e,t){var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allFilters.set(e.getColId(),n)),n},e.prototype.cachedFilter=function(e){return this.allFilters.get(e.getColId())},e.prototype.createFilterInstance=function(e,n){var o,r=this,i=pt.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",s=qe.cloneObject(e.getColDef()),a=this.createFilterParams(e,s,n);a.filterChangedCallback=this.onFilterChanged.bind(this),a.filterModifiedCallback=function(){var t={type:bt.EVENT_FILTER_MODIFIED,api:r.gridApi,columnApi:r.columnApi,column:e,filterInstance:o};r.eventService.dispatchEvent(t)};var l=this.userComponentFactory.newFilterComponent(s,a,i,(function(e,t){return qe.assign(e,{doesRowPassOtherFilter:r.doesRowPassOtherFilters.bind(r,t)})}));return l&&l.then((function(e){return o=e})),l},e.prototype.createFilterParams=function(e,t,n){void 0===n&&(n=null);var o={api:this.gridOptionsWrapper.getApi(),column:e,colDef:t,rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return n&&(o.$scope=n),o},e.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:Ke.resolve(null)};return n.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,n.filterPromise=this.createFilterInstance(e,n.scope),n.filterPromise&&this.putIntoGui(n,t),n},e.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new Ke((function(r){e.filterPromise.then((function(i){var s=i.getGui();if(qe.missing(s)&&console.warn("getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=qe.loadTemplate(s)),o.appendChild(s),e.scope){var a=n.$compile(o)(e.scope);e.compiledElement=a,window.setTimeout((function(){return e.scope.$apply()}),0)}r(o),n.eventService.dispatchEvent({type:bt.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;this.allFilters.forEach((function(n){!e.columnController.getPrimaryColumn(n.column)&&(t=!0,e.disposeFilterWrapper(n,"filterDestroyed"))})),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(o){o.setModel(null),o.destroy&&o.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),n.allFilters.delete(e.column.getColId())}))},e.prototype.destroy=function(){var e=this;this.allFilters.forEach((function(t){return e.disposeFilterWrapper(t,"filterDestroyed")})),this.eventListenerDestroyers.length&&(this.eventListenerDestroyers.forEach((function(e){return e()})),this.eventListenerDestroyers.length=0)},e.QUICK_FILTER_SEPARATOR="\n",Ai([nt("$compile")],e.prototype,"$compile",void 0),Ai([nt("$scope")],e.prototype,"$scope",void 0),Ai([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ai([nt("valueService")],e.prototype,"valueService",void 0),Ai([nt("columnController")],e.prototype,"columnController",void 0),Ai([nt("rowModel")],e.prototype,"rowModel",void 0),Ai([nt("eventService")],e.prototype,"eventService",void 0),Ai([nt("columnApi")],e.prototype,"columnApi",void 0),Ai([nt("gridApi")],e.prototype,"gridApi",void 0),Ai([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ai([Ze],e.prototype,"init",null),Ai([et],e.prototype,"destroy",null),e=n=Ai([tt("filterManager")],e)}(),xi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fi=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),this.initialised||this.init(),t){var r,i=e.getColDef(),s=i.field,a=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],c=!o&&t.aggData&&void 0!==t.aggData[a];if(n&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&c?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=qe.getValueUsingField(l,s,e.isFieldContainsDots()):u?r=t.groupData[a]:c?r=t.aggData[a]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(r=qe.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}return r}},e.prototype.setValue=function(e,t,n,o){var r=this.columnController.getPrimaryColumn(t);if(e&&r){qe.missing(e.data)&&(e.data={});var i=r.getColDef(),s=i.field,a=i.newValueHandler,l=i.valueSetter;if(qe.missing(s)&&qe.missing(a)&&qe.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,c={node:e,data:e.data,oldValue:this.getValue(r,e),newValue:n,colDef:r.getColDef(),column:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(c.newValue=n,void 0===(u=a&&qe.exists(a)?a(c):qe.exists(l)?this.expressionService.evaluate(l,c):this.setValueUsingField(e.data,s,n,r.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(r,e);var p=r.getColDef().onCellValueChanged;"function"==typeof p&&setTimeout((function(){return p(c)}),0);var d={type:bt.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,colDef:c.colDef,columnApi:c.columnApi,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue,source:o};this.eventService.dispatchEvent(d)}}}},e.prototype.setValueUsingField=function(e,t,n,o){if(!t)return!1;if(o)for(var r=t.split("."),i=e;r.length>0&&i;){var s=r.shift();0===r.length?i[s]=n:i=i[s]}else e[t]=n;return!0},e.prototype.executeFilterValueGetter=function(e,t,n,o){var r={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)};return this.expressionService.evaluate(e,r)},e.prototype.executeValueGetter=function(e,t,n,o){var r=n.getId(),i=this.valueCache.getValue(o,r);if(void 0!==i)return i;var s={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(o,r,a),a},e.prototype.getValueCallback=function(e,t){var n=this.columnController.getPrimaryColumn(t);return n?this.getValue(n,e):null},e.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),o=e.getColDef().keyCreator,r=o?o({value:n}):n;return"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&qe.doOnce((function(){console.warn("ag-Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se ag-Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r},xi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),xi([nt("expressionService")],e.prototype,"expressionService",void 0),xi([nt("columnController")],e.prototype,"columnController",void 0),xi([nt("eventService")],e.prototype,"eventService",void 0),xi([nt("valueCache")],e.prototype,"valueCache",void 0),xi([Ze],e.prototype,"init",null),e=xi([tt("valueService")],e)}(),Li=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mi=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(Vt.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");qe.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=qe.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(qe.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),qe.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},Li([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Li([Ze],e.prototype,"postConstruct",null),e}(),ki=function(){return(ki=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Gi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vi=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o},ji=function(){function e(e,t){this.isMultiRowDrag=!1,this.events=[],this.isGridSorted=!1,this.isGridFiltered=!1,this.isRowGroupActive=!1,this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.events.push(this.eventService.addEventListener(bt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addEventListener(bt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addEventListener(bt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this))),this.onSortChanged(),this.onFilterChanged(),this.onRowGroupChanged()},e.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()}))},e.prototype.onSortChanged=function(){var e=this.sortController.getSortModel();this.isGridSorted=!qe.missingOrEmpty(e)},e.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},e.prototype.onRowGroupChanged=function(){var e=this.columnController.getRowGroupColumns();this.isRowGroupActive=!qe.missingOrEmpty(e)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},e.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?br.ICON_NOT_ALLOWED:br.ICON_MOVE},e.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},e.prototype.getRowNodes=function(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes;var t=this.gridOptionsWrapper.isEnableMultiRowDragging(),n=this.selectionController.getSelectedNodes(),o=e.dragItem.rowNode;return t&&-1!==n.indexOf(o)?(this.isMultiRowDrag=!0,Vi(n)):(this.isMultiRowDrag=!1,[o])},e.prototype.onDragEnter=function(e){this.dispatchEvent(bt.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.isFromThisGrid=function(e){return this.gridPanel.getGui().contains(e.dragSource.eElement)},e.prototype.isDropZoneWithinThisGrid=function(e){var t=this.gridPanel.getGui(),n=e.dropZoneTarget;return!t.contains(n)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(bt.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){var n,o=this,r=this.isFromThisGrid(e);r?(n=[e.dragItem.rowNode],this.isMultiRowDrag&&(n=Vi(this.selectionController.getSelectedNodes()).sort((function(e,t){return o.getRowIndexNumber(e)-o.getRowIndexNumber(t)}))),e.dragItem.rowNodes=n):n=e.dragItem.rowNodes,this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!r?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(n[0],t):this.moveRows(n,t))},e.prototype.getRowIndexNumber=function(e){return parseInt(J(e.getRowIndexString().split("-")),10)},e.prototype.moveRowAndClearHighlight=function(e){var t=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),o=n&&"below"===n.highlighted,r=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes,s=o?1:0;if(this.isFromThisGrid(e))i.forEach((function(e){e.rowTop<r&&(s-=1)})),this.moveRows(i,r,s);else{var a=this.gridOptionsWrapper.getRowNodeIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(r)+1;"above"===this.clientSideRowModel.getHighlightPosition(r)&&l--,this.clientSideRowModel.updateRowData({add:i.map((function(e){return e.data})).filter((function(e){return!t.clientSideRowModel.getRowNode(a?a(e):e.id)})),addIndex:l})}this.clearRowHighlight()},e.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},e.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.addRowDropZone=function(e){var n=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("ag-Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(t){e.onDragEnter(n.draggingToRowDragEvent(bt.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(o.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(bt.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(o.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(bt.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(o.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(bt.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(ki({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return br.ICON_MOVE},external:!0},o))}else qe.doOnce((function(){return console.warn("ag-Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},e.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),o=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){o(n),e.onDragEnter(t.draggingToRowDragEvent(bt.EVENT_ROW_DRAG_ENTER,n))}:o,onDragLeave:e.onDragLeave?function(n){r(n),e.onDragLeave(t.draggingToRowDragEvent(bt.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(bt.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){s(n),e.onDragStop(t.draggingToRowDragEvent(bt.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:o,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},e.prototype.draggingToRowDragEvent=function(e,n){var o,r=this.mouseEventService.getNormalisedPosition(n).y,i=-1,s=null;switch(r>this.rowModel.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(r),s=this.rowModel.getRow(i)),n.vDirection){case t.VerticalDirection.Down:o="down";break;case t.VerticalDirection.Up:o="up";break;default:o=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:i,overNode:s,y:r,vDirection:o}},e.prototype.dispatchEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},e.prototype.onDragLeave=function(e){this.dispatchEvent(bt.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(e){this.dispatchEvent(bt.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Gi([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Gi([nt("rowModel")],e.prototype,"rowModel",void 0),Gi([nt("columnController")],e.prototype,"columnController",void 0),Gi([nt("focusController")],e.prototype,"focusController",void 0),Gi([nt("sortController")],e.prototype,"sortController",void 0),Gi([nt("filterManager")],e.prototype,"filterManager",void 0),Gi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Gi([nt("selectionController")],e.prototype,"selectionController",void 0),Gi([ot("rangeController")],e.prototype,"rangeController",void 0),Gi([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),Gi([nt("eventService")],e.prototype,"eventService",void 0),Gi([Ze],e.prototype,"postConstruct",null),Gi([et],e.prototype,"destroy",null),e}(),Wi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bi=function(e){function n(){var t=e.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n <div class="ag-center-cols-clipper" ref="eCenterColsClipper" role="presentation" unselectable="on">\n <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n <div class="ag-center-cols-container" ref="eCenterContainer" role="rowgroup" unselectable="on"></div>\n </div>\n </div>\n <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n </div>\n <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n </div>')||this;return t.scrollLeft=-1,t.scrollTop=-1,t.resetLastHorizontalScrollElementDebounced=qe.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return Wi(n,e),n.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},n.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},n.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},n.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.mouseEventService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var n=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return n()}))})),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){e.addDestroyableEventListener(t,"focusin",(function(){qe.addCssClass(t,"ag-has-focus")})),e.addDestroyableEventListener(t,"focusout",(function(e){t.contains(e.relatedTarget)||qe.removeCssClass(t,"ag-has-focus")}))}))},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},n.prototype.onCenterViewportResized=function(){qe.isVisible(this.eCenterViewport)?(this.checkViewportAndScrolls(),this.columnController.refreshFlexedColumns(this.getCenterWidth())):this.bodyHeight=0},n.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-selectable",e)}))},n.prototype.addRowDragListener=function(){var e=new ji(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e),this.rowDragFeature=e},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var n=!1,o=t.relatedTarget;qe.exists(o)&&!n;){var r=!!e.gridOptionsWrapper.getDomData(o,Ir.DOM_KEY_POPUP_EDITOR_WRAPPER),i=e.eBodyViewport===o||e.eBottom===o||e.eTop===o;n=r||i,o=o.parentNode}n||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},n.prototype.addAngularApplyCheck=function(){var e=this,t=!1,n=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,bt.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addDestroyableEventListener(this.eventService,bt.EVENT_VIRTUAL_COLUMNS_CHANGED,n)},n.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,bt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Vt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},n.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!qe.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var n={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController)};e.dragService.addDragSource(n),e.addDestroyFunc((function(){return e.dragService.removeDragSource(n)}))}))},n.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(o){return e.addDestroyableEventListener(o,t,n)}))}))},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(o){e.addDestroyableEventListener(o,t,n)}))}))},n.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var n=qe.getTarget(t);n!==e.eBodyViewport&&n!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},n.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},n.prototype.getRowForEvent=function(e){for(var t=qe.getTarget(e);t;){var n=this.gridOptionsWrapper.getDomData(t,Br.DOM_DATA_KEY_RENDERED_ROW);if(n)return n;t=t.parentElement}return null},n.prototype.processKeyboardEvent=function(e,t){var n=qe.getCellCompForEvent(this.gridOptionsWrapper,t);if(n){var o=n.getRenderedRow().getRowNode(),r=n.getColumn(),i=n.isEditing();if(!qe.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,o,r,i))switch(e){case"keydown":!i&&this.navigationService.handlePageScrollingKey(t)||n.onKeyDown(t),this.doGridOperations(t,n);break;case"keypress":n.onKeyPress(t)}if("keydown"===e){var s=n.createEvent(t,bt.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=n.createEvent(t,bt.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case ke.KEY_A:return this.onCtrlAndA(e);case ke.KEY_C:return this.onCtrlAndC(e);case ke.KEY_V:return this.onCtrlAndV();case ke.KEY_D:return this.onCtrlAndD(e);case ke.KEY_Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case ke.KEY_Y:return this.undoRedoService.redo()}},n.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!qe.isStopPropagationForAgGrid(t)){var n=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?(this.preventDefaultOnContextMenu(t),this.handleContextMenuMouseEvent(t,null,n,o)):(o&&o.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;qe.isIOSUserAgent()&&this.eAllCellContainers.forEach((function(t){var n=new En(t);e.addDestroyableEventListener(n,En.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,o)})),e.addDestroyFunc((function(){return n.destroy()}))}))},n.prototype.handleContextMenuMouseEvent=function(e,t,n,o){var r=n?n.getRowNode():null,i=o?o.getColumn():null,s=null;if(i){var a=e||t;o.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}this.onContextMenu(e,t,r,i,s)},n.prototype.onContextMenu=function(e,t,n,o,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var i=e||t.touches[0];this.contextMenuFactory.showMenu(n,o,r,i),(e||t).preventDefault()}},n.prototype.preventDefaultOnContextMenu=function(e){var t=this.gridOptionsWrapper,n=e.which;(t.isPreventDefaultOnContextMenu()||t.isSuppressMiddleClickScrolls()&&2===n)&&e.preventDefault()},n.prototype.onCtrlAndA=function(e){var t=this.columnController,n=this.pinnedRowModel,o=this.paginationProxy,r=this.rangeController,i=ke.PINNED_BOTTOM,s=ke.PINNED_TOP;if(r&&o.isRowsToRender()){var a=[n.isEmpty(s),n.isEmpty(i)],l=a[0]?null:s,u=void 0,c=void 0;a[1]?(u=null,c=this.paginationProxy.getRowCount()-1):(u=i,c=n.getPinnedBottomRowData().length-1);var p=t.getAllDisplayedColumns();if(qe.missingOrEmpty(p))return;r.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:c,rowEndPinned:u,columnStart:p[0],columnEnd:qe.last(p)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){pt.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){pt.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},n.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var o,r=this.paginationProxy.getRow(e);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,u=l+r.rowHeight,c=this.getVScrollPosition(),p=this.heightScaler.getOffset(),d=c.top+p,h=c.bottom+p,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),v=this.heightScaler.getScrollPositionForPixel(u-f),m=Math.min((g+v)/2,l),y=null;"top"===t?y=g:"bottom"===t?y=v:"middle"===t?y=m:d>l?y=g:h<u&&(y=v),null!==y&&(this.eBodyViewport.scrollTop=y,this.rowRenderer.redrawAfterScroll()),o=i!==r.rowTop||s!==r.rowHeight}while(o);this.animationFrameService.flushAllFrames()}}},n.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return qe.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||qe.isVerticalScrollShowing(this.eBodyViewport)},n.prototype.isHorizontalScrollShowing=function(){return qe.isHorizontalScrollShowing(this.eCenterViewport)},n.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize(),this.scrollLeft!==this.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},n.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},n.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),n=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,o=t?0:n,r=qe.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+n+"px)",qe.setFixedHeight(this.eHorizontalScrollBody,o),qe.setFixedHeight(this.eBodyHorizontalScrollViewport,o+(r?1:0)),qe.setFixedHeight(this.eBodyHorizontalScrollContainer,o)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},n.prototype.updateRowCount=function(){var e=(this.headerRootComp.getHeaderRowCount()+this.paginationProxy.getRowCount()).toString();this.getGui().setAttribute("aria-rowcount",e)},n.prototype.updateColumnCount=function(){var e=this.beans.columnController.getAllDisplayedColumns();this.getGui().setAttribute("aria-colcount",e.length.toString())},n.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var n,o,r=t.getLeft(),i=r+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(n=l-a-s,o=l-a):(n=a,o=s+a);var u=n>r,c=o<i,p=s<t.getActualWidth(),d=u||p,h=c,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-r:l-i:d?r:i-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},n.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},n.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},n.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.eBodyViewport.clientWidth;n>0?this.columnController.sizeColumnsToFit(n,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},n.prototype.getCenterContainer=function(){return this.eCenterContainer},n.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},n.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},n.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},n.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new Mi({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new Mi({eContainer:this.eFullWidthContainer}),pinnedLeft:new Mi({eContainer:this.eLeftContainer}),pinnedRight:new Mi({eContainer:this.eRightContainer}),floatingTop:new Mi({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new Mi({eContainer:this.eLeftTop}),floatingTopPinnedRight:new Mi({eContainer:this.eRightTop}),floatingTopFullWidth:new Mi({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new Mi({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new Mi({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new Mi({eContainer:this.eRightBottom}),floatingBottomFullWidth:new Mi({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},qe.iterateObject(this.rowContainerComponents,(function(t,n){n&&e.getContext().wireBean(n)}))},n.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();qe.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),qe.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,bt.EVENT_HEIGHT_SCALE_CHANGED,t)},n.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},n.prototype.getRowContainers=function(){return this.rowContainerComponents},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},n.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},n.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},n.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},n.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth());this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},n.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,n=this.columnController.getPinnedLeftContainerWidth(),o=this.pinningLeft=!this.printLayout&&n>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==o&&this.headerRootComp.setLeftVisible(o),r.forEach((function(t){return qe.setDisplayed(t,e.pinningLeft)})),o&&r.forEach((function(e){return qe.setFixedWidth(e,n)}))},n.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),n=this.pinningRight=!this.printLayout&&t>0,o=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==n&&this.headerRootComp.setRightVisible(n),o.forEach((function(e){return qe.setDisplayed(e,n)})),n&&o.forEach((function(e){return qe.setFixedWidth(e,t)}))},n.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},n.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),qe.setFixedWidth(this.eHorizontalRightSpacer,e),qe.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),qe.setFixedWidth(this.eHorizontalLeftSpacer,t),qe.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},n.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:bt.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},n.prototype.setHeaderAndFloatingHeights=function(){var e,t,n,o=this,r=o.columnController,i=o.gridOptionsWrapper,s=o.pinnedRowModel,a=o.eTop,l=o.eBottom,u=0,c=r.getHeaderRowCount();r.isPivotMode()?(t=i.getPivotGroupHeaderHeight(),n=i.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(c++,u=1),t=i.getGroupHeaderHeight(),n=i.getHeaderHeight());var p=c-(1+u);e=u*i.getFloatingFiltersHeight(),e+=p*t,e+=n,this.headerRootComp.setHeight(e);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},n.prototype.getBodyHeight=function(){return this.bodyHeight},n.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},n.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},n.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},n.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(e),this.scrollTop=e,this.redrawRowsAfterScroll()},n.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},n.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},n.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,n=t.scrollWidth,o=t.clientWidth,r=Math.floor(qe.getScrollLeft(e,this.enableRtl));r<0||r+o>n||(this.doHorizontalScroll(r),this.resetLastHorizontalScrollElementDebounced())},n.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},n.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:bt.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},n.prototype.redrawRowsAfterScroll=function(){var e={type:bt.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},n.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},n.prototype.getCenterViewportScrollLeft=function(){return qe.getScrollLeft(this.eCenterViewport,this.enableRtl)},n.prototype.setCenterViewportScrollLeft=function(e){qe.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},n.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.eCenterViewport,o=n.clientWidth,r=n.scrollWidth;if(!(Math.abs(t)+o>r||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var i=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;qe.setScrollLeft(i,e,this.enableRtl)}},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Hi([nt("alignedGridsService")],n.prototype,"alignedGridsService",void 0),Hi([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Hi([nt("columnController")],n.prototype,"columnController",void 0),Hi([nt("rowRenderer")],n.prototype,"rowRenderer",void 0),Hi([nt("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Hi([nt("eventService")],n.prototype,"eventService",void 0),Hi([nt("animationFrameService")],n.prototype,"animationFrameService",void 0),Hi([nt("navigationService")],n.prototype,"navigationService",void 0),Hi([nt("autoHeightCalculator")],n.prototype,"autoHeightCalculator",void 0),Hi([nt("columnAnimationService")],n.prototype,"columnAnimationService",void 0),Hi([nt("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),Hi([nt("paginationAutoPageSizeService")],n.prototype,"paginationAutoPageSizeService",void 0),Hi([nt("beans")],n.prototype,"beans",void 0),Hi([nt("paginationProxy")],n.prototype,"paginationProxy",void 0),Hi([nt("columnApi")],n.prototype,"columnApi",void 0),Hi([nt("gridApi")],n.prototype,"gridApi",void 0),Hi([nt("dragService")],n.prototype,"dragService",void 0),Hi([nt("mouseEventService")],n.prototype,"mouseEventService",void 0),Hi([nt("$scope")],n.prototype,"$scope",void 0),Hi([nt("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Hi([nt("valueService")],n.prototype,"valueService",void 0),Hi([nt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Hi([nt("maxDivHeightScaler")],n.prototype,"heightScaler",void 0),Hi([nt("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Hi([nt("undoRedoService")],n.prototype,"undoRedoService",void 0),Hi([ot("rangeController")],n.prototype,"rangeController",void 0),Hi([ot("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Hi([ot("clipboardService")],n.prototype,"clipboardService",void 0),Hi([Jt("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Hi([Jt("eCenterContainer")],n.prototype,"eCenterContainer",void 0),Hi([Jt("eCenterViewport")],n.prototype,"eCenterViewport",void 0),Hi([Jt("eLeftContainer")],n.prototype,"eLeftContainer",void 0),Hi([Jt("eRightContainer")],n.prototype,"eRightContainer",void 0),Hi([Jt("eCenterColsClipper")],n.prototype,"eCenterColsClipper",void 0),Hi([Jt("eHorizontalScrollBody")],n.prototype,"eHorizontalScrollBody",void 0),Hi([Jt("eHorizontalLeftSpacer")],n.prototype,"eHorizontalLeftSpacer",void 0),Hi([Jt("eHorizontalRightSpacer")],n.prototype,"eHorizontalRightSpacer",void 0),Hi([Jt("eBodyHorizontalScrollViewport")],n.prototype,"eBodyHorizontalScrollViewport",void 0),Hi([Jt("eBodyHorizontalScrollContainer")],n.prototype,"eBodyHorizontalScrollContainer",void 0),Hi([Jt("eFullWidthContainer")],n.prototype,"eFullWidthContainer",void 0),Hi([Jt("eTop")],n.prototype,"eTop",void 0),Hi([Jt("eLeftTop")],n.prototype,"eLeftTop",void 0),Hi([Jt("eRightTop")],n.prototype,"eRightTop",void 0),Hi([Jt("eTopContainer")],n.prototype,"eTopContainer",void 0),Hi([Jt("eTopViewport")],n.prototype,"eTopViewport",void 0),Hi([Jt("eTopFullWidthContainer")],n.prototype,"eTopFullWidthContainer",void 0),Hi([Jt("eBottom")],n.prototype,"eBottom",void 0),Hi([Jt("eLeftBottom")],n.prototype,"eLeftBottom",void 0),Hi([Jt("eRightBottom")],n.prototype,"eRightBottom",void 0),Hi([Jt("eBottomContainer")],n.prototype,"eBottomContainer",void 0),Hi([Jt("eBottomViewport")],n.prototype,"eBottomViewport",void 0),Hi([Jt("eBottomFullWidthContainer")],n.prototype,"eBottomFullWidthContainer",void 0),Hi([Jt("headerRoot")],n.prototype,"headerRootComp",void 0),Hi([Jt("overlayWrapper")],n.prototype,"overlayWrapper",void 0),Hi([Ze],n.prototype,"init",null),n}($t),zi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ui=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case ke.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case ke.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case ke.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;qe.iterateObject(this.detailGridInfoMap,(function(n,o){qe.exists(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(pt.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){pt.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){if(pt.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){pt.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")&&this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var t=this.immutableService.createTransactionForRowData(e),n=t[0],o=t[1];this.clientSideRowModel.updateRowData(n,o),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,n=0,o=0,r=this;!function i(){var s=(new Date).getTime();r.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var r=(new Date).getTime(),l=a-s,u=r-a;console.log("duration: processing = "+l+"ms, reflow = "+u+"ms"),t++,n+=l,o+=u,t<e?window.setTimeout(i,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+n/t+"ms"),console.log("average reflow = "+o/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){qe.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),qe.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:ke.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){qe.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=ke.STEP_EVERYTHING,n={group:ke.STEP_EVERYTHING,filter:ke.STEP_FILTER,map:ke.STEP_MAP,aggregate:ke.STEP_AGGREGATE,sort:ke.STEP_SORT,pivot:ke.STEP_PIVOT};if(qe.exists(e)&&(t=n[e]),qe.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(n).join(", "));else{var o={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(o)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){qe.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){qe.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.getToolPanelInstance=function(e){return this.gridCore.getToolPanelInstance(e)},e.prototype.addVirtualRowListener=function(e,t,n){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){qe.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:ke.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){qe.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){qe.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){qe.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e,t){var n=this.columnController.getPrimaryColumn(e);if(n){var o=this.filterManager.getFilterComponent(n,"NO_UI"),r=o.resolveNow(null,(function(e){return e}));return t&&(r?setTimeout(t,0,r):o.then(t)),r}},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusController.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridPanel.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridPanel.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.setSideBarPosition=function(e){this.gridCore.setSideBarPosition(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){qe.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){qe.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnController.getPrimaryColumn(e);return qe.missing(n)&&(n=this.columnController.getGridColumn(e)),qe.missing(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("ag-Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the ag-Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return qe.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){console.warn("ag-Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getChartModels=function(){if(pt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&pt.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.createRangeChart=function(e){if(pt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&pt.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createPivotChart=function(e){if(pt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&pt.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterMouseEvent(n,t)},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(Vt.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t};qe.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(n,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyTransaction=function(e){var t=null;if(this.clientSideRowModel){if(e&&null!=e.addIndex){qe.doOnce((function(){return console.warn("ag-Grid: as of v23.1, transaction.addIndex is deprecated. If you want precision control of adding data, use immutableData instead")}),"transaction.addIndex deprecated")}t=this.clientSideRowModel.updateRowData(e)}else if(this.infiniteRowModel){qe.doOnce((function(){return console.warn("ag-Grid: as of v23.1, transactions for Infinite Row Model are deprecated. If you want to make updates to data in Infinite Row Models, then refresh the data.")}),"applyTransaction infiniteRowModel deprecated"),this.infiniteRowModel.updateRowData(e)}else console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel.");return this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.updateRowData=function(e){return qe.doOnce((function(){return console.warn("ag-Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){qe.doOnce((function(){return console.warn("ag-Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infiniteRowModel?this.infiniteRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},zi([ot("immutableService")],e.prototype,"immutableService",void 0),zi([ot("csvCreator")],e.prototype,"csvCreator",void 0),zi([ot("excelCreator")],e.prototype,"excelCreator",void 0),zi([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),zi([nt("filterManager")],e.prototype,"filterManager",void 0),zi([nt("columnController")],e.prototype,"columnController",void 0),zi([nt("selectionController")],e.prototype,"selectionController",void 0),zi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),zi([nt("valueService")],e.prototype,"valueService",void 0),zi([nt("alignedGridsService")],e.prototype,"alignedGridsService",void 0),zi([nt("eventService")],e.prototype,"eventService",void 0),zi([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),zi([nt("context")],e.prototype,"context",void 0),zi([nt("rowModel")],e.prototype,"rowModel",void 0),zi([nt("sortController")],e.prototype,"sortController",void 0),zi([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),zi([nt("focusController")],e.prototype,"focusController",void 0),zi([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),zi([ot("rangeController")],e.prototype,"rangeController",void 0),zi([ot("clipboardService")],e.prototype,"clipboardService",void 0),zi([ot("aggFuncService")],e.prototype,"aggFuncService",void 0),zi([nt("menuFactory")],e.prototype,"menuFactory",void 0),zi([ot("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),zi([nt("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),zi([nt("valueCache")],e.prototype,"valueCache",void 0),zi([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),zi([ot("statusBarService")],e.prototype,"statusBarService",void 0),zi([ot("chartService")],e.prototype,"chartService",void 0),zi([ot("undoRedoService")],e.prototype,"undoRedoService",void 0),zi([Ze],e.prototype,"init",null),e=zi([tt("gridApi")],e)}(),qi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Yi=function(e,t){return function(n,o){t(n,o,e)}},Ki=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},qi([Yi(0,it("loggerFactory"))],e.prototype,"setBeans",null),e=qi([tt("expressionService")],e)}(),$i=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qi=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var o=this.waitingCallbacks[e],r=this;if(!o){o=[],this.waitingCallbacks[e]=o;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&o.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],o=0;o<n.length;o++){(0,n[o])()}if(this.$scope){var r=this;window.setTimeout((function(){r.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},$i([nt("$scope")],e.prototype,"$scope",void 0),e=$i([tt("templateService")],e)}(),Xi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ji=function(){function e(){this.popupList=[],this.events=[]}return e.prototype.init=function(){var e=this;this.events=[this.eventService.addEventListener(bt.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){qe.addCssClass(e.element,"ag-keyboard-focus")}))})),this.eventService.addEventListener(bt.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){qe.removeCssClass(e.element,"ag-keyboard-focus")}))}))]},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),o=this.keepYWithinBounds(e,t.top-n.top),r=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=r+"px";var i,s=n.right-n.left-r;function a(){return t.right-n.left-2}function l(){return t.left-n.left-r}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=a()),i>s&&(i=0)):((i=a())>s&&(i=l()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=o+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),n=t.x,o=t.y,r=e.ePopup,i=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:r,x:n,y:o,nudgeX:i,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},e.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",o=this.getParentRect(),r=t.left-o.left;"right"===n&&(r-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:r,y:t.top-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,n,o,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:e,type:o,eventSource:t,mouseEvent:n})},e.prototype.positionPopup=function(e){var t=e.x,n=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(n+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),n=this.keepYWithinBounds(e,n)),e.ePopup.style.left=t+"px",e.ePopup.style.top=n+"px"},e.prototype.getParentRect=function(){var e=this.getPopupParent(),t=this.gridOptionsWrapper.getDocument();e===t.body&&(e=t.documentElement);var n=getComputedStyle(e),o=e.getBoundingClientRect();return{top:o.top+parseFloat(n.borderTopWidth)||0,left:o.left+parseFloat(n.borderLeftWidth)||0,right:o.right+parseFloat(n.borderRightWidth)||0,bottom:o.bottom+parseFloat(n.borderBottomWidth)||0}},e.prototype.keepYWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),o=n.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=n.documentElement.getBoundingClientRect(),a=r===n.body,l=Math.min(200,i.height),u=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,u=qe.getAbsoluteHeight(e.ePopup)-l);var c=a?qe.getAbsoluteHeight(o)+o.scrollTop:i.height;a&&(c-=Math.abs(s.top-i.top));var p=c-l-u;return Math.min(Math.max(t,0),Math.abs(p))},e.prototype.keepXWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),o=n.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=n.documentElement.getBoundingClientRect(),a=r===n.body,l=e.ePopup,u=Math.min(200,i.width),c=0;e.minWidth&&e.minWidth<u?u=e.minWidth:l.offsetWidth>0&&(u=l.offsetWidth,l.style.minWidth=u+"px",c=qe.getAbsoluteWidth(l)-u);var p=a?qe.getAbsoluteWidth(o)+o.scrollLeft:i.width;a&&(p-=Math.abs(s.left-i.left));var d=p-u-c;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.addAsModalPopup=function(e,t,n,o){return this.addPopup(!0,e,t,n,o)},e.prototype.addPopup=function(e,t,n,o,r,i){var s=this,a=this.gridOptionsWrapper.getDocument();(new Date).getTime();if(!a)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var l=qe.findIndex(this.popupList,(function(e){return e.element===t}));if(-1!==l)return this.popupList[l].hideFunc;var u=this.getPopupParent();u.appendChild(t),t.style.top="0px",t.style.left="0px";var c=document.createElement("div"),p=this.environment.getTheme().theme;p&&qe.addCssClass(c,p),qe.addCssClass(c,"ag-popup"),qe.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),qe.addCssClass(t,"ag-popup-child"),c.appendChild(t),u.appendChild(c),i?this.setAlwaysOnTop(c,!0):this.bringPopupToFront(c);var d=!1,h=function(e){(e.which||e.keyCode)===ke.KEY_ESCAPE&&c.contains(document.activeElement)&&v(null)},f=function(e){v(e)},g=function(e){v(null,e)},v=function(e,n){s.isEventFromCurrentPopup(e,n,t)||s.isEventSameChainAsOriginalEvent(r,e,n)||d||(d=!0,u.removeChild(c),a.removeEventListener("keydown",h),a.removeEventListener("mousedown",f),a.removeEventListener("touchstart",g),a.removeEventListener("contextmenu",f),s.eventService.removeEventListener(bt.EVENT_DRAG_STARTED,f),o&&o(),s.popupList=s.popupList.filter((function(e){return e.element!==t})))};return window.setTimeout((function(){n&&a.addEventListener("keydown",h),e&&(a.addEventListener("mousedown",f),s.eventService.addEventListener(bt.EVENT_DRAG_STARTED,f),a.addEventListener("touchstart",g),a.addEventListener("contextmenu",f))}),0),this.popupList.push({element:t,hideFunc:v}),v},e.prototype.isEventFromCurrentPopup=function(e,t,n){var o=e||t;if(!o)return!1;var r=qe.findIndex(this.popupList,(function(e){return e.element===n}));if(-1===r)return!1;for(var i=r;i<this.popupList.length;i++){var s=this.popupList[i];if(qe.isElementInEventPath(s.element,o))return!0}for(var a=o.target;a&&a!=document.body;){if(a.classList.contains("ag-custom-component-popup")||null===a.parentElement)return!0;a=a.parentElement}},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,n){var o=null;if(t?o=t:n&&(o=n.touches[0]),o&&e){var r=t?t.screenX:0,i=t?t.screenY:0,s=Math.abs(e.screenX-r)<5,a=Math.abs(e.screenY-i)<5;if(s&&a)return!0}return!1},e.prototype.getWrapper=function(e){for(;!qe.containsClass(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return qe.containsClass(e,"ag-popup")?e:null},e.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(qe.addOrRemoveCssClass(n,"ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},e.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),o=n.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=r.length,s=this.getWrapper(e);if(s&&!(o<=1)&&t.contains(e)){var a=n.indexOf(s);if(i)qe.containsClass(s,"ag-always-on-top")?a!==o-1&&qe.last(r).insertAdjacentElement("afterend",s):a!==o-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==o-1&&qe.last(n).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},Xi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xi([nt("environment")],e.prototype,"environment",void 0),Xi([nt("eventService")],e.prototype,"eventService",void 0),Xi([Ze],e.prototype,"init",null),Xi([et],e.prototype,"destroy",null),e=Xi([tt("popupService")],e)}(),Zi=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},es=function(e,t){return function(n,o){t(n,o,e)}},ts=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new ns(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},Zi([es(0,it("gridOptionsWrapper"))],e.prototype,"setBeans",null),e=Zi([tt("loggerFactory")],e)}(),ns=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}(),os=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},rs=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var o=document.createElement("span");o.style.position="fixed";var r=this.gridPanel.getCenterContainer();r.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),t||this.cloneItemIntoDummy(n,o);var i=o.offsetWidth;return r.removeChild(o),i+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(n){if(n instanceof ii){var o=n;o.getColumn()===e&&(t=o)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var n=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return n.cloneItemIntoDummy(e,t)}))},e.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var o=document.createElement("div");qe.containsClass(n,"ag-header-cell")&&(qe.addCssClass(o,"ag-header"),qe.addCssClass(o,"ag-header-row"),o.style.position="static"),o.style.display="table-row",o.appendChild(n),t.appendChild(o)},os([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),os([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=os([tt("autoWidthCalculator")],e)}(),is=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ss=function(){function e(){}return e.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(n,!0);return function(){return t.dragService.removeDragSource(n)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="ew-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},is([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),is([nt("dragService")],e.prototype,"dragService",void 0),is([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=is([tt("horizontalResizeService")],e)}(),as=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ls=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},us=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return as(n,e),n.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var n=this.createTemplate();if(this.setTemplate(n),[this.gridApi,this.rowRenderer,this.popupService].forEach((function(t){return t.registerGridCore(e)})),pt.isRegistered(t.ModuleNames.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var o=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(o)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var r=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}));var i=this.getGui();this.addDestroyableEventListener(this.eventService,bt.EVENT_KEYBOARD_FOCUS,(function(){qe.addCssClass(i,"ag-keyboard-focus")})),this.addDestroyableEventListener(this.eventService,bt.EVENT_MOUSE_FOCUS,(function(){qe.removeCssClass(i,"ag-keyboard-focus")}))},n.prototype.createTemplate=function(){var e=pt.isRegistered(t.ModuleNames.SideBarModule),n=pt.isRegistered(t.ModuleNames.StatusBarModule);return'<div class="ag-root-wrapper">\n '+(pt.isRegistered(t.ModuleNames.RowGroupingModule)?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n '+(e?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(n?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(pt.isRegistered(t.ModuleNames.EnterpriseCoreModule)?"<ag-watermark></ag-watermark>":"")+"\n </div>"},n.prototype.onGridSizeChanged=function(){var e={type:bt.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";qe.addCssClass(this.getGui(),e)},n.prototype.getRootGui=function(){return this.getGui()},n.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},n.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("ag-Grid: sideBar is not loaded")},n.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("ag-Grid: sideBar is not loaded")},n.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.getSideBar=function(){return this.gridOptions.sideBar},n.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(e);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},n.prototype.setSideBar=function(e){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=Ft.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},n.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},n.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},n.prototype.destroy=function(){this.logger.log("Grid DOM removed"),e.prototype.destroy.call(this)},n.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t=null),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var n=this.rowModel.getRowCount(),o="function"==typeof e,r=-1,i=0;i<n;i++){var s=this.rowModel.getRow(i);if(o){if(e(s)){r=i;break}}else if(e===s||e===s.data){r=i;break}}r>=0&&this.gridPanel.ensureIndexVisible(r,t)},ls([nt("gridOptions")],n.prototype,"gridOptions",void 0),ls([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ls([nt("rowModel")],n.prototype,"rowModel",void 0),ls([nt("resizeObserverService")],n.prototype,"resizeObserverService",void 0),ls([nt("columnController")],n.prototype,"columnController",void 0),ls([nt("rowRenderer")],n.prototype,"rowRenderer",void 0),ls([nt("filterManager")],n.prototype,"filterManager",void 0),ls([nt("eventService")],n.prototype,"eventService",void 0),ls([nt("eGridDiv")],n.prototype,"eGridDiv",void 0),ls([nt("$scope")],n.prototype,"$scope",void 0),ls([nt("quickFilterOnScope")],n.prototype,"quickFilterOnScope",void 0),ls([nt("popupService")],n.prototype,"popupService",void 0),ls([nt("focusController")],n.prototype,"focusController",void 0),ls([nt("loggerFactory")],n.prototype,"loggerFactory",void 0),ls([nt("columnApi")],n.prototype,"columnApi",void 0),ls([nt("gridApi")],n.prototype,"gridApi",void 0),ls([nt("environment")],n.prototype,"environment",void 0),ls([ot("clipboardService")],n.prototype,"clipboardService",void 0),ls([Jt("gridPanel")],n.prototype,"gridPanel",void 0),ls([Jt("sideBar")],n.prototype,"sideBarComp",void 0),ls([Jt("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),ls([Ze],n.prototype,"init",null),n}($t),cs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ps=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:o,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var n,o=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),i=document.createElement("div");qe.addCssClass(i,"ag-menu"),r.guiPromise.then((function(e){return i.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&n()};this.eventService.addEventListener("bodyScroll",s);n=this.popupService.addAsModalPopup(i,!0,(function(){o.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(i),r.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:n};e.afterGuiAttached(t)}})),this.hidePopup=n,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},cs([nt("eventService")],e.prototype,"eventService",void 0),cs([nt("filterManager")],e.prototype,"filterManager",void 0),cs([nt("popupService")],e.prototype,"popupService",void 0),e=cs([tt("menuFactory")],e)}(),ds=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hs=function(){function e(){this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=qe.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),qe.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");qe.exists(t)&&qe.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",n);var o=null,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(o=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:n,touchStartListener:o,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var o=t.touches[0];this.touchLastTime=o,this.touchStart=o,t.cancelable&&t.preventDefault();var r=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,s=[{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:r,options:{passive:!0}},{target:i,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(o,this.touchStart,e.eElement)},e.prototype.onMouseDown=function(e,t){var n=this,o=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||o._alreadyProcessedByDragService||(o._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var r=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0);var i=[{target:r,type:"mousemove",listener:function(t,o){return n.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t,o){return n.onMouseUp(t,e.eElement)}},{target:r,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},e.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.addEventListener(n,o,r)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.removeEventListener(n,o,r)}))}))},e.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels,o=qe.exists(n)?n:4;return qe.areEventsNear(e,t,o)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:bt.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},e.prototype.onMouseMove=function(e,t){this.onCommonMove(e,this.mouseStartEvent,t)},e.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},e.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},e.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:bt.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},ds([nt("loggerFactory")],e.prototype,"loggerFactory",void 0),ds([nt("eventService")],e.prototype,"eventService",void 0),ds([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ds([nt("columnApi")],e.prototype,"columnApi",void 0),ds([nt("gridApi")],e.prototype,"gridApi",void 0),ds([Ze],e.prototype,"init",null),ds([et],e.prototype,"destroy",null),e=ds([tt("dragService")],e)}(),fs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gs=function(){function e(){var e=this;this.getSortModel=function(){return e.getColumnsWithSortingOrdered().map((function(e){return{colId:e.getColId(),sort:e.getSort()}}))}}var t;return t=e,e.prototype.progressSort=function(e,t,n){void 0===n&&(n="api");var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,n)},e.prototype.setSortForColumn=function(e,t,n,o){if(void 0===o&&(o="api"),t!==ke.SORT_ASC&&t!==ke.SORT_DESC&&(t=null),e.setSort(t,o),e.getSort()){var r=Number((new Date).valueOf());e.setSortedAt(r)}else e.setSortedAt(null);n&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,o),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:bt.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var n;if(n=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(n)||n.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+n),null;var o,r=n.indexOf(e.getSort()),i=r<0,s=r==n.length-1;return o=i||s?n[0]:n[r+1],t.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("ag-grid: invalid sort type "+o),null):o},e.prototype.setSortModel=function(e,t){var n=this;void 0===t&&(t="api");var o=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(r){var i=null,s=-1;if(o&&r.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof r.getColId()&&n.compareColIds(l,r)&&(i=l.sort,s=a)}i?(r.setSort(i,t),r.setSortedAt(s)):(r.setSort(null,t),r.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e.sort((function(e,t){return e.sortedAt-t.sortedAt})),e},e.prototype.getSortForRowController=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{inverter:e.getSort()===ke.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[ke.SORT_ASC,ke.SORT_DESC,null],fs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),fs([nt("columnController")],e.prototype,"columnController",void 0),fs([nt("eventService")],e.prototype,"eventService",void 0),fs([nt("columnApi")],e.prototype,"columnApi",void 0),fs([nt("gridApi")],e.prototype,"gridApi",void 0),e=t=fs([tt("sortController")],e)}(),vs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ms=function(){function e(){this.keyboardFocusActive=!1,this.events=[]}return e.prototype.init=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.clearFocusedCell.bind(this);this.events=[this.eventService.addEventListener(bt.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.eventService.addEventListener(bt.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addEventListener(bt.EVENT_COLUMN_GROUP_OPENED,t),this.eventService.addEventListener(bt.EVENT_COLUMN_ROW_GROUP_CHANGED,t)];var n=this.activateKeyboardMode.bind(this);e.addEventListener("keydown",n),this.events.push((function(){return e.removeEventListener("keydown",n)}));var o=this.activateMouseMode.bind(this);e.addEventListener("mousedown",o),this.events.push((function(){return e.removeEventListener("mousedown",o)}))},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.isKeyboardFocus=function(){return this.keyboardFocusActive},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.activateMouseMode=function(){this.keyboardFocusActive=!1,this.eventService.dispatchEvent({type:bt.EVENT_MOUSE_FOCUS})},e.prototype.activateKeyboardMode=function(){this.keyboardFocusActive=!0,this.eventService.dispatchEvent({type:bt.EVENT_KEYBOARD_FOCUS})},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCellPosition&&this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var n=this.gridOptionsWrapper.getDomData(t,jr.DOM_DATA_KEY_CELL_COMP);if(n)return n.getCellPosition();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,n,o){void 0===o&&(o=!1);var r=qe.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:qe.makeNull(n),column:r},this.onCellFocused(o)},e.prototype.isCellFocused=function(e){return!qe.missing(this.focusedCellPosition)&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(e,t){if(qe.missing(this.focusedCellPosition))return!1;var n=qe.makeNull(t);return this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===n},e.prototype.findFocusableElements=function(e,t){var n=".ag-hidden, .ag-hidden *, .ag-disabled, .ag-disabled *";t&&(n+=", "+t);var o=Array.from(e.querySelectorAll("[tabindex], input, select, button, textarea")),r=Array.from(e.querySelectorAll(n));if(!r.length)return o;var i;return i=r,o.filter((function(e){return-1===i.indexOf(e)}))},e.prototype.onCellFocused=function(e){var t={type:bt.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCellPosition&&(t.rowIndex=this.focusedCellPosition.rowIndex,t.column=this.focusedCellPosition.column,t.rowPinned=this.focusedCellPosition.rowPinned),this.eventService.dispatchEvent(t)},vs([nt("eventService")],e.prototype,"eventService",void 0),vs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),vs([nt("columnController")],e.prototype,"columnController",void 0),vs([nt("columnApi")],e.prototype,"columnApi",void 0),vs([nt("gridApi")],e.prototype,"gridApi",void 0),vs([Ze],e.prototype,"init",null),vs([et],e.prototype,"destroy",null),e=vs([tt("focusController")],e)}(),ys=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cs=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return qe.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var n=qe.getEventPath(e),o=0;o<n.length;o++){var r=n[o][t.GRID_DOM_KEY];if(qe.exists(r))return r===this.gridInstanceId}return!1},e.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},e.prototype.getNormalisedPosition=function(e){var t=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,n=e.x,o=e.y;if(t){var r=this.gridPanel.getVScrollPosition();return{x:n+this.gridPanel.getHScrollPosition().left,y:o+r.top}}return{x:n,y:o}},e.gridInstanceSequence=new Ye,e.GRID_DOM_KEY="__ag_grid_instance",ys([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ys([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),ys([Ze],e.prototype,"init",null),e=t=ys([tt("mouseEventService")],e)}(),ws=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},bs=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var n=t,o=!1;!o;){switch(e){case ke.KEY_UP:n=this.getCellAbove(n);break;case ke.KEY_DOWN:n=this.getCellBelow(n);break;case ke.KEY_RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case ke.KEY_LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("ag-Grid: unknown key for navigation "+e)}o=!n||this.isCellGoodToFocusOn(n)}return n},e.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case ke.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case ke.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!n.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case ke.PINNED_BOTTOM:return null;case ke.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(ke.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ke.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(ke.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ke.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===ke.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===ke.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.rowModel.getRowCount()-1<=n},e.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return 0===t?n===ke.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(ke.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:ke.PINNED_TOP}},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var i=this.getRowBelow(e);if(qe.missing(i))return null;n=i?i.rowIndex:null,o=i?i.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=qe.last(t);var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(qe.missing(i))return null;n=i?i.rowIndex:null,o=i?i.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},ws([nt("columnController")],e.prototype,"columnController",void 0),ws([nt("rowModel")],e.prototype,"rowModel",void 0),ws([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ws([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=ws([tt("cellNavigationService")],e)}(),Es=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},_s=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=yo,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=go,this.cellRendererMap[t.GROUP]=po},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return qe.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",Es([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Es([nt("expressionService")],e.prototype,"expressionService",void 0),Es([nt("eventService")],e.prototype,"eventService",void 0),Es([Ze],e.prototype,"init",null),e=t=Es([tt("cellRendererFactory")],e)}(),Os=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Rs=function(){function e(){}return e.prototype.formatValue=function(e,t,n,o,r,i){void 0===i&&(i=!0);var s,a=null,l=e.getColDef();if(r?s=r:i&&(s=t&&t.rowPinned&&l.pinnedRowValueFormatter?l.pinnedRowValueFormatter:l.valueFormatter),s){var u={value:o,node:t,data:t?t.data:null,colDef:l,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};u.$scope=n,a=this.expressionService.evaluate(s,u)}else if(l.refData)return l.refData[o]||"";return null==a&&Array.isArray(o)&&(a=o.join(", ")),a},Os([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Os([nt("expressionService")],e.prototype,"expressionService",void 0),e=Os([tt("valueFormatterService")],e)}(),Ss=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ts=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.inputType="radio",t}return Ss(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){var e=this.getNextValue();this.setValue(e)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addDestroyableEventListener(this.eventService,bt.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(Wn),Ds=function(){function e(){}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListenerOutsideAngular=function(e,t,n,o){e.addEventListener(t,n,o)},e}(),Ps=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Is=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:bt.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Ps([nt("eventService")],e.prototype,"eventService",void 0),Ps([nt("columnController")],e.prototype,"columnController",void 0),Ps([nt("columnApi")],e.prototype,"columnApi",void 0),Ps([nt("gridApi")],e.prototype,"gridApi",void 0),Ps([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Ps([tt("scrollVisibleService")],e)}(),As=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ns=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,n,o){this.processClassRules(e.cellClassRules,t,n,o),this.processStaticCellClasses(e,t,n)},e.prototype.processClassRules=function(e,t,n,o){if("object"==typeof e&&null!==e)for(var r=Object.keys(e),i=0;i<r.length;i++){var s=r[i],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?n(s):o&&o(s)}},e.prototype.processStaticCellClasses=function(e,t,n){if(e.cellClass){var o=void 0;if("function"==typeof e.cellClass)o=(0,e.cellClass)(t);else o=e.cellClass;"string"==typeof o?n(o):Array.isArray(o)&&o.forEach((function(e){n(e)}))}},As([nt("expressionService")],e.prototype,"expressionService",void 0),e=As([tt("stylingService")],e)}(),xs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ls=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xs(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:bt.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:bt.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},Fs([nt("eventService")],t.prototype,"eventService",void 0),Fs([nt("columnApi")],t.prototype,"columnApi",void 0),Fs([nt("gridApi")],t.prototype,"gridApi",void 0),t=Fs([tt("columnHoverService")],t)}(Ut),Ms=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ks=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},Ms([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Ms([tt("columnAnimationService")],e)}(),Gs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Vs=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,n=[],o=this.gridOptionsWrapper.isTreeData(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return o&&r&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),r=!1),r?e.forEach((function(e,o){n.push(t.createOneAutoGroupColumn(e,o))})):n.push(this.createOneAutoGroupColumn()),n},e.prototype.createOneAutoGroupColumn=function(e,n){var o,r=this.generateDefaultColDef(e);o=e?ke.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var i=this.gridOptionsWrapper.getAutoGroupColumnDef();(qe.mergeDeep(r,i),(r=this.columnFactory.mergeColDefs(r)).colId=o,this.gridOptionsWrapper.isTreeData())||qe.missing(r.field)&&qe.missing(r.valueGetter)&&qe.missing(r.filterValueGetter)&&(r.filter=!1);n&&n>0&&(r.headerCheckboxSelection=!1);var s=new ht(r,null,o,!0);return this.context.wireBean(s),s},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework)||(n.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();qe.assign(n,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),o.cellRenderer&&qe.assign(n,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererParams:o.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},e.GROUP_AUTO_COLUMN_BUNDLE_ID=ke.GROUP_AUTO_COLUMN_ID,Gs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Gs([nt("context")],e.prototype,"context",void 0),Gs([nt("columnController")],e.prototype,"columnController",void 0),Gs([nt("columnFactory")],e.prototype,"columnFactory",void 0),e=t=Gs([tt("autoGroupColService")],e)}(),js=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ws=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return js(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addDestroyableEventListener(this.eventService,bt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,o){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:bt.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:bt.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return qe.missing(this.topRowBounds)||qe.missing(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.pixelOffset=qe.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},t.prototype.setZeroRows=function(){this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!qe.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var o=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=o-1}}else this.setZeroRows()},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!qe.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Ws([nt("rowModel")],t.prototype,"rowModel",void 0),Ws([nt("eventService")],t.prototype,"eventService",void 0),Ws([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ws([nt("selectionController")],t.prototype,"selectionController",void 0),Ws([nt("columnApi")],t.prototype,"columnApi",void 0),Ws([nt("gridApi")],t.prototype,"gridApi",void 0),Ws([Ze],t.prototype,"postConstruct",null),t=Ws([tt("paginationProxy")],t)}(Ut),Bs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bs(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,bt.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},zs([nt("eventService")],t.prototype,"eventService",void 0),zs([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),zs([nt("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),t=zs([tt("paginationAutoPageSizeService")],t)}(Ut),qs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ys=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},e.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},qs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),qs([Ze],e.prototype,"init",null),e=qs([tt("valueCache")],e)}(),Ks=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$s=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Qs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ks(t,e),t.prototype.init=function(){this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,bt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==ke.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),o=new cr(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},$s([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),$s([nt("rowModel")],t.prototype,"rowModel",void 0),$s([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),$s([nt("eventService")],t.prototype,"eventService",void 0),$s([Ze],t.prototype,"init",null),t=$s([tt("changeDetectionService")],t)}(Ut),Xs=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Js=function(e,t){return function(n,o){t(n,o,e)}},Zs=function(){function e(){this.consuming=!1,this.events=[]}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.events=[this.eventService.addEventListener(bt.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(bt.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(bt.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(bt.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(bt.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(bt.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))]},e.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()})),this.events=[]},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case bt.EVENT_COLUMN_MOVED:case bt.EVENT_COLUMN_VISIBLE:case bt.EVENT_COLUMN_PINNED:case bt.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case bt.EVENT_COLUMN_GROUP_OPENED:var o=e;t.processGroupOpenedEvent(o);break;case bt.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(e){var t,n=e.columnGroup;if(n){var o=n.getGroupId();t=this.columnController.getOriginalColumnGroup(o)}n&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+n.isExpanded()),this.columnController.setColumnGroupOpened(t,n.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,n=this,o=e.column;if(o&&(t=this.columnController.getPrimaryColumn(o.getColId())),!o||t){var r=this.getColumnIds(e),i=this.getMasterColumns(e);switch(e.type){case bt.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(r,s.toIndex,"alignedGridChanged");break;case bt.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(r,a.visible,"alignedGridChanged");break;case bt.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(r,l.pinned,"alignedGridChanged");break;case bt.EVENT_COLUMN_RESIZED:var u=e;i.forEach((function(t){n.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth());var o=[{key:t.getColId(),newWidth:t.getActualWidth()}];n.columnController.setColumnWidths(o,!1,u.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(c)}))}},Xs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xs([nt("columnController")],e.prototype,"columnController",void 0),Xs([nt("eventService")],e.prototype,"eventService",void 0),Xs([Js(0,it("loggerFactory"))],e.prototype,"setBeans",null),Xs([Ze],e.prototype,"init",null),Xs([et],e.prototype,"destroy",null),e=Xs([tt("alignedGridsService")],e)}(),ea=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ta=function(){function e(){}return e.prototype.adaptFunction=function(e,t,n,o){if(null==t)return{component:null,componentFromFramework:n,source:o,paramsFromSelector:null};var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:n,component:r.functionAdapter(t),source:o,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),n=typeof t;return"string"===n||"number"===n||"boolean"===n?qe.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},ea([nt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=ea([tt("agComponentUtils")],e)}(),na=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},oa=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},na([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),na([Ze],e.prototype,"postConstruct",null),e=na([tt("componentMetadataProvider")],e)}(),ra=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ia=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},ra([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),ra([nt("context")],e.prototype,"context",void 0),ra([nt("columnApi")],e.prototype,"columnApi",void 0),ra([nt("gridApi")],e.prototype,"gridApi",void 0),ra([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ra([nt("expressionService")],e.prototype,"expressionService",void 0),ra([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),ra([nt("$compile")],e.prototype,"$compile",void 0),ra([nt("templateService")],e.prototype,"templateService",void 0),ra([nt("valueService")],e.prototype,"valueService",void 0),ra([nt("eventService")],e.prototype,"eventService",void 0),ra([nt("columnController")],e.prototype,"columnController",void 0),ra([nt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),ra([ot("rangeController")],e.prototype,"rangeController",void 0),ra([nt("focusController")],e.prototype,"focusController",void 0),ra([ot("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),ra([nt("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),ra([nt("popupService")],e.prototype,"popupService",void 0),ra([nt("valueFormatterService")],e.prototype,"valueFormatterService",void 0),ra([nt("stylingService")],e.prototype,"stylingService",void 0),ra([nt("columnHoverService")],e.prototype,"columnHoverService",void 0),ra([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),ra([nt("animationFrameService")],e.prototype,"taskQueue",void 0),ra([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ra([nt("sortController")],e.prototype,"sortController",void 0),ra([nt("filterManager")],e.prototype,"filterManager",void 0),ra([nt("maxDivHeightScaler")],e.prototype,"maxDivHeightScaler",void 0),ra([nt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),ra([nt("detailRowCompCache")],e.prototype,"detailRowCompCache",void 0),ra([nt("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),ra([nt("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),ra([nt("selectionController")],e.prototype,"selectionController",void 0),ra([Ze],e.prototype,"postConstruct",null),e=ra([tt("beans")],e)}(),sa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},aa={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:40,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:28,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:30,rowHeight:42,chartMenuPanelWidth:240}},la={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},ua={},ca=function(){function e(){}return e.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),o=aa[n][t],r=0;if(ua[e]||(ua[e]={}),ua[e][t])return ua[e][t];if(la[t]){var i=la[t],s=document.createElement("div");s.style.position="absolute";var a=i.reduce((function(t,n,o){0===o&&qe.addCssClass(t,e);var r=document.createElement("div");return r.style.position="static",qe.addCssClass(r,n),t.appendChild(r),r}),s);if(document.body){document.body.appendChild(s);var l=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(a)[l],10),document.body.removeChild(s)}}return ua[e][t]=r||o,ua[e][t]},e.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},e.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},e.prototype.getTheme=function(){for(var e,t=/\bag-(material|(?:theme-([\w\-]*)))\b/,n=this.eGridDiv;n&&!(e=t.exec(n.className));)n=n.parentElement;if(!e)return{};var o=e[0];if(void 0===e[2]){var r=o.replace("ag-","ag-theme-");qe.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+o+" with "+r+".")}),"using-old-theme")}return{theme:o,el:n,themeFamily:o.replace(/-dark$/,"")}},sa([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=sa([tt("environment")],e)}(),pa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},da=function(){function e(){this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],o),this.schedule()},e.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},e.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},e.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}},e.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,o=this.createTasksP2,r=o.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0;l||a<e;){var u=void 0;if(n.length)this.sortTaskList(t),u=n.pop().task;else if(r.length)this.sortTaskList(o),u=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}u=i.pop()}this.cancelledTasks.has(u)||u(),a=(new Date).getTime()-s}n.length||r.length||i.length?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:bt.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},pa([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),pa([nt("eventService")],e.prototype,"eventService",void 0),pa([Ze],e.prototype,"init",null),e=pa([tt("animationFrameService")],e)}(),ha=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},fa=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,n=e.altKey,o=e.ctrlKey,r=this.mouseEventService.getCellPositionForEvent(e);if(!r)return!1;var i=!1;switch(t){case ke.KEY_PAGE_HOME:case ke.KEY_PAGE_END:o||n||(this.onHomeOrEndKey(t),i=!0);break;case ke.KEY_LEFT:case ke.KEY_RIGHT:o&&!n&&(this.onCtrlLeftOrRight(t,r),i=!0);break;case ke.KEY_UP:case ke.KEY_DOWN:o&&!n&&(this.onCtrlUpOrDown(t,r),i=!0);break;case ke.KEY_PAGE_DOWN:o||n||(this.onPageDown(r),i=!0);break;case ke.KEY_PAGE_UP:o||n||(this.onPageUp(r),i=!0)}return i&&e.preventDefault(),i},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var o=this.paginationProxy.getPixelOffset(),r=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(r+o),s=this.paginationProxy.getRow(e.rowIndex).rowTop+n-o,a=this.paginationProxy.getRowIndexAtPixel(s+o),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),i>l&&(i=l),this.navigateTo(i,"top",null,a,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var o=this.paginationProxy.getPixelOffset(),r=t.top,i=this.paginationProxy.getRowIndexAtPixel(r+o),s=this.paginationProxy.getRow(e.rowIndex),a=s.rowTop+s.rowHeight-n-o,l=this.paginationProxy.getRowIndexAtPixel(a+o),u=this.paginationProxy.getPageFirstRow();l<u&&(l=u),i<u&&(i=u),this.navigateTo(i,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,n,o,r){if(qe.exists(n)&&this.gridPanel.ensureColumnVisible(n),qe.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusController.setFocusedCell(o,r,null,!0),this.rangeController){var i={rowIndex:o,rowPinned:null,column:r};this.rangeController.setRangeToCell(i)}},e.prototype.onCtrlUpOrDown=function(e,t){var n=e===ke.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(n,null,t.column,n,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var n=e===ke.KEY_LEFT,o=this.columnController.getAllDisplayedColumns(),r=n?o[0]:qe.last(o);this.navigateTo(t.rowIndex,null,r,t.rowIndex,r)},e.prototype.onHomeOrEndKey=function(e){var t=e===ke.KEY_PAGE_HOME,n=this.columnController.getAllDisplayedColumns(),o=t?n[0]:qe.last(n),r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,o,r,o)},ha([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),ha([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),ha([nt("focusController")],e.prototype,"focusController",void 0),ha([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),ha([ot("rangeController")],e.prototype,"rangeController",void 0),ha([nt("columnController")],e.prototype,"columnController",void 0),ha([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ha([Ze],e.prototype,"init",null),e=ha([tt("navigationService")],e)}(),ga=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),va=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ma=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return ga(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,bt.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.maxDivHeight=qe.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:bt.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},va([nt("eventService")],t.prototype,"eventService",void 0),va([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),va([Ze],t.prototype,"postConstruct",null),t=va([tt("maxDivHeightScaler")],t)}(Ut),ya=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ca=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},e.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))}},e.prototype.recurseDown=function(e,t){var n=this;e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren){var r=qe.find(t(e),"selectable",!0);o=qe.exists(r)}else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},ya([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ya([Ze],e.prototype,"init",null),e=ya([tt("selectableService")],e)}(),wa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ba=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),qe.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var n=this.gridPanel.getCenterContainer();n.appendChild(this.eDummyContainer);var o=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(n){var r=new jr(t.$scope,t.beans,n,e,null,!0,!1);r.setParentRow(t.eDummyContainer),o.push(r)}));var r=o.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=r,o.forEach((function(e){return e.afterAttached()}));for(var i=0,s=0;s<this.eDummyContainer.children.length;s++){var a=this.eDummyContainer.children[s];a.offsetHeight>i&&(i=a.offsetHeight)}return n.removeChild(this.eDummyContainer),o.forEach((function(e){e.detach(),e.destroy()})),qe.clearElement(this.eDummyContainer),i},wa([nt("beans")],e.prototype,"beans",void 0),wa([nt("$scope")],e.prototype,"$scope",void 0),wa([nt("columnController")],e.prototype,"columnController",void 0),e=wa([tt("autoHeightCalculator")],e)}(),Ea=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_a=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Oa=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return Ea(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",qe.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",qe.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",qe.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",qe.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===ke.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,bt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):qe.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),o=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n <span ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n '+n+'\n <span ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n '+o+'\n <span ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel">\n <div ref="btFirst" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("first","First")+'</button>\n </div>\n <div ref="btPrevious" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("previous","Previous")+'</button>\n </div>\n <span class="ag-paging-description">\n '+t+'\n <span ref="lbCurrent" class="ag-paging-number"></span>\n '+o+'\n <span ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <span ref="lbTotal" class="ag-paging-number"></span>\n <div ref="btNext" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("next","Next")+'</button>\n </div>\n <div ref="btLast" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("last","Last")+"</button>\n </div>\n </span>\n </div>"},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,qe.addOrRemoveCssClass(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),qe.addOrRemoveCssClass(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,qe.addOrRemoveCssClass(this.btNext,"ag-disabled",this.nextButtonDisabled),this.lastButtonDisabled=!t||o||e===n-1,qe.addOrRemoveCssClass(this.btLast,"ag-disabled",this.lastButtonDisabled)},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=o*n+1)+o-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.serverSideRowModel&&this.serverSideRowModel.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var o=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=o,this.lbRecordCount.innerHTML=o}},_a([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),_a([nt("eventService")],t.prototype,"eventService",void 0),_a([nt("paginationProxy")],t.prototype,"paginationProxy",void 0),_a([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),_a([nt("rowModel")],t.prototype,"rowModel",void 0),_a([Jt("btFirst")],t.prototype,"btFirst",void 0),_a([Jt("btPrevious")],t.prototype,"btPrevious",void 0),_a([Jt("btNext")],t.prototype,"btNext",void 0),_a([Jt("btLast")],t.prototype,"btLast",void 0),_a([Jt("lbRecordCount")],t.prototype,"lbRecordCount",void 0),_a([Jt("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),_a([Jt("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),_a([Jt("eSummaryPanel")],t.prototype,"eSummaryPanel",void 0),_a([Jt("lbCurrent")],t.prototype,"lbCurrent",void 0),_a([Jt("lbTotal")],t.prototype,"lbTotal",void 0),_a([Ze],t.prototype,"postConstruct",null),t}($t),Ra=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sa=function(){function e(){}return e.prototype.observeResize=function(e,t,n){void 0===n&&(n=50);var o,r,i,s,a,l=this.frameworkOverrides,u=qe.debounce(t,n),c=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!c?((a=new window.ResizeObserver(u)).observe(e),function(){return a.disconnect()}):(o=qe.offsetWidth(e),r=qe.offsetHeight(e),i=!0,(s=function(){if(i){var a=qe.offsetWidth(e),u=qe.offsetHeight(e);(a!==o||u!==r)&&(o=a,r=u,t()),l.setTimeout(s,n)}})(),function(){return i=!1})},Ra([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ra([nt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),e=Ra([tt("resizeObserverService")],e)}(),Ta=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Da=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};
291
- /**
292
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
293
- * @version v23.1.1
294
- * @link http://www.ag-grid.com/
295
- * @license MIT
296
- */!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Oi||(Oi={}));var Pa=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n}return Ta(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){qe.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===Oi.Loading),qe.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===Oi.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Oi.Loading)},t.prototype.showNoRowsOverlay=function(){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Oi.NoRows)},t.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,qe.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},t.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',Da([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Da([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Da([Jt("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),Da([Ze],t.prototype,"postConstruct",null),t}($t),Ia=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Aa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Na=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,t.getTemplate(n))||this;o.suppressEnabledCheckbox=!0,o.suppressOpenCloseIcons=!1;var r=n.title,i=n.enabled,s=n.items,a=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return o.title=r,o.cssIdentifier=n.cssIdentifier||"default",o.enabled=null==i||i,o.items=s||[],o.alignItems=n.alignItems||"center",null!=a&&(o.suppressEnabledCheckbox=a),null!=l&&(o.suppressOpenCloseIcons=l),o}return Ia(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(qe.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(qe.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addDestroyableEventListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()}))},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;qe.setDisplayed(this.eGroupClosedIcon,e&&!this.expanded),qe.setDisplayed(this.eGroupOpenedIcon,e&&this.expanded),qe.setDisplayed(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){var t=this.getGui();this.alignItems!==e&&qe.removeCssClass(t,"ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var n="ag-group-item-alignment-"+this.alignItems;return qe.addCssClass(t,n),this},t.prototype.toggleGroupExpand=function(e){if(this.suppressOpenCloseIcons)return this.expanded=!0,this.refreshChildDisplay(),qe.setDisplayed(this.eContainer,!0),this;if(e=null!=e?e:!this.expanded,this.expanded===e)return this;if(this.expanded=e,this.refreshChildDisplay(),qe.setDisplayed(this.eContainer,e),this.expanded){this.dispatchEvent({type:"expanded"})}else{this.dispatchEvent({type:"collapsed"})}return this},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,n=e instanceof $t?e.getGui():e;qe.addCssClass(n,"ag-group-item"),qe.addCssClass(n,"ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){var n=this.items[t];qe.addOrRemoveCssClass(n,"ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){qe.addCssClass(this.eTitleBar,e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(n){t.setEnabled(n,!0),e(n)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){qe.addOrRemoveCssClass(this.getGui(),"ag-disabled",!this.enabled),qe.addOrRemoveCssClass(this.eTitleBar,"ag-disabled-group-title-bar",this.suppressEnabledCheckbox&&!this.enabled),qe.addOrRemoveCssClass(this.eContainer,"ag-disabled-group-container",!this.enabled)},Aa([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Aa([Jt("eTitleBar")],t.prototype,"eTitleBar",void 0),Aa([Jt("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Aa([Jt("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Aa([Jt("eToolbar")],t.prototype,"eToolbar",void 0),Aa([Jt("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Aa([Jt("eTitle")],t.prototype,"eTitle",void 0),Aa([Jt("eContainer")],t.prototype,"eContainer",void 0),Aa([Ze],t.prototype,"postConstruct",null),t}($t),xa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},La=function(e){function t(n){var o=e.call(this,t.getTemplate(n))||this;return o.closable=!0,o.positioned=!1,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.size={width:void 0,height:void 0},o.config=n,o}return xa(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,o=t.closable,r=t.hideTitleBar,i=t.title,s=t.minWidth,a=t.width,l=t.minHeight,u=t.height,c=t.centered,p=t.x,d=t.y,h=this.getGui();n&&this.setBodyComponent(n),r?qe.addCssClass(this.eTitleBar,"ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addDestroyableEventListener(this.eTitleBar,"mousedown",(function(t){if(h.contains(t.relatedTarget)||h.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var n=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");n&&n.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=s?s:250,this.popupParent=this.popupService.getPopupParent(),a&&this.setWidth(a),u&&this.setHeight(u),this.renderComponent&&this.renderComponent(),a&&u||this.refreshSize(),c?this.center():(p||d)&&this.offsetElement(p,d),this.positioned=!0,this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=this.popupParent.getBoundingClientRect(),n=e.e,o=e.isLeft,r=e.isTop,i=e.anywhereWithin,s=e.topBuffer,a=n.clientX-this.dragStartPosition.x,l=n.clientY-this.dragStartPosition.y,u=this.getWidth(),c=this.getHeight(),p=t.left>=n.clientX&&this.position.x<=0||t.right<=n.clientX&&t.right<=this.position.x+t.left+u;return p||(p=o?a<0&&n.clientX>this.position.x+t.left||a>0&&n.clientX<this.position.x+t.left:i?a<0&&n.clientX>this.position.x+t.left+u||a>0&&n.clientX<this.position.x+t.left:a<0&&n.clientX>this.position.x+t.left+u||a>0&&n.clientX<this.position.x+t.left+u),{movementX:a=p?0:a,movementY:l=t.top>=n.clientY&&this.position.y<=0||t.bottom<=n.clientY&&t.bottom<=this.position.y+t.top+c||r&&(l<0&&n.clientY>this.position.y+t.top+(s||0)||l>0&&n.clientY<this.position.y+t.top)||!r&&(l<0&&n.clientY>this.position.y+t.top+c||l>0&&n.clientY<this.position.y+t.top+c)?0:l}},t.prototype.refreshSize=function(){var e=this.size,t=e.width,n=e.height;t||this.setWidth(this.getGui().offsetWidth),n||this.setHeight(this.getGui().offsetHeight)},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.getGui();this.popupService.positionPopup({ePopup:n,x:e,y:t,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(n.style.left,10),this.position.y=parseInt(n.style.top,10)},t.prototype.getHeight=function(){return this.size.height},t.prototype.setHeight=function(e){var t=this.getGui(),n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))qe.setFixedHeight(t,e),e=qe.getAbsoluteHeight(t),n=!0;else{e=Math.max(this.minHeight,e);var o=t.offsetParent;o&&o.clientHeight&&e+this.position.y>o.clientHeight&&(e=o.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,n?(t.style.maxHeight="unset",t.style.minHeight="unset"):qe.setFixedHeight(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))qe.setFixedWidth(t,e),e=qe.getAbsoluteWidth(t),n=!0;else{e=Math.max(this.minWidth,e);var o=t.offsetParent;o&&o.clientWidth&&e+this.position.x>o.clientWidth&&(e=o.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,n?(t.style.maxWidth="unset",t.style.minWidth="unset"):qe.setFixedWidth(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,n=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,n)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new $t(t.CLOSE_BTN_TEMPLATE);this.getContext().wireBean(n),(o=n.getGui()).appendChild(qe.addCssClass(qe.createIconNoSpan("close",this.gridOptionsWrapper),"ag-panel-title-bar-button-icon")),this.addTitleBarButton(n),n.addDestroyableEventListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var o;(o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp.destroy(),this.closeButtonComp=void 0}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,o=n.children,r=o.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r));var i=e.getGui();qe.addCssClass(i,"ag-panel-title-bar-button"),0===t?n.insertAdjacentElement("afterbegin",i):t===r?n.insertAdjacentElement("beforeend",i):o[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return qe.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return qe.getInnerWidth(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp.destroy(),this.closeButtonComp=void 0);var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Fa([nt("popupService")],t.prototype,"popupService",void 0),Fa([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fa([Jt("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Fa([Jt("eTitleBar")],t.prototype,"eTitleBar",void 0),Fa([Jt("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Fa([Jt("eTitle")],t.prototype,"eTitle",void 0),Fa([Ze],t.prototype,"postConstruct",null),t}($t),Ma=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ka=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ga=function(e){function t(t){var n=e.call(this,t)||this;return n.RESIZE_TEMPLATE='\n <div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>\n ',n.MAXIMIZE_BTN_TEMPLATE='<div class="ag-dialog-button"></span>',n.resizable={},n.movable=!1,n.isMoving=!1,n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.isResizing=!1,n.lastPosition={x:0,y:0,width:0,height:0},n}return Ma(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,s=o.maximizable;qe.addCssClass(n,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addDestroyableEventListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),this.addResizers(),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,o=t.modal;this.close=this.popupService.addPopup(o,e,!0,this.destroy.bind(this),void 0,n),e.focus()},t.prototype.addResizers=function(){var e=this.getGui();if(e){var t=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;e.appendChild(t.firstChild),this.createMap()}},t.prototype.createMap=function(){var e=this.getGui();this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e){this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onResize=function(e,t){if(this.isResizing){var n=!!t.match(/left/i),o=!!t.match(/right/i),r=!!t.match(/top/i),i=!!t.match(/bottom/i),s=n||o,a=r||i,l=this.calculateMouseMovement({e:e,isLeft:n,isTop:r}),u=l.movementX,c=l.movementY,p=0,d=0;if(s&&u){var h=n?-1:1,f=this.getWidth(),g=f+u*h,v=!1;n&&(p=f-g,(this.position.x+p<=0||g<=this.minWidth)&&(v=!0,p=0)),v||this.setWidth(g)}if(a&&c){h=r?-1:1;var m=this.getHeight(),y=m+c*h,C=!1;r&&(d=m-y,(this.position.y+d<=0||y<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),(p||d)&&this.offsetElement(this.position.x+p,this.position.y+d)}},t.prototype.onResizeEnd=function(){this.isResizing=!1;var e={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.dispatchEvent(e)},t.prototype.onMoveStart=function(e){this.isMoving=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t=this.position,n=t.x,o=t.y,r=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),i=r.movementX,s=r.movementY;this.offsetElement(n+i,o+s),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1},t.prototype.toggleMaximize=function(){if(this.isMaximized){var e=this.lastPosition,t=e.x,n=e.y,o=e.width,r=e.height;this.setWidth(o),this.setHeight(r),this.offsetElement(t,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){qe.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),qe.addOrRemoveCssClass(this.minimizeIcon,"ag-hidden",!this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=void 0),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){var t=this;"boolean"==typeof e&&(e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}),Object.keys(e).forEach((function(n){var o=n,r=!!e[o],i=t.getResizerElement(o),s=t.resizerMap[o].dragSource||{eElement:i,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,o)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[o]===r&&(t.isAlive()||r)||(r?(t.dragService.addDragSource(s),i.style.pointerEvents="all"):(t.dragService.removeDragSource(s),i.style.pointerEvents="none"),t.resizerMap[o].dragSource=r?s:void 0)}))},t.prototype.setMovable=function(e){if(e!==this.movable){this.movable=e;var t=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}},t.prototype.setMaximizable=function(e){var t=this;if(!1===e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var o=this.maximizeButtonComp=new $t(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().wireBean(o);var r=o.getGui();r.appendChild(this.maximizeIcon=qe.createIconNoSpan("maximize",this.gridOptionsWrapper)),qe.addCssClass(this.maximizeIcon,"ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=qe.createIconNoSpan("minimize",this.gridOptionsWrapper)),qe.addCssClass(this.minimizeIcon,"ag-panel-title-bar-button-icon"),qe.addCssClass(this.minimizeIcon,"ag-hidden"),o.addDestroyableEventListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addDestroyableEventListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addDestroyableEventListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},ka([nt("dragService")],t.prototype,"dragService",void 0),t}(La),Va=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ja=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-field",n.displayTag="input",n.inputType="text",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return Va(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=t),o},t}(Gn),Wa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ha=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-area",n.displayTag="textarea",n.inputType="",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return Wa(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Gn),Ba=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),za=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ua=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.labelAlignment="top",n}return Ba(t,e),t.prototype.init=function(){qe.addCssClass(this.eSlider.getGui(),"ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Ln.EVENT_CHANGED;return this.addDestroyableEventListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addDestroyableEventListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Ln.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',za([Jt("eLabel")],t.prototype,"eLabel",void 0),za([Jt("eSlider")],t.prototype,"eSlider",void 0),za([Jt("eText")],t.prototype,"eText",void 0),za([Ze],t.prototype,"init",null),t}(xn),qa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ya=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ka=function(e){function t(n){var o=e.call(this,t.TEMPLATE)||this;return o.H=1,o.S=1,o.B=1,o.A=1,o.isSpectrumDragging=!1,o.isSpectrumHueDragging=!1,o.isSpectrumAlphaDragging=!1,o.colorChanged=!1,o.picker=n.picker,o}return qa(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addDestroyableEventListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addDestroyableEventListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addDestroyableEventListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addDestroyableEventListener(document,"mouseup",this.onMouseUp.bind(this)),this.addDestroyableEventListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,o=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),o=Math.max(o,0),o=Math.min(o,t.height),this.setSpectrumValue(n/t.width,1-o/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.update=function(){var e=n.fromHSB(360*this.H,this.S,this.B,this.A),t=n.fromHSB(360*this.H,1,1),o=e.toRgbaString(),r=this.picker;n.fromString(r.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),r.setValue(o),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var o=this.spectrumDragger,r=o.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,o.style.left=e*n.width-r.width/2+"px",o.style.top=(1-t)*n.height-r.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=n.fromString(e),o=t.toHSB(),r=o[0],i=o[1],s=o[2];this.H=(isNaN(r)?0:r)/360,this.A=t.a;var a=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-a.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(i,s)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(qe.exists(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=n.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=t.recentColors;this.colorChanged&&o[0]!==e&&(o=o.filter((function(t){return t!=e})),(o=[e].concat(o)).length>t.maxRecentColors&&(o=o.slice(0,t.maxRecentColors)),t.recentColors=o)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',Ya([Jt("spectrumColor")],t.prototype,"spectrumColor",void 0),Ya([Jt("spectrumVal")],t.prototype,"spectrumVal",void 0),Ya([Jt("spectrumDragger")],t.prototype,"spectrumDragger",void 0),Ya([Jt("spectrumHue")],t.prototype,"spectrumHue",void 0),Ya([Jt("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),Ya([Jt("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),Ya([Jt("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),Ya([Jt("recentColors")],t.prototype,"recentColors",void 0),Ya([Ze],t.prototype,"postConstruct",null),t}($t),$a=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qa=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Xa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TEMPLATE='<div class="ag-picker-field" role="presentation">\n <label ref="eLabel"></label>\n <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper" tabIndex="-1">\n <%displayField% ref="eDisplayField" class="ag-picker-field-display"></%displayField%>\n <div ref="eIcon" class="ag-picker-field-icon"></div>\n </div>\n </div>',t.isDestroyingPicker=!1,t.skipClick=!1,t}return $a(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},o=this.getGui();this.addDestroyableEventListener(o,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&qe.isVisible(t.pickerComponent.getGui())&&o.contains(e.target)&&(t.skipClick=!0)})),this.addDestroyableEventListener(o,"keydown",(function(e){switch(e.keyCode){case ke.KEY_UP:case ke.KEY_DOWN:case ke.KEY_ENTER:case ke.KEY_SPACE:n();case ke.KEY_ESCAPE:e.preventDefault()}})),this.addDestroyableEventListener(this.eWrapper,"click",n),this.addDestroyableEventListener(this.eLabel,"click",n),this.pickerIcon&&this.eIcon.appendChild(qe.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return qe.setElementWidth(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Qa([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Qa([Jt("eLabel")],t.prototype,"eLabel",void 0),Qa([Jt("eWrapper")],t.prototype,"eWrapper",void 0),Qa([Jt("eDisplayField")],t.prototype,"eDisplayField",void 0),Qa([Jt("eIcon")],t.prototype,"eIcon",void 0),t}(Ln),Ja=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Za=function(e){function t(t){var n=e.call(this)||this;return n.displayTag="div",n.className="ag-color-picker",n.pickerIcon="colorPicker",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&t.color&&(n.value=t.color),n}return Ja(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),n=new Ga({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.getContext().wireBean(n),qe.addCssClass(n.getGui(),"ag-color-dialog");var o=new Ka({picker:this});return this.getContext().wireBean(o),o.addDestroyFunc((function(){n.isAlive()&&n.destroy()})),n.setParentComponent(this),n.setBodyComponent(o),o.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,o.isAlive()&&o.destroy()),e.isAlive()&&e.getFocusableElement().focus()})),n},t.prototype.setValue=function(e){return this.value===e||(this.value=e,this.eDisplayField.style.backgroundColor=e,this.dispatchEvent({type:Ln.EVENT_CHANGED})),this},t.prototype.getValue=function(){return this.value},t}(Xa),el=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return el(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)}))},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,null!=this.min?this.eInput.setAttribute("min",e.toString()):this.eInput.removeAttribute("min")),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,null!=this.max?this.eInput.setAttribute("max",e.toString()):this.eInput.removeAttribute("max")),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,null!=e?this.eInput.setAttribute("step",e.toString()):this.eInput.removeAttribute("step")),this},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(ja),nl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ol=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-range-field",n.displayTag="input",n.inputType="range",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return nl(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,o=t.max,r=t.step;null!=n&&this.setMinValue(n),null!=o&&this.setMaxValue(o),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this,t=qe.isBrowserIE()?"change":"input";this.addDestroyableEventListener(this.eInput,t,(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.step=e,this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t}(Gn),rl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),il=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},sl=function(e){function t(n){void 0===n&&(n="default");var o=e.call(this,t.getTemplate(n))||this;return o.cssIdentifier=n,o.options=[],o.itemEls=[],o}return rl(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.getTemplate=function(e){return'<div class="ag-list ag-'+e+'-list"></div>'},t.prototype.handleKeyDown=function(e){var t=e.keyCode;switch(t){case ke.KEY_ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case ke.KEY_DOWN:case ke.KEY_UP:var o=t===ke.KEY_DOWN,r=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(o?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[o?0:this.itemEls.length-1];this.highlightItem(r)}},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=e.value,n=e.text,o=qe.escape(void 0===n?t:n);return this.options.push({value:t,text:o}),this.renderOption(o),this},t.prototype.renderOption=function(e){var t=this,n=document.createElement("div"),o=document.createElement("span");qe.addCssClass(n,"ag-list-item"),qe.addCssClass(n,"ag-"+this.cssIdentifier+"-list-item"),n.tabIndex=-1,o.innerHTML=e,this.itemEls.push(n),this.addDestroyableEventListener(n,"mouseover",(function(e){return t.highlightItem(n)})),this.addDestroyableEventListener(n,"mouseleave",(function(){return t.clearHighlighted()})),this.addDestroyableEventListener(n,"click",(function(){var e=t.itemEls.indexOf(n);t.setValueByIndex(e)})),n.appendChild(o),this.getGui().appendChild(n)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=qe.findIndex(this.options,(function(t){return t.value===e}));if(-1!==n){var o=this.options[n];this.value=o.value,this.displayValue=null!=o.text?o.text:o.value,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=qe.findIndex(this.options,(function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(qe.radioCssClass(e,"ag-active-item"),this.highlightedEl=e,this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(qe.removeCssClass(this.highlightedEl,"ag-active-item"),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Ln.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",il([Ze],t.prototype,"init",null),t}($t),al=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ll=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ul=function(e){function t(t){var n=e.call(this)||this;return n.displayTag="div",n.className="ag-select",n.pickerIcon="smallDown",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),n}return al(t,e),t.prototype.init=function(){var e=this;this.listComponent=new sl("select"),this.getContext().wireBean(this.listComponent),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addDestroyableEventListener(this.listComponent,sl.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addDestroyableEventListener(this.listComponent,Ln.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.addDestroyableEventListener(document.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),o=this.addDestroyableEventListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()}));return this.hideList=this.popupService.addPopup(!0,t,!0,(function(){e.hideList=null,o(),n(),e.isAlive()&&e.getFocusableElement().focus()})),qe.setElementWidth(t,qe.getAbsoluteWidth(this.eWrapper)),t.style.maxHeight=qe.getInnerHeight(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,n,o){if(this.value!==t&&(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()!==this.getValue()))return this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.listComponent.destroy(),e.prototype.destroy.call(this)},ll([nt("popupService")],t.prototype,"popupService",void 0),ll([Ze],t.prototype,"init",null),t}(Xa),cl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},dl=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}return cl(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),qe.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addDestroyableEventListener(this,Ln.EVENT_CHANGED,(function(){t.eAngleValue.getInputElement().contains(document.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,o=t.width/2,r=t.height/2;n.style.left=o+8*Math.cos(e)+"px",n.style.top=r+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,n=t.width/2,o=t.height/2,r=e.clientX-t.left-n,i=e.clientY-t.top-o,s=Math.atan2(i,r);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addDestroyableEventListener(this,Ln.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var n;return n=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(n),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Ln.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return qe.setFixedWidth(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',pl([Jt("eLabel")],t.prototype,"eLabel",void 0),pl([Jt("eParentCircle")],t.prototype,"eParentCircle",void 0),pl([Jt("eChildCircle")],t.prototype,"eChildCircle",void 0),pl([Jt("eAngleValue")],t.prototype,"eAngleValue",void 0),pl([nt("dragService")],t.prototype,"dragService",void 0),t}(xn),hl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t.inputType="checkbox",t}return hl(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),qe.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(Ts),gl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},vl=function(){function e(){this.cacheItems=[]}return e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(e,t,n){if(!this.active||!e.detail)this.destroyFullWidthRow(n);else{var o=this.getCacheItem(e,!0);switch(t){case ke.PINNED_LEFT:this.destroyFullWidthRow(o.left),o.left=n;break;case ke.PINNED_RIGHT:this.destroyFullWidthRow(o.right),o.right=n;break;default:this.destroyFullWidthRow(o.center),o.center=n}this.cacheItems.sort((function(e,t){return t.lastAccessedTime-e.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}},e.prototype.getCacheItem=function(e,t){var n;void 0===t&&(t=!1);for(var o=0;o<this.cacheItems.length;o++){var r=this.cacheItems[o];if(r.rowNode===e){n=r;break}}return!n&&t&&(n={rowNode:e},this.cacheItems.push(n)),n&&this.stampCacheItem(n),n},e.prototype.stampCacheItem=function(e){e.lastAccessedTime=(new Date).getTime()},e.prototype.destroyFullWidthRow=function(e){e&&e.destroy&&e.destroy()},e.prototype.purgeCache=function(e){for(var t=e;t<this.cacheItems.length;t++){var n=this.cacheItems[t];this.destroyFullWidthRow(n.center),this.destroyFullWidthRow(n.left),this.destroyFullWidthRow(n.right)}this.cacheItems.length>e&&(this.cacheItems.length=e)},e.prototype.get=function(e,t){if(e.detail){var n,o=this.getCacheItem(e);if(o)switch(t){case ke.PINNED_LEFT:o.left&&(n=o.left,o.left=void 0);break;case ke.PINNED_RIGHT:o.right&&(n=o.right,o.right=void 0);break;default:o.center&&(n=o.center,o.center=void 0)}return n}},e.prototype.destroy=function(){this.purgeCache(0)},gl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),gl([Ze],e.prototype,"postConstruct",null),gl([et],e.prototype,"destroy",null),e=gl([tt("detailRowCompCache")],e)}(),ml=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},yl=function(){function e(){}return e.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},e.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},e.prototype.before=function(e,t){switch(e.rowPinned){case ke.PINNED_TOP:if(t.rowPinned!==ke.PINNED_TOP)return!0;break;case ke.PINNED_BOTTOM:if(t.rowPinned!==ke.PINNED_BOTTOM)return!1;break;default:if(qe.exists(t.rowPinned))return t.rowPinned!==ke.PINNED_TOP}return e.rowIndex<t.rowIndex},ml([nt("rowModel")],e.prototype,"rowModel",void 0),ml([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),e=ml([tt("rowPositionUtils")],e)}(),Cl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},wl=function(){function e(){}return e.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,o=e.column;return this.createIdFromValues(t,o,n)},e.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},e.prototype.equals=function(e,t){var n=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return n&&o&&r},e=Cl([tt("cellPositionUtils")],e)}(),bl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},El=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===ke.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return qe.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var n=t===ke.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(qe.missingOrEmpty(n))return 0;for(var o=0;o<n.length;o++){var r=n[o];if(r.rowTop+r.rowHeight-1>=e)return o}return n.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:bt.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:bt.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var n=this,o=[];if(e){var r=0;e.forEach((function(e,i){var s=new In;n.context.wireBean(s),s.data=e,s.id=(t?"t":"b")+"-"+i,s.rowPinned=t?ke.PINNED_TOP:ke.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),r+=s.rowHeight,o.push(s)}))}return o},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){qe.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){qe.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=qe.last(e);return t.rowTop+t.rowHeight}return 0},bl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),bl([nt("eventService")],e.prototype,"eventService",void 0),bl([nt("context")],e.prototype,"context",void 0),bl([nt("columnApi")],e.prototype,"columnApi",void 0),bl([nt("gridApi")],e.prototype,"gridApi",void 0),bl([Ze],e.prototype,"init",null),e=bl([tt("pinnedRowModel")],e)}(),_l=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ol=function(e){this.cellValueChanges=e},Rl=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return _l(t,e),t}(Ol),Sl=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.DEFAULT_STACK_SIZE=10,e}(),Tl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dl=function(){function e(){var e=this;this.cellValueChanges=[],this.isCellEditing=!1,this.isRowEditing=!1,this.isPasting=!1,this.isFilling=!1,this.events=[],this.onCellValueChanged=function(t){if(e.isCellEditing||e.isRowEditing||e.isPasting||e.isFilling){var n=t.rowPinned,o=t.rowIndex,r=t.column,i=t.oldValue,s=t.value,a={rowPinned:n,rowIndex:o,columnId:r.getColId(),oldValue:i,newValue:s};e.cellValueChanges.push(a)}},this.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()}}return e.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new Sl(e),this.redoStack=new Sl(e),this.events=[].concat(this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),[this.eventService.addEventListener(bt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.eventService.addEventListener(bt.EVENT_MODEL_UPDATED,this.clearStacks),this.eventService.addEventListener(bt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.eventService.addEventListener(bt.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearStacks),this.eventService.addEventListener(bt.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.eventService.addEventListener(bt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.eventService.addEventListener(bt.EVENT_COLUMN_MOVED,this.clearStacks),this.eventService.addEventListener(bt.EVENT_COLUMN_PINNED,this.clearStacks),this.eventService.addEventListener(bt.EVENT_COLUMN_VISIBLE,this.clearStacks),this.eventService.addEventListener(bt.EVENT_ROW_DRAG_END,this.clearStacks)]))}},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Rl?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},e.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Rl?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},e.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach((function(e){var o=e.rowIndex,r=e.rowPinned,i=e.columnId,s={rowIndex:o,rowPinned:r},a=n.getRowNode(s);null!=a.rowTop&&a.setDataValue(i,t(e))}))},e.prototype.processRangeAndCellFocus=function(e,t){if(t){var n=t.startRow,o=t.endRow,r={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:t.startColumn.getColId()};this.setLastFocusedCell(r);var i={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:o.rowIndex,rowEndPinned:o.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var s=e[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a),u={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId};this.setLastFocusedCell(u)}},e.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,o=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(o),pt.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusController.setFocusedCell(n,o,r,!0)},e.prototype.addRowEditingListeners=function(){var e=this;return[this.eventService.addEventListener(bt.EVENT_ROW_EDITING_STARTED,(function(){e.isRowEditing=!0})),this.eventService.addEventListener(bt.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Ol(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isRowEditing=!1}))]},e.prototype.addCellEditingListeners=function(){var e=this;return[this.eventService.addEventListener(bt.EVENT_CELL_EDITING_STARTED,(function(){e.isCellEditing=!0})),this.eventService.addEventListener(bt.EVENT_CELL_EDITING_STOPPED,(function(){if(e.isCellEditing=!1,!e.isRowEditing&&!e.isPasting&&!e.isFilling){var t=new Ol(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))]},e.prototype.addPasteListeners=function(){var e=this;return[this.eventService.addEventListener(bt.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.eventService.addEventListener(bt.EVENT_PASTE_END,(function(){var t=new Ol(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))]},e.prototype.addFillListeners=function(){var e=this;return[this.eventService.addEventListener(bt.EVENT_FILL_START,(function(){e.isFilling=!0})),this.eventService.addEventListener(bt.EVENT_FILL_END,(function(t){var n=new Rl(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))]},e.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Tl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Tl([nt("focusController")],e.prototype,"focusController",void 0),Tl([nt("eventService")],e.prototype,"eventService",void 0),Tl([nt("gridApi")],e.prototype,"gridApi",void 0),Tl([nt("rowModel")],e.prototype,"rowModel",void 0),Tl([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Tl([Ze],e.prototype,"init",null),Tl([et],e.prototype,"destroy",null),e=Tl([tt("undoRedoService")],e)}(),Pl=function(){function e(e,n,o){if(e)if(n){var r=!!n.debug;this.gridOptions=n;var i=this.getRegisteredModules(o),s=this.createBeansList(i),a=this.createAgStackComponentsList(i),l=this.createProvidedBeans(e,o);if(s){var u={providedBeanInstances:l,beanClasses:s,components:a,debug:r};this.logger=new ns("ag-Grid",(function(){return n.debug}));var c=new ns("Context",(function(){return u.debug}));this.context=new Xe(u,c),this.registerModuleUserComponents(i);var p=new(o&&o.rootComponent||us);this.context.wireBean(p),this.setColumnsAndData(),this.dispatchGridReadyEvent(n);var d=pt.isRegistered(t.ModuleNames.EnterpriseCoreModule);this.logger.log("initialised successfully, enterprise = "+d)}}else console.error("ag-Grid: no gridOptions provided to the grid");else console.error("ag-Grid: no div element provided to the grid")}return e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=pt.getRegisteredModules(),o=[],r={};function i(e,t){!function(t){r[t.moduleName]||(r[t.moduleName]=!0,o.push(t),pt.register(t,e))}(t),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!pt.isPackageBased())),o},e.prototype.registerModuleUserComponents=function(e){var t=this.context.getBean("userComponentRegistry");this.extractModuleEntity(e,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(e){t.registerDefaultComponent(e.componentName,e.componentClass)}))},e.prototype.createProvidedBeans=function(e,t){var n=t?t.frameworkOverrides:null;qe.missing(n)&&(n=new Ds);var o={gridOptions:this.gridOptions,eGridDiv:e,$scope:t?t.$scope:null,$compile:t?t.$compile:null,quickFilterOnScope:t?t.quickFilterOnScope:null,globalEventListener:t?t.globalEventListener:null,frameworkOverrides:n};return t&&t.providedBeanInstances&&qe.assign(o,t.providedBeanInstances),o},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Wn},{componentName:"AgRadioButton",componentClass:Ts},{componentName:"AgToggleButton",componentClass:fl},{componentName:"AgInputTextField",componentClass:ja},{componentName:"AgInputTextArea",componentClass:Ha},{componentName:"AgInputNumberField",componentClass:tl},{componentName:"AgInputRange",componentClass:ol},{componentName:"AgSelect",componentClass:ul},{componentName:"AgSlider",componentClass:Ua},{componentName:"AgAngleSelect",componentClass:dl},{componentName:"AgColorPicker",componentClass:Za},{componentName:"AgGridComp",componentClass:Bi},{componentName:"AgHeaderRoot",componentClass:Ii},{componentName:"AgPagination",componentClass:Oa},{componentName:"AgOverlayWrapper",componentClass:Pa},{componentName:"AgGroupComponent",componentClass:Na},{componentName:"AgPanel",componentClass:La},{componentName:"AgDialog",componentClass:Ga}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e){var t=this.getRowModelClass(e);if(t){var n=[t,ia,yl,wl,Us,Ui,ur,ta,oa,Sa,lo,ma,ba,_s,ss,El,hs,Pt,ct,Vt,Ji,hr,Ni,Rt,Hs,Yr,Ki,wt,Qi,Zs,fa,Ys,Fi,ts,Tt,rs,ps,br,gr,ms,Cs,ca,bs,Rs,Ns,Is,gs,Ls,ks,Ca,Vs,Qs,da,vl,Dl],o=this.extractModuleEntity(e,(function(e){return e.beans?e.beans:[]}));n.push.apply(n,o);var r=[];return n.forEach((function(e){r.indexOf(e)<0&&r.push(e)})),r}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),n=e.getColumnDefs();qe.exists(n)&&t.setColumnDefs(n,"gridInitializing"),this.context.getBean("rowModel").start()},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),n={type:bt.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(n)},e.prototype.getRowModelClass=function(e){var n=this.gridOptions.rowModelType;"enterprise"===n&&(console.warn("ag-Grid: enterprise rowModel deprecated. Should now be called server side row model instead."),n=ke.ROW_MODEL_TYPE_SERVER_SIDE),"normal"===n&&(console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),n=ke.ROW_MODEL_TYPE_CLIENT_SIDE),n||(n=ke.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};e.forEach((function(e){qe.iterateObject(e.rowModels,(function(e,t){o[e]=t}))}));var r=o[n];return qe.exists(r)?r:(n===ke.ROW_MODEL_TYPE_INFINITE&&console.error('ag-Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" is registered.';"),console.error("ag-Grid: could not find matching row model for rowModelType "+n),n===ke.ROW_MODEL_TYPE_VIEWPORT&&console.error('ag-Grid: Row Model "Viewport" not found. Please ensure the ag-Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" is registered.';"),n===ke.ROW_MODEL_TYPE_SERVER_SIDE&&console.error('ag-Grid: Row Model "Server Side" not found. Please ensure the ag-Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" is registered.';"),void(n===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error('ag-Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" is registered.';")))},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e}();
297
- /**
298
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
299
- * @version v23.1.1
300
- * @link http://www.ag-grid.com/
301
- * @license MIT
302
- */function Il(e,t,n,o){var r,i,s=o.agGrid;if(i=s+".quickFilterText",r=t.$eval(s)){var a=e[0],l=new Pl(a,r,{$scope:t,$compile:n,quickFilterOnScope:i});t.$on("$destroy",(function(){l.destroy(),l=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}
303
- /**
304
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
305
- * @version v23.1.1
306
- * @link http://www.ag-grid.com/
307
- * @license MIT
308
- */var Al=!1;
309
- /**
310
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
311
- * @version v23.1.1
312
- * @link http://www.ag-grid.com/
313
- * @license MIT
314
- */
315
- var Nl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Fl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nl(t,e),t.prototype.onTabKeyDown=function(e){e.preventDefault()},t.prototype.attachListenersToGui=function(){var e=this,t=this.getGui();t&&(this.tabListener&&(this.tabListener=this.tabListener()),this.tabListener=this.addDestroyableEventListener(t,"keydown",(function(t){t.keyCode===ke.KEY_TAB&&e.onTabKeyDown(t)})))},xl([Ze],t.prototype,"attachListenersToGui",null),t}($t),Ll=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ml=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},kl=function(e){function t(n){var o=e.call(this,t.getTemplate(n.cssClass))||this;return o.items=[],o.params=n,n.items&&n.items.forEach((function(e){return o.addItem(e)})),o}return Ll(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case ke.KEY_RIGHT:case ke.KEY_LEFT:if(!this.eHeader.contains(document.activeElement))return;var t=this.items.indexOf(this.activeItem),n=e.keyCode===ke.KEY_RIGHT?Math.min(t+1,this.items.length-1):Math.max(t-1,0);if(t===n)return;e.preventDefault();var o=this.items[n];this.showItemWrapper(o),o.eHeaderButton.focus();break;case ke.KEY_UP:case ke.KEY_DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(t){e.prototype.onTabKeyDown.call(this,t);var n=this.focusController.findFocusableElements(this.eBody,".ag-set-filter-list *, .ag-menu-list *"),o=document.activeElement;if(this.eHeader.contains(o))n.length&&n[t.shiftKey?n.length-1:0].focus();else{var r=n.indexOf(o),i=t.shiftKey?r-1:r+1;if(i<0||i>=n.length)return void this.activeItem.eHeaderButton.focus();var s=n[i];s&&s.focus()}},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.getMinDimensions=function(){var e=this.getGui().cloneNode(!0),t=e.querySelector('[ref="eBody"]');e.style.position="fixed",this.getGui().appendChild(e);var n=0,o=0;return this.items.forEach((function(r){qe.clearElement(t);var i=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=i&&(t.appendChild(i),n<e.offsetWidth&&(n=e.offsetWidth),o<e.offsetHeight&&(o=e.offsetHeight))})),this.getGui().removeChild(e),{height:o,width:n}},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");t.tabIndex=-1,t.appendChild(e.title),qe.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=qe.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(qe.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e),e.focus()})),this.activeItem&&qe.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),qe.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):qe.callIfPresent(this.params.onActiveItemClicked)},Ml([nt("focusController")],t.prototype,"focusController",void 0),Ml([Jt("eHeader")],t.prototype,"eHeader",void 0),Ml([Jt("eBody")],t.prototype,"eBody",void 0),Ml([Ze],t.prototype,"init",null),t}(Fl);
316
- /**
317
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
318
- * @version v23.1.1
319
- * @link http://www.ag-grid.com/
320
- * @license MIT
321
- */
322
- var Gl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vl=function(e){function t(n,o){var r=e.call(this)||this;return r.version=0,r.state=t.STATE_DIRTY,r.rowNodeCacheParams=o,r.blockNumber=n,r.startRow=n*o.blockSize,r.endRow=r.startRow+o.blockSize,r}return Gl(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var n=this.startRow;n<this.endRow;n++){if(n<t)e(this.getRowUsingLocalIndex(n),n)}},t.prototype.forEachNode=function(e,t,n,o){this.forEachNodeCallback((function(n){e(n,t.next()),o&&n.childrenCache&&n.childrenCache.forEachNodeDeep(e,t)}),n)},t.prototype.forEachNodeDeep=function(e,t,n){this.forEachNode(e,t,n,!0)},t.prototype.forEachNodeShallow=function(e,t,n){this.forEachNode(e,t,n,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var n=e-this.startRow;this.rowNodes[n]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,n=this.createBlankRowNode(e);return this.rowNodes[t]=n,n},t.prototype.setNewData=function(e,t){var n=this.setBlankRowNode(e);return this.setDataAndId(n,t,this.startRow+e),n},t.prototype.createBlankRowNode=function(e){var t=new In;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,n=this.createBlankRowNode(t);this.rowNodes.push(n)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,n=[];this.rowNodes.forEach((function(o,r){var i=e[r];o.stub&&n.push(o),t.setDataAndId(o,i,t.startRow+r)})),n.length>0&&this.beans.rowRenderer.redrawRows(n)},t.prototype.destroy=function(){this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()})),e.prototype.destroy.call(this)},t.prototype.pageLoaded=function(e,n,o){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(n)),o=qe.cleanNumber(o);var r={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:o};this.dispatchEvent(r)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Ut),jl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wl=function(e,t){return function(n,o){t(n,o,e)}},Hl=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=qe.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){qe.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===Vl.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getNodeIdPrefix(),o={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};qe.exists(n)?e[n+t.getBlockNumber()]=o:e[t.getBlockNumber()]=o})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},jl([Wl(0,it("loggerFactory"))],e.prototype,"setBeans",null),e}(),Bl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Ul=function(e){function t(t){var n=e.call(this)||this;return n.maxRowFound=!1,n.blocks={},n.blockCount=0,n.virtualRowCount=t.initialRowCount,n.cacheParams=t,n}return Bl(t,e),t.prototype.destroy=function(){var t=this;this.forEachBlockInOrder((function(e){return t.destroyBlock(e)})),e.prototype.destroy.call(this)},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,o=[];this.forEachBlockInOrder((function(t){t!==e&&o.push(t)})),o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,i=r?this.cacheParams.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===Vl.STATE_DIRTY&&t>=s||!!r&&t>=i){if(e.isAnyNodeOpen(n.virtualRowCount))return;if(n.isBlockCurrentlyDisplayed(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=this.rowRenderer.getFirstVirtualRenderedRow(),n=this.rowRenderer.getLastVirtualRenderedRow(),o=e.getDisplayIndexStart(),r=e.getDisplayIndexEnd()-1;return null!=o&&null!=r&&(!(o>n)&&!(r<t))},t.prototype.postCreateBlock=function(e){e.addEventListener(Vl.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var n=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<n?(this.virtualRowCount=n,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,qe.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var n=this;void 0===t&&(t=new Ye),this.forEachBlockInOrder((function(o){o.forEachNodeDeep(e,t,n.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var n=this;e.forEach((function(e){var o=n.blocks[e];t(o,e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.forEachBlockInOrder((function(n,o){o*e.cacheParams.blockSize>=e.virtualRowCount&&t.push(n)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),this.maxRowFound=!1,0===this.virtualRowCount&&(this.virtualRowCount=this.cacheParams.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,o=[],r=-1,i=!1,s=new Ye;qe.missing(e)&&(i=!0);var a=!1;return this.forEachBlockInOrder((function(l,u){a||(i&&r+1!==u?a=!0:(r=u,l.forEachNodeShallow((function(n){var r=n===e||n===t;(i||r)&&o.push(n),r&&(i=!i)}),s,n.virtualRowCount)))})),a||i?[]:o},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,zl([nt("eventService")],t.prototype,"eventService",void 0),zl([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),zl([Ze],t.prototype,"init",null),t}(Ut),ql=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yl=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Kl=function(e){function t(n){void 0===n&&(n="default");var o=e.call(this,t.getTemplate(n))||this;return o.cssIdentifier=n,o.rowsInBodyContainer={},o.rowHeight=20,o}return ql(t,e),t.prototype.init=function(){this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener(),this.rowHeight=this.getItemHeight()},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container"></div>\n </div>'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,o=n+this.rowHeight,r=this.getGui(),i=r.scrollTop,s=r.offsetHeight,a=i+s<o;if(i>n)r.scrollTop=n;else if(a){var l=o-s;r.scrollTop=l}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){qe.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},t.prototype.clearVirtualRows=function(){var e=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(e)},t.prototype.drawVirtualRows=function(){var e=this.getGui().scrollTop,t=e+this.getGui().offsetHeight,n=Math.floor(e/this.rowHeight),o=Math.floor(t/this.rowHeight);this.ensureRowsRendered(n,o)},t.prototype.ensureRowsRendered=function(e,t){for(var n=Object.keys(this.rowsInBodyContainer),o=e;o<=t;o++)if(n.indexOf(o.toString())>=0)n.splice(n.indexOf(o.toString()),1);else if(this.model.getRowCount()>o){var r=this.model.getRow(o);this.insertRow(r,o)}this.removeVirtualRows(n)},t.prototype.removeVirtualRows=function(e){var t=this;e.forEach((function(e){var n=t.rowsInBodyContainer[e];t.eListContainer.removeChild(n.eDiv),n.rowComponent.destroy&&n.rowComponent.destroy(),delete t.rowsInBodyContainer[e]}))},t.prototype.insertRow=function(e,t){var n=document.createElement("div");qe.addCssClass(n,"ag-virtual-list-item"),qe.addCssClass(n,"ag-"+this.cssIdentifier+"-virtual-list-item"),n.style.height=this.rowHeight+"px",n.style.top=this.rowHeight*t+"px";var o=this.componentCreator(e);n.appendChild(o.getGui()),this.eListContainer.appendChild(n),this.rowsInBodyContainer[t]={rowComponent:o,eDiv:n}},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},Yl([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Yl([Ze],t.prototype,"init",null),t}($t);
323
- /**
324
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
325
- * @version v23.1.1
326
- * @link http://www.ag-grid.com/
327
- * @license MIT
328
- */
329
- var $l,Ql,Xl=function(){function e(){}return e.prototype.wrap=function(e,t,n,o,r){var i=this;void 0===n&&(n=[]);var s=this.createWrapper(e,o,r);return t.forEach((function(e){i.createMethod(s,e,!0)})),n.forEach((function(e){i.createMethod(s,e,!1)})),s},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();
330
- /**
331
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
332
- * @version v23.1.1
333
- * @link http://www.ag-grid.com/
334
- * @license MIT
335
- */($l=t.ChartType||(t.ChartType={})).GroupedColumn="groupedColumn",$l.StackedColumn="stackedColumn",$l.NormalizedColumn="normalizedColumn",$l.GroupedBar="groupedBar",$l.StackedBar="stackedBar",$l.NormalizedBar="normalizedBar",$l.Line="line",$l.Scatter="scatter",$l.Bubble="bubble",$l.Pie="pie",$l.Doughnut="doughnut",$l.Area="area",$l.StackedArea="stackedArea",$l.NormalizedArea="normalizedArea",$l.Histogram="histogram",(Ql=t.LegendPosition||(t.LegendPosition={})).Top="top",Ql.Right="right",Ql.Bottom="bottom",Ql.Left="left";
336
- /**
337
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
338
- * @version v23.1.1
339
- * @link http://www.ag-grid.com/
340
- * @license MIT
341
- */
342
- var Jl=void 0===e?{}:e;Jl.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Jl.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Jl.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Jl.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Jl.Node="undefined"==typeof Node?{}:Node,Jl.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var Zl,eu=function(){function e(t,n,o,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.context=o,this.eventService=r,this.columnController=i,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=qe.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.getNodeChildDetails&&console.warn("ag-Grid: the callback nodeChildDetailsFunc() is now deprecated. The new way of doing\n tree data in ag-Grid was introduced in v14 (released November 2017). In the next\n major release of ag-Grid we will be dropping support for the old version of\n tree data. If you are reading this message, please go to the docs to see how\n to implement Tree Data without using nodeChildDetailsFunc().")},e.prototype.getCopyOfNodesMap=function(){return qe.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var n=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=n,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=n},e.prototype.updateRowData=function(e,t){if(this.isLegacyTreeData())return null;var n={remove:[],update:[],add:[]};return this.executeAdd(e,n),this.executeRemove(e,n),this.executeUpdate(e,n),t&&qe.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.executeAdd=function(e,t){var n=this,o=e.add,r=e.addIndex;o&&("number"==typeof r&&r>=0?o.reverse().forEach((function(e){var o=n.addRowNode(e,r);t.add.push(o)})):o.forEach((function(e){var o=n.addRowNode(e);t.add.push(o)})))},e.prototype.executeRemove=function(e,t){var n=this,o=e.remove;if(o){var r={},i=!1;if(o.forEach((function(e){var o=n.lookupRowNode(e);o&&(o.isSelected()&&(i=!0),o.setSelected(!1,!1,!0),o.clearRowTop(),r[o.id]=!0,delete n.allNodesMap[o.id],t.remove.push(o))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!r[e.id]})),i){this.selectionController.updateGroupsFromChildrenSelections();var s={type:bt.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}}},e.prototype.executeUpdate=function(e,t){var n=this,o=e.update;o&&o.forEach((function(e){var o=n.lookupRowNode(e);o&&(o.updateData(e),t.update.push(o))}))},e.prototype.addRowNode=function(t,n){var o=this.createNode(t,this.rootNode,e.TOP_LEVEL);return qe.exists(n)?qe.insertIntoArray(this.rootNode.allLeafChildren,o,n):this.rootNode.allLeafChildren.push(o),o},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowNodeIdFunc();if(qe.exists(n)){var o=n(e);if(!(t=this.allNodesMap[o]))return console.error("ag-Grid: could not find row id="+o+", data item was not found for this id"),null}else if(!(t=qe.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.recursiveFunction=function(e,t,n){var o=this;if("string"!=typeof e){var r=[];return e.forEach((function(e){var i=o.createNode(e,t,n);r.push(i)})),r}console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.createNode=function(e,t,n){var o=new In;this.context.wireBean(o);var r=this.gridOptionsWrapper.isTreeData(),i=!r&&qe.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(i&&i.group)o.group=!0,o.childrenAfterGroup=this.recursiveFunction(i.children,o,n+1),o.expanded=!0===i.expanded,o.field=i.field,o.key=i.key,o.canFlower=o.master,this.setLeafChildren(o);else if(o.group=!1,r)o.master=!1,o.expanded=!1;else{this.doesDataFlower?o.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?o.master=this.isRowMasterFunc(e):o.master=!0:o.master=!1;var s=this.columnController.getRowGroupColumns(),a=n+(s?s.length:0);o.expanded=!!o.master&&this.isExpanded(a)}return o.canFlower=o.master,t&&!this.suppressParentsInRowNodes&&(o.parent=t),o.level=n,o.setDataAndId(e,this.nextId.toString()),this.allNodesMap[o.id]&&console.warn("ag-grid: duplicate node id '"+o.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!qe.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),tu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(Zl||(Zl={}));var nu,ou=function(){function e(){this.events=[]}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:ke.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:ke.STEP_EVERYTHING,afterColumnsChanged:!0});this.events=[this.eventService.addModalPriorityEventListener(bt.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(bt.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(bt.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(bt.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:ke.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(bt.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(bt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(bt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(bt.EVENT_COLUMN_PIVOT_MODE_CHANGED,e)],this.refreshMapFunc=this.refreshModel.bind(this,{step:ke.STEP_MAP,keepRenderedRows:!0,animate:!0}),this.gridOptionsWrapper.addEventListener(Vt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshMapFunc),this.gridOptionsWrapper.addEventListener(Vt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,this.refreshMapFunc),this.rootNode=new In,this.nodeManager=new eu(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[]),this.gridOptionsWrapper.removeEventListener(Vt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshMapFunc),this.gridOptionsWrapper.removeEventListener(Vt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,this.refreshMapFunc)},e.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},e.prototype.ensureRowHeightsValid=function(e,t,n,o){var r,i=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,o),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(p);p.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTops()}while(r);return i},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var n=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,o=this.rowsToDisplay[t];if(qe.missing(o.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(o,n);o.setRowHeight(r.height,r.estimated)}o.setRowTop(e),o.setRowIndex(t),e+=o.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup)if(!(t.isActive()&&!e.expanded))for(var n=0;n<e.childrenAfterGroup.length;n++)this.resetRowTops(e.childrenAfterGroup[n],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowsAtPixel=function(e,t,n){var o=this;void 0===n&&(n=0);var r=this.getRowIndexAtPixel(t);return this.getRow(r)!==e[0]&&(e.forEach((function(e){qe.removeFromArray(o.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){qe.insertIntoArray(o.rootNode.allLeafChildren,e,r+n+t)})),this.refreshModel({step:ke.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,o=null!=n?this.getRow(n):null;if(o&&e&&o!==e&&null!=t){var r=this.getHighlightPosition(t,o);this.lastHighlightedRow&&this.lastHighlightedRow!==o&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),o.setHighlighted(r),this.lastHighlightedRow=o}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},e.prototype.getHighlightPosition=function(e,t){if(!t){var n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return"below"}return e-t.rowTop<t.rowHeight/2?"above":"below"},e.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){return this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},e.prototype.getRowBounds=function(e){if(qe.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_FILTER,keepRenderedRows:!0,animate:t})}},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return ke.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:ke.STEP_PIVOT}):this.refreshModel({step:ke.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=qe.missingOrEmpty(e),n=new cr(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},e.prototype.refreshModel=function(e){var t=this,n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case ke.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,e.afterColumnsChanged);case ke.STEP_FILTER:this.doFilter(n);case ke.STEP_PIVOT:this.doPivot(n);case ke.STEP_AGGREGATE:this.doAggregate(n);case ke.STEP_SORT:this.doSort(e.rowNodeTransactions,n);case ke.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,n),this.setRowTops();var o={type:bt.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(o),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=qe.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?qe.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:qe.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,qe.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return qe.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var n,o=!t,r=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=o&&!r;if(o||a!==t&&a!==e||(o=!0),!(a.group&&s)){var u=o&&!r,c=a.isParentOfNode(n);(u||c)&&i.push(a)}l&&(a!==t&&a!==e||(r=!0,n=a===t?t:e))})),i},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(qe.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var o=Math.floor((t+n)/2),r=this.rowsToDisplay[o];if(this.isRowInPixel(r,e))return o;r.rowTop<e?t=o+1:r.rowTop>e&&(n=o-1)}},e.prototype.isRowInPixel=function(e,t){var n=e.rowTop,o=e.rowTop+e.rowHeight;return n<=t&&o>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=qe.last(this.rowsToDisplay);return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,Zl.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,Zl.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Zl.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Zl.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,o){if(!e)return o;for(var r=0;r<e.length;r++){var i=e[r];if(t(i,o++),i.hasChildren()){var s=null;switch(n){case Zl.Normal:s=i.childrenAfterGroup;break;case Zl.AfterFilter:s=i.childrenAfterFilter;break;case Zl.AfterFilterAndSort:s=i.childrenAfterSort;break;case Zl.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(o=this.recursivelyWalkNodesAndCallback(s,t,n,o))}}return o},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function n(o){if(!o)return;o.forEach((function(o){(t?qe.exists(o.childrenAfterGroup):o.group)&&(o.expanded=e,n(o.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:ke.STEP_MAP});var n=e?"expandAll":"collapseAll",o={api:this.gridApi,columnApi:this.columnApi,type:bt.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(o)},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,n,o,r){if(!qe.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))if(this.groupStage){if(t){var i={add:[],remove:[],update:[]};t.forEach((function(e){qe.pushAll(i.add,e.add),qe.pushAll(i.remove,e.remove),qe.pushAll(i.update,e.update)})),this.groupStage.execute({rowNode:this.rootNode,rowNodeTransaction:i,rowNodeOrder:n,changedPath:o})}else this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:o,afterColumnsChanged:r}),this.restoreGroupState(e);this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(o)}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren},e.prototype.restoreGroupState=function(e){e&&qe.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"==typeof e[n]&&(t.expanded=e[n])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return qe.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var n={type:bt.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n),this.refreshModel({step:ke.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var n=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var o=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();window.setTimeout((function(){n.executeBatchUpdateRowData(),n.rowDataTransactionBatch=null}),o)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(o){var r=e.nodeManager.updateRowData(o.rowDataTransaction,null);n.push(r),o.callback&&t.push(o.callback.bind(null,r))})),this.commonUpdateRowData(n),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([n],t),n},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:ke.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var n={type:bt.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:ke.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},tu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),tu([nt("columnController")],e.prototype,"columnController",void 0),tu([nt("filterManager")],e.prototype,"filterManager",void 0),tu([nt("$scope")],e.prototype,"$scope",void 0),tu([nt("selectionController")],e.prototype,"selectionController",void 0),tu([nt("eventService")],e.prototype,"eventService",void 0),tu([nt("context")],e.prototype,"context",void 0),tu([nt("valueService")],e.prototype,"valueService",void 0),tu([nt("valueCache")],e.prototype,"valueCache",void 0),tu([nt("columnApi")],e.prototype,"columnApi",void 0),tu([nt("gridApi")],e.prototype,"gridApi",void 0),tu([nt("filterStage")],e.prototype,"filterStage",void 0),tu([nt("sortStage")],e.prototype,"sortStage",void 0),tu([nt("flattenStage")],e.prototype,"flattenStage",void 0),tu([ot("groupStage")],e.prototype,"groupStage",void 0),tu([ot("aggregationStage")],e.prototype,"aggregationStage",void 0),tu([ot("pivotStage")],e.prototype,"pivotStage",void 0),tu([Ze],e.prototype,"init",null),tu([et],e.prototype,"destroy",null),e=tu([tt("rowModel")],e)}(),ru=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},iu=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,n=e.changedPath;this.filterService.filter(n),this.selectableService.updateSelectableAfterFiltering(t)},ru([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ru([nt("selectableService")],e.prototype,"selectableService",void 0),ru([nt("filterService")],e.prototype,"filterService",void 0),e=ru([tt("filterStage")],e)}(),su=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},au=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),n=qe.exists(t)&&t.length>0,o=n&&qe.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=o?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=this.columnController.getValueColumns(),s=qe.missingOrEmpty(i);this.sortService.sort(t,n,o,r,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},su([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),su([nt("sortService")],e.prototype,"sortService",void 0),su([nt("sortController")],e.prototype,"sortController",void 0),su([nt("columnController")],e.prototype,"columnController",void 0),e=su([tt("sortStage")],e)}(),lu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},uu=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,n=[],o={value:0},r=this.columnController.isPivotMode(),i=r&&t.leafGroup,s=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,n,o,r,0),!i&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,o,0)),n},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,o,r){if(!qe.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),u=0;u<e.length;u++){var c=e[u],p=c.hasChildren(),d=i&&p,h=o&&!p,f=a&&p&&1===c.childrenAfterGroup.length,g=l&&p&&c.leafGroup&&1===c.childrenAfterGroup.length,v=o&&c.leafGroup,m=s&&c.expanded&&!v;if(!(h||d||m||f||g)&&this.addRowNodeToRowsToDisplay(c,t,n,r),!o||!c.leafGroup)if(p){var y=f||g;if(c.expanded||y){var C=y?r:r+1;this.recursivelyAddToRowsToDisplay(c.childrenAfterSort,t,n,o,C),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(c),this.addRowNodeToRowsToDisplay(c.sibling,t,n,r))}}else if(c.master&&c.expanded){var w=this.createDetailNode(c);this.addRowNodeToRowsToDisplay(w,t,n,r)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,n,o){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:o)},e.prototype.ensureFooterNodeExists=function(e){if(!qe.exists(e.sibling)){var t=new In;this.context.wireBean(t),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,qe.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(qe.exists(e.detailNode))return e.detailNode;var t=new In;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,qe.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},lu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),lu([nt("selectionController")],e.prototype,"selectionController",void 0),lu([nt("eventService")],e.prototype,"eventService",void 0),lu([nt("context")],e.prototype,"context",void 0),lu([nt("columnController")],e.prototype,"columnController",void 0),e=lu([tt("flattenStage")],e)}(),cu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},pu=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,n,o,r,i){var s=this;r.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=n?s.doDeltaSort(a,e,o,r,i):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},e.prototype.doFullSort=function(e,t){var n=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return n.sort(this.compareRowNodes.bind(this,t)),n},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,n,o,r){var i=e.childrenAfterSort.filter((function(e){var t=!n[e.id],i=r||o.canSkip(e);return t&&i})).map(this.mapNodeToSortedNode.bind(this)),s={};i.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?i:0===i.length?a:this.mergeSortedArrays(t,i,a)},e.prototype.mergeSortedArrays=function(e,t,n){for(var o=[],r=0,i=0;r<t.length&&i<n.length;){this.compareRowNodes(e,t[r],n[i])<0?o.push(t[r++]):o.push(n[i++])}for(;r<t.length;)o.push(t[r++]);for(;i<n.length;)o.push(n[i++]);return o},e.prototype.compareRowNodes=function(e,t,n){for(var o=t.rowNode,r=n.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=-1===a.inverter,u=this.getValue(o,a.column),c=this.getValue(r,a.column),p=void 0;if(0!==(p=a.column.getColDef().comparator?a.column.getColDef().comparator(u,c,o,r,l):qe.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort())))return p*a.inverter}return t.currentPos-n.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!qe.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var o=t[n],r=0===n,i=n===e.childrenAfterSort.length-1;o.setFirstChild(r),o.setLastChild(i),o.setChildIndex(n)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var n=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&n(e)}))};e.executeFromRootNode((function(e){return n(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;qe.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){n.columnController.getGroupDisplayColumns().forEach((function(o){var r=o.getColDef().showRowGroup;if("string"==typeof r){var i=r,s=n.columnController.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(o.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(o.getId(),a.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},cu([nt("sortController")],e.prototype,"sortController",void 0),cu([nt("columnController")],e.prototype,"columnController",void 0),cu([nt("valueService")],e.prototype,"valueService",void 0),cu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),cu([Ze],e.prototype,"init",null),e=cu([tt("sortService")],e)}(),du=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},hu=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var n=this,o=function(t,o){t.hasChildren()?(t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&n.filterManager.doesRowPassFilter(e);return t||o})):t.childrenAfterGroup,n.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var r=function(e,t){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var s=e.childrenAfterGroup[i],a=t||n.filterManager.doesRowPassFilter(s);s.childrenAfterGroup?r(e.childrenAfterGroup[i],a):o(s,a)}o(e,t)};t.executeFromRootNode((function(e){return r(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return o(e,!1)}),!0)}},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},du([nt("filterManager")],e.prototype,"filterManager",void 0),du([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),du([Ze],e.prototype,"postConstruct",null),e=du([tt("filterService")],e)}(),fu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},gu=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(qe.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!qe.missing(t)){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return qe.exists(e)&&e.forEach((function(e,i){var s=t(e),a=o[s];(r&&(r[s]=i),a)?(a.data!==e&&n.update.push(e),o[s]=void 0):n.add.push(e)})),qe.iterateObject(o,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},fu([nt("rowModel")],e.prototype,"rowModel",void 0),fu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),fu([Ze],e.prototype,"postConstruct",null),e=fu([tt("immutableService")],e)}(),vu={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[iu,au,uu,pu,hu,gu],rowModels:{clientSide:ou}},mu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Cu=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.cacheParams=n,o}return mu(t,e),t.prototype.getDisplayIndexStart=function(){return this.getBlockNumber()*this.cacheParams.blockSize},t.prototype.getDisplayIndexEnd=function(){return this.getDisplayIndexStart()+this.cacheParams.blockSize},t.prototype.createBlankRowNode=function(t){var n=e.prototype.createBlankRowNode.call(this,t);return n.uiLevel=0,this.setIndexAndTopOnRowNode(n,t),n},t.prototype.setDataAndId=function(e,t,n){qe.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,n){e.prototype.setRowNode.call(this,t,n),this.setIndexAndTopOnRowNode(n,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};qe.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0)},yu([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),yu([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),yu([Ze],t.prototype,"init",null),t}(Vl),wu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Eu=function(e,t){return function(n,o){t(n,o,e)}},_u=function(e){function t(t){return e.call(this,t)||this}return wu(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.moveItemsDown=function(e,t,n){for(var o=e.getStartRow(),r=t+n,i=e.getEndRow()-1;i>=o;i--)if(!(i<r)){var s=i-n,a=this.getRow(s,!0);a?e.setRowNode(i,a):(e.setBlankRowNode(i),e.setDirty())}},t.prototype.insertItems=function(e,t,n){for(var o=e.getStartRow(),r=e.getEndRow(),i=[],s=0;s<n.length;s++){var a=t+s;if(a>=o&&a<r){var l=n[s],u=e.setNewData(a,l);i.push(u)}}return i},t.prototype.insertItemsAtIndex=function(e,t){var n=this,o=[];this.forEachBlockInReverseOrder((function(r){r.getEndRow()<=e||(n.moveItemsDown(r,e,t.length),n.insertItems(r,e,t).forEach((function(e){return o.push(e)})))})),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var r={type:bt.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.cacheParams.blockSize),o=this.getBlock(n);if(!o){if(t)return null;o=this.createBlock(n)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=new Cu(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},bu([nt("columnApi")],t.prototype,"columnApi",void 0),bu([nt("gridApi")],t.prototype,"gridApi",void 0),bu([Eu(0,it("loggerFactory"))],t.prototype,"setBeans",null),t}(Ul),Ou=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ru=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ou(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,o){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})))},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,bt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,bt.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!qe.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return ke.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;qe.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),qe.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),qe.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),qe.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return qe.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return qe.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!qe.missing(this.datasource)){qe.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:bt.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new Hl(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new Ye},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=1),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new _u(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(Ul.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new Ye)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){qe.exists(e.remove)||qe.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):qe.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},Ru([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ru([nt("filterManager")],t.prototype,"filterManager",void 0),Ru([nt("sortController")],t.prototype,"sortController",void 0),Ru([nt("selectionController")],t.prototype,"selectionController",void 0),Ru([nt("eventService")],t.prototype,"eventService",void 0),Ru([nt("gridApi")],t.prototype,"gridApi",void 0),Ru([nt("columnApi")],t.prototype,"columnApi",void 0),Ru([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),Ru([Ze],t.prototype,"init",null),Ru([et],t.prototype,"destroyDatasource",null),t=Ru([tt("rowModel")],t)}(Ut),Tu={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Su}},Du=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pu=function(){function e(e){var t=e.columnController,n=e.valueService,o=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnController=t,this.valueService=n,this.gridOptionsWrapper=o,this.processCellCallback=r,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.firstGroupColumn=qe.find(e,(function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,o){var r;r=o&&o.group&&(e===this.firstGroupColumn||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(o):this.valueService.getValue(e,o);var i=this.processCell(o,e,r,this.processCellCallback,n);return null!=i?i:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,o,r){return o?o({column:t,node:e,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):n},e}(),Iu=function(){function e(){}return e.prototype.serialize=function(e,t){void 0===t&&(t={});var n=t.shouldRowBeSkipped||function(){return!1},o=this.gridOptionsWrapper.getApi(),r=this.gridOptionsWrapper.getColumnApi(),i=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),s=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),a=this.gridOptionsWrapper.getContext(),l=this.columnController.isPivotMode(),u=this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE,c=!u&&t.onlySelected,p=[];if(p=qe.existsAndNotEmpty(t.columnKeys)?this.columnController.getGridColumns(t.columnKeys):t.allColumns&&!l?(p=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([ke.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),t.customHeader&&e.addCustomContent(t.customHeader),e.prepare(p),t.columnGroups){var d=new Et,h=this.displayedGroupCreator.createDisplayedGroups(p,this.columnController.getGridBalancedTree(),d,null);this.recursivelyAddHeaderGroups(h,e,t.processGroupHeaderCallback)}if(!t.skipHeader){var f=e.onNewHeaderRow();p.forEach((function(e,t){f.onColumn(e,t,void 0)}))}(this.pinnedRowModel.forEachPinnedTopRow(g),l)?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(g):this.rowModel.forEachNode(g):t.onlySelectedAllPages||c?this.selectionController.getSelectedNodes().forEach((function(e){g(e)})):u?this.rowModel.forEachNodeAfterFilterAndSort(g):this.rowModel.forEachNode(g);function g(l){var u=s&&l.leafGroup,c=1===l.allChildrenCount&&(i||u);if((!l.group||!t.skipGroups&&!c)&&((!t.skipFooters||!l.footer)&&(!t.onlySelected||l.isSelected())&&(!t.skipPinnedTop||"top"!==l.rowPinned)&&(!t.skipPinnedBottom||"bottom"!==l.rowPinned)&&(!(-1===l.level)||l.leafGroup)&&!n({node:l,api:o,context:a}))){var d=e.onNewBodyRow();if(p.forEach((function(e,t){d.onColumn(e,t,l)})),t.getCustomContentBelowRow){var h=t.getCustomContentBelowRow({node:l,api:o,columnApi:r,context:a});h&&e.addCustomContent(h)}}}return this.pinnedRowModel.forEachPinnedBottomRow(g),t.customFooter&&e.addCustomContent(t.customFooter),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t,n){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof gt&&this.doAddHeaderHeader(t,e,n),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,n)},e.prototype.doAddHeaderHeader=function(e,t,n){var o=this,r=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,s=e;t=n?n({columnGroup:s,api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()}):o.columnController.getDisplayNameForColumnGroup(s,"header"),r.onColumn(t||"",i++,s.getLeafColumns().length-1)}))},Du([nt("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),Du([nt("columnController")],e.prototype,"columnController",void 0),Du([nt("rowModel")],e.prototype,"rowModel",void 0),Du([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Du([nt("selectionController")],e.prototype,"selectionController",void 0),Du([nt("columnFactory")],e.prototype,"columnFactory",void 0),Du([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Du([tt("gridSerializer")],e)}();!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(nu||(nu={}));var Au=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},xu=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var o=t.suppressQuotes,r=t.columnSeparator;return n.suppressQuotes=o,n.columnSeparator=r,n}return Au(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,ke.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(Pu),Fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Au(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this.columnController,n=this.valueService,o=this.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback,l=e.suppressQuotes,u=e.columnSeparator;return new xu({columnController:t,valueService:n,gridOptionsWrapper:o,processCellCallback:r||void 0,processHeaderCallback:i||void 0,processGroupHeaderCallback:s||void 0,processRowGroupCallback:a||void 0,suppressQuotes:l||!1,columnSeparator:u||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},Nu([nt("columnController")],t.prototype,"columnController",void 0),Nu([nt("valueService")],t.prototype,"valueService",void 0),Nu([nt("downloader")],t.prototype,"downloader",void 0),Nu([nt("gridSerializer")],t.prototype,"gridSerializer",void 0),Nu([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Nu([Ze],t.prototype,"postConstruct",null),t=Nu([tt("csvCreator")],t)}(function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),n=t.mergedParams,o=t.data,r=n&&n.fileName&&0!==n.fileName.length?n.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,this.packageFile(o)),o},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),n={};return qe.assign(n,t),qe.assign(n,e),n},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}()),Lu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Mu=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var n=document.createElement("a"),o=window.URL.createObjectURL(t);n.setAttribute("href",o),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(n),window.setTimeout((function(){window.URL.revokeObjectURL(o)}),0)}},e=Lu([tt("downloader")],e)}(),ku=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Gu=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.prototype.createXml=function(e,t){var n=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(r){o+=n.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){o+=n.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">\r\n":(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">\r\n"):r+"/>\r\n"},e.prototype.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"==typeof t&&n&&(o=n(t))," "+e+'="'+o+'"'},e=ku([tt("xmlFactory")],e)}(),Vu=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},ju=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],Wu=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),n=t.length,o="",r=0,i=0,s=0,a=t;s<a.length;s++){var l=a[s],u=this.getHeader(l,r),c=u.fileHeader,p=u.folderHeader,d=u.content;r+=c.length+d.length,i+=p.length,e+=c+d,o+=p}return e+o+this.buildFolderEnd(n,i,r)},e.prototype.getHeader=function(e,t){var n=e.content,o=e.path,r=e.created,i=qe.utf8_encode,s=qe.decToHex,a=i(o),l=a!==o,u=this.convertTime(r),c=this.convertDate(r),p="";if(l){var d=s(1,1)+s(this.getFromCrc32Table(a),4)+a;p="up"+s(d.length,2)+d}var h="\n\0"+(l?"\0\b":"\0\0")+"\0\0"+s(u,2)+s(c,2)+s(n?this.getFromCrc32Table(n):0,4)+s(n?n.length:0,4)+s(n?n.length:0,4)+s(a.length,2)+s(p.length,2);return{fileHeader:"PK"+h+a+p,folderHeader:"PK\0"+h+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\0\0\0")+s(t,4)+a+p,content:n||""}},e.prototype.buildFolderEnd=function(e,t,n){var o=qe.decToHex;return"PK\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(n,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var n=0,o=0;o<e.length;o++)n=e.charCodeAt(o),t=t>>>8^ju[255&(t^n)];return-1^t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e=Vu([tt("zipContainer")],e)}(),Hu={moduleName:t.ModuleNames.CsvExportModule,beans:[Fu,Mu,Gu,Iu,Wu]};pt.register(vu,!1),pt.register(Tu,!1),pt.register(Hu,!1),t.AgAbstractField=Ln,t.AgAngleSelect=dl,t.AgCheckbox=Wn,t.AgColorPicker=Za,t.AgDialog=Ga,t.AgGroupComponent=Na,t.AgInputNumberField=tl,t.AgInputRange=ol,t.AgInputTextArea=Ha,t.AgInputTextField=ja,t.AgPanel=La,t.AgRadioButton=Ts,t.AgSelect=ul,t.AgSlider=Ua,t.AgToggleButton=fl,t.AlignedGridsService=Zs,t.AnimateShowChangeCellRenderer=go,t.AnimateSlideCellRenderer=yo,t.AutoWidthCalculator=rs,t.Autowired=nt,t.BaseComponentWrapper=Xl,t.Bean=tt,t.BeanStub=Ut,t.BodyDropPivotTarget=Ei,t.BodyDropTarget=Ri,t.CellComp=jr,t.CellNavigationService=bs,t.CellPositionUtils=wl,t.CellRendererFactory=_s,t.ChangedPath=cr,t.CheckboxSelectionComponent=zn,t.ColDefUtil=xt,t.Color=n,t.Column=ht,t.ColumnApi=gr,t.ColumnController=Rt,t.ColumnFactory=wt,t.ColumnGroup=gt,t.ColumnKeyCreator=Qe,t.ColumnUtils=Tt,t.Component=$t,t.ComponentUtil=Wt,t.Constants=ke,t.Context=Xe,t.CssClassApplier=Kr,t.DateFilter=bn,t.DisplayedGroupCreator=Pt,t.DragAndDropService=br,t.DragService=hs,t.Environment=ca,t.EventService=ct,t.Events=bt,t.ExpressionService=Ki,t.FilterManager=Ni,t.FocusController=ms,t.Grid=Pl,t.GridApi=Ui,t.GridCore=us,t.GridOptionsWrapper=Vt,t.GridPanel=Bi,t.GroupCellRenderer=po,t.GroupInstanceIdCreator=Et,t.HeaderContainer=Ti,t.HeaderRootComp=Ii,t.HeaderRowComp=yi,t.HorizontalResizeService=ss,t.LargeTextCellEditor=Ao,t.Listener=function(e){return en.bind(this,e)},t.Logger=ns,t.LoggerFactory=ts,t.ManagedTabComponent=Fl,t.ModuleRegistry=pt,t.MouseEventService=Cs,t.MoveColumnController=wi,t.NumberFilter=Fo,t.NumberSequence=Ye,t.Optional=ot,t.OriginalColumnGroup=vt,t.PaginationProxy=Hs,t.PinnedRowModel=El,t.PopupComponent=Xt,t.PopupEditorWrapper=Ir,t.PopupSelectCellEditor=Do,t.PopupService=Ji,t.PopupTextCellEditor=So,t.PostConstruct=Ze,t.PreConstruct=Je,t.PreDestroy=et,t.Promise=Ke,t.PropertyKeys=At,t.ProvidedFilter=pn,t.Qualifier=it,t.QuerySelector=
343
- /**
344
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
345
- * @version v23.1.1
346
- * @link http://www.ag-grid.com/
347
- * @license MIT
348
- */
349
- function(e){return Zt.bind(this,e)},t.RefSelector=Jt,t.ResizeObserverService=Sa,t.RowComp=Br,t.RowNode=In,t.RowNodeBlock=Vl,t.RowNodeBlockLoader=Hl,t.RowNodeCache=Ul,t.RowPositionUtils=yl,t.RowRenderer=Yr,t.ScalarFilter=yn,t.ScrollVisibleService=Is,t.SelectCellEditor=Oo,t.SelectableService=Ca,t.SelectionController=hr,t.SetLeftFeature=Zr,t.SimpleFilter=vn,t.SortController=gs,t.StandardMenuFactory=ps,t.StylingService=Ns,t.TabbedLayout=kl,t.TemplateService=Qi,t.TextCellEditor=sn,t.TextFilter=Zo,t.Timer=$e,t.TooltipFeature=kr,t.TouchListener=En,t.UserComponentFactory=lo,t.UserComponentRegistry=ur,t.ValueCache=Ys,t.ValueFormatterService=Rs,t.ValueService=Fi,t.VanillaFrameworkOverrides=Ds,t.VirtualList=Kl,t._=qe,t.defaultGroupComparator=
350
- /**
351
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
352
- * @version v23.1.1
353
- * @link http://www.ag-grid.com/
354
- * @license MIT
355
- */
356
- function(e,t,n,o,r){void 0===r&&(r=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var i=qe.exists(n)&&n.group,s=qe.exists(o)&&o.group,a=!i&&!s;return i&&s?qe.defaultComparator(n.key,o.key,r):a?qe.defaultComparator(e,t,r):i?1:-1},t.initialiseAgGridWithAngular1=
357
- /**
358
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
359
- * @version v23.1.1
360
- * @link http://www.ag-grid.com/
361
- * @license MIT
362
- */
363
- function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",Il],scope:!0}}))},t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!Al){Al=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);Wt.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var n={};n[e]={currentValue:t},this.onChange(n)},t.onChange=function(e){this._initialised&&Wt.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=Wt.copyAttributesToGridOptions(e,this);var n={globalEventListener:t};this._agGrid=new Pl(this,this._gridOptions,n),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,n="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,o=e.nodeValue;Wt.ALL_PROPERTIES.indexOf(n)>=0&&(this[n]=o)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var n=e.toLowerCase(),o=new Event(n);o.agGridDetails=t,this.dispatchEvent(o);var r="on"+n;"function"==typeof this[r]&&this[r](o)},document.registerElement("ag-grid",{prototype:e})}},t.simpleHttpRequest=
364
- /**
365
- * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
366
- * @version v23.1.1
367
- * @link http://www.ag-grid.com/
368
- * @license MIT
369
- */
370
- function(e){return new Ke((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){if(4==n.readyState&&200==n.status){var e=JSON.parse(n.responseText);t(e)}}}))},t.stringToArray=o}).call(this,n(33))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElectronBrowserTransport=t.HTTPBrowserTransport=void 0;var o=n(110);Object.defineProperty(t,"HTTPBrowserTransport",{enumerable:!0,get:function(){return o.default}});var r=n(114);Object.defineProperty(t,"ElectronBrowserTransport",{enumerable:!0,get:function(){return r.default}})},function(e,t,n){e.exports={container:"modal__container___3iRuU",transparent:"modal__transparent___2_Hu1"}},function(e,t,n){e.exports={icon:"typeIcon__icon___2UWO4",required:"typeIcon__required___gOjHX"}},function(e,t,n){e.exports={stickyItems:"infiniteList__stickyItems___dqJTf",outer:"infiniteList__outer___3Q32S"}},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var l,u=[],c=!1,p=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):p=-1,u.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++p<t;)l&&l[p].run();p=-1,t=u.length}l=null,c=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||c||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.DECIMAL_PREFIX=t.BYTES_PREFIX=t.BIGINT_PREFIX=void 0,t.BIGINT_PREFIX="PrismaBigInt::",t.BYTES_PREFIX="PrismaBytes::",t.DECIMAL_PREFIX="PrismaDecimal::",t.default=function(n){return JSON.stringify(n,(n,o)=>"bigint"==typeof o?t.BIGINT_PREFIX+o:"Buffer"===(null==o?void 0:o.type)&&Array.isArray(null==o?void 0:o.data)?t.BYTES_PREFIX+e.from(o.data).toString("base64"):o)}}).call(this,n(58).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(80);t.default=function(e){return JSON.parse(e,(e,t)=>"string"==typeof t&&t.startsWith(o.BIGINT_PREFIX)?BigInt(t.substr(o.BIGINT_PREFIX.length)):"string"==typeof t&&t.startsWith(o.BYTES_PREFIX)?t.substr(o.BYTES_PREFIX.length):t)}},function(e,t,n){e.exports=n(119)()},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(0),a=n(82),l=n(74),u=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.props=t,o.state=n,o}return r(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return i.Children.map(e.children,(function(e){return t.toColDef(e.props)}))},t.toColDef=function(e){var n=t.createColDefFromGridColumn(e);return t.hasChildColumns(e)&&(n.children=t.getChildColDefs(e.children)),n},t.hasChildColumns=function(e){return i.Children.count(e.children)>0},t.getChildColDefs=function(e){return i.Children.map(e,(function(e){return t.createColDefFromGridColumn(e.props)}))},t.createColDefFromGridColumn=function(e){var n={};return t.assign(n,e),delete n.children,n},t.assign=function(e,t){return[t].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),e)},t}(s.Component);function c(e,t){e.forEach((function(e){u[e]=t}))}t.AgGridColumn=u,c(l.ColDefUtil.BOOLEAN_PROPERTIES,a.bool),c(l.ColDefUtil.STRING_PROPERTIES,a.string),c(l.ColDefUtil.OBJECT_PROPERTIES,a.object),c(l.ColDefUtil.ARRAY_PROPERTIES,a.array),c(l.ColDefUtil.NUMBER_PROPERTIES,a.number),c(l.ColDefUtil.FUNCTION_PROPERTIES,a.func)},function(e,t,n){e.exports={container:"iconButton__container___2C48K"}},function(e,t,n){var o;!function(r,i,s){if(r){for(var a,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},p={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)l[111+d]="f"+d;for(d=0;d<=9;++d)l[d+96]=d.toString();y.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function e(t,n){return null!==t&&t!==i&&(t===n||e(t.parentNode,n))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);a=null},y.init=function(){var e=y(i);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),r.Mousetrap=y,e.exports&&(e.exports=y),void 0===(o=function(){return y}.call(t,n,t,e))||(e.exports=o)}function h(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:u[e.which]?u[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function v(e,t,n){return n||(n=function(){if(!a)for(var e in a={},l)e>95&&e<112||l.hasOwnProperty(e)&&(a[l[e]]=e);return a}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,o,r,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r<n.length;++r)o=n[r],p[o]&&(o=p[o]),t&&"keypress"!=t&&c[o]&&(o=c[o],i.push("shift")),g(o)&&i.push(o);return{key:o,modifiers:i,action:t=v(o,i,t)}}function y(e){var t=this;if(e=e||i,!(t instanceof y))return new y(e);t.target=e,t._callbacks={},t._directMap={};var n,o={},r=!1,s=!1,a=!1;function l(e){e=e||{};var t,n=!1;for(t in o)e[t]?n=!0:o[t]=0;n||(a=!1)}function u(e,n,r,i,s,a){var l,u,c,p,d=[],h=r.type;if(!t._callbacks[e])return[];for("keyup"==h&&g(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(u=t._callbacks[e][l],(i||!u.seq||o[u.seq]==u.level)&&h==u.action&&("keypress"==h&&!r.metaKey&&!r.ctrlKey||(c=n,p=u.modifiers,c.sort().join(",")===p.sort().join(",")))){var f=!i&&u.combo==s,v=i&&u.seq==i&&u.level==a;(f||v)&&t._callbacks[e].splice(l,1),d.push(u)}return d}function c(e,n,o,r){t.stopCallback(n,n.target||n.srcElement,o,r)||!1===e(n,o)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function p(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=f(e);n&&("keyup"!=e.type||r!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):r=!1)}function d(e,t,i,s){function u(t){return function(){a=t,++o[e],clearTimeout(n),n=setTimeout(l,1e3)}}function p(t){c(i,t,e),"keyup"!==s&&(r=f(t)),setTimeout(l,10)}o[e]=0;for(var d=0;d<t.length;++d){var h=d+1===t.length?p:u(s||m(t[d+1]).action);v(t[d],h,s,e,d)}}function v(e,n,o,r,i){t._directMap[e+":"+o]=n;var s,a=(e=e.replace(/\s+/g," ")).split(" ");a.length>1?d(e,a,n,o):(s=m(e,o),t._callbacks[s.key]=t._callbacks[s.key]||[],u(s.key,s.modifiers,{type:s.action},r,e,i),t._callbacks[s.key][r?"unshift":"push"]({callback:n,modifiers:s.modifiers,action:s.action,seq:r,level:i,combo:e}))}t._handleKey=function(e,t,n){var o,r=u(e,t,n),i={},p=0,d=!1;for(o=0;o<r.length;++o)r[o].seq&&(p=Math.max(p,r[o].level));for(o=0;o<r.length;++o)if(r[o].seq){if(r[o].level!=p)continue;d=!0,i[r[o].seq]=1,c(r[o].callback,n,r[o].combo,r[o].seq)}else d||c(r[o].callback,n,r[o].combo);var h="keypress"==n.type&&s;n.type!=a||g(e)||h||l(i),s=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var o=0;o<e.length;++o)v(e[o],t,n)},h(e,"keypress",p),h(e,"keydown",p),h(e,"keyup",p)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(e,t,n){e.exports={mask:"mask__mask___s6jVX"}},function(e,t,n){e.exports={container:"tabBar__container___2jFFq"}},function(e,t,n){e.exports={container:"tooltip__container___3ZzFK"}},function(e,t,n){e.exports={container:"card__container___1qfFQ"}},function(e,t,n){e.exports={container:"key__container___1vX2g"}},function(e,t,n){e.exports={container:"header__container___27bfL",logo:"header__logo___3xoBS"}},function(e,t,n){e.exports={container:"draggable__container___204J4"}},function(e,t,n){e.exports={input:"jsonInput__input___2Qz6r"}},function(e,t,n){"use strict";(function(e){var o=n(0),r=n.n(o),i=n(5),s=n(29),a=n.n(s);class l extends r.a.PureComponent{constructor(t){super(t),this.input=r.a.createRef(),this.getValue=()=>this.state.value?e.from(this.state.value,"base64"):null,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=t=>{const{field:n}=this.props,o=t.currentTarget.value;n.isRequired||""!==o?(console.log(o,e.from(o,"utf8")),this.setState({value:o})):this.setState({value:null})};const{initialValue:n}=t,o=null==n?null:(t.initialValue instanceof Uint8Array?e.from(t.initialValue):t.initialValue||e.from("")).toString("base64");this.state={value:o}}render(){const{value:e}=this.state;return r.a.createElement("input",{"data-cy":"input--bytes",ref:this.input,className:a.a.input,type:"text",value:null==e?"":e,placeholder:"null",onChange:this.handleChange})}}t.a=Object(i.a)(l)}).call(this,n(58).Buffer)},function(e,t,n){"use strict";(function(e){var o=n(0),r=n.n(o),i=n(4),s=n.n(i),a=n(5),l=n(8),u=n(22),c=n(9),p=n(23),d=n(17),h=n(2),f=n(6),g=n.n(f);class v extends r.a.PureComponent{constructor(t){super(t),this.items=[],this.draggedItem=null,this.getValue=()=>{var t;return null===(t=this.state.value)||void 0===t?void 0:t.map(t=>e.from(t||"","base64"))},this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length,0)].current)||void 0===e||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t})}catch(e){}},this.handleChangeItem=(e,t)=>{const{value:n}=this.state,o=t.currentTarget.value;if(!Array.isArray(n))throw Object(h.a)("BytesListInput.handleChangeItem","Invalid value",{value:n,idx:e,changedItem:o});const r=[...n];return r.splice(e,1,o),this.setState({value:r})},this.handleChangeNewItem=e=>{const t=e.currentTarget.value;this.setState({newItem:t})},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw Object(h.a)("BytesListInput.handleAddItem","Invalid value",{value:e,newItem:t});this.items.push(r.a.createRef()),this.setState({value:[...e,t],newItem:null},()=>{var e,t;null===(e=this.items[this.items.length-1].current)||void 0===e||e.focus(),null===(t=this.items[this.items.length-2].current)||void 0===t||t.scrollIntoView(!1)})},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw Object(h.a)("BytesListInput.handleEnterKeydown","Invalid value",{value:t,idx:e});let n=[...t];n.splice(e+1,0,""),this.items.push(r.a.createRef()),this.setState({value:n,newItem:null},()=>{var t,n,o;null===(t=this.items[e+1].current)||void 0===t||t.focus(),null===(n=this.items[e+1].current)||void 0===n||n.scrollIntoView(!1),null===(o=this.items[e+1].current)||void 0===o||o.scrollIntoView({block:"nearest"})})},this.handleRemoveItem=(e,t)=>{var n,o,r,i;const{value:s}=this.state;if(t.preventDefault(),t.stopPropagation(),!Array.isArray(s))throw Object(h.a)("BytesListInput.handleRemoveClick","Invalid Value",{value:s,idx:e});const a=[...s];a.splice(e,1),this.items.splice(e,1),null===(o=null===(n=this.items[e-1])||void 0===n?void 0:n.current)||void 0===o||o.focus(),null===(i=null===(r=this.items[e-1])||void 0===r?void 0:r.current)||void 0===i||i.scrollIntoView(),setTimeout(()=>this.setState({value:a}),0)},this.handleTabKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Object(h.a)("BytesListInput.handleTabKeydown","Invalid value",{value:o,idx:e});e===o.length||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e+1].current)||void 0===n||n.focus())},this.handleShiftTabKeydown=(e,t)=>{var n;0===e||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e-1].current)||void 0===n||n.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t;if(!this.draggedItem)return;const{value:n=[]}=this.state;if(!Array.isArray(n))throw Object(h.a)("BytesListInput.HandleDragEnd","Invalid value",{value:n,idx:e});const o=[...n],r=(null===(t=this.draggedItem.current)||void 0===t?void 0:t.value)||"";this.items.splice(e,1),o.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),o.splice(this.state.draggedOverIdx-1,0,r)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),o.splice(this.state.draggedOverIdx,0,r)),this.draggedItem=null,this.setState({value:o,draggedOverIdx:-1})};const{initialValue:n}=t;if(!Array.isArray(n))throw Object(h.a)("BytesListInput.constructor","Invalid initialValue",{initialValue:n});this.state={value:n.map(t=>(t instanceof Uint8Array?e.from(t):t).toString("base64")),newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(n.length,1)}).map(()=>r.a.createRef()),this.items.push(r.a.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw Object(h.a)("BytesListInput.render","Invalid value",{value:e});return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{"data-cy":"input--bytes-list",className:g.a.container},r.a.createElement("input",{type:"text",className:g.a.input,value:e.join(", "),onChange:this.handleChange}),r.a.createElement("ul",{className:s()(g.a.itemContainer,"ag-theme-dark")},r.a.createElement("div",{className:g.a.itemScrollContainer},r.a.createElement("div",{className:s()(g.a.separator,{[g.a.draggedOver]:0===this.state.draggedOverIdx})}),e.map((e,t)=>r.a.createElement(r.a.Fragment,{key:t},r.a.createElement(m,{innerRef:this.items[t],value:null===e?"":e,onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),r.a.createElement("div",{className:s()(g.a.separator,{[g.a.draggedOver]:this.state.draggedOverIdx===t+1})})))),r.a.createElement(m,{innerRef:this.items[e.length],value:this.state.newItem||"",onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class m extends r.a.Component{render(){return r.a.createElement("li",{className:g.a.item,onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&r.a.createElement(u.a,{className:g.a.dragButton,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},r.a.createElement(p.a,null)),r.a.createElement("input",{ref:this.props.innerRef,className:g.a.input,type:"text",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&r.a.createElement(c.a,{"data-cy":"input--bytes-list__add-btn",onClick:this.props.onAdd,className:g.a.addScalarListItemBtn},"Add"),this.props.onRemove&&r.a.createElement(c.a,{"data-cy":"input--bytes-list__remove-btn",onClick:this.props.onRemove,className:g.a.closeButton},r.a.createElement(d.a,null)),this.props.onEnter&&r.a.createElement(l.a,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&r.a.createElement(l.a,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&r.a.createElement(l.a,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&r.a.createElement(l.a,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}t.a=Object(a.a)(v)}).call(this,n(58).Buffer)},function(e,t,n){e.exports={container:"tree__container___1_H3H"}},function(e,t,n){e.exports={container:"results__container___YER9H",empty:"results__empty___kbUlY"}},function(e,t,n){e.exports={container:"studio__container___2U_w5"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}()},,function(e,t,n){n(102),e.exports=n(129)},function(e,t,n){(function(e){("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"0.365.0"}}).call(this,n(33))},function(e,t,n){"use strict";
371
- /** @license React v16.13.1
372
- * react.production.min.js
373
- *
374
- * Copyright (c) Facebook, Inc. and its affiliates.
375
- *
376
- * This source code is licensed under the MIT license found in the
377
- * LICENSE file in the root directory of this source tree.
378
- */var o=n(73),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,s=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function w(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||y}function b(){}function E(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=w.prototype;var _=E.prototype=new b;_.constructor=E,o(_,w.prototype),_.isPureReactComponent=!0;var O={current:null},R=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var o,r={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)R.call(t,o)&&!S.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===r[o]&&(r[o]=l[o]);return{$$typeof:i,type:e,key:s,ref:a,props:r,_owner:O.current}}function D(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,I=[];function A(e,t,n,o){if(I.length){var r=I.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function x(e,t,n){return null==e?0:function e(t,n,o,r){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case s:l=!0}}if(l)return o(r,t,""===n?"."+F(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+F(a=t[u],u);l+=e(a,c,o,r)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=v&&t[v]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(a=t.next()).done;)l+=e(a=a.value,c=n+F(a,u++),o,r);else if("object"===a)throw o=""+t,Error(m(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,""));return l}(e,"",t,n)}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?k(e,o,n,(function(e){return e})):null!=e&&(D(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),o.push(e))}function k(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),x(e,M,t=A(t,i,o,r)),N(t)}var G={current:null};function V(){var e=G.current;if(null===e)throw Error(m(321));return e}var j={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:function(e,t,n){if(null==e)return e;var o=[];return k(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;x(e,L,t=A(null,null,t,n)),N(t)},count:function(e){return x(e,(function(){return null}),null)},toArray:function(e){var t=[];return k(e,t,null,(function(e){return e})),t},only:function(e){if(!D(e))throw Error(m(143));return e}},t.Component=w,t.Fragment=a,t.Profiler=u,t.PureComponent=E,t.StrictMode=l,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(m(267,e));var r=o({},e.props),s=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=O.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)R.call(t,c)&&!S.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];r.children=u}return{$$typeof:i,type:e.type,key:s,ref:a,props:r,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=D,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return V().useCallback(e,t)},t.useContext=function(e,t){return V().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return V().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return V().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return V().useLayoutEffect(e,t)},t.useMemo=function(e,t){return V().useMemo(e,t)},t.useReducer=function(e,t,n){return V().useReducer(e,t,n)},t.useRef=function(e){return V().useRef(e)},t.useState=function(e){return V().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
379
- /** @license React v16.13.1
380
- * react-dom.production.min.js
381
- *
382
- * Copyright (c) Facebook, Inc. and its affiliates.
383
- *
384
- * This source code is licensed under the MIT license found in the
385
- * LICENSE file in the root directory of this source tree.
386
- */var o=n(0),r=n(73),i=n(105);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(s(227));function a(e,t,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var l=!1,u=null,c=!1,p=null,d={onError:function(e){l=!0,u=e}};function h(e,t,n,o,r,i,s,c,p){l=!1,u=null,a.apply(d,arguments)}var f=null,g=null,v=null;function m(e,t,n){var o=e.type||"unknown-event";e.currentTarget=v(n),function(e,t,n,o,r,i,a,d,f){if(h.apply(this,arguments),l){if(!l)throw Error(s(198));var g=u;l=!1,u=null,c||(c=!0,p=g)}}(o,t,void 0,e),e.currentTarget=null}var y=null,C={};function w(){if(y)for(var e in C){var t=C[e],n=y.indexOf(e);if(!(-1<n))throw Error(s(96,e));if(!E[n]){if(!t.extractEvents)throw Error(s(97,e));for(var o in E[n]=t,n=t.eventTypes){var r=void 0,i=n[o],a=t,l=o;if(_.hasOwnProperty(l))throw Error(s(99,l));_[l]=i;var u=i.phasedRegistrationNames;if(u){for(r in u)u.hasOwnProperty(r)&&b(u[r],a,l);r=!0}else i.registrationName?(b(i.registrationName,a,l),r=!0):r=!1;if(!r)throw Error(s(98,o,e))}}}}function b(e,t,n){if(O[e])throw Error(s(100,e));O[e]=t,R[e]=t.eventTypes[n].dependencies}var E=[],_={},O={},R={};function S(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];if(!C.hasOwnProperty(t)||C[t]!==o){if(C[t])throw Error(s(102,t));C[t]=o,n=!0}}n&&w()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),D=null,P=null,I=null;function A(e){if(e=g(e)){if("function"!=typeof D)throw Error(s(280));var t=e.stateNode;t&&(t=f(t),D(e.stateNode,e.type,t))}}function N(e){P?I?I.push(e):I=[e]:P=e}function x(){if(P){var e=P,t=I;if(I=P=null,A(e),t)for(e=0;e<t.length;e++)A(t[e])}}function F(e,t){return e(t)}function L(e,t,n,o,r){return e(t,n,o,r)}function M(){}var k=F,G=!1,V=!1;function j(){null===P&&null===I||(M(),x())}function W(e,t,n){if(V)return e(t,n);V=!0;try{return k(e,t,n)}finally{V=!1,j()}}var H=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,B=Object.prototype.hasOwnProperty,z={},U={};function q(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var Y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Y[e]=new q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Y[t]=new q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Y[e]=new q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Y[e]=new q(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Y[e]=new q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Y[e]=new q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Y[e]=new q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Y[e]=new q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Y[e]=new q(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function $(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,$);Y[t]=new q(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,$);Y[t]=new q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,$);Y[t]=new q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Y[e]=new q(e,1,!1,e.toLowerCase(),null,!1)})),Y.xlinkHref=new q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Y[e]=new q(e,1,!1,e.toLowerCase(),null,!0)}));var Q=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,o){var r=Y.hasOwnProperty(t)?Y[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!B.call(U,e)||!B.call(z,e)&&(H.test(e)?U[e]=!0:(z[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,oe=Z?Symbol.for("react.strict_mode"):60108,re=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,se=Z?Symbol.for("react.context"):60110,ae=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ue=Z?Symbol.for("react.suspense"):60113,ce=Z?Symbol.for("react.suspense_list"):60120,pe=Z?Symbol.for("react.memo"):60115,de=Z?Symbol.for("react.lazy"):60116,he=Z?Symbol.for("react.block"):60121,fe="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function ve(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case re:return"Profiler";case oe:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case se:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return ve(e.type);case he:return ve(e.render);case de:if(e=1===e._status?e._result:null)return ve(e)}return null}function me(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var o=e._debugOwner,r=e._debugSource,i=ve(e.type);n=null,o&&(n=ve(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace(J,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=Ce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ce(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function _e(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Oe(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Re(e,t){Oe(e,t);var n=ye(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function De(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Pe(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Ne(e,t){var n=ye(t.value),o=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function xe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Fe="http://www.w3.org/1999/xhtml",Le="http://www.w3.org/2000/svg";function Me(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ke(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Me(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ge,Ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Le||"innerHTML"in e)e.innerHTML=t;else{for((Ge=Ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function je(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function We(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:We("Animation","AnimationEnd"),animationiteration:We("Animation","AnimationIteration"),animationstart:We("Animation","AnimationStart"),transitionend:We("Transition","TransitionEnd")},Be={},ze={};function Ue(e){if(Be[e])return Be[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in ze)return Be[e]=n[t];return e}T&&(ze=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var qe=Ue("animationend"),Ye=Ue("animationiteration"),Ke=Ue("animationstart"),$e=Ue("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(s(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(o=r.return)){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return tt(r),e;if(i===o)return tt(r),t;i=i.sibling}throw Error(s(188))}if(n.return!==o.return)n=r,o=i;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,o=i;break}if(l===o){a=!0,o=r,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,o=r;break}if(l===o){a=!0,o=i,n=r;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==o)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(s(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)m(e,t[o],n[o]);else t&&m(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(it=ot(it,e)),e=it,it=null,e){if(rt(e,st),it)throw Error(s(95));if(c)throw e=p,c=!1,p=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,n,o){if(ct.length){var r=ct.pop();return r.topLevelType=e,r.eventSystemFlags=o,r.nativeEvent=t,r.targetInst=n,r}return{topLevelType:e,eventSystemFlags:o,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o=n;if(3===o.tag)o=o.stateNode.containerInfo;else{for(;o.return;)o=o.return;o=3!==o.tag?null:o.stateNode.containerInfo}if(!o)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=lt(e.nativeEvent);o=e.topLevelType;var i=e.nativeEvent,s=e.eventSystemFlags;0===n&&(s|=64);for(var a=null,l=0;l<E.length;l++){var u=E[l];u&&(u=u.extractEvents(o,t,i,r,s))&&(a=ot(a,u))}at(a)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Yt(e,t)}n.set(e,null)}}var gt,vt,mt,yt=!1,Ct=[],wt=null,bt=null,Et=null,_t=new Map,Ot=new Map,Rt=[],St="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Dt(e,t,n,o,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r,container:o}}function Pt(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function It(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e=Dt(t,n,o,r,i),null!==t&&(null!==(t=Dn(t))&&vt(t)),e):(e.eventSystemFlags|=o,e)}function At(e){var t=Tn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){mt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Dn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function xt(e,t,n){Nt(e)&&n.delete(t)}function Ft(){for(yt=!1;0<Ct.length;){var e=Ct[0];if(null!==e.blockedOn){null!==(e=Dn(e.blockedOn))&&gt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:Ct.shift()}null!==wt&&Nt(wt)&&(wt=null),null!==bt&&Nt(bt)&&(bt=null),null!==Et&&Nt(Et)&&(Et=null),_t.forEach(xt),Ot.forEach(xt)}function Lt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Mt(e){function t(t){return Lt(t,e)}if(0<Ct.length){Lt(Ct[0],e);for(var n=1;n<Ct.length;n++){var o=Ct[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==wt&&Lt(wt,e),null!==bt&&Lt(bt,e),null!==Et&&Lt(Et,e),_t.forEach(t),Ot.forEach(t),n=0;n<Rt.length;n++)(o=Rt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)At(n),null===n.blockedOn&&Rt.shift()}var kt={},Gt=new Map,Vt=new Map,jt=["abort","abort",qe,"animationEnd",Ye,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function Wt(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],r=e[n+1],i="on"+(r[0].toUpperCase()+r.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[o],eventPriority:t},Vt.set(o,t),Gt.set(o,i),kt[r]=i}}Wt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Wt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Wt(jt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Bt=0;Bt<Ht.length;Bt++)Vt.set(Ht[Bt],0);var zt=i.unstable_UserBlockingPriority,Ut=i.unstable_runWithPriority,qt=!0;function Yt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var o=Vt.get(t);switch(void 0===o?2:o){case 0:o=$t.bind(null,t,1,e);break;case 1:o=Qt.bind(null,t,1,e);break;default:o=Xt.bind(null,t,1,e)}n?e.addEventListener(t,o,!0):e.addEventListener(t,o,!1)}function $t(e,t,n,o){G||M();var r=Xt,i=G;G=!0;try{L(r,e,t,n,o)}finally{(G=i)||j()}}function Qt(e,t,n,o){Ut(zt,Xt.bind(null,e,t,n,o))}function Xt(e,t,n,o){if(qt)if(0<Ct.length&&-1<St.indexOf(e))e=Dt(null,e,t,n,o),Ct.push(e);else{var r=Jt(e,t,n,o);if(null===r)Pt(e,o);else if(-1<St.indexOf(e))e=Dt(r,e,t,n,o),Ct.push(e);else if(!function(e,t,n,o,r){switch(t){case"focus":return wt=It(wt,e,t,n,o,r),!0;case"dragenter":return bt=It(bt,e,t,n,o,r),!0;case"mouseover":return Et=It(Et,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return _t.set(i,It(_t.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Ot.set(i,It(Ot.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o)){Pt(e,o),e=dt(e,o,null,t);try{W(ht,e)}finally{pt(e)}}}}function Jt(e,t,n,o){if(null!==(n=Tn(n=lt(o)))){var r=Ze(n);if(null===r)n=null;else{var i=r.tag;if(13===i){if(null!==(n=et(r)))return n;n=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}e=dt(e,o,n,t);try{W(ht,e)}finally{pt(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=tn(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var on=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62,""))}}function sn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an=Fe;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=R[t];for(var o=0;o<t.length;o++)ft(t[o],e,n)}function un(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,o=pn(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=pn(o)}}function hn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn=null,vn=null;function mn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Cn="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function bn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var _n=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+_n,Rn="__reactEventHandlers$"+_n,Sn="__reactContainere$"+_n;function Tn(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[On]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[On])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function Dn(e){return!(e=e[On]||e[Sn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Pn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function In(e){return e[Rn]||null}function An(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Nn(e,t){var n=e.stateNode;if(!n)return null;var o=f(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}function xn(e,t,n){(t=Nn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Fn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=An(t);for(t=n.length;0<t--;)xn(n[t],"captured",e);for(t=0;t<n.length;t++)xn(n[t],"bubbled",e)}}function Ln(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Nn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Mn(e){e&&e.dispatchConfig.registrationName&&Ln(e._targetInst,null,e)}function kn(e){rt(e,Fn)}var Gn=null,Vn=null,jn=null;function Wn(){if(jn)return jn;var e,t,n=Vn,o=n.length,r="value"in Gn?Gn.value:Gn.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var s=o-e;for(t=1;t<=s&&n[o-t]===r[i-t];t++);return jn=r.slice(e,1<t?1-t:void 0)}function Hn(){return!0}function Bn(){return!1}function zn(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Hn:Bn,this.isPropagationStopped=Bn,this}function Un(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function qn(e){if(!(e instanceof this))throw Error(s(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Yn(e){e.eventPool=[],e.getPooled=Un,e.release=qn}r(zn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){this.isPersistent=Hn},isPersistent:Bn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Bn,this._dispatchInstances=this._dispatchListeners=null}}),zn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},zn.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,Yn(n),n},Yn(zn);var Kn=zn.extend({data:null}),$n=zn.extend({data:null}),Qn=[9,13,27,32],Xn=T&&"CompositionEvent"in window,Jn=null;T&&"documentMode"in document&&(Jn=document.documentMode);var Zn=T&&"TextEvent"in window&&!Jn,eo=T&&(!Xn||Jn&&8<Jn&&11>=Jn),to=String.fromCharCode(32),no={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},oo=!1;function ro(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function io(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var so=!1;var ao={eventTypes:no,extractEvents:function(e,t,n,o){var r;if(Xn)e:{switch(e){case"compositionstart":var i=no.compositionStart;break e;case"compositionend":i=no.compositionEnd;break e;case"compositionupdate":i=no.compositionUpdate;break e}i=void 0}else so?ro(e,n)&&(i=no.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=no.compositionStart);return i?(eo&&"ko"!==n.locale&&(so||i!==no.compositionStart?i===no.compositionEnd&&so&&(r=Wn()):(Vn="value"in(Gn=o)?Gn.value:Gn.textContent,so=!0)),i=Kn.getPooled(i,t,n,o),r?i.data=r:null!==(r=io(n))&&(i.data=r),kn(i),r=i):r=null,(e=Zn?function(e,t){switch(e){case"compositionend":return io(t);case"keypress":return 32!==t.which?null:(oo=!0,to);case"textInput":return(e=t.data)===to&&oo?null:e;default:return null}}(e,n):function(e,t){if(so)return"compositionend"===e||!Xn&&ro(e,t)?(e=Wn(),jn=Vn=Gn=null,so=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return eo&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=$n.getPooled(no.beforeInput,t,n,o)).data=e,kn(t)):t=null,null===r?t:null===t?r:[r,t]}},lo={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lo[e.type]:"textarea"===t}var co={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function po(e,t,n){return(e=zn.getPooled(co.change,e,t,n)).type="change",N(n),kn(e),e}var ho=null,fo=null;function go(e){at(e)}function vo(e){if(be(Pn(e)))return e}function mo(e,t){if("change"===e)return t}var yo=!1;function Co(){ho&&(ho.detachEvent("onpropertychange",wo),fo=ho=null)}function wo(e){if("value"===e.propertyName&&vo(fo))if(e=po(fo,e,lt(e)),G)at(e);else{G=!0;try{F(go,e)}finally{G=!1,j()}}}function bo(e,t,n){"focus"===e?(Co(),fo=n,(ho=t).attachEvent("onpropertychange",wo)):"blur"===e&&Co()}function Eo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vo(fo)}function _o(e,t){if("click"===e)return vo(t)}function Oo(e,t){if("input"===e||"change"===e)return vo(t)}T&&(yo=ut("input")&&(!document.documentMode||9<document.documentMode));var Ro={eventTypes:co,_isInputEventSupported:yo,extractEvents:function(e,t,n,o){var r=t?Pn(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var s=mo;else if(uo(r))if(yo)s=Oo;else{s=Eo;var a=bo}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(s=_o);if(s&&(s=s(e,t)))return po(s,n,o);a&&a(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Te(r,"number",r.value)}},So=zn.extend({view:null,detail:null}),To={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Do(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=To[e])&&!!t[e]}function Po(){return Do}var Io=0,Ao=0,No=!1,xo=!1,Fo=So.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Po,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Io;return Io=e.screenX,No?"mousemove"===e.type?e.screenX-t:0:(No=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ao;return Ao=e.screenY,xo?"mousemove"===e.type?e.screenY-t:0:(xo=!0,0)}}),Lo=Fo.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Mo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},ko={eventTypes:Mo,extractEvents:function(e,t,n,o,r){var i="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(i&&0==(32&r)&&(n.relatedTarget||n.fromElement)||!s&&!i)return null;(i=o.window===o?o:(i=o.ownerDocument)?i.defaultView||i.parentWindow:window,s)?(s=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):s=null;if(s===t)return null;if("mouseout"===e||"mouseover"===e)var a=Fo,l=Mo.mouseLeave,u=Mo.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(a=Lo,l=Mo.pointerLeave,u=Mo.pointerEnter,c="pointer");if(e=null==s?i:Pn(s),i=null==t?i:Pn(t),(l=a.getPooled(l,s,n,o)).type=c+"leave",l.target=e,l.relatedTarget=i,(n=a.getPooled(u,t,n,o)).type=c+"enter",n.target=i,n.relatedTarget=e,c=t,(o=s)&&c)e:{for(u=c,s=0,e=a=o;e;e=An(e))s++;for(e=0,t=u;t;t=An(t))e++;for(;0<s-e;)a=An(a),s--;for(;0<e-s;)u=An(u),e--;for(;s--;){if(a===u||a===u.alternate)break e;a=An(a),u=An(u)}a=null}else a=null;for(u=a,a=[];o&&o!==u&&(null===(s=o.alternate)||s!==u);)a.push(o),o=An(o);for(o=[];c&&c!==u&&(null===(s=c.alternate)||s!==u);)o.push(c),c=An(c);for(c=0;c<a.length;c++)Ln(a[c],"bubbled",l);for(c=o.length;0<c--;)Ln(o[c],"captured",n);return 0==(64&r)?[l]:[l,n]}};var Go="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Vo=Object.prototype.hasOwnProperty;function jo(e,t){if(Go(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Vo.call(t,n[o])||!Go(e[n[o]],t[n[o]]))return!1;return!0}var Wo=T&&"documentMode"in document&&11>=document.documentMode,Ho={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Bo=null,zo=null,Uo=null,qo=!1;function Yo(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return qo||null==Bo||Bo!==cn(n)?null:("selectionStart"in(n=Bo)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Uo&&jo(Uo,n)?null:(Uo=n,(e=zn.getPooled(Ho.select,zo,e,t)).type="select",e.target=Bo,kn(e),e))}var Ko={eventTypes:Ho,extractEvents:function(e,t,n,o,r,i){if(!(i=!(r=i||(o.window===o?o.document:9===o.nodeType?o:o.ownerDocument)))){e:{r=Je(r),i=R.onSelect;for(var s=0;s<i.length;s++)if(!r.has(i[s])){r=!1;break e}r=!0}i=!r}if(i)return null;switch(r=t?Pn(t):window,e){case"focus":(uo(r)||"true"===r.contentEditable)&&(Bo=r,zo=t,Uo=null);break;case"blur":Uo=zo=Bo=null;break;case"mousedown":qo=!0;break;case"contextmenu":case"mouseup":case"dragend":return qo=!1,Yo(n,o);case"selectionchange":if(Wo)break;case"keydown":case"keyup":return Yo(n,o)}return null}},$o=zn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qo=zn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xo=So.extend({relatedTarget:null});function Jo(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},er={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tr=So.extend({key:function(e){if(e.key){var t=Zo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?er[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Po,charCode:function(e){return"keypress"===e.type?Jo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),nr=Fo.extend({dataTransfer:null}),or=So.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Po}),rr=zn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ir=Fo.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),sr={eventTypes:kt,extractEvents:function(e,t,n,o){var r=Gt.get(e);if(!r)return null;switch(e){case"keypress":if(0===Jo(n))return null;case"keydown":case"keyup":e=tr;break;case"blur":case"focus":e=Xo;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=nr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=or;break;case qe:case Ye:case Ke:e=$o;break;case $e:e=rr;break;case"scroll":e=So;break;case"wheel":e=ir;break;case"copy":case"cut":case"paste":e=Qo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Lo;break;default:e=zn}return kn(t=e.getPooled(r,t,n,o)),t}};if(y)throw Error(s(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),f=In,g=Dn,v=Pn,S({SimpleEventPlugin:sr,EnterLeaveEventPlugin:ko,ChangeEventPlugin:Ro,SelectEventPlugin:Ko,BeforeInputEventPlugin:ao});var ar=[],lr=-1;function ur(e){0>lr||(e.current=ar[lr],ar[lr]=null,lr--)}function cr(e,t){lr++,ar[lr]=e.current,e.current=t}var pr={},dr={current:pr},hr={current:!1},fr=pr;function gr(e,t){var n=e.type.contextTypes;if(!n)return pr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vr(e){return null!=(e=e.childContextTypes)}function mr(){ur(hr),ur(dr)}function yr(e,t,n){if(dr.current!==pr)throw Error(s(168));cr(dr,t),cr(hr,n)}function Cr(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw Error(s(108,ve(t)||"Unknown",i));return r({},n,{},o)}function wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pr,fr=dr.current,cr(dr,e),cr(hr,hr.current),!0}function br(e,t,n){var o=e.stateNode;if(!o)throw Error(s(169));n?(e=Cr(e,t,fr),o.__reactInternalMemoizedMergedChildContext=e,ur(hr),ur(dr),cr(dr,e)):ur(hr),cr(hr,n)}var Er=i.unstable_runWithPriority,_r=i.unstable_scheduleCallback,Or=i.unstable_cancelCallback,Rr=i.unstable_requestPaint,Sr=i.unstable_now,Tr=i.unstable_getCurrentPriorityLevel,Dr=i.unstable_ImmediatePriority,Pr=i.unstable_UserBlockingPriority,Ir=i.unstable_NormalPriority,Ar=i.unstable_LowPriority,Nr=i.unstable_IdlePriority,xr={},Fr=i.unstable_shouldYield,Lr=void 0!==Rr?Rr:function(){},Mr=null,kr=null,Gr=!1,Vr=Sr(),jr=1e4>Vr?Sr:function(){return Sr()-Vr};function Wr(){switch(Tr()){case Dr:return 99;case Pr:return 98;case Ir:return 97;case Ar:return 96;case Nr:return 95;default:throw Error(s(332))}}function Hr(e){switch(e){case 99:return Dr;case 98:return Pr;case 97:return Ir;case 96:return Ar;case 95:return Nr;default:throw Error(s(332))}}function Br(e,t){return e=Hr(e),Er(e,t)}function zr(e,t,n){return e=Hr(e),_r(e,t,n)}function Ur(e){return null===Mr?(Mr=[e],kr=_r(Dr,Yr)):Mr.push(e),xr}function qr(){if(null!==kr){var e=kr;kr=null,Or(e)}Yr()}function Yr(){if(!Gr&&null!==Mr){Gr=!0;var e=0;try{var t=Mr;Br(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mr=null}catch(t){throw null!==Mr&&(Mr=Mr.slice(e+1)),_r(Dr,qr),t}finally{Gr=!1}}}function Kr(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function $r(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qr={current:null},Xr=null,Jr=null,Zr=null;function ei(){Zr=Jr=Xr=null}function ti(e){var t=Qr.current;ur(Qr),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function oi(e,t){Xr=e,Zr=Jr=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Is=!0),e.firstContext=null)}function ri(e,t){if(Zr!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jr){if(null===Xr)throw Error(s(308));Jr=t,Xr.dependencies={expirationTime:0,firstContext:t,responders:null}}else Jr=Jr.next=t;return e._currentValue}var ii=!1;function si(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function li(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ui(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.alternate;null!==n&&ai(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function pi(e,t,n,o){var i=e.updateQueue;ii=!1;var s=i.baseQueue,a=i.shared.pending;if(null!==a){if(null!==s){var l=s.next;s.next=a.next,a.next=l}s=a,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=a))}if(null!==s){l=s.next;var u=i.baseState,c=0,p=null,d=null,h=null;if(null!==l)for(var f=l;;){if((a=f.expirationTime)<o){var g={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===h?(d=h=g,p=u):h=h.next=g,a>c&&(c=a)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),il(a,f.suspenseConfig);e:{var v=e,m=f;switch(a=t,g=n,m.tag){case 1:if("function"==typeof(v=m.payload)){u=v.call(g,u,a);break e}u=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(a="function"==typeof(v=m.payload)?v.call(g,u,a):v))break e;u=r({},u,a);break e;case 2:ii=!0}}null!==f.callback&&(e.effectTag|=32,null===(a=i.effects)?i.effects=[f]:a.push(f))}if(null===(f=f.next)||f===l){if(null===(a=i.shared.pending))break;f=s.next=a.next,a.next=l,i.baseQueue=s=a,i.shared.pending=null}}null===h?p=u:h.next=d,i.baseState=p,i.baseQueue=h,sl(c),e.expirationTime=c,e.memoizedState=u}}function di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=r,r=n,"function"!=typeof o)throw Error(s(191,o));o.call(r)}}}var hi=Q.ReactCurrentBatchConfig,fi=(new o.Component).refs;function gi(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var vi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=qa(),r=hi.suspense;(r=li(o=Ya(o,e,r),r)).payload=t,null!=n&&(r.callback=n),ui(e,r),Ka(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=qa(),r=hi.suspense;(r=li(o=Ya(o,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),ui(e,r),Ka(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=qa(),o=hi.suspense;(o=li(n=Ya(n,e,o),o)).tag=2,null!=t&&(o.callback=t),ui(e,o),Ka(e,n)}};function mi(e,t,n,o,r,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!jo(n,o)||!jo(r,i))}function yi(e,t,n){var o=!1,r=pr,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(r=vr(t)?fr:dr.current,i=(o=null!=(o=t.contextTypes))?gr(e,r):pr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ci(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&vi.enqueueReplaceState(t,t.state,null)}function wi(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=fi,si(e);var i=t.contextType;"object"==typeof i&&null!==i?r.context=ri(i):(i=vr(t)?fr:dr.current,r.context=gr(e,i)),pi(e,n,r,o),r.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&vi.enqueueReplaceState(r,r.state,null),pi(e,n,r,o),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var bi=Array.isArray;function Ei(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var o=n.stateNode}if(!o)throw Error(s(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=o.refs;t===fi&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function _i(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oi(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Sl(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.effectTag=2,n):o:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Pl(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=Ei(e,t,n),o.return=e,o):((o=Tl(n.type,n.key,n.props,null,e.mode,o)).ref=Ei(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Il(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function p(e,t,n,o,i){return null===t||7!==t.tag?((t=Dl(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Pl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Tl(t.type,t.key,t.props,null,e.mode,n)).ref=Ei(e,null,t),n.return=e,n;case te:return(t=Il(t,e.mode,n)).return=e,t}if(bi(t)||ge(t))return(t=Dl(t,e.mode,n,null)).return=e,t;_i(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===r?n.type===ne?p(e,t,n.props.children,o,r):u(e,t,n,o):null;case te:return n.key===r?c(e,t,n,o):null}if(bi(n)||ge(n))return null!==r?null:p(e,t,n,o,null);_i(e,n)}return null}function f(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case ee:return e=e.get(null===o.key?n:o.key)||null,o.type===ne?p(t,e,o.props.children,r,o.key):u(t,e,o,r);case te:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(bi(o)||ge(o))return p(t,e=e.get(n)||null,o,r,null);_i(t,o)}return null}function g(r,s,a,l){for(var u=null,c=null,p=s,g=s=0,v=null;null!==p&&g<a.length;g++){p.index>g?(v=p,p=null):v=p.sibling;var m=h(r,p,a[g],l);if(null===m){null===p&&(p=v);break}e&&p&&null===m.alternate&&t(r,p),s=i(m,s,g),null===c?u=m:c.sibling=m,c=m,p=v}if(g===a.length)return n(r,p),u;if(null===p){for(;g<a.length;g++)null!==(p=d(r,a[g],l))&&(s=i(p,s,g),null===c?u=p:c.sibling=p,c=p);return u}for(p=o(r,p);g<a.length;g++)null!==(v=f(p,r,g,a[g],l))&&(e&&null!==v.alternate&&p.delete(null===v.key?g:v.key),s=i(v,s,g),null===c?u=v:c.sibling=v,c=v);return e&&p.forEach((function(e){return t(r,e)})),u}function v(r,a,l,u){var c=ge(l);if("function"!=typeof c)throw Error(s(150));if(null==(l=c.call(l)))throw Error(s(151));for(var p=c=null,g=a,v=a=0,m=null,y=l.next();null!==g&&!y.done;v++,y=l.next()){g.index>v?(m=g,g=null):m=g.sibling;var C=h(r,g,y.value,u);if(null===C){null===g&&(g=m);break}e&&g&&null===C.alternate&&t(r,g),a=i(C,a,v),null===p?c=C:p.sibling=C,p=C,g=m}if(y.done)return n(r,g),c;if(null===g){for(;!y.done;v++,y=l.next())null!==(y=d(r,y.value,u))&&(a=i(y,a,v),null===p?c=y:p.sibling=y,p=y);return c}for(g=o(r,g);!y.done;v++,y=l.next())null!==(y=f(g,r,v,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),a=i(y,a,v),null===p?c=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return t(r,e)})),c}return function(e,o,i,l){var u="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case ee:e:{for(c=i.key,u=o;null!==u;){if(u.key===c){switch(u.tag){case 7:if(i.type===ne){n(e,u.sibling),(o=r(u,i.props.children)).return=e,e=o;break e}break;default:if(u.elementType===i.type){n(e,u.sibling),(o=r(u,i.props)).ref=Ei(e,u,i),o.return=e,e=o;break e}}n(e,u);break}t(e,u),u=u.sibling}i.type===ne?((o=Dl(i.props.children,e.mode,l,i.key)).return=e,e=o):((l=Tl(i.type,i.key,i.props,null,e.mode,l)).ref=Ei(e,o,i),l.return=e,e=l)}return a(e);case te:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Il(i,e.mode,l)).return=e,e=o}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=Pl(i,e.mode,l)).return=e,e=o),a(e);if(bi(i))return g(e,o,i,l);if(ge(i))return v(e,o,i,l);if(c&&_i(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(s(152,e.displayName||e.name||"Component"))}return n(e,o)}}var Ri=Oi(!0),Si=Oi(!1),Ti={},Di={current:Ti},Pi={current:Ti},Ii={current:Ti};function Ai(e){if(e===Ti)throw Error(s(174));return e}function Ni(e,t){switch(cr(Ii,t),cr(Pi,e),cr(Di,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ke(null,"");break;default:t=ke(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ur(Di),cr(Di,t)}function xi(){ur(Di),ur(Pi),ur(Ii)}function Fi(e){Ai(Ii.current);var t=Ai(Di.current),n=ke(t,e.type);t!==n&&(cr(Pi,e),cr(Di,n))}function Li(e){Pi.current===e&&(ur(Di),ur(Pi))}var Mi={current:0};function ki(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Gi(e,t){return{responder:e,props:t}}var Vi=Q.ReactCurrentDispatcher,ji=Q.ReactCurrentBatchConfig,Wi=0,Hi=null,Bi=null,zi=null,Ui=!1;function qi(){throw Error(s(321))}function Yi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Go(e[n],t[n]))return!1;return!0}function Ki(e,t,n,o,r,i){if(Wi=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Vi.current=null===e||null===e.memoizedState?ms:ys,e=n(o,r),t.expirationTime===Wi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(s(301));i+=1,zi=Bi=null,t.updateQueue=null,Vi.current=Cs,e=n(o,r)}while(t.expirationTime===Wi)}if(Vi.current=vs,t=null!==Bi&&null!==Bi.next,Wi=0,zi=Bi=Hi=null,Ui=!1,t)throw Error(s(300));return e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===zi?Hi.memoizedState=zi=e:zi=zi.next=e,zi}function Qi(){if(null===Bi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Bi.next;var t=null===zi?Hi.memoizedState:zi.next;if(null!==t)zi=t,Bi=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Bi=e).memoizedState,baseState:Bi.baseState,baseQueue:Bi.baseQueue,queue:Bi.queue,next:null},null===zi?Hi.memoizedState=zi=e:zi=zi.next=e}return zi}function Xi(e,t){return"function"==typeof t?t(e):t}function Ji(e){var t=Qi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var o=Bi,r=o.baseQueue,i=n.pending;if(null!==i){if(null!==r){var a=r.next;r.next=i.next,i.next=a}o.baseQueue=r=i,n.pending=null}if(null!==r){r=r.next,o=o.baseState;var l=a=i=null,u=r;do{var c=u.expirationTime;if(c<Wi){var p={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(a=l=p,i=o):l=l.next=p,c>Hi.expirationTime&&(Hi.expirationTime=c,sl(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),il(c,u.suspenseConfig),o=u.eagerReducer===e?u.eagerState:e(o,u.action);u=u.next}while(null!==u&&u!==r);null===l?i=o:l.next=a,Go(o,t.memoizedState)||(Is=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=l,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Zi(e){var t=Qi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{i=e(i,a.action),a=a.next}while(a!==r);Go(i,t.memoizedState)||(Is=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function es(e){var t=$i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e}).dispatch=gs.bind(null,Hi,e),[t.memoizedState,e]}function ts(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Hi.updateQueue)?(t={lastEffect:null},Hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function ns(){return Qi().memoizedState}function os(e,t,n,o){var r=$i();Hi.effectTag|=e,r.memoizedState=ts(1|t,n,void 0,void 0===o?null:o)}function rs(e,t,n,o){var r=Qi();o=void 0===o?null:o;var i=void 0;if(null!==Bi){var s=Bi.memoizedState;if(i=s.destroy,null!==o&&Yi(o,s.deps))return void ts(t,n,i,o)}Hi.effectTag|=e,r.memoizedState=ts(1|t,n,i,o)}function is(e,t){return os(516,4,e,t)}function ss(e,t){return rs(516,4,e,t)}function as(e,t){return rs(4,2,e,t)}function ls(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function us(e,t,n){return n=null!=n?n.concat([e]):null,rs(4,2,ls.bind(null,t,e),n)}function cs(){}function ps(e,t){return $i().memoizedState=[e,void 0===t?null:t],e}function ds(e,t){var n=Qi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Yi(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function hs(e,t){var n=Qi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Yi(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function fs(e,t,n){var o=Wr();Br(98>o?98:o,(function(){e(!0)})),Br(97<o?97:o,(function(){var o=ji.suspense;ji.suspense=void 0===t?null:t;try{e(!1),n()}finally{ji.suspense=o}}))}function gs(e,t,n){var o=qa(),r=hi.suspense;r={expirationTime:o=Ya(o,e,r),suspenseConfig:r,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?r.next=r:(r.next=i.next,i.next=r),t.pending=r,i=e.alternate,e===Hi||null!==i&&i===Hi)Ui=!0,r.expirationTime=Wi,Hi.expirationTime=Wi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(r.eagerReducer=i,r.eagerState=a,Go(a,s))return}catch(e){}Ka(e,o)}}var vs={readContext:ri,useCallback:qi,useContext:qi,useEffect:qi,useImperativeHandle:qi,useLayoutEffect:qi,useMemo:qi,useReducer:qi,useRef:qi,useState:qi,useDebugValue:qi,useResponder:qi,useDeferredValue:qi,useTransition:qi},ms={readContext:ri,useCallback:ps,useContext:ri,useEffect:is,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,os(4,2,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4,2,e,t)},useMemo:function(e,t){var n=$i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=$i();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=gs.bind(null,Hi,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},$i().memoizedState=e},useState:es,useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=es(e),o=n[0],r=n[1];return is((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{r(e)}finally{ji.suspense=n}}),[e,t]),o},useTransition:function(e){var t=es(!1),n=t[0];return t=t[1],[ps(fs.bind(null,t,e),[t,e]),n]}},ys={readContext:ri,useCallback:ds,useContext:ri,useEffect:ss,useImperativeHandle:us,useLayoutEffect:as,useMemo:hs,useReducer:Ji,useRef:ns,useState:function(){return Ji(Xi)},useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Ji(Xi),o=n[0],r=n[1];return ss((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{r(e)}finally{ji.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Ji(Xi),n=t[0];return t=t[1],[ds(fs.bind(null,t,e),[t,e]),n]}},Cs={readContext:ri,useCallback:ds,useContext:ri,useEffect:ss,useImperativeHandle:us,useLayoutEffect:as,useMemo:hs,useReducer:Zi,useRef:ns,useState:function(){return Zi(Xi)},useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Zi(Xi),o=n[0],r=n[1];return ss((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{r(e)}finally{ji.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Zi(Xi),n=t[0];return t=t[1],[ds(fs.bind(null,t,e),[t,e]),n]}},ws=null,bs=null,Es=!1;function _s(e,t){var n=Ol(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Os(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Rs(e){if(Es){var t=bs;if(t){var n=t;if(!Os(e,t)){if(!(t=bn(n.nextSibling))||!Os(e,t))return e.effectTag=-1025&e.effectTag|2,Es=!1,void(ws=e);_s(ws,n)}ws=e,bs=bn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Es=!1,ws=e}}function Ss(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ws=e}function Ts(e){if(e!==ws)return!1;if(!Es)return Ss(e),Es=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=bs;t;)_s(e,t),t=bn(t.nextSibling);if(Ss(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){bs=bn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}bs=null}}else bs=ws?bn(e.stateNode.nextSibling):null;return!0}function Ds(){bs=ws=null,Es=!1}var Ps=Q.ReactCurrentOwner,Is=!1;function As(e,t,n,o){t.child=null===e?Si(t,null,n,o):Ri(t,e.child,n,o)}function Ns(e,t,n,o,r){n=n.render;var i=t.ref;return oi(t,r),o=Ki(e,t,n,o,i,r),null===e||Is?(t.effectTag|=1,As(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ks(e,t,r))}function xs(e,t,n,o,r,i){if(null===e){var s=n.type;return"function"!=typeof s||Rl(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tl(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Fs(e,t,s,o,r,i))}return s=e.child,r<i&&(r=s.memoizedProps,(n=null!==(n=n.compare)?n:jo)(r,o)&&e.ref===t.ref)?Ks(e,t,i):(t.effectTag|=1,(e=Sl(s,o)).ref=t.ref,e.return=t,t.child=e)}function Fs(e,t,n,o,r,i){return null!==e&&jo(e.memoizedProps,o)&&e.ref===t.ref&&(Is=!1,r<i)?(t.expirationTime=e.expirationTime,Ks(e,t,i)):Ms(e,t,n,o,i)}function Ls(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ms(e,t,n,o,r){var i=vr(n)?fr:dr.current;return i=gr(t,i),oi(t,r),n=Ki(e,t,n,o,i,r),null===e||Is?(t.effectTag|=1,As(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ks(e,t,r))}function ks(e,t,n,o,r){if(vr(n)){var i=!0;wr(t)}else i=!1;if(oi(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yi(t,n,o),wi(t,n,o,r),o=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;"object"==typeof u&&null!==u?u=ri(u):u=gr(t,u=vr(n)?fr:dr.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==o||l!==u)&&Ci(t,s,o,u),ii=!1;var d=t.memoizedState;s.state=d,pi(t,o,s,r),l=t.memoizedState,a!==o||d!==l||hr.current||ii?("function"==typeof c&&(gi(t,n,c,o),l=t.memoizedState),(a=ii||mi(t,n,a,o,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=u,o=a):("function"==typeof s.componentDidMount&&(t.effectTag|=4),o=!1)}else s=t.stateNode,ai(e,t),a=t.memoizedProps,s.props=t.type===t.elementType?a:$r(t.type,a),l=s.context,"object"==typeof(u=n.contextType)&&null!==u?u=ri(u):u=gr(t,u=vr(n)?fr:dr.current),(p="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==o||l!==u)&&Ci(t,s,o,u),ii=!1,l=t.memoizedState,s.state=l,pi(t,o,s,r),d=t.memoizedState,a!==o||l!==d||hr.current||ii?("function"==typeof c&&(gi(t,n,c,o),d=t.memoizedState),(c=ii||mi(t,n,a,o,l,d,u))?(p||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,d,u),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,d,u)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=d),s.props=o,s.state=d,s.context=u,o=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),o=!1);return Gs(e,t,n,o,i,r)}function Gs(e,t,n,o,r,i){Ls(e,t);var s=0!=(64&t.effectTag);if(!o&&!s)return r&&br(t,n,!1),Ks(e,t,i);o=t.stateNode,Ps.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&s?(t.child=Ri(t,e.child,null,i),t.child=Ri(t,null,a,i)):As(e,t,a,i),t.memoizedState=o.state,r&&br(t,n,!0),t.child}function Vs(e){var t=e.stateNode;t.pendingContext?yr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yr(0,t.context,!1),Ni(e,t.containerInfo)}var js,Ws,Hs,Bs={dehydrated:null,retryTime:0};function zs(e,t,n){var o,r=t.mode,i=t.pendingProps,s=Mi.current,a=!1;if((o=0!=(64&t.effectTag))||(o=0!=(2&s)&&(null===e||null!==e.memoizedState)),o?(a=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(s|=1),cr(Mi,1&s),null===e){if(void 0!==i.fallback&&Rs(t),a){if(a=i.fallback,(i=Dl(null,r,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Dl(a,r,n,null)).return=t,i.sibling=n,t.memoizedState=Bs,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=Si(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,a){if(i=i.fallback,(n=Sl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(a=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=a;null!==a;)a.return=n,a=a.sibling;return(r=Sl(r,i)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=Bs,t.child=n,r}return n=Ri(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,a){if(a=i.fallback,(i=Dl(null,r,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Dl(a,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Bs,t.child=i,n}return t.memoizedState=null,t.child=Ri(t,e,i.children,n)}function Us(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ni(e.return,t)}function qs(e,t,n,o,r,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailExpiration:0,tailMode:r,lastEffect:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailExpiration=0,s.tailMode=r,s.lastEffect=i)}function Ys(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(As(e,t,o.children,n),0!=(2&(o=Mi.current)))o=1&o|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n);else if(19===e.tag)Us(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(cr(Mi,o),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===ki(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),qs(t,!1,r,n,i,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===ki(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}qs(t,!0,n,null,i,t.lastEffect);break;case"together":qs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ks(e,t,n){null!==e&&(t.dependencies=e.dependencies);var o=t.expirationTime;if(0!==o&&sl(o),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Sl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Sl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $s(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Qs(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vr(t.type)&&mr(),null;case 3:return xi(),ur(hr),ur(dr),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ts(t)||(t.effectTag|=4),null;case 5:Li(t),n=Ai(Ii.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ws(e,t,i,o,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!o){if(null===t.stateNode)throw Error(s(166));return null}if(e=Ai(Di.current),Ts(t)){o=t.stateNode,i=t.type;var a=t.memoizedProps;switch(o[On]=t,o[Rn]=a,i){case"iframe":case"object":case"embed":Yt("load",o);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Yt(Qe[e],o);break;case"source":Yt("error",o);break;case"img":case"image":case"link":Yt("error",o),Yt("load",o);break;case"form":Yt("reset",o),Yt("submit",o);break;case"details":Yt("toggle",o);break;case"input":_e(o,a),Yt("invalid",o),ln(n,"onChange");break;case"select":o._wrapperState={wasMultiple:!!a.multiple},Yt("invalid",o),ln(n,"onChange");break;case"textarea":Ae(o,a),Yt("invalid",o),ln(n,"onChange")}for(var l in rn(i,a),e=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?o.textContent!==u&&(e=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(e=["children",""+u]):O.hasOwnProperty(l)&&null!=u&&ln(n,l)}switch(i){case"input":we(o),Se(o,a,!0);break;case"textarea":we(o),xe(o);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(o.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===an&&(e=Me(i)),e===an?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(i,{is:o.is}):(e=l.createElement(i),"select"===i&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,i),e[On]=t,e[Rn]=o,js(e,t),t.stateNode=e,l=sn(i,o),i){case"iframe":case"object":case"embed":Yt("load",e),u=o;break;case"video":case"audio":for(u=0;u<Qe.length;u++)Yt(Qe[u],e);u=o;break;case"source":Yt("error",e),u=o;break;case"img":case"image":case"link":Yt("error",e),Yt("load",e),u=o;break;case"form":Yt("reset",e),Yt("submit",e),u=o;break;case"details":Yt("toggle",e),u=o;break;case"input":_e(e,o),u=Ee(e,o),Yt("invalid",e),ln(n,"onChange");break;case"option":u=De(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},u=r({},o,{value:void 0}),Yt("invalid",e),ln(n,"onChange");break;case"textarea":Ae(e,o),u=Ie(e,o),Yt("invalid",e),ln(n,"onChange");break;default:u=o}rn(i,u);var c=u;for(a in c)if(c.hasOwnProperty(a)){var p=c[a];"style"===a?nn(e,p):"dangerouslySetInnerHTML"===a?null!=(p=p?p.__html:void 0)&&Ve(e,p):"children"===a?"string"==typeof p?("textarea"!==i||""!==p)&&je(e,p):"number"==typeof p&&je(e,""+p):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(O.hasOwnProperty(a)?null!=p&&ln(n,a):null!=p&&X(e,a,p,l))}switch(i){case"input":we(e),Se(e,o,!1);break;case"textarea":we(e),xe(e);break;case"option":null!=o.value&&e.setAttribute("value",""+ye(o.value));break;case"select":e.multiple=!!o.multiple,null!=(n=o.value)?Pe(e,!!o.multiple,n,!1):null!=o.defaultValue&&Pe(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=un)}mn(i,o)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Hs(0,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(s(166));n=Ai(Ii.current),Ai(Di.current),Ts(t)?(n=t.stateNode,o=t.memoizedProps,n[On]=t,n.nodeValue!==o&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[On]=t,t.stateNode=n)}return null;case 13:return ur(Mi),o=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==o,o=!1,null===e?void 0!==t.memoizedProps.fallback&&Ts(t):(o=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(a=t.firstEffect)?(t.firstEffect=i,i.nextEffect=a):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!o&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Mi.current)?Ta===wa&&(Ta=ba):(Ta!==wa&&Ta!==ba||(Ta=Ea),0!==Na&&null!==Oa&&(xl(Oa,Sa),Fl(Oa,Na)))),(n||o)&&(t.effectTag|=4),null);case 4:return xi(),null;case 10:return ti(t),null;case 17:return vr(t.type)&&mr(),null;case 19:if(ur(Mi),null===(o=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(a=o.rendering)){if(i)$s(o,!1);else if(Ta!==wa||null!==e&&0!=(64&e.effectTag))for(a=t.child;null!==a;){if(null!==(e=ki(a))){for(t.effectTag|=64,$s(o,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=t.child;null!==o;)a=n,(i=o).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=a,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,a=e.dependencies,i.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),o=o.sibling;return cr(Mi,1&Mi.current|2),t.child}a=a.sibling}}else{if(!i)if(null!==(e=ki(a))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),$s(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*jr()-o.renderingStartTime>o.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,$s(o,!1),t.expirationTime=t.childExpirationTime=n-1);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(0===o.tailExpiration&&(o.tailExpiration=jr()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=jr(),n.sibling=null,t=Mi.current,cr(Mi,i?1&t|2:1&t),n):null}throw Error(s(156,t.tag))}function Xs(e){switch(e.tag){case 1:vr(e.type)&&mr();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(xi(),ur(hr),ur(dr),0!=(64&(t=e.effectTag)))throw Error(s(285));return e.effectTag=-4097&t|64,e;case 5:return Li(e),null;case 13:return ur(Mi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ur(Mi),null;case 4:return xi(),null;case 10:return ti(e),null;default:return null}}function Js(e,t){return{value:e,source:t,stack:me(t)}}js=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ws=function(e,t,n,o,i){var s=e.memoizedProps;if(s!==o){var a,l,u=t.stateNode;switch(Ai(Di.current),e=null,n){case"input":s=Ee(u,s),o=Ee(u,o),e=[];break;case"option":s=De(u,s),o=De(u,o),e=[];break;case"select":s=r({},s,{value:void 0}),o=r({},o,{value:void 0}),e=[];break;case"textarea":s=Ie(u,s),o=Ie(u,o),e=[];break;default:"function"!=typeof s.onClick&&"function"==typeof o.onClick&&(u.onclick=un)}for(a in rn(n,o),n=null,s)if(!o.hasOwnProperty(a)&&s.hasOwnProperty(a)&&null!=s[a])if("style"===a)for(l in u=s[a])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(O.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in o){var c=o[a];if(u=null!=s?s[a]:void 0,o.hasOwnProperty(a)&&c!==u&&(null!=c||null!=u))if("style"===a)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(a,n)),n=c;else"dangerouslySetInnerHTML"===a?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(a,c)):"children"===a?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(a,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(O.hasOwnProperty(a)?(null!=c&&ln(i,a),e||u===c||(e=[])):(e=e||[]).push(a,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Hs=function(e,t,n,o){n!==o&&(t.effectTag|=4)};var Zs="function"==typeof WeakSet?WeakSet:Set;function ea(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=me(n)),null!==n&&ve(n.type),t=t.value,null!==e&&1===e.tag&&ve(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ta(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yl(e,t)}else t.current=null}function na(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$r(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(s(163))}function oa(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,void 0!==o&&o()}n=n.next}while(n!==t)}}function ra(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function ia(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ra(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var o=n.elementType===n.type?t.memoizedProps:$r(n.type,t.memoizedProps);e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&mn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Mt(n)))));case 19:case 17:case 20:case 21:return}throw Error(s(163))}function sa(e,t,n){switch("function"==typeof El&&El(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var o=e.next;Br(97<n?97:n,(function(){var e=o;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(e){yl(r,e)}}e=e.next}while(e!==o)}))}break;case 1:ta(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yl(e,t)}}(t,n);break;case 5:ta(t);break;case 4:ca(e,t,n)}}function aa(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&aa(t)}function la(e){return 5===e.tag||3===e.tag||4===e.tag}function ua(e){e:{for(var t=e.return;null!==t;){if(la(t)){var n=t;break e}t=t.return}throw Error(s(160))}switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(s(161))}16&n.effectTag&&(je(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||la(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}o?function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===o.nodeType?o.parentNode.insertBefore(t,n):o.insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null!==(o=o._reactRootContainer)&&void 0!==o||null!==n.onclick||(n.onclick=un));else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t):function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t)}function ca(e,t,n){for(var o,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(s(160));switch(o=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:o=o.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var l=e,u=i,c=n,p=u;;)if(sa(l,p,c),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===u)break e;for(;null===p.sibling;){if(null===p.return||p.return===u)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r?(l=o,u=i.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):o.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){o=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(sa(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function pa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void oa(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps,r=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Rn]=o,"input"===e&&"radio"===o.type&&null!=o.name&&Oe(n,o),sn(e,r),t=sn(e,o),r=0;r<i.length;r+=2){var a=i[r],l=i[r+1];"style"===a?nn(n,l):"dangerouslySetInnerHTML"===a?Ve(n,l):"children"===a?je(n,l):X(n,a,l,t)}switch(e){case"input":Re(n,o);break;case"textarea":Ne(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(e=o.value)?Pe(n,!!o.multiple,e,!1):t!==!!o.multiple&&(null!=o.defaultValue?Pe(n,!!o.multiple,o.defaultValue,!0):Pe(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Mt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?o=!1:(o=!0,n=t.child,Fa=jr()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,o?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,i.style.display=tn("display",r));else if(6===e.tag)e.stateNode.nodeValue=o?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void da(t);case 19:return void da(t);case 17:return}throw Error(s(163))}function da(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var o=wl.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}var ha="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=li(n,null)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ma||(Ma=!0,ka=o),ea(e,t)},n}function ga(e,t,n){(n=li(n,null)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return ea(e,t),o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Ga?Ga=new Set([this]):Ga.add(this),ea(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var va,ma=Math.ceil,ya=Q.ReactCurrentDispatcher,Ca=Q.ReactCurrentOwner,wa=0,ba=3,Ea=4,_a=0,Oa=null,Ra=null,Sa=0,Ta=wa,Da=null,Pa=1073741823,Ia=1073741823,Aa=null,Na=0,xa=!1,Fa=0,La=null,Ma=!1,ka=null,Ga=null,Va=!1,ja=null,Wa=90,Ha=null,Ba=0,za=null,Ua=0;function qa(){return 0!=(48&_a)?1073741821-(jr()/10|0):0!==Ua?Ua:Ua=1073741821-(jr()/10|0)}function Ya(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var o=Wr();if(0==(4&t))return 99===o?1073741823:1073741822;if(0!=(16&_a))return Sa;if(null!==n)e=Kr(e,0|n.timeoutMs||5e3,250);else switch(o){case 99:e=1073741823;break;case 98:e=Kr(e,150,100);break;case 97:case 96:e=Kr(e,5e3,250);break;case 95:e=2;break;default:throw Error(s(326))}return null!==Oa&&e===Sa&&--e,e}function Ka(e,t){if(50<Ba)throw Ba=0,za=null,Error(s(185));if(null!==(e=$a(e,t))){var n=Wr();1073741823===t?0!=(8&_a)&&0==(48&_a)?Za(e):(Xa(e),0===_a&&qr()):Xa(e),0==(4&_a)||98!==n&&99!==n||(null===Ha?Ha=new Map([[e,t]]):(void 0===(n=Ha.get(e))||n>t)&&Ha.set(e,t))}}function $a(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var o=e.return,r=null;if(null===o&&3===e.tag)r=e.stateNode;else for(;null!==o;){if(n=o.alternate,o.childExpirationTime<t&&(o.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===o.return&&3===o.tag){r=o.stateNode;break}o=o.return}return null!==r&&(Oa===r&&(sl(t),Ta===Ea&&xl(r,Sa)),Fl(r,t)),r}function Qa(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Nl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xa(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ur(Za.bind(null,e));else{var t=Qa(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var o=qa();if(1073741823===t?o=99:1===t||2===t?o=95:o=0>=(o=10*(1073741821-t)-10*(1073741821-o))?99:250>=o?98:5250>=o?97:95,null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=o)return;n!==xr&&Or(n)}e.callbackExpirationTime=t,e.callbackPriority=o,t=1073741823===t?Ur(Za.bind(null,e)):zr(o,Ja.bind(null,e),{timeout:10*(1073741821-t)-jr()}),e.callbackNode=t}}}function Ja(e,t){if(Ua=0,t)return Ll(e,t=qa()),Xa(e),null;var n=Qa(e);if(0!==n){if(t=e.callbackNode,0!=(48&_a))throw Error(s(327));if(gl(),e===Oa&&n===Sa||nl(e,n),null!==Ra){var o=_a;_a|=16;for(var r=rl();;)try{ll();break}catch(t){ol(e,t)}if(ei(),_a=o,ya.current=r,1===Ta)throw t=Da,nl(e,n),xl(e,n),Xa(e),t;if(null===Ra)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=Ta,Oa=null,o){case wa:case 1:throw Error(s(345));case 2:Ll(e,2<n?2:n);break;case ba:if(xl(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(r)),1073741823===Pa&&10<(r=Fa+500-jr())){if(xa){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(i=Qa(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=Cn(dl.bind(null,e),r);break}dl(e);break;case Ea:if(xl(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(r)),xa&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(r=Qa(e))&&r!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==Ia?o=10*(1073741821-Ia)-jr():1073741823===Pa?o=0:(o=10*(1073741821-Pa)-5e3,0>(o=(r=jr())-o)&&(o=0),(n=10*(1073741821-n)-r)<(o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ma(o/1960))-o)&&(o=n)),10<o){e.timeoutHandle=Cn(dl.bind(null,e),o);break}dl(e);break;case 5:if(1073741823!==Pa&&null!==Aa){i=Pa;var a=Aa;if(0>=(o=0|a.busyMinDurationMs)?o=0:(r=0|a.busyDelayMs,o=(i=jr()-(10*(1073741821-i)-(0|a.timeoutMs||5e3)))<=r?0:r+o-i),10<o){xl(e,n),e.timeoutHandle=Cn(dl.bind(null,e),o);break}}dl(e);break;default:throw Error(s(329))}if(Xa(e),e.callbackNode===t)return Ja.bind(null,e)}}return null}function Za(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&_a))throw Error(s(327));if(gl(),e===Oa&&t===Sa||nl(e,t),null!==Ra){var n=_a;_a|=16;for(var o=rl();;)try{al();break}catch(t){ol(e,t)}if(ei(),_a=n,ya.current=o,1===Ta)throw n=Da,nl(e,t),xl(e,t),Xa(e),n;if(null!==Ra)throw Error(s(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Oa=null,dl(e),Xa(e)}return null}function el(e,t){var n=_a;_a|=1;try{return e(t)}finally{0===(_a=n)&&qr()}}function tl(e,t){var n=_a;_a&=-2,_a|=8;try{return e(t)}finally{0===(_a=n)&&qr()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Ra)for(n=Ra.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&mr();break;case 3:xi(),ur(hr),ur(dr);break;case 5:Li(o);break;case 4:xi();break;case 13:case 19:ur(Mi);break;case 10:ti(o)}n=n.return}Oa=e,Ra=Sl(e.current,null),Sa=t,Ta=wa,Da=null,Ia=Pa=1073741823,Aa=null,Na=0,xa=!1}function ol(e,t){for(;;){try{if(ei(),Vi.current=vs,Ui)for(var n=Hi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}if(Wi=0,zi=Bi=Hi=null,Ui=!1,null===Ra||null===Ra.return)return Ta=1,Da=t,Ra=null;e:{var r=e,i=Ra.return,s=Ra,a=t;if(t=Sa,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==a&&"object"==typeof a&&"function"==typeof a.then){var l=a;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.expirationTime=u.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var c=0!=(1&Mi.current),p=i;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var f=p.memoizedProps;d=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!c)}}if(d){var g=p.updateQueue;if(null===g){var v=new Set;v.add(l),p.updateQueue=v}else g.add(l);if(0==(2&p.mode)){if(p.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var m=li(1073741823,null);m.tag=2,ui(s,m)}s.expirationTime=1073741823;break e}a=void 0,s=t;var y=r.pingCache;if(null===y?(y=r.pingCache=new ha,a=new Set,y.set(l,a)):void 0===(a=y.get(l))&&(a=new Set,y.set(l,a)),!a.has(s)){a.add(s);var C=Cl.bind(null,r,l,s);l.then(C,C)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);a=Error((ve(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+me(s))}5!==Ta&&(Ta=2),a=Js(a,s),p=i;do{switch(p.tag){case 3:l=a,p.effectTag|=4096,p.expirationTime=t,ci(p,fa(p,l,t));break e;case 1:l=a;var w=p.type,b=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ga||!Ga.has(b)))){p.effectTag|=4096,p.expirationTime=t,ci(p,ga(p,l,t));break e}}p=p.return}while(null!==p)}Ra=cl(Ra)}catch(e){t=e;continue}break}}function rl(){var e=ya.current;return ya.current=vs,null===e?vs:e}function il(e,t){e<Pa&&2<e&&(Pa=e),null!==t&&e<Ia&&2<e&&(Ia=e,Aa=t)}function sl(e){e>Na&&(Na=e)}function al(){for(;null!==Ra;)Ra=ul(Ra)}function ll(){for(;null!==Ra&&!Fr();)Ra=ul(Ra)}function ul(e){var t=va(e.alternate,e,Sa);return e.memoizedProps=e.pendingProps,null===t&&(t=cl(e)),Ca.current=null,t}function cl(e){Ra=e;do{var t=Ra.alternate;if(e=Ra.return,0==(2048&Ra.effectTag)){if(t=Qs(t,Ra,Sa),1===Sa||1!==Ra.childExpirationTime){for(var n=0,o=Ra.child;null!==o;){var r=o.expirationTime,i=o.childExpirationTime;r>n&&(n=r),i>n&&(n=i),o=o.sibling}Ra.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ra.firstEffect),null!==Ra.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ra.firstEffect),e.lastEffect=Ra.lastEffect),1<Ra.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ra:e.firstEffect=Ra,e.lastEffect=Ra))}else{if(null!==(t=Xs(Ra)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ra.sibling))return t;Ra=e}while(null!==Ra);return Ta===wa&&(Ta=5),null}function pl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dl(e){var t=Wr();return Br(99,hl.bind(null,e,t)),null}function hl(e,t){do{gl()}while(null!==ja);if(0!=(48&_a))throw Error(s(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=pl(n);if(e.firstPendingTime=r,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Oa&&(Ra=Oa=null,Sa=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var i=_a;_a|=32,Ca.current=null,gn=qt;var a=hn();if(fn(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{var u=(l=(l=a.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch(e){l=null;break e}var d=0,h=-1,f=-1,g=0,v=0,m=a,y=null;t:for(;;){for(var C;m!==l||0!==c&&3!==m.nodeType||(h=d+c),m!==p||0!==u&&3!==m.nodeType||(f=d+u),3===m.nodeType&&(d+=m.nodeValue.length),null!==(C=m.firstChild);)y=m,m=C;for(;;){if(m===a)break t;if(y===l&&++g===c&&(h=d),y===p&&++v===u&&(f=d),null!==(C=m.nextSibling))break;y=(m=y).parentNode}m=C}l=-1===h||-1===f?null:{start:h,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;vn={activeElementDetached:null,focusedElem:a,selectionRange:l},qt=!1,La=r;do{try{fl()}catch(e){if(null===La)throw Error(s(330));yl(La,e),La=La.nextEffect}}while(null!==La);La=r;do{try{for(a=e,l=t;null!==La;){var w=La.effectTag;if(16&w&&je(La.stateNode,""),128&w){var b=La.alternate;if(null!==b){var E=b.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&w){case 2:ua(La),La.effectTag&=-3;break;case 6:ua(La),La.effectTag&=-3,pa(La.alternate,La);break;case 1024:La.effectTag&=-1025;break;case 1028:La.effectTag&=-1025,pa(La.alternate,La);break;case 4:pa(La.alternate,La);break;case 8:ca(a,c=La,l),aa(c)}La=La.nextEffect}}catch(e){if(null===La)throw Error(s(330));yl(La,e),La=La.nextEffect}}while(null!==La);if(E=vn,b=hn(),w=E.focusedElem,l=E.selectionRange,b!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==l&&fn(w)&&(b=l.start,void 0===(E=l.end)&&(E=b),"selectionStart"in w?(w.selectionStart=b,w.selectionEnd=Math.min(E,w.value.length)):(E=(b=w.ownerDocument||document)&&b.defaultView||window).getSelection&&(E=E.getSelection(),c=w.textContent.length,a=Math.min(l.start,c),l=void 0===l.end?a:Math.min(l.end,c),!E.extend&&a>l&&(c=l,l=a,a=c),c=dn(w,a),p=dn(w,l),c&&p&&(1!==E.rangeCount||E.anchorNode!==c.node||E.anchorOffset!==c.offset||E.focusNode!==p.node||E.focusOffset!==p.offset)&&((b=b.createRange()).setStart(c.node,c.offset),E.removeAllRanges(),a>l?(E.addRange(b),E.extend(p.node,p.offset)):(b.setEnd(p.node,p.offset),E.addRange(b))))),b=[];for(E=w;E=E.parentNode;)1===E.nodeType&&b.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<b.length;w++)(E=b[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}qt=!!gn,vn=gn=null,e.current=n,La=r;do{try{for(w=e;null!==La;){var _=La.effectTag;if(36&_&&ia(w,La.alternate,La),128&_){b=void 0;var O=La.ref;if(null!==O){var R=La.stateNode;switch(La.tag){case 5:b=R;break;default:b=R}"function"==typeof O?O(b):O.current=b}}La=La.nextEffect}}catch(e){if(null===La)throw Error(s(330));yl(La,e),La=La.nextEffect}}while(null!==La);La=null,Lr(),_a=i}else e.current=n;if(Va)Va=!1,ja=e,Wa=t;else for(La=r;null!==La;)t=La.nextEffect,La.nextEffect=null,La=t;if(0===(t=e.firstPendingTime)&&(Ga=null),1073741823===t?e===za?Ba++:(Ba=0,za=e):Ba=0,"function"==typeof bl&&bl(n.stateNode,o),Xa(e),Ma)throw Ma=!1,e=ka,ka=null,e;return 0!=(8&_a)||qr(),null}function fl(){for(;null!==La;){var e=La.effectTag;0!=(256&e)&&na(La.alternate,La),0==(512&e)||Va||(Va=!0,zr(97,(function(){return gl(),null}))),La=La.nextEffect}}function gl(){if(90!==Wa){var e=97<Wa?97:Wa;return Wa=90,Br(e,vl)}}function vl(){if(null===ja)return!1;var e=ja;if(ja=null,0!=(48&_a))throw Error(s(331));var t=_a;for(_a|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:oa(5,n),ra(5,n)}}catch(t){if(null===e)throw Error(s(330));yl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return _a=t,qr(),!0}function ml(e,t,n){ui(e,t=fa(e,t=Js(n,t),1073741823)),null!==(e=$a(e,1073741823))&&Xa(e)}function yl(e,t){if(3===e.tag)ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){ml(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Ga||!Ga.has(o))){ui(n,e=ga(n,e=Js(t,e),1073741823)),null!==(n=$a(n,1073741823))&&Xa(n);break}}n=n.return}}function Cl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),Oa===e&&Sa===n?Ta===Ea||Ta===ba&&1073741823===Pa&&jr()-Fa<500?nl(e,Sa):xa=!0:Nl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xa(e)))}function wl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ya(t=qa(),e,null)),null!==(e=$a(e,t))&&Xa(e)}va=function(e,t,n){var o=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||hr.current)Is=!0;else{if(o<n){switch(Is=!1,t.tag){case 3:Vs(t),Ds();break;case 5:if(Fi(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vr(t.type)&&wr(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value,r=t.type._context,cr(Qr,r._currentValue),r._currentValue=o;break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?zs(e,t,n):(cr(Mi,1&Mi.current),null!==(t=Ks(e,t,n))?t.sibling:null);cr(Mi,1&Mi.current);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return Ys(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),cr(Mi,Mi.current),!o)return null}return Ks(e,t,n)}Is=!1}}else Is=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=gr(t,dr.current),oi(t,n),r=Ki(null,t,o,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vr(o)){var i=!0;wr(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,si(t);var a=o.getDerivedStateFromProps;"function"==typeof a&&gi(t,o,a,e),r.updater=vi,t.stateNode=r,r._reactInternalFiber=t,wi(t,o,e,n),t=Gs(null,t,o,!0,i,n)}else t.tag=0,As(null,t,r,n),t=t.child;return t;case 16:e:{if(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(r),1!==r._status)throw r._result;switch(r=r._result,t.type=r,i=t.tag=function(e){if("function"==typeof e)return Rl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===pe)return 14}return 2}(r),e=$r(r,e),i){case 0:t=Ms(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=Ns(null,t,r,e,n);break e;case 14:t=xs(null,t,r,$r(r.type,e),o,n);break e}throw Error(s(306,r,""))}return t;case 0:return o=t.type,r=t.pendingProps,Ms(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 1:return o=t.type,r=t.pendingProps,ks(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 3:if(Vs(t),o=t.updateQueue,null===e||null===o)throw Error(s(282));if(o=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,ai(e,t),pi(t,o,null,n),(o=t.memoizedState.element)===r)Ds(),t=Ks(e,t,n);else{if((r=t.stateNode.hydrate)&&(bs=bn(t.stateNode.containerInfo.firstChild),ws=t,r=Es=!0),r)for(n=Si(t,null,o,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else As(e,t,o,n),Ds();t=t.child}return t;case 5:return Fi(t),null===e&&Rs(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,a=r.children,yn(o,r)?a=null:null!==i&&yn(o,i)&&(t.effectTag|=16),Ls(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(As(e,t,a,n),t=t.child),t;case 6:return null===e&&Rs(t),null;case 13:return zs(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ri(t,null,o,n):As(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,Ns(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 7:return As(e,t,t.pendingProps,n),t.child;case 8:case 12:return As(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,r=t.pendingProps,a=t.memoizedProps,i=r.value;var l=t.type._context;if(cr(Qr,l._currentValue),l._currentValue=i,null!==a)if(l=a.value,0===(i=Go(l,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(a.children===r.children&&!hr.current){t=Ks(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){a=l.child;for(var c=u.firstContext;null!==c;){if(c.context===o&&0!=(c.observedBits&i)){1===l.tag&&((c=li(n,null)).tag=2,ui(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),ni(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}As(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,oi(t,n),o=o(r=ri(r,i.unstable_observedBits)),t.effectTag|=1,As(e,t,o,n),t.child;case 14:return i=$r(r=t.type,t.pendingProps),xs(e,t,r,i=$r(r.type,i),o,n);case 15:return Fs(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:$r(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vr(o)?(e=!0,wr(t)):e=!1,oi(t,n),yi(t,o,r),wi(t,o,r,n),Gs(null,t,o,!0,e,n);case 19:return Ys(e,t,n)}throw Error(s(156,t.tag))};var bl=null,El=null;function _l(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ol(e,t,n,o){return new _l(e,t,n,o)}function Rl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Sl(e,t){var n=e.alternate;return null===n?((n=Ol(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tl(e,t,n,o,r,i){var a=2;if(o=e,"function"==typeof e)Rl(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case ne:return Dl(n.children,r,i,t);case ae:a=8,r|=7;break;case oe:a=8,r|=1;break;case re:return(e=Ol(12,n,t,8|r)).elementType=re,e.type=re,e.expirationTime=i,e;case ue:return(e=Ol(13,n,t,r)).type=ue,e.elementType=ue,e.expirationTime=i,e;case ce:return(e=Ol(19,n,t,r)).elementType=ce,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:a=10;break e;case se:a=9;break e;case le:a=11;break e;case pe:a=14;break e;case de:a=16,o=null;break e;case he:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Ol(a,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function Dl(e,t,n,o){return(e=Ol(7,e,o,t)).expirationTime=n,e}function Pl(e,t,n){return(e=Ol(6,e,null,t)).expirationTime=n,e}function Il(e,t,n){return(t=Ol(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Al(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Nl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function xl(e,t){var n=e.firstSuspendedTime,o=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(o>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Fl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ll(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ml(e,t,n,o){var r=t.current,i=qa(),a=hi.suspense;i=Ya(i,r,a);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var u=n.type;if(vr(u)){n=Cr(n,u,l);break e}}n=l}else n=pr;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),ui(r,t),Ka(r,i),i}function kl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Gl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Vl(e,t){Gl(e,t),(e=e.alternate)&&Gl(e,t)}function jl(e,t,n){var o=new Al(e,t,n=null!=n&&!0===n.hydrate),r=Ol(3,null,null,2===t?7:1===t?3:0);o.current=r,r.stateNode=o,si(r),e[Sn]=o.current,n&&0!==t&&function(e,t){var n=Je(t);St.forEach((function(e){ft(e,t,n)})),Tt.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=o}function Wl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hl(e,t,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if("function"==typeof r){var a=r;r=function(){var e=kl(s);a.call(e)}}Ml(t,s,e,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new jl(e,0,t?{hydrate:!0}:void 0)}(n,o),s=i._internalRoot,"function"==typeof r){var l=r;r=function(){var e=kl(s);l.call(e)}}tl((function(){Ml(t,s,e,r)}))}return kl(s)}function Bl(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function zl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Wl(t))throw Error(s(200));return Bl(e,t,null,n)}jl.prototype.render=function(e){Ml(e,this._internalRoot,null,null)},jl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ml(null,e,null,(function(){t[Sn]=null}))},gt=function(e){if(13===e.tag){var t=Kr(qa(),150,100);Ka(e,t),Vl(e,t)}},vt=function(e){13===e.tag&&(Ka(e,3),Vl(e,3))},mt=function(e){if(13===e.tag){var t=qa();Ka(e,t=Ya(t,e,null)),Vl(e,t)}},D=function(e,t,n){switch(t){case"input":if(Re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=In(o);if(!r)throw Error(s(90));be(o),Re(o,r)}}}break;case"textarea":Ne(e,n);break;case"select":null!=(t=n.value)&&Pe(e,!!n.multiple,t,!1)}},F=el,L=function(e,t,n,o,r){var i=_a;_a|=4;try{return Br(98,e.bind(null,t,n,o,r))}finally{0===(_a=i)&&qr()}},M=function(){0==(49&_a)&&(function(){if(null!==Ha){var e=Ha;Ha=null,e.forEach((function(e,t){Ll(t,e),Xa(t)})),qr()}}(),gl())},k=function(e,t){var n=_a;_a|=2;try{return e(t)}finally{0===(_a=n)&&qr()}};var Ul,ql,Yl={Events:[Dn,Pn,In,S,_,kn,function(e){rt(e,Mn)},N,x,Xt,at,gl,{current:!1}]};ql=(Ul={findFiberByHostInstance:Tn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);bl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},El=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(r({},Ul,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return ql?ql(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yl,t.createPortal=zl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&_a))throw Error(s(187));var n=_a;_a|=1;try{return Br(99,e.bind(null,t))}finally{_a=n,qr()}},t.hydrate=function(e,t,n){if(!Wl(t))throw Error(s(200));return Hl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Wl(t))throw Error(s(200));return Hl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Wl(e))throw Error(s(40));return!!e._reactRootContainer&&(tl((function(){Hl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Sn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return zl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Wl(n))throw Error(s(200));if(null==e||void 0===e._reactInternalFiber)throw Error(s(38));return Hl(e,t,n,!1,o)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(106)},function(e,t,n){"use strict";
387
- /** @license React v0.19.1
388
- * scheduler.production.min.js
389
- *
390
- * Copyright (c) Facebook, Inc. and its affiliates.
391
- *
392
- * This source code is licensed under the MIT license found in the
393
- * LICENSE file in the root directory of this source tree.
394
- */var o,r,i,s,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},o=function(e){null!==l?setTimeout(o,0,e):(l=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},s=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,f=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var m=h.now();t.unstable_now=function(){return h.now()-m}}var y=!1,C=null,w=-1,b=5,E=0;s=function(){return t.unstable_now()>=E},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,O=_.port2;_.port1.onmessage=function(){if(null!==C){var e=t.unstable_now();E=e+b;try{C(!0,e)?O.postMessage(null):(y=!1,C=null)}catch(e){throw O.postMessage(null),e}}else y=!1},o=function(e){C=e,y||(y=!0,O.postMessage(null))},r=function(e,n){w=f((function(){e(t.unstable_now())}),n)},i=function(){g(w),w=-1}}function R(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,r=e[o];if(!(void 0!==r&&0<D(r,t)))break e;e[o]=t,e[n]=r,n=o}}function S(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length;o<r;){var i=2*(o+1)-1,s=e[i],a=i+1,l=e[a];if(void 0!==s&&0>D(s,n))void 0!==l&&0>D(l,s)?(e[o]=l,e[a]=n,o=a):(e[o]=s,e[i]=n,o=i);else{if(!(void 0!==l&&0>D(l,n)))break e;e[o]=l,e[a]=n,o=a}}}return t}return null}function D(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],A=1,N=null,x=3,F=!1,L=!1,M=!1;function k(e){for(var t=S(I);null!==t;){if(null===t.callback)T(I);else{if(!(t.startTime<=e))break;T(I),t.sortIndex=t.expirationTime,R(P,t)}t=S(I)}}function G(e){if(M=!1,k(e),!L)if(null!==S(P))L=!0,o(V);else{var t=S(I);null!==t&&r(G,t.startTime-e)}}function V(e,n){L=!1,M&&(M=!1,i()),F=!0;var o=x;try{for(k(n),N=S(P);null!==N&&(!(N.expirationTime>n)||e&&!s());){var a=N.callback;if(null!==a){N.callback=null,x=N.priorityLevel;var l=a(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?N.callback=l:N===S(P)&&T(P),k(n)}else T(P);N=S(P)}if(null!==N)var u=!0;else{var c=S(I);null!==c&&r(G,c.startTime-n),u=!1}return u}finally{N=null,x=o,F=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var W=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||F||(L=!0,o(V))},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return S(P)},t.unstable_next=function(e){switch(x){case 1:case 2:case 3:var t=3;break;default:t=x}var n=x;x=t;try{return e()}finally{x=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=W,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=x;x=e;try{return t()}finally{x=n}},t.unstable_scheduleCallback=function(e,n,s){var a=t.unstable_now();if("object"==typeof s&&null!==s){var l=s.delay;l="number"==typeof l&&0<l?a+l:a,s="number"==typeof s.timeout?s.timeout:j(e)}else s=j(e),l=a;return e={id:A++,callback:n,priorityLevel:e,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>a?(e.sortIndex=l,R(I,e),null===S(P)&&e===S(I)&&(M?i():M=!0,r(G,l-a))):(e.sortIndex=s,R(P,e),L||F||(L=!0,o(V))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();k(e);var n=S(P);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||s()},t.unstable_wrapCallback=function(e){var t=x;return function(){var n=x;x=t;try{return e.apply(this,arguments)}finally{x=n}}}},function(e,t,n){const o=n(42);n(108).observerBatching(o.unstable_batchedUpdates)},function(e,t,n){"use strict";e.exports=n(109)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(1),i=n(0),s=(o=i)&&"object"==typeof o&&"default"in o?o.default:o;if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var a=!1;function l(){return a}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function c(){var e=i.useState(0)[1];return i.useCallback((function(){e((function(e){return e+1}))}),[])}var p={};function d(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:p}var h=function(e){return"function"==typeof Symbol?Symbol.for(e):"__$mobx-react "+e+"__"}("observerBatching");function f(e){return r.getDependencyTree(e)}var g,v=new Set;function m(){void 0===g&&(g=setTimeout(y,1e4))}function y(){g=void 0;var e=Date.now(),t=v,n=Array.isArray(t),o=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(o>=t.length)break;r=t[o++]}else{if((o=t.next()).done)break;r=o.value}var i=r,s=i.current;s&&e>=s.cleanAt&&(s.reaction.dispose(),i.current=null,v.delete(i))}v.size>0&&m()}var C={};function w(e){return"observer"+e}function b(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=C),l())return e();var o=(n.useForceUpdate||c)(),i=s.useRef(null);if(!i.current){var a=new r.Reaction(w(t),(function(){u.mounted?o():(a.dispose(),i.current=null)})),u=function(e){return{cleanAt:Date.now()+1e4,reaction:e}}(a);i.current=u,v.add(i),m()}var p,d,h=i.current.reaction;if(s.useDebugValue(h,f),s.useEffect((function(){return v.delete(i),i.current?i.current.mounted=!0:(i.current={reaction:new r.Reaction(w(t),(function(){o()})),cleanAt:1/0},o()),function(){i.current.reaction.dispose(),i.current=null}}),[]),h.track((function(){try{p=e()}catch(e){d=e}})),d)throw d;return p}var E={$$typeof:!0,render:!0,compare:!0,type:!0};function _(e){var t=e.children||e.render;return"function"!=typeof t?null:b(t)}function O(e,t,n,o,r){var i="function"==typeof e[t],s="function"==typeof e["children"===t?"render":"children"];return i&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):i||s?null:new Error("Invalid prop `"+r+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}function R(e,t){if(!t||void 0!==e){var n=s.useState((function(){return r.observable(e,{},{deep:!1})}))[0];return r.runInAction((function(){Object.assign(n,e)})),n}}_.propTypes={children:O,render:O},_.displayName="Observer",t.Observer=_,t.isObserverBatched=function(){return d()[h]},t.isUsingStaticRendering=l,t.observer=function(e,t){if(l())return e;var n,o,r,s=u({forwardRef:!1},t),a=e.displayName||e.name,c=function(t,n){return b((function(){return e(t,n)}),a)};return c.displayName=a,n=i.memo(s.forwardRef?i.forwardRef(c):c),o=e,r=n,Object.keys(o).forEach((function(e){E[e]||Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})),n.displayName=a,n},t.observerBatching=function(e){"function"==typeof e&&r.configure({reactionScheduler:e}),d()[h]=!0},t.observerBatchingOptOut=function(){r.configure({reactionScheduler:void 0}),d()[h]=!0},t.useAsObservableSource=function(e){return R(e,!1)},t.useForceUpdate=c,t.useLocalStore=function(e,t){var n=R(t,!0);return s.useState((function(){var t=r.observable(e(n));return function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(t)&&r.runInAction((function(){Object.keys(t).forEach((function(e){var n,o,i=t[e];"function"==typeof i&&(t[e]=(n=i,o=t,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r.transaction((function(){return n.apply(o,t)}))}))}))})),t}))[0]},t.useObserver=b,t.useStaticRendering=function(e){a=e}}).call(this,n(33))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(80),r=n(81);t.default=class{constructor(e=window.location.origin+"/api"){this.requestIdCounter=0,this.baseUrl=e}request(e){const t=new URL(this.baseUrl);return new Promise((n,i)=>{const s=this.requestIdCounter;fetch(t.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:o.default({requestId:s,channel:e.channel,action:e.action,payload:e.payload})}).then(async e=>{if(200===e.status){const t=await e.text(),o=r.default(t);return n(o.payload)}return console.error("Non-200 Status Code in HTTPTransport.send. Body:",e.body),i({message:"Error in HTTP Request",status:e.status,body:e.body})}).catch(()=>i({message:"Unable to communicate with Prisma Client. Is Studio still running? You may need to restart it using `npx prisma studio`",status:null,body:null})),this.requestIdCounter++})}}},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,o=u(e),s=o[0],a=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),c=0,p=a>0?s-4:s;for(n=0;n<p;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],s=0,a=n-r;s<a;s+=16383)i.push(c(e,s,s+16383>a?a:s+16383));1===r?(t=e[n-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)o[a]=s[a],r[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var r,i,s=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(o[(i=r)>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,o,r){var i,s,a=8*r-o-1,l=(1<<a)-1,u=l>>1,c=-7,p=n?r-1:0,d=n?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+e[t+p],p+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=o;c>0;s=256*s+e[t+p],p+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,o),i-=u}return(h?-1:1)*s*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var s,a,l,u=8*i-r-1,c=(1<<u)-1,p=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:i-1,f=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*l-1)*Math.pow(2,r),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,r),s=0));r>=8;e[n+h]=255&a,h+=f,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;e[n+h]=255&s,h+=f,s/=256,u-=8);e[n+h-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(81);t.default=class{constructor(){this.requestIdCounter=0,this.requests=new Map}async init(){const{ipcRenderer:e}=await Promise.resolve().then(()=>n(115));this.ipcRenderer=e,e.on("-prisma",this.onIPCMessage.bind(this)),e.on("-project",this.onIPCMessage.bind(this)),e.on("-window",this.onIPCMessage.bind(this)),e.on("-update",this.onIPCMessage.bind(this)),e.on("-telemetry",this.onIPCMessage.bind(this))}request(e){const t=this.requestIdCounter;return this.requestIdCounter++,new Promise((n,o)=>{this.requests.set(t,{resolve:n,reject:o}),this.ipcRenderer.send(e.channel,{requestId:t,action:e.action,payload:e.payload})})}onIPCMessage(e,t){var n;const r=o.default(t);null===(n=this.requests.get(r.requestId))||void 0===n||n.resolve(r.payload),this.requests.delete(r.requestId)}}},function(e,t){e.exports=electron},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(0),l=n(82),u=n(74),c=n(83),p=n(121),d=n(127),h=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.props=t,o.state=n,o.changeDetectionService=new d.ChangeDetectionService,o.api=null,o.portals=[],o.hasPendingPortalUpdate=!1,o.destroyed=!1,o}return r(t,e),t.prototype.render=function(){var e=this;return s.createElement("div",{style:this.createStyleForDiv(),ref:function(t){e.eGridDiv=t}},this.portals)},t.prototype.createStyleForDiv=function(){var e={height:"100%"},t=this.props.containerStyle;return t&&Object.keys(t).forEach((function(n){e[n]=t[n]})),e},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new g(this)},modules:e},n=this.props.gridOptions||{};c.AgGridColumn.hasChildColumns(this.props)&&(n.columnDefs=c.AgGridColumn.mapChildColumnDefs(this.props)),this.gridOptions=u.ComponentUtil.copyAttributesToGridOptions(n,this.props),new u.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi},t.prototype.waitForInstance=function(e,n,o){var r=this;if(void 0===o&&(o=0),this.destroyed)n(null);else if(e.rendered())n(null);else{if(o>=t.MAX_COMPONENT_CREATION_TIME)return void console.error("ag-Grid: React Component '"+e.getReactComponentName()+"' not created within "+t.MAX_COMPONENT_CREATION_TIME+"ms");window.setTimeout((function(){return r.waitForInstance(e,n,o+5)}),5)}},t.prototype.mountReactPortal=function(e,t,n){this.portals=i(this.portals,[e]),this.batchUpdate(this.waitForInstance(t,n))},t.prototype.batchUpdate=function(e){var t=this;if(this.hasPendingPortalUpdate)return e&&e();setTimeout((function(){t.api&&t.forceUpdate((function(){e&&e(),t.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0},t.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.props.deltaRowDataMode||this.props.immutableData)return d.ChangeDetectionStrategyType.IdentityCheck}return d.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),Object.keys(n).length>0&&u.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)},t.prototype.extractDeclarativeColDefChanges=function(e,t){var n=!!e.debug;if(c.AgGridColumn.hasChildColumns(e)){var o=this.changeDetectionService.getStrategy(d.ChangeDetectionStrategyType.DeepValueCheck),r=this.gridOptions.columnDefs,i=c.AgGridColumn.mapChildColumnDefs(e);o.areEqual(r,i)||(n&&console.log("agGridReact: colDefs definitions changed"),t.columnDefs={previousValue:this.gridOptions.columnDefs,currentValue:c.AgGridColumn.mapChildColumnDefs(e)})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){-1!==u.ComponentUtil.ALL_PROPERTIES.indexOf(i)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),u.ComponentUtil.getEventCallbacks().forEach((function(i){o.props[i]!==t[i]&&(r&&console.log("agGridReact: ["+i+"] event callback changed"),n[i]={previousValue:e[i],currentValue:t[i]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0},t.prototype.isDisableStaticMarkup=function(){return!!this.props.disableStaticMarkup},t.MAX_COMPONENT_CREATION_TIME=1e3,t}(a.Component);function f(e,t){e.forEach((function(e){h[e]=t}))}t.AgGridReact=h,h.propTypes={gridOptions:l.object},f(u.ComponentUtil.getEventCallbacks(),l.func),f(u.ComponentUtil.BOOLEAN_PROPERTIES,l.bool),f(u.ComponentUtil.STRING_PROPERTIES,l.string),f(u.ComponentUtil.OBJECT_PROPERTIES,l.object),f(u.ComponentUtil.ARRAY_PROPERTIES,l.array),f(u.ComponentUtil.NUMBER_PROPERTIES,l.number),f(u.ComponentUtil.FUNCTION_PROPERTIES,l.func);var g=function(e){function t(t){var n=e.call(this)||this;return n.agGridReact=t,n}return r(t,e),t.prototype.createWrapper=function(e,t){return new p.ReactComponent(e,this.agGridReact,t)},t}(u.BaseComponentWrapper)},function(e,t,n){"use strict";var o=n(120);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(42),a=n(74),l=n(122),u=n(123),c=n(124),p=n(125),d=function(e){function t(n,o,r){var i=e.call(this)||this;return i.portal=null,i.componentWrappingElement="div",i.staticMarkup=null,i.staticRenderTime=0,i.reactComponent=n,i.componentType=r,i.parentComponent=o,i.statelessComponent=t.isStateless(i.reactComponent),i}return r(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new a.Promise((function(n){t.createReactComponent(e,n)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.parentComponent.destroyPortal(this.portal)},t.prototype.createReactComponent=function(e,t){var n=this;this.statelessComponent||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var o=i.createElement(this.reactComponent,e),r=s.createPortal(o,this.eParentElement,c.default());this.portal=r,this.parentComponent.mountReactPortal(r,this,(function(e){t(e),n.statelessComponent&&(n.staticRenderTime>=2?n.eParentElement.addEventListener("DOMNodeInserted",(function(){n.removeStaticMarkup()}),!1):setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&u.assignProperties(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return a._.addCssClass(e.eParentElement,t)})))},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return a._.addCssClass(t,"ag-react-container"),e.reactContainer=t,t},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},t.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===t.REACT_MEMO_TYPE},t.prototype.isNullRender=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.isCellRenderer()){var t=console.error,n=i.createElement(this.reactComponent,e);try{var o=console.error;console.error=function(){};var r=Date.now(),s=p.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-r,console.error=o,""===s?this.staticMarkup=s:s&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=s,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.isCellRenderer()&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullRender()||this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!this.isStatelessComponent()&&this.getFrameworkComponentInstance()},t.REACT_MEMO_TYPE=t.hasSymbol()?Symbol.for("react.memo"):60115,t}(l.BaseReactComponent);t.ReactComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return null!=t&&null!=t[e]},e.prototype.callMethod=function(e,t){var n=this,o=this.getFrameworkComponentInstance();if(null!=o){var r=this.getFrameworkComponentInstance()[e];if(null==r)return;return r.apply(o,t)}window.setTimeout((function(){return n.callMethod(e,t)}),100)},e.prototype.addMethod=function(e,t){this[e]=t},e}();t.BaseReactComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignProperties=function(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))},t.assign=function(e,n,o){if("string"==typeof n&&(n=n.split(".")),n.length>1){var r=n.shift();t.assign(e[r]="[object Object]"===Object.prototype.toString.call(e[r])?e[r]:{},n,o)}else e[n[0]]=o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=0;t.default=function(){return"agPortalKey_"+ ++o}},function(e,t,n){"use strict";e.exports=n(126)},function(e,t,n){"use strict";
395
- /** @license React v16.13.1
396
- * react-dom-server.browser.production.min.js
397
- *
398
- * Copyright (c) Facebook, Inc. and its affiliates.
399
- *
400
- * This source code is licensed under the MIT license found in the
401
- * LICENSE file in the root directory of this source tree.
402
- */var o=n(73),r=n(0);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.portal"):60106,l=s?Symbol.for("react.fragment"):60107,u=s?Symbol.for("react.strict_mode"):60108,c=s?Symbol.for("react.profiler"):60114,p=s?Symbol.for("react.provider"):60109,d=s?Symbol.for("react.context"):60110,h=s?Symbol.for("react.concurrent_mode"):60111,f=s?Symbol.for("react.forward_ref"):60112,g=s?Symbol.for("react.suspense"):60113,v=s?Symbol.for("react.suspense_list"):60120,m=s?Symbol.for("react.memo"):60115,y=s?Symbol.for("react.lazy"):60116,C=s?Symbol.for("react.block"):60121,w=s?Symbol.for("react.fundamental"):60117,b=s?Symbol.for("react.scope"):60119;function E(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case p:return"Context.Provider";case f:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case m:return E(e.type);case C:return E(e.render);case y:if(e=1===e._status?e._result:null)return E(e)}return null}var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;_.hasOwnProperty("ReactCurrentDispatcher")||(_.ReactCurrentDispatcher={current:null}),_.hasOwnProperty("ReactCurrentBatchConfig")||(_.ReactCurrentBatchConfig={suspense:null});var O={};function R(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var S=new Uint16Array(16),T=0;15>T;T++)S[T]=T+1;S[15]=0;var D=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P=Object.prototype.hasOwnProperty,I={},A={};function N(e){return!!P.call(A,e)||!P.call(I,e)&&(D.test(e)?A[e]=!0:(I[e]=!0,!1))}function x(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){F[e]=new x(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];F[t]=new x(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){F[e]=new x(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){F[e]=new x(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){F[e]=new x(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){F[e]=new x(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){F[e]=new x(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){F[e]=new x(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){F[e]=new x(e,5,!1,e.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function M(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(L,M);F[t]=new x(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(L,M);F[t]=new x(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(L,M);F[t]=new x(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){F[e]=new x(e,1,!1,e.toLowerCase(),null,!1)})),F.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){F[e]=new x(e,1,!1,e.toLowerCase(),null,!0)}));var k=/["'&<>]/;function G(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=k.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}function V(e,t){var n,o=F.hasOwnProperty(e)?F[e]:null;return(n="style"!==e)&&(n=null!==o?0===o.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,o,!1)?"":null!==o?(e=o.attributeName,3===(n=o.type)||4===n&&!0===t?e+'=""':(o.sanitizeURL&&(t=""+t),e+'="'+G(t)+'"')):N(e)?e+'="'+G(t)+'"':""}var j="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},W=null,H=null,B=null,z=!1,U=!1,q=null,Y=0;function K(){if(null===W)throw Error(i(321));return W}function $(){if(0<Y)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Q(){return null===B?null===H?(z=!1,H=B=$()):(z=!0,B=H):null===B.next?(z=!1,B=B.next=$()):(z=!0,B=B.next),B}function X(e,t,n,o){for(;U;)U=!1,Y+=1,B=null,n=e(t,o);return H=W=null,Y=0,B=q=null,n}function J(e,t){return"function"==typeof t?t(e):t}function Z(e,t,n){if(W=K(),B=Q(),z){var o=B.queue;if(t=o.dispatch,null!==q&&void 0!==(n=q.get(o))){q.delete(o),o=B.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return B.memoizedState=o,[o,t]}return[B.memoizedState,t]}return e=e===J?"function"==typeof t?t():t:void 0!==n?n(t):t,B.memoizedState=e,e=(e=B.queue={last:null,dispatch:null}).dispatch=ee.bind(null,W,e),[B.memoizedState,e]}function ee(e,t,n){if(!(25>Y))throw Error(i(301));if(e===W)if(U=!0,e={action:n,next:null},null===q&&(q=new Map),void 0===(n=q.get(t)))q.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,oe={readContext:function(e){var t=ne;return R(e,t),e[t]},useContext:function(e){K();var t=ne;return R(e,t),e[t]},useMemo:function(e,t){if(W=K(),t=void 0===t?null:t,null!==(B=Q())){var n=B.memoizedState;if(null!==n&&null!==t){e:{var o=n[1];if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!j(t[r],o[r])){o=!1;break e}o=!0}}if(o)return n[0]}}return e=e(),B.memoizedState=[e,t],e},useReducer:Z,useRef:function(e){W=K();var t=(B=Q()).memoizedState;return null===t?(e={current:e},B.memoizedState=e):t},useState:function(e){return Z(J,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return K(),e},useTransition:function(){return K(),[function(e){e()},!1]}},re="http://www.w3.org/1999/xhtml";function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var se={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ae=o({menuitem:!0},se),le={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ue=["Webkit","ms","Moz","O"];Object.keys(le).forEach((function(e){ue.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),le[t]=le[e]}))}));var ce=/([A-Z])/g,pe=/^ms-/,de=r.Children.toArray,he=_.ReactCurrentDispatcher,fe={listing:!0,pre:!0,textarea:!0},ge=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ve={},me={};var ye=Object.prototype.hasOwnProperty,Ce={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function we(e,t){if(void 0===e)throw Error(i(152,E(t)||"Component"))}function be(e,t,n){function s(r,s){var a=s.prototype&&s.prototype.isReactComponent,l=function(e,t,n,o){if(o&&("object"==typeof(o=e.contextType)&&null!==o))return R(o,n),o[n];if(e=e.contextTypes){for(var r in n={},e)n[r]=t[r];t=n}else t=O;return t}(s,t,n,a),u=[],c=!1,p={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(e,t){c=!0,u=[t]},enqueueSetState:function(e,t){if(null===u)return null;u.push(t)}};if(a){if(a=new s(r.props,l,p),"function"==typeof s.getDerivedStateFromProps){var d=s.getDerivedStateFromProps.call(null,r.props,a.state);null!=d&&(a.state=o({},a.state,d))}}else if(W={},a=s(r.props,l,p),null==(a=X(s,r.props,a,l))||null==a.render)return void we(e=a,s);if(a.props=r.props,a.context=l,a.updater=p,void 0===(p=a.state)&&(a.state=p=null),"function"==typeof a.UNSAFE_componentWillMount||"function"==typeof a.componentWillMount)if("function"==typeof a.componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&"function"!=typeof s.getDerivedStateFromProps&&a.UNSAFE_componentWillMount(),u.length){p=u;var h=c;if(u=null,c=!1,h&&1===p.length)a.state=p[0];else{d=h?p[0]:a.state;var f=!0;for(h=h?1:0;h<p.length;h++){var g=p[h];null!=(g="function"==typeof g?g.call(a,d,r.props,l):g)&&(f?(f=!1,d=o({},d,g)):o(d,g))}a.state=d}}else u=null;if(we(e=a.render(),s),"function"==typeof a.getChildContext&&"object"==typeof(r=s.childContextTypes)){var v=a.getChildContext();for(var m in v)if(!(m in r))throw Error(i(108,E(s)||"Unknown",m))}v&&(t=o({},t,v))}for(;r.isValidElement(e);){var a=e,l=a.type;if("function"!=typeof l)break;s(a,l)}return{child:e,context:t}}var Ee=function(){function e(e,t){r.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=r.isValidElement(e)?[e]:de(e)):e=de(e),e={type:null,domNamespace:re,children:e,childIndex:0,context:O,footer:""};var n=S[0];if(0===n){var o=S,s=2*(n=o.length);if(!(65536>=s))throw Error(i(304));var a=new Uint16Array(s);for(a.set(o),(S=a)[0]=n+1,o=n;o<s-1;o++)S[o]=o+1;S[s-1]=0}else S[0]=S[n];this.threadID=n,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;S[e]=S[0],S[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,o=this.threadID;R(n,o);var r=n[o];this.contextStack[t]=n,this.contextValueStack[t]=r,n[o]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ne;ne=this.threadID;var n=he.current;he.current=oe;try{for(var o=[""],r=!1;o[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var s=this.threadID;S[s]=S[0],S[0]=s;break}var a=this.stack[this.stack.length-1];if(r||a.childIndex>=a.children.length){var l=a.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===a.type)this.currentSelectValue=null;else if(null!=a.type&&null!=a.type.type&&a.type.type.$$typeof===p)this.popProvider(a.type);else if(a.type===g){this.suspenseDepth--;var u=o.pop();if(r){r=!1;var c=a.fallbackFrame;if(!c)throw Error(i(303));this.stack.push(c),o[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}o[this.suspenseDepth]+=u}o[this.suspenseDepth]+=l}else{var d=a.children[a.childIndex++],h="";try{h+=this.render(d,a.context,a.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(i(294));throw e}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=h}}return o[0]}finally{he.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?G(n):this.previousWasTextNode?"\x3c!-- --\x3e"+G(n):(this.previousWasTextNode=!0,G(n));if(e=(t=be(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!r.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(i(257));throw Error(i(258,n.toString()))}return e=de(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var s=e.type;if("string"==typeof s)return this.renderDOM(e,t,n);switch(s){case u:case h:case c:case v:case l:return e=de(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case g:throw Error(i(294))}if("object"==typeof s&&null!==s)switch(s.$$typeof){case f:W={};var C=s.render(e.props,e.ref);return C=X(s.render,e.props,C,e.ref),C=de(C),this.stack.push({type:null,domNamespace:n,children:C,childIndex:0,context:t,footer:""}),"";case m:return e=[r.createElement(s.type,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:return n={type:e,domNamespace:n,children:s=de(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:s=e.type,C=e.props;var E=this.threadID;return R(s,E),s=de(C.children(s[E])),this.stack.push({type:e,domNamespace:n,children:s,childIndex:0,context:t,footer:""}),"";case w:throw Error(i(338));case y:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(s=e.type),s._status){case 1:return e=[r.createElement(s._result,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw s._result;default:throw Error(i(295))}case b:throw Error(i(343))}throw Error(i(130,null==s?s:typeof s,""))},t.renderDOM=function(e,t,n){var s=e.type.toLowerCase();if(n===re&&ie(s),!ve.hasOwnProperty(s)){if(!ge.test(s))throw Error(i(65,s));ve[s]=!0}var a=e.props;if("input"===s)a=o({type:void 0},a,{defaultChecked:void 0,defaultValue:void 0,value:null!=a.value?a.value:a.defaultValue,checked:null!=a.checked?a.checked:a.defaultChecked});else if("textarea"===s){var l=a.value;if(null==l){l=a.defaultValue;var u=a.children;if(null!=u){if(null!=l)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}l=""+u}null==l&&(l="")}a=o({},a,{value:void 0,children:""+l})}else if("select"===s)this.currentSelectValue=null!=a.value?a.value:a.defaultValue,a=o({},a,{value:void 0});else if("option"===s){u=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(a.children);if(null!=u){var p=null!=a.value?a.value+"":c;if(l=!1,Array.isArray(u)){for(var d=0;d<u.length;d++)if(""+u[d]===p){l=!0;break}}else l=""+u===p;a=o({selected:void 0,children:void 0},a,{selected:l,children:c})}}if(l=a){if(ae[s]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(i(137,s,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(i(60));if("object"!=typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(i(62,""))}for(w in l=a,u=this.makeStaticMarkup,c=1===this.stack.length,p="<"+e.type,l)if(ye.call(l,w)){var h=l[w];if(null!=h){if("style"===w){d=void 0;var f="",g="";for(d in h)if(h.hasOwnProperty(d)){var v=0===d.indexOf("--"),m=h[d];if(null!=m){if(v)var y=d;else if(y=d,me.hasOwnProperty(y))y=me[y];else{var C=y.replace(ce,"-$1").toLowerCase().replace(pe,"-ms-");y=me[y]=C}f+=g+y+":",g=d,f+=v=null==m||"boolean"==typeof m||""===m?"":v||"number"!=typeof m||0===m||le.hasOwnProperty(g)&&le[g]?(""+m).trim():m+"px",g=";"}}h=f||null}d=null;e:if(v=s,m=l,-1===v.indexOf("-"))v="string"==typeof m.is;else switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":v=!1;break e;default:v=!0}v?Ce.hasOwnProperty(w)||(d=N(d=w)&&null!=h?d+'="'+G(h)+'"':""):d=V(w,h),d&&(p+=" "+d)}}u||c&&(p+=' data-reactroot=""');var w=p;l="",se.hasOwnProperty(s)?w+="/>":(w+=">",l="</"+e.type+">");e:{if(null!=(u=a.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=a.children)||"number"==typeof u){u=G(u);break e}u=null}return null!=u?(a=[],fe.hasOwnProperty(s)&&"\n"===u.charAt(0)&&(w+="\n"),w+=u):a=de(a.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:s,children:a,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,w},e}(),_e={renderToString:function(e){e=new Ee(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Ee(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.13.1"};e.exports=_e.default||_e},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(o=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var r=function(){function e(){var e;this.strategyMap=((e={})[o.DeepValueCheck]=new s,e[o.IdentityCheck]=new i((function(e,t){return e===t})),e[o.NoCheck]=new i((function(e,t){return!0})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=r;var i=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),s=function(){function e(){}return e.prototype.areEqual=function(t,n){return e.areEquivalent(e.copy(t),e.copy(n))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!=typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"==typeof e&&isNaN(e)},e.areEquivalent=function(t,n){if(t=e.unwrapStringOrNumber(t),n=e.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!=typeof n)return!1;if(e.isNaN(t)&&e.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"==typeof t)return t.toString()===n.toString();if("object"!=typeof t)return t==n;var o=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var i=void 0;if(o)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===n})))return!0;if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var s={};for(i in t)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in n)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in s)if(!this.areEquivalent(t[i],n[i]))return!1;return!0}finally{o&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}},e}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"FunctionToString",(function(){return c})),n.d(o,"InboundFilters",(function(){return y}));var r,i=n(0),s=n.n(i),a=n(42),l=n.n(a),u=n(1),c=(n(107),function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return r.apply(n,e)}},e.id="FunctionToString",e}()),p=n(7),d=n(68),h=n(130),f=n(44),g=n(11),v=n(43),m=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],y=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Object(d.b)((function(t){var n=Object(h.a)();if(!n)return t;var o=n.getIntegration(e);if(o){var r=n.getClient(),i=r?r.getOptions():{},s=o._mergeOptions(i);if(o._shouldDropEvent(t,s))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(f.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(g.d)(e)),!0):this._isIgnoredError(e,t)?(f.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(g.d)(e)),!0):this._isBlacklistedUrl(e,t)?(f.a.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Object(g.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&(f.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(g.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(v.a)(e,t)}))}))},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.blacklistUrls.some((function(e){return Object(v.a)(n,e)}))},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.whitelistUrls.some((function(e){return Object(v.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:p.d(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:p.d(this._options.ignoreErrors||[],e.ignoreErrors||[],m),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:p.d(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,o=void 0===n?"":n,r=t.value,i=void 0===r?"":r;return[""+i,o+": "+i]}catch(t){return f.a.error("Cannot extract message for event "+Object(g.d)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return f.a.error("Cannot extract url for event "+Object(g.d)(e)),null}},e.id="InboundFilters",e}();var C=n(59),w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var b=function(e){function t(t){var n=this.constructor,o=e.call(this,t)||this;return o.message=t,o.name=n.prototype.constructor.name,w(o,n.prototype),o}return p.b(t,e),t}(Error),E=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,_=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,o=t.path,r=t.pass,i=t.port,s=t.projectId;return t.protocol+"://"+t.user+(e&&r?":"+r:"")+"@"+n+(i?":"+i:"")+"/"+(o?o+"/":o)+s},e.prototype._fromString=function(e){var t=E.exec(e);if(!t)throw new b("Invalid Dsn");var n=p.c(t.slice(1),6),o=n[0],r=n[1],i=n[2],s=void 0===i?"":i,a=n[3],l=n[4],u=void 0===l?"":l,c="",d=n[5],h=d.split("/");h.length>1&&(c=h.slice(0,-1).join("/"),d=h.pop()),this._fromComponents({host:a,pass:s,path:c,projectId:d,port:u,protocol:o,user:r})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new b("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new b("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new b("Invalid Dsn")},e}(),O=n(28),R=function(){function e(e){this.dsn=e,this._dsnObject=new _(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+Object(O.e)(e)},e.prototype._getBaseUrl=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,o=["Sentry sentry_version=7"];return o.push("sentry_client="+e+"/"+t),o.push("sentry_key="+n.user),n.pass&&o.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":o.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",o=[];for(var r in o.push("dsn="+t.toString()),e)if("user"===r){if(!e.user)continue;e.user.name&&o.push("name="+encodeURIComponent(e.user.name)),e.user.email&&o.push("email="+encodeURIComponent(e.user.email))}else o.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return o.length?n+"?"+o.join("&"):n},e}(),S=n(13),T=[];function D(e){var t={};return function(e){var t=e.defaultIntegrations&&p.d(e.defaultIntegrations)||[],n=e.integrations,o=[];if(Array.isArray(n)){var r=n.map((function(e){return e.name})),i=[];t.forEach((function(e){-1===r.indexOf(e.name)&&-1===i.indexOf(e.name)&&(o.push(e),i.push(e.name))})),n.forEach((function(e){-1===i.indexOf(e.name)&&(o.push(e),i.push(e.name))}))}else"function"==typeof n?(o=n(t),o=Array.isArray(o)?o:[o]):o=p.d(t);var s=o.map((function(e){return e.name}));return-1!==s.indexOf("Debug")&&o.push.apply(o,p.d(o.splice(s.indexOf("Debug"),1))),o}(e).forEach((function(e){t[e.name]=e,function(e){-1===T.indexOf(e.name)&&(e.setupOnce(d.b,h.a),T.push(e.name),f.a.log("Integration installed: "+e.name))}(e)})),t}var P,I=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new _(t.dsn))}return e.prototype.captureException=function(e,t,n){var o=this,r=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then((function(e){return o._processEvent(e,t,n)})).then((function(e){r=e&&e.event_id,o._processing=!1})).then(null,(function(e){f.a.error(e),o._processing=!1})),r},e.prototype.captureMessage=function(e,t,n,o){var r=this,i=n&&n.event_id;return this._processing=!0,(Object(S.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n)).then((function(e){return r._processEvent(e,n,o)})).then((function(e){i=e&&e.event_id,r._processing=!1})).then(null,(function(e){f.a.error(e),r._processing=!1})),i},e.prototype.captureEvent=function(e,t,n){var o=this,r=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,n).then((function(e){r=e&&e.event_id,o._processing=!1})).then(null,(function(e){f.a.error(e),o._processing=!1})),r},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return clearInterval(n.interval),t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=D(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return f.a.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new C.a((function(n){var o=0,r=0;clearInterval(r),r=setInterval((function(){t._processing?(o+=1,e&&o>=e&&n({interval:r,ready:!1})):n({interval:r,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var o=this,r=this.getOptions(),i=r.environment,s=r.release,a=r.dist,l=r.maxValueLength,u=void 0===l?250:l,c=r.normalizeDepth,d=void 0===c?3:c,h=p.a({},e);void 0===h.environment&&void 0!==i&&(h.environment=i),void 0===h.release&&void 0!==s&&(h.release=s),void 0===h.dist&&void 0!==a&&(h.dist=a),h.message&&(h.message=Object(v.d)(h.message,u));var f=h.exception&&h.exception.values&&h.exception.values[0];f&&f.value&&(f.value=Object(v.d)(f.value,u));var m=h.request;m&&m.url&&(m.url=Object(v.d)(m.url,u)),void 0===h.event_id&&(h.event_id=n&&n.event_id?n.event_id:Object(g.m)()),this._addIntegrations(h.sdk);var y=C.a.resolve(h);return t&&(y=t.applyToEvent(h,n)),y.then((function(e){return"number"==typeof d&&d>0?o._normalizeEvent(e,d):e}))},e.prototype._normalizeEvent=function(e,t){return e?p.a({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return p.a({},e,e.data&&{data:Object(O.c)(e.data,t)})}))},e.user&&{user:Object(O.c)(e.user,t)},e.contexts&&{contexts:Object(O.c)(e.contexts,t)},e.extra&&{extra:Object(O.c)(e.extra,t)}):null},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,n){var o=this,r=this.getOptions(),i=r.beforeSend,s=r.sampleRate;return this._isEnabled()?"number"==typeof s&&Math.random()>s?C.a.reject("This event has been sampled, will not send event."):new C.a((function(r,s){o._prepareEvent(e,n,t).then((function(e){if(null!==e){var n=e;if(t&&t.data&&!0===t.data.__sentry__||!i)return o._getBackend().sendEvent(n),void r(n);var a=i(e,t);if(void 0===a)f.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(S.m)(a))o._handleAsyncBeforeSend(a,r,s);else{if(null===(n=a))return f.a.log("`beforeSend` returned `null`, will not send event."),void r(null);o._getBackend().sendEvent(n),r(n)}}else s("An event processor returned null, will not send event.")})).then(null,(function(e){o.captureException(e,{data:{__sentry__:!0},originalException:e}),s("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))})):C.a.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,n){var o=this;e.then((function(e){null!==e?(o._getBackend().sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){n("beforeSend rejected with "+e)}))},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(P||(P={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(P||(P={}));var A,N=function(){function e(){}return e.prototype.sendEvent=function(e){return C.a.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:P.Skipped})},e.prototype.close=function(e){return C.a.resolve(!0)},e}(),x=function(){function e(e){this._options=e,this._options.dsn||f.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new N},e.prototype.eventFromException=function(e,t){throw new b("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new b("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){f.a.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e}();function F(){if(!("fetch"in Object(g.f)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function L(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function M(){if(!F())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(A||(A={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(A||(A={}));var k=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,G=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,V=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,j=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,W=/\((\S*)(?::(\d+))(?::(\d+))\)/;function H(e){var t=null,n=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,o=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),s=[],a=0;a<i.length;a+=2){var l=null;(t=o.exec(i[a]))?l={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(i[a]))&&(l={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),l&&(!l.func&&l.line&&(l.func="?"),s.push(l))}if(!s.length)return null;return{message:z(e),name:e.name,stack:s}}(e))return B(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,o,r=[],i=e.stack.split("\n"),s=0;s<i.length;++s){if(n=k.exec(i[s])){var a=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=W.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),o={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:a?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=V.exec(i[s]))o={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=G.exec(i[s])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=j.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==s||n[5]||void 0===e.columnNumber||(r[0].column=e.columnNumber+1),o={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!o.func&&o.line&&(o.func="?"),r.push(o)}if(!r.length)return null;return{message:z(e),name:e.name,stack:r}}(e))return B(t,n)}catch(e){}return{message:z(e),name:e&&e.name,stack:[],failed:!0}}function B(e,t){try{return p.a({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function z(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function U(e){var t=Y(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function q(e){return{exception:{values:[U(e)]}}}function Y(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",o=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==o.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).slice(0,50).reverse()}function K(e,t,n){var o;if(void 0===n&&(n={}),Object(S.e)(e)&&e.error)return o=q(H(e=e.error));if(Object(S.a)(e)||Object(S.b)(e)){var r=e,i=r.name||(Object(S.a)(r)?"DOMError":"DOMException"),s=r.message?i+": "+r.message:i;return o=$(s,t,n),Object(g.b)(o,s),o}return Object(S.d)(e)?o=q(H(e)):Object(S.h)(e)||Object(S.f)(e)?(o=function(e,t,n){var o={exception:{values:[{type:Object(S.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(O.a)(e)}]},extra:{__serialized__:Object(O.d)(e)}};if(t){var r=Y(H(t).stack);o.stacktrace={frames:r}}return o}(e,t,n.rejection),Object(g.a)(o,{synthetic:!0}),o):(o=$(e,t,n),Object(g.b)(o,""+e,void 0),Object(g.a)(o,{synthetic:!0}),o)}function $(e,t,n){void 0===n&&(n={});var o={message:e};if(n.attachStacktrace&&t){var r=Y(H(t).stack);o.stacktrace={frames:r}}return o}var Q=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):C.a.reject(new b("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new C.a((function(n){var o=setTimeout((function(){e&&e>0&&n(!1)}),e);C.a.all(t._buffer).then((function(){clearTimeout(o),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),X=function(){function e(e){this.options=e,this._buffer=new Q(30),this.url=new R(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new b("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),J=Object(g.f)(),Z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return p.b(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n={body:JSON.stringify(e),method:"POST",referrerPolicy:M()?"origin":""};return void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new C.a((function(e,o){J.fetch(t.url,n).then((function(n){var r=P.fromHttpCode(n.status);if(r!==P.Success){if(r===P.RateLimit){var i=Date.now();t._disabledUntil=new Date(i+Object(g.j)(i,n.headers.get("Retry-After"))),f.a.warn("Too many requests, backing off till: "+t._disabledUntil)}o(n)}else e({status:r})})).catch(o)})))},t}(X),ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return p.b(t,e),t.prototype.sendEvent=function(e){var t=this;return new Date(Date.now())<this._disabledUntil?Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429}):this._buffer.add(new C.a((function(n,o){var r=new XMLHttpRequest;for(var i in r.onreadystatechange=function(){if(4===r.readyState){var e=P.fromHttpCode(r.status);if(e!==P.Success){if(e===P.RateLimit){var i=Date.now();t._disabledUntil=new Date(i+Object(g.j)(i,r.getResponseHeader("Retry-After"))),f.a.warn("Too many requests, backing off till: "+t._disabledUntil)}o(r)}else n({status:e})}},r.open("POST",t.url),t.options.headers)t.options.headers.hasOwnProperty(i)&&r.setRequestHeader(i,t.options.headers[i]);r.send(JSON.stringify(e))})))},t}(X),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p.b(t,e),t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=p.a({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):F()?new Z(t):new ee(t)},t.prototype.eventFromException=function(e,t){var n=K(e,t&&t.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return Object(g.a)(n,{handled:!0,type:"generic"}),n.level=A.Error,t&&t.event_id&&(n.event_id=t.event_id),C.a.resolve(n)},t.prototype.eventFromMessage=function(e,t,n){void 0===t&&(t=A.Info);var o=$(e,n&&n.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return o.level=t,n&&n.event_id&&(o.event_id=n.event_id),C.a.resolve(o)},t}(x),ne=function(e){function t(t){return void 0===t&&(t={}),e.call(this,te,t)||this}return p.b(t,e),t.prototype._prepareEvent=function(t,n,o){return t.platform=t.platform||"javascript",t.sdk=p.a({},t.sdk,{name:"sentry.javascript.browser",packages:p.d(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.15.5"}]),version:"5.15.5"}),e.prototype._prepareEvent.call(this,t,n,o)},t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=Object(g.f)().document;if(t)if(this._isEnabled()){var n=e.dsn||this.getDsn();if(e.eventId)if(n){var o=t.createElement("script");o.async=!0,o.src=new R(n).getReportDialogEndpoint(e),e.onLoad&&(o.onload=e.onLoad),(t.head||t.body).appendChild(o)}else f.a.error("Missing `Dsn` option in showReportDialog call");else f.a.error("Missing `eventId` option in showReportDialog call")}else f.a.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(I),oe=n(21),re=0;function ie(){return re>0}function se(){re+=1,setTimeout((function(){re-=1}))}function ae(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var o=function(){var o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var r=o.map((function(e){return ae(e,t)}));return e.handleEvent?e.handleEvent.apply(this,r):e.apply(this,r)}catch(e){throw se(),Object(oe.c)((function(n){n.addEventProcessor((function(e){var n=p.a({},e);return t.mechanism&&(Object(g.b)(n,void 0,void 0),Object(g.a)(n,t.mechanism)),n.extra=p.a({},n.extra,{arguments:o}),n})),Object(oe.a)(e)})),e}};try{for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r])}catch(e){}e.prototype=e.prototype||{},o.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:o}),Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return e.name}})}catch(e){}return o}var le,ue=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t[0];return t[0]=ae(o,{mechanism:{data:{function:Object(g.e)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e(ae(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(g.e)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(g.f)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(O.b)(n,"addEventListener",(function(t){return function(n,o,r){try{"function"==typeof o.handleEvent&&(o.handleEvent=ae(o.handleEvent.bind(o),{mechanism:{data:{function:"handleEvent",handler:Object(g.e)(o),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,ae(o,{mechanism:{data:{function:"addEventListener",handler:Object(g.e)(o),target:e},handled:!0,type:"instrument"}}),r)}})),Object(O.b)(n,"removeEventListener",(function(e){return function(t,n,o){var r=n;try{r=r&&(r.__sentry_wrapped__||r)}catch(e){}return e.call(this,t,r,o)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=this,r=["onload","onerror","onprogress","onreadystatechange"];return r.forEach((function(e){e in o&&"function"==typeof o[e]&&Object(O.b)(o,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(g.e)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Object(g.e)(t.__sentry_original__)),ae(t,n)}))})),e.apply(this,t)}},e.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=Object(g.f)();Object(O.b)(e,"setTimeout",this._wrapTimeFunction.bind(this)),Object(O.b)(e,"setInterval",this._wrapTimeFunction.bind(this)),Object(O.b)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),"XMLHttpRequest"in e&&Object(O.b)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},e.id="TryCatch",e}(),ce=Object(g.f)(),pe={},de={};function he(e){if(!de[e])switch(de[e]=!0,e){case"console":!function(){if(!("console"in ce))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in ce.console&&Object(O.b)(ce.console,e,(function(t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];ge("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,ce.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in ce))return;ce.document.addEventListener("click",be("click",ge.bind(null,"dom")),!1),ce.document.addEventListener("keypress",Ee(ge.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=ce[e]&&ce[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(O.b)(t,"addEventListener",(function(e){return function(t,n,o){return n&&n.handleEvent?("click"===t&&Object(O.b)(n,"handleEvent",(function(e){return function(t){return be("click",ge.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Object(O.b)(n,"handleEvent",(function(e){return function(t){return Ee(ge.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&be("click",ge.bind(null,"dom"),!0)(this),"keypress"===t&&Ee(ge.bind(null,"dom"))(this)),e.call(this,t,n,o)}})),Object(O.b)(t,"removeEventListener",(function(e){return function(t,n,o){var r=n;try{r=r&&(r.__sentry_wrapped__||r)}catch(e){}return e.call(this,t,r,o)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in ce))return;var e=XMLHttpRequest.prototype;Object(O.b)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t[1];return this.__sentry_xhr__={method:Object(S.k)(t[0])?t[0].toUpperCase():t[0],url:t[1]},Object(S.k)(o)&&"POST"===this.__sentry_xhr__.method&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0),e.apply(this,t)}})),Object(O.b)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=this,r={args:t,startTimestamp:Date.now(),xhr:o};return ge("xhr",p.a({},r)),o.addEventListener("readystatechange",(function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(e){}ge("xhr",p.a({},r,{endTimestamp:Date.now()}))}})),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!F())return!1;var e=Object(g.f)();if(L(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(t=L(o.contentWindow.fetch)),n.head.removeChild(o)}catch(e){f.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;Object(O.b)(ce,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o={args:t,fetchData:{method:ve(t),url:me(t)},startTimestamp:Date.now()};return ge("fetch",p.a({},o)),e.apply(ce,t).then((function(e){return ge("fetch",p.a({},o,{endTimestamp:Date.now(),response:e})),e}),(function(e){throw ge("fetch",p.a({},o,{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(e=Object(g.f)(),t=e.chrome,n=t&&t.app&&t.app.runtime,o="history"in e&&!!e.history.pushState&&!!e.history.replaceState,n||!o)return;var e,t,n,o;var r=ce.onpopstate;function i(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t.length>2?t[2]:void 0;if(o){var r=le,i=String(o);le=i,ge("history",{from:r,to:i})}return e.apply(this,t)}}ce.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ce.location.href,o=le;if(le=n,ge("history",{from:o,to:n}),r)return r.apply(this,e)},Object(O.b)(ce.history,"pushState",i),Object(O.b)(ce.history,"replaceState",i)}();break;case"error":_e=ce.onerror,ce.onerror=function(e,t,n,o,r){return ge("error",{column:o,error:r,line:n,msg:e,url:t}),!!_e&&_e.apply(this,arguments)};break;case"unhandledrejection":Oe=ce.onunhandledrejection,ce.onunhandledrejection=function(e){return ge("unhandledrejection",e),!Oe||Oe.apply(this,arguments)};break;default:f.a.warn("unknown instrumentation type:",e)}}function fe(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(pe[e.type]=pe[e.type]||[],pe[e.type].push(e.callback),he(e.type))}function ge(e,t){var n,o;if(e&&pe[e])try{for(var r=p.e(pe[e]||[]),i=r.next();!i.done;i=r.next()){var s=i.value;try{s(t)}catch(t){f.a.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(g.e)(s)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}}function ve(e){return void 0===e&&(e=[]),"Request"in ce&&Object(S.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function me(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in ce&&Object(S.g)(e[0],Request)?e[0].url:String(e[0])}var ye,Ce,we=0;function be(e,t,n){return void 0===n&&(n=!1),function(o){ye=void 0,o&&Ce!==o&&(Ce=o,we&&clearTimeout(we),n?we=setTimeout((function(){t({event:o,name:e})})):t({event:o,name:e}))}}function Ee(e){return function(t){var n;try{n=t.target}catch(e){return}var o=n&&n.tagName;o&&("INPUT"===o||"TEXTAREA"===o||n.isContentEditable)&&(ye||be("input",e)(t),clearTimeout(ye),ye=setTimeout((function(){ye=void 0}),1e3))}}var _e=null;var Oe=null;var Re=function(){function e(t){this.name=e.id,this._options=p.a({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:A.fromString(e.level),message:Object(v.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(v.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}Object(h.a)().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(g.h)(e.event.target):Object(g.h)(e.event)}catch(e){t="<unknown>"}0!==t.length&&Object(h.a)().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;Object(h.a)().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else this._options.sentry&&e.xhr.__sentry_own_request__&&Se(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=Object(h.a)().getClient(),n=t&&t.getDsn();if(this._options.sentry&&n){var o=new R(n).getStoreEndpoint();if(o&&-1!==e.fetchData.url.indexOf(o)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void Se(e.args[1].body)}e.error?Object(h.a)().addBreadcrumb({category:"fetch",data:p.a({},e.fetchData,{status_code:e.response.status}),level:A.Error,type:"http"},{data:e.error,input:e.args}):Object(h.a)().addBreadcrumb({category:"fetch",data:p.a({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=Object(g.f)(),n=e.from,o=e.to,r=Object(g.k)(t.location.href),i=Object(g.k)(n),s=Object(g.k)(o);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(o=s.relative),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),Object(h.a)().addBreadcrumb({category:"navigation",data:{from:n,to:o}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&fe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,p.d(t))},type:"console"}),this._options.dom&&fe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,p.d(t))},type:"dom"}),this._options.xhr&&fe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,p.d(t))},type:"xhr"}),this._options.fetch&&fe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,p.d(t))},type:"fetch"}),this._options.history&&fe({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,p.d(t))},type:"history"})},e.id="Breadcrumbs",e}();function Se(e){try{var t=JSON.parse(e);Object(h.a)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level||A.fromString("error"),message:Object(g.d)(t)},{event:t})}catch(e){f.a.error("Error while adding sentry type breadcrumb")}}var Te=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=p.a({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(f.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(f.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(fe({callback:function(n){var o=n.error,r=Object(h.a)(),i=r.getIntegration(e),s=o&&!0===o.__sentry_own_request__;if(i&&!ie()&&!s){var a=r.getClient(),l=Object(S.i)(o)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(K(o,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(g.a)(l,{handled:!1,type:"onerror"}),r.captureEvent(l,{originalException:o})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(fe({callback:function(n){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(e){}var r=Object(h.a)(),i=r.getIntegration(e),s=o&&!0===o.__sentry_own_request__;if(!i||ie()||s)return!0;var a=r.getClient(),l=Object(S.i)(o)?t._eventFromIncompleteRejection(o):K(o,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});l.level=A.Error,Object(g.a)(l,{handled:!1,type:"onunhandledrejection"}),r.captureEvent(l,{originalException:o})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,o){var r,i=Object(S.e)(e)?e.message:e;if(Object(S.k)(i)){var s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(r=s[1],i=s[2])}var a={exception:{values:[{type:r||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(a,t,n,o)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,o){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var r=isNaN(parseInt(o,10))?void 0:o,i=isNaN(parseInt(n,10))?void 0:n,s=Object(S.k)(t)&&t.length>0?t:Object(g.g)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:r,filename:s,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),De=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Object(d.b)((function(t,n){var o=Object(h.a)().getIntegration(e);return o?o._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(S.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=p.d(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(S.g)(e[t],Error)||n.length+1>=this._limit)return n;var o=U(H(e[t]));return this._walkErrorTree(e[t],t,p.d([o],n))},e.id="LinkedErrors",e}(),Pe=Object(g.f)(),Ie=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Object(d.b)((function(t){if(Object(h.a)().getIntegration(e)){if(!Pe.navigator||!Pe.location)return t;var n=t.request||{};return n.url=n.url||Pe.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=Pe.navigator.userAgent,p.a({},t,{request:n})}return t}))},e.id="UserAgent",e}(),Ae=[new o.InboundFilters,new o.FunctionToString,new ue,new Re,new Te,new De,new Ie];var Ne=n(75),xe=n(3),Fe=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Le{constructor(){this.transport="http",this.readonly=!1,this.updates=!1,this.headerLeftOffset=32,this.isBrowser=!0}update(e){Object(xe.has)(e,"transport")&&(this.transport=e.transport),Object(xe.has)(e,"readonly")&&(this.readonly=e.readonly),Object(xe.has)(e,"updates")&&(this.updates=e.updates),Object(xe.has)(e,"headerLeftOffset")&&(this.headerLeftOffset=e.headerLeftOffset),Object(xe.has)(e,"isBrowser")&&(this.isBrowser=e.isBrowser)}}Fe([u.observable],Le.prototype,"transport",void 0),Fe([u.observable],Le.prototype,"readonly",void 0),Fe([u.observable],Le.prototype,"updates",void 0),Fe([u.observable],Le.prototype,"headerLeftOffset",void 0),Fe([u.observable],Le.prototype,"isBrowser",void 0),Fe([u.action],Le.prototype,"update",null);var Me=new Le,ke="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Ge=new Uint8Array(16);function Ve(){if(!ke)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ke(Ge)}for(var je=[],We=0;We<256;++We)je[We]=(We+256).toString(16).substr(1);var He=function(e,t){var n=t||0,o=je;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")};var Be=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||Ve)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var i=0;i<16;++i)t[o+i]=r[i];return t||He(r)};let ze,Ue;const qe=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap;let Xe={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Ye.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Ke.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return et(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Je(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Ue||(Ue=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(tt(this),t),et(qe.get(this))}:function(...t){return et(e.apply(tt(this),t))}:function(t,...n){const o=e.call(tt(this),t,...n);return Ke.set(o,t.sort?t.sort():[t]),et(o)}}function Ze(e){return"function"==typeof e?Je(e):(e instanceof IDBTransaction&&function(e){if(Ye.has(e))return;const t=new Promise((t,n)=>{const o=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",i),e.removeEventListener("abort",i)},r=()=>{t(),o()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",r),e.addEventListener("error",i),e.addEventListener("abort",i)});Ye.set(e,t)}(e),((e,t)=>t.some(t=>e instanceof t))(e,ze||(ze=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Xe):e)}function et(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const o=()=>{e.removeEventListener("success",r),e.removeEventListener("error",i)},r=()=>{t(et(e.result)),o()},i=()=>{n(e.error),o()};e.addEventListener("success",r),e.addEventListener("error",i)});return t.then(t=>{t instanceof IDBCursor&&qe.set(t,e)}).catch(()=>{}),Qe.set(t,e),t}(e);if($e.has(e))return $e.get(e);const t=Ze(e);return t!==e&&($e.set(e,t),Qe.set(t,e)),t}const tt=e=>Qe.get(e);const nt=["get","getKey","getAll","getAllKeys","count"],ot=["put","add","delete","clear"],rt=new Map;function it(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(rt.get(t))return rt.get(t);const n=t.replace(/FromIndex$/,""),o=t!==n,r=ot.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!r&&!nt.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,r?"readwrite":"readonly");let s=i.store;o&&(s=s.index(t.shift()));const a=s[n](...t);return r&&await i.done,a};return rt.set(t,i),i}Xe=(e=>({...e,get:(t,n,o)=>it(t,n)||e.get(t,n,o),has:(t,n)=>!!it(t,n)||e.has(t,n)}))(Xe);var st=n(2);class at{constructor(e,t){this.cursor=()=>this.db.transaction(this.storeName).store.openCursor(),this.transaction=e=>this.db.transaction(this.storeName,e),this.getAll=async({projectId:e}={})=>{const t=await this.db.getAllFromIndex(this.storeName,"createdAt");return e?t.filter(t=>t.projectId===e):t},this.create=async e=>{try{await this.db.put(this.storeName,Object.assign(Object.assign({},e),{createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()}))}catch(e){console.log("Error during PersistenceItem.create",e,this.storeName)}},this.update=async(e,t)=>{try{const t=await this.db.get(this.storeName,e);await this.db.put(this.storeName,Object.assign(Object.assign({},t),{updatedAt:(new Date).toISOString()}))}catch(e){console.log("Error during PersistenceItem.update",e,this.storeName)}},this.delete=async e=>{try{await this.db.delete(this.storeName,e)}catch(e){console.log("Error during PersistenceItem.delete",e,this.storeName)}},this.clear=async()=>{try{await this.db.clear(this.storeName)}catch(e){console.log("Error during PersistenceItem.clear",e,this.storeName)}},this.storeName=e,this.db=t}}var lt=(e,t,n)=>{const o=r=>r===e.length?n&&n():t(e[r],()=>o(r+1));return o(0)};const ut=[(e,t,n)=>(e.createObjectStore("projects",{keyPath:"id"}),e.createObjectStore("openTabs",{keyPath:"id"}),e.createObjectStore("sessions",{keyPath:"id"}),e.createObjectStore("scripts",{keyPath:"id"}),n()),(e,t,n)=>(e.createObjectStore("models",{keyPath:"id"}),e.createObjectStore("fields",{keyPath:"id"}),e.createObjectStore("enums",{keyPath:"id"}),n()),(e,t,n)=>{const o=t.objectStore("sessions"),r=t.objectStore("scripts"),i=o.getAll();i.onsuccess=()=>{const e=r.getAll();e.onsuccess=()=>{const t=i.result,s=e.result;lt(t,(e,t)=>{const n=s.find(t=>t.id===e.scriptId);n?o.put(Object.assign(Object.assign({},e),{lastSavedHash:n.lastSavedHash||""})).onsuccess=t:e.lastSavedHash=""},()=>{lt(s,(e,t)=>{delete e.lastSavedHash,r.put(e).onsuccess=t},()=>n())})}}},(e,t,n)=>{e.createObjectStore("tabs",{keyPath:"id"});const o=t.objectStore("openTabs"),r=t.objectStore("tabs"),i=o.getAll();i.onsuccess=()=>{const t=i.result;lt(t,(e,t)=>{if(!e.sessionId)return t();e.preview=!1,r.put(e).onsuccess=t},()=>(e.deleteObjectStore("openTabs"),n()))}},(e,t,n)=>{const o=t.objectStore("tabs"),r=t.objectStore("projects"),i=o.getAll();i.onsuccess=()=>{const e=r.getAll();e.onsuccess=()=>{const t=i.result,o=e.result;lt(o,(e,n)=>{e.tabOrder=t.filter(t=>t.projectId===e.id).map(e=>e.id),r.put(e).onsuccess=n},()=>n())}}},(e,t,n)=>{const o=["tabs","sessions","scripts","models","fields","enums"],r={};lt(o,(e,n)=>{const o=t.objectStore(e).getAll();o.onsuccess=()=>{r[e]=o.result,n()}},()=>{lt(o,(n,o)=>{e.deleteObjectStore(n),e.createObjectStore(n,{keyPath:["id","projectId"]});const i=r[n];lt(i,(e,o)=>{t.objectStore(n).put(e).onsuccess=o},()=>o())},()=>(e.createObjectStore("actions",{keyPath:["id","projectId"]}),n()))})},(e,t,n)=>{const o=t.objectStore("projects"),r=o.getAll();r.onsuccess=()=>{const e=r.result;lt(e,(e,t)=>{e.theme="light",o.put(e).onsuccess=t},()=>n())}},(e,t,n)=>{const o=t.objectStore("sessions"),r=t.objectStore("scripts"),i=o.getAll();i.onsuccess=()=>{const e=i.result;lt(e,(e,t)=>{e.type=e.scriptId?"script":"fallback",o.put(e).onsuccess=t},()=>{const e=r.getAll();e.onsuccess=()=>{const t=e.result;lt(t,(e,t)=>{e.generated=!1,r.put(e).onsuccess=t},()=>n())}})}},(e,t,n)=>{const o=t.objectStore("scripts"),r=o.getAll();r.onsuccess=()=>{const e=r.result;lt(e,(e,t)=>{e.frozen=e.generated,delete e.generated,o.put(e).onsuccess=t},()=>n())}},(e,t,n)=>(e.deleteObjectStore("models"),e.deleteObjectStore("fields"),e.deleteObjectStore("enums"),n()),(e,t,n)=>{const o=t.objectStore("projects");o.createIndex("createdAt","createdAt"),o.createIndex("updatedAt","updatedAt");const r=t.objectStore("actions");r.createIndex("createdAt","createdAt"),r.createIndex("updatedAt","updatedAt");const i=t.objectStore("scripts");i.createIndex("createdAt","createdAt"),i.createIndex("updatedAt","updatedAt");const s=t.objectStore("sessions");s.createIndex("createdAt","createdAt"),s.createIndex("updatedAt","updatedAt");const a=t.objectStore("tabs");a.createIndex("createdAt","createdAt"),a.createIndex("updatedAt","updatedAt");const l=o.getAll();return l.onsuccess=()=>{const e=l.result;lt(e,(e,t)=>{delete e.tabOrder,e.createdAt=(new Date).toISOString(),e.updatedAt=(new Date).toISOString(),o.put(e).onsuccess=t},()=>{lt([r,i,s,a],(e,t)=>{const n=e.getAll();n.onsuccess=()=>{const o=n.result;lt(o,(t,n)=>{t.createdAt=(new Date).toISOString(),t.updatedAt=(new Date).toISOString(),e.put(t).onsuccess=n},()=>t())}},()=>n())})},n()},(e,t,n)=>{const o=t.objectStore("projects");o.deleteIndex("createdAt"),o.createIndex("createdAt",["id","createdAt"]),o.deleteIndex("updatedAt"),o.createIndex("updatedAt",["id","updatedAt"]);const r=t.objectStore("actions");r.deleteIndex("createdAt"),r.createIndex("createdAt",["id","projectId","createdAt"]),r.deleteIndex("updatedAt"),r.createIndex("updatedAt",["id","projectId","updatedAt"]);const i=t.objectStore("scripts");i.deleteIndex("createdAt"),i.createIndex("createdAt",["id","projectId","createdAt"]),i.deleteIndex("updatedAt"),i.createIndex("updatedAt",["id","projectId","updatedAt"]);const s=t.objectStore("sessions");s.deleteIndex("createdAt"),s.createIndex("createdAt",["id","projectId","createdAt"]),s.deleteIndex("updatedAt"),s.createIndex("updatedAt",["id","projectId","updatedAt"]);const a=t.objectStore("tabs");return a.deleteIndex("createdAt"),a.createIndex("createdAt",["id","projectId","createdAt"]),a.deleteIndex("updatedAt"),a.createIndex("updatedAt",["id","projectId","updatedAt"]),n()},(e,t,n)=>{const o=t.objectStore("scripts"),r=o.getAll();r.onsuccess=()=>{const e=r.result;lt(e,(e,t)=>{e.where=e.where.map(e=>(e.fieldIds=[e.fieldId],delete e.fieldId,e)),o.put(e).onsuccess=t},()=>n())}}];var ct=(e,t,n,o)=>{console.log("------Starting IndexedDB migration------");const r=tt(o);lt(ut.slice(t),(t,n)=>t(e,r,n),()=>console.log("------IndexedDB migration complete------"))};var pt=new class{constructor(){this.databaseName="Prisma Studio",this.indexedDBVersion=13,this.databaseInstance=null,this.projectId="",this.ready=!1,this.init=async({projectId:e})=>{try{this.projectId=e,this.databaseInstance=await function(e,t,{blocked:n,upgrade:o,blocking:r,terminated:i}={}){const s=indexedDB.open(e,t),a=et(s);return o&&s.addEventListener("upgradeneeded",e=>{o(et(s.result),e.oldVersion,e.newVersion,et(s.transaction))}),n&&s.addEventListener("blocked",()=>n()),a.then(e=>{i&&e.addEventListener("close",()=>i()),r&&e.addEventListener("versionchange",()=>r())}).catch(()=>{}),a}(this.databaseName,this.indexedDBVersion,{upgrade:ct}),this.projects=new at("projects",this.databaseInstance),this.tabs=new at("tabs",this.databaseInstance),this.sessions=new at("sessions",this.databaseInstance),this.scripts=new at("scripts",this.databaseInstance),this.actions=new at("actions",this.databaseInstance),this.ready=!0}catch(e){throw Object(st.a)("PersistenceStore.init","Unable to init PersistenceStore",{},e)}},this.save=(e,t)=>new Promise(async(n,o)=>{if(!this.ready)throw Object(st.a)("PersistenceStore.save","PersistenceStore is not ready to receive `save` operations yet",{tableName:e,value:t});try{switch(e){case"sessions":await this.sessions.create(t);break;case"scripts":await this.scripts.create(t);break;case"tabs":await this.tabs.create(t);break;case"projects":await this.projects.create(t);break;case"actions":await this.actions.create(t)}n()}catch(e){o(e)}}),this.load=async e=>new Promise(async(t,n)=>{if(!this.ready)throw Object(st.a)("PersistenceStore.load","PersistenceStore is not ready to receive `load` operations yet",{tableName:e});try{switch(e){case"projects":return t(await this.projects.getAll());default:return t(await this[e].getAll({projectId:this.projectId}))}}catch(e){return n(e)}}),this.remove=async(e,t)=>new Promise(async(n,o)=>{if(!this.ready)throw Object(st.a)("PersistenceStore.remove","PersistenceStore is not ready to receive `remove` operations yet",{tableName:e,id:t});try{switch(e){case"projects":return await this[e].delete(t),n();default:return await this[e].delete([t,this.projectId]),n()}}catch(e){return o(e)}}),this.clear=async e=>new Promise(async(t,n)=>{if(!this.ready)throw Object(st.a)("PersistenceStore.clear","PersistenceStore is not ready to receive `clear` operations yet",{tableName:e});try{return await this[e].clear(),t()}catch(e){return n(e)}}),this.clearAll=async()=>{var e;null===(e=this.databaseInstance)||void 0===e||e.close(),await function(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",()=>t()),et(n).then(()=>{})}(this.databaseName)}}},dt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class ht{constructor(e,{idbTableName:t}={}){this.idbTableName=null,this.members={},this.restore=async()=>{if(this.idbTableName){(await pt.load(this.idbTableName)).forEach(e=>{e?this.add(e,{skipPersist:!0}):console.warn("Attempt to restore a null member from IndexedDB, ignoring",{member:e,idbTableName:this.idbTableName})})}return Promise.resolve()},this.type=e,this.idbTableName=null!=t?t:null}get values(){return this.members}get size(){return Object.keys(this.members).length}get(e){return e&&this.members[e]||null}add(e,{skipPersist:t=!1}={}){let n;if(e.id||(e.id=Be()),this.members[e.id])n=this.members[e.id],n.update(e,{skipPersist:t});else{n=new(0,this.type)(e),n.idbTableName=this.idbTableName,this.members[e.id]=n,!t&&this.idbTableName&&pt.save(this.idbTableName,n.serialize())}return n}remove(e){const t=this.members[e];return t&&delete this.members[e],this.idbTableName&&pt.remove(this.idbTableName,e),t}clear(){this.members={},this.idbTableName&&pt.clear(this.idbTableName)}toJS(){return Object(u.toJS)(this)}}dt([u.observable],ht.prototype,"type",void 0),dt([u.observable],ht.prototype,"idbTableName",void 0),dt([u.observable],ht.prototype,"members",void 0),dt([u.computed],ht.prototype,"values",null),dt([u.computed],ht.prototype,"size",null),dt([u.action],ht.prototype,"restore",void 0),dt([u.action],ht.prototype,"add",null),dt([u.action],ht.prototype,"remove",null),dt([u.action],ht.prototype,"clear",null),dt([u.action],ht.prototype,"toJS",null);var ft=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class gt{constructor(e){this.forceUpdate=async()=>{await pt.save(this.idbTableName,this.serialize())},this.id=e.id}update(e,{skipPersist:t=!1}={}){if(!t&&this.idbTableName){const t=this.serialize(),n=Object.keys(t),o=Object.keys(e);new Set([...n,...o]).size!==n.length+o.length&&this.forceUpdate()}}serialize(){}}ft([u.observable],gt.prototype,"id",void 0),ft([u.observable],gt.prototype,"idbTableName",void 0),ft([u.action],gt.prototype,"update",null),ft([u.action],gt.prototype,"forceUpdate",void 0);var vt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class mt{constructor(){this.theme="light"}apply(e){this.theme=e}hydrate(e){this.apply(e)}}vt([u.observable],mt.prototype,"theme",void 0),vt([u.action],mt.prototype,"apply",null),vt([u.action],mt.prototype,"hydrate",null);var yt=new mt;var Ct=e=>e;var wt=e=>e,bt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Et extends gt{constructor(e){super(e),this.id=e.id,this.name=e.name,this.values=e.values}update(e,t={}){Object(xe.has)(e,"name")&&(this.name=e.name),Object(xe.has)(e,"values")&&(this.values=e.values),super.update(e,t)}}bt([u.observable],Et.prototype,"id",void 0),bt([u.observable],Et.prototype,"name",void 0),bt([u.observable],Et.prototype,"values",void 0),bt([u.action],Et.prototype,"update",null);var _t=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Ot extends ht{constructor(){super(Et),this.getByName=e=>this.get(e)}add(e,t={}){return super.add(Object.assign({id:wt(e.name)},e),t)}}_t([u.action],Ot.prototype,"add",null);var Rt=new Ot,St=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Tt extends gt{constructor(e){if(super(e),this.id=e.id,this.modelId=e.modelId,this.name=e.name,this.type=e.type,this.kind=e.kind,"Json"===this.type&&"string"==typeof e.default)try{this.default=JSON.parse(e.default)}catch(t){this.default=e.default}else if("BigInt"===this.type&&"string"==typeof e.default)try{this.default=BigInt(e.default)}catch(t){this.default=e.default}else this.default=e.default;this.isId=e.isId,this.isUnique=e.isUnique,this.isRequired=e.isRequired,this.isList=e.isList,this.isReadOnly=e.isReadOnly,this.isUpdatedAt=e.isUpdatedAt,this.relationName=e.relationName,this.relationFromFieldNames=e.relationFromFieldNames,this.relationToFieldNames=e.relationToFieldNames}get model(){return kt.get(this.modelId)}get isScalar(){return"scalar"===this.kind&&!this.isEnum}get isString(){return"String"===this.type}get isInt(){return"Int"===this.type}get isBigInt(){return"BigInt"===this.type}get isFloat(){return"Float"===this.type}get isDecimal(){return"Decimal"===this.type}get isBoolean(){return"Boolean"===this.type}get isDateTime(){return"DateTime"===this.type}get isJson(){return"Json"===this.type}get isBytes(){return"Bytes"===this.type}get isEnum(){return!!this.typeAsEnum}get isRelation(){return"object"===this.kind}get isPartOfRelation(){return null!==this.relationItIsPartOf}get relationItIsPartOf(){return this.model&&this.model.fields.find(e=>e.isRelation&&e.relationFromFieldNames.includes(this.name))||null}get isSortable(){return this.isScalar&&!this.isList||this.isEnum&&!this.isList}get isFunctionDefault(){return"string"!=typeof this.default&&"number"!=typeof this.default&&"boolean"!=typeof this.default&&"bigint"!=typeof this.default&&!Object(xe.isArray)(this.default)}get defaultAsString(){return this.isList?"[]":this.default?"string"==typeof this.default||"number"==typeof this.default||"boolean"==typeof this.default?""+this.default:"bigint"==typeof this.default||Object(xe.isArray)(this.default)?this.default.toString():Object(xe.isObject)(this.default)?this.default.name+"()":"":""}get placeholder(){return this.isList?"[]":this.isString?"Value":this.isInt||this.isFloat||this.isBigInt||this.isDecimal?"1337":this.isBoolean?"false":this.isDateTime?(new Date).toISOString():this.isJson?"{}":this.isEnum?this.typeAsEnum.values[0]:this.isRelation?"ID":"Value"}get typeAsModel(){return this.isRelation?kt.getByName(this.type):null}get typeAsEnum(){return Rt.getByName(this.type)}get typeAsLabel(){let e=this.type;const t=this.typeAsModel;return t&&(e=t.name),this.isList?e+="[]":this.isRequired||(e+="?"),e}get lowestValidValue(){if(this.isList)return[];if(!this.isRequired)return null;if(this.isString)return"";if(this.isInt||this.isFloat||this.isDecimal)return 0;if(this.isBigInt)return BigInt(0);if(this.isBoolean)return!1;if(this.isDateTime)return new Date(0).toISOString();if(this.isJson)return{};if(this.isEnum){if(!this.typeAsEnum)throw Object(st.a)("Field.lowestValidValue","Invalid type of field: enum",{fieldId:this.id,type:this.type});return this.typeAsEnum.values[0]}return null}update(e,t={}){Object(xe.has)(e,"default")&&(this.default=e.default),Object(xe.has)(e,"isId")&&(this.isId=e.isId),Object(xe.has)(e,"isUnique")&&(this.isUnique=e.isUnique),Object(xe.has)(e,"isRequired")&&(this.isRequired=e.isRequired),Object(xe.has)(e,"isList")&&(this.isList=e.isList),Object(xe.has)(e,"isReadOnly")&&(this.isReadOnly=e.isReadOnly),Object(xe.has)(e,"isUpdatedAt")&&(this.isUpdatedAt=e.isUpdatedAt),super.update(e,t)}}St([u.observable],Tt.prototype,"id",void 0),St([u.observable],Tt.prototype,"modelId",void 0),St([u.observable],Tt.prototype,"name",void 0),St([u.observable],Tt.prototype,"type",void 0),St([u.observable],Tt.prototype,"kind",void 0),St([u.observable],Tt.prototype,"default",void 0),St([u.observable],Tt.prototype,"isId",void 0),St([u.observable],Tt.prototype,"isUnique",void 0),St([u.observable],Tt.prototype,"isRequired",void 0),St([u.observable],Tt.prototype,"isList",void 0),St([u.observable],Tt.prototype,"isReadOnly",void 0),St([u.observable],Tt.prototype,"isUpdatedAt",void 0),St([u.observable],Tt.prototype,"relationName",void 0),St([u.observable],Tt.prototype,"relationFromFieldNames",void 0),St([u.observable],Tt.prototype,"relationToFieldNames",void 0),St([u.computed],Tt.prototype,"model",null),St([u.computed],Tt.prototype,"isScalar",null),St([u.computed],Tt.prototype,"isString",null),St([u.computed],Tt.prototype,"isInt",null),St([u.computed],Tt.prototype,"isBigInt",null),St([u.computed],Tt.prototype,"isFloat",null),St([u.computed],Tt.prototype,"isDecimal",null),St([u.computed],Tt.prototype,"isBoolean",null),St([u.computed],Tt.prototype,"isDateTime",null),St([u.computed],Tt.prototype,"isJson",null),St([u.computed],Tt.prototype,"isBytes",null),St([u.computed],Tt.prototype,"isEnum",null),St([u.computed],Tt.prototype,"isRelation",null),St([u.computed],Tt.prototype,"isPartOfRelation",null),St([u.computed],Tt.prototype,"relationItIsPartOf",null),St([u.computed],Tt.prototype,"isSortable",null),St([u.computed],Tt.prototype,"isFunctionDefault",null),St([u.computed],Tt.prototype,"defaultAsString",null),St([u.computed],Tt.prototype,"placeholder",null),St([u.computed],Tt.prototype,"typeAsModel",null),St([u.computed],Tt.prototype,"typeAsEnum",null),St([u.computed],Tt.prototype,"typeAsLabel",null),St([u.computed],Tt.prototype,"lowestValidValue",null),St([u.action],Tt.prototype,"update",null);var Dt=Tt;var Pt=(e,t)=>`${e}.${t}`;var It=new class extends ht{constructor(){super(Dt)}getByName(e,t){return this.get(Pt(t,e))}};var At=({modelId:e})=>{const t=kt.get(e);if(!t)throw Object(st.a)("getCountQuery","Invalid modelId",{modelId:e});return`prisma.${t.photonNamespace}.count()`},Nt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class xt extends gt{constructor(e){super(e),this.getFieldByName=e=>It.getByName(e,this.id),this.runCountQuery=async()=>{try{const{error:e,data:t}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:{query:At({modelId:this.id})}}});if(e)throw e;const n=parseInt(t.response);this.update({count:n})}catch(e){console.log("Count request failed for model:",this.name,e),this.update({count:0})}},this.id=e.id,this.dbName=e.dbName,this.name=e.name,this.plural=e.plural,this.count=null,this.fieldIds=e.fieldIds||[],this.idFieldIds=e.idFieldIds||[],this.uniqueFieldIds=e.uniqueFieldIds||[]}get fields(){return this.fieldIds.map(e=>{const t=It.get(e);if(!t)throw Object(st.a)("Model.field","Invalid fieldId",{fieldId:e});return t})}get uniqueIdentifiers(){if(this.idField)return[this.idField];if(this.compoundIdFields.length>0)return this.compoundIdFields;const e=this.uniqueFields&&this.uniqueFields[0];if(e)return[e];if(this.compoundUniqueFields.length>0)return this.compoundUniqueFields;throw Object(st.a)("ModelStore.uniqueIdentifiers","Unable to resolve unique identifiers for model",{modelId:this.id})}get idField(){return this.fields.find(e=>e.isId)||null}get uniqueFields(){return this.fields.filter(e=>e.isUnique)}get compoundIdFields(){return this.idFieldIds.map(e=>{const t=It.get(e);if(!t)throw Object(st.a)("Model.compoundIdFields","Invalid fieldId in idFieldIds",{fieldId:e});return t})}get compoundUniqueFields(){return this.uniqueFieldIds.map(e=>{const t=It.get(e);if(!t)throw Object(st.a)("Model.uniqueIdentifiers","Invalid fieldId in uniqueFieldIds",{fieldId:e});return t})}get photonNamespace(){return this.name.charAt(0).toLowerCase()+this.name.slice(1)}update(e,t={}){Object(xe.has)(e,"name")&&(this.name=e.name),Object(xe.has)(e,"plural")&&(this.plural=e.plural),Object(xe.has)(e,"count")&&(this.count=e.count),Object(xe.has)(e,"fieldIds")&&(this.fieldIds=e.fieldIds),Object(xe.has)(e,"idFieldIds")&&(this.idFieldIds=e.idFieldIds),Object(xe.has)(e,"uniqueFieldIds")&&(this.uniqueFieldIds=e.uniqueFieldIds),super.update(e,t)}}Nt([u.observable],xt.prototype,"id",void 0),Nt([u.observable],xt.prototype,"dbName",void 0),Nt([u.observable],xt.prototype,"name",void 0),Nt([u.observable],xt.prototype,"plural",void 0),Nt([u.observable],xt.prototype,"count",void 0),Nt([u.observable],xt.prototype,"fieldIds",void 0),Nt([u.observable],xt.prototype,"idFieldIds",void 0),Nt([u.observable],xt.prototype,"uniqueFieldIds",void 0),Nt([u.computed],xt.prototype,"fields",null),Nt([u.computed],xt.prototype,"uniqueIdentifiers",null),Nt([u.computed],xt.prototype,"idField",null),Nt([u.computed],xt.prototype,"uniqueFields",null),Nt([u.computed],xt.prototype,"compoundIdFields",null),Nt([u.computed],xt.prototype,"compoundUniqueFields",null),Nt([u.computed],xt.prototype,"photonNamespace",null),Nt([u.action],xt.prototype,"runCountQuery",void 0),Nt([u.action],xt.prototype,"update",null);var Ft=xt,Lt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Mt extends ht{constructor(){super(Ft),this.getByName=e=>this.get(e)}add(e,t={}){const n=Ct(e.name);return super.add(Object.assign(Object.assign({},e),{id:n}),t)}}Lt([u.action],Mt.prototype,"add",null);var kt=new Mt;var Gt=(e,t)=>{if(null==t)throw Object(st.a)("getRecordId","Invalid recordValue",{modelId:e,recordValue:t});const n=kt.get(e);if(!n)throw Object(st.a)("getRecordId","Invalid modelId",{modelId:e});let o=e+"::";return o+=n.uniqueIdentifiers.map(e=>null===t[e.name]?"null":void 0===t[e.name]?"undefined":t[e.name]).join(","),o},Vt=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class jt{constructor(){this.updateError=(e={})=>{Object(xe.has)(e,"visible")&&(this.error.visible=e.visible)},this.updateActions=(e={})=>{Object(xe.has)(e,"visible")&&(this.actions.visible=e.visible)},this.error={visible:!1},this.actions={visible:!1}}}Vt([u.observable],jt.prototype,"error",void 0),Vt([u.observable],jt.prototype,"actions",void 0),Vt([u.action],jt.prototype,"updateError",void 0),Vt([u.action],jt.prototype,"updateActions",void 0);var Wt=new jt,Ht=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Bt{send(e){window.transport.request({channel:"telemetry",action:"send",payload:{data:{command:e.command,commandDetails:JSON.stringify(e.commandDetails),commandContext:JSON.stringify({model_count:kt.size})}}})}}Ht([u.action],Bt.prototype,"send",null);var zt=new Bt,Ut=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class qt{constructor(){this.type="fatal",this.description=null,this.dump=null}update(e){this.type=e.type,this.description=e.description,this.dump=e.dump,zt.send({command:"error_throw",commandDetails:{type:this.type,description:this.description}})}}Ut([u.observable],qt.prototype,"type",void 0),Ut([u.observable],qt.prototype,"description",void 0),Ut([u.observable],qt.prototype,"dump",void 0),Ut([u.action],qt.prototype,"update",null);var Yt=new qt,Kt=n(30);const $t=e=>{const t=[];return e.filter(e=>"delete"===e.type).forEach(n=>{if(!n.record)throw Object(st.a)("photonRequestsFromActions._delete","Unrecognized Record in Action",{action:n.serialize()});const o=n.record.model,r={where:Zt(n)};t.push([`prisma.${o.photonNamespace}.delete(`,""+Object(Kt.a)(r),")"].join("\n")),e=e.filter(e=>n.id!==e.id&&n.recordId!==e.recordId)}),{actions:e,requests:t}},Qt=e=>{const t=[];return e.filter(e=>"create"===e.type).forEach(n=>{if(!n.record)throw Object(st.a)("photonRequestsFromActions._create","Unrecognized Record in Action",{action:n.serialize()});const o=n.record.model,r={data:{},select:Jt(n)},i=e.find(e=>"update"===e.type&&e.sessionId===n.sessionId&&e.recordId===n.recordId);i&&(r.data=tn(i),r.select=Object.assign(Object.assign({},r.select),Jt(i))),t.push([`prisma.${o.photonNamespace}.create(`,""+Object(Kt.a)(r),")"].join("\n")),e=e.filter(e=>e.id!==(null==i?void 0:i.id)&&n.id!==e.id)}),{actions:e,requests:t}},Xt=e=>{const t=[];return e.filter(e=>"update"===e.type).forEach(n=>{if(!n.record)throw Object(st.a)("photonRequestsFromActions._update","Unrecognized Record in Action",{action:n.serialize()});const o=n.record.model,r={where:Zt(n),data:en(n),select:Jt(n)};t.push([`prisma.${o.photonNamespace}.update(`,""+Object(Kt.a)(r),")"].join("\n")),e=e.filter(e=>n.id!==e.id)}),{actions:e,requests:t}},Jt=e=>{if(!e.record)throw Object(st.a)("photonRequestsFromActions._getRequestSelectArgument","Unrecognized Record in Action",{action:e.serialize()});const t=e.record.model.uniqueIdentifiers.reduce((e,t)=>(e[t.name]=!0,e),{});return"create"===e.type||"delete"===e.type?t:Object.keys(e.value).reduce((e,t)=>(e[t]=!0,e),t)},Zt=e=>{if(!e.record)throw Object(st.a)("photonRequestsFromActions._getRequestWhereArgument","Unrecognized Record in Action",{action:e.serialize()});const t=e.record.model.uniqueIdentifiers,n=t.map(e=>e.name).join("_"),o=t.reduce((t,n)=>(t[n.name]=e.record.valueInDB[n.name],t),{});return 1===t.length?o:{[n]:o}},en=e=>{if(!e.record)throw Object(st.a)("photonRequestsFromActions._getUpdateRequestDataArgument","Unrecognized Record in Action",{action:e.serialize()});const t=e.record.model;return Object.keys(e.value).reduce((n,o)=>{const r=t.getFieldByName(o),i=e.value[o];if(!r)throw Object(st.a)("photonRequestsFromActions._getUpdateRequestDataArgument","Malformed field in action",{action:e.serialize()});if(r.isReadOnly)return n;if(void 0===i)return n;if(r.isScalar&&r.isList||r.isEnum&&r.isList)n[o]={set:i};else if(r.isScalar||r.isEnum)n[o]=i;else if(r.isList&&r.isRelation){if(!r.typeAsModel)throw Object(st.a)("photonRequestsFromActions._getUpdateRequestDataArgument","Invalid field type",{field:r.serialize()});const t=(e.record.valueInDB[o]||[]).map(e=>Gt(r.typeAsModel.id,e)),s=i.map(e=>Gt(r.typeAsModel.id,e)),a=Object(xe.difference)(s,t),l=Object(xe.difference)(t,s);n[o]={connect:a.map((e,t)=>{const n=Gn.get(e)||Gn.add({id:e,modelId:r.typeAsModel.id,value:i[t]}),o=n.model.uniqueIdentifiers,s=o.map(e=>e.name).join("_"),a=o.reduce((e,t)=>(e[t.name]=n.valueInDB[t.name],e),{});return 1===o.length?a:{[s]:a}}),disconnect:l.map((t,n)=>{const o=Gn.get(t);if(!o)throw Object(st.a)("photonRequestsFromActions._getUpdateRequestDataArgument","Attempting to disconnect a non-existent record",{action:e.serialize(),index:n});const r=o.model.uniqueIdentifiers,i=r.map(e=>e.name).join("_"),s=r.reduce((e,t)=>(e[t.name]=o.valueInDB[t.name],e),{});return 1===r.length?s:{[i]:s}})}}else if(r.isRelation)if(null===i)n[o]={disconnect:!0};else{if(!r.typeAsModel)throw Object(st.a)("photonRequestsFromActions._getUpdateRequestDataArgument","Invalid field type",{field:r.serialize()});const e=Gt(r.typeAsModel.id,i),t=Gn.get(e)||Gn.add({id:e,modelId:r.typeAsModel.id,value:i}),s=t.model.uniqueIdentifiers,a=s.map(e=>e.name).join("_"),l=s.reduce((e,n)=>(e[n.name]=t.valueInDB[n.name],e),{});1===s.length?n[o]={connect:l}:n[o]={connect:{[a]:l}}}return n},{})},tn=e=>{const t=en(e);return Object.keys(t).forEach(n=>{if(!e.record)throw Object(st.a)("photonRequestsFromActions._getCreateRequestDataArgument","Unrecognized Record in Action",{action:e.serialize()});const o=e.record.model.getFieldByName(n);if(!o)throw Object(st.a)("photonRequestsFromActions._getUpdateRequestDataArgument","Malformed field in action",{action:e.serialize()});o.isRelation&&!o.isList&&t[n].disconnect&&delete t[n],o.isRelation&&o.isList&&t[n].disconnect&&delete t[n].disconnect}),t};var nn=e=>{const t=e.map(e=>In.get(e)),n=[$t,Qt,Xt].reduce((e,t)=>{const n=t(e.actions);return e.actions=n.actions,e.requests.push(...n.requests),e},{actions:t,requests:[]});return n.actions.length>0&&console.warn("All actions were not processed. Pending actions: ",JSON.stringify(Object(u.toJS)(n.actions),null,2)),n.requests},on=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class rn{constructor(e){this.update=e=>{Object(xe.has)(e,"selectedRecordIds")&&(this.selectedRecordIds=e.selectedRecordIds)},this.sessionId=e.sessionId,this.selectedRecordIds=[]}get session(){return Cn.get(this.sessionId)}get maxRows(){var e,t;return(null===(t=null===(e=this.session)||void 0===e?void 0:e.script)||void 0===t?void 0:t.recordIds.length)||0}get maxColumns(){var e,t;return(null===(t=null===(e=this.session)||void 0===e?void 0:e.script)||void 0===t?void 0:t.fieldIds.length)||0}get selectedRecords(){return this.selectedRecordIds.map(e=>Gn.get(e))}}on([u.observable],rn.prototype,"sessionId",void 0),on([u.observable],rn.prototype,"selectedRecordIds",void 0),on([u.computed],rn.prototype,"session",null),on([u.computed],rn.prototype,"maxRows",null),on([u.computed],rn.prototype,"maxColumns",null),on([u.computed],rn.prototype,"selectedRecords",null),on([u.action],rn.prototype,"update",void 0);var sn=rn;var an=(e,t)=>{const n=e.split("::"),o=Number(n[0].slice(1,-1));if(isNaN(o))throw Object(st.a)("parseTreePath","Invalid tree path: Failed to parse segment as index",{path:e,recordIdx:o});const r=Gn.get(t[o]);if(!r)throw Object(st.a)("parseTreePath","Invalid tree path: Invalid record index",{path:e,recordIdx:o});return n.slice(1).reduce(({model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s},a)=>{var l,u,c,p,d,h;if(a.startsWith("[")&&a.endsWith("]"))if(n=null,o=Number(a.slice(1,-1)),isNaN(o)){const e=a.slice(1,-1).split("-");s=[Number(e[0]),Number(e[1])],o=null,r=null,i=i.slice(s[0],s[1]+1)}else if(t){const c=Gt(t.id,i[o]);if(!c)throw Object(st.a)("parseTreePath","Invalid tree path: Failed to parse tree path segment as array",{path:e,fieldName:a,recordId:c,accumulator:{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}});i=null!==(u=null==(r=null!==(l=Gn.get(c))&&void 0!==l?l:null)?void 0:r.value)&&void 0!==u?u:null}else r=null,i=null!==(c=i[o])&&void 0!==c?c:null;else{if(!t)throw Object(st.a)("parseTreePath","Invalid tree path: Failed to parse tree path segment as field name",{path:e,fieldName:a,accumulator:{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}});if(!(n=t.getFieldByName(a)))throw Object(st.a)("parseTreePath","Invalid field name",{path:e,fieldName:a,accumulator:{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}});if(t=null!==(p=n.typeAsModel)&&void 0!==p?p:null,o=null,r=null,i=i[a],s=null,!n.isScalar&&!n.isEnum&&!Array.isArray(i)&&null!=i){const l=t&&Gt(t.id,i);if(!l)throw Object(st.a)("parseTreePath","Invalid tree path: Failed to parse tree path segment as relation",{path:e,fieldName:a,recordId:l,accumulator:{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}});i=null!==(h=null==(r=null!==(d=Gn.get(l))&&void 0!==d?d:null)?void 0:r.value)&&void 0!==h?h:null}}return{model:t,field:n,index:o,record:r,value:i,arraySliceIndices:s}},{model:r.model,field:null,index:null,record:r,value:r.value,arraySliceIndices:null})},ln=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class un{constructor(e){this.selectionOrder=[],this.isExpanded=e=>this.expandedPaths.includes(e),this.select=e=>{this.activePath=e},this.move=(e,t)=>{0===this.selectionOrder.length&&this.setSelectionOrder();const n=this.selectionOrder.findIndex(e=>e===this.activePath);let o;switch(t){case"up":o=this.selectionOrder[n-e];break;case"down":o=this.selectionOrder[n+e]}this.activePath=o||"[0]"},this.expand=()=>{var e,t;if(this.isExpanded(this.activePath))return;if(!(null===(e=this.session)||void 0===e?void 0:e.script))throw Object(st.a)("SessionSelectionTree.expand","Unable to resolve recordIds",{sessionId:this.sessionId,scriptId:null===(t=this.session)||void 0===t?void 0:t.scriptId});const{record:n,value:o,field:r}=an(this.activePath,this.session.script.recordIds);null!=o&&((null==r?void 0:r.isList)||!(null==r?void 0:r.isScalar)&&!(null==r?void 0:r.isEnum))&&0!==(null==o?void 0:o.length)&&(this.expandedPaths.push(this.activePath),this.setSelectionOrder(),n&&n.fetchRelations())},this.collapse=()=>{this.expandedPaths=this.expandedPaths.filter(e=>!e.startsWith(this.activePath)),this.setSelectionOrder()},this.update=e=>{Object(xe.has)(e,"isEditing")&&(this.isEditing=e.isEditing)},this.reset=()=>{this.isEditing=!1},this.sessionId=e.sessionId,this.isEditing=e.isEditing,this.activePath="",this.expandedPaths=[]}get session(){return Cn.get(this.sessionId)}jumpToParent(){const e=this.activePath.split("::").slice(0,-1).join("::");""!=e&&(this.activePath=e)}setSelectionOrder(){var e,t;if(!(null===(e=this.session)||void 0===e?void 0:e.script))throw Object(st.a)("SessionSelectionTree.setSelectionOrder","Unable to resolve recordIds",{sessionId:this.sessionId,scriptId:null===(t=this.session)||void 0===t?void 0:t.scriptId});const{recordIds:n}=this.session.script;let o=n.map((e,t)=>`[${t}]`);this.expandedPaths.forEach(e=>{const{value:t,model:r}=an(e,n),i=o.findIndex(t=>t===e),s=[];if(s.push(o[i]),Array.isArray(t))if(t.length<=100)s.push(...Array.from({length:t.length}).map((t,n)=>`${e}::[${n}]`));else{const n=Math.floor(t.length/100);s.push(...Array.from({length:n}).map((t,n)=>`${e}::[${100*n}-${100*(n+1)-1}]`)),t.length%100!=0&&s.push(`${e}::[${100*n}-${100*n+t.length%100-1}]`)}else null!==t&&r&&s.push(...r.fields.map(t=>`${e}::${t.name}`));o=[...o.slice(0,i),...s,...o.slice(i+1)]}),this.selectionOrder=o}}ln([u.observable],un.prototype,"sessionId",void 0),ln([u.observable],un.prototype,"isEditing",void 0),ln([u.observable],un.prototype,"activePath",void 0),ln([u.observable],un.prototype,"expandedPaths",void 0),ln([u.observable],un.prototype,"selectionOrder",void 0),ln([u.computed],un.prototype,"session",null),ln([u.action],un.prototype,"select",void 0),ln([u.action],un.prototype,"move",void 0),ln([u.action],un.prototype,"expand",void 0),ln([u.action],un.prototype,"collapse",void 0),ln([u.action],un.prototype,"jumpToParent",null),ln([u.action],un.prototype,"setSelectionOrder",null),ln([u.action],un.prototype,"update",void 0),ln([u.action],un.prototype,"reset",void 0);var cn=un,pn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class dn{constructor(e){this.table=new sn(e.table),this.tree=new cn(e.tree)}}pn([u.observable],dn.prototype,"table",void 0),pn([u.observable],dn.prototype,"tree",void 0);var hn=dn,fn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class gn extends gt{constructor(e){var t,n;super(e),this.createUncommittedRecord=()=>{if(!this.isScript)return;const e=In.add({type:"create",recordId:null,sessionId:this.id,value:{modelId:this.script.modelId}});In.add({type:"update",recordId:e.recordId,sessionId:this.id,value:this.script.model.fields.reduce((e,t)=>(t.isId?e[t.name]=void 0:void 0!==t.default?t.isFunctionDefault?e[t.name]=void 0:e[t.name]=t.default:!t.isScalar&&!t.isEnum||t.isPartOfRelation?t.isRelation&&t.isList?e[t.name]=t.lowestValidValue:e[t.name]=void 0:e[t.name]=t.lowestValidValue,e),{})})},this.update=(e,t={})=>{Object(xe.has)(e,"lastSavedHash")&&(this.lastSavedHash=e.lastSavedHash),super.update(e,t)},this.serialize=()=>({projectId:yo.activeProjectId,id:this.id,type:this.type,lastSavedHash:this.lastSavedHash,scriptId:this.scriptId}),this.id=e.id,this.type=e.type,this.scriptId=null!==(t=e.scriptId)&&void 0!==t?t:null,this.lastSavedHash=null!==(n=e.lastSavedHash)&&void 0!==n?n:this.hash,this.selection=new hn({table:{sessionId:this.id,selectedRecordIds:[]},tree:{sessionId:this.id,isEditing:!1}})}get script(){if(!this.isScript)throw Object(st.a)("Session.script","Invalid `get` call to script: Session is not a `script` type",{type:this.type,scriptId:this.scriptId});const e=io.get(this.scriptId);if(!e)throw Object(st.a)("Session.script","Invalid scriptId in session",{type:this.type,scriptId:this.scriptId});return e}get name(){return this.isScript?this.script.model.name:"Session Name"}get isScript(){return"script"===this.type}get isModelList(){return"model-list"===this.type}get isDirty(){return this.isScript?!this.script.frozen&&(null===this.script.name||(!!Object.values(In.values).filter(e=>e.sessionId===this.id)||null!==this.script.name&&this.lastSavedHash!==this.hash)):this.lastSavedHash!==this.hash}get hash(){return this.isScript?this.script.hash:""}forceSave(){this.isDirty&&this.update({lastSavedHash:this.hash})}discardChanges(){if(this.isScript)try{const{code:e,modelId:t,where:n,fieldIds:o,sortFieldId:r,sortOrder:i}=JSON.parse(this.lastSavedHash);this.script.update({code:e,modelId:t,where:n,fieldIds:o,sort:{fieldId:r,order:i}})}catch(e){console.log("Could not restore session",e)}}}fn([u.observable],gn.prototype,"id",void 0),fn([u.observable],gn.prototype,"type",void 0),fn([u.observable],gn.prototype,"scriptId",void 0),fn([u.observable],gn.prototype,"lastSavedHash",void 0),fn([u.computed],gn.prototype,"script",null),fn([u.computed],gn.prototype,"name",null),fn([u.computed],gn.prototype,"isScript",null),fn([u.computed],gn.prototype,"isModelList",null),fn([u.computed],gn.prototype,"isDirty",null),fn([u.computed],gn.prototype,"hash",null),fn([u.action],gn.prototype,"createUncommittedRecord",void 0),fn([u.action],gn.prototype,"forceSave",null),fn([u.action],gn.prototype,"discardChanges",null),fn([u.action],gn.prototype,"update",void 0);var vn=gn,mn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class yn extends ht{constructor(){super(vn,{idbTableName:"sessions"}),this.findOrCreate=({scriptId:e})=>Object.values(this.values).find(t=>t.scriptId===e)||this.add({type:"script",scriptId:e,lastSavedHash:null}),this.remove=e=>{const t=super.remove(e);return Object.values(In.values).forEach(t=>{t.sessionId===e&&In.remove(t.id)}),t}}}mn([u.action],yn.prototype,"findOrCreate",void 0),mn([u.action],yn.prototype,"remove",void 0);var Cn=new yn;const wn=(e,t)=>{if(!e.isRequired&&Object(xe.isNil)(t))return;if(void 0===t&&void 0!==e.default)return;const n=e.typeAsEnum;return n&&n.values.includes(t)?void 0:"Value must be an Enum variant"},bn=(e,t)=>{if(!e.isRequired&&Object(xe.isNil)(t))return;if(e.isRequired&&!t)return"Required fields must not be `null`";return e.typeAsModel?void 0:`Value must be a ${e.type} identifier`},En=(e,t)=>{if((void 0!==t||void 0===e.default)&&(e.isList||e.isRequired||!Object(xe.isNil)(t)))return e.isRequired&&Object(xe.isNil)(t)?"Required fields must not be `null`":e.isString&&"string"!=typeof t?"Value must be a String":!e.isInt||"number"==typeof t&&!isNaN(t)&&Number.isInteger(t)?e.isFloat&&("number"!=typeof t||isNaN(t))?"Value must be a Float":e.isBigInt&&"bigint"!=typeof t?"Value must be a valid BigInt":e.isBoolean&&"boolean"!=typeof t?"Value must be a Boolean":e.isDateTime&&isNaN(new Date(String(t)))?"Value must be a valid DateTime":e.isJson&&"object"!=typeof t?"Value must be a valid Json":void 0:"Value must be an Integer"};var _n=(e,t)=>e.isList?Array.isArray(t)?t.every(t=>e.isEnum?!wn(e,t):e.isRelation?!bn(e,t):!En(e,t))?void 0:"Every value in this list must be valid":"Value must be a list":e.isEnum?wn(e,t):e.isRelation?bn(e,t):En(e,t);var On=e=>{const t=In.get(e);if(!t)throw Object(st.a)("isActionValid","Invalid action",{actionId:e});const n=Gn.get(t.recordId);if(!n)return!1;const o=n.model;if(!o)return!1;const r=Object.keys(t.value);switch(t.type){case"create":return!!kt.get(t.value.modelId);case"delete":return!!Gn.get(t.recordId);case"update":return r.every(e=>{const n=o.getFieldByName(e),r=t.value[e];return!!n&&!_n(n,r)});default:return!1}},Rn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Sn extends gt{constructor(e){if(super(e),this.serialize=()=>({projectId:yo.activeProjectId,id:this.id,type:this.type,recordId:this.recordId,sessionId:this.sessionId,value:Object(u.toJS)(this.value)}),this.id=e.id,this.sessionId=e.sessionId,this.type=e.type,this.value=e.value,"create"===this.type){const t="tmp--"+this.id,n=e.value.modelId;Gn.add({id:t,modelId:n,value:{}}),this.recordId=t}else this.recordId=e.recordId}get record(){return this.recordId?Gn.get(this.recordId):null}get session(){return Cn.get(this.sessionId)}get isValid(){return On(this.id)}update(e,t={}){Object(xe.has)(e,"recordId")&&(this.recordId=e.recordId),Object(xe.has)(e,"sessionId")&&(this.sessionId=e.sessionId),Object(xe.has)(e,"value")&&(this.value=e.value),super.update(e,t)}}Rn([u.observable],Sn.prototype,"id",void 0),Rn([u.observable],Sn.prototype,"recordId",void 0),Rn([u.observable],Sn.prototype,"sessionId",void 0),Rn([u.observable],Sn.prototype,"type",void 0),Rn([u.observable],Sn.prototype,"value",void 0),Rn([u.computed],Sn.prototype,"record",null),Rn([u.computed],Sn.prototype,"session",null),Rn([u.computed],Sn.prototype,"isValid",null),Rn([u.action],Sn.prototype,"update",null);var Tn=Sn,Dn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Pn extends ht{constructor(){super(Tn,{idbTableName:"actions"}),this.committing=!1,this.add=(e,t={})=>{var n;const o=super.add(e,t);return this.consolidate(),this.actions.length>0&&(null===(n=ho.activeTab)||void 0===n||n.update({preview:!1}),Wt.updateActions({visible:!0})),o},this.remove=e=>{const t=super.remove(e);return 0===this.actions.length&&Wt.updateActions({visible:!1}),t},this.commit=async()=>{var e,t;if(this.invalidActions.length>0)return console.error("Commit failed: Some actions are invalid",this.invalidActions),Yt.update({type:"fatal",description:"Failed to commit changes because some actions are invalid",dump:"Invalid actions: \n"+JSON.stringify(this.invalidActions,null,2)}),void Wt.updateError({visible:!0});if(!(null===(t=null===(e=ho.activeTab)||void 0===e?void 0:e.session)||void 0===t?void 0:t.isScript))return;const n=this.actions;let o=[];try{o=nn(n.map(e=>e.id))}catch(e){throw console.error("Commit failed: Unable to generate Prisma Client requests",e),Yt.update({type:"fatal",description:"An unexpected error occurred while saving your changes",dump:`Message: ${e.message}\n`}),Wt.updateError({visible:!0}),e}Object(u.runInAction)(()=>this.committing=!0);try{const{error:e}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:{query:`prisma.$transaction([ ${o.join(",")} ])`}}});if(e)throw e;this.actions.filter(e=>"create"===e.type).forEach(e=>{var t;return null===(t=e.record)||void 0===t?void 0:t.model.update({count:(e.record.model.count||0)+1})}),this.actions.filter(e=>"delete"===e.type).forEach(e=>{var t;return null===(t=e.record)||void 0===t?void 0:t.model.update({count:(e.record.model.count||0)-1})}),this.discard(),Object(u.runInAction)(()=>this.committing=!1)}catch(e){Object(u.runInAction)(()=>this.committing=!1);const t=ho.activeTab.session.script.model;if("PrismaClientRustPanicError"===e.type||"PrismaClientUnknownRequestError"===e.type)throw Yt.update({type:"fatal",description:`An unexpected error occurred while saving your changes to the \`${t.name}\` table`,dump:`Message: ${e.message}\n\nQuery: \n${o[0]}\n`}),Wt.updateError({visible:!0}),e;const n=`Type: ${e.type}\nMessage: ${e.message}\n\nCode: ${e.code}\n\nQuery:\n${o[0]}\n`;throw Yt.update({type:"client",description:"Failed to commit changes: "+e.message,dump:n}),Wt.updateError({visible:!0}),e}},this.discard=()=>{const e=[...this.actions];for(let t=0;t<e.length;t++)this.remove(e[t].id);Wt.updateActions({visible:!1})},this.consolidate=()=>{const e=Object.values(this.values).map(e=>e.id),t=new Set,n=(o,r)=>{const i=this.get(o);if(!i)return;const s=e.findIndex((e,t)=>{if(t<=r)return!1;const n=this.get(e);return!!n&&(n.sessionId===i.sessionId&&n.recordId===i.recordId&&n.type===i.type)});if(-1===s)return;const a=this.get(e[s]);return a?(i.update({value:Object.assign(Object.assign({},i.value),a.value)}),t.add(e[s]),e.splice(s,1),n(o,r)):void 0};e.forEach(n);e.forEach(n=>{const o=this.get(n);o&&"delete"===o.type&&e.forEach(e=>{var r;const i=this.get(e);i&&(i&&"delete"!==i.type&&i.recordId===o.recordId&&t.add(e),(null===(r=i.record)||void 0===r?void 0:r.isCommitted)||t.add(n))})}),t.forEach(e=>this.remove(e))}}get actions(){return Object.values(this.values).filter(e=>{var t;return e.sessionId===(null===(t=ho.activeTab)||void 0===t?void 0:t.sessionId)})}get invalidActions(){return this.actions.filter(e=>!e.isValid)}}Dn([u.observable],Pn.prototype,"committing",void 0),Dn([u.computed],Pn.prototype,"actions",null),Dn([u.computed],Pn.prototype,"invalidActions",null),Dn([u.action],Pn.prototype,"add",void 0),Dn([u.action],Pn.prototype,"remove",void 0),Dn([u.action],Pn.prototype,"commit",void 0),Dn([u.action],Pn.prototype,"discard",void 0),Dn([u.action],Pn.prototype,"consolidate",void 0);var In=new Pn;var An=e=>{const t=Gn.get(e);if(!t)throw Object(st.a)("getFindOneQuery","Invalid recordId",{recordId:e});const n=t.model,o=n.uniqueIdentifiers,r=o.map(e=>e.name).join("_"),i=o.map(e=>`${e.name}: ${Object(Kt.a)(t.value[e.name])}`).join(", ");let s;return s=1===o.length?`{ ${i} }`:`{ ${r}: { ${i} } }`,[`prisma.${n.photonNamespace}.findUnique({`,` where: ${s},`," select: {"," "+n.fields.map(e=>e.name+": true").join(",\n ")," }","})"].join("\n")};var Nn=async e=>{let{error:t,data:n}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:{query:e}}});if(t)throw Object(st.a)("runQuery","Error in Prisma Client request: \n\n"+t.stack,{code:e,error:t});if(!n)throw Object(st.a)("runQuery","Malformed response from Prisma Client: \n\n"+n,{code:e});let{params:o,response:r}=n;const i=kt.getByName(o.model);if(!i)throw Object(st.a)("runQuery","Unrecognized Model",{params:o,response:r});const s=Object.entries(o.args.select||o.args.include||{}).filter(([e,t])=>!!t).map(([e])=>{var t;return null===(t=It.getByName(i.id,e))||void 0===t?void 0:t.id}).filter(e=>!!e);if(!r)return Promise.resolve({modelId:i.id,fieldIds:s,recordIds:[]});Array.isArray(r)||(r=[r]);const a=r.map(e=>Gn.add({modelId:i.id,value:e}).id);return{modelId:i.id,fieldIds:s,recordIds:a}},xn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Fn extends gt{constructor(e){super(e),this.fetchRelations=async()=>{try{if(!this.isCommitted)return;await Nn(An(this.id))}catch(e){Yt.update({type:"client",description:"Unable to fetch record",dump:e.message}),Wt.updateError({visible:!0})}},this.id=e.id,this.valueInDB=e.value||{},this.modelId=e.modelId}get model(){let e=kt.get(this.modelId);if(!e)throw Object(st.a)("Record.model","Invalid modelId",{modelId:this.modelId});return e}get value(){const e=In.actions.filter(e=>e.recordId===this.id&&"update"===e.type);if(0==e.length)return this.valueInDB;const t=e[0];return this.model.fields.reduce((e,n)=>void 0===t.value[n.name]?(e[n.name]=this.valueInDB[n.name],e):(e[n.name]=t.value[n.name],e),{})}get isCommitted(){return!this.id.startsWith("tmp-")}get dirtyFieldNames(){if(!this.isCommitted)return this.model.fields.map(e=>e.name);const e=In.actions.filter(e=>{var t;return e.sessionId===(null===(t=ho.activeTab)||void 0===t?void 0:t.sessionId)&&e.recordId===this.id}).reduce((e,t)=>(Object.keys(t.value).forEach(t=>{e.add(t)}),e),new Set);return Array.from(e)}get invalidFields(){return Object.keys(this.value).map(e=>{const t=this.model.getFieldByName(e);if(!t)return;const n=_n(t,this.value[e]);return n?{field:t,reason:n}:void 0}).filter(e=>!!e)}update(e,t={}){Object(xe.has)(e,"value")&&(this.valueInDB=Object.assign(Object.assign({},this.valueInDB),e.value)),super.update(e,t)}}xn([u.observable],Fn.prototype,"id",void 0),xn([u.observable],Fn.prototype,"modelId",void 0),xn([u.observable],Fn.prototype,"valueInDB",void 0),xn([u.computed],Fn.prototype,"model",null),xn([u.computed],Fn.prototype,"value",null),xn([u.computed],Fn.prototype,"isCommitted",null),xn([u.computed],Fn.prototype,"dirtyFieldNames",null),xn([u.computed],Fn.prototype,"invalidFields",null),xn([u.action],Fn.prototype,"update",null),xn([u.action],Fn.prototype,"fetchRelations",void 0);var Ln=Fn,Mn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class kn extends ht{constructor(){super(Ln)}add(e,t={}){var n;const o=null!==(n=e.id)&&void 0!==n?n:Gt(e.modelId,e.value);if(!o)throw Object(st.a)("RecordStore.add","Unable to determine ID for record to create",{record:e});const r=super.add(Object.assign({id:o},e));return Object.keys(e.value).forEach(n=>{var o;const i=r.model.getFieldByName(n);if(!i)throw Object(st.a)("RecordStore.add","Invalid field name",{fieldName:n,recordValue:e.value});if(!i.isRelation)return;const s=null===(o=i.typeAsModel)||void 0===o?void 0:o.id;if(!s)throw Object(st.a)("RecordStore.add","Unable to create related records",{fieldId:i.id,type:i.type});if(i.isList)e.value[n].map(e=>{const n=Gt(s,e);!this.get(n)&&e&&this.add({modelId:s,value:e},t)});else if(null!==e.value[n]){const o=Gt(s,e.value[n]);!this.get(o)&&e.value[n]&&this.add({modelId:s,value:e.value[n]},t)}}),r}}Mn([u.action],kn.prototype,"add",null);var Gn=new kn;var Vn=new class{constructor(){this.inputObjectTypes=new Map,this.removeUnusedModels=e=>{const{models:t}=e.datamodel;Object(xe.difference)(Object.values(kt.values).map(e=>e.id),t.map(e=>Ct(e.name))).forEach(e=>{Object.values(In.values).forEach(t=>{var n;(null===(n=t.session)||void 0===n?void 0:n.isScript)&&t.session.script.modelId===e&&In.remove(t.id)}),Object.values(ho.values).forEach(t=>{var n;(null===(n=t.session)||void 0===n?void 0:n.isScript)&&t.session.script.modelId===e&&ho.remove(t.id)}),Object.values(Cn.values).forEach(t=>{(null==t?void 0:t.isScript)&&t.script.modelId===e&&Cn.remove(t.id)}),kt.remove(e)})},this.removeUnusedFields=e=>{const{models:t}=e.datamodel;Object(xe.difference)(Object.values(It.values).map(e=>e.id),Object(xe.flatten)(t.map(e=>e.fields.map(t=>Pt(Ct(e.name),t.name))))).forEach(e=>It.remove(e))},this.removeUnusedEnums=e=>{const{enums:t}=e.datamodel;Object(xe.difference)(Object.values(Rt.values).map(e=>e.id),t.map(e=>wt(e.name))).forEach(e=>Rt.remove(e))}}get isPostgresDatasource(){return"postgresql"===this.datasourceProvider}hydrate(e,t){e.schema.inputObjectTypes.prisma.forEach(e=>this.inputObjectTypes.set(e.name,e)),this.datasourceProvider=t;const{models:n,enums:o}=e.datamodel;n.forEach(t=>{var n;const o=kt.add({dbName:t.dbName,name:t.name,plural:(null===(n=e.mappings.modelOperations.find(e=>e.model===t.name))||void 0===n?void 0:n.plural)||t.name,fieldIds:[],idFieldIds:[],uniqueFieldIds:[]}),r=t.fields.filter(e=>"unsupported"!==e.kind).map(e=>It.add({id:Pt(o.id,e.name),modelId:o.id,name:e.name,type:e.type,kind:e.kind,default:e.default,isId:e.isId,isUnique:e.isUnique,isRequired:e.isRequired,isList:e.isList,isReadOnly:e.isReadOnly,isUpdatedAt:e.isUpdatedAt,relationName:e.relationName||"",relationFromFieldNames:e.relationFromFields||[],relationToFieldNames:e.relationToFields||[]}).id),i=t.idFields.map(e=>Pt(o.id,e));let s=[];t.uniqueFields.length>0&&(s=t.uniqueFields[0].map(e=>Pt(o.id,e))),o.update({fieldIds:r,idFieldIds:i,uniqueFieldIds:s})}),o.forEach(e=>{Rt.add({name:e.name,values:e.values.map(e=>e.name)})})}};const jn=(e,t)=>{if(!e.isScalar)return!1;if(e.isString)return"string"==typeof t;if(e.isInt||e.isFloat||e.isDecimal)return""!==t&&!isNaN(Number(t));if(e.isBigInt)try{return""!==t&&!!BigInt(t)}catch(e){return!1}if(e.isBoolean)return"true"===t||"false"===t;if(e.isDateTime)return!isNaN(new Date(t));if(e.isJson)try{return!!JSON.parse(t)}catch(e){return!1}return!!e.isBytes&&"string"==typeof t},Wn=(e,t)=>!!e.isEnum&&e.typeAsEnum.values.includes(t);var Hn=e=>{var t,n,o,r,i,s,a;if(!e.enabled)return!0;if(!Object(xe.last)(e.fields))return!1;if(!e.operation)return!1;if(!(null===(t=Object(xe.last)(e.fields))||void 0===t?void 0:t.isScalar)&&!(null===(n=Object(xe.last)(e.fields))||void 0===n?void 0:n.isEnum))return!1;if(e.fields.length>1&&!(null===(o=Object(xe.first)(e.fields))||void 0===o?void 0:o.isRelation))return!1;if(["isNull","isNotNull"].includes(e.operation)&&!(null===(r=Object(xe.last)(e.fields))||void 0===r?void 0:r.isRequired))return!0;if((null===(i=Object(xe.last)(e.fields))||void 0===i?void 0:i.isRequired)&&(void 0===e.value||null===e.value))return!1;if(void 0===e.value||null===e.value)return!1;if(["in","notIn"].includes(e.operation))try{const t=JSON.parse(e.value);return Array.isArray(t)&&t.every(t=>{var n,o;return(null===(n=Object(xe.last)(e.fields))||void 0===n?void 0:n.isScalar)?jn(Object(xe.last)(e.fields),t):!!(null===(o=Object(xe.last)(e.fields))||void 0===o?void 0:o.isEnum)&&Wn(Object(xe.last)(e.fields),t)})}catch(e){return!1}return!!e.supportedOperations.includes(e.operation)&&((null===(s=Object(xe.last)(e.fields))||void 0===s?void 0:s.isScalar)?jn(Object(xe.last)(e.fields),e.value):!(null===(a=Object(xe.last)(e.fields))||void 0===a?void 0:a.isEnum)||Wn(Object(xe.last)(e.fields),e.value))},Bn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class zn extends gt{constructor(e){super(e),this.update=(e,t)=>{Object(xe.has)(e,"fieldIds")&&(this.fieldIds=e.fieldIds),Object(xe.has)(e,"operation")&&(this.operation=e.operation),Object(xe.has)(e,"value")&&(this.value=e.value),Object(xe.has)(e,"enabled")&&(this.enabled=e.enabled),this.script.update({where:[]}),super.update(e,t)},this.serialize=()=>({id:String(this.id),fieldIds:[...this.fieldIds],operation:String(this.operation),value:this.value,scriptId:String(this.scriptId),enabled:this.enabled}),this.id=e.id,this.fieldIds=e.fieldIds,this.operation=e.operation||this.supportedOperations[0],this.value=e.value,this.scriptId=e.scriptId,this.enabled=e.enabled||!0}get fields(){return this.fieldIds.map(e=>{const t=It.get(e);if(!t)throw Object(st.a)("ScriptWhereItem.fields","Invalid fieldId",{fieldId:e});return t})}get script(){const e=io.get(this.scriptId);if(!e)throw Object(st.a)("ScriptWhereItem.script","Invalid scriptId",{scriptId:this.scriptId});return e}get supportedOperations(){const e=Object(xe.last)(this.fields);if(!e)return[];let t;if(e.isRequired&&e.isString)t="StringFilter";else if(!e.isRequired&&e.isString)t="StringNullableFilter";else if(e.isRequired&&e.isInt)t="IntFilter";else if(!e.isRequired&&e.isInt)t="IntNullableFilter";else if(e.isRequired&&e.isFloat)t="FloatFilter";else if(!e.isRequired&&e.isFloat)t="FloatNullableFilter";else if(e.isRequired&&e.isBigInt)t="BigIntFilter";else if(!e.isRequired&&e.isBigInt)t="BigIntNullableFilter";else if(e.isRequired&&e.isDecimal)t="DecimalFilter";else if(!e.isRequired&&e.isDecimal)t="DecimalNullableFilter";else if(e.isRequired&&e.isBoolean)t="BoolFilter";else if(!e.isRequired&&e.isBoolean)t="BoolNullableFilter";else if(e.isRequired&&e.isDateTime)t="DateTimeFilter";else if(!e.isRequired&&e.isDateTime)t="DateTimeNullableFilter";else if(e.isRequired&&e.isJson)t="JsonFilter";else if(!e.isRequired&&e.isJson)t="JsonNullableFilter";else if(e.isRequired&&e.isBytes)t="BytesFilter";else if(!e.isRequired&&e.isBytes)t="BytesNullableFilter";else if(e.isRequired&&e.isEnum)t=`Enum${e.type}Filter`;else if(!e.isRequired&&e.isEnum)t=`Enum${e.type}NullableFilter`;else{if(!e.isRelation)throw Object(st.a)("ScriptWhere.supportedOperations","Unsupported field for `where` filter",{fields:this.fields.map(e=>null==e?void 0:e.serialize())});t=e.type+"WhereInput"}const n=Vn.inputObjectTypes.get(t);if(!n)throw Object(st.a)("ScriptWhere.supportedOperations","Could not find appropriate InputType for this field type. This should never happen.",{inputTypeName:t,fields:this.fields.map(e=>null==e?void 0:e.serialize())});const o=n.fields.map(e=>e.name).filter(e=>"mode"!==e);return e.isRequired||e.isRelation?o:o.concat(["isNull","isNotNull"])}get isValid(){return Hn(this)}getFilterableFieldsAtIndex(e){if(e>=this.fieldIds.length)throw Object(st.a)("ScriptWhere.getFilterableFieldsAtIndex","Index is out of range",{fieldIds:this.fieldIds,index:e});if(0===e)return this.script.model.fields.filter(e=>e.isScalar&&!e.isList||e.isEnum&&!e.isList||e.isRelation);if(1===e){return It.get(this.fieldIds[e-1]).typeAsModel.fields.filter(e=>e.isScalar&&!e.isList||e.isEnum&&!e.isList)}return[]}}Bn([u.observable],zn.prototype,"id",void 0),Bn([u.observable],zn.prototype,"fieldIds",void 0),Bn([u.observable],zn.prototype,"operation",void 0),Bn([u.observable],zn.prototype,"value",void 0),Bn([u.observable],zn.prototype,"scriptId",void 0),Bn([u.observable],zn.prototype,"enabled",void 0),Bn([u.computed],zn.prototype,"fields",null),Bn([u.computed],zn.prototype,"script",null),Bn([u.computed],zn.prototype,"supportedOperations",null),Bn([u.computed],zn.prototype,"isValid",null),Bn([u.action],zn.prototype,"update",void 0);class Un extends ht{constructor({modelId:e,scriptId:t}){super(zn),this.serialize=()=>Object.values(this.values).map(e=>e.serialize()),this.modelId=e,this.scriptId=t}get model(){let e=kt.get(this.modelId);if(!e)throw Object(st.a)("ScriptWhere.model","Invalid modelId",{modelId:this.modelId});return e}get script(){return io.get(this.scriptId)}add(e,t){var n;const o=super.add(Object.assign(Object.assign({},e),{scriptId:this.scriptId}),t);return null===(n=this.script)||void 0===n||n.update({where:[]},t),o}}Bn([u.observable],Un.prototype,"modelId",void 0),Bn([u.observable],Un.prototype,"scriptId",void 0),Bn([u.computed],Un.prototype,"model",null),Bn([u.computed],Un.prototype,"script",null),Bn([u.action],Un.prototype,"add",null);var qn=Un,Yn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Kn{constructor(e){this.take=e.take,this.skip=e.skip}update(e={}){Object(xe.has)(e,"take")&&(this.take=e.take),Object(xe.has)(e,"skip")&&(this.skip=e.skip)}reset(){this.update({take:100,skip:0})}}Yn([u.observable],Kn.prototype,"take",void 0),Yn([u.observable],Kn.prototype,"skip",void 0),Yn([u.action],Kn.prototype,"update",null),Yn([u.action],Kn.prototype,"reset",null);var $n=Kn,Qn=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Xn{constructor(e){this.fieldId=e.fieldId,this.order=e.order}get field(){return It.get(this.fieldId)}update(e={}){Object(xe.has)(e,"fieldId")&&(this.fieldId=e.fieldId),Object(xe.has)(e,"order")&&(this.order=e.order)}reset(){this.update({fieldId:null,order:"asc"})}}Qn([u.observable],Xn.prototype,"fieldId",void 0),Qn([u.observable],Xn.prototype,"order",void 0),Qn([u.computed],Xn.prototype,"field",null),Qn([u.action],Xn.prototype,"update",null),Qn([u.action],Xn.prototype,"reset",null);var Jn=Xn;var Zn=e=>Array.from(new Set(e));var eo=({modelId:e,where:t,fieldIds:n,sort:o,pagination:r})=>{const i=[],s=kt.get(e);if(!s)throw Object(st.a)("getFindManyQuery","Invalid modelId",{modelId:e});if(i.push(`prisma.${s.photonNamespace}.findMany({`),t&&(null==t?void 0:t.size)>0&&(i.push(" where: {"),i.push(" AND: ["),Object.values(t.values).forEach(e=>{var t,n,o,r,s,a,l,u,c,p,d,h,f,g,v,m,y,C,w,b,E,_,O,R,S,T;if(e.enabled&&e.isValid&&("isNull"===e.operation&&(i.push(" {"),(null===(t=Object(xe.first)(e.fields))||void 0===t?void 0:t.isRelation)&&i.push(` ${null===(n=Object(xe.first)(e.fields))||void 0===n?void 0:n.name}: {`),(null===(o=Object(xe.first)(e.fields))||void 0===o?void 0:o.isList)&&i.push(" some: {"),i.push(` ${null===(r=Object(xe.last)(e.fields))||void 0===r?void 0:r.name}: { equals: null },`),(null===(s=Object(xe.first)(e.fields))||void 0===s?void 0:s.isList)&&i.push(" },"),(null===(a=Object(xe.first)(e.fields))||void 0===a?void 0:a.isRelation)&&i.push(" },"),i.push(" },")),"isNotNull"===e.operation&&(i.push(" {"),(null===(l=Object(xe.first)(e.fields))||void 0===l?void 0:l.isRelation)&&i.push(` ${null===(u=Object(xe.first)(e.fields))||void 0===u?void 0:u.name}: {`),(null===(c=Object(xe.first)(e.fields))||void 0===c?void 0:c.isList)&&i.push(" some: {"),i.push(` ${null===(p=Object(xe.last)(e.fields))||void 0===p?void 0:p.name}: { not: { equals: null } },`),(null===(d=Object(xe.first)(e.fields))||void 0===d?void 0:d.isList)&&i.push(" },"),(null===(h=Object(xe.first)(e.fields))||void 0===h?void 0:h.isRelation)&&i.push(" },"),i.push(" },")),e.value)){if(i.push(" {"),(null===(f=Object(xe.first)(e.fields))||void 0===f?void 0:f.isRelation)&&i.push(` ${null===(g=Object(xe.first)(e.fields))||void 0===g?void 0:g.name}: {`),(null===(v=Object(xe.first)(e.fields))||void 0===v?void 0:v.isList)&&i.push(" some: {"),i.push(` ${null===(m=Object(xe.last)(e.fields))||void 0===m?void 0:m.name}: {`),["in","notIn"].includes(e.operation))i.push(` ${e.operation}: ${e.value},`);else{let t=e.value;(null===(y=Object(xe.last)(e.fields))||void 0===y?void 0:y.isDateTime)&&!(null===(C=Object(xe.last)(e.fields))||void 0===C?void 0:C.isList)&&(t=`"${new Date(t).toISOString()}"`),!(null===(w=Object(xe.last)(e.fields))||void 0===w?void 0:w.isString)&&!(null===(b=Object(xe.last)(e.fields))||void 0===b?void 0:b.isEnum)||t.startsWith('"')||(t='"'.concat(t)),!(null===(E=Object(xe.last)(e.fields))||void 0===E?void 0:E.isString)&&!(null===(_=Object(xe.last)(e.fields))||void 0===_?void 0:_.isEnum)||t.endsWith('"')||(t=t.concat('"')),(null===(O=Object(xe.last)(e.fields))||void 0===O?void 0:O.isBigInt)&&(t=Object(Kt.a)(BigInt(t))),i.push(` ${e.operation}: ${t},`),(null===(R=Object(xe.last)(e.fields))||void 0===R?void 0:R.isString)&&Vn.isPostgresDatasource&&i.push(' mode: "insensitive",')}i.push(" },"),(null===(S=Object(xe.first)(e.fields))||void 0===S?void 0:S.isList)&&i.push(" },"),(null===(T=Object(xe.first)(e.fields))||void 0===T?void 0:T.isRelation)&&i.push(" },"),i.push(" },")}}),i.push(" ]"),i.push(" },")),(null==o?void 0:o.fieldId)&&(null==o?void 0:o.order)){const e=It.get(o.fieldId);if(!e)throw Object(st.a)("getFindManyQuery","Invalid sort fieldId",{sort:o});i.push(" orderBy: [{"),i.push(` ${e.name}: "${o.order}",`),i.push(" }],")}void 0!==(null==r?void 0:r.take)&&null!==r.take&&i.push(` take: ${Number(r.take)},`),void 0!==(null==r?void 0:r.skip)&&null!==r.skip&&i.push(` skip: ${Number(r.skip)},`),n=n?Zn([].concat(s.uniqueIdentifiers.map(e=>e.id),n)):s.fieldIds;const a=((e,t)=>t.slice().sort((t,n)=>e.fieldIds.findIndex(e=>e===t)-e.fieldIds.findIndex(e=>e===n)))(s,n).map(e=>It.get(e));return i.push(" select: {"),a.forEach(e=>{e&&i.push(` ${e.name}: true,`)}),i.push(" }"),i.push("})"),i.join("\n")};var to=({code:e,modelId:t,where:n,fieldIds:o})=>JSON.stringify({code:e,modelId:t,where:n.serialize(),fieldIds:o}),no=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class oo extends gt{constructor(e){var t,n,o,r,i,s,a,l;super(e),this.run=async()=>{if(!this.model)throw Object(st.a)("Script.run","Invalid modelId",{modelId:this.modelId});this.update({running:!0}),Wt.updateError({visible:!1});const e=this.frozen||"visual"===this.inputMode?eo({modelId:this.modelId,where:this.where,sort:this.sort,pagination:this.pagination}):this.code;try{this.model.runCountQuery();const{recordIds:t,modelId:n,fieldIds:o}=await Nn(e);this.update({recordIds:t}),"visual"===this.inputMode&&this.update({code:e}),"code"===this.inputMode&&this.update({modelId:n,fieldIds:o})}catch(t){Yt.update({type:"client",description:"Unable to run script",dump:`Message: ${t.message}\n\nQuery:\n${e}\n`}),Wt.updateError({visible:!0})}finally{this.update({running:!1})}},this.loadMore=async()=>{if(this.__recordIds.length>=(this.model.count||0)||"code"===this.inputMode)return[];this.update({running:!0});const e=eo({modelId:this.modelId,where:this.where,sort:this.sort,pagination:{take:100,skip:this.pagination.skip+this.__recordIds.length}});try{const{recordIds:t}=await Nn(e),n=Zn([...this.__recordIds,...t]);return this.update({running:!1,recordIds:n,pagination:{take:n.length}}),t.map(e=>Gn.get(e)).filter(e=>!!e)}catch(t){throw this.update({running:!1}),Yt.update({type:"client",description:"Unable to fetch paginated records",dump:`Message: ${t.message}\n \nQuery:\n${e}\n`}),Wt.updateError({visible:!0}),Object(st.a)("Script.loadMore","Unable to fetch next page of records",{take:this.pagination.take,skip:this.pagination.skip,lastFetchedRecordId:Object(xe.last)(this.__recordIds)},t)}},this.update=(e,t={})=>{Object(xe.has)(e,"name")&&(this.name=e.name),Object(xe.has)(e,"frozen")&&(this.frozen=e.frozen),Object(xe.has)(e,"modelId")&&(this.modelId=e.modelId),Object(xe.has)(e,"fieldIds")&&(this.fieldIds=e.fieldIds),Object(xe.has)(e,"inputMode")&&(this.inputMode=e.inputMode),Object(xe.has)(e,"viewMode")&&(this.viewMode=e.viewMode),Object(xe.has)(e,"sort")&&this.sort.update(e.sort),Object(xe.has)(e,"pagination")&&this.pagination.update(e.pagination),Object(xe.has)(e,"code")&&(this.code=e.code),Object(xe.has)(e,"recordIds")&&(this.__recordIds=e.recordIds.filter(e=>{var t;return(null===(t=Gn.get(e))||void 0===t?void 0:t.modelId)===this.modelId})),Object(xe.has)(e,"running")&&(this.running=e.running),super.update(e,t)},this.serialize=()=>({projectId:yo.activeProjectId,id:this.id,frozen:this.frozen,name:this.name,inputMode:this.inputMode,code:this.code,modelId:this.modelId,where:this.where.serialize(),fieldIds:this.fieldIds.map(e=>String(e)),sortFieldId:this.sort.fieldId,sortOrder:this.sort.order,viewMode:this.viewMode}),this.id=e.id,this.frozen=e.frozen,this.name=e.name,this.modelId=e.modelId,this.fieldIds=e.fieldIds||[],this.inputMode="visual",this.where=new qn({modelId:e.modelId,scriptId:this.id}),(e.where||[]).forEach(e=>this.where.add(e)),this.sort=new Jn({fieldId:null!==(n=null===(t=e.sort)||void 0===t?void 0:t.fieldId)&&void 0!==n?n:null,order:null!==(r=null===(o=e.sort)||void 0===o?void 0:o.order)&&void 0!==r?r:"asc"}),this.pagination=new $n({take:null!==(s=null===(i=e.pagination)||void 0===i?void 0:i.take)&&void 0!==s?s:100,skip:null!==(l=null===(a=e.pagination)||void 0===a?void 0:a.skip)&&void 0!==l?l:0}),this.viewMode="table",this.code=e.code||eo({modelId:this.modelId,where:this.where,sort:this.sort,pagination:this.pagination}),this.__recordIds=[],this.running=!1}get hash(){return to({code:this.code,modelId:this.modelId,where:this.where,fieldIds:this.fieldIds})}get model(){let e=kt.get(this.modelId);if(!e)throw Object(st.a)("Script.model","Invalid modelId",{modelId:this.modelId});return e}get fields(){return this.fieldIds.map(e=>{const t=It.get(e);if(!t)throw Object(st.a)("Script.fields","Invalid fieldId",{fieldId:e});return t})}get recordIds(){const e=In.actions.filter(e=>{var t,n;return"create"===e.type&&e.sessionId===(null===(t=ho.activeTab)||void 0===t?void 0:t.sessionId)&&(null===(n=e.record)||void 0===n?void 0:n.modelId)===this.modelId}).map(e=>e.recordId).filter(e=>!!e),t=In.actions.filter(e=>{var t;return"delete"===e.type&&e.sessionId===(null===(t=ho.activeTab)||void 0===t?void 0:t.sessionId)}).map(e=>e.recordId);return[...e,...this.__recordIds.filter(e=>!t.includes(e))]}get records(){return this.recordIds.map(e=>Gn.get(e)).filter(e=>!!e)}get uncommittedRecords(){return In.actions.filter(e=>{var t;return"create"===e.type&&(null===(t=e.record)||void 0===t?void 0:t.modelId)===this.modelId}).map(e=>e.record).filter(e=>!!e)}reset(){this.update({recordIds:[],inputMode:"visual",viewMode:"table",running:!1}),this.sort.reset(),this.pagination.reset()}}no([u.observable],oo.prototype,"id",void 0),no([u.observable],oo.prototype,"frozen",void 0),no([u.observable],oo.prototype,"name",void 0),no([u.observable],oo.prototype,"modelId",void 0),no([u.observable],oo.prototype,"fieldIds",void 0),no([u.observable],oo.prototype,"inputMode",void 0),no([u.observable],oo.prototype,"where",void 0),no([u.observable],oo.prototype,"sort",void 0),no([u.observable],oo.prototype,"pagination",void 0),no([u.observable],oo.prototype,"viewMode",void 0),no([u.observable],oo.prototype,"code",void 0),no([u.observable],oo.prototype,"running",void 0),no([u.observable],oo.prototype,"__recordIds",void 0),no([u.computed],oo.prototype,"hash",null),no([u.computed],oo.prototype,"model",null),no([u.computed],oo.prototype,"fields",null),no([u.computed],oo.prototype,"recordIds",null),no([u.computed],oo.prototype,"records",null),no([u.computed],oo.prototype,"uncommittedRecords",null),no([u.action],oo.prototype,"run",void 0),no([u.action],oo.prototype,"loadMore",void 0),no([u.action],oo.prototype,"update",void 0),no([u.action],oo.prototype,"reset",null);var ro=oo;var io=new class extends ht{constructor(){super(ro,{idbTableName:"scripts"})}},so=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class ao extends gt{constructor(e){super(e),this.save=()=>{this.session&&(this.session.forceSave(),this.session.isScript&&!this.session.script.name&&this.session.script.update({name:"Copy of "+this.session.script.model.name}))},this.discardChanges=()=>{this.session&&this.session.discardChanges()},this.load=({modelId:e,scriptId:t,sessionId:n})=>{if(!n&&!t&&!e)throw Object(st.a)("Tab.load","Invaid params",{modelId:e,scriptId:t,sessionId:n});if(e){const n=kt.get(e);if(!n)throw Object(st.a)("Tab.load","Invalid modelId",{modelId:e});t=io.add({frozen:!0,name:null,modelId:e,fieldIds:n.fieldIds}).id}t&&(n=Cn.add({type:"script",scriptId:t,lastSavedHash:null}).id),n&&this.update({sessionId:n}),In.actions.length>0?Wt.updateActions({visible:!0}):Wt.updateActions({visible:!1})},this.update=(e,t={})=>(Object(xe.has)(e,"sessionId")&&(this.sessionId=e.sessionId),Object(xe.has)(e,"preview")&&(this.preview=e.preview),super.update(e,t)),this.serialize=()=>({projectId:yo.activeProjectId,id:this.id,sessionId:this.sessionId,preview:this.preview}),this.id=e.id,this.sessionId=e.sessionId,this.preview=e.preview||!1,this.preview&&(this.disposer=Object(u.when)(()=>{var e;return!!(null===(e=this.session)||void 0===e?void 0:e.isDirty)},()=>{this.update({preview:!1})}))}get title(){var e;return(null===(e=this.session)||void 0===e?void 0:e.isScript)?this.session.script.name||this.session.script.model&&this.session.script.model.name:"+"}get session(){return Cn.get(this.sessionId)}get isDirty(){if(!this.session)return!1;if(!this.session.isScript)return!1;const e=this.session.script,t=Object.values(In.values).filter(e=>e.sessionId===this.sessionId);return e.where.size>0||e.fieldIds.length!==e.model.fieldIds.length||0!==e.pagination.skip||t.length>0}clean(){this.disposer&&this.disposer()}}so([u.observable],ao.prototype,"id",void 0),so([u.observable],ao.prototype,"sessionId",void 0),so([u.observable],ao.prototype,"preview",void 0),so([u.computed],ao.prototype,"title",null),so([u.computed],ao.prototype,"session",null),so([u.computed],ao.prototype,"isDirty",null),so([u.action],ao.prototype,"save",void 0),so([u.action],ao.prototype,"discardChanges",void 0),so([u.action],ao.prototype,"load",void 0),so([u.action],ao.prototype,"update",void 0),so([u.action],ao.prototype,"clean",null);var lo=ao,uo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},co=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class po extends ht{constructor(){super(lo,{idbTableName:"tabs"}),this.hydrate=({activeTabId:e})=>{let t=this.get(e);t&&t.session?(Object.values(this.values).forEach(e=>{if(e.session){if(e.session.isScript){if(!kt.get(e.session.script.modelId))return void this.remove(e.id)}}else this.remove(e.id)}),t=this.get(e),t&&t.session?this.switch({id:e}):this.switch({id:"model-list-tab"})):this.switch({id:"model-list-tab"})},this.remove=e=>{var t,n;if(!this.get(e))return this.get("model-list-tab");const o=this.openTabs.findIndex(e=>e.id===this.activeTabId),r=this.openTabs.findIndex(t=>t.id===e),i=super.remove(e);if(Object.values(In.values).filter(e=>e.sessionId===i.sessionId).forEach(e=>In.remove(e.id)),o===r){let e=r-1;-1===e&&(e=r),this.switch({id:null!==(n=null===(t=this.openTabs[e])||void 0===t?void 0:t.id)&&void 0!==n?n:"model-list-tab"})}return i},Cn.add({id:"model-list-session",type:"model-list",scriptId:null,lastSavedHash:null},{skipPersist:!0}),super.add({id:"model-list-tab",sessionId:"model-list-session",preview:!1},{skipPersist:!0}),this.activeTabId="model-list-tab"}get activeTab(){return this.get(this.activeTabId)}get openTabs(){return Object.values(this.values).reverse().filter(e=>!!e&&!!e.session).sort(e=>"model-list-tab"===e.id?1:-1)}get previewTab(){return Object.values(this.values).find(e=>e.preview)||null}add(e,t={}){var{modelId:n,scriptId:o,sessionId:r}=e,i=co(e,["modelId","scriptId","sessionId"]);let s;if(!r&&!o&&!n)throw Object(st.a)("TabStore.add","Invaid params",{modelId:n,scriptId:o,sessionId:r});if(n){const e=kt.get(n);if(!e)throw Object(st.a)("TabStore.add","Invalid modelId",{modelId:n});o=io.add({frozen:!0,name:null,modelId:n,fieldIds:e.fieldIds}).id}return o&&(r=Cn.add({type:"script",scriptId:o,lastSavedHash:null}).id),r&&(s=super.add(Object.assign(Object.assign({},i),{sessionId:r}),t)),s}switch({id:e,index:t,direction:n}){if(!e&&void 0===t&&void 0===n)throw Object(st.a)("TabStore.switch","Invalid params",{id:e,index:t,direction:n});let o;if(e?o=this.get(e):void 0!==t&&(o=this.openTabs[t]),n){const e=this.openTabs.findIndex(e=>e.id===this.activeTabId);-1!==e&&("right"===n?(o=this.openTabs[e+1],e===this.openTabs.length-1&&(o=this.openTabs[0])):"left"===n&&(o=this.openTabs[e-1]))}o||(o=this.get("model-list-tab")),this.activeTabId=o.id,In.actions.length>0?Wt.updateActions({visible:!0}):Wt.updateActions({visible:!1})}}uo([u.observable],po.prototype,"activeTabId",void 0),uo([u.computed],po.prototype,"activeTab",null),uo([u.computed],po.prototype,"openTabs",null),uo([u.computed],po.prototype,"previewTab",null),uo([u.action],po.prototype,"hydrate",void 0),uo([u.action],po.prototype,"add",null),uo([u.action],po.prototype,"switch",null),uo([u.action],po.prototype,"remove",void 0);var ho=new po,fo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class go extends gt{constructor(e){super(e),this.update=(e,t)=>{Object(xe.has)(e,"name")&&(this.name=e.name),Object(xe.has)(e,"path")&&(this.schemaPath=e.schemaPath),Object(xe.has)(e,"recentModelIds")&&(this.recentModelIds=e.recentModelIds),super.update(e,t)},this.id=e.id,this.name=e.name,this.schemaPath=e.schemaPath,this.recentModelIds=e.recentModelIds||[],Object(u.reaction)(()=>[ho.activeTabId,yt.theme],()=>{_o.ready&&pt.save("projects",this.serialize())},{fireImmediately:!0})}get recentModels(){return this.recentModelIds.map(e=>kt.get(e)).filter(e=>!!e)}addRecentModel(e){this.recentModelIds.includes(e)&&(this.recentModelIds=this.recentModelIds.filter(t=>t!==e)),5===this.recentModelIds.length&&this.recentModelIds.pop(),this.recentModelIds.unshift(e)}serialize(){return{id:this.id,activeTabId:String(ho.activeTabId),recentModelIds:this.recentModelIds.map(e=>String(e)),theme:yt.theme}}}fo([u.observable],go.prototype,"id",void 0),fo([u.observable],go.prototype,"name",void 0),fo([u.observable],go.prototype,"schemaPath",void 0),fo([u.observable],go.prototype,"recentModelIds",void 0),fo([u.computed],go.prototype,"recentModels",null),fo([u.action],go.prototype,"addRecentModel",null),fo([u.action],go.prototype,"update",void 0);var vo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class mo extends ht{constructor(){super(go,{idbTableName:"projects"}),this.activeProjectId=null}get activeProject(){const e=this.activeProjectId;return e?this.get(e):null}switch(e){this.activeProjectId=e}}vo([u.observable],mo.prototype,"activeProjectId",void 0),vo([u.computed],mo.prototype,"activeProject",null),vo([u.action],mo.prototype,"switch",null);var yo=new mo;var Co=e=>((e.endsWith("/")||e.endsWith("\\"))&&(e=e.slice(0,-1)),(e.startsWith("/")||e.startsWith("\\"))&&(e=e.slice(1)),e.replace(RegExp(/\/|\\/,"gi"),"-"));var wo=async()=>{const e=Object.values(kt.values);if(Vn.isPostgresDatasource){const{error:t,data:n}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:{query:"prisma.$queryRaw(`\n SELECT schemaname,relname,n_live_tup\n FROM pg_stat_user_tables\n ORDER BY n_live_tup DESC;\n `)"}}});if(t)throw Object(st.a)("getAllCounts","Unable to process `count` query",{error:t});if(!Array.isArray(n.response))throw Object(st.a)("getAllCounts","Malformed response for `count` query:\n\n",{error:t});n.response.forEach(({relname:t,n_live_tup:n})=>{const o=e.find(e=>e.dbName===t||e.name===t);o&&o.update({count:n})})}else{let t="prisma.$transaction([\n";t+=e.reduce((e,t)=>e+=` ${At({modelId:t.id})},\n`,""),t+="])";const{error:n,data:o}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:{query:t}}});if(n)throw Object(st.a)("getAllCounts","Unable to process `count` query",{error:n});if(!Array.isArray(o))throw Object(st.a)("getAllCounts","Malformed response for `count` query:\n\n",{error:n});o.forEach(({response:t},n)=>{e[n].update({count:t})})}},bo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Eo{constructor(){this.ready=!1,this.init=async()=>{console.time("Bootstrap Duration"),this.update({ready:!1}),this.disposeProjectReaction&&this.disposeProjectReaction();try{const{error:e,data:t}=await window.transport.request({channel:"prisma",action:"clientStart",payload:{data:null}});if(e||!t)throw new Error("Error starting Prisma Client: "+JSON.stringify(e,null,2));const{dmmf:n,datasourceProvider:o}=t,{error:r,data:i}=await window.transport.request({channel:"project",action:"get",payload:{data:null}});if(r)throw new Error("Error fetching project: "+r);const{name:s,schemaPath:a}=i,l=Co(a);yo.add({id:l,name:s,schemaPath:a,recentModelIds:[]},{skipPersist:!0}),yo.switch(l),await pt.init({projectId:l}),Vn.hydrate(n,o);for(let e of[yo,It,kt,Rt,io,Gn,Cn,In,ho])await e.restore();Vn.removeUnusedModels(n),Vn.removeUnusedFields(n),Vn.removeUnusedEnums(n),window.requestIdleCallback?window.requestIdleCallback(wo):await wo(),Object.values(io.values).filter(e=>e.frozen&&kt.get(e.modelId)).forEach(e=>e.update({fieldIds:e.model.fieldIds}));const u=(await pt.load("projects")).find(e=>e.id===l);u&&(ho.hydrate({activeTabId:u.activeTabId}),yt.apply(u.theme)),await yo.activeProject.forceUpdate(),this.update({ready:!0}),console.timeEnd("Bootstrap Duration")}catch(e){throw this.update({ready:!0}),Yt.update({type:"fatal",description:"Unable to load project",dump:`${e.message}\n${e.stack}`}),Wt.updateError({visible:!0}),Object(st.a)("BootstrapStore.init","Studio bootstrap failed",{message:e.message,stack:e.stack},e)}window.requestIdleCallback?window.requestIdleCallback(this.cleanupIndexedDB):this.cleanupIndexedDB()},this.update=(e={})=>{Object(xe.has)(e,"ready")&&(this.ready=e.ready)},this.cleanupIndexedDB=()=>{const e=Object.values(ho.openTabs).map(e=>e.sessionId);Object.values(Cn.values).filter(t=>!e.includes(t.id)).forEach(e=>Cn.remove(e.id));const t=Object.values(Cn.values).map(e=>e.scriptId);Object.values(io.values).filter(e=>!t.includes(e.id)&&null===e.name).forEach(e=>io.remove(e.id))}}}bo([u.observable],Eo.prototype,"ready",void 0),bo([u.action],Eo.prototype,"init",void 0),bo([u.action],Eo.prototype,"update",void 0);var _o=new Eo,Oo=n(4),Ro=n.n(Oo),So=n(5),To=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Do{constructor(e){Object(u.runInAction)(()=>{this.sessionId=e.sessionId})}get session(){return Cn.get(this.sessionId)}}To([u.observable],Do.prototype,"sessionId",void 0),To([u.computed],Do.prototype,"session",null);const Po=new Do({sessionId:"model-list-session"}),Io=Object(i.createContext)(Po),Ao=Io.Provider,No=(Io.Consumer,Io);var xo=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};class Fo{constructor(){this.hasCheckedForUpdates=!1,this.latestVersion="0.365.0",this.changelog="",this.isDownloading=!1,this.isUpdateReady=!1,this.isInstalling=!1,this.check=async()=>{if(!Me.updates)return;Object(u.runInAction)(()=>{this.hasCheckedForUpdates=!1,this.isDownloading=!1,this.isUpdateReady=!1,this.isInstalling=!1});const{error:e,data:t}=await window.transport.request({channel:"update",action:"check",payload:{data:null}});if(e)return void console.error("Update check failed",e);const{available:n,version:o,changelog:r}=t;n?Object(u.runInAction)(()=>{this.hasCheckedForUpdates=!0,this.latestVersion=o,this.changelog=r}):Object(u.runInAction)(()=>{this.hasCheckedForUpdates=!0,this.latestVersion="0.365.0"})},this.download=async()=>Me.updates?this.isDownloading?Promise.reject("Another download is in progress"):(Object(u.runInAction)(()=>{this.isDownloading=!0,this.isUpdateReady=!1,this.isInstalling=!1}),await window.transport.request({channel:"update",action:"download",payload:{data:null}}),void Object(u.runInAction)(()=>{this.isDownloading=!1,this.isUpdateReady=!0})):Promise.resolve(),this.cancelDownload=async()=>{if(Me.updates){if(!this.isDownloading)return Promise.resolve();await window.transport.request({channel:"update",action:"downloadCancel",payload:{data:null}}),Object(u.runInAction)(()=>{this.isDownloading=!1,this.isUpdateReady=!1})}},this.install=async()=>{Me.updates&&(Object(u.runInAction)(()=>{this.isDownloading=!1,this.isUpdateReady=!0,this.isInstalling=!0}),await window.transport.request({channel:"update",action:"install",payload:{data:null}}),Object(u.runInAction)(()=>{this.isUpdateReady=!1,this.isInstalling=!1}))}}get isUpToDate(){return"0.365.0"===this.latestVersion}}xo([u.observable],Fo.prototype,"hasCheckedForUpdates",void 0),xo([u.observable],Fo.prototype,"latestVersion",void 0),xo([u.observable],Fo.prototype,"changelog",void 0),xo([u.observable],Fo.prototype,"isDownloading",void 0),xo([u.observable],Fo.prototype,"isUpdateReady",void 0),xo([u.observable],Fo.prototype,"isInstalling",void 0),xo([u.computed],Fo.prototype,"isUpToDate",null),xo([u.action],Fo.prototype,"check",void 0),xo([u.action],Fo.prototype,"download",void 0),xo([u.action],Fo.prototype,"cancelDownload",void 0);var Lo=new Fo,Mo=n(26),ko=n.n(Mo);class Go extends s.a.PureComponent{render(){return s.a.createElement("div",{"data-cy":"skeleton",className:ko.a.container},s.a.createElement("div",{className:ko.a.tab1,style:{paddingLeft:Me.headerLeftOffset}}),s.a.createElement("div",{className:ko.a.tab2}),s.a.createElement("div",{className:ko.a.tabEmptySpace}),s.a.createElement("div",{className:ko.a.filter1}),s.a.createElement("div",{className:ko.a.filter2}),s.a.createElement("div",{className:ko.a.filter3}),s.a.createElement("div",{className:ko.a.filter4}),s.a.createElement("div",{className:ko.a.separator}),s.a.createElement("div",{className:ko.a.button1}),s.a.createElement("div",{className:ko.a.btnSpace}," Getting things ready..."),s.a.createElement("div",{className:ko.a.table}))}}var Vo=Object(So.a)(Go),jo=n(9),Wo=n(84),Ho=n.n(Wo),Bo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};var zo=Object(So.a)(e=>{var{className:t,children:n,onClick:o}=e,r=Bo(e,["className","children","onClick"]);return s.a.createElement(jo.a,Object.assign({className:Ro()(Ho.a.container,t),onClick:o},r),n)}),Uo=n(8),qo=n(86),Yo=n.n(qo);var Ko=Object(So.a)(({className:e,onClick:t})=>s.a.createElement("div",{"data-cy":"mask",className:Ro()(Yo.a.mask,e),onClick:t}));var $o=(e,t={})=>{const n=e.current.getBoundingClientRect(),o={top:0,bottom:0,left:0,right:0};return t.x||(t.x=0),t.y||(t.y=0),window.innerWidth-n.right<100?(o.right=window.innerWidth-n.right-t.x,o.left=void 0,o.maxWidth=window.innerWidth-o.right-20):(o.left=n.left+t.x,o.right=void 0,o.maxWidth=window.innerWidth-o.left-20),window.innerHeight-n.bottom<100?(o.bottom=n.top-t.y,o.top=20,o.maxHeight=window.innerHeight-o.bottom-20):(o.top=n.bottom+t.y,o.bottom=void 0,o.maxHeight=window.innerHeight-o.top-20),o},Qo=n(76),Xo=n.n(Qo),Jo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Zo extends s.a.PureComponent{constructor(){super(...arguments),this.state={top:0,bottom:0,left:0,right:0,minWidth:void 0,maxWidth:void 0,minHeight:void 0,maxHeight:void 0}}componentDidMount(){this.setPosition(this.props)}componentWillReceiveProps(e){this.setPosition(e)}setPosition({target:e,targetOffsetX:t,targetOffsetY:n}){e&&this.setState($o(e,{x:t,y:n}))}render(){const e=this.props,{className:t,maskClassName:n,domElementId:o,target:r,targetOffsetX:i,targetOffsetY:a,darken:u,children:c,onClickOutside:p}=e,d=Jo(e,["className","maskClassName","domElementId","target","targetOffsetX","targetOffsetY","darken","children","onClickOutside"]);return s.a.createElement(s.a.Fragment,null,l.a.createPortal(s.a.createElement(s.a.Fragment,null,s.a.createElement(Ko,{className:Ro()({[Xo.a.transparent]:!u},n),onClick:p}),s.a.createElement("div",Object.assign({"data-cy":"modal",className:Ro()(Xo.a.container,t),style:r&&this.state},d),c)),document.getElementById(o)))}}Zo.defaultProps={domElementId:"modal-root",targetOffsetX:0,targetOffsetY:5,darken:!1};var er=Object(So.a)(Zo);function tr(){return(tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var nr=i.createElement("path",{d:"M8.707 7.293a1 1 0 00-1.414 1.414l1.414-1.414zm7.071 9.9a1 1 0 001.414-1.415l-1.414 1.414zm-8.485-1.415a1 1 0 101.414 1.414l-1.414-1.414zm9.9-7.07a1 1 0 00-1.415-1.415l1.414 1.414zm-9.9 0l8.485 8.484 1.414-1.414-8.485-8.485-1.414 1.414zm1.414 8.484l8.485-8.485-1.414-1.414-8.485 8.485 1.414 1.414z",fill:"currentColor"});var or=function(e){return i.createElement("svg",tr({width:24,height:24},e),nr)};function rr(){return(rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var ir=i.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zM12 9v4M12 17h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});var sr=function(e){return i.createElement("svg",rr({viewBox:"0 0 24 24",fill:"none"},e),ir)},ar=n(53),lr=n.n(ar);class ur extends s.a.Component{componentDidMount(){document.getElementById("dialog-root").style.pointerEvents="initial"}componentWillUnmount(){document.getElementById("dialog-root").style.pointerEvents="none"}render(){const{className:e,error:t,title:n,primaryButton:o,secondaryButton:r,children:i,onClose:a}=this.props;return s.a.createElement(er,{"data-cy":"dialog",className:Ro()(lr.a.container,e),domElementId:"dialog-root",darken:!0,onClickOutside:a},s.a.createElement(s.a.Fragment,null,n&&s.a.createElement("div",{className:Ro()(lr.a.header,{[lr.a.error]:t})},t&&s.a.createElement(sr,null),n),i,(o||r)&&s.a.createElement("div",{className:lr.a.footer},o,r),a&&s.a.createElement(zo,{className:lr.a.closeButton,onClick:a},s.a.createElement(or,null))))}}var cr=Object(So.a)(ur),pr=n(60),dr=n.n(pr);class hr extends s.a.Component{render(){const{onCancel:e,onDiscard:t}=this.props;return s.a.createElement(cr,{className:dr.a.container,title:"Discard changes?",primaryButton:s.a.createElement(jo.a,{"data-cy":"tab__discard--discard",red:!0,onClick:t},"Discard"),secondaryButton:s.a.createElement(jo.a,{"data-cy":"tab__discard--cancel",ghost:!0,className:dr.a.cancelBtn,onClick:e},"Cancel")},s.a.createElement("div",{className:dr.a.content},s.a.createElement("p",{className:dr.a.description},"This tab contains unsaved changes. Do you want to discard them?")))}}var fr=Object(So.a)(hr),gr=n(17),vr=n(34),mr=n.n(vr);class yr extends s.a.PureComponent{constructor(e){super(e),this.container=s.a.createRef(),this.handleClick=()=>{ho.switch({id:this.props.id})},this.handleDoubleClick=()=>{const e=ho.get(this.props.id);e&&e.preview&&e.update({preview:!1})},this.handleClose=e=>{e&&e.stopPropagation(),e&&e.preventDefault();const t=ho.get(this.props.id);t&&(t.isDirty?this.setState({isCloseDialogOpen:!0}):(ho.remove(this.props.id),this.setState({isCloseDialogOpen:!1})))},this.handleDiscardChanges=()=>{ho.remove(this.props.id),this.setState({isCloseDialogOpen:!1})},this.handleCancelClose=()=>{this.setState({isCloseDialogOpen:!1})},this.state={isCloseDialogOpen:!1},this.reaction=Object(u.computed)(()=>ho.activeTabId).observe(({newValue:t})=>{var n;t===e.id&&(null===(n=this.container.current)||void 0===n||n.scrollIntoView())})}componentWillUnmount(){this.reaction()}render(){const{isCloseDialogOpen:e}=this.state,{id:t}=this.props,n=ho.get(t),o=ho.activeTabId===t;if(!n||!n.session)return null;const r=null==n?void 0:n.isDirty;return s.a.createElement("div",{ref:this.container,"data-cy":"tab","data-cy-active":o,"data-cy-dirty":r,"data-cy-preview":n.preview,className:Ro()(mr.a.container,{[mr.a.active]:o,[mr.a.preview]:n.preview}),onClick:this.handleClick,onDoubleClick:this.handleDoubleClick},n.session.isModelList&&s.a.createElement("div",{"data-cy":"new-tab-btn",className:mr.a.modelListTabButton},s.a.createElement(gr.a,null)),n.session.isScript&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{"data-cy":"tab__title",className:mr.a.title},n.title),s.a.createElement(zo,{"data-cy":"tab__close",className:Ro()(mr.a.closeButton,{[mr.a.dirty]:r}),onClick:this.handleClose},r?s.a.createElement("div",{className:mr.a.dirtyIndicator}):s.a.createElement(gr.a,null)),e&&s.a.createElement(fr,{onCancel:this.handleCancelClose,onDiscard:this.handleDiscardChanges})),s.a.createElement(Uo.a,{keys:"mod+w",onMatch:()=>this.handleClose()}))}}var Cr=Object(So.a)(yr),wr=n(87),br=n.n(wr);class Er extends s.a.Component{render(){return s.a.createElement("div",{"data-cy":"tab-bar",className:br.a.container},ho.openTabs.map(e=>s.a.createElement(Cr,{key:e.id,id:e.id})))}}var _r=Object(So.a)(Er),Or=n(88),Rr=n.n(Or);var Sr=Object(So.a)(({className:e,target:t,targetOffsetX:n,targetOffsetY:o,darken:r,children:i,onClickOutside:a})=>s.a.createElement(er,{className:Ro()(Rr.a.container,e),target:t,targetOffsetX:n,targetOffsetY:o,darken:r,onClickOutside:a},i)),Tr=n(89),Dr=n.n(Tr),Pr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Ir extends s.a.Component{render(){const e=this.props,{children:t,className:n,style:o}=e,r=Pr(e,["children","className","style"]);return s.a.createElement("div",Object.assign({className:Ro()(Dr.a.container,n),style:o},r),t)}}var Ar=Ir,Nr=n(90),xr=n.n(Nr);var Fr=Object(So.a)(({type:e})=>s.a.createElement("div",{"data-cy":"shortcuts-key",className:xr.a.container},e));var Lr=()=>({sections:[{name:"Results Table",shortcuts:[{name:"Move cell selection",mac:["←","→","↑","↓"],windowsAndLinux:["←","→","↑","↓"]},{name:"Move horizontally",mac:["tab","shift+tab"],windowsAndLinux:["tab","shift+tab"]},{name:"Move vertically",mac:["enter","shift+enter"],windowsAndLinux:["enter","shift+enter"]},{name:"Edit selected cell",mac:["enter"],windowsAndLinux:["enter"]},{name:"Jump to last cell in row",mac:["⌘+→"],windowsAndLinux:["ctrl+→"]},{name:"Jump to first cell in row",mac:["⌘+←"],windowsAndLinux:["ctrl+←"]},{name:"Copy selected rows to clipboard as JSON",mac:["⌘+c"],windowsAndLinux:["ctrl+c"]},{name:"Delete selected rows",mac:["⌫"],windowsAndLinux:["del"]},{name:"Commit unsaved changes to Database",mac:["⌘+s"],windowsAndLinux:["ctrl+s"]}]},Me.isBrowser?null:{name:"Tabs",shortcuts:[{name:"Switch to tab on the left",mac:["⌘+shift+["],windowsAndLinux:["ctrl+tab"]},{name:"Switch to tab on the right",mac:["⌘+shift+]"],windowsAndLinux:["ctrl+shift+tab"]}]},{name:"Global",shortcuts:[{name:"Show this cheatsheet",mac:["⌘+/"],windowsAndLinux:["ctrl+/"]}]}].filter(e=>!!e)}),Mr=n(35),kr=n.n(Mr);class Gr extends s.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()}}render(){const e=Lr(),t=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"mac":"windowsAndLinux";return s.a.createElement(s.a.Fragment,null,s.a.createElement(cr,{className:kr.a.container,title:"Shortcuts",onClose:this.handleClose},s.a.createElement("div",{className:kr.a.content},e.sections.map(e=>s.a.createElement(Ar,{key:e.name,className:kr.a.section},s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:kr.a.sectionName},e.name),e.shortcuts.map(e=>s.a.createElement("div",{key:e.name,className:kr.a.row},s.a.createElement("div",{className:kr.a.name},e.name),s.a.createElement("div",{className:kr.a.keys},e[t].map((e,t)=>s.a.createElement(s.a.Fragment,{key:t},t>0&&s.a.createElement("span",{className:kr.a.separator},"/"),e.split("+").map(e=>s.a.createElement(Fr,{key:e,type:e})))))))))))),s.a.createElement(Uo.a,{keys:"esc",onMatch:this.handleClose}))}}var Vr=Object(So.a)(Gr),jr=n(61),Wr=n.n(jr),Hr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let Br=class extends s.a.Component{handleInstall(){Lo.install()}render(){const{onClose:e}=this.props;return s.a.createElement(cr,{className:Wr.a.container,title:"Updates ready",primaryButton:s.a.createElement(jo.a,{green:!0,disabled:Lo.isInstalling,onClick:this.handleInstall},"Install and restart"),secondaryButton:s.a.createElement(jo.a,{ghost:!0,className:Wr.a.laterBtn,onClick:e},"Install Later")},s.a.createElement("div",{className:Wr.a.content},s.a.createElement("p",{className:Wr.a.description},"New updates have been downloaded and are ready to be installed. Doing this will restart Studio.",s.a.createElement("br",null),s.a.createElement("br",null),"Your current session will be saved and restored after the installation.")))}};Br=Hr([So.a],Br);var zr=Br;function Ur(){return(Ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var qr=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.286 15.96A1.65 1.65 0 0119.4 15a1.65 1.65 0 011.51-1H21a2 2 0 100-4h-.17a1.651 1.651 0 01-1.51-1v-.08a1.65 1.65 0 01.33-1.82l.06-.06a2 2 0 10-2.83-2.83l-.06.06A1.65 1.65 0 0115 4.6a1.65 1.65 0 01-1-1.51V3a2 2 0 10-4 0v.17a1.651 1.651 0 01-1 1.51h-.08a1.65 1.65 0 01-1.82-.33l-.06-.06a2 2 0 10-2.83 2.83l.06.06A1.65 1.65 0 014.6 9a1.65 1.65 0 01-1.51 1.08H3a2 2 0 100 4h.17a1.65 1.65 0 011.51 1 1.65 1.65 0 01-.33 1.82l-.06.06a2 2 0 001.415 3.417 2.001 2.001 0 001.415-.587l.06-.06A1.65 1.65 0 019 19.4a1.65 1.65 0 011.08 1.51V21a2 2 0 004 0v-.17a1.65 1.65 0 011-1.51 1.65 1.65 0 011.82.33l.06.06a2 2 0 003.264-.65 2 2 0 00-.434-2.18l-.06-.06a1.65 1.65 0 01-.444-.86zM14.75 12a2.75 2.75 0 11-5.5 0 2.75 2.75 0 015.5 0z",fill:"currentColor"}),Yr=i.createElement("path",{d:"M19.4 15l.458.202.002-.005L19.4 15zm-.114.96l.492-.089-.492.09zm.72-1.686l-.276-.417.276.417zM20.91 14v-.5h-.002l.002.5zm1.504-.586l.354.354-.354-.354zm0-2.828l.354-.354-.354.354zM20.83 10l-.002.5h.002V10zm-.904-.274l-.277.416.276-.416zM19.32 9h-.5v.103l.04.094.46-.197zm0-.08h.5v-.105l-.043-.097-.457.202zm-.114-.96l.492.089-.492-.09zm.444-.86l-.353-.354-.005.004.358.35zm.06-.06l.353.354-.353-.354zm.434-.65l-.462-.19.462.19zm0-1.53l-.462.19.462-.19zm-.434-.65l-.354.353.354-.353zm-.65-.434l.192-.462-.191.462zm-2.18.434l.354.353-.354-.353zm-.06.06l.35.357.004-.004-.354-.353zm-.86.444l-.089-.492.09.492zM15 4.6l.202-.457-.005-.003L15 4.6zm-.726-.606l-.417.277.417-.277zM14 3.09h-.5v.002l.5-.002zm-.586-1.504l-.353.353.353-.353zm-2.828 0l.353.353-.353-.353zM10 3.17l.5.002V3.17H10zm-.274.904l.416.277-.416-.277zM9 4.68v.5h.103l.094-.04L9 4.68zm-.08 0v-.5h-.105l-.097.043.202.457zm-.96.114l-.09.492.09-.492zM7.1 4.35l-.354.354.004.003.35-.357zm-.06-.06l-.354.353.354-.353zm-.65-.434l.192-.462-.191.462zm-1.53 0l-.192-.462.191.462zm-.65.434l.353.354-.353-.354zm-.434.65l-.462-.192.462.191zm0 1.53l.462-.19-.462.19zm.434.65l.354-.354-.354.354zm.06.06l.357-.35-.003-.003-.354.353zm.444.86l-.492.089.492-.09zM4.6 9l-.457-.202-.007.015-.005.014L4.6 9zm-1.51 1.08v.5h.012l-.012-.5zm-1.504.586l.353.354-.353-.354zm0 2.828l.353-.353-.353.353zm1.584.586l.002-.5H3.17v.5zm.904.274l-.276.417.276-.417zm.606.726l-.46.197.003.005.457-.202zm.114.96l.492.09-.492-.09zm-.444.86l.354.353.003-.003-.357-.35zm-.06.06l.353.354-.353-.354zm-.434.65l.462.19-.462-.19zm0 1.53l-.462.192.462-.191zm.434.65l.354-.353-.354.353zm.65.434l-.192.462.191-.462zm1.53 0l-.19-.462.19.462zm.65-.434l.354.354-.354-.354zm.06-.06l-.35-.358-.004.005.354.353zm.86-.444l-.09-.492.09.492zM9 19.4l-.202.457.015.007.014.005L9 19.4zm.773.589l-.407.29.407-.29zm.307.921h.5v-.012l-.5.012zm.586 1.504l.354-.353-.354.353zm2.828 0l.354.354-.354-.354zm.586-1.584l-.5-.002v.002h.5zm.274-.904l-.417-.277.417.276zm.726-.606l.197.46.005-.003-.202-.457zm.96-.114l-.089.492.09-.492zm.86.444l.354-.354-.005-.003-.35.357zm.06.06l.354-.353-.354.353zm.65.434l.19-.462-.19.462zm1.53 0l.192.462-.191-.462zm.65-.434l-.353-.354.353.354zm.434-.65l.462.192-.462-.191zm0-1.53l.462-.192-.462.191zm-.434-.65l.354-.354-.354.354zm-.06-.06l-.358.35.005.004.353-.354zm-.788-2.022a2.15 2.15 0 00-.148 1.252l.984-.179a1.15 1.15 0 01.08-.67l-.916-.403zm.787-.94a2.15 2.15 0 00-.789.945l.92.394c.088-.206.235-.382.422-.506l-.553-.834zm1.179-.358a2.15 2.15 0 00-1.178.357l.552.834c.186-.124.406-.19.63-.191l-.004-1zm.092 0h-.09v1H21v-1zm1.06-.44a1.5 1.5 0 01-1.06.44v1a2.5 2.5 0 001.768-.732l-.707-.707zM22.5 12a1.5 1.5 0 01-.44 1.06l.708.708A2.5 2.5 0 0023.5 12h-1zm-.44-1.06A1.5 1.5 0 0122.5 12h1a2.5 2.5 0 00-.732-1.768l-.707.707zM21 10.5a1.5 1.5 0 011.06.44l.708-.708A2.5 2.5 0 0021 9.5v1zm-.17 0H21v-1h-.17v1zm-1.18-.357c.35.231.759.355 1.178.357l.004-1a1.15 1.15 0 01-.63-.191l-.553.834zm-.79-.946c.166.385.44.714.79.946l.552-.834a1.151 1.151 0 01-.423-.506l-.919.394zm-.04-.277V9h1v-.08h-1zm-.106-1.05a2.15 2.15 0 00.149 1.252l.914-.404a1.15 1.15 0 01-.08-.67l-.983-.178zm.578-1.12c-.3.307-.501.697-.578 1.12l.984.179a1.15 1.15 0 01.31-.6l-.716-.699zm.065-.064l-.06.06.706.708.06-.06-.706-.708zm.325-.487a1.499 1.499 0 01-.325.487l.706.708a2.5 2.5 0 00.543-.812l-.924-.383zm.115-.574a1.5 1.5 0 01-.115.574l.924.383a2.5 2.5 0 00.19-.957h-1zm-.115-.574a1.5 1.5 0 01.115.574h1a2.5 2.5 0 00-.191-.957l-.924.383zm-.325-.487c.14.14.25.305.325.487l.924-.383a2.5 2.5 0 00-.543-.812l-.706.708zm-.488-.326a1.5 1.5 0 01.487.325l.708-.706a2.5 2.5 0 00-.812-.543l-.383.924zm-.574-.115a1.5 1.5 0 01.574.115l.383-.924a2.5 2.5 0 00-.957-.19v1zm-.574.115a1.5 1.5 0 01.574-.115v-1a2.5 2.5 0 00-.957.191l.383.924zm-.487.325a1.5 1.5 0 01.487-.325l-.383-.924a2.5 2.5 0 00-.812.543l.708.706zm-.06.06l.06-.06-.708-.706-.06.06.708.706zm-1.124.583a2.15 2.15 0 001.12-.579l-.7-.714a1.15 1.15 0 01-.599.309l.179.984zm-1.252-.149a2.15 2.15 0 001.252.149l-.179-.984a1.15 1.15 0 01-.67-.08l-.403.915zm-.94-.786c.231.35.56.623.945.789l.394-.92a1.152 1.152 0 01-.506-.422l-.834.553zM13.5 3.092c.002.42.126.829.357 1.179l.834-.553a1.152 1.152 0 01-.191-.63l-1 .004zm0-.092v.09h1V3h-1zm-.44-1.06A1.5 1.5 0 0113.5 3h1a2.5 2.5 0 00-.732-1.768l-.707.707zM12 1.5a1.5 1.5 0 011.06.44l.708-.708A2.5 2.5 0 0012 .5v1zm-1.06.44A1.5 1.5 0 0112 1.5v-1a2.5 2.5 0 00-1.768.732l.707.707zM10.5 3c0-.398.158-.78.44-1.06l-.708-.708A2.5 2.5 0 009.5 3h1zm0 .17V3h-1v.17h1zm-.357 1.18c.231-.35.355-.759.357-1.178l-1-.004a1.151 1.151 0 01-.191.63l.834.553zm-.946.79a2.15 2.15 0 00.946-.79l-.834-.552a1.15 1.15 0 01-.506.422l.394.92zm-.277.04H9v-1h-.08v1zm-1.05.106a2.15 2.15 0 001.252-.149l-.404-.914a1.15 1.15 0 01-.67.079l-.178.984zm-1.12-.579c.307.3.698.502 1.12.579l.179-.984a1.15 1.15 0 01-.6-.31l-.699.715zm-.064-.063l.06.06.708-.708-.06-.06-.708.708zM6.2 4.318a1.5 1.5 0 01.487.325l.708-.706a2.5 2.5 0 00-.812-.543l-.383.924zm-.574-.115a1.5 1.5 0 01.574.115l.383-.924a2.5 2.5 0 00-.957-.19v1zm-.574.115a1.5 1.5 0 01.574-.115v-1a2.5 2.5 0 00-.957.191l.383.924zm-.487.325a1.5 1.5 0 01.487-.325l-.383-.924a2.5 2.5 0 00-.812.543l.708.706zm-.326.488a1.5 1.5 0 01.325-.487l-.706-.708a2.5 2.5 0 00-.543.812l.924.383zm-.115.574a1.5 1.5 0 01.115-.574l-.924-.383a2.5 2.5 0 00-.19.957h1zm.115.574a1.5 1.5 0 01-.115-.574h-1c0 .329.065.654.191.957l.924-.383zm.325.487a1.5 1.5 0 01-.325-.487l-.924.383c.126.304.31.58.543.812l.706-.708zm.06.06l-.06-.06-.707.708.06.06.708-.707zm.583 1.124a2.15 2.15 0 00-.579-1.12l-.714.7c.16.164.268.373.309.599l.984-.179zm-.149 1.252a2.15 2.15 0 00.149-1.252l-.984.179c.041.226.013.459-.08.67l.915.403zm-.755.977a2.15 2.15 0 00.767-1.006l-.938-.346a1.15 1.15 0 01-.41.539l.581.813zm-1.2.4c.43-.01.85-.149 1.2-.4l-.582-.813a1.15 1.15 0 01-.642.214l.024 1zM3 10.58h.09v-1H3v1zm-1.06.44A1.5 1.5 0 013 10.58v-1a2.5 2.5 0 00-1.768.732l.707.707zm-.44 1.06c0-.398.158-.78.44-1.06l-.708-.708A2.5 2.5 0 00.5 12.08h1zm.44 1.06a1.5 1.5 0 01-.44-1.06h-1a2.5 2.5 0 00.732 1.768l.707-.707zm1.06.44a1.5 1.5 0 01-1.06-.44l-.708.708A2.5 2.5 0 003 14.58v-1zm.17 0H3v1h.17v-1zm1.18.357a2.151 2.151 0 00-1.178-.357l-.004 1c.224 0 .443.067.63.191l.553-.834zm.79.946a2.15 2.15 0 00-.79-.946l-.552.834c.187.124.334.3.422.506l.92-.394zm.146 1.247a2.15 2.15 0 00-.149-1.252l-.914.404c.092.21.12.443.079.67l.984.178zm-.579 1.12c.3-.308.502-.698.579-1.12l-.984-.179a1.15 1.15 0 01-.31.6l.715.699zm-.063.063l.06-.06-.708-.706-.06.06.708.706zm-.326.488a1.5 1.5 0 01.325-.487l-.706-.708a2.5 2.5 0 00-.543.812l.924.383zm-.115.574a1.5 1.5 0 01.115-.574l-.924-.383a2.5 2.5 0 00-.19.957h1zm.115.575a1.5 1.5 0 01-.115-.575h-1c0 .328.065.654.191.957l.924-.383zm.325.486a1.5 1.5 0 01-.325-.487l-.924.383c.126.304.31.58.543.812l.706-.708zm.488.326a1.502 1.502 0 01-.487-.325l-.708.706a2.5 2.5 0 00.812.543l.383-.924zm.574.115a1.5 1.5 0 01-.574-.115l-.383.924c.303.126.628.19.957.19v-1zm.574-.115a1.5 1.5 0 01-.574.115v1c.329 0 .654-.065.957-.19l-.383-.925zm.487-.325c-.14.14-.305.25-.487.325l.383.924c.304-.126.58-.31.812-.543l-.708-.706zm.06-.06l-.06.06.708.706.06-.06-.708-.706zm1.124-.583a2.151 2.151 0 00-1.12.578l.7.715a1.15 1.15 0 01.599-.309l-.179-.984zm1.252.148a2.15 2.15 0 00-1.252-.148l.179.984a1.15 1.15 0 01.67.08l.403-.916zm.977.756a2.15 2.15 0 00-1.006-.767l-.346.938c.217.08.404.223.539.41l.813-.581zm.4 1.2c-.01-.43-.149-.85-.4-1.2l-.813.582c.134.187.209.411.214.642l1-.024zm0 .102v-.09h-1V21h1zm.44 1.06a1.5 1.5 0 01-.44-1.06h-1a2.5 2.5 0 00.733 1.768l.707-.707zm1.061.44a1.5 1.5 0 01-1.06-.44l-.708.708a2.5 2.5 0 001.768.732v-1zm1.06-.44a1.5 1.5 0 01-1.06.44v1a2.5 2.5 0 001.768-.732l-.707-.707zm.44-1.06a1.5 1.5 0 01-.44 1.06l.708.708A2.5 2.5 0 0014.58 21h-1zm0-.17V21h1v-.17h-1zm.357-1.18c-.231.35-.355.759-.357 1.178l1 .004c0-.224.067-.444.191-.63l-.834-.553zm.946-.79c-.385.166-.714.44-.946.79l.834.552c.124-.187.3-.334.506-.423l-.394-.919zm1.247-.146a2.15 2.15 0 00-1.252.149l.404.914c.21-.092.443-.12.67-.08l.178-.983zm1.12.579a2.15 2.15 0 00-1.12-.579l-.179.984c.226.041.435.149.6.31l.699-.715zm.064.064l-.06-.06-.708.706.06.06.708-.706zm.487.325a1.5 1.5 0 01-.487-.325l-.708.707a2.5 2.5 0 00.812.542l.383-.924zm.574.115a1.5 1.5 0 01-.574-.115l-.383.924a2.5 2.5 0 00.957.19v-1zm.575-.115a1.499 1.499 0 01-.575.115v1a2.5 2.5 0 00.957-.191l-.383-.924zm.486-.325a1.5 1.5 0 01-.487.325l.383.924c.304-.126.58-.31.812-.543l-.708-.706zm.326-.488a1.502 1.502 0 01-.325.487l.706.708a2.5 2.5 0 00.543-.812l-.924-.383zm.115-.574c0 .197-.04.392-.115.574l.924.383a2.5 2.5 0 00.19-.957h-1zm-.115-.574a1.5 1.5 0 01.115.574h1a2.5 2.5 0 00-.191-.957l-.924.383zm-.325-.487c.14.14.25.304.325.487l.924-.383a2.5 2.5 0 00-.543-.812l-.706.708zm-.06-.06l.06.06.706-.708-.06-.06-.706.708zm-.583-1.124c.077.423.278.813.578 1.12l.715-.7a1.15 1.15 0 01-.309-.599l-.984.179zM12 15.25A3.25 3.25 0 0015.25 12h-1A2.25 2.25 0 0112 14.25v1zM8.75 12A3.25 3.25 0 0012 15.25v-1A2.25 2.25 0 019.75 12h-1zM12 8.75A3.25 3.25 0 008.75 12h1A2.25 2.25 0 0112 9.75v-1zM15.25 12A3.25 3.25 0 0012 8.75v1A2.25 2.25 0 0114.25 12h1z",fill:"currentColor"});var Kr=function(e){return i.createElement("svg",Ur({viewBox:"0 0 24 24"},e),qr,Yr)},$r=n(24),Qr=n.n($r),Xr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let Jr=class extends s.a.Component{constructor(){super(...arguments),this.button=s.a.createRef(),this.state={isOpen:!1,isUpdateReadyDialogOpen:!1,isShortcutDialogOpen:!1},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen}))},this.handleClose=()=>{this.setState({isOpen:!1})},this.handleSwitchTheme=()=>{yt.apply("light"===yt.theme?"dark":"light"),this.handleClose()},this.handleUpdateCheck=async()=>{this.handleClose(),await Lo.check()},this.handleUpdateDownload=async()=>{this.handleClose(),await Lo.download()},this.handleUpdateInstall=()=>{this.setState({isUpdateReadyDialogOpen:!0}),this.handleClose()},this.handleViewShortcuts=()=>{this.setState({isOpen:!1,isShortcutDialogOpen:!0})}}componentDidMount(){let e=Object(u.computed)(()=>Lo.isUpdateReady).observe(({newValue:t})=>{console.log({newValue:t}),t&&(e(),this.setState({isUpdateReadyDialogOpen:!0}))})}render(){const{isOpen:e,isUpdateReadyDialogOpen:t,isShortcutDialogOpen:n}=this.state;return s.a.createElement(s.a.Fragment,null,s.a.createElement(jo.a,{innerRef:this.button,className:Ro()(Qr.a.button,{[Qr.a.dot]:!Lo.isUpToDate||Lo.isUpdateReady}),ghost:!0,onClick:this.handleToggle,"data-cy":"settings-dialog"},s.a.createElement(Kr,null)),e&&s.a.createElement(Sr,{target:this.button,onClickOutside:this.handleClose},s.a.createElement("ul",{className:Qr.a.menu},s.a.createElement("li",{className:Qr.a.menuItem,onClick:this.handleSwitchTheme},"light"===yt.theme?"Dark theme":"Light theme"),Lo.hasCheckedForUpdates&&!Lo.isUpToDate&&!Lo.isDownloading&&!Lo.isUpdateReady&&s.a.createElement("li",{className:Ro()(Qr.a.menuItem,{[Qr.a.highlight]:!0}),onClick:this.handleUpdateDownload},"Download v",Lo.latestVersion),Lo.isDownloading&&s.a.createElement("li",{className:Ro()(Qr.a.menuItem,{[Qr.a.highlight]:!0}),onClick:this.handleUpdateDownload},"Downloading v",Lo.latestVersion),Lo.isUpdateReady&&s.a.createElement("li",{className:Ro()(Qr.a.menuItem,{[Qr.a.highlight]:!0}),onClick:this.handleUpdateInstall},"Install v",Lo.latestVersion),Me.updates&&s.a.createElement("li",{className:Qr.a.menuItem,onClick:this.handleUpdateCheck},"Check for updates"),s.a.createElement("li",{className:Qr.a.menuItem},s.a.createElement("a",{href:"https://github.com/prisma/studio/releases",target:"_blank",rel:"noreferrer noopener"},"View changelog")),s.a.createElement("li",{className:Qr.a.menuItem,onClick:this.handleViewShortcuts,"data-cy":"view-shortcuts"},"View shortcuts"))),t&&s.a.createElement(zr,{onClose:()=>this.setState({isUpdateReadyDialogOpen:!1})}),n&&s.a.createElement(Vr,{onClose:()=>this.setState({isShortcutDialogOpen:!1})}))}};Jr=Xr([So.a],Jr);var Zr=Jr,ei=n(91),ti=n.n(ei);var ni=Object(So.a)(({className:e})=>s.a.createElement("div",{"data-cy":"header",className:Ro()(ti.a.container,e),style:{paddingLeft:Me.headerLeftOffset}},s.a.createElement(_r,null),s.a.createElement(Zr,null)));function oi(){return(oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var ri=i.createElement("path",{d:"M4.5 7L8.397.25H.603L4.5 7z",fill:"currentColor"});var ii=function(e){return i.createElement("svg",oi({viewBox:"0 0 9 7"},e),ri)},si=n(15),ai=n.n(si);class li extends s.a.PureComponent{constructor(){super(...arguments),this.state={isDetailsOpen:!1},this.handleToggleDetails=()=>{this.setState(e=>({isDetailsOpen:!e.isDetailsOpen}))},this.handleDismiss=()=>{Wt.updateError({visible:!1})}}render(){const{isDetailsOpen:e}=this.state;return s.a.createElement(cr,{className:ai.a.container,error:!0,title:"Prisma Client Error",primaryButton:s.a.createElement(jo.a,{className:ai.a.action,onClick:this.handleDismiss},"Dismiss"),secondaryButton:s.a.createElement(jo.a,{ghost:!0,className:Ro()(ai.a.action,ai.a.discardBtn),onClick:()=>{}},s.a.createElement("a",{href:"https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/error-reference#query-engine",target:"_blank",rel:"noreferrer noopener"},"Error Documentation"))},s.a.createElement("div",{className:ai.a.content},s.a.createElement("p",{className:ai.a.description},Yt.description),s.a.createElement(jo.a,{ghost:!0,className:Ro()(ai.a.detailsBtn,{[ai.a.open]:e}),onClick:this.handleToggleDetails},s.a.createElement(s.a.Fragment,null,s.a.createElement(ii,null),e?"Hide":"Show"," details")),e&&s.a.createElement("pre",{className:ai.a.dump},Yt.dump)))}}var ui=Object(So.a)(li);class ci extends s.a.PureComponent{constructor(){super(...arguments),this.state={isDetailsOpen:!1,isSendingReport:!1,didFailErrorReport:!1,errorReportId:null},this.handleToggleDetails=()=>{this.setState(e=>({isDetailsOpen:!e.isDetailsOpen}))},this.handleDiscard=()=>{In.discard(),setTimeout(()=>{Me.isBrowser?window.location.reload():window.transport.request({channel:"project",action:"close",payload:{data:null}})},500)},this.handleRestart=()=>{window.location.reload()}}render(){const{isDetailsOpen:e}=this.state;return s.a.createElement(cr,{className:ai.a.container,error:!0,title:"Fatal Error",primaryButton:s.a.createElement(jo.a,{className:ai.a.action,onClick:this.handleRestart},s.a.createElement(s.a.Fragment,null,"Reopen ",Me.isBrowser?"Studio":"Project")),secondaryButton:s.a.createElement(jo.a,{ghost:!0,className:Ro()(ai.a.action,ai.a.discardBtn),onClick:this.handleDiscard},s.a.createElement(s.a.Fragment,null,"Discard all unsaved changes and close"," ",Me.isBrowser?"Studio":"project"))},s.a.createElement("div",{className:ai.a.content},s.a.createElement("p",{className:ai.a.description},"A non-recoverable error has occurred and Studio has to be restarted. Please consider reporting this error to us by opening an issue on GitHub and attaching the error details."),s.a.createElement(jo.a,{className:ai.a.reportBtn,green:!0,onClick:()=>{}},s.a.createElement("a",{href:"https://github.com/prisma/studio/issues/new",target:"_blank",rel:"noreferrer noopener"},"Report error in a new GitHub issue")),s.a.createElement(jo.a,{ghost:!0,className:Ro()(ai.a.detailsBtn,{[ai.a.open]:e}),onClick:this.handleToggleDetails},s.a.createElement(s.a.Fragment,null,s.a.createElement(ii,null),e?"Hide":"Show"," details")),e&&s.a.createElement("pre",{className:ai.a.dump},Yt.dump)))}}var pi=Object(So.a)(ci),di=n(54),hi=n.n(di);class fi extends s.a.PureComponent{constructor(e){super(e),this.menuRef=s.a.createRef(),this.itemRefs=[],this.handleHighlightNext=()=>{const{items:e}=this.props;this.setState(t=>t.highlightIndex===e.length-1?{highlightIndex:0}:{highlightIndex:t.highlightIndex+1},()=>{var e,t;null===(e=this.itemRefs[this.state.highlightIndex].current)||void 0===e||e.scrollIntoView(!1),null===(t=this.itemRefs[this.state.highlightIndex].current)||void 0===t||t.scrollIntoView({block:"nearest"})})},this.handleHighlightPrevious=()=>{const{items:e}=this.props;this.setState(t=>0===t.highlightIndex||-1===t.highlightIndex?{highlightIndex:e.length-1}:{highlightIndex:t.highlightIndex-1},()=>{var e,t;null===(e=this.itemRefs[this.state.highlightIndex].current)||void 0===e||e.scrollIntoView(!1),null===(t=this.itemRefs[this.state.highlightIndex].current)||void 0===t||t.scrollIntoView({block:"nearest"})})},this.handleSelect=()=>{const{highlightIndex:e}=this.state,{items:t,onSelect:n}=this.props;e<0||e>=t.length||n(t[e])},this.handleCancel=e=>{e.preventDefault()},this.state={highlightIndex:-1},this.itemRefs=e.items.map(()=>s.a.createRef())}componentDidMount(){var e,t;(null===(e=this.props.target.current)||void 0===e?void 0:e.getBoundingClientRect())&&(null===(t=this.menuRef.current)||void 0===t||t.focus())}render(){const{highlightIndex:e}=this.state,{target:t,items:n,onSelect:o,onBlur:r}=this.props;return s.a.createElement(er,{className:hi.a.container,maskClassName:hi.a.mask,domElementId:"dropdown-root",target:t,targetOffsetY:0,darken:!1,onClickOutside:r},s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{ref:this.menuRef,className:hi.a.container,tabIndex:1},n.map((t,n)=>s.a.createElement("div",{ref:this.itemRefs[n],key:t.id,"data-cy":"dropdown-menu__item",className:Ro()(hi.a.item,{[hi.a.highlighted]:e===n}),onClick:()=>o(t)},t.label))),s.a.createElement(Uo.a,{keys:"up",target:this.menuRef,onMatch:this.handleHighlightPrevious}),s.a.createElement(Uo.a,{keys:"down",target:this.menuRef,onMatch:this.handleHighlightNext}),s.a.createElement(Uo.a,{keys:"esc",target:this.menuRef,onMatch:()=>null==r?void 0:r()}),s.a.createElement(Uo.a,{keys:"enter",target:this.menuRef,onMatch:this.handleSelect})))}}var gi=Object(So.a)(fi);function vi(){return(vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var mi=i.createElement("circle",{cx:6,cy:12,r:2}),yi=i.createElement("circle",{cx:12,cy:12,r:2}),Ci=i.createElement("circle",{cx:18,cy:12,r:2});var wi=function(e){return i.createElement("svg",vi({viewBox:"0 0 24 24"},e),mi,yi,Ci)},bi=n(45),Ei=n.n(bi),_i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Oi extends s.a.PureComponent{constructor(){super(...arguments),this.button=s.a.createRef(),this.state={isOpen:!1},this.handleToggle=()=>{this.state.isOpen?this.handleClose():this.handleOpen()},this.handleSelect=e=>{const{onSelect:t}=this.props;t&&t(e),setTimeout(()=>this.handleToggle(),0)},this.handleOpen=()=>{setTimeout(()=>this.setState({isOpen:!0}),0)},this.handleClose=()=>{setTimeout(()=>this.setState({isOpen:!1}),0)}}render(){const e=this.props,{className:t,type:n,nativeSelect:o,items:r,selectedItem:i,onSelect:a,innerRef:l,buttonClassName:u}=e,c=_i(e,["className","type","nativeSelect","items","selectedItem","onSelect","innerRef","buttonClassName"]),{isOpen:p}=this.state;return s.a.createElement("div",{className:Ro()(Ei.a.container,t)},s.a.createElement("div",Object.assign({ref:this.button,className:Ro()(Ei.a.button,{[Ei.a.open]:p},u),onClick:this.handleToggle},c),"button"===n&&s.a.createElement(wi,null),"text"===n&&s.a.createElement("div",{"data-cy":"dropdown__item--selected",className:Ei.a.textButton,title:null==i?void 0:i.label},s.a.createElement("span",null,(null==i?void 0:i.label)||""),s.a.createElement("div",{className:Ei.a.caret}))),o&&s.a.createElement("select",{ref:l,className:Ei.a.select,value:null==i?void 0:i.id,onChange:e=>this.handleSelect(r.find(t=>t.id===e.currentTarget.value))},r.map(e=>s.a.createElement("option",{key:e.id,value:e.id},e.label))),p&&!o&&s.a.createElement(gi,{target:this.button,items:r,onSelect:this.handleSelect,onBlur:this.handleClose}))}}var Ri=Object(So.a)(Oi),Si=n(16),Ti=n.n(Si);class Di extends s.a.PureComponent{constructor(){super(...arguments),this.runScriptDebounced=Object(xe.debounce)(()=>{var e;(null===(e=ho.activeTab)||void 0===e?void 0:e.session.script).run()},500,{leading:!1,trailing:!0}),this.handleChangeField=({id:e},t)=>{var n,o,r,i;const{whereId:s}=this.props;null===(n=ho.activeTab)||void 0===n||n.update({preview:!1});const a=null===(o=ho.activeTab)||void 0===o?void 0:o.session.script,l=a.where.get(s);if(l){if(a.update({frozen:!1}),0===t){const t=It.get(e);if(null==t?void 0:t.isRelation){const t=null===(i=null===(r=It.get(e))||void 0===r?void 0:r.typeAsModel)||void 0===i?void 0:i.uniqueIdentifiers[0].id;l.update({fieldIds:[e,t]})}else l.update({fieldIds:[e]})}else{const n=[...l.fieldIds];n[t]=e,l.update({fieldIds:n})}l.supportedOperations.includes(l.operation)||this.handleChangeOperation({id:l.supportedOperations[0]}),["in","notIn"].includes(l.operation)&&this.handleChangeValue("[]"),this.runScriptDebounced(),zt.send({command:"filter_change",commandDetails:{total_filters_count:a.where.size,field_types:l.fields.map(e=>e.type),operation:l.operation}})}},this.handleChangeOperation=({id:e})=>{var t,n;const{whereId:o}=this.props;null===(t=ho.activeTab)||void 0===t||t.update({preview:!1});const r=null===(n=ho.activeTab)||void 0===n?void 0:n.session.script,i=r.where.get(o);i&&(r.update({frozen:!1}),i.update({operation:e}),["in","notIn"].includes(i.operation)&&this.handleChangeValue("[]"),["isNull","isNotNull"].includes(i.operation)&&this.handleChangeValue(""),this.runScriptDebounced(),zt.send({command:"filter_change",commandDetails:{total_filters_count:r.where.size,field_types:i.fields.map(e=>e.type),operation:i.operation}}))},this.handleChangeValue=e=>{var t,n;const{whereId:o}=this.props;null===(t=ho.activeTab)||void 0===t||t.update({preview:!1});const r=null===(n=ho.activeTab)||void 0===n?void 0:n.session.script;r.update({frozen:!1});const i=r.where.get(o);i&&(i.update({value:e}),this.runScriptDebounced())},this.handleDelete=()=>{var e,t;const{whereId:n}=this.props;null===(e=ho.activeTab)||void 0===e||e.update({preview:!1}),(null===(t=ho.activeTab)||void 0===t?void 0:t.session.script).where.remove(n),this.runScriptDebounced()}}render(){var e;const{whereId:t}=this.props,n=ho.activeTab.session.script.where.get(t);return n?s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:Ro()(Ti.a.fields,Ti.a.cell,{[Ti.a.invalid]:!n.isValid})},n.fields.slice(0,2).map((e,t)=>s.a.createElement("div",{className:Ti.a.field,key:t},s.a.createElement(Ri,{"data-cy":"where-filter__row__field"+(t>0?"_relation_scalars":""),"data-cy-invalid":!n.isValid,buttonClassName:Ti.a.dropdown,type:"text",items:n.getFilterableFieldsAtIndex(t).map(e=>({id:e.id,label:e.name})),selectedItem:{id:e.id,label:e.name},onSelect:e=>this.handleChangeField(e,t)})))),s.a.createElement("div",{className:Ro()(Ti.a.operation,Ti.a.cell,{[Ti.a.invalid]:!n.isValid})},s.a.createElement(Ri,{"data-cy":"where-filter__row__operation",buttonClassName:Ti.a.dropdown,type:"text",items:n.supportedOperations.map(e=>({id:e,label:e})),selectedItem:{id:n.operation,label:n.operation},onSelect:this.handleChangeOperation})),s.a.createElement("div",{className:Ro()(Ti.a.value,Ti.a.cell,{[Ti.a.invalid]:!n.isValid})},s.a.createElement("input",{"data-cy":"where-filter__row__value",type:"text",disabled:"isNull"===n.operation||"isNotNull"===n.operation,placeholder:null===(e=Object(xe.last)(n.fields))||void 0===e?void 0:e.placeholder,value:null===n.value?"":n.value,onChange:e=>this.handleChangeValue(e.currentTarget.value)})),s.a.createElement("div",{className:Ro()(Ti.a.deleteButton,Ti.a.cell,{[Ti.a.invalid]:!n.isValid})},s.a.createElement(zo,{"data-cy":"where-filter__row__delete-btn",onClick:this.handleDelete},s.a.createElement(gr.a,null)))):null}}var Pi=Object(So.a)(Di),Ii=n(19),Ai=n.n(Ii);class Ni extends s.a.PureComponent{constructor(){super(...arguments),this.button=s.a.createRef(),this.state={isOpen:!1},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen}))},this.handleAddWhere=()=>{var e,t;null===(e=ho.activeTab)||void 0===e||e.update({preview:!1});const n=null===(t=ho.activeTab)||void 0===t?void 0:t.session.script;n.update({frozen:!1});const o=n.where.add({fieldIds:[n.model.uniqueIdentifiers[0].id],value:null});n.pagination.reset(),zt.send({command:"filter_change",commandDetails:{total_filters_count:n.where.size,field_types:o.fields.map(e=>e.type),operation:o.operation}})}}render(){const{isOpen:e}=this.state,{where:t}=ho.activeTab.session.script;return s.a.createElement("div",{className:Ai.a.container},s.a.createElement("div",{"data-cy":"where-filter",ref:this.button,className:Ro()(Ai.a.pill,{[Ai.a.open]:e,[Ai.a.exists]:t.size>0}),onClick:this.handleToggle}," ",s.a.createElement("span",{className:Ro()(Ai.a.label)},"Filters"),s.a.createElement("span",null,t.size||"None"," ")),e&&s.a.createElement(Sr,{className:Ro()(Ti.a.tooltip,{[Ti.a.empty]:0===t.size}),target:this.button,onClickOutside:this.handleToggle},s.a.createElement(s.a.Fragment,null,0===t.size&&s.a.createElement("p",{className:Ti.a.emptyText},"Use filters to narrow down your data. Multiple filters show results at their intersection (AND)."),Object.values(t.values).map(e=>s.a.createElement(Pi,{key:e.id,whereId:e.id})),s.a.createElement(jo.a,{"data-cy":"create-where-filter-btn",className:Ti.a.addButton,blue:!0,onClick:this.handleAddWhere},"Add a new filter"))))}}var xi=Object(So.a)(Ni),Fi=n(69),Li=n.n(Fi),Mi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class ki extends s.a.PureComponent{constructor(){super(...arguments),this.input=s.a.createRef(),this.handleChange=e=>{const{disabled:t,onChange:n}=this.props;t||n(e.currentTarget.value)},this.handleBlur=()=>{const{disabled:e,onBlur:t}=this.props;e||t()}}componentDidMount(){var e;const t=null!==(e=this.props.innerRef)&&void 0!==e?e:this.input;t.current&&this.props.focusOnMount&&t.current.focus()}render(){const e=this.props,{className:t,innerRef:n,style:o,type:r,tabIndex:i,value:a,placeholder:l,disabled:u,focusOnMount:c,onChange:p,onBlur:d,onConfirm:h,onCancel:f}=e,g=Mi(e,["className","innerRef","style","type","tabIndex","value","placeholder","disabled","focusOnMount","onChange","onBlur","onConfirm","onCancel"]),v=null!=n?n:this.input;return s.a.createElement("div",Object.assign({className:Ro()(Li.a.container,t),style:o},g),s.a.createElement("input",{ref:v,lang:"en",tabIndex:i,className:Ro()(Li.a.input,{[Li.a.disabled]:u}),type:r,placeholder:l,disabled:u,value:null===a?"":a,onChange:this.handleChange,onBlur:this.handleBlur}),h&&s.a.createElement(Uo.a,{keys:"enter",target:v,onMatch:h}),f&&s.a.createElement(Uo.a,{keys:"esc",target:v,onMatch:f}))}}ki.defaultProps={value:"",disabled:!1,focusOnMount:!1,onChange:()=>{},onBlur:()=>{}};var Gi=ki;function Vi(){return(Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var ji=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.333 2.54c.838.767.894 2.066.126 2.903L9.79 20.333a2.06 2.06 0 01-3.034 0L.54 13.566a2.052 2.052 0 01.126-2.903 2.06 2.06 0 012.907.127l4.698 5.116L20.425 2.666a2.06 2.06 0 012.908-.126z"});var Wi=function(e){return i.createElement("svg",Vi({viewBox:"0 0 24 24"},e),ji)};function Hi(){return(Hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Bi=i.createElement("rect",{fillRule:"evenodd",clipRule:"evenodd",y:10,width:24,height:4,rx:2});var zi=function(e){return i.createElement("svg",Hi({viewBox:"0 0 24 24"},e),Bi)},Ui=n(70),qi=n.n(Ui);var Yi=Object(So.a)(({className:e,checked:t=!1,indeterminate:n=!1,onChange:o})=>s.a.createElement("div",{"data-cy":"checkbox","data-cy-selected":t,className:Ro()(qi.a.container,e),onClick:()=>o&&o(!t)},s.a.createElement("div",{className:Ro()(qi.a.checkbox,{[qi.a.checked]:t})},t&&(n?s.a.createElement(zi,null):s.a.createElement(Wi,null))))),Ki=n(46),$i=n.n(Ki);class Qi extends s.a.PureComponent{constructor(){super(...arguments),this.button=s.a.createRef(),this.state={isOpen:!1,searchValue:""},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen}))},this.handleSelect=async e=>{var t,n;null===(t=ho.activeTab)||void 0===t||t.update({preview:!1});const o=null===(n=ho.activeTab)||void 0===n?void 0:n.session.script;let r;r=o.fieldIds.includes(e)?o.fieldIds.filter(t=>t!==e):o.fieldIds.concat(e),o.update({frozen:!1,fieldIds:r})},this.handleSearch=e=>{this.setState({searchValue:e})},this.handleSelectAll=async()=>{var e,t;null===(e=ho.activeTab)||void 0===e||e.update({preview:!1});const n=null===(t=ho.activeTab)||void 0===t?void 0:t.session.script,o=n.fieldIds.length>0?[]:n.model.fieldIds;n.update({frozen:!1,fieldIds:o})}}render(){const{isOpen:e,searchValue:t}=this.state,{model:n,fieldIds:o}=ho.activeTab.session.script,r=n.fields.filter(e=>e.name.toLowerCase().includes(t.toLowerCase())),i=n.fieldIds.filter(e=>o.includes(e));return s.a.createElement("div",{className:Ai.a.container},s.a.createElement("div",{"data-cy":"field-filter",ref:this.button,className:Ro()(Ai.a.pill,{[Ai.a.open]:e,[Ai.a.exists]:i.length<n.fields.length}),onClick:this.handleToggle},s.a.createElement("span",{className:Ai.a.label},"Fields"),s.a.createElement("span",null,i.length===n.fields.length?"All":i.length)),e&&s.a.createElement(Sr,{className:$i.a.tooltip,target:this.button,onClickOutside:this.handleToggle},s.a.createElement(s.a.Fragment,null,s.a.createElement(Yi,{className:$i.a.checkbox,checked:i.length>0,indeterminate:i.length<n.fields.length,onChange:()=>this.handleSelectAll()}),s.a.createElement(Gi,{type:"text",className:$i.a.search,placeholder:"Search",value:t,onChange:this.handleSearch}),r.map(e=>{const t=i.includes(e.id);return s.a.createElement(s.a.Fragment,{key:e.id},s.a.createElement(Yi,{className:$i.a.checkbox,checked:t,onChange:()=>this.handleSelect(e.id)}),s.a.createElement("div",{"data-cy":"filter-option",className:$i.a.name,onClick:()=>this.handleSelect(e.id)},e.name),s.a.createElement("div",{className:$i.a.type,onClick:()=>this.handleSelect(e.id)},e.typeAsLabel))}))))}}var Xi=Object(So.a)(Qi),Ji=n(32),Zi=n.n(Ji);class es extends s.a.PureComponent{constructor(){super(...arguments),this.button=s.a.createRef(),this.tooltipBody=s.a.createRef(),this.runScriptDebounced=Object(xe.debounce)(()=>{var e;(null===(e=ho.activeTab)||void 0===e?void 0:e.session.script).run()},300,{leading:!1,trailing:!0}),this.state={isOpen:!1},this.handleToggle=()=>{this.setState(e=>({isOpen:!e.isOpen}))},this.handleChangeTake=e=>{var t,n;null===(t=ho.activeTab)||void 0===t||t.update({preview:!1}),(null===(n=ho.activeTab)||void 0===n?void 0:n.session.script).update({frozen:!1,pagination:{take:Number(e)}}),this.runScriptDebounced(),zt.send({command:"pagination_change",commandDetails:{take_change:!0,skip_change:!1}})},this.handleChangeSkip=e=>{var t,n;null===(t=ho.activeTab)||void 0===t||t.update({preview:!1});const o=Number(e);isNaN(o)||o<0||((null===(n=ho.activeTab)||void 0===n?void 0:n.session.script).update({frozen:!1,pagination:{skip:o}}),this.runScriptDebounced(),zt.send({command:"pagination_change",commandDetails:{take_change:!1,skip_change:!0}}))}}render(){var e;const{isOpen:t}=this.state,{recordIds:n,model:o,pagination:r}=ho.activeTab.session.script;return s.a.createElement("div",{className:Ai.a.container},s.a.createElement("div",{"data-cy":"page-filter",ref:this.button,className:Ro()(Ai.a.pill,{[Ai.a.open]:t}),onClick:this.handleToggle},s.a.createElement("span",{className:Ai.a.label}," Showing "),s.a.createElement("span",null,s.a.createElement("span",{className:Zi.a.noPadding,"data-cy":"pagination__take"},n.length)," of ",s.a.createElement("span",{className:Zi.a.noPadding,"data-cy":"pagination__total"},null!==(e=o.count)&&void 0!==e?e:"?"))),t&&s.a.createElement(Sr,{className:Zi.a.tooltip,target:this.button,onClickOutside:this.handleToggle},s.a.createElement("div",{className:Zi.a.tooltipBody,ref:this.tooltipBody},s.a.createElement("span",{className:Zi.a.text},"Take"),s.a.createElement(Gi,{"data-cy":"pagination__take-input",type:"number",tabIndex:0,focusOnMount:!0,className:Zi.a.input,value:String(r.take),onChange:this.handleChangeTake}),s.a.createElement("div",{className:Zi.a.separator}),s.a.createElement("span",{className:Zi.a.text},"Skip"),s.a.createElement(Gi,{"data-cy":"pagination__skip-input",type:"number",tabIndex:0,focusOnMount:!0,className:Zi.a.input,value:String(r.skip),onChange:this.handleChangeSkip}))),t&&s.a.createElement(Uo.a,{keys:"esc",target:this.tooltipBody,onMatch:()=>this.handleToggle()}))}}var ts=Object(So.a)(es);function ns(){return(ns=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var os=i.createElement("defs",null,i.createElement("linearGradient",{id:"read_svg__a",x1:635.22,y1:545.34,x2:635.22,y2:43.42,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{offset:0,stopColor:"gray",stopOpacity:.25}),i.createElement("stop",{offset:.54,stopColor:"gray",stopOpacity:.12}),i.createElement("stop",{offset:1,stopColor:"gray",stopOpacity:.1}))),rs=i.createElement("path",{d:"M599.86 137.42c-64.72-2.25-126.37-23.14-185.23-46S297.47 43.23 234.3 31.12c-40.63-7.79-87.1-8.89-119.83 12.89-31.51 21-41.69 57.15-47.16 90.73-4.12 25.26-6.54 51.84 4.75 75.49 7.83 16.42 21.74 30.22 31.35 46 33.47 54.72 9.82 122.2-26.45 175.63-17 25.07-36.75 49-49.87 75.66s-19.2 57.25-7.72 84.47c11.39 27 38.52 47.24 67.9 61.49 59.69 28.95 130 37.23 198.61 41.92 151.83 10.39 304.46 5.89 456.69 1.39 56.34-1.67 112.92-3.36 168.34-12.07 30.78-4.84 62.55-12.51 84.9-31.05 28.36-23.53 35.39-63.38 16.39-92.88-31.89-49.49-120-61.78-142.32-114.9-12.26-29.23.34-61.79 18.16-88.91 38.24-58.16 102.33-109.19 105.71-175.67 2.32-45.67-28.5-91.39-76.14-113-49.93-22.73-119.19-19.85-156.01 17.64-37.94 38.63-104.6 53.45-161.74 51.47z",fill:"#9f6bf4",opacity:.1}),is=i.createElement("path",{fill:"#9f6bf4",d:"M435.45 690.5l-342.28-1.67-34.01-79.77 120.26-8.73-20.96-87.46 237.86-30.83-227.77-79.18 20.12-4.78 366.25 59.75-20.17 136.49-28.83 75.01-70.47 21.17z"}),ss=i.createElement("path",{d:"M98.42 655.42s21-3.36 33.6 11.48c0 0-9.24 7.28-29.12-2.8zM96.22 655.09s-13.4 16.49-6.8 34.85c0 0 10.92-4.37 12.11-26.63zM84.18 627.98s8.4-15.41 42 6.16c0 0-4.48 10.36-19.32 9.52s-18.76-7.56-22.68-15.68zM82.01 626.87s-17.43-2-19.12 37.9c0 0 11.05 2.29 18.9-10.33s4.63-19.7.22-27.57zM71.86 595.04s9.8-27.16 45.36-7.84c0 0-8.12 24.92-41.72 17.08zM60.94 554.44s18.48-27.44 51.24-2c0 0-11.48 25.76-48.44 11.76zM57.02 515.8s21.56-25.21 54 0c0 0-20.44 22.12-54 6.44zM53.66 478.27s21.84-26.32 52.92-1.4c0 0-24.64 23.24-52.92 7.56zM55.62 444.95s23-33.88 52.08-10.92c0 0-24.64 29.12-52.08 17.36zM60.94 406.03s24.36-33.6 52.64-7.84c0 0-28.84 29.12-52.64 14zM69.06 371.24s28.84-31.58 54-19c0 0-30.05 33.54-55.26 27.38zM79.14 338.26s33.28-38.68 52.64-25.76c0 0-24.52 30-55 33zM93.69 300.01s29.13-31.58 50.41-23.74c0 0-24.92 32.76-54.32 33.6zM106.86 264.23s32.2-30.24 46.2-24.92c0 0-23.24 33.6-47.6 31.64zM119.74 231.19s27.72-36.13 42.85-33.33c0 0-16.81 32.21-42.85 37zM133.72 186.64s24.5-27.69 37.74-27.63c0 0-19.34 37-38.75 36.66zM142 156.98l23.67-57.68s1.18 52.14-26.68 68.38zM151.61 93.37s3.92-48.17 1.4-52.09c0 0 16.92 40.05-1.56 73.37zM70.94 594.4s-24.54-15.21-40.43 22c0 0 21.84 14.5 43.32-12.51zM60.15 552.89s-30.1-13.73-44.7 25.12c0 0 23.25 16 47.44-15.3zM55.62 518.11s-21.56-25.21-54 0c0 0 20.44 22.12 54 6.44zM52.92 478.27S31.08 451.95 0 476.87c0 0 24.64 23.24 52.92 7.56z",fill:"#9f6bf4"}),as=i.createElement("path",{d:"M55.62 445.91S40.3 407.96 7 424.28c0 0 18 33.65 47.26 27.93zM62.87 405.84s-15.23-38.61-49-20.71c0 0 20.68 35.39 47.5 26.67zM72.31 371.43s-6-42.33-34-46.12c0 0 5.94 44.64 30.23 53.75zM79.85 338.34s-2.34-51-25.49-52.78c0 0 .78 38.71 22.88 60zM96.09 298.58s-6.9-42.41-29-47.59c0 0 2.74 41.07 26.81 58zM109.48 264.58s-.23-44.18-13.73-50.67c0 0-8.37 40 9.82 56.31zM120.77 230.69s-1.89-45.49-15.87-51.9c0 0-4.78 36 13.78 54.88zM135.67 190.27s-.08-37-10.06-45.68c0 0-9.92 40.53 4.85 53.12z",fill:"#9f6bf4"}),ls=i.createElement("path",{d:"M140.83 155.16l-9.71-61.58s-13.19 50.46 10.17 72.7zM142.72 93.95s-24.92-41.4-24.41-46c0 0 2.65 43.39 34 65zM145.64 81.72s-23.52-58.8-34.16-63.56c0 0 33.6 17.08 36.12 61.88z",fill:"#9f6bf4"}),us=i.createElement("path",{d:"M132.59 196.02l-1.61-.49c19.85-64.73 24.8-106 13.95-116.35l1.15-1.22c11.51 10.92 6.84 51.74-13.49 118.06z",fill:"#444053"}),cs=i.createElement("path",{d:"M77.93 347.58l-2.38-.85c2.11-5.93 4.38-11.95 6.76-17.88 20.72-51.64 38.36-99.68 49.67-136.56l2.07-1c-11.33 36.95-28.66 86.83-49.4 138.54-2.37 5.82-4.63 11.81-6.72 17.75z",fill:"#444053"}),ps=i.createElement("path",{d:"M128.01 703.86c-.32-.35-32.49-36.58-54.92-98.43a364.18 364.18 0 01-21.67-112.78c-1.54-48.13 8.56-101.87 25.86-150.69l1.88 2.2c-38.84 109.57-23.41 203.46-2.94 260 22.19 61.29 54 97.12 54.31 97.48z",fill:"#444053"}),ds=i.createElement("path",{d:"M630.73 626.94s-22.67 27.67-4.67 69.5l-181 78.5-17.37 3.64-8-35 5.35-44.17v-24.14z",fill:"#d5d6db"}),hs=i.createElement("path",{fill:"#9f6bf4",d:"M59.16 609.06l250.52-45.67 331.95 52.88-206.18 74.23-376.29-81.44z"}),fs=i.createElement("path",{fill:"#9f6bf4",d:"M59.16 609.06l250.52-45.67 331.95 52.88-206.18 74.23-376.29-81.44z"}),gs=i.createElement("path",{d:"M59.16 609.05s-23.43 44.39 3.57 85.39l371.5 80.5s-23.06-35.36 1.19-84.44z",fill:"#9f6bf4"}),vs=i.createElement("path",{d:"M59.16 609.05s-23.43 44.39 3.57 85.39l371.5 80.5s-23.06-35.36 1.19-84.44zM70.23 624.44s-13.39 32.48 0 53.5",opacity:.1}),ms=i.createElement("path",{d:"M434.23 774.94l207.4-88.5s11.6 2.5 4.1 11-207.5 86-207.5 86l-375.5-89z",fill:"#9f6bf4"}),ys=i.createElement("path",{d:"M434.23 774.94l207.4-88.5s11.6 2.5 4.1 11-207.5 86-207.5 86l-375.5-89zM417.23 699.44s-20 24 0 60",opacity:.1}),Cs=i.createElement("path",{opacity:.1,d:"M424.348 728.963l89.71-29.929.316.949-89.71 29.929zM424.32 737.012l107.705-40.956.356.935-107.706 40.956zM424.92 746.506l123.607-50.594.379.926L425.3 747.432zM426.364 754.87l140.108-63.29.411.911-140.108 63.29zM427.473 758.946l154.074-67.345.4.916-154.074 67.345zM429.796 765.786L614.522 686l.397.918-184.726 79.786z"}),ws=i.createElement("path",{fill:"#fff",opacity:.3,d:"M152.23 613.94l176-37 107.22 20.5-144.22 46.5-139-30z"}),bs=i.createElement("path",{d:"M641.63 616.27s9.1 3.67 3.76 9.34-209.97 64.89-209.97 64.89z",fill:"#9f6bf4"}),Es=i.createElement("path",{d:"M730.02 530.76s-22.66 27.66-4.66 69.5l-181 78.5-17.37 3.66-8-35 5.43-44.16v-24.17z",fill:"#d5d6db"}),_s=i.createElement("path",{fill:"#3a3768",d:"M158.46 512.87l250.51-45.66 331.96 52.88-206.18 74.23-376.29-81.45z"}),Os=i.createElement("path",{d:"M158.42 512.87s-23.44 44.39 3.56 85.39l371.5 80.5s-23.05-35.39 1.23-84.45z",fill:"#3a3768"}),Rs=i.createElement("path",{d:"M158.42 512.87s-23.44 44.39 3.56 85.39l371.5 80.5s-23.05-35.39 1.23-84.45l-117.48-25.43zM169.52 528.26s-13.38 32.47 0 53.5",opacity:.1}),Ss=i.createElement("path",{d:"M533.52 678.76l207.41-88.5s11.59 2.5 4.09 11-207.5 86-207.5 86l-375.5-89z",fill:"#3a3768"}),Ts=i.createElement("path",{d:"M533.52 678.76l207.41-88.5s11.59 2.5 4.09 11-207.5 86-207.5 86l-375.5-89zM516.52 603.26s-20 24 0 60",opacity:.1}),Ds=i.createElement("path",{opacity:.1,d:"M523.646 632.794l89.709-29.93.316.95-89.709 29.929zM523.63 640.838l107.706-40.956.355.934-107.705 40.957zM524.217 650.318l123.606-50.594.379.926-123.607 50.594zM525.67 658.684l140.109-63.29.412.911-140.109 63.29zM526.766 662.747l154.074-67.345.4.916-154.074 67.346zM529.097 669.587l184.726-79.785.397.918-184.727 79.785z"}),Ps=i.createElement("path",{fill:"#fff",opacity:.45,d:"M251.53 517.76l176-37 107.22 20.5-144.22 46.5-139-30z"}),Is=i.createElement("path",{d:"M740.93 520.09s9.09 3.67 3.76 9.33-209.94 64.89-209.94 64.89z",fill:"#3a3768"}),As=i.createElement("path",{d:"M739.42 420.73s-22.67 49.67-4.67 91.5l-181 56.5-17.33 3.67-8-35 5.35-44.17v-24.17z",fill:"#d5d6db"}),Ns=i.createElement("path",{fill:"#9f6bf4",d:"M167.89 402.85l250.52-45.67 331.96 52.88-206.19 74.23-376.29-81.44z"}),xs=i.createElement("path",{d:"M167.89 402.84s-23.47 44.39 3.53 85.39l371.5 80.5s-23.06-35.39 1.22-84.44z",fill:"#9f6bf4"}),Fs=i.createElement("path",{d:"M167.89 402.84s-23.47 44.39 3.53 85.39l371.5 80.5s-23.06-35.39 1.22-84.44zM178.96 418.23s-13.39 32.48 0 53.5",opacity:.1}),Ls=i.createElement("path",{d:"M542.96 568.73l207.4-66.5s11.6 2.5 4.1 11-207.5 64-207.5 64l-375.5-89z",fill:"#9f6bf4"}),Ms=i.createElement("path",{d:"M542.96 568.73l207.4-66.5s11.6 2.5 4.1 11-207.5 64-207.5 64l-375.5-89zM525.96 493.23s-20 24 0 60",opacity:.1}),ks=i.createElement("path",{opacity:.1,d:"M533.089 522.762l89.709-29.93.316.95-89.709 29.929zM533.066 530.811l107.706-40.956.355.935-107.706 40.956zM533.643 540.296l123.607-50.594.378.926-123.606 50.594zM535.111 548.654l140.109-63.291.411.911-140.108 63.29zM536.211 552.726l154.075-67.346.4.917-154.074 67.345zM538.54 559.572l184.726-79.785.396.918-184.726 79.785z"}),Gs=i.createElement("path",{fill:"#fff",opacity:.3,d:"M260.96 407.73l176-37 107.22 20.5-144.22 46.5-139-30z"}),Vs=i.createElement("path",{d:"M750.36 410.06s9.1 3.67 3.76 9.34-209.94 64.89-209.94 64.89zM310.42 106.5s-38-2.29-33.56 24.37c0 0-.89 4.71 3.38 6.85 0 0 .07-2 3.9-1.31a17.05 17.05 0 004.14.2 8.62 8.62 0 005.05-2.08s10.69-4.42 14.85-21.9c0 0 3.08-3.81 3-4.79l-6.44 2.74s2.19 4.63.47 8.48c0 0-.21-8.31-1.45-8.12-.25 0-3.33 1.61-3.33 1.61s3.77 8.07.92 13.93c0 0 1.08-9.94-2.1-13.35l-4.52 2.64s4.41 8.33 1.42 15.13c0 0 .77-10.43-2.37-14.49l-4.1 3.2s4.15 8.21 1.62 13.85c0 0-.33-12.14-2.5-13.06 0 0-3.59 3.16-4.13 4.46 0 0 2.84 6 1.07 9.11 0 0-1.07-8.09-2-8.13 0 0-3.57 5.36-3.94 9a19.46 19.46 0 013.07-9.54 10.71 10.71 0 00-5.46 2.83s.55-3.79 6.35-4.12c0 0 2.95-4.07 3.74-4.31 0 0-5.77-.49-9.26 1.06 0 0 3.08-3.57 10.31-2l4-3.3s-7.58-1-10.8.11c0 0 3.71-3.16 11.89-.86l4.41-2.63s-6.47-1.39-10.32-.89c0 0 4.06-2.19 11.61.18l3.14-1.41s-4.73-.93-6.12-1.08-1.46-.53-1.46-.53a16.51 16.51 0 018.9 1s6.75-2.43 6.62-2.85z",fill:"#9f6bf4"}),js=i.createElement("path",{d:"M845.02 216.08s-38-2.29-33.56 24.37c0 0-.89 4.71 3.38 6.85 0 0 .07-2 3.9-1.31a17.62 17.62 0 004.14.2 8.59 8.59 0 005-2.08s10.7-4.42 14.85-21.9c0 0 3.08-3.81 3-4.79l-6.42 2.74s2.19 4.63.47 8.48c0 0-.21-8.31-1.44-8.12-.25 0-3.34 1.61-3.34 1.61s3.77 8.07.93 13.93c0 0 1.08-9.94-2.11-13.35l-4.52 2.64s4.41 8.33 1.42 15.13c0 0 .77-10.43-2.37-14.49l-4.09 3.2s4.14 8.21 1.61 13.85c0 0-.33-12.14-2.5-13.06 0 0-3.58 3.16-4.13 4.46 0 0 2.84 6 1.08 9.11 0 0-1.08-8.09-2-8.13 0 0-3.57 5.36-3.94 9a19.4 19.4 0 013.08-9.54 10.76 10.76 0 00-5.47 2.83s.56-3.79 6.35-4.12c0 0 2.95-4.07 3.74-4.32 0 0-5.76-.48-9.26 1.07 0 0 3.08-3.57 10.31-2l4-3.3s-7.59-1-10.8.11c0 0 3.7-3.16 11.89-.86l4.4-2.63s-6.47-1.39-10.32-.89c0 0 4.06-2.19 11.61.18l3.15-1.41s-4.74-.93-6.13-1.08-1.46-.53-1.46-.53a16.39 16.39 0 018.9 1s6.77-2.43 6.65-2.85zM374.42 271.2s-16.56-34.33-37.64-17.41c0 0-4.55 1.52-4.33 6.29 0 0 1.75-.91 3 2.77a17.72 17.72 0 001.84 3.7 8.63 8.63 0 004.29 3.4s9.07 7.18 26.36 2.28c0 0 4.83.83 5.62.25l-5.52-4.27s-3 4.17-7.18 4.54c0 0 7.16-4.23 6.39-5.21-.16-.2-3-2.13-3-2.13s-5.21 7.23-11.71 7.6c0 0 9.2-3.9 10.62-8.35l-4.5-2.66s-5.13 7.92-12.52 8.62c0 0 9.48-4.41 11.49-9.13l-4.78-2s-5.15 7.62-11.31 8.17c0 0 10.44-6.21 10.18-8.56 0 0-4.51-1.58-5.91-1.43 0 0-3.82 5.39-7.42 5.39 0 0 6.53-4.89 6.13-5.68 0 0-6.42-.5-9.8 1a19.47 19.47 0 019.83-2 10.77 10.77 0 00-5.14-3.39s3.58-1.36 6.69 3.53c0 0 5 .59 5.59 1.16 0 0-2.39-5.26-5.44-7.55 0 0 4.62.93 6.73 8l4.85 1.92s-2.79-7.12-5.36-9.37c0 0 4.56 1.69 6.55 10l4.44 2.56s-1.93-6.33-4.25-9.44c0 0 3.89 2.48 5.5 10.22l2.77 2.06s-1.5-4.59-2-5.87-.25-1.54-.25-1.54a16.41 16.41 0 013.48 8.25s5.35 4.58 5.71 4.28zM758.2 167.58s-16.55-34.33-37.64-17.41c0 0-4.54 1.52-4.33 6.29 0 0 1.76-.9 3 2.77a17.34 17.34 0 001.85 3.71 8.58 8.58 0 004.28 3.39s9.08 7.18 26.36 2.29c0 0 4.83.82 5.63.24l-5.49-4.28s-3 4.18-7.17 4.55c0 0 7.15-4.24 6.38-5.22-.16-.2-3-2.13-3-2.13s-5.2 7.23-11.71 7.6c0 0 9.21-3.9 10.63-8.34l-4.57-2.64s-5.12 7.91-12.52 8.62c0 0 9.48-4.42 11.5-9.14l-4.79-2s-5.15 7.63-11.3 8.17c0 0 10.43-6.21 10.17-8.55 0 0-4.5-1.59-5.9-1.43 0 0-3.82 5.38-7.43 5.38 0 0 6.54-4.89 6.14-5.68 0 0-6.42-.5-9.81 1a19.46 19.46 0 019.83-2 10.71 10.71 0 00-5.13-3.39s3.58-1.36 6.69 3.53c0 0 5 .6 5.59 1.17 0 0-2.39-5.27-5.45-7.56 0 0 4.62.94 6.73 8.05l4.86 1.92s-2.79-7.13-5.36-9.38c0 0 4.56 1.69 6.54 10l4.45 2.56s-1.94-6.32-4.26-9.44c0 0 3.9 2.48 5.5 10.22l2.77 2.06s-1.49-4.59-2-5.87-.25-1.53-.25-1.53a16.45 16.45 0 013.47 8.25s5.43 4.54 5.74 4.22zM811.09 337.39s-16.55-34.34-37.67-17.42c0 0-4.54 1.52-4.33 6.29 0 0 1.76-.9 3 2.77a17.33 17.33 0 001.84 3.71 8.58 8.58 0 004.28 3.39s9.08 7.19 26.37 2.29c0 0 4.82.83 5.62.24l-5.52-4.27s-3 4.18-7.18 4.55c0 0 7.15-4.24 6.38-5.22-.16-.2-3-2.13-3-2.13s-5.2 7.23-11.71 7.61c0 0 9.21-3.91 10.63-8.35l-4.51-2.66s-5.12 7.92-12.52 8.62c0 0 9.48-4.42 11.5-9.14l-4.79-2s-5.15 7.62-11.3 8.17c0 0 10.44-6.21 10.18-8.56 0 0-4.51-1.59-5.91-1.43 0 0-3.82 5.38-7.43 5.38 0 0 6.54-4.89 6.14-5.68 0 0-6.42-.5-9.81 1a19.52 19.52 0 019.84-2 10.69 10.69 0 00-5.14-3.39s3.58-1.37 6.69 3.53c0 0 5 .59 5.59 1.16 0 0-2.39-5.26-5.44-7.56 0 0 4.62.94 6.73 8.05l4.85 1.92s-2.79-7.13-5.36-9.37c0 0 4.56 1.68 6.54 10l4.45 2.55s-1.94-6.32-4.26-9.44c0 0 3.9 2.48 5.51 10.23l2.77 2s-1.5-4.59-2-5.87-.25-1.53-.25-1.53a16.35 16.35 0 013.47 8.25s5.44 4.61 5.75 4.31z",fill:"#9f6bf4",opacity:.1}),Ws=i.createElement("ellipse",{cx:201.95,cy:781.59,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),Hs=i.createElement("ellipse",{cx:51.24,cy:737.91,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),Bs=i.createElement("ellipse",{cx:316.83,cy:810.6,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),zs=i.createElement("ellipse",{cx:905.53,cy:747.41,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),Us=i.createElement("ellipse",{cx:714.22,cy:734.94,rx:22.99,ry:2.57,fill:"#9f6bf4",opacity:.1}),qs=i.createElement("ellipse",{cx:590.46,cy:793.66,rx:27.19,ry:4.67,fill:"#9f6bf4",opacity:.1}),Ys=i.createElement("path",{d:"M602.59 746.72s-37.86 19.56-18.3 42.6c0 0 1.84 5 7.16 4.65 0 0-1.06-1.94 3-3.49a19.51 19.51 0 004.09-2.17 9.61 9.61 0 003.66-4.89s7.74-10.36 1.74-29.53c0 0 .78-5.42.1-6.3l-4.6 6.31s4.75 3.19 5.3 7.88c0 0-5-7.87-6-7-.22.18-2.28 3.45-2.28 3.45s8.24 5.59 8.85 12.85c0 0-4.64-10.17-9.65-11.62l-2.87 5.12s9 5.48 10 13.72c0 0-5.23-10.45-10.57-12.56l-2.11 5.41s8.68 5.52 9.48 12.38c0 0-7.26-11.47-9.87-11.11 0 0-1.64 5.08-1.42 6.65 0 0 6.13 4.1 6.24 8.13 0 0-5.66-7.15-6.53-6.68 0 0-.36 7.19 1.38 10.93 0 0-3-5.34-2.51-10.93a12 12 0 00-3.63 5.84s-1.63-3.95 3.74-7.59c0 0 .51-5.59 1.13-6.28 0 0-5.81 2.84-8.28 6.32 0 0 .91-5.19 8.79-7.77l2-5.48s-7.88 3.34-10.31 6.28c0 0 1.75-5.15 10.93-7.62l2.72-5s-7 2.36-10.42 5c0 0 2.65-4.43 11.26-6.47l2.21-3.15s-5.08 1.81-6.5 2.46-1.7.33-1.7.33a18.39 18.39 0 019.11-4.14s5.01-6.19 4.66-6.53z",fill:"#9f6bf4"}),Ks=i.createElement("path",{d:"M803.54 420.71C797 402.94 761 401.27 745.38 405.8c-11.1 3.23-34.5 6.87-47 8.7l-.81-.77c1.62-.48 1.66-1.66 1.46-3.41a53.37 53.37 0 01.1-6.92c7.66 2.38 14.48-3.25 14.48-3.25 9-4 6.58-21.12 8.3-25.8 1.29-3.5 2.68-24.12 3.3-34.4h.13l.07-3.45c.09-1.49.13-2.36.13-2.36s.88-25.14 2.6-30.23c1.6-4.68 2.9-28.26 3.1-32v-.49l-.13-2.18c.09-1.59.13-3.36.12-5.22 0-8.55-.89-19.32-1-21.06v-.91c.07-3.65-.39-21.93-15.94-28.84-5.73-2.56-12.62-5.61-19.29-8.58-1.72-14.85-5.65-29.62-5.31-44.58 0-2.25.2-4.5.42-6.74 0 .65-.07 1.31-.08 2v4.36c.59-18.71 7.66-37.52 7-55.83-.06 1.79-.19 3.59-.36 5.39a58.13 58.13 0 00-1.92-18.39c-.6-2.11-1.41-4.29-3.14-5.7a12.93 12.93 0 00-5.48-2.17 110.21 110.21 0 00-14.39-2.68A22.22 22.22 0 00668.5 74c-10.14-13.92-25.16-27-42.92-30-8.91-1.5-19.16-.25-25.22 6.12a18.92 18.92 0 00-1.78 1.8c-3.26 3.89-4.66 9-8 12.88-.22.26-.47.5-.71.75-6.54 5.85-16.73 7.07-24 12.32a28.81 28.81 0 00-3.59 3.13 60.88 60.88 0 00-7.84 9.53c-3.27 4.6-6.63 9.39-7.67 14.88-2.09 11 5.4 21.43 6.79 32.5 3.1 24.77-24.31 46.75-19.12 71.19a32.6 32.6 0 008.82 15.83c-10.69 9.68-19.79 19.07-19.79 19.07v.56h-1.69l.17 2h-.17l.93 10.85-.93 15.8v1.49h.06c.31 5.79 1.54 26.61 3 31 1.72 5.09 2.59 30.23 2.59 30.23s1.9 35.53 3.64 40.23-.73 21.77 8.3 25.8a19 19 0 009.07 3.76c-.46 3.74-.17 6.45 1.32 7.3a4.36 4.36 0 002.1.6 22.29 22.29 0 00-1.63 2.85 42.36 42.36 0 01-10.48-2.47c-9.7-4-41.89-13-51.24-6.67s-31.85 12.07-21.46 37.55S482.28 471 482.28 471a37 37 0 018.31 8.35c3.12 4.69 32.19 15.42 39.46 15.42a71.19 71.19 0 019.25.46s-7.89 6.92-6.84 10.94-2.4 36.2-2.4 36.2 8 8.06 11.42-2.51l.12.16c.64.87 4.1 4.8 10.61-.16a59.48 59.48 0 018.46-5.36l31.52-4.46a89.24 89.24 0 019.87-.07c5 .41 9.91-2.55 13-4.84 6.53 2.48 13.87 5.19 17.36 6.18 7.08 2 39.62 10.73 47.23 8a10.57 10.57 0 004.1-2.92l7.26.23-3.4.68s6.62.11 15.62.23l-.38.22 11.29-.1c16.52.15 35.08.2 37.52-.35 3.82-.85 23.67-.25 29.52 0h1.63s21.81-4.35 12.81-26.48c-6.92-17-28.19-21.94-37.63-23.3 2.66-.53 4.95-.94 6.47-1.18 6.59-1 19.39-7 20.43-9.05s11.77-8 14.54-11.39 10.68-27.42 4.11-45.19zm-180.65 49.73l-1.07.35-.72.24-1.38 1.36c-1.1-.74-2.28-1.52-3.51-2.32 2.17.13 4.4.26 6.68.37zm95.31 28.18z",transform:"translate(-88.58 -43.42)",fill:"url(#read_svg__a)"}),$s=i.createElement("path",{d:"M598.07 321.58s15.3 40 24 36 6.34-21 8-25.66 3.5-40 3.5-40 .84-25 2.5-30.06c1.54-4.65 2.79-28.1 3-31.79v-.49l-1.65-29-9.34-2.33-21.66 8-3 17.13-1.17 6.69-.5 2.85z",fill:"#be6f72"}),Qs=i.createElement("path",{d:"M603.11 314.88s14.6 11.95 19 13 7.1 10.37 7.1 10.37",opacity:.1}),Xs=i.createElement("path",{d:"M478.42 323.33s-15.3 40-24 36-6.34-21-8-25.66-3.5-40-3.5-40-.84-25-2.5-30.06c-1.54-4.65-2.79-28.1-3-31.79v-.49l1.66-29 9.34-2.33 21.66 8 3 17.13 1.17 6.69.5 2.85z",fill:"#be6f72"}),Js=i.createElement("path",{fill:"#3e373a",d:"M543.9 109.27h34.15v53.23H543.9z"}),Zs=i.createElement("path",{opacity:.1,d:"M543.9 109.27h34.15v53.23H543.9z"}),ea=i.createElement("path",{d:"M472.42 363.17s-11.67 12.83-7.34 15.16 32.34 46 32.34 46 92 11.33 109.35-5.67 17-47.37 17-47.37-13.94 3-15.46 1.37-9.87-9.49-9.87-9.49-118.02-7.16-126.02 0z",fill:"#4b4b5b"}),ta=i.createElement("path",{d:"M472.42 363.17s-11.67 12.83-7.34 15.16 32.34 46 32.34 46 92 11.33 109.35-5.67 17-47.37 17-47.37-13.94 3-15.46 1.37-9.87-9.49-9.87-9.49-118.02-7.16-126.02 0z",opacity:.02}),na=i.createElement("path",{d:"M638.04 201l-30 24-9.07.66-3.33.24-55.93 4.1-58-4.24-8.63-.63-11-.8-23-22s16.28-17.44 30.54-29.21c5.62-4.65 10.93-8.41 14.8-9.89l.66-.23a16.46 16.46 0 006.34-4.42c11.26-11.61 21.67-40.26 21.67-40.26s49.67-25.66 43.67 8 22.33 25.34 22.33 25.34l9.34 4.26 3.69 1.69 9.41 4.31 21.23 9.74c16.66 7.67 15.28 29.34 15.28 29.34z",fill:"#be6f72"}),oa=i.createElement("circle",{cx:537.38,cy:101.06,r:44.67,opacity:.1}),ra=i.createElement("path",{d:"M638.11 232.82H437.42v-.49l1.66-29s16.28-17.44 30.54-29.21l126-5 5.86-6.18 21.23 9.74c16.67 7.66 15.33 29.33 15.33 29.33s2.28 25.11.07 30.81z",opacity:.1}),ia=i.createElement("path",{d:"M638.11 231.82H437.42v-.49l1.66-29s16.28-17.44 30.54-29.21l126-5 5.86-6.18 21.23 9.74c16.67 7.66 15.33 29.33 15.33 29.33s2.28 25.11.07 30.81z",fill:"#e7c7ca"}),sa=i.createElement("path",{d:"M505.21 150.5s31.66 40.34 73.83-.83 4.67 91.83 4.67 91.83l-91 10.8z",opacity:.1}),aa=i.createElement("path",{d:"M505.21 152.5s31.66 40.34 73.83-.83 4.67 91.83 4.67 91.83l-91 10.8z",fill:"#e7c7ca"}),la=i.createElement("path",{d:"M592.07 159.58l3.35 51.09 3.59 17 2.74 13s7 100 5 105 1 9 1.42 11.66-.42 9.34-.09 12.34 0 4.33-7.66 3.26-18.34-2.93-18.34-2.93-27 2-36.33-1.33-27-3.34-27-3.34-26.67.67-35.33-.33-13.34 10.67-19 7.33 6.66-35.66 10.66-45-5.33-33-5.33-33l12-66.57 2.67-15.09v-47.44l.66-.23a16.46 16.46 0 006.34-4.42l3 47.74 94 3.34v-53.73",opacity:.1}),ua=i.createElement("path",{d:"M592.07 157.58l3.35 51.09 3.59 17 2.74 13s7 100 5 105 1 9 1.42 11.66-.42 9.34-.09 12.34 0 4.33-7.66 3.26-18.34-2.93-18.34-2.93-27 2-36.33-1.33-27-3.34-27-3.34-26.67.67-35.33-.33-13.34 10.67-19 7.33 6.66-35.66 10.66-45-5.33-33-5.33-33l12-66.57 2.67-15.09v-47.44l.66-.23a16.46 16.46 0 006.34-4.42l3 47.74 94 3.34v-53.73",fill:"#e7c7ca"}),ca=i.createElement("path",{d:"M602.88 50.96c-.57-2.09-1.36-4.26-3-5.66a12.28 12.28 0 00-5.28-2.16 104.32 104.32 0 00-13.88-2.66 22.22 22.22 0 00-3-6.23c-9.8-13.84-24.3-26.89-41.36-29.84-8.93-1.55-19.28-.16-25 6.88-3.14 3.87-4.49 9-7.66 12.8-6.11 7.38-17.14 8.29-24.84 14-4.11 3-7.09 7.35-10 11.57-3.15 4.57-6.39 9.33-7.39 14.79-2 10.91 5.21 21.31 6.54 32.32 3 24.63-23.4 46.48-18.41 70.78 2.91 14.17 16 24.15 29.54 29.21 4.77 1.79 10.22 3.57 12.45 8.15 1 2 1.17 4.31 2.11 6.33 3.16 6.74 13.55 7 19.13 2.09s7.34-12.85 8-20.26c2.68-32.36-10.28-64.33-8.77-96.77.45-9.81 3.21-20.94 12-25.38 11.83-6 26.06 4 39.08 2.09a77.53 77.53 0 013.74 47.31c-2.07 8.63-5.65 17-5.91 25.9-.39 13.55 6.92 25.93 13.24 37.91a20.17 20.17 0 012.67 7.31 17.62 17.62 0 01-1.43 7.65c-3.57 9.61-9.73 18.53-10.43 28.76a4.65 4.65 0 00.75 3.42 4.3 4.3 0 002.58 1.16c10.8 1.85 20.14-7.72 25.41-17.33a81.24 81.24 0 0010.02-34.52c1.09-20.36-6.21-40.39-5.76-60.77.52-23.17 10.99-46.5 4.86-68.85z",opacity:.1}),pa=i.createElement("path",{d:"M603.88 49.96c-.57-2.09-1.36-4.26-3-5.66a12.28 12.28 0 00-5.28-2.16 104.32 104.32 0 00-13.88-2.66 22.22 22.22 0 00-3-6.23c-9.8-13.84-24.3-26.89-41.36-29.84-8.93-1.55-19.28-.16-25 6.88-3.14 3.87-4.49 9-7.66 12.8-6.11 7.38-17.14 8.29-24.84 14-4.11 3-7.09 7.35-10 11.57-3.15 4.57-6.39 9.33-7.39 14.79-2 10.91 5.21 21.31 6.54 32.32 3 24.63-23.4 46.48-18.41 70.78 2.91 14.17 16 24.15 29.54 29.21 4.77 1.79 10.22 3.57 12.45 8.15 1 2 1.17 4.31 2.11 6.33 3.16 6.74 13.55 7 19.13 2.09s7.34-12.85 8-20.26c2.68-32.36-10.28-64.33-8.77-96.77.45-9.81 3.21-20.94 12-25.38 11.83-6 26.06 4 39.08 2.09a77.53 77.53 0 013.74 47.31c-2.07 8.63-5.65 17-5.91 25.9-.39 13.55 6.92 25.93 13.24 37.91a20.17 20.17 0 012.67 7.31 17.62 17.62 0 01-1.43 7.65c-3.57 9.61-9.73 18.53-10.43 28.76a4.65 4.65 0 00.75 3.42 4.3 4.3 0 002.58 1.16c10.8 1.85 20.14-7.72 25.41-17.33a81.24 81.24 0 0010.02-34.52c1.09-20.36-6.21-40.39-5.76-60.77.52-23.17 10.99-46.5 4.86-68.85z",fill:"#3e373a"}),da=i.createElement("path",{fill:"#c3c7d9",d:"M581.79 492.73l39.67 1.27-5.69-29.42-30.39 2.89-3.59 25.26z"}),ha=i.createElement("path",{d:"M704.71 423c-2.67 3.33-13 9.33-14 11.33s-13.33 8-19.67 9-26.33 5.34-30 7.67c-2.63 1.68-23.74 7-37.61 9.95a106.75 106.75 0 01-11.39 2.05c-6 .33-71.66-22-71.66-22l12.66-13 .7-.24c3.58-1.21 20.12-6.8 29.3-9.46 10.34-3 22.34-15.33 22.34-15.33s17.66-6 20-6.67-6-23.33-6-23.33 38.33-5.32 53.33-9.83 49.67-2.84 56 14.83-1.29 41.7-4 45.03z",fill:"#4b4b5b"}),fa=i.createElement("path",{d:"M530.04 479.33s-7.66 8-15.33 7.34-34.49 2-34.49 2a53.77 53.77 0 00-13.51 7.83c-6.27 4.94-9.6 1-10.22.16l-.11-.16c-3.34 10.51-11 2.5-11 2.5s3.33-32 2.31-36 6.59-10.87 6.59-10.87l9-2.29 22.8-5.84 32.67 11.33z",fill:"#e7c7ca"}),ga=i.createElement("path",{d:"M463.24 449.84l-6.75 46.82-.11-.16c-3.34 10.51-11 2.5-11 2.5s3.33-32 2.31-36 6.59-10.87 6.59-10.87zM510.42 316.66s17.66 6 33 0M570.71 328s7.33 3.66 13 0M570.71 336.68s12.33 1.65 14.67-1.68M566.71 355.33s23.16-3 28.91-7M496.04 348.33s13 7.33 22.67 7M603.42 460.95a106.75 106.75 0 01-11.39 2.05c-6 .33-71.66-22-71.66-22l12.66-13 .7-.24c2 1.41 3.64 2.62 4.81 3.54 5.51 4.34 10.83-1.33 12.83-1.33s19.33 14.33 19.33 14.33 16 3.67 18.67 7 12 2.67 13.66 5c.5.72.56 2.49.39 4.65z",opacity:.1}),va=i.createElement("path",{d:"M480.22 374.33s-16.18.93-25.51-3-40.33-13-49.33-6.63-30.67 12-20.67 37.34 14.67 26 14.67 26a36.1 36.1 0 018 8.3c3 4.67 31 15.33 38 15.33s19.33 0 36.66 12 33 13.34 33 13.34 22 9 28.85 11 38.15 10.66 45.49 8 12-19.34 12-19.34 3.33-15 1.66-17.33-11-1.67-13.66-5-18.67-7-18.67-7S553.42 433 551.42 433s-7.32 5.66-12.83 1.33a292.69 292.69 0 00-34.51-22c-12.66-6.67-23.86-38-23.86-38z",fill:"#4b4b5b"}),ma=i.createElement("path",{d:"M447.69 384a19.1 19.1 0 0116.39 4.33c8 6.67 34.92 20.06 34.92 20.06M647.71 383.58s-35.67 5.4-42.33 12.73",opacity:.1}),ya=i.createElement("path",{d:"M688.71 494h-1.57c-5.64-.2-24.75-.8-28.43 0-4.33 1-61.67 0-61.67 0l11.21-2.33s-4.16-14.58-1.52-15.79c0 0-15-9.88-3.69-16.55s23.5-3.86 23.5-3.86l28.39-9.62 5.45-1.85s32 1.67 40.66 23.67S688.71 494 688.71 494z",fill:"#e7c7ca"}),Ca=i.createElement("path",{d:"M688.71 494h-1.57c9.31-7.68 30.37-31.06-32.21-48.1l5.45-1.85s32 1.67 40.66 23.67S688.71 494 688.71 494z",opacity:.1}),wa=i.createElement("circle",{cx:629.88,cy:466.33,r:1.75,fill:"#4b4b5b"}),ba=i.createElement("circle",{cx:619.71,cy:469.22,r:1.75,fill:"#4b4b5b"}),Ea=i.createElement("g",{opacity:.1},i.createElement("path",{d:"M570.16 99.41a77.59 77.59 0 00-5.74-32.14c-13 1.94-27.24-8.09-39.08-2.09-8.76 4.44-11.51 15.57-12 25.38-.12 2.59-.14 5.18-.09 7.77 0-.92 0-1.85.09-2.77.46-9.81 3.21-20.94 12-25.38 11.84-6 26.06 4 39.08 2.09a77.38 77.38 0 015.74 27.14zM469.42 97.58a33.32 33.32 0 00-.13-6.54c-1.06-8.8-5.87-17.21-6.74-25.79-1.12 10.35 5.47 20.29 6.74 30.79.13.54.13 1.02.13 1.54zM522.11 187.32c-.62 7.42-2.37 15.35-8 20.27s-16 4.65-19.13-2.09c-1-2-1.15-4.33-2.12-6.33-2.22-4.58-7.68-6.36-12.45-8.15-13.55-5.07-26.62-15-29.53-29.21a30.68 30.68 0 01-.53-3.9 31.52 31.52 0 00.53 8.9c2.91 14.17 16 24.14 29.53 29.21 4.77 1.79 10.23 3.57 12.45 8.15 1 2 1.17 4.31 2.12 6.33 3.15 6.74 13.54 7 19.13 2.09s7.33-12.85 8-20.27a114.29 114.29 0 00.31-11.74c0 2.27-.13 4.51-.31 6.74zM599.35 114.07v4.33c.56-18.6 7.38-37.3 6.71-55.51-.52 16.84-6.33 34.06-6.71 51.18zM577.89 189.31a12.89 12.89 0 00.23-3.61 20 20 0 00-2.67-7.31c-5.78-11-12.37-22.26-13.15-34.47 0 .52-.07 1-.08 1.56-.4 13.54 6.91 25.93 13.23 37.91a24 24 0 012.44 5.92zM605.1 174.84a81.37 81.37 0 01-10.09 34.52c-5.28 9.61-14.61 19.18-25.42 17.33a4.25 4.25 0 01-2.58-1.17 2.5 2.5 0 01-.47-.78c-.12.78-.22 1.57-.28 2.37a4.61 4.61 0 00.75 3.41 4.25 4.25 0 002.58 1.17c10.81 1.85 20.14-7.72 25.42-17.33a81.37 81.37 0 0010.09-34.52c.12-2.34.13-4.67.06-7-.02.67-.02 1.33-.06 2z"})),_a=i.createElement("path",{d:"M606.73 475.88s25.31 10.62 42-12.88M611.71 494.44s20.67-13.44 47-.44M473.35 491.39s8.68-19.58 31.86-4.65",fill:"none",stroke:"#000",strokeMiterlimit:10,opacity:.1}),Oa=i.createElement("path",{d:"M445.21 201.83l17.7-16s68.63-4.5 71.47 18.83c0 0 24.33-27.66 75.5-21.5l21.65 17.24-59.84 26.26-58.15 20.17-42.83-19.17z",opacity:.1}),Ra=i.createElement("path",{d:"M445.21 202.83l17.7-16s68.63-4.5 71.47 18.83c0 0 24.33-27.66 75.5-21.5l21.65 17.24-59.84 26.26-58.15 20.17-42.83-19.17z",fill:"#d5d6db"}),Sa=i.createElement("path",{opacity:.1,d:"M437.38 204.83l7.83 93.67 83 4.17-3.6-93.27-.07-1.57-87.16-3z"}),Ta=i.createElement("path",{fill:"#9f6bf4",d:"M437.38 202.83l7.83 93.67 83 4.17-3.6-93.27-.07-1.57-87.16-3z"}),Da=i.createElement("path",{opacity:.1,d:"M635.33 202.83l-85.62 12.84v94.09l83.67-12.09 1.95-94.84z"}),Pa=i.createElement("path",{fill:"#9f6bf4",d:"M635.33 200.83l-85.62 12.84v94.09l83.67-12.09 1.95-94.84z"}),Ia=i.createElement("path",{fill:"#fff",opacity:.3,d:"M615.14 223.79l-46.25 5.14 1.01 15.76 45.21-4.94.03-15.96z"}),Aa=i.createElement("path",{d:"M449.71 346.66l4.71 12.67s7 6 14.66 3 14.34-4.49 17.67-7.41 8-17.59 8-17.59 4.67-16 9.33-20 17-59.11 0-53.72-30 55.39-30 55.39-3 3.66-7.33 4-13-.67-14.67 3-7.37 13.33-2.37 20.66z",fill:"#be6f72"}),Na=i.createElement("path",{d:"M549.71 215.66a28.8 28.8 0 01-25.11-6.26l3.61 93.26s8.5 9.2 21.5 7.1z",opacity:.1}),xa=i.createElement("path",{d:"M549.71 213.66a28.8 28.8 0 01-25.11-6.26l3.61 93.26s8.5 9.2 21.5 7.1z",fill:"#9f6bf4"}),Fa=i.createElement("path",{d:"M549.71 213.66a28.8 28.8 0 01-25.11-6.26l3.61 93.26s8.5 9.2 21.5 7.1zM551.71 203.15s34.83-10.65 43.91-9.15M512.75 198.5s-33.76-8-39.4-5.73M573.67 204.48s23.29-8.54 31.71-4.48M561.94 418.71a76.56 76.56 0 0111.48-7.13c6-2.89 17-10.39 17-10.39M473.35 316.66s-14.61 11.95-19 13-7.1 10.37-7.1 10.37",opacity:.1}),La=i.createElement("path",{d:"M626.74 344.88l-4.66 12.7s-7 6-14.67 3-14.33-4.49-17.67-7.41-8-17.59-8-17.59-4.66-16-9.33-20-17-59.11 0-53.72 30 55.39 30 55.39 3 3.66 7.33 4 13-.67 14.67 3 7.33 13.33 2.33 20.63z",fill:"#be6f72"}),Ma=i.createElement("path",{d:"M618.57 321.52s9.55 6.14 9.51 13.48",opacity:.1}),ka=i.createElement("circle",{cx:537.54,cy:98.87,r:44.67,fill:"#be6f72"}),Ga=i.createElement("path",{d:"M509.49 86.88c5.42-.85 10.17-4 15.35-5.81 11.59-4.07 24.41-1.28 36.14 2.39 4.5 1.41 9.07 3 13.79 3s9.73-1.93 12.14-6c2.22-3.74 1.79-8.6-.08-12.53s-5-7.09-8.16-10.07c-10.4-9.82-23.3-19-37.57-18-5.74.41-11.23 2.46-16.51 4.73a182 182 0 00-19.38 9.76c-4.81 2.79-13.72 6.52-16.49 11.62-6.3 11.49 10.97 22.45 20.77 20.91z",fill:"#3e373a"}),Va=i.createElement("path",{d:"M586.91 76.26c-2.41 4.07-7.42 6-12.14 6s-9.29-1.53-13.8-2.94c-11.73-3.67-24.54-6.47-36.14-2.39-5.17 1.81-9.93 5-15.35 5.8-7.9 1.24-20.62-5.64-22-14.39-1.55 10.11 13.2 18.77 22 17.39 5.42-.85 10.18-4 15.35-5.8 11.6-4.08 24.41-1.28 36.14 2.39 4.51 1.41 9.07 3 13.8 2.94s9.73-1.92 12.14-6a11.71 11.71 0 001.4-7.31 10.78 10.78 0 01-1.4 4.31z",opacity:.1}),ja=i.createElement("path",{d:"M949.42 618.21s5.93 7.75-2.74 19.46-15.81 21.59-12.93 28.89c0 0 13.08-21.74 23.72-22.05s3.64-13.23-8.05-26.3z",fill:"#9f6bf4"}),Wa=i.createElement("path",{d:"M949.42 618.21a9.6 9.6 0 011.21 2.43c10.38 12.2 15.92 23.59 5.93 23.87-9.3.27-20.45 16.9-23.12 21.09a9.78 9.78 0 00.31 1s13.08-21.74 23.72-22.05 3.64-13.27-8.05-26.34z",opacity:.1}),Ha=i.createElement("path",{d:"M960.42 628.09c0 2.73-.31 4.94-.68 4.94s-.69-2.21-.69-4.94.38-1.44.76-1.44.61-1.29.61 1.44z",fill:"#ffd037"}),Ba=i.createElement("path",{d:"M964.21 631.35c-2.39 1.3-4.48 2.09-4.66 1.76s1.61-1.66 4-3 1.45-.36 1.63 0 1.43-.07-.97 1.24z",fill:"#ffd037"}),za=i.createElement("path",{d:"M918.08 618.21s-5.93 7.75 2.74 19.46 15.81 21.59 12.92 28.89c0 0-13.07-21.74-23.72-22.05s-3.6-13.23 8.06-26.3z",fill:"#9f6bf4"}),Ua=i.createElement("path",{d:"M918.08 618.21a9.6 9.6 0 00-1.21 2.43c-10.38 12.2-15.92 23.59-5.93 23.87 9.29.27 20.45 16.9 23.12 21.09a7.72 7.72 0 01-.32 1s-13.07-21.74-23.72-22.05-3.6-13.27 8.06-26.34z",opacity:.1}),qa=i.createElement("path",{d:"M907.06 628.09c0 2.73.3 4.94.68 4.94s.69-2.21.69-4.94-.39-1.44-.76-1.44-.61-1.29-.61 1.44z",fill:"#ffd037"}),Ya=i.createElement("path",{d:"M903.28 631.35c2.39 1.3 4.48 2.09 4.66 1.76s-1.61-1.66-4-3-1.45-.36-1.63 0-1.43-.07.97 1.24z",fill:"#ffd037"}),Ka=i.createElement("ellipse",{cx:933.75,cy:716.37,rx:62,ry:9.51,fill:"#9f6bf4",opacity:.1}),$a=i.createElement("path",{d:"M965.66 656.11l-.3 2.42-.42 3.42-.17 1.43-.42 3.42-.18 1.43-.41 3.41-4.75 38.9c-.42 3.47-6.09 6.18-12.94 6.18h-24.65c-6.85 0-12.51-2.71-12.94-6.18l-4.75-38.9-.42-3.41-.17-1.43-.42-3.42-.18-1.43-.41-3.42-.3-2.42c-.23-2 2.83-3.62 6.71-3.62h50.42c3.87 0 6.94 1.65 6.7 3.62z",fill:"#65617d"}),Qa=i.createElement("path",{fill:"#9d9cb5",d:"M965.36 658.53l-.41 3.42h-62.4l-.42-3.42h63.23zM964.77 663.38l-.41 3.42h-61.22l-.42-3.42h62.05zM964.18 668.23l-.42 3.42h-60.03l-.41-3.42h60.86z"});var Xa=function(e){return i.createElement("svg",ns({viewBox:"0 0 1022.84 813.16"},e),os,rs,is,ss,as,ls,us,cs,ps,ds,hs,fs,gs,vs,ms,ys,Cs,ws,bs,Es,_s,Os,Rs,Ss,Ts,Ds,Ps,Is,As,Ns,xs,Fs,Ls,Ms,ks,Gs,Vs,js,Ws,Hs,Bs,zs,Us,qs,Ys,Ks,$s,Qs,Xs,Js,Zs,ea,ta,na,oa,ra,ia,sa,aa,la,ua,ca,pa,da,ha,fa,ga,va,ma,ya,Ca,wa,ba,Ea,_a,Oa,Ra,Sa,Ta,Da,Pa,Ia,Aa,Na,xa,Fa,La,Ma,ka,Ga,Va,ja,Wa,Ha,Ba,za,Ua,qa,Ya,Ka,$a,Qa)},Ja=n(47),Za=n.n(Ja);class el extends s.a.PureComponent{render(){const{onClose:e}=this.props;return s.a.createElement(cr,{className:Za.a.dialog,onClose:e},s.a.createElement("div",{className:Za.a.container},s.a.createElement(Xa,{className:Za.a.illustration}),s.a.createElement("div",{className:Za.a.title},"Read-only zone"),s.a.createElement("div",{className:Za.a.content},"Pending changes could not be saved because you do not have write permissions for this database"),s.a.createElement(jo.a,{green:!0,className:Za.a.confirmButton,onClick:e},"Understood")))}}var tl=Object(So.a)(el),nl=n(48),ol=n.n(nl);class rl extends s.a.PureComponent{constructor(){super(...arguments),this.state={isReadonlyDialogOpen:!1},this.handleDiscard=()=>{const{onSuccess:e}=this.props;In.discard(),null==e||e(),zt.send({command:"action_discard",commandDetails:{pending_action_count:In.actions.length}})},this.handleCommit=async()=>{const{onSuccess:e,onFailure:t}=this.props;if(Me.readonly)return this.handleToggleReadonlyDialog();try{await In.commit(),null==e||e()}catch(e){null==t||t()}zt.send({command:"action_commit",commandDetails:{pending_action_count:In.actions.length}})},this.handleToggleReadonlyDialog=()=>{this.setState(e=>({isReadonlyDialogOpen:!e.isReadonlyDialogOpen}))}}render(){const{isReadonlyDialogOpen:e}=this.state,t=In.actions.filter(e=>"create"!==e.type||!In.actions.find(t=>t.recordId===e.recordId)).length,n=In.invalidActions.length;return 0===t?null:s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:ol.a.separator}),s.a.createElement("div",{"data-cy":"pending-actions",className:Ro()(ol.a.container,this.props.className)},s.a.createElement(jo.a,{"data-cy":"commit-actions",green:!0,className:Ro()(ol.a.action,ol.a.confirmBtn),disabled:n>0||In.committing,onClick:this.handleCommit},In.committing?"Saving Changes":`Save ${t} change${t>1?"s":""}`),s.a.createElement(jo.a,{"data-cy":"discard-actions",ghost:!0,disabled:In.committing,className:Ro()(ol.a.action,ol.a.discardBtn),onClick:this.handleDiscard},"Discard changes"),e&&s.a.createElement(tl,{onClose:this.handleToggleReadonlyDialog}),s.a.createElement(Uo.a,{keys:"mod+s",onMatch:()=>In.commit()})))}}var il=Object(So.a)(rl);var sl=e=>(e.contextType=No,e),al=n(31),ll=n(66),ul=n.n(ll);class cl extends s.a.Component{render(){return s.a.createElement("div",{"data-cy":"loading-overlay",className:ul.a.container},"Fetching rows in this table...")}}class pl extends s.a.Component{render(){return s.a.createElement("div",{"data-cy":"empty-overlay",className:ul.a.container},"There are no rows in this table")}}function dl(){return(dl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var hl=i.createElement("path",{d:"M18.327 24l-1.8-5.69H7.473L5.673 24H0L8.764 0h6.438L24 24h-5.673zm-3.057-9.94c-1.665-5.155-2.605-8.07-2.82-8.747a26.648 26.648 0 01-.441-1.602c-.374 1.395-1.444 4.845-3.21 10.349h6.47z"});var fl=function(e){return i.createElement("svg",dl({viewBox:"0 0 24 24"},e),hl)};function gl(){return(gl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var vl=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8a2 2 0 012-2h20a2 2 0 010 4H2a2 2 0 01-2-2zM0 16a2 2 0 012-2h20a2 2 0 010 4H2a2 2 0 01-2-2z"}),ml=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.297.022a2 2 0 011.68 2.275l-3 20a2 2 0 01-3.955-.594l3-20A2 2 0 019.297.024zM18.297.022a2 2 0 011.68 2.275l-3 20a2 2 0 01-3.955-.594l3-20a2 2 0 012.275-1.68z"});var yl=function(e){return i.createElement("svg",gl({viewBox:"0 0 24 24"},e),vl,ml)};function Cl(){return(Cl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var wl=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.857 5C3.07 5 0 8.134 0 12s3.07 7 6.857 7h10.286C20.93 19 24 15.866 24 12s-3.07-7-6.857-7H6.857zm0 12.25C9.697 17.25 12 14.9 12 12S9.697 6.75 6.857 6.75 1.714 9.1 1.714 12s2.303 5.25 5.143 5.25z"});var bl=function(e){return i.createElement("svg",Cl({viewBox:"0 0 24 24"},e),wl)};function El(){return(El=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var _l=i.createElement("path",{clipRule:"evenodd",d:"M4 10v8a2 2 0 002 2h12a2 2 0 002-2v-8H4zM0 6a6 6 0 016-6h12a6 6 0 016 6v12a6 6 0 01-6 6H6a6 6 0 01-6-6V6z"});var Ol=function(e){return i.createElement("svg",El({viewBox:"0 0 24 24",fill:"none"},e),_l)};function Rl(){return(Rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Sl=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.8H0V0h24v4.8zM16.8 14.4H0V9.6h16.8v4.8zM24 24H0v-4.8h24V24z"});var Tl=function(e){return i.createElement("svg",Rl({viewBox:"0 0 24 24"},e),Sl)};function Dl(){return(Dl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Pl=i.createElement("path",{d:"M9.545 24v-2.804H8.45c-1.621 0-1.94-.42-1.94-2.524V15.13c0-1.746-1.12-2.868-3.186-3.008v-.23c2.066-.14 3.185-1.274 3.185-3.007V5.328c0-2.103.32-2.524 1.941-2.524h1.096V0H7.707c-3.3 0-4.373 1.16-4.373 4.729v2.816c0 2.014-.822 2.792-3.334 2.677v3.556c2.512-.102 3.334.675 3.334 2.69v2.803c0 3.57 1.073 4.729 4.373 4.729h1.838zM16.293 24c3.3 0 4.373-1.16 4.373-4.729v-2.804c0-2.013.822-2.79 3.334-2.689v-3.556c-2.512.115-3.334-.663-3.334-2.677V4.73c0-3.57-1.073-4.729-4.373-4.729h-1.838v2.804h1.096c1.621 0 1.94.42 1.94 2.524v3.556c0 1.733 1.12 2.867 3.186 3.008v.23c-2.066.14-3.185 1.26-3.185 3.007v3.543c0 2.103-.32 2.524-1.941 2.524h-1.096V24h1.838z"});var Il=function(e){return i.createElement("svg",Dl({viewBox:"0 0 24 24"},e),Pl)};function Al(){return(Al=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Nl=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0H0v24h8v-3H4V3h4V0zm8 0v3h4v18h-4v3h8V0h-8z"});var xl=function(e){return i.createElement("svg",Al({viewBox:"0 0 24 24"},e),Nl)},Fl=n(77),Ll=n.n(Fl);var Ml=Object(So.a)(({className:e,string:t=!1,int:n=!1,float:o=!1,boolean:r=!1,dateTime:i=!1,enumerable:a=!1,array:l=!1,required:u=!1})=>{let c;return c=l?xl:t?fl:n||o?yl:r?bl:a?Tl:i?Ol:Il,s.a.createElement(s.a.Fragment,null,s.a.createElement(c,{className:Ro()(Ll.a.icon,e)}),s.a.createElement("span",{className:Ll.a.required},!u&&"?"))}),kl=n(36),Gl=n.n(kl);class Vl extends s.a.Component{constructor(){super(...arguments),this.state={wasReordered:!1},this.handleReorder=()=>{this.setState({wasReordered:!0})},this.handleSort=()=>{var e;const{wasReordered:t}=this.state,{field:n,script:o}=this.props;this.setState({wasReordered:!1}),n&&n.isSortable&&(console.log(t),t||(null===(e=ho.activeTab)||void 0===e||e.update({preview:!1}),o.sort.fieldId===n.id&&"asc"===o.sort.order?o.sort.update({fieldId:n.id,order:"desc"}):o.sort.fieldId===n.id&&"desc"===o.sort.order?o.sort.update({fieldId:null,order:"asc"}):o.sort.update({fieldId:n.id,order:"asc"}),o.run(),zt.send({command:"sort_change",commandDetails:{field_type:n.type}})))}}componentDidMount(){this.props.column.addEventListener("movingChanged",this.handleReorder)}componentWillUnmount(){this.props.column.removeEventListener("movingChanged",this.handleReorder)}render(){var e,t;const{field:n,script:o,displayName:r,columnApi:i,column:a}=this.props,l=null!==(t=null===(e=i.getColumnState().find(e=>e.colId===a.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200;return s.a.createElement("div",{"data-cy":"table__header__cell",className:Ro()(Gl.a.container,{[Gl.a.sortable]:n.isSortable}),style:{width:l},title:`${n.name} (${n.type})`,onClick:this.handleSort},s.a.createElement("span",{"data-cy":"table__header__cell__title",className:Gl.a.title},r),s.a.createElement(Ml,{required:n.isRequired,array:n.isList,object:n.isRelation,string:n.isString,int:n.isInt||n.isBigInt,float:n.isFloat||n.isDecimal,boolean:n.isBoolean,dateTime:n.isDateTime,enumerable:n.isEnum}),s.a.createElement("div",{className:Gl.a.spacer}),s.a.createElement(ii,{"data-cy-asc":o.sort.fieldId===n.id&&"asc"===o.sort.order,"data-cy-desc":o.sort.fieldId===n.id&&"desc"===o.sort.order,className:Ro()(Gl.a.sortIndicator,{[Gl.a.visible]:o.sort.fieldId===n.id,[Gl.a.asc]:"asc"===o.sort.order,[Gl.a.desc]:"desc"===o.sort.order})}))}}var jl=Object(So.a)(Vl),Wl=n(50),Hl=n(29),Bl=n.n(Hl);class zl extends s.a.PureComponent{constructor(e){var t;super(e),this.input=s.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{const{field:t}=this.props,n=e.currentTarget.value;t.isRequired||""!==n?this.setState({value:n}):this.setState({value:null})},this.state={value:null!==(t=e.initialValue)&&void 0!==t?t:null}}render(){const{value:e}=this.state;return s.a.createElement("input",{"data-cy":"input--string",ref:this.input,className:Bl.a.input,type:"text",value:null==e?"":String(e),placeholder:"null",onChange:this.handleChange})}}var Ul=Object(So.a)(zl),ql=n(22),Yl=n(23),Kl=n(6),$l=n.n(Kl);class Ql extends s.a.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length,0)].current)||void 0===e||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map(e=>String(e))})}catch(e){}},this.handleChangeItem=(e,t)=>{const{value:n}=this.state,o=String(t.currentTarget.value);if(!Array.isArray(n))throw Object(st.a)("StringListInput.handleChangeItem","Invalid value",{value:n,idx:e,changedItem:o});const r=[...n];return r.splice(e,1,o),this.setState({value:r})},this.handleChangeNewItem=e=>{const t=String(e.currentTarget.value);this.setState({newItem:t})},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw Object(st.a)("StringListInput.handleAddItem","Invalid value",{value:e,newItem:t});this.items.push(s.a.createRef()),this.setState({value:[...e,t||""],newItem:null},()=>{var e,t;null===(e=this.items[this.items.length-1].current)||void 0===e||e.focus(),null===(t=this.items[this.items.length-2].current)||void 0===t||t.scrollIntoView(!1)})},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw Object(st.a)("StringListInput.handleEnterKeydown","Invalid value",{value:t,idx:e});let n=[...t];n.splice(e+1,0,""),this.items.push(s.a.createRef()),this.setState({value:n,newItem:null},()=>{var t,n,o;null===(t=this.items[e+1].current)||void 0===t||t.focus(),null===(n=this.items[e+1].current)||void 0===n||n.scrollIntoView(!1),null===(o=this.items[e+1].current)||void 0===o||o.scrollIntoView({block:"nearest"})})},this.handleRemoveItem=(e,t)=>{var n,o,r,i;const{value:s}=this.state;if(t.preventDefault(),t.stopPropagation(),!Array.isArray(s))throw Object(st.a)("StringListInput.handleRemoveClick","Invalid Value",{value:s,idx:e});const a=[...s];a.splice(e,1),this.items.splice(e,1),null===(o=null===(n=this.items[e-1])||void 0===n?void 0:n.current)||void 0===o||o.focus(),null===(i=null===(r=this.items[e-1])||void 0===r?void 0:r.current)||void 0===i||i.scrollIntoView(),setTimeout(()=>this.setState({value:a}),0)},this.handleTabKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Object(st.a)("StringListInput.handleTabKeydown","Invalid value",{value:o,idx:e});e===o.length||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e+1].current)||void 0===n||n.focus())},this.handleShiftTabKeydown=(e,t)=>{var n;0===e||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e-1].current)||void 0===n||n.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t;if(!this.draggedItem)return;const{value:n=[]}=this.state;if(!Array.isArray(n))throw Object(st.a)("StringListInput.HandleDragEnd","Invalid value",{value:n,idx:e});const o=[...n],r=String(null===(t=this.draggedItem.current)||void 0===t?void 0:t.value);this.items.splice(e,1),o.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),o.splice(this.state.draggedOverIdx-1,0,r)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),o.splice(this.state.draggedOverIdx,0,r)),this.draggedItem=null,this.setState({value:o,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw Object(st.a)("StringListInput.constructor","Invalid initialValue",{initialValue:t});this.state={value:t,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map(()=>s.a.createRef()),this.items.push(s.a.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw Object(st.a)("StringListInput.render","Invalid value",{value:e});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{"data-cy":"input--string-list",className:$l.a.container},s.a.createElement("input",{type:"text",className:$l.a.input,value:JSON.stringify(e),onChange:this.handleChange}),s.a.createElement("ul",{className:Ro()($l.a.itemContainer,"ag-theme-dark")},s.a.createElement("div",{className:$l.a.itemScrollContainer},s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:0===this.state.draggedOverIdx})}),e.map((e,t)=>s.a.createElement(s.a.Fragment,{key:t},s.a.createElement(Xl,{innerRef:this.items[t],value:e,onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:this.state.draggedOverIdx===t+1})})))),s.a.createElement(Xl,{innerRef:this.items[e.length],value:this.state.newItem||"",onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class Xl extends s.a.Component{render(){return s.a.createElement("li",{className:$l.a.item,onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&s.a.createElement(ql.a,{className:$l.a.dragButton,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},s.a.createElement(Yl.a,null)),s.a.createElement("input",{ref:this.props.innerRef,className:$l.a.input,type:"text",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&s.a.createElement(jo.a,{"data-cy":"input--string-list__add-btn",onClick:this.props.onAdd,className:$l.a.addScalarListItemBtn},"Add"),this.props.onRemove&&s.a.createElement(jo.a,{"data-cy":"input--string-list__remove-btn",onClick:this.props.onRemove,className:$l.a.closeButton},s.a.createElement(gr.a,null)),this.props.onEnter&&s.a.createElement(Uo.a,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&s.a.createElement(Uo.a,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&s.a.createElement(Uo.a,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&s.a.createElement(Uo.a,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var Jl=Object(So.a)(Ql);class Zl extends s.a.PureComponent{constructor(e){super(e),this.input=s.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{const t=e.currentTarget.value;if(""===t)return void this.setState({value:null});const n=parseFloat(t);this.setState({value:n})};const{initialValue:t}=e,n=null==t?null:parseFloat(""+t);this.state={value:n}}render(){const{value:e}=this.state;return s.a.createElement("input",{"data-cy":"input--number",ref:this.input,className:Bl.a.input,type:"number",value:null==e?"":String(e),placeholder:"null",onChange:this.handleChange})}}var eu=Object(So.a)(Zl);class tu extends s.a.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length,0)].current)||void 0===e||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map(e=>parseInt(e)).filter(e=>!isNaN(e))})}catch(e){}},this.handleChangeItem=(e,t)=>{const{value:n}=this.state,{field:o}=this.props;let r=o.isInt?parseInt(t.currentTarget.value):parseFloat(t.currentTarget.value);if(isNaN(r)&&(r=null),!Array.isArray(n))throw Object(st.a)("NumberListInput.handleChangeItem","Invalid value",{value:n,idx:e,changedItem:r});const i=[...n];return i.splice(e,1,r),this.setState({value:i})},this.handleChangeNewItem=e=>{const{field:t}=this.props;let n=t.isInt?parseInt(e.currentTarget.value):parseFloat(e.currentTarget.value);isNaN(n)&&(n=null),this.setState({newItem:n})},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw Object(st.a)("NumberListInput.handleAddItem","Invalid value",{value:e,newItem:t});this.items.push(s.a.createRef()),this.setState({value:[...e,t||0],newItem:null},()=>{var e,t;null===(e=this.items[this.items.length-1].current)||void 0===e||e.focus(),null===(t=this.items[this.items.length-2].current)||void 0===t||t.scrollIntoView(!1)})},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw Object(st.a)("NumberListInput.handleEnterKeydown","Invalid value",{value:t,idx:e});let n=[...t];n.splice(e+1,0,null),this.items.push(s.a.createRef()),this.setState({value:n,newItem:null},()=>{var t,n,o;null===(t=this.items[e+1].current)||void 0===t||t.focus(),null===(n=this.items[e+1].current)||void 0===n||n.scrollIntoView(!1),null===(o=this.items[e+1].current)||void 0===o||o.scrollIntoView({block:"nearest"})})},this.handleRemoveItem=e=>{var t,n,o,r;const{value:i}=this.state;if(!Array.isArray(i))throw Object(st.a)("NumberListInput.handleRemoveClick","Invalid Value",{value:i,idx:e});this.items.splice(e,1);const s=[...i];s.splice(e,1),null===(n=null===(t=this.items[e-1])||void 0===t?void 0:t.current)||void 0===n||n.focus(),null===(r=null===(o=this.items[e-1])||void 0===o?void 0:o.current)||void 0===r||r.scrollIntoView(),setTimeout(()=>this.setState({value:s}),0)},this.handleTabKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Object(st.a)("NumberListInput.handleTabKeydown","Invalid value",{value:o,idx:e});e===o.length||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e+1].current)||void 0===n||n.focus())},this.handleShiftTabKeydown=(e,t)=>{var n;0===e||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e-1].current)||void 0===n||n.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t,n,o,r;if(!this.draggedItem)return;const{field:i}=this.props,{value:s=[]}=this.state;if(!Array.isArray(s))throw Object(st.a)("NumberListInput.HandleDragEnd","Invalid value",{value:s,idx:e});const a=[...s];let l=i.isInt?parseInt(null!==(n=null===(t=this.draggedItem.current)||void 0===t?void 0:t.value)&&void 0!==n?n:""):parseFloat(null!==(r=null===(o=this.draggedItem.current)||void 0===o?void 0:o.value)&&void 0!==r?r:"");isNaN(l)&&(l=null),this.items.splice(e,1),a.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),a.splice(this.state.draggedOverIdx-1,0,l)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),a.splice(this.state.draggedOverIdx,0,l)),this.draggedItem=null,this.setState({value:a,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw Object(st.a)("NumberListInput.constructor","Invalid initialValue",{initialValue:t});this.state={value:t,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map(()=>s.a.createRef()),this.items.push(s.a.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw Object(st.a)("NumberListInput.render","Invalid value",{value:e});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{"data-cy":"input--number-list",className:$l.a.container},s.a.createElement("input",{type:"text",className:$l.a.input,value:JSON.stringify(e),onChange:this.handleChange}),s.a.createElement("ul",{className:Ro()($l.a.itemContainer,"ag-theme-dark")},s.a.createElement("div",{className:$l.a.itemScrollContainer},s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:0===this.state.draggedOverIdx})}),e.map((e,t)=>s.a.createElement(s.a.Fragment,{key:t},s.a.createElement(nu,{innerRef:this.items[t],value:null===e?"":String(e),invalid:null===e||Number.isNaN(e),onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:this.state.draggedOverIdx===t+1})})))),s.a.createElement(nu,{innerRef:this.items[e.length],value:null===this.state.newItem?"":String(this.state.newItem),invalid:!1,onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class nu extends s.a.Component{render(){return s.a.createElement("li",{className:Ro()($l.a.item,{[$l.a.invalid]:this.props.invalid}),onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&s.a.createElement(ql.a,{className:$l.a.dragButton,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},s.a.createElement(Yl.a,null)),s.a.createElement("input",{ref:this.props.innerRef,className:$l.a.input,type:"number",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&s.a.createElement(jo.a,{"data-cy":"input--number-list__add-btn",onClick:this.props.onAdd,className:$l.a.addScalarListItemBtn},"Add"),this.props.onRemove&&s.a.createElement(jo.a,{"data-cy":"input--number-list__remove-btn",onClick:e=>{var t,n;return null===(n=(t=this.props).onRemove)||void 0===n?void 0:n.call(t,e)},className:$l.a.closeButton},s.a.createElement(gr.a,null)),this.props.onEnter&&s.a.createElement(Uo.a,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&s.a.createElement(Uo.a,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&s.a.createElement(Uo.a,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&s.a.createElement(Uo.a,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var ou=Object(So.a)(tu);class ru extends s.a.PureComponent{constructor(e){super(e),this.input=s.a.createRef(),this.getValue=()=>BigInt(this.state.value),this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{const t=e.currentTarget.value;if(""!==t)try{const e=BigInt(t);this.setState({value:e})}catch(e){}else this.setState({value:null})};const{initialValue:t}=e,n=null==t?null:BigInt(t);this.state={value:n}}render(){const{value:e}=this.state;return s.a.createElement("input",{"data-cy":"input--bigint",ref:this.input,className:Bl.a.input,type:"string",value:null==e?"":e.toString(),placeholder:"null",onChange:this.handleChange})}}var iu=Object(So.a)(ru);class su extends s.a.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>{var e;return null===(e=this.state.value)||void 0===e?void 0:e.map(e=>BigInt(e))},this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length,0)].current)||void 0===e||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map(e=>BigInt(e))})}catch(e){}},this.handleChangeItem=(e,t)=>{const{value:n}=this.state;try{let o=BigInt(t.currentTarget.value);if(!Array.isArray(n))throw Object(st.a)("BigIntListInput.handleChangeItem","Invalid value",{value:n,idx:e,changedItem:o});const r=[...n];return r.splice(e,1,o),this.setState({value:r})}catch(t){}},this.handleChangeNewItem=e=>{try{let t=BigInt(e.currentTarget.value);this.setState({newItem:t})}catch(e){}},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw Object(st.a)("BigIntListInput.handleAddItem","Invalid value",{value:e,newItem:t});this.items.push(s.a.createRef()),this.setState({value:[...e,t||BigInt(0)],newItem:null},()=>{var e,t;null===(e=this.items[this.items.length-1].current)||void 0===e||e.focus(),null===(t=this.items[this.items.length-2].current)||void 0===t||t.scrollIntoView(!1)})},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw Object(st.a)("BigIntListInput.handleEnterKeydown","Invalid value",{value:t,idx:e});let n=[...t];n.splice(e+1,0,null),this.items.push(s.a.createRef()),this.setState({value:n,newItem:null},()=>{var t,n,o;null===(t=this.items[e+1].current)||void 0===t||t.focus(),null===(n=this.items[e+1].current)||void 0===n||n.scrollIntoView(!1),null===(o=this.items[e+1].current)||void 0===o||o.scrollIntoView({block:"nearest"})})},this.handleRemoveItem=e=>{var t,n,o,r;const{value:i}=this.state;if(!Array.isArray(i))throw Object(st.a)("BigIntListInput.handleRemoveClick","Invalid Value",{value:i,idx:e});this.items.splice(e,1);const s=[...i];s.splice(e,1),null===(n=null===(t=this.items[e-1])||void 0===t?void 0:t.current)||void 0===n||n.focus(),null===(r=null===(o=this.items[e-1])||void 0===o?void 0:o.current)||void 0===r||r.scrollIntoView(),setTimeout(()=>this.setState({value:s}),0)},this.handleTabKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Object(st.a)("BigIntListInput.handleTabKeydown","Invalid value",{value:o,idx:e});e===o.length||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e+1].current)||void 0===n||n.focus())},this.handleShiftTabKeydown=(e,t)=>{var n;0===e||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e-1].current)||void 0===n||n.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t,n;if(!this.draggedItem)return;const{value:o=[]}=this.state;if(!Array.isArray(o))throw Object(st.a)("BigIntListInput.HandleDragEnd","Invalid value",{value:o,idx:e});const r=[...o];let i=BigInt(null!==(n=null===(t=this.draggedItem.current)||void 0===t?void 0:t.value)&&void 0!==n?n:0);this.items.splice(e,1),r.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),r.splice(this.state.draggedOverIdx-1,0,i)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),r.splice(this.state.draggedOverIdx,0,i)),this.draggedItem=null,this.setState({value:r,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw Object(st.a)("BigIntListInput.constructor","Invalid initialValue",{initialValue:t});this.state={value:t.map(e=>BigInt(e)),newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map(()=>s.a.createRef()),this.items.push(s.a.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw Object(st.a)("BigIntListInput.render","Invalid value",{value:e});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{"data-cy":"input--bigint-list",className:$l.a.container},s.a.createElement("input",{type:"text",className:$l.a.input,value:e.map(e=>(null==e?void 0:e.toString())||"null"),onChange:this.handleChange}),s.a.createElement("ul",{className:Ro()($l.a.itemContainer,"ag-theme-dark")},s.a.createElement("div",{className:$l.a.itemScrollContainer},s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:0===this.state.draggedOverIdx})}),e.map((e,t)=>s.a.createElement(s.a.Fragment,{key:t},s.a.createElement(au,{innerRef:this.items[t],value:null===e?"":e.toString(),invalid:null===e||Number.isNaN(e),onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:this.state.draggedOverIdx===t+1})})))),s.a.createElement(au,{innerRef:this.items[e.length],value:null===this.state.newItem?"":this.state.newItem.toString(),invalid:!1,onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class au extends s.a.Component{render(){return s.a.createElement("li",{className:Ro()($l.a.item,{[$l.a.invalid]:this.props.invalid}),onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&s.a.createElement(ql.a,{className:$l.a.dragButton,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},s.a.createElement(Yl.a,null)),s.a.createElement("input",{ref:this.props.innerRef,className:$l.a.input,type:"text",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&s.a.createElement(jo.a,{"data-cy":"input--bigint-list__add-btn",onClick:this.props.onAdd,className:$l.a.addScalarListItemBtn},"Add"),this.props.onRemove&&s.a.createElement(jo.a,{"data-cy":"input--bigint-list__remove-btn",onClick:e=>{var t,n;return null===(n=(t=this.props).onRemove)||void 0===n?void 0:n.call(t,e)},className:$l.a.closeButton},s.a.createElement(gr.a,null)),this.props.onEnter&&s.a.createElement(Uo.a,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&s.a.createElement(Uo.a,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&s.a.createElement(Uo.a,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&s.a.createElement(Uo.a,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var lu=Object(So.a)(su),uu=n(56),cu=n.n(uu);class pu extends s.a.Component{constructor(e){super(e),this.input=s.a.createRef(),this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{const{suggestions:t,onChange:n}=this.props,o=e.currentTarget.value,r=t.findIndex(e=>e.toUpperCase().startsWith(o.toUpperCase()));this.setState({phrase:o,highlightIdx:r}),n(t[r]||t[0])},this.handleSuggestionClick=e=>{const{suggestions:t,onChange:n,onSubmit:o}=this.props,r=t[e];n(r),null==o||o(r)},this.handleSubmit=()=>{const{highlightIdx:e}=this.state,{suggestions:t,onChange:n,onSubmit:o}=this.props,r=t[e]||t[0];n(r),null==o||o(r)},this.state={phrase:String(e.value),highlightIdx:0}}render(){const{phrase:e,highlightIdx:t}=this.state,{className:n,style:o,suggestions:r,dataCy:i}=this.props;return s.a.createElement("div",{"data-cy":i,className:Ro()(cu.a.container,n),style:o},s.a.createElement("input",{ref:this.input,type:"text",className:cu.a.input,value:e,onChange:this.handleChange}),s.a.createElement("ul",{className:cu.a.dropdown},r.map((e,n)=>s.a.createElement("li",{key:e,"data-cy":"suggestion",className:Ro()(cu.a.match,{[cu.a.highlight]:t===n}),onClick:()=>this.handleSuggestionClick(n)},e))),s.a.createElement(Uo.a,{target:this.input,keys:"up",onMatch:()=>this.setState({highlightIdx:Math.max(t-1,0)})}),s.a.createElement(Uo.a,{target:this.input,keys:"down",onMatch:()=>this.setState(e=>({highlightIdx:Math.min(e.highlightIdx+1,r.length-1)}))}),s.a.createElement(Uo.a,{target:this.input,preventDefault:!1,stopPropagation:!1,keys:"enter",onMatch:this.handleSubmit}))}}var du=Object(So.a)(pu),hu=n(67),fu=n.n(hu);class gu extends s.a.PureComponent{constructor(e){super(e),this.input=s.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{this.setState({value:"true"===e})},this.handleSubmit=e=>{this.setState({value:"true"===e},()=>{this.props.stopEditing()})},this.state={value:!!e.initialValue}}render(){const{value:e}=this.state;return s.a.createElement(du,{ref:this.input,dataCy:"input--boolean",className:fu.a.input,value:null==e?"":String(e),suggestions:["true","false"],onChange:this.handleChange,onSubmit:this.handleSubmit})}}var vu=Object(So.a)(gu),mu=n(52),yu=n.n(mu);class Cu extends s.a.PureComponent{constructor(e){var t;super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length-1,0)].current)||void 0===e||e.focus())},this.handleChangeItem=(e,t)=>{const{value:n}=this.state;if(!Array.isArray(n))throw Object(st.a)("BooleanListInput.handleChangeItem","Invalid value",{value:n,changedItem:e});const o=[...n];return o.splice(t,1,"true"===e.id),this.setState({value:o})},this.handleChangeNewItem=e=>{this.setState({newItem:e},()=>setTimeout(()=>this.handleAddNewItem(),0))},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(t){if(!Array.isArray(e))throw Object(st.a)("BooleanListInput.handleAddNewItem","Invalid value",{value:e,newItem:t});this.items.push(s.a.createRef()),this.setState({value:[...e,"true"===t.id],newItem:null},()=>{var e,t,n;null===(t=null===(e=this.items[this.items.length-2])||void 0===e?void 0:e.current)||void 0===t||t.focus(),null===(n=this.items[this.items.length-2].current)||void 0===n||n.scrollIntoView(!1)})}},this.handleRemoveItem=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw Object(st.a)("BooleanListInput.handleRemoveClick","Invalid Value",{value:t,idx:e});this.items.splice(e,1);const n=[...t];n.splice(e,1),setTimeout(()=>this.setState({value:n}),0)},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t,n;if(!this.draggedItem)return;const o=null!==(t=this.state.value)&&void 0!==t?t:[];if(!Array.isArray(o))throw Object(st.a)("BooleanListInput.HandleDragEnd","Invalid value",{value:o,idx:e});const r=String(null===(n=this.draggedItem.current)||void 0===n?void 0:n.value),i=[...o];this.items.splice(e,1),i.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),i.splice(this.state.draggedOverIdx-1,0,"true"===r)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),i.splice(this.state.draggedOverIdx,0,"true"===r)),this.draggedItem=null,this.setState({value:i,draggedOverIdx:-1})};const{initialValue:n}=e;if(!Array.isArray(n))throw Object(st.a)("BooleanListInput.constructor","Invalid initialValue",{initialValue:n});this.state={value:n,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0,1)}).map(()=>s.a.createRef()),this.items.push(s.a.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw Object(st.a)("BooleanListInput.render","Invalid value",{value:e});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{"data-cy":"input--boolean-list",className:$l.a.container},s.a.createElement("input",{type:"text",className:$l.a.input,value:JSON.stringify(e),readOnly:!0}),s.a.createElement("ul",{className:Ro()($l.a.itemContainer,yu.a.itemContainer,"ag-theme-dark")},s.a.createElement("div",{className:$l.a.itemScrollContainer},s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:0===this.state.draggedOverIdx})}),e.map((e,t)=>s.a.createElement(s.a.Fragment,{key:t},s.a.createElement(wu,{innerRef:this.items[t],suggestions:[{id:"true",label:"true"},{id:"false",label:"false"}],value:{id:String(e),label:String(e)},invalid:!0!==e&&!1!==e,onChange:e=>this.handleChangeItem(e,t),onRemove:this.handleRemoveItem.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:this.state.draggedOverIdx===t+1})})))),s.a.createElement(wu,{key:e.length,innerRef:this.items[e.length],suggestions:[{id:"",label:""},{id:"true",label:"true"},{id:"false",label:"false"}],value:{id:"",label:""},invalid:!1,onChange:e=>this.handleChangeNewItem(e),onAdd:this.handleAddNewItem,onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class wu extends s.a.Component{render(){return s.a.createElement("li",{className:Ro()($l.a.item,{[$l.a.invalid]:this.props.invalid}),onDragOver:this.props.onDragOver||void 0},this.props.onDragStart&&this.props.onDragEnd&&s.a.createElement(ql.a,{className:$l.a.dragButton,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},s.a.createElement(Yl.a,null)),s.a.createElement(Ri,{innerRef:this.props.innerRef,"data-cy":"input",className:yu.a.itemDropdown,type:"text",nativeSelect:!0,items:this.props.suggestions,selectedItem:this.props.value,onSelect:e=>this.props.onChange(e)}),this.props.onAdd&&s.a.createElement(jo.a,{"data-cy":"input--boolean-list__add-btn",onClick:this.props.onAdd,className:$l.a.addScalarListItemBtn},"Add"),this.props.onRemove&&s.a.createElement(jo.a,{"data-cy":"input--boolean-list__remove-btn",onClick:e=>{var t,n;return null===(n=(t=this.props).onRemove)||void 0===n?void 0:n.call(t,e)},className:$l.a.closeButton},s.a.createElement(gr.a,null)))}}var bu=Object(So.a)(Cu);class Eu extends s.a.PureComponent{constructor(e){super(e),this.input=s.a.createRef(),this.getValue=()=>{const{value:e}=this.state;if(!e)return e;try{return new Date(e).toISOString()}catch(t){return e}},this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{const{field:t}=this.props,n=e.currentTarget.value;t.isRequired||""!==n?this.setState({value:n}):this.setState({value:null})};const{initialValue:t}=e,n=null==t?null:t;this.state={value:n}}render(){const{value:e}=this.state;return s.a.createElement("input",{"data-cy":"input--datetime",ref:this.input,className:Bl.a.input,type:"text",value:null==e?"":String(e),placeholder:"null",onChange:this.handleChange})}}var _u=Object(So.a)(Eu),Ou=n(93),Ru=n.n(Ou);class Su extends s.a.PureComponent{constructor(e){var t;super(e),this.input=s.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=(e=!1)=>{var t;const{api:n,field:o}=this.props,r=(null===(t=this.input.current)||void 0===t?void 0:t.innerText)||"";if(!o.isRequired&&""===r)return this.setState({value:null});try{const t=JSON.parse(r);if(o.isList&&!Array.isArray(t))throw new Error;return this.setState({value:t},()=>e&&(null==n?void 0:n.stopEditing()))}catch(t){return this.setState({value:r},()=>e&&(null==n?void 0:n.stopEditing()))}},this.state={value:null!==(t=e.initialValue)&&void 0!==t?t:null}}render(){const{initialValue:e}=this.props;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{"data-cy":"input--json",ref:this.input,contentEditable:!0,className:Ru.a.input,dangerouslySetInnerHTML:{__html:"string"==typeof e?e:JSON.stringify(e)},onInput:e=>this.handleChange()}),s.a.createElement(Uo.a,{keys:"enter",target:this.input,preventDefault:!1,onMatch:()=>this.handleChange()}),s.a.createElement(Uo.a,{keys:"cmd+enter",target:this.input,onMatch:()=>this.handleChange(!0)}))}}var Tu=Object(So.a)(Su);class Du extends s.a.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length,0)].current)||void 0===e||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map(e=>String(e))})}catch(e){}},this.handleChangeItem=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Object(st.a)("JsonListInput.handleChangeItem","Invalid value",{value:o,idx:e});let r=null!==(n=t.currentTarget.value)&&void 0!==n?n:"";try{r=JSON.parse(r)}catch(t){}const i=[...o];return i.splice(e,1,r),this.setState({value:i})},this.handleChangeNewItem=e=>{var t;let n=null!==(t=e.currentTarget.value)&&void 0!==t?t:"";try{n=JSON.parse(n)}catch(e){}this.setState({newItem:n})},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw Object(st.a)("JsonListInput.handleAddItem","Invalid value",{value:e,newItem:t});this.items.push(s.a.createRef()),this.setState({value:[...e,t||""],newItem:null},()=>{var e,t;null===(e=this.items[this.items.length-1].current)||void 0===e||e.focus(),null===(t=this.items[this.items.length-2].current)||void 0===t||t.scrollIntoView(!1)})},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw Object(st.a)("JsonListInput.handleEnterKeydown","Invalid value",{value:t,idx:e});let n=[...t];n.splice(e+1,0,""),this.items.push(s.a.createRef()),this.setState({value:n,newItem:null},()=>{var t,n,o;null===(t=this.items[e+1].current)||void 0===t||t.focus(),null===(n=this.items[e+1].current)||void 0===n||n.scrollIntoView(!1),null===(o=this.items[e+1].current)||void 0===o||o.scrollIntoView({block:"nearest"})})},this.handleRemoveItem=e=>{var t,n,o,r;const{value:i}=this.state;if(!Array.isArray(i))throw Object(st.a)("JsonListInput.handleRemoveClick","Invalid Value",{value:i,idx:e});const s=[...i];s.splice(e,1),this.items.splice(e,1),null===(n=null===(t=this.items[e-1])||void 0===t?void 0:t.current)||void 0===n||n.focus(),null===(r=null===(o=this.items[e-1])||void 0===o?void 0:o.current)||void 0===r||r.scrollIntoView(),setTimeout(()=>this.setState({value:s}),0)},this.handleTabKeydown=(e,t)=>{var n;const{value:o}=this.state;if(!Array.isArray(o))throw Object(st.a)("JsonListInput.handleTabKeydown","Invalid value",{value:o,idx:e});e===o.length||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e+1].current)||void 0===n||n.focus())},this.handleShiftTabKeydown=(e,t)=>{var n;0===e||(t.preventDefault(),t.stopPropagation(),null===(n=this.items[e-1].current)||void 0===n||n.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t,n;if(!this.draggedItem)return;const{value:o=[]}=this.state;if(!Array.isArray(o))throw Object(st.a)("JsonListInput.HandleDragEnd","Invalid value",{value:o,idx:e});let r=null!==(n=null===(t=this.draggedItem.current)||void 0===t?void 0:t.value)&&void 0!==n?n:"";const i=[...o];try{r=JSON.parse(r)}catch(e){}this.items.splice(e,1),i.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),i.splice(this.state.draggedOverIdx-1,0,r)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),i.splice(this.state.draggedOverIdx,0,r)),this.draggedItem=null,this.setState({value:i,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw Object(st.a)("JsonListInput.constructor","Invalid initialValue",{initialValue:t});this.state={value:t,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map(()=>s.a.createRef()),this.items.push(s.a.createRef())}render(){const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw Object(st.a)("JsonListInput.render","Invalid value",{value:e});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{"data-cy":"input--json-list",className:$l.a.container},s.a.createElement("input",{type:"text",className:$l.a.input,value:JSON.stringify(e),onChange:this.handleChange}),s.a.createElement("ul",{className:Ro()($l.a.itemContainer,"ag-theme-dark")},s.a.createElement("div",{className:$l.a.itemScrollContainer},s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:0===this.state.draggedOverIdx})}),e.map((e,t)=>s.a.createElement(s.a.Fragment,{key:t},s.a.createElement(Pu,{innerRef:this.items[t],value:e,invalid:"string"==typeof e,onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:this.state.draggedOverIdx===t+1})})))),s.a.createElement(Pu,{innerRef:this.items[e.length],value:t,invalid:!1,onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class Pu extends s.a.Component{render(){return s.a.createElement("li",{className:Ro()($l.a.item,{[$l.a.invalid]:this.props.invalid}),onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&s.a.createElement(ql.a,{className:$l.a.dragButton,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},s.a.createElement(Yl.a,null)),s.a.createElement("input",{ref:this.props.innerRef,className:$l.a.input,type:"text",value:null===this.props.value?"":"string"==typeof this.props.value?this.props.value:JSON.stringify(this.props.value),tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&s.a.createElement(jo.a,{"data-cy":"input--json-list__add-btn",onClick:this.props.onAdd,className:$l.a.addScalarListItemBtn},"Add"),this.props.onRemove&&s.a.createElement(jo.a,{"data-cy":"input--json-list__remove-btn",onClick:e=>{var t,n;return null===(n=(t=this.props).onRemove)||void 0===n?void 0:n.call(t,e)},className:$l.a.closeButton},s.a.createElement(gr.a,null)),this.props.onEnter&&s.a.createElement(Uo.a,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&s.a.createElement(Uo.a,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&s.a.createElement(Uo.a,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&s.a.createElement(Uo.a,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var Iu=Object(So.a)(Du),Au=n(94),Nu=n(95);class xu extends s.a.PureComponent{constructor(e){var t;super(e),this.input=s.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null===(e=this.input.current)||void 0===e||e.focus()},this.handleChange=e=>{this.setState({value:e})},this.handleSubmit=e=>{this.setState({value:e},()=>{this.props.stopEditing()})},this.state={value:null!==(t=e.initialValue)&&void 0!==t?t:null}}render(){const{value:e}=this.state,{field:t}=this.props;return s.a.createElement(du,{ref:this.input,dataCy:"input--enum",className:fu.a.input,value:null==e?"":String(e),suggestions:t.typeAsEnum.values,onChange:this.handleChange,onSubmit:this.handleSubmit})}}var Fu=Object(So.a)(xu);class Lu extends s.a.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null===(e=this.items[Math.max(t.length-1,0)].current)||void 0===e||e.focus())},this.handleChangeItem=(e,t)=>{const{value:n}=this.state,o=String(e.id);if(!Array.isArray(n))throw Object(st.a)("EnumListInput.handleChangeItem","Invalid value",{value:n,changedItem:o});const r=[...n];return r.splice(t,1,o),this.setState({value:r})},this.handleChangeNewItem=e=>{this.setState({newItem:e},()=>setTimeout(()=>this.handleAddNewItem(),0))},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(t){if(!Array.isArray(e))throw Object(st.a)("EnumListInput.handleAddNewItem","Invalid value",{value:e,newItem:t});this.items.push(s.a.createRef()),this.setState({value:[...e,String(t.id)],newItem:null},()=>{var e,t,n;null===(t=null===(e=this.items[this.items.length-2])||void 0===e?void 0:e.current)||void 0===t||t.focus(),null===(n=this.items[this.items.length-2].current)||void 0===n||n.scrollIntoView(!1)})}},this.handleRemoveItem=e=>{var t,n,o,r;const{value:i}=this.state;if(!Array.isArray(i))throw Object(st.a)("EnumListInput.handleRemoveClick","Invalid Value",{value:i,idx:e});this.items.splice(e,1);const s=[...i];s.splice(e,1),null===(n=null===(t=this.items[e-1])||void 0===t?void 0:t.current)||void 0===n||n.focus(),null===(r=null===(o=this.items[e-1])||void 0===o?void 0:o.current)||void 0===r||r.scrollIntoView(),setTimeout(()=>this.setState({value:s}),0)},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t;if(!this.draggedItem)return;const{value:n=[]}=this.state;if(!Array.isArray(n))throw Object(st.a)("EnumListInput.HandleDragEnd","Invalid value",{value:n,idx:e});const o=String(null===(t=this.draggedItem.current)||void 0===t?void 0:t.value),r=[...n];this.items.splice(e,1),r.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),r.splice(this.state.draggedOverIdx-1,0,o)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),r.splice(this.state.draggedOverIdx,0,o)),this.draggedItem=null,this.setState({value:r,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw Object(st.a)("EnumListInput.constructor","Invalid initialValue",{initialValue:t});this.state={value:t,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map(()=>s.a.createRef()),this.items.push(s.a.createRef())}render(){const{value:e}=this.state,{field:t}=this.props;if(!Array.isArray(e))throw Object(st.a)("EnumListInput.render","Invalid value",{value:e});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{"data-cy":"input--enum-list",className:$l.a.container},s.a.createElement("input",{type:"text",className:$l.a.input,value:JSON.stringify(e),readOnly:!0}),s.a.createElement("ul",{className:Ro()($l.a.itemContainer,yu.a.itemContainer,"ag-theme-dark")},s.a.createElement("div",{className:$l.a.itemScrollContainer},s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:0===this.state.draggedOverIdx})}),e.map((e,n)=>s.a.createElement(s.a.Fragment,{key:n},s.a.createElement(Mu,{innerRef:this.items[n],suggestions:t.typeAsEnum.values.map(e=>({id:e,label:e})),value:{id:String(e),label:String(e)},onChange:e=>this.handleChangeItem(e,n),onRemove:this.handleRemoveItem.bind(this,n),onDragStart:this.handleDragStart.bind(this,n),onDragEnd:this.handleDragEnd.bind(this,n),onDragOver:this.handleDragOver.bind(this,n)}),s.a.createElement("div",{className:Ro()($l.a.separator,{[$l.a.draggedOver]:this.state.draggedOverIdx===n+1})})))),s.a.createElement(Mu,{key:e.length,innerRef:this.items[e.length],suggestions:[{id:"",label:""},...t.typeAsEnum.values.map(e=>({id:e,label:e}))],value:{id:"",label:""},onChange:e=>this.handleChangeNewItem(e),onAdd:this.handleAddNewItem.bind(this),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class Mu extends s.a.Component{render(){return s.a.createElement("li",{className:$l.a.item,onDragOver:this.props.onDragOver||void 0},this.props.onDragStart&&this.props.onDragEnd&&s.a.createElement(ql.a,{className:$l.a.dragButton,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},s.a.createElement(Yl.a,null)),s.a.createElement(Ri,{innerRef:this.props.innerRef,"data-cy":"input",className:yu.a.itemDropdown,type:"text",nativeSelect:!0,items:this.props.suggestions,selectedItem:this.props.value,onSelect:e=>this.props.onChange(e)}),this.props.onAdd&&s.a.createElement(jo.a,{"data-cy":"input--enum-list__add-btn",onClick:this.props.onAdd,className:$l.a.addScalarListItemBtn},"Add"),this.props.onRemove&&s.a.createElement(jo.a,{"data-cy":"input--enum-list__remove-btn",onClick:e=>{var t,n;return null===(n=(t=this.props).onRemove)||void 0===n?void 0:n.call(t,e)},className:$l.a.closeButton},s.a.createElement(gr.a,null)))}}var ku=Object(So.a)(Lu),Gu=n(51),Vu=n(63),ju=n.n(Vu);class Wu extends i.Component{constructor(e){super(e),this.handleChangeSearch=e=>{const{field:t,script:n}=this.props,o=Object.values(n.where.values).find(e=>Object(xe.last)(e.fieldIds)===t.id);if(!o)throw Object(st.a)("TableCellHeaderWithSearch.handleChangeSearch","Unable to find script `where` to update",{field:t.serialize(),script:n.serialize(),where:n.where.values});o.update({enabled:!0,value:e.currentTarget.value}),this.handleSearchDebounced()},this.handleSearch=async()=>{this.props.onSearch()},this.handleSearchDebounced=Object(xe.debounce)(this.handleSearch,500,{leading:!1,trailing:!0})}render(){var e,t;const{script:n,field:o}=this.props,r=Object.values(n.where.values).find(e=>Object(xe.last)(e.fieldIds)===o.id);return i.createElement("div",{"data-cy":"header-field-search",className:ju.a.container},i.createElement("div",{className:ju.a.title},o.name),r&&((null===(e=Object(xe.last)(r.fields))||void 0===e?void 0:e.isScalar)||(null===(t=Object(xe.last)(r.fields))||void 0===t?void 0:t.isEnum))?i.createElement("input",{className:ju.a.input,type:"text",placeholder:`search ${o.name}...`,value:r.value||"",onChange:this.handleChangeSearch}):i.createElement("div",{className:ju.a.inputPlaceholder}))}}var Hu=Object(So.a)(Wu),Bu=n(25),zu=n.n(Bu);class Uu extends s.a.Component{constructor(e){var t;if(super(e),this.container=s.a.createRef(),this.table=s.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{},this.afterGuiAttached=async()=>{if(!this.container.current||!this.table.current)return;const{api:e,node:t,getTableDimensions:n}=this.props;if(!e)return;const o=n(),r=this.container.current.getBoundingClientRect(),i=t.rowHeight-tc;this.table.current.style.height=i+"px",this.table.current.style.width=o.width-32-20+"px",this.table.current.style.left=o.left-r.left+32+10+"px"},this.handleGridReady=async e=>{const{value:t}=this.state,{field:n}=this.props;this.gridApi=e.api,await this.loadedScript.run();const o=t?Gt(n.typeAsModel.id,t):null,r=Gn.get(o);this.gridApi.setRowData([...r?[r]:[],...this.loadedScript.records.filter(e=>e.id!==o)]),this.selectConnectedRecords()},this.handleScroll=async e=>{const{node:t}=this.props;if(this.gridApi.stopEditing(),"horizontal"===e.direction)return;if(this.loadedScript.recordIds.length>=(this.loadedScript.model.count||0))return;const n=t.rowHeight-tc,o=this.loadedScript.pagination.take;!this.loadedScript.running&&e.top+n>=tc*(o-20)&&(this.gridApi.applyTransaction({add:await this.loadedScript.loadMore()}),this.selectConnectedRecords())},this.selectConnectedRecords=async()=>{var e;const{value:t}=this.state,{field:n}=this.props;if(null===t)return;const o=Gt(n.typeAsModel.id,t);null===(e=this.gridApi.getRowNode(o))||void 0===e||e.setSelected(!0,!0,!0)},this.handleSelectionChanged=e=>{var t;const{value:n}=this.state,{field:o}=this.props,r=n&&Gt(o.typeAsModel.id,n),i=e.api.getSelectedNodes().map(e=>e.id)[0]||null;i?r!==i&&(null===(t=this.gridApi.getRowNode(i))||void 0===t||t.setSelected(!0,!0),this.setState({value:Gn.get(i).value})):this.setState({value:null})},this.handleSearch=async()=>{const{value:e}=this.state,{field:t}=this.props;if(await this.loadedScript.run(),!!Object.values(this.loadedScript.where.values).find(e=>null!==e.value&&""!==e.value))this.gridApi.setRowData(this.loadedScript.records);else{const n=e?Gt(t.typeAsModel.id,e):null;this.gridApi.setRowData([...e?[Gn.get(n)]:[],...this.loadedScript.records.filter(e=>e.id!==n)])}this.selectConnectedRecords()},this.handleClickRelation=()=>{var e;null===(e=this.props.api)||void 0===e||e.stopEditing()},this.handleRowDoubleClicked=e=>{this.handleSelectionChanged(e),this.props.stopEditing()},this.handleViewConnections=()=>{const{field:e}=this.props,{value:t}=this.state;if(null===t)return;if(!e.typeAsModel)return;const n=e.typeAsModel,o=t?Gt(e.typeAsModel.id,t):null,r=Gn.get(o);if(!r)return;const i=ho.add({modelId:n.id,preview:!1});n.uniqueIdentifiers.map(e=>{i.session.script.where.add({fieldIds:[e.id],operation:"equals",value:r.value[e.name]})}),ho.switch({id:i.id})},!e.field.typeAsModel)throw Object(st.a)("RelationInput.constructor","Invalid field.typeAsModel",{field:e.field.serialize()});this.state={value:null!==(t=e.initialValue)&&void 0!==t?t:null},this.loadedScript=io.add({name:null,frozen:!0,modelId:e.field.typeAsModel.id,fieldIds:e.field.typeAsModel.fieldIds},{skipPersist:!0}),this.loadedScript.fields.forEach(e=>{e.isScalar&&this.loadedScript.where.add({fieldIds:[e.id],operation:e.isInt||e.isFloat||e.isDecimal?"equals":"contains",value:null})})}componentWillUnmount(){var e,t;null===(e=this.props.api)||void 0===e||e.resetRowHeights(),null===(t=this.props.api)||void 0===t||t.onRowHeightChanged()}render(){const{value:e}=this.state,{field:t}=this.props,n=t.typeAsModel.fields;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{ref:this.container,className:zu.a.container},s.a.createElement(Gu.a,{type:t.type,isNull:!e,isPressed:!0,onClick:this.handleClickRelation})),s.a.createElement("div",{"data-cy":"input--relation",ref:this.table,className:Ro()(zu.a.table,"ag-theme-relations")},s.a.createElement(al.AgGridReact,{rowSelection:"single",getRowNodeId:e=>e.id,suppressCellSelection:!0,headerHeight:64,frameworkComponents:{TableCellRenderer:Wl.a,TableCellHeaderWithSearch:Hu,TableEmptyOverlay:pl},onGridReady:this.handleGridReady,onBodyScroll:this.handleScroll,onSelectionChanged:this.handleSelectionChanged,noRowsOverlayComponent:"TableEmptyOverlay"},s.a.createElement(al.AgGridColumn,{colId:"checkbox",headerName:"",editable:!1,resizable:!1,sortable:!1,pinned:!0,suppressNavigable:!0,suppressMovable:!0,maxWidth:32,checkboxSelection:!0}),n.map(e=>s.a.createElement(al.AgGridColumn,{key:e.id,editable:!1,resizable:!1,sortable:!1,suppressMovable:!0,headerComponent:"TableCellHeaderWithSearch",headerComponentParams:{field:e,script:this.loadedScript,onSearch:this.handleSearch},cellRenderer:"TableCellRenderer",cellRendererParams:{field:e}}))),s.a.createElement("div",{className:zu.a.footer},s.a.createElement("button",{"data-cy":"open-in-new-tab",className:Ro()(zu.a.footerBtn,{[zu.a.disabled]:null===e}),onClick:this.handleViewConnections},"Open in new tab"))))}}var qu=Object(So.a)(Uu);class Yu extends s.a.Component{constructor(e){if(super(e),this.container=s.a.createRef(),this.table=s.a.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{},this.afterGuiAttached=async()=>{if(!this.container.current||!this.table.current)return;const{api:e,node:t,getTableDimensions:n}=this.props;if(!e)return;const o=n(),r=this.container.current.getBoundingClientRect(),i=t.rowHeight-tc;this.table.current.style.height=i+"px",this.table.current.style.width=o.width-32-20+"px",this.table.current.style.left=o.left-r.left+32+10+"px"},this.handleGridReady=async e=>{const{value:t=[]}=this.state,{field:n}=this.props;this.gridApi=e.api,await this.loadedScript.run();const o=t.map(e=>Gt(n.typeAsModel.id,e));this.gridApi.setRowData([...o.map(e=>Gn.get(e)),...this.loadedScript.records.filter(e=>!o.includes(e.id))]),this.selectConnectedRecords()},this.handleScroll=async e=>{const{value:t=[]}=this.state,{node:n,field:o}=this.props;if("horizontal"===e.direction)return;if(this.loadedScript.recordIds.length>=(this.loadedScript.model.count||0))return;const r=!!Object.values(this.loadedScript.where.values).find(e=>{var t;return e.id!==(null===(t=this.whereFilterThatFetchesUnconnectedRecords)||void 0===t?void 0:t.id)&&null!==e.value&&""!==e.value}),i=n.rowHeight-tc,s=(r?0:t.length)+this.loadedScript.pagination.take;if(!this.loadedScript.running&&e.top+i>=tc*(s-20)){const e=await this.loadedScript.loadMore(),n=t.map(e=>Gt(o.typeAsModel.id,e));this.gridApi.applyTransaction({add:e.filter(e=>!n.includes(e.id))}),this.selectConnectedRecords()}},this.selectConnectedRecords=async()=>{const{value:e=[]}=this.state,{field:t}=this.props,n=e.map(e=>Gt(t.typeAsModel.id,e));this.selectedRecordIds=[],this.gridApi.forEachNode(e=>{n.includes(e.id)&&(e.setSelected(!0,!1,!0),this.selectedRecordIds.push(e.id))})},this.handleSelectionChanged=()=>{var e,t;const{value:n=[]}=this.state,{field:o}=this.props,r=n.map(e=>Gt(o.typeAsModel.id,e)),i=this.selectedRecordIds,s=this.gridApi.getSelectedNodes().map(e=>e.id);if(Object(xe.isEqual)(i,s))return;let a;if(i.length>s.length){const t=Object(xe.difference)(i,s);this.selectedRecordIds=this.selectedRecordIds.filter(e=>e!==t[0]),null===(e=this.gridApi.getRowNode(t[0]))||void 0===e||e.setSelected(!1),a=r.filter(e=>e!==t[0])}else{const e=Object(xe.difference)(s,i);this.selectedRecordIds.push(e[0]),null===(t=this.gridApi.getRowNode(e[0]))||void 0===t||t.setSelected(!0),a=r.concat([e[0]])}this.setState({value:a.map(e=>Gn.get(e).value)})},this.handleClickRelation=()=>{var e;null===(e=this.props.api)||void 0===e||e.stopEditing()},this.handleSearch=async()=>{var e,t;const{value:n=[]}=this.state,{field:o}=this.props,r=!!Object.values(this.loadedScript.where.values).find(e=>{var t;return e.id!==(null===(t=this.whereFilterThatFetchesUnconnectedRecords)||void 0===t?void 0:t.id)&&null!==e.value&&""!==e.value});if(r?null===(e=this.whereFilterThatFetchesUnconnectedRecords)||void 0===e||e.update({enabled:!1}):null===(t=this.whereFilterThatFetchesUnconnectedRecords)||void 0===t||t.update({enabled:!0}),await this.loadedScript.run(),r)this.gridApi.setRowData(this.loadedScript.records);else{const e=n.map(e=>Gt(o.typeAsModel.id,e));this.gridApi.setRowData([...e.map(e=>Gn.get(e)),...this.loadedScript.records.filter(t=>!e.includes(t.id))])}this.selectConnectedRecords()},this.handleSkipToUnconnected=()=>{const{value:e=[]}=this.state,{field:t}=this.props,n=e.length-1;if(-1===n)return;if(!t.typeAsModel)return;const o=Gn.get(Gt(t.typeAsModel.id,e[n]));if(!o)return;const r=this.gridApi.getRowNode(o.id);this.gridApi.ensureNodeVisible(r,"top")},this.handleViewConnections=()=>{const{field:e,node:t}=this.props,{value:n=[]}=this.state;if(0===n.length)return;if(!e.isRelation||!e.typeAsModel)return;const o=Gn.get(t.id);if(!o)return;const r=e.typeAsModel,i=r.fields.find(t=>t.isRelation&&t.relationName===e.relationName);if(!i)return;const s=o.model.uniqueIdentifiers[0],a=ho.add({modelId:r.id,preview:!1});a.session.script.where.add({fieldIds:[i.id,s.id],operation:"equals",value:String(o.value[s.name])}),ho.switch({id:a.id})},!e.field.typeAsModel)throw Object(st.a)("RelationListInput.constructor","Invalid field.typeAsModel",{field:e.field.serialize()});const{initialValue:t}=e;this.state={value:null!=t?t:[]},this.loadedScript=io.add({name:null,frozen:!0,modelId:e.field.typeAsModel.id,fieldIds:e.field.typeAsModel.fieldIds},{skipPersist:!0}),this.loadedScript.fields.forEach(e=>{e.isScalar&&this.loadedScript.where.add({fieldIds:[e.id],operation:e.isInt||e.isFloat||e.isDecimal?"equals":"contains",value:null})});const n=e.field.typeAsModel,o=Gn.get(e.node.id),r=n.fields.find(t=>t.isRelation&&t.relationName===e.field.relationName);if(n&&o&&r&&o.isCommitted){const e=JSON.stringify(o.model.uniqueIdentifiers.reduce((e,t)=>(e[t.name]=o.value[t.name],e),{}));this.whereFilterThatFetchesUnconnectedRecords=this.loadedScript.where.add({fieldIds:[r.id],operation:"equals",value:r.isList?`{ none: ${e} }`:`{ NOT: ${e} }`})}else this.whereFilterThatFetchesUnconnectedRecords=null;this.selectedRecordIds=[]}componentWillUnmount(){var e,t;null===(e=this.props.api)||void 0===e||e.resetRowHeights(),null===(t=this.props.api)||void 0===t||t.onRowHeightChanged()}render(){const{value:e=[]}=this.state,{field:t}=this.props,n=t.typeAsModel.fields;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{ref:this.container,className:zu.a.container},s.a.createElement(Gu.a,{type:t.type,isList:!0,count:e.length,isNull:!1,isPressed:!0,onClick:this.handleClickRelation})),s.a.createElement("div",{"data-cy":"input--relation-list",ref:this.table,className:Ro()(zu.a.table,"ag-theme-relations")},s.a.createElement(al.AgGridReact,{rowSelection:"multiple",getRowNodeId:e=>e.id,suppressCellSelection:!0,headerHeight:64,frameworkComponents:{TableCellRenderer:Wl.a,TableCellHeaderWithSearch:Hu,TableEmptyOverlay:pl},rowMultiSelectWithClick:!0,onGridReady:this.handleGridReady,onBodyScroll:this.handleScroll,onSelectionChanged:this.handleSelectionChanged,noRowsOverlayComponent:"TableEmptyOverlay"},s.a.createElement(al.AgGridColumn,{colId:"checkbox",headerName:"",editable:!1,resizable:!1,sortable:!1,pinned:!0,suppressNavigable:!0,maxWidth:32,checkboxSelection:!0}),n.map(e=>s.a.createElement(al.AgGridColumn,{key:e.id,editable:!1,resizable:!1,sortable:!1,suppressMovable:!0,headerComponent:"TableCellHeaderWithSearch",headerComponentParams:{field:e,script:this.loadedScript,onSearch:this.handleSearch},cellRenderer:"TableCellRenderer",cellRendererParams:{field:e}}))),s.a.createElement("div",{className:zu.a.footer},s.a.createElement("button",{"data-cy":"open-in-new-tab",className:Ro()(zu.a.footerBtn,{[zu.a.disabled]:0===e.length}),onClick:this.handleViewConnections},"Open in new tab"),s.a.createElement("button",{className:zu.a.footerBtn,onClick:this.handleSkipToUnconnected},"Skip to unconnected records"))))}}var Ku=Object(So.a)(Yu),$u=n(71),Qu=n.n($u);class Xu extends s.a.Component{constructor(e){super(e),this.container=s.a.createRef(),this.input=s.a.createRef(),this.afterGuiAttached=()=>{var e,t,n;const{api:o,node:r,field:i,resizeRowForRelation:s}=this.props;this.stopEditingImmediately?null==o||o.stopEditing():(s(r,i),null===(t=null===(e=this.input.current)||void 0===e?void 0:e.afterGuiAttached)||void 0===t||t.call(e),null===(n=this.input.current)||void 0===n||n.focus())},this.getValue=()=>{var e,t;return null===(t=null===(e=this.input.current)||void 0===e?void 0:e.getValue)||void 0===t?void 0:t.call(e)},this.isPopup=()=>!0,this.handleClickOutside=e=>{var t,n;(null===(t=this.container.current)||void 0===t?void 0:t.contains(e.target))||null===(n=this.props.api)||void 0===n||n.stopEditing()};const{node:{data:t},field:n}=e,o=t;this.stopEditingImmediately=!1,8===e.keyPress||127===e.keyPress?(this.initialValue=n.lowestValidValue,this.stopEditingImmediately=!0):e.charPress?e.field.isScalar&&!e.field.isList&&(this.initialValue=e.charPress):this.initialValue=o.value[n.name]}componentDidMount(){document.addEventListener("click",this.handleClickOutside)}componentWillUnmount(){document.removeEventListener("click",this.handleClickOutside)}render(){var e,t;const{node:{data:n},columnApi:o,column:r,field:i}=this.props,a=n,l=null!==(t=null===(e=o.getColumnState().find(e=>e.colId===r.getColId()))||void 0===e?void 0:e.width)&&void 0!==t?t:200,u=a.invalidFields.find(e=>e.field.id===i.id);return s.a.createElement("div",{ref:this.container,className:Ro()(Qu.a.container,{[Qu.a.invalid]:!!u}),style:{width:l}},i.isString&&(i.isList?s.a.createElement(Jl,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(Ul,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),(i.isInt||i.isFloat||i.isDecimal)&&(i.isList?s.a.createElement(ou,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(eu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),i.isBigInt&&(i.isList?s.a.createElement(lu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(iu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),i.isBoolean&&(i.isList?s.a.createElement(bu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(vu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),i.isDateTime&&(i.isList?s.a.createElement(Jl,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(_u,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),i.isJson&&(i.isList?s.a.createElement(Iu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(Tu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),i.isBytes&&(i.isList?s.a.createElement(Nu.a,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(Au.a,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),i.isEnum&&(i.isList?s.a.createElement(ku,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(Fu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),i.isRelation&&(i.isList?s.a.createElement(Ku,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue})):s.a.createElement(qu,Object.assign({ref:this.input},this.props,{initialValue:this.initialValue}))),u&&s.a.createElement("div",{className:Qu.a.phantom},u.reason))}}var Ju=Object(So.a)(Xu),Zu=n(49),ec=n.n(Zu);const tc=32;class nc extends s.a.Component{constructor(e){super(e),this.table=s.a.createRef(),this.recordOrder=new Map,this.reactionDisposers=[],this.focus=()=>{var e;null===(e=this.table.current)||void 0===e||e.focus()},this.refresh=()=>{this.loadGridDataDebounced()},this.selectRows=(e=[])=>{this.gridApi.deselectAll(),e.forEach(e=>{var t,n;null===(n=null===(t=this.gridApi)||void 0===t?void 0:t.getRowNode(e))||void 0===n||n.setSelected(!0)})},this.deleteSelectedRows=()=>{var e;const t=null===(e=ho.activeTab)||void 0===e?void 0:e.sessionId;t&&this.gridApi.getSelectedNodes().map(e=>Gn.get(e.id)).filter(e=>!!e).forEach(e=>In.add({type:"delete",recordId:e.id,sessionId:t,value:{}}))},this.getDimensions=()=>{var e;return null===(e=this.table.current)||void 0===e?void 0:e.getBoundingClientRect()},this.resizeRowForRelation=(e,t)=>{if(!t.typeAsModel)return!1;const n=this.getDimensions();if(!n)return;const o=2*tc,r=64+(n.height-4*tc-64-15-36)+15+36,i=64+o+15+36,s=64+tc*(t.typeAsModel.count||0)+15+36,a=Math.min(Math.max(i,s),r);e.setRowHeight(tc+a),this.gridApi.onRowHeightChanged(),this.gridApi.ensureNodeVisible(e,"top")},this.loadGridData=async()=>{var e;const t=null===(e=ho.activeTab)||void 0===e?void 0:e.session;t&&t.isScript&&(0!==t.script.model.count||0!==t.script.recordIds.length?(this.gridApi.showLoadingOverlay(),await t.script.run(),this.gridApi.hideOverlay()):this.gridApi.showNoRowsOverlay())},this.configureGridColumns=()=>{var e;const t=null===(e=ho.activeTab)||void 0===e?void 0:e.session;t&&t.isScript&&(this.gridApi.stopEditing(),this.gridApi.setColumnDefs([{colId:"checkbox",headerName:"",editable:!1,resizable:!1,sortable:!1,pinned:!0,suppressMovable:!0,maxWidth:32,checkboxSelection:!0,headerCheckboxSelection:!0},...t.script.model.fields.map(e=>({colId:e.id,headerName:e.name,editable:!0,resizable:!0,sortable:!0,hide:!t.script.fieldIds.includes(e.id),valueGetter:t=>t.data.value[e.name],valueSetter:t=>this.handleCellValueChanged(t,e),comparator:(e,t,n,o,r)=>(this.recordOrder.get(n.id)-this.recordOrder.get(o.id)||0)*(r?-1:1),headerComponent:"TableCellHeader",headerComponentParams:{field:e,script:t.script},cellRenderer:"TableCellRenderer",cellRendererParams:{field:e,resizeRowForRelation:this.resizeRowForRelation},cellClassRules:{[ec.a.tableCell]:()=>!0,[ec.a.dirty]:({data:t})=>t.dirtyFieldNames.includes(e.name),[ec.a.invalid]:({data:t})=>!!t.invalidFields.find(t=>t.field.id===e.id),[ec.a.empty]:({data:t})=>void 0===t.value[e.name]||null===t.value[e.name]},cellEditor:"TableCellEditor",cellEditorParams:{field:e,sessionId:t.id,getTableDimensions:this.getDimensions,resizeRowForRelation:this.resizeRowForRelation}}))]),this.gridApi.ensureColumnVisible(t.script.model.fieldIds[0]))},this.configureReactions=()=>{this.disposeReactions();let e=Object(u.computed)(()=>{var e;return[ho.activeTab,null===(e=ho.activeTab)||void 0===e?void 0:e.session]}).observe(()=>{this.configureGridColumns(),this.loadGridDataDebounced()});this.reactionDisposers.push(e),e=Object(u.computed)(()=>{var e,t,n,o,r;return(null===(t=null===(e=ho.activeTab)||void 0===e?void 0:e.session)||void 0===t?void 0:t.isScript)?null===(r=null===(o=null===(n=ho.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.script)||void 0===r?void 0:r.fields:[]}).observe(({oldValue:e=[],newValue:t=[]})=>{var n,o;if(!(null===(o=null===(n=ho.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.isScript))return;let r=[],i=[];const s=new Map;e.forEach(e=>s.set(e.id,e));const a=new Map;t.forEach(e=>a.set(e.id,e)),a.forEach((e,t)=>{s.has(t)||r.push(e),s.delete(t)}),s.forEach(e=>i.push(e)),r.forEach(e=>this.columnApi.setColumnVisible(e.id,!0)),i.forEach(e=>this.columnApi.setColumnVisible(e.id,!1))}),this.reactionDisposers.push(e),e=Object(u.computed)(()=>{var e,t,n,o,r;return(null===(t=null===(e=ho.activeTab)||void 0===e?void 0:e.session)||void 0===t?void 0:t.isScript)?null===(r=null===(o=null===(n=ho.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.script)||void 0===r?void 0:r.records:[]}).observe(({oldValue:e=[],newValue:t=[]})=>{var n,o,r,i,s,a;if(!(null===(o=null===(n=ho.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.isScript))return;const l=[],u=[],c=[],p=new Map;e.forEach(e=>p.set(e.id,e));const d=new Map;t.forEach(e=>d.set(e.id,e));let h=0;this.recordOrder.clear(),d.forEach(e=>{this.recordOrder.set(e.id,h++),p.has(e.id)&&this.gridApi.getRowNode(e.id)?u.push(e):l.push(e),p.delete(e.id)}),p.forEach(e=>{this.gridApi.getRowNode(e.id)&&c.push(e)}),Object(xe.findLast)(l,e=>!1===e.isCommitted)&&(this.gridApi.deselectAll(),this.gridApi.ensureIndexVisible(0),this.gridApi.setFocusedCell(ho.activeTab.session.script.uncommittedRecords.length-1,Object(xe.last)(l).model.fieldIds[0])),this.gridApi.setSortModel(null),this.gridApi.applyTransaction({add:l,update:u,remove:c}),this.gridApi.setSortModel([{colId:null===(i=null===(r=ho.activeTab)||void 0===r?void 0:r.session)||void 0===i?void 0:i.script.fieldIds[0],sort:null===(a=null===(s=ho.activeTab)||void 0===s?void 0:s.session)||void 0===a?void 0:a.script.sort.order}])}),this.reactionDisposers.push(e)},this.disposeReactions=()=>{this.reactionDisposers.forEach(e=>e()),this.reactionDisposers=[]},this.handleGridReady=async e=>{this.columnApi=e.columnApi,this.gridApi=e.api,this.configureReactions(),this.configureGridColumns(),this.loadGridDataDebounced()},this.handleScroll=async e=>{var t,n;if("horizontal"===e.direction)return;const o=null===(n=null===(t=ho.activeTab)||void 0===t?void 0:t.session)||void 0===n?void 0:n.script;if(o.recordIds.length>=(o.model.count||0))return;const r=this.props.height;!o.running&&e.top+r>=32*(o.pagination.take-20)&&o.loadMore()},this.handleSelectionChanged=e=>{var t;null===(t=ho.activeTab)||void 0===t||t.session.selection.table.update({selectedRecordIds:e.api.getSelectedRows().map(e=>e.id)})},this.handleCellEditingStopped=e=>{const t=this.gridApi.getFocusedCell(),n=e;if(!t||!n)return;if(t.rowIndex===n.rowIndex&&t.column.getColId()!==n.column.getColId())return;if(t.rowIndex===n.rowIndex)return;const o=It.get(t.column.getColId()),r=It.get(e.column.getColId());(null==r?void 0:r.isRelation)&&(null==o?void 0:o.isRelation)&&this.gridApi.startEditingCell({rowIndex:t.rowIndex,colKey:t.column.getColId()})},this.handleCellValueChanged=(e,t)=>{var n,o,r,i;const{oldValue:s,newValue:a,node:{data:l}}=e,u=l,c=null===(n=ho.activeTab)||void 0===n?void 0:n.sessionId;if(!c)return!1;if(Object(xe.isEqual)(s,a))return!1;if(!(null===(r=null===(o=ho.activeTab)||void 0===o?void 0:o.session)||void 0===r?void 0:r.isScript))return!1;if(ho.activeTab.session.script.update({frozen:!1}),In.add({type:"update",recordId:u.id,sessionId:c,value:{[t.name]:a}}),t.isRelation&&!t.isList){if(!t.typeAsModel)return!1;const e=t.relationFromFieldNames,n=t.relationToFieldNames;let o;o=null==a?null:Gn.get(Gt(t.typeAsModel.id,a)),In.add({type:"update",sessionId:c,recordId:null!==(i=u.id)&&void 0!==i?i:null,value:e.reduce((e,t,r)=>{var i;return e[t]=null!==(i=null==o?void 0:o.value[n[r]])&&void 0!==i?i:null,e},{})})}if(t.isPartOfRelation&&t.relationItIsPartOf){if(!t.relationItIsPartOf.typeAsModel)return!1;const e=t.relationItIsPartOf.relationFromFieldNames,n=t.relationItIsPartOf.relationToFieldNames;In.add({type:"update",sessionId:c,recordId:u.id,value:{[t.relationItIsPartOf.name]:null==a?null:n.reduce((t,n,o)=>(t[n]=u.value[e[o]],t),{})}})}return!0},this.loadGridDataDebounced=Object(xe.debounce)(this.loadGridData,300,{leading:!1,trailing:!0}),this.handleScrollThrottled=Object(xe.throttle)(this.handleScroll,100,{leading:!0,trailing:!0})}componentWillUnmount(){this.disposeReactions()}copyToClipboard(){const e=Object(Kt.a)(this.gridApi.getSelectedRows().map(e=>Object(u.toJS)(e.value)),0);if(console.log(e),document.queryCommandSupported&&document.queryCommandSupported("copy")){var t=document.createElement("textarea");t.textContent=e,t.style.position="fixed",document.body.appendChild(t),t.select();try{return document.execCommand("copy")}catch(e){return console.warn("Copy to clipboard failed.",e),!1}finally{document.body.removeChild(t)}}}render(){var e;const t=null===(e=ho.activeTab)||void 0===e?void 0:e.session;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{ref:this.table,className:Ro()(ec.a.container,"ag-theme-main")},s.a.createElement(al.AgGridReact,{rowSelection:"multiple",rowDeselection:!0,suppressRowClickSelection:!0,frameworkComponents:{TableLoadingOverlay:cl,TableEmptyOverlay:pl,TableCellHeader:jl,TableCellRenderer:Wl.a,TableCellEditor:Ju},rowClassRules:{[ec.a.firstCommittedRow]:e=>!!t.script.uncommittedRecords.length&&e.node.id===t.script.recordIds[t.script.uncommittedRecords.length]},loadingOverlayComponent:"TableLoadingOverlay",noRowsOverlayComponent:"TableEmptyOverlay",suppressColumnVirtualisation:!!window.Cypress,getRowNodeId:e=>e.id,onGridReady:this.handleGridReady,onBodyScroll:this.handleScrollThrottled,onSelectionChanged:this.handleSelectionChanged,onCellEditingStopped:this.handleCellEditingStopped})),s.a.createElement(Uo.a,{keys:"mod+c",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{0!==this.gridApi.getSelectedRows().length&&(e.preventDefault(),e.stopPropagation(),this.copyToClipboard())}}),s.a.createElement(Uo.a,{keys:"mod+up",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),this.gridApi.setFocusedCell(0,this.gridApi.getFocusedCell().column))}}),s.a.createElement(Uo.a,{keys:"mod+down",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),this.gridApi.setFocusedCell(ho.activeTab.session.script.recordIds.length-1,this.gridApi.getFocusedCell().column))}}),s.a.createElement(Uo.a,{keys:"mod+left",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),this.gridApi.setFocusedCell(this.gridApi.getFocusedCell().rowIndex,this.columnApi.getColumnState()[1].colId))}}),s.a.createElement(Uo.a,{keys:"mod+right",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{if(this.gridApi.getEditingCells().length>0)return;e.preventDefault(),e.stopPropagation();const t=this.columnApi.getColumnState();this.gridApi.setFocusedCell(this.gridApi.getFocusedCell().rowIndex,t[t.length-1].colId)}}),s.a.createElement(Uo.a,{keys:"enter",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{const t=this.gridApi.getFocusedCell();if("checkbox"===t.column.getColId()){e.preventDefault(),e.stopPropagation();const n=this.gridApi.getRowNode(ho.activeTab.session.script.recordIds[t.rowIndex]),o=this.gridApi.getSelectedNodes().find(e=>e.id===n.id);null==n||n.setSelected(!o)}}}))}}var oc=nc;function rc(){return(rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function ic(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ac(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var lc=function(e,t){var n;void 0===t&&(t=ac);var o,r=[],i=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return i&&n===this&&t(s,r)||(o=e.apply(this,s),i=!0,n=this,r=s),o}};var uc="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function cc(e){cancelAnimationFrame(e.id)}function pc(e,t){var n=uc();var o={id:requestAnimationFrame((function r(){uc()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))};return o}var dc=null;function hc(e){if(void 0===e&&(e=!1),null===dc||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var o=document.createElement("div"),r=o.style;return r.width="100px",r.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?dc="positive-descending":(t.scrollLeft=1,dc=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),dc}return dc}var fc=function(e,t){return e};function gc(e){var t,n,o=e.getItemOffset,r=e.getEstimatedTotalSize,s=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,u=e.getStopIndexForStartIndex,c=e.initInstanceProps,p=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,sc(sc(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:sc(sc(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=lc((function(e,t,o,r){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:o,visibleStopIndex:r})})),n._callOnScroll=void 0,n._callOnScroll=lc((function(e,t,o){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:o})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,a=r.itemSize,l=r.layout,u=n._getItemStyleCache(p&&a,p&&l,p&&i);if(u.hasOwnProperty(e))t=u[e];else{var c,d=o(n.props,e,n._instanceProps),h=s(n.props,e,n._instanceProps),f="horizontal"===i||"horizontal"===l;u[e]=((c={position:"absolute"})["rtl"===i?"right":"left"]=f?d:0,c.top=f?0:d,c.height=f?"100%":h,c.width=f?h:"100%",t=c)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=lc((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,o=t.clientWidth,r=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===r)return null;var t=n.props.direction,s=r;if("rtl"===t)switch(hc()){case"negative":s=-r;break;case"positive-descending":s=i-o-r}return s=Math.max(0,Math.min(s,i-o)),{isScrolling:!0,scrollDirection:e.scrollOffset<r?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,o=t.clientHeight,r=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,r-o));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&cc(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=pc(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}ic(t,e),t.getDerivedStateFromProps=function(e,t){return vc(e,t),d(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(a(this.props,e,t,o,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,o=e.layout;if("number"==typeof n&&null!=this._outerRef){var r=this._outerRef;"horizontal"===t||"horizontal"===o?r.scrollLeft=n:r.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,o=this.state,r=o.scrollOffset;if(o.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(hc()){case"negative":i.scrollLeft=-r;break;case"positive-ascending":i.scrollLeft=r;break;default:var s=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-s-r}else i.scrollLeft=r;else i.scrollTop=r}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&cc(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,p=e.itemData,d=e.itemKey,h=void 0===d?fc:d,f=e.layout,g=e.outerElementType,v=e.outerTagName,m=e.style,y=e.useIsScrolling,C=e.width,w=this.state.isScrolling,b="horizontal"===o||"horizontal"===f,E=b?this._onScrollHorizontal:this._onScrollVertical,_=this._getRangeToRender(),O=_[0],R=_[1],S=[];if(c>0)for(var T=O;T<=R;T++)S.push(Object(i.createElement)(t,{data:p,key:h(T,p),index:T,isScrolling:y?w:void 0,style:this._getItemStyle(T)}));var D=r(this.props,this._instanceProps);return Object(i.createElement)(g||v||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:rc({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},m)},Object(i.createElement)(l||u||"div",{children:S,ref:a,style:{height:b?"100%":D,pointerEvents:w?"none":void 0,width:b?D:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],o=e[2],r=e[3];this._callOnItemsRendered(t,n,o,r)}if("function"==typeof this.props.onScroll){var i=this.state,s=i.scrollDirection,a=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,o=this.state,r=o.isScrolling,i=o.scrollDirection,s=o.scrollOffset;if(0===t)return[0,0,0,0];var a=l(this.props,s,this._instanceProps),c=u(this.props,a,s,this._instanceProps),p=r&&"backward"!==i?1:Math.max(1,n),d=r&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,a-p),Math.max(0,Math.min(t-1,c+d)),a,c]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var vc=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},mc=gc({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,o){var r=e.direction,i=e.height,s=e.itemCount,a=e.itemSize,l=e.layout,u=e.width,c="horizontal"===r||"horizontal"===l?u:i,p=Math.max(0,s*a-c),d=Math.min(p,t*a),h=Math.max(0,t*a-c+a);switch("smart"===n&&(n=o>=h-c&&o<=d+c?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var f=Math.round(h+(d-h)/2);return f<Math.ceil(c/2)?0:f>p+Math.floor(c/2)?p:f;case"auto":default:return o>=h&&o<=d?o:o<h?h:d}},getStartIndexForOffset:function(e,t){var n=e.itemCount,o=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/o)))},getStopIndexForStartIndex:function(e,t,n){var o=e.direction,r=e.height,i=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,u=t*s,c="horizontal"===o||"horizontal"===a?l:r,p=Math.ceil((c+n-u)/s);return Math.max(0,Math.min(i-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var yc=n(78),Cc=n.n(yc),wc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bc=s.a.createContext({});class Ec extends s.a.PureComponent{constructor(e){super(e),this.list=s.a.createRef(),this.lastScrollTop=0,this.isLoading=!1,this.handleScroll=()=>{const e=this.list.current._outerRef;e.scrollTop!==this.lastScrollTop&&(this.lastScrollTop=e.scrollTop,this.handleHorizontalScrollThrottled())},this.handleHorizontalScroll=()=>{const{itemSize:e,onLoad:t}=this.props;if(this.isLoading||!t)return;const n=this.list.current._outerRef;n.scrollHeight-(n.scrollTop+n.clientHeight)<15*e&&(this.isLoading=!0,t())},this.handleHorizontalScrollThrottled=Object(xe.throttle)(this.handleHorizontalScroll,100,{leading:!0,trailing:!0})}componentDidUpdate(){this.isLoading=!1}render(){const{className:e,outerElementRef:t,innerElementRef:n,height:o,width:r,itemCount:i,itemKey:a,itemSize:l,itemData:u,itemRenderer:c,stickyIndices:p,stickyItemsClassName:d,overscan:h}=this.props;return s.a.createElement(bc.Provider,{value:{stickyIndices:p,stickyItemsClassName:d,itemSize:l,itemData:u,itemKey:a,itemRenderer:c}},s.a.createElement("div",{"data-cy":"infinite-list",className:e,onScroll:this.handleScroll},s.a.createElement(mc,{ref:this.list,outerRef:t,innerRef:n,height:o,width:r,itemCount:i,itemSize:l,itemKey:a,itemData:u,overscanCount:h,outerElementType:Oc,innerElementType:_c},c)))}}Ec.defaultProps={stickyIndices:[],stickyItemsClassName:"",overscan:10};const _c=s.a.forwardRef((e,t)=>{var{children:n}=e,o=wc(e,["children"]);return s.a.createElement(bc.Consumer,null,({stickyItemsClassName:e,stickyIndices:r=[],itemSize:i,itemData:a,itemKey:l,itemRenderer:u})=>s.a.createElement("div",Object.assign({ref:t},o),s.a.createElement("div",{className:Ro()(Cc.a.stickyItems,e)},r.map(e=>s.a.createElement(u,{key:l(e),index:e,style:{display:"flex",position:"absolute",top:e*i,left:0,width:"100%",height:i},data:Object.assign(Object.assign({},a),{sticky:!0})}))),s.a.Children.map(n,(e,t)=>r.includes(t)?null:e)))}),Oc=s.a.forwardRef((e,t)=>{var{children:n,className:o}=e,r=wc(e,["children","className"]);return s.a.createElement("div",Object.assign({ref:t,tabIndex:1,className:Ro()(Cc.a.outer,o)},r),n)});var Rc=Ec,Sc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};class Tc extends s.a.PureComponent{constructor(){super(...arguments),this.clickStartCoords={x:0,y:0},this.startClick=e=>{this.clickStartCoords={x:e.clientX,y:e.clientY}},this.finishClick=e=>{if(this.props.onClickButNotDrag&&Math.abs(this.clickStartCoords.x-e.clientX)<5&&Math.abs(this.clickStartCoords.y-e.clientY)<5)return this.props.onClickButNotDrag(e);this.props.onClick&&this.props.onClick(e)}}render(){const e=this.props,{onClickButNotDrag:t,children:n}=e,o=Sc(e,["onClickButNotDrag","children"]);return s.a.createElement("div",Object.assign({},o,{onMouseDown:this.startClick,onMouseUp:this.finishClick,onClick:void 0}),n)}}var Dc=Tc,Pc=n(64),Ic=n.n(Pc);var Ac=Object(So.a)(({className:e,size:t=3}={})=>s.a.createElement("div",{className:Ro()(Ic.a.container,e)},s.a.createElement("div",{className:Ic.a.one,style:{height:t,width:t}}),s.a.createElement("div",{className:Ic.a.two,style:{height:t,width:t}}),s.a.createElement("div",{className:Ic.a.three,style:{height:t,width:t}})));function Nc(){return(Nc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var xc=i.createElement("path",{d:"M2.315 2.715C2.315.618 4.635-.649 6.4.485l13.865 8.913c1.894 1.218 1.894 3.986 0 5.204L6.4 23.515c-1.764 1.134-4.085-.133-4.085-2.23V2.715z"});var Fc=function(e){return i.createElement("svg",Nc({viewBox:"0 0 24 24"},e),xc)};var Lc=(e,{maxLength:t=100}={})=>e.length<=t?e:e.slice(0,t-1)+"…";var Mc=(e,{maxLength:t}={maxLength:100})=>{if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return`"${Lc(e,{maxLength:t-2})}"`;if("number"==typeof e||"boolean"==typeof e)return Lc(""+e,{maxLength:t});const n=e=>"string"==typeof e?`"${e}"`:"number"==typeof e||"boolean"==typeof e?""+e:Array.isArray(e)?"[ … ]":"{ … }";if(Array.isArray(e)){t-="[ ]".length;const o=[];return e.some(e=>{const r=n(e),i=r.length+", ".length;return!(i<t)||(o.push(r),t-=i,!1)}),0===o.length?"[ … ]":o.length===e.length?`[ ${o.join(", ")} ]`:`[ ${o.join(", ")}, … ]`}const o=Object.keys(e);t-="{ }".length;const r=[];return o.some(o=>{const i=`${o}: ${n(e[o])}`,s=i.length+", ".length;return!(s<t)||(r.push(i),t-=s,!1)}),0===r.length?"{ … }":r.length===o.length?`{ ${r.join(", ")} }`:`{ ${r.join(", ")}, … }`},kc=n(27),Gc=n.n(kc);class Vc extends s.a.PureComponent{constructor(){super(...arguments),this.handleToggleCollapse=e=>{const{path:t,isLoading:n,onToggleCollapse:o}=this.props;e.stopPropagation(),n||o(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:n,fieldName:o,modelName:r,value:i,isLoading:a,style:l}=this.props,u=e.split("::").length-1;return s.a.createElement("div",{"data-cy":"tree__object","data-cy-expanded":"true",style:l,className:Ro()(Gc.a.container,{[Gc.a.expanded]:n,[Gc.a.active]:!n&&t}),tabIndex:1},s.a.createElement("div",{className:Gc.a.depthGutter,style:{width:16*u}}),s.a.createElement("div",{"data-cy":"expand-btn",className:Gc.a.expandButton,onClick:this.handleToggleCollapse},a&&s.a.createElement(Ac,{size:3,className:Gc.a.loader}),!a&&i&&s.a.createElement(Fc,null)),s.a.createElement("div",{className:Ro()(Gc.a.meta,{[Gc.a.active]:n&&t}),onClick:this.handleToggleCollapse},s.a.createElement(Ml,{className:Gc.a.icon,object:!0,required:!0}),o&&s.a.createElement("div",{className:Gc.a.fieldName},o,":"),s.a.createElement("div",{className:Gc.a.fieldType},r)),s.a.createElement(Dc,{className:Gc.a.fieldValue,onClickButNotDrag:this.handleExpand},i?Mc(i,{maxLength:150}):"null"))}}var jc=Object(So.a)(Vc),Wc=n(12),Hc=n.n(Wc);class Bc extends s.a.PureComponent{constructor(){super(...arguments),this.handleToggleCollapse=e=>{const{path:t,isLoading:n,onToggleCollapse:o}=this.props;e.stopPropagation(),n||o(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:n,fieldName:o,modelName:r,value:i,isLoading:a,style:l}=this.props,u=e.split("::").length-1;return s.a.createElement("div",{tabIndex:1,"data-cy":"tree__array",className:Ro()(Hc.a.container,{[Hc.a.expanded]:n,[Hc.a.active]:!n&&t}),style:l},s.a.createElement("div",{className:Hc.a.depthGutter,style:{width:16*u}}),s.a.createElement("div",{"data-cy":"expand-btn",className:Hc.a.expandButton,onClick:this.handleToggleCollapse},a&&s.a.createElement(Ac,{size:3,className:Hc.a.loader}),!a&&i&&i.length>0&&s.a.createElement(Fc,null)),s.a.createElement("div",{className:Ro()(Hc.a.meta,{[Hc.a.active]:n&&t}),onClick:this.handleToggleCollapse},s.a.createElement(Ml,{className:Hc.a.icon,array:!0,required:!0}),s.a.createElement("div",{className:Hc.a.fieldName},o,":"),s.a.createElement("div",{className:Hc.a.fieldType},r)),s.a.createElement(Dc,{className:Hc.a.fieldValue,onClickButNotDrag:this.handleExpand},s.a.createElement(s.a.Fragment,null,`(${i?i.length:0}) `,a||0===(null==i?void 0:i.length)?"[ ]":Mc(i,{maxLength:150}))))}}var zc=Object(So.a)(Bc);class Uc extends s.a.PureComponent{constructor(){super(...arguments),this.handleToggleCollapse=e=>{const{path:t,isLoading:n,onToggleCollapse:o}=this.props;e.stopPropagation(),n||o(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:n,startIndex:o,endIndex:r,value:i,isLoading:a,style:l}=this.props,u=e.split("::").length-1;return s.a.createElement("div",{tabIndex:1,"data-cy":"tree__array",className:Ro()(Hc.a.container,{[Hc.a.expanded]:n,[Hc.a.active]:!n&&t}),style:l},s.a.createElement("div",{className:Hc.a.depthGutter,style:{width:16*u}}),s.a.createElement("div",{"data-cy":"expand-btn",className:Hc.a.expandButton},a?s.a.createElement(Ac,{size:3,className:Hc.a.loader}):s.a.createElement(Fc,null)),s.a.createElement("div",{className:Ro()(Hc.a.meta,{[Hc.a.active]:n&&t}),onClick:this.handleToggleCollapse},s.a.createElement(Ml,{className:Hc.a.icon,array:!0,required:!0}),s.a.createElement("div",{className:Hc.a.fieldName},`[${o}-${r}]:`)),s.a.createElement(Dc,{className:Hc.a.fieldValue,onClickButNotDrag:this.handleExpand},s.a.createElement(s.a.Fragment,null,`(${i&&i.length}) `,Mc(i,{maxLength:150}))))}}var qc=Object(So.a)(Uc),Yc=n(39),Kc=n.n(Yc);class $c extends s.a.PureComponent{constructor(){super(...arguments),this.handleClick=e=>{const{path:t,onClick:n}=this.props;e&&e.stopPropagation(),n(t)}}render(){const{path:e,isSelected:t,fieldName:n,value:o,isString:r,isInt:i,isFloat:a,isBoolean:l,isDateTime:u,style:c}=this.props,p=e.split("::").length-1;return s.a.createElement("div",{"data-cy":"tree__scalar",style:c,className:Ro()(Kc.a.container,{[Kc.a.active]:t}),tabIndex:1,onClick:this.handleClick},s.a.createElement("div",{className:Kc.a.depthGutter,style:{width:16*p}}),s.a.createElement("div",{className:Kc.a.meta},((d=this.props).isString||d.isInt||d.isFloat||d.isBoolean||d.isDateTime)&&s.a.createElement(Ml,{className:Kc.a.icon,required:!0,string:r,int:i,float:a,boolean:l,dateTime:u}),s.a.createElement("div",{className:Kc.a.fieldName},n,":")),s.a.createElement("div",{className:Kc.a.fieldValue},Mc(o)));var d}}var Qc=Object(So.a)($c),Xc=n(40),Jc=n.n(Xc);class Zc extends s.a.PureComponent{constructor(){super(...arguments),this.handleClick=e=>{const{path:t,onClick:n}=this.props;e&&e.stopPropagation(),n(t)}}render(){const{path:e,isSelected:t,fieldName:n,value:o,style:r}=this.props,i=e.split("::").length-1;return s.a.createElement("div",{"data-cy":"tree__enum",style:r,className:Ro()(Jc.a.container,{[Jc.a.active]:t}),tabIndex:1,onClick:this.handleClick},s.a.createElement("div",{className:Jc.a.depthGutter,style:{width:16*i}}),s.a.createElement("div",{className:Jc.a.meta},s.a.createElement(Ml,{className:Jc.a.icon,enumerable:!0,required:!0}),n&&s.a.createElement("div",{className:Jc.a.fieldName},n,":")),s.a.createElement("div",{className:Jc.a.fieldValue},Mc(o)))}}var ep=Object(So.a)(Zc);class tp extends s.a.PureComponent{constructor(){super(...arguments),this.isArraySlice=e=>null===e.record&&Array.isArray(e.arraySliceIndices)&&Array.isArray(e.value),this.handleToggleCollapse=e=>{const{selection:t}=this.context.session;this.handleSelect(e),t.tree.isExpanded(e)?t.tree.collapse():t.tree.expand()},this.handleSelect=e=>{const{selection:t}=this.context.session;t.tree.select(e)}}render(){var e,t,n,o,r,i,a,l,u,c,p,d,h;const{selection:f}=this.context.session,{style:g,index:v,data:{pathsToRender:m,recordIds:y}}=this.props,C=m[v],w=an(C,y),b=f.tree.activePath,E=f.tree.isExpanded(C);return this.isArraySlice(w)?s.a.createElement(qc,{path:C,isSelected:C===b,isExpanded:E,startIndex:w.arraySliceIndices[0],endIndex:w.arraySliceIndices[1],value:w.value,isLoading:!w.value,style:g,onToggleCollapse:this.handleToggleCollapse}):(null===(e=w.field)||void 0===e?void 0:e.isList)||Array.isArray(w.value)?s.a.createElement(zc,{path:C,isSelected:C===b,isExpanded:E,fieldName:w.field.name,modelName:w.field.typeAsLabel,value:w.value,isLoading:!w.value,style:g,onToggleCollapse:this.handleToggleCollapse}):(null===(t=w.field)||void 0===t?void 0:t.isRelation)||w.record?s.a.createElement(jc,{path:C,isSelected:C===b,isExpanded:E,fieldName:null===(n=w.field)||void 0===n?void 0:n.name,modelName:w.model.name,value:w.value,isLoading:null===(null===(o=w.record)||void 0===o?void 0:o.value),style:g,onToggleCollapse:this.handleToggleCollapse}):(null===(r=w.field)||void 0===r?void 0:r.isEnum)?s.a.createElement(ep,{path:C,isSelected:C===b,fieldName:null===(i=w.field)||void 0===i?void 0:i.name,value:w.value,style:g,onClick:this.handleSelect}):s.a.createElement(Qc,{path:C,isSelected:C===b,fieldName:(null===(a=w.field)||void 0===a?void 0:a.name)||""+w.index,value:w.value,isString:(null===(l=w.field)||void 0===l?void 0:l.isString)||!1,isInt:(null===(u=w.field)||void 0===u?void 0:u.isInt)||!1,isFloat:(null===(c=w.field)||void 0===c?void 0:c.isFloat)||(null===(p=w.field)||void 0===p?void 0:p.isDecimal)||!1,isBoolean:(null===(d=w.field)||void 0===d?void 0:d.isBoolean)||!1,isDateTime:(null===(h=w.field)||void 0===h?void 0:h.isDateTime)||!1,style:g,onClick:this.handleSelect})}}var np=Object(So.a)(sl(tp)),op=n(96),rp=n.n(op);class ip extends s.a.PureComponent{constructor(e){super(e),this.tree=s.a.createRef(),this.refresh=async()=>{const{session:e}=this.context;await e.script.run()},this._scrollIntoView=()=>{const{height:e}=this.props,t=this.getActivePathIndex(),n=this.tree.current,o=23*t,r=o+23;o<=n.scrollTop&&n.scrollTo({top:o}),r>=n.scrollTop+e&&n.scrollTo({top:r-e})},this.getActivePathIndex=()=>{const{session:e}=this.context;return e.selection.tree.selectionOrder.findIndex(t=>t===e.selection.tree.activePath)},this.handleLoadMore=()=>{const{session:e}=this.context;e.script.loadMore(),e.selection.tree.setSelectionOrder()},this.scrollIntoView=Object(xe.throttle)(this._scrollIntoView,30,{leading:!0,trailing:!0})}focus(){var e;null===(e=this.tree.current)||void 0===e||e.focus()}componentDidMount(){this.context.session.selection.tree.setSelectionOrder()}render(){const{session:e}=this.context,{height:t,width:n,recordIds:o}=this.props,{tree:r}=e.selection,i=r.selectionOrder;return s.a.createElement(s.a.Fragment,null,s.a.createElement(Rc,{outerElementRef:this.tree,className:rp.a.container,height:t-20,width:n-20,itemCount:i.length,itemSize:23,itemData:{pathsToRender:i,recordIds:o},itemKey:e=>i[e],itemRenderer:np,onLoad:this.handleLoadMore}),s.a.createElement(Uo.a,{keys:"up",target:this.tree,onMatch:e=>{r.move(1,"up"),this.scrollIntoView()}}),s.a.createElement(Uo.a,{keys:"down",target:this.tree,onMatch:e=>{r.move(1,"down"),this.scrollIntoView()}}),s.a.createElement(Uo.a,{keys:"left",target:this.tree,onMatch:e=>{r.isExpanded(r.activePath)?r.collapse():r.jumpToParent(),this.scrollIntoView()}}),s.a.createElement(Uo.a,{keys:"right",target:this.tree,onMatch:e=>{r.expand(),this.scrollIntoView()}}),s.a.createElement(Uo.a,{keys:"space",target:this.tree,onMatch:e=>{r.expand(),this.scrollIntoView()}}))}}var sp=Object(So.a)(sl(ip)),ap=n(97),lp=n.n(ap);class up extends s.a.PureComponent{constructor(){super(...arguments),this.table=s.a.createRef(),this.tree=s.a.createRef()}scrollIntoView(){this.table.current.scrollIntoView()}focus(){var e,t;const{session:n}=this.context;"table"===n.script.viewMode&&(null===(e=this.table.current)||void 0===e||e.focus()),"tree"===n.script.viewMode&&(null===(t=this.tree.current)||void 0===t||t.focus())}refresh(){var e,t;const{session:n}=this.context;"table"===n.script.viewMode&&(null===(e=this.table.current)||void 0===e||e.refresh()),"tree"===n.script.viewMode&&(null===(t=this.tree.current)||void 0===t||t.refresh())}selectRows(e){var t;const{session:n}=this.context;"table"===n.script.viewMode&&(null===(t=this.table.current)||void 0===t||t.selectRows(e))}deleteSelectedRows(){var e;const{session:t}=this.context;"table"===t.script.viewMode&&(null===(e=this.table.current)||void 0===e||e.deleteSelectedRows())}render(){const{sessionId:e,session:t}=this.context,{className:n,width:o,height:r}=this.props;return s.a.createElement("div",{className:Ro()(lp.a.container,n),"data-cy":"results"},"tree"===t.script.viewMode&&s.a.createElement(sp,{ref:this.tree,key:e,width:o,height:r,recordIds:t.script.recordIds}),"table"===t.script.viewMode&&s.a.createElement(oc,{ref:this.table,width:o,height:r}))}}var cp=Object(So.a)(sl(up));function pp(){return(pp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var dp=i.createElement("path",{fill:"currentColor",d:"M8.53 1.47A4.995 4.995 0 000 5a4.995 4.995 0 009.831 1.25h-1.3a3.746 3.746 0 01-3.534 2.5A3.754 3.754 0 011.245 5a3.754 3.754 0 013.752-3.75 3.7 3.7 0 012.639 1.112L5.622 4.376H10V0L8.53 1.469z"});var hp=function(e){return i.createElement("svg",pp({viewBox:"0 0 10 10"},e),dp)},fp=n(37),gp=n.n(fp);class vp extends s.a.PureComponent{constructor(){super(...arguments),this.results=s.a.createRef(),this.handleCreateRecord=()=>{var e,t;null===(t=null===(e=ho.activeTab)||void 0===e?void 0:e.session)||void 0===t||t.createUncommittedRecord(),zt.send({command:"record_create",commandDetails:{}})},this.handleDeleteRecords=()=>{this.results.current.deleteSelectedRows(),this.results.current.selectRows([]),this.results.current.focus()},this.handleSuccess=()=>{this.results.current.selectRows([]),this.results.current.focus(),this.results.current.refresh()}}render(){var e;const t=null===(e=ho.activeTab)||void 0===e?void 0:e.session;return t&&(null==t?void 0:t.isScript)?s.a.createElement("div",{className:gp.a.container,"data-cy":"databrowser"},s.a.createElement("div",{className:gp.a.header},s.a.createElement(jo.a,{className:Ro()(gp.a.refreshBtn,{[gp.a.spin]:t.script.running}),disabled:t.script.running,onClick:()=>t.script.run()},s.a.createElement(hp,null)),s.a.createElement(xi,null),s.a.createElement(Xi,null),s.a.createElement(ts,null),s.a.createElement("div",{className:gp.a.separator}),s.a.createElement(jo.a,{"data-cy":"create-record-btn",onClick:this.handleCreateRecord,disabled:t.isScript&&"tree"===t.script.viewMode},"Add record"),t.selection.table.selectedRecordIds.length>0&&s.a.createElement(jo.a,{"data-cy":"delete-record-btn",className:gp.a.deleteBtn,onClick:this.handleDeleteRecords},s.a.createElement(s.a.Fragment,null,"Delete ",t.selection.table.selectedRecordIds.length," record",t.selection.table.selectedRecordIds.length>1?"s":"")),s.a.createElement(il,{className:gp.a.pendingActions,onSuccess:this.handleSuccess})),s.a.createElement(cp,{ref:this.results,className:gp.a.results,width:window.innerWidth,height:window.innerHeight-36-44})):null}}var mp=Object(So.a)(vp),yp=n(10),Cp=n.n(yp);class wp extends s.a.PureComponent{constructor(){var e;super(...arguments),this.state={searchValue:"",highlightedSection:"recent",highlightedIdx:0},this.input=s.a.createRef(),this.recentModelRefs=((null===(e=yo.activeProject)||void 0===e?void 0:e.recentModelIds)||[]).map(e=>s.a.createRef()),this.allModelRefs=Object.keys(kt.values).map(e=>s.a.createRef()),this.filteredModelRefs=[],this.getRecentModels=()=>{var e;return(null===(e=yo.activeProject)||void 0===e?void 0:e.recentModels)||[]},this.getAllModels=()=>Object.values(kt.values),this.getFilteredModels=e=>Object.values(kt.values).filter(t=>t.name.toLowerCase().includes(e.toLowerCase())),this.scrollToHighlightedIdx=()=>{var e,t,n,o,r,i;const{highlightedSection:s,highlightedIdx:a}=this.state;"recent"===s?null===(t=null===(e=this.recentModelRefs[a])||void 0===e?void 0:e.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest"}):"all"===s?null===(o=null===(n=this.allModelRefs[a])||void 0===n?void 0:n.current)||void 0===o||o.scrollIntoView({behavior:"smooth",block:"nearest"}):"filtered"===s&&(null===(i=null===(r=this.filteredModelRefs[a])||void 0===r?void 0:r.current)||void 0===i||i.scrollIntoView({behavior:"smooth",block:"nearest"}))},this.handleSelectModel=e=>{var t;const n=kt.get(e);if(!n)return;null===(t=yo.activeProject)||void 0===t||t.addRecentModel(n.id);let o=Object.values(ho.values).find(e=>{var t;return(null===(t=e.session)||void 0===t?void 0:t.isScript)&&e.session.script.model.id===n.id&&e.session.script.frozen})||null;return o?(o.update({preview:!1}),void ho.switch({id:o.id})):(o=ho.previewTab,o?(o.load({modelId:n.id}),o.update({preview:!1}),void ho.switch({id:o.id})):(o=ho.add({modelId:n.id,preview:!1}),void ho.switch({id:o.id})))},this.handleSelectHighlightedModel=()=>{var e,t,n;const{highlightedSection:o,highlightedIdx:r,searchValue:i}=this.state;"recent"===o?this.handleSelectModel(null===(e=this.getRecentModels()[r])||void 0===e?void 0:e.id):"all"===o?this.handleSelectModel(null===(t=this.getAllModels()[r])||void 0===t?void 0:t.id):"filtered"===o&&this.handleSelectModel(null===(n=this.getFilteredModels(i)[r])||void 0===n?void 0:n.id)},this.handleSearch=e=>{var t;this.filteredModelRefs=this.getFilteredModels(e).map(e=>s.a.createRef());const n=(null===(t=yo.activeProject)||void 0===t?void 0:t.recentModels)||[];""===e?this.setState({searchValue:e,highlightedSection:n.length>0?"recent":"all",highlightedIdx:0}):this.setState({searchValue:e,highlightedSection:"filtered",highlightedIdx:0})},this.handleHighlightPrev=()=>{this.setState(e=>{var t;let n=e.highlightedSection,o=e.highlightedIdx;if("recent"===e.highlightedSection)e.highlightedIdx-1<0||(o-=1);else if("all"===e.highlightedSection)if(e.highlightedIdx-1<0){const e=(null===(t=yo.activeProject)||void 0===t?void 0:t.recentModels)||[];0===e.length||(n="recent",o=e.length-1)}else o-=1;else"filtered"===e.highlightedSection&&(e.highlightedIdx-1<0||(o-=1));return{highlightedSection:n,highlightedIdx:o}},()=>this.scrollToHighlightedIdx())},this.handleHighlightNext=()=>{this.setState(e=>{var t;let n=e.highlightedSection,o=e.highlightedIdx;if("recent"===e.highlightedSection){const r=(null===(t=yo.activeProject)||void 0===t?void 0:t.recentModels)||[];e.highlightedIdx+1>=r.length?(n="all",o=0):o+=1}else if("all"===e.highlightedSection){const t=Object.values(kt.values);e.highlightedIdx+1>=t.length||(o+=1)}else if("filtered"===e.highlightedSection){const t=this.getFilteredModels(e.searchValue);e.highlightedIdx+1>=t.length||(o+=1)}return{highlightedSection:n,highlightedIdx:o}},()=>this.scrollToHighlightedIdx())}}render(){var e;const{searchValue:t,highlightedSection:n,highlightedIdx:o}=this.state,r=(null===(e=yo.activeProject)||void 0===e?void 0:e.recentModels)||[],i=Object.values(kt.values),a=this.getFilteredModels(t);return s.a.createElement("div",{className:Cp.a.container,"data-cy":"model-list-tab"},s.a.createElement("div",{className:Cp.a.content},s.a.createElement("header",{className:Cp.a.header},s.a.createElement("div",{className:Cp.a.title},"Open a Model"),s.a.createElement(Gi,{"data-cy":"search",innerRef:this.input,type:"text",className:Cp.a.search,focusOnMount:!0,value:t,onChange:this.handleSearch,placeholder:"Search"})),r.length>0&&""===t&&s.a.createElement("section",{"data-cy":"recent-model-list",className:Cp.a.section},s.a.createElement("div",{className:Cp.a.sectionTitle},"Recently Opened"),s.a.createElement("ul",{className:Cp.a.list},r.map((e,t)=>{var r;return s.a.createElement("li",{key:e.id,ref:this.recentModelRefs[t],className:Ro()(Cp.a.model,{[Cp.a.active]:"recent"===n&&o===t}),onClick:t=>this.handleSelectModel(e.id)},s.a.createElement("div",{"data-cy":"name",className:Cp.a.name},e.name),s.a.createElement("div",{className:Cp.a.spacer}),s.a.createElement("div",{"data-cy":"count",className:Cp.a.count},null!==(r=e.count)&&void 0!==r?r:""))}))),""===t&&s.a.createElement("section",{"data-cy":"model-list",className:Ro()(Cp.a.section,Cp.a.allModels)},s.a.createElement("div",{className:Cp.a.sectionTitle},"All Models"),s.a.createElement("ul",{className:Cp.a.list},i.map((e,t)=>{var r;return s.a.createElement("li",{key:e.id,ref:this.allModelRefs[t],className:Ro()(Cp.a.model,{[Cp.a.active]:"all"===n&&o===t}),onClick:t=>this.handleSelectModel(e.id)},s.a.createElement("div",{"data-cy":"name",className:Cp.a.name},e.name),s.a.createElement("div",{className:Cp.a.spacer}),s.a.createElement("div",{"data-cy":"count",className:Cp.a.count},null!==(r=e.count)&&void 0!==r?r:""))}))),""!==t&&s.a.createElement("section",{"data-cy":"filtered-model-list",className:Ro()(Cp.a.section,Cp.a.allModels)},s.a.createElement("div",{className:Cp.a.sectionTitle},"Matches"),s.a.createElement("ul",{className:Cp.a.list},a.map((e,t)=>{var r;return s.a.createElement("li",{key:e.id,ref:this.filteredModelRefs[t],className:Ro()(Cp.a.model,{[Cp.a.active]:"filtered"===n&&o===t}),onClick:t=>{var n;this.handleSelectModel(e.id),null===(n=ho.activeTab)||void 0===n||n.update({preview:!1})}},s.a.createElement("div",{"data-cy":"name",className:Cp.a.name},e.name),s.a.createElement("div",{className:Cp.a.spacer}),s.a.createElement("div",{"data-cy":"count",className:Cp.a.count},null!==(r=e.count)&&void 0!==r?r:""))})),0===a.length&&s.a.createElement("div",{className:Cp.a.empty},"No matches"))),s.a.createElement(Uo.a,{keys:["command+shift+[","command+option+right"],target:this.input,onMatch:()=>ho.switch({direction:"right"})}),s.a.createElement(Uo.a,{keys:["command+shift+]","command+option+left"],target:this.input,onMatch:()=>ho.switch({direction:"left"})}),s.a.createElement(Uo.a,{keys:"up",target:this.input,onMatch:()=>this.handleHighlightPrev()}),s.a.createElement(Uo.a,{keys:"down",target:this.input,onMatch:()=>this.handleHighlightNext()}),s.a.createElement(Uo.a,{keys:"enter",target:this.input,onMatch:()=>this.handleSelectHighlightedModel()}),s.a.createElement(Uo.a,{keys:"cmd+enter",target:this.input,onMatch:()=>this.handleSelectHighlightedModel()}))}}var bp=Object(So.a)(wp),Ep=n(72),_p=n.n(Ep);class Op extends s.a.PureComponent{constructor(){super(...arguments),this.state={error:!1}}componentDidCatch(e){Yt.update({type:"fatal",description:e.message,dump:e.stack||""}),Wt.updateError({visible:!0}),Object(st.a)("Studio.componentDidCatch","Caught an error during rendering",{},e)}static getDerivedStateFromError(e){return{error:!0,errorMessage:e.message}}render(){var e,t,n,o;const{error:r}=this.state;return r?s.a.createElement(pi,null):s.a.createElement("div",{className:_p.a.container},s.a.createElement(ni,{className:_p.a.header}),s.a.createElement("div",{className:_p.a.body},(null===(t=null===(e=ho.activeTab)||void 0===e?void 0:e.session)||void 0===t?void 0:t.isScript)&&s.a.createElement(mp,null),(null===(o=null===(n=ho.activeTab)||void 0===n?void 0:n.session)||void 0===o?void 0:o.isModelList)&&s.a.createElement(bp,null)),Wt.error.visible&&"client"===Yt.type&&s.a.createElement(ui,null),Wt.error.visible&&"fatal"===Yt.type&&s.a.createElement(pi,null))}}var Rp=Object(So.a)(Op),Sp=n(98),Tp=n.n(Sp);class Dp extends s.a.Component{constructor(){super(...arguments),this.state={isShortcutDialogOpen:!1}}async componentDidMount(){Lo.hasCheckedForUpdates||await Lo.check()}render(){const{isShortcutDialogOpen:e}=this.state;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:Ro()(Tp.a.container,{"theme--light":"light"===yt.theme,"theme--dark":"dark"===yt.theme})},_o.ready&&ho.activeTab?s.a.createElement(Ao,{value:new Do({sessionId:ho.activeTab.sessionId})},s.a.createElement(Rp,null)):s.a.createElement(Vo,null),s.a.createElement("div",{id:"modal-root"}),s.a.createElement("div",{id:"dropdown-root"}),s.a.createElement("div",{id:"dialog-root"})),!Me.isBrowser&&s.a.createElement(s.a.Fragment,null,s.a.createElement(Uo.a,{keys:"mod+t",onMatch:()=>ho.switch({id:"model-list-tab"})}),s.a.createElement(Uo.a,{keys:"mod+w",preventDefault:!0,stopPropagation:!0,onMatch:()=>{console.log("gg"),ho.remove(ho.activeTabId)}}),s.a.createElement(Uo.a,{keys:["command+shift+]","command+option+right","ctrl+tab"],onMatch:()=>ho.switch({direction:"right"})}),s.a.createElement(Uo.a,{keys:["command+shift+[","command+option+left","ctrl+shift+tab"],onMatch:()=>ho.switch({direction:"left"})})),s.a.createElement(Uo.a,{keys:"mod+/",onMatch:()=>this.setState(e=>({isShortcutDialogOpen:!e.isShortcutDialogOpen}))}),e&&s.a.createElement(Vr,{onClose:()=>this.setState({isShortcutDialogOpen:!1})}))}}var Pp=Object(So.a)(Dp);function Ip(){return(Ip=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Ap=i.createElement("path",{d:"M23.969 20.378a2.394 2.394 0 01-2.394 2.394H2.425a2.394 2.394 0 01-2.394-2.394V3.622a2.394 2.394 0 012.394-2.394h5.984l2.394 3.59h10.772a2.394 2.394 0 012.394 2.395v13.165z"});var Np=function(e){return i.createElement("svg",Ip({viewBox:"0 0 24 24"},e),Ap)};function xp(){return(xp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Fp=i.createElement("path",{fill:"none",d:"M10.714 14.969a4.714 4.714 0 100-9.429 4.714 4.714 0 000 9.429zM18 17.54l-3.429-3.428"});var Lp=function(e){return i.createElement("svg",xp({viewBox:"0 0 24 24"},e),Fp)},Mp=n(41),kp=n.n(Mp);class Gp extends s.a.PureComponent{constructor(e){super(e),this.state={projects:[],searchText:""},this.handleSearch=e=>{this.setState({searchText:e})}}async componentDidMount(){const{error:e,data:t}=await window.transport.request({channel:"project",action:"getAll",payload:{data:null}});if(e)return Object(st.a)("ProjectList.componentDidMount","Failed to fetch all projects",{error:e});this.setState({projects:t})}handleOpen(e){window.transport.request({channel:"project",action:"open",payload:{data:{schemaPath:e}}})}render(){const{projects:e,searchText:t}=this.state,n=e.filter(e=>{var n,o;return(null===(n=e.name)||void 0===n?void 0:n.toLowerCase().includes(null==t?void 0:t.toLowerCase()))||(null===(o=e.schemaPath)||void 0===o?void 0:o.toLowerCase().includes(null==t?void 0:t.toLowerCase()))});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:kp.a.header},s.a.createElement(Lp,null),s.a.createElement(Gi,{type:"text",className:kp.a.search,value:"",placeholder:"Search",onChange:this.handleSearch})),s.a.createElement("div",{className:kp.a.list},n.map(e=>s.a.createElement("div",{key:e.schemaPath,className:kp.a.project,onClick:()=>this.handleOpen(e.schemaPath)},s.a.createElement(Np,null),s.a.createElement("div",{className:kp.a.projectMeta},s.a.createElement("span",{className:kp.a.projectName},e.name),s.a.createElement("span",{className:kp.a.projectDir},e.schemaPath))))))}}var Vp=Gp;function jp(){return(jp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Wp=i.createElement("path",{d:"M9.632 40.256c-1.707 0-3.2-.267-4.48-.8-1.28-.555-2.272-1.333-2.976-2.336-.683-1.024-1.024-2.208-1.024-3.552v-.704c0-.107.032-.192.096-.256a.398.398 0 01.288-.128h3.648c.107 0 .192.043.256.128.085.064.128.15.128.256v.48c0 .853.395 1.579 1.184 2.176.79.576 1.856.864 3.2.864 1.13 0 1.973-.235 2.528-.704.555-.49.832-1.088.832-1.792 0-.512-.17-.939-.512-1.28-.341-.363-.81-.672-1.408-.928-.576-.277-1.504-.65-2.784-1.12-1.43-.49-2.645-.992-3.648-1.504a7.578 7.578 0 01-2.496-2.08c-.661-.896-.992-1.995-.992-3.296 0-1.28.33-2.4.992-3.36.661-.96 1.579-1.696 2.752-2.208 1.173-.512 2.528-.768 4.064-.768 1.621 0 3.061.288 4.32.864 1.28.576 2.272 1.387 2.976 2.432.725 1.024 1.088 2.219 1.088 3.584v.48a.398.398 0 01-.128.288.346.346 0 01-.256.096H13.6a.468.468 0 01-.288-.096.468.468 0 01-.096-.288v-.256c0-.896-.373-1.653-1.12-2.272-.725-.64-1.728-.96-3.008-.96-1.003 0-1.792.213-2.368.64-.555.427-.832 1.013-.832 1.76 0 .533.16.981.48 1.344.341.363.832.693 1.472.992.661.277 1.675.661 3.04 1.152 1.515.555 2.699 1.045 3.552 1.472.875.427 1.653 1.067 2.336 1.92.704.832 1.056 1.92 1.056 3.264 0 2.005-.736 3.595-2.208 4.768-1.472 1.152-3.467 1.728-5.984 1.728zm19.543-13.472a.398.398 0 01-.128.288.346.346 0 01-.256.096H25.72c-.106 0-.16.053-.16.16v6.784c0 .704.139 1.227.416 1.568.299.341.768.512 1.408.512h1.056c.107 0 .192.043.256.128.086.064.128.15.128.256v3.04c0 .235-.128.373-.384.416-.896.043-1.536.064-1.92.064-1.77 0-3.093-.288-3.968-.864-.874-.597-1.322-1.707-1.344-3.328v-8.576c0-.107-.053-.16-.16-.16h-1.824a.468.468 0 01-.288-.096.468.468 0 01-.096-.288v-2.848c0-.107.032-.192.096-.256a.398.398 0 01.288-.128h1.824c.107 0 .16-.053.16-.16v-3.808c0-.107.032-.192.096-.256a.398.398 0 01.288-.128h3.584c.107 0 .192.043.256.128.086.064.128.15.128.256v3.808c0 .107.054.16.16.16h3.072c.107 0 .192.043.256.128.086.064.128.15.128.256v2.848zm11.357-2.848c0-.107.032-.192.096-.256a.398.398 0 01.288-.128h3.744c.106 0 .192.043.256.128.085.064.128.15.128.256v15.68a.398.398 0 01-.128.288.346.346 0 01-.256.096h-3.744a.468.468 0 01-.288-.096.468.468 0 01-.096-.288v-1.088c0-.064-.022-.096-.064-.096-.043-.021-.086 0-.129.064-.853 1.152-2.175 1.728-3.968 1.728-1.62 0-2.954-.49-4-1.472-1.045-.981-1.568-2.357-1.568-4.128V23.936c0-.107.032-.192.096-.256a.398.398 0 01.288-.128H34.9c.106 0 .192.043.256.128.085.064.127.15.127.256v9.568c0 .853.224 1.547.672 2.08.47.533 1.11.8 1.92.8.726 0 1.323-.213 1.792-.64.47-.448.758-1.024.864-1.728v-10.08zm17.085-5.952c0-.107.032-.192.096-.256a.398.398 0 01.288-.128h3.744c.107 0 .192.043.256.128.085.064.128.15.128.256v21.632a.398.398 0 01-.128.288.346.346 0 01-.256.096h-3.744a.468.468 0 01-.288-.096.468.468 0 01-.096-.288V38.56c0-.064-.021-.096-.064-.096-.043-.021-.085-.01-.128.032-.896 1.173-2.123 1.76-3.68 1.76-1.493 0-2.784-.416-3.872-1.248-1.067-.832-1.835-1.973-2.304-3.424-.363-1.11-.544-2.4-.544-3.872 0-1.515.192-2.837.576-3.968.49-1.365 1.259-2.443 2.304-3.232 1.067-.81 2.379-1.216 3.936-1.216 1.536 0 2.73.533 3.584 1.6.043.064.085.085.128.064.043-.021.064-.064.064-.128v-6.848zm-.672 17.024c.427-.79.64-1.867.64-3.232 0-1.43-.235-2.55-.704-3.36-.49-.832-1.205-1.248-2.144-1.248-1.003 0-1.76.416-2.272 1.248-.533.832-.8 1.963-.8 3.392 0 1.28.224 2.347.672 3.2.533.917 1.323 1.376 2.368 1.376.96 0 1.707-.459 2.24-1.376zm10.061-13.312c-.725 0-1.333-.235-1.824-.704-.47-.49-.704-1.099-.704-1.824 0-.747.235-1.355.704-1.824.47-.47 1.077-.704 1.824-.704.747 0 1.355.235 1.824.704.47.47.704 1.077.704 1.824 0 .725-.245 1.333-.736 1.824-.47.47-1.067.704-1.792.704zM65.086 40a.468.468 0 01-.288-.096.468.468 0 01-.096-.288V23.904c0-.107.032-.192.096-.256a.398.398 0 01.288-.128h3.744c.107 0 .192.043.256.128.085.064.128.15.128.256v15.712a.398.398 0 01-.128.288.346.346 0 01-.256.096h-3.744zm13.948.256c-1.792 0-3.328-.47-4.608-1.408-1.28-.939-2.154-2.219-2.624-3.84-.298-1.003-.448-2.09-.448-3.264 0-1.259.15-2.39.448-3.392.49-1.579 1.376-2.816 2.656-3.712 1.28-.896 2.816-1.344 4.608-1.344 1.75 0 3.243.448 4.48 1.344 1.238.875 2.112 2.101 2.624 3.68.342 1.067.512 2.187.512 3.36 0 1.152-.15 2.23-.448 3.232-.47 1.664-1.344 2.976-2.624 3.936-1.258.939-2.784 1.408-4.576 1.408zm0-3.872c.704 0 1.302-.213 1.792-.64.49-.427.843-1.013 1.056-1.76.17-.683.256-1.43.256-2.24 0-.896-.085-1.653-.256-2.272-.234-.725-.597-1.29-1.088-1.696-.49-.405-1.088-.608-1.792-.608-.725 0-1.333.203-1.824.608-.47.405-.81.97-1.024 1.696-.17.512-.256 1.27-.256 2.272 0 .96.075 1.707.224 2.24.214.747.566 1.333 1.056 1.76.512.427 1.13.64 1.856.64z",fill:"#2D3748"}),Hp=i.createElement("path",{d:"M5.9 3.186c.616 0 1.157.126 1.624.378.467.252.826.611 1.078 1.078.261.457.392.985.392 1.582 0 .588-.135 1.106-.406 1.554a2.707 2.707 0 01-1.12 1.05c-.476.243-1.027.364-1.652.364H3.828c-.047 0-.07.023-.07.07v3.57a.174.174 0 01-.056.126.151.151 0 01-.112.042H1.952a.205.205 0 01-.126-.042.205.205 0 01-.042-.126V3.354c0-.047.014-.084.042-.112a.174.174 0 01.126-.056H5.9zM5.606 7.61c.43 0 .775-.121 1.036-.364.261-.252.392-.579.392-.98 0-.41-.13-.742-.392-.994-.261-.252-.607-.378-1.036-.378H3.828c-.047 0-.07.023-.07.07V7.54c0 .047.023.07.07.07h1.778zM16.003 13a.198.198 0 01-.196-.126l-1.75-3.878c-.018-.037-.046-.056-.084-.056h-1.302c-.046 0-.07.023-.07.07v3.822a.174.174 0 01-.056.126.151.151 0 01-.111.042h-1.638a.205.205 0 01-.127-.042.205.205 0 01-.042-.126V3.368c0-.047.014-.084.042-.112a.174.174 0 01.127-.056H14.8c.597 0 1.12.121 1.567.364.458.243.808.588 1.05 1.036.252.448.378.966.378 1.554 0 .635-.158 1.18-.476 1.638-.317.448-.76.765-1.33.952-.046.019-.06.051-.042.098l1.905 3.962a.214.214 0 01.027.084c0 .075-.05.112-.154.112h-1.722zm-3.332-8.106c-.046 0-.07.023-.07.07v2.394c0 .047.024.07.07.07h1.835c.392 0 .709-.117.951-.35.252-.233.378-.537.378-.91s-.126-.677-.378-.91c-.242-.243-.56-.364-.952-.364h-1.834zM19.816 13a.205.205 0 01-.126-.042.205.205 0 01-.042-.126V3.368c0-.047.014-.084.042-.112a.174.174 0 01.126-.056h1.638c.047 0 .084.019.112.056a.133.133 0 01.056.112v9.464a.174.174 0 01-.056.126.151.151 0 01-.112.042h-1.638zm7.29.112c-.747 0-1.4-.117-1.96-.35-.56-.243-.994-.583-1.302-1.022-.299-.448-.448-.966-.448-1.554v-.308c0-.047.014-.084.042-.112a.174.174 0 01.126-.056h1.596c.047 0 .084.019.112.056a.133.133 0 01.056.112v.21c0 .373.172.69.518.952.345.252.812.378 1.4.378.494 0 .863-.103 1.106-.308.242-.215.364-.476.364-.784a.76.76 0 00-.224-.56 1.815 1.815 0 00-.616-.406 15.016 15.016 0 00-1.218-.49 12.392 12.392 0 01-1.596-.658 3.314 3.314 0 01-1.092-.91c-.29-.392-.434-.873-.434-1.442 0-.56.145-1.05.434-1.47.29-.42.69-.742 1.204-.966.513-.224 1.106-.336 1.778-.336.71 0 1.34.126 1.89.378.56.252.994.607 1.302 1.064.317.448.476.97.476 1.568v.21a.174.174 0 01-.056.126.151.151 0 01-.112.042h-1.61a.205.205 0 01-.126-.042.205.205 0 01-.042-.126v-.112c0-.392-.163-.723-.49-.994-.317-.28-.756-.42-1.316-.42-.439 0-.784.093-1.036.28-.243.187-.364.443-.364.77 0 .233.07.43.21.588.15.159.364.303.644.434.29.121.732.29 1.33.504.663.243 1.18.457 1.554.644.383.187.723.467 1.022.84.308.364.462.84.462 1.428 0 .877-.322 1.573-.966 2.086-.644.504-1.517.756-2.618.756zm11.686-9.8a.22.22 0 01.196-.112h1.638c.047 0 .084.019.112.056a.133.133 0 01.056.112v9.464a.174.174 0 01-.056.126.151.151 0 01-.112.042h-1.638a.205.205 0 01-.126-.042.205.205 0 01-.042-.126V6.658c0-.037-.01-.056-.028-.056-.019 0-.037.014-.056.042l-1.484 2.324a.22.22 0 01-.196.112h-.826a.22.22 0 01-.196-.112l-1.484-2.324c-.019-.028-.037-.037-.056-.028-.019 0-.028.019-.028.056v6.16a.174.174 0 01-.056.126.151.151 0 01-.112.042h-1.638a.205.205 0 01-.126-.042.205.205 0 01-.042-.126V3.368c0-.047.014-.084.042-.112a.174.174 0 01.126-.056h1.638a.22.22 0 01.196.112l2.1 3.262c.028.056.056.056.084 0l2.114-3.262zM49.149 13c-.093 0-.154-.047-.182-.14l-.42-1.372c-.019-.037-.042-.056-.07-.056h-3.444c-.028 0-.052.019-.07.056l-.406 1.372c-.028.093-.089.14-.182.14h-1.778c-.056 0-.098-.014-.126-.042-.028-.037-.033-.089-.014-.154L45.48 3.34c.028-.093.088-.14.182-.14h2.198c.093 0 .154.047.182.14l3.024 9.464c.01.019.014.042.014.07 0 .084-.052.126-.154.126h-1.778zm-3.682-3.178c-.01.056.01.084.056.084h2.464c.056 0 .075-.028.056-.084l-1.26-4.158c-.01-.037-.023-.051-.042-.042-.019 0-.033.014-.042.042l-1.232 4.158z",fill:"#718096"});var Bp=function(e){return i.createElement("svg",jp({viewBox:"0 0 88 43",fill:"none"},e),Wp,Hp)};function zp(){return(zp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Up=i.createElement("path",{d:"M7.875 16.972L12 21.25m0 0l4.125-4.278M12 21.25v-9.625M20.877 17.125a5.017 5.017 0 00.076-8.138A4.99 4.99 0 0018 8.021h-1.26a8.019 8.019 0 00-4.513-5.338A7.98 7.98 0 002.54 5.285a8.021 8.021 0 00.468 10.037",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});var qp=function(e){return i.createElement("svg",zp({viewBox:"0 0 24 24"},e),Up)},Yp=n(18),Kp=n.n(Yp),$p=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};let Qp=class extends s.a.Component{constructor(){super(...arguments),this.handleOpen=async()=>{const{error:e,data:t}=await window.transport.request({channel:"window",action:"pickPrismaSchema",payload:{data:null}});e||await window.transport.request({channel:"project",action:"open",payload:{data:{schemaPath:t.path}}})},this.handleInstallUpdate=async()=>{await Lo.download(),await Lo.install()},this.handleCancelDownload=async()=>{await Lo.cancelDownload()}}async componentDidMount(){await Lo.check()}render(){return s.a.createElement("div",{className:Ro()(Kp.a.container,{"theme--light":"light"===yt.theme,"theme--dark":"dark"===yt.theme})},s.a.createElement("div",{className:Kp.a.container},s.a.createElement("div",{className:Kp.a.left},s.a.createElement("div",{className:Kp.a.logotype},s.a.createElement("img",{src:"images/icon-1024.png",className:Kp.a.logo}),s.a.createElement(Bp,{className:Kp.a.type})),Lo.hasCheckedForUpdates&&!Lo.isUpToDate&&s.a.createElement("div",{className:Kp.a.updateContainer},s.a.createElement(qp,{className:Kp.a.downloadIcon}),!Lo.isDownloading&&!Lo.isInstalling&&s.a.createElement(s.a.Fragment,null,s.a.createElement("span",{className:Kp.a.updateText},"New version available"),s.a.createElement(jo.a,{green:!0,onClick:this.handleInstallUpdate},"Update")),Lo.isDownloading&&s.a.createElement(s.a.Fragment,null,s.a.createElement("span",{className:Kp.a.updateText},"Downloading .."),s.a.createElement(jo.a,{red:!0,onClick:this.handleCancelDownload},"Cancel")),Lo.isInstalling&&s.a.createElement(s.a.Fragment,null,s.a.createElement("span",{className:Kp.a.updateText},"Installing .."),s.a.createElement(jo.a,{red:!0,onClick:this.handleCancelDownload},"Cancel"))),s.a.createElement("div",{className:Kp.a.links},s.a.createElement("a",{className:Kp.a.link},"0.365.0"),"|",s.a.createElement("a",{className:Kp.a.link,href:"https://github.com/prisma/studio/releases",target:"_blank",rel:"noreferrer noopener"},"Changelog"))),s.a.createElement("div",{className:Kp.a.right},s.a.createElement(Vp,null),s.a.createElement("div",{className:Kp.a.footer},s.a.createElement(jo.a,{className:Kp.a.button,onClick:this.handleOpen},"Select Schema")))))}};Qp=$p([So.a],Qp);var Xp=Qp;var Jp=()=>({ActionStore:In,BootstrapStore:_o,ConfigStore:Me,DMMFStore:Vn,EnumStore:Rt,ErrorStore:Yt,FieldStore:It,LayoutStore:Wt,ModelStore:kt,PersistenceStore:pt,ProjectStore:yo,RecordStore:Gn,ScriptStore:io,SessionStore:Cn,TabStore:ho,TelemetryStore:zt,ThemeStore:yt,UpdateStore:Lo});n(128);(function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Ae),void 0===e.release){var t=Object(g.f)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&f.a.enable();var n=Object(h.a)(),o=new e(t);n.bindClient(o)}(ne,e)})({dsn:"https://fb6e137ff2ea425da39d6e92a4d69b58@sentry.io/1762788"}),Object(u.configure)({enforceActions:"always"}),window.PrismaStudio={init:async(e={})=>{var t,n;if(Me.update(e),"http"===Me.transport)window.transport=new Ne.HTTPBrowserTransport;else{if("electron"!==Me.transport)return void console.error("Unrecognized transport, aborting");window.transport=new Ne.ElectronBrowserTransport}await(null===(n=(t=window.transport).init)||void 0===n?void 0:n.call(t))},databrowser:async(e={})=>{await window.PrismaStudio.init(e),_o.init(),l.a.render(s.a.createElement(Pp),document.getElementById("root"))},splash:async(e={})=>{await window.PrismaStudio.init(e),l.a.render(s.a.createElement(Xp),document.getElementById("root"))}},window.toJS=u.toJS,window.stores=Jp(),console.log("Studio version","0.365.0")},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(7),r=n(11),i=n(44),s=n(68),a=function(){function e(e,t,n){void 0===t&&(t=new s.a),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop();i&&i.client&&i.client[e]&&(t=i.client)[e].apply(t,o.d(n,[i.scope]))},e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=this.getStack(),t=e.length>0?e[e.length-1].scope:void 0,n=s.a.clone(t);return this.getStack().push({client:this.getClient(),scope:n}),n},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(r.m)(),i=t;if(!t){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(e){s=e}i={originalException:e,syntheticException:s}}return this._invokeClient("captureException",e,o.a({},i,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var i=this._lastEventId=Object(r.m)(),s=n;if(!n){var a=void 0;try{throw new Error(e)}catch(e){a=e}s={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,t,o.a({},s,{event_id:i})),i},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(r.m)();return this._invokeClient("captureEvent",e,o.a({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var i=n.client.getOptions&&n.client.getOptions()||{},s=i.beforeBreadcrumb,a=void 0===s?null:s,l=i.maxBreadcrumbs,u=void 0===l?100:l;if(!(u<=0)){var c=Object(r.l)(),p=o.a({timestamp:c},e),d=a?Object(r.c)((function(){return a(p,t)})):p;null!==d&&n.scope.addBreadcrumb(d,Math.min(u,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=u(this);try{e(this)}finally{u(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return i.a.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=l(),r=o.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);i.a.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function l(){var e=Object(r.f)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function u(e){var t=l(),n=d(t);return h(t,e),n}function c(){var e=l();return p(e)&&!d(e).isOlderThan(3)||h(e,new a),Object(r.i)()?function(e){try{var t=l().__SENTRY__;if(!t||!t.extensions||!t.extensions.domain)return d(e);var n=t.extensions.domain.active;if(!n)return d(e);if(!p(n)||d(n).isOlderThan(3)){var o=d(e).getStackTop();h(n,new a(o.client,s.a.clone(o.scope)))}return d(n)}catch(t){return d(e)}}(e):d(e)}function p(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function d(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new a),e.__SENTRY__.hub}function h(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}}]);
403
- //# sourceMappingURL=main.js.map