@prisma/cli 2.20.1 → 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.
- package/LICENSE +158 -0
- package/README.md +29 -28
- package/dist/adapters/config.js +74 -0
- package/dist/adapters/local-state.js +98 -0
- package/dist/adapters/mock-api.js +57 -0
- package/dist/adapters/token-storage.js +43 -0
- package/dist/cli.js +9 -0
- package/dist/cli2.js +59 -0
- package/dist/commands/app/index.js +223 -0
- package/dist/commands/auth/index.js +42 -0
- package/dist/commands/branch/index.js +51 -0
- package/dist/commands/project/index.js +45 -0
- package/dist/controllers/app.js +813 -0
- package/dist/controllers/auth.js +107 -0
- package/dist/controllers/branch.js +73 -0
- package/dist/controllers/project.js +214 -0
- package/dist/controllers/select-prompt-port.js +12 -0
- package/dist/lib/app/bun-project.js +39 -0
- package/dist/lib/app/env-vars.js +24 -0
- package/dist/lib/app/local-dev.js +149 -0
- package/dist/lib/app/preview-build.js +283 -0
- package/dist/lib/app/preview-interaction.js +38 -0
- package/dist/lib/app/preview-progress.js +139 -0
- package/dist/lib/app/preview-provider.js +232 -0
- package/dist/lib/auth/auth-ops.js +57 -0
- package/dist/lib/auth/client.js +22 -0
- package/dist/lib/auth/guard.js +34 -0
- package/dist/lib/auth/login.js +117 -0
- package/dist/output/patterns.js +93 -0
- package/dist/presenters/app.js +405 -0
- package/dist/presenters/auth.js +73 -0
- package/dist/presenters/branch.js +111 -0
- package/dist/presenters/project.js +84 -0
- package/dist/shell/command-meta.js +320 -0
- package/dist/shell/command-runner.js +33 -0
- package/dist/shell/errors.js +66 -0
- package/dist/shell/global-flags.js +25 -0
- package/dist/shell/help.js +78 -0
- package/dist/shell/output.js +54 -0
- package/dist/shell/prompt.js +31 -0
- package/dist/shell/runtime.js +51 -0
- package/dist/shell/ui.js +59 -0
- package/dist/use-cases/auth.js +70 -0
- package/dist/use-cases/branch.js +95 -0
- package/dist/use-cases/create-cli-gateways.js +93 -0
- package/dist/use-cases/project.js +75 -0
- package/package.json +49 -137
- package/build/child.js +0 -4110
- package/build/index.js +0 -104447
- package/build/public/.DS_Store +0 -0
- package/build/public/assets/alert.60ea9f84.svg +0 -5
- package/build/public/assets/array.1a36c222.svg +0 -4
- package/build/public/assets/boolean.9188b434.svg +0 -4
- package/build/public/assets/browser.21a575be.js +0 -1
- package/build/public/assets/browser.38b7fdb1.js +0 -1
- package/build/public/assets/browser.cdd2249a.js +0 -1
- package/build/public/assets/chevron-down.24f76e3c.svg +0 -3
- package/build/public/assets/cross.c2610cf5.svg +0 -11
- package/build/public/assets/datetime.a3bf710a.svg +0 -4
- package/build/public/assets/download.8d34b65a.svg +0 -4
- package/build/public/assets/ellipsis.a8c5a34a.svg +0 -10
- package/build/public/assets/enum.7ec0b64c.svg +0 -6
- package/build/public/assets/folder.d77b8eaf.svg +0 -6
- package/build/public/assets/hamburger.5fdadeac.svg +0 -4
- package/build/public/assets/logotype.a960b169.svg +0 -4
- package/build/public/assets/number.85ddf96b.svg +0 -7
- package/build/public/assets/object.0ba944a6.svg +0 -5
- package/build/public/assets/play.8811691e.svg +0 -6
- package/build/public/assets/plus.8fbf7ad3.svg +0 -4
- package/build/public/assets/read.79154521.svg +0 -1
- package/build/public/assets/refresh.d5448ccc.svg +0 -4
- package/build/public/assets/search.2ed766ce.svg +0 -7
- package/build/public/assets/settings.5ad25af2.svg +0 -8
- package/build/public/assets/string.ea615a24.svg +0 -4
- package/build/public/assets/tick-indeterminate.aec8a44d.svg +0 -3
- package/build/public/assets/tick.8cbb6a93.svg +0 -4
- package/build/public/assets/vendor.c4d0f081.js +0 -354
- package/build/public/demo.html +0 -17
- package/build/public/demoChunk.js +0 -2
- package/build/public/electron-darwin.html +0 -19
- package/build/public/electron-linux.html +0 -18
- package/build/public/electron-mac.html +0 -18
- package/build/public/electron-win.html +0 -17
- package/build/public/electron-win32.html +0 -18
- package/build/public/electron.html +0 -17
- package/build/public/electronBus.js +0 -2
- package/build/public/electronChunk.js +0 -2
- package/build/public/favicon/apple-touch-icon.png +0 -0
- package/build/public/favicon/favicon-16x16.png +0 -0
- package/build/public/favicon/favicon-32x32.png +0 -0
- package/build/public/favicon/prisma.png +0 -0
- package/build/public/favicon.svg +0 -5
- package/build/public/fonts/.DS_Store +0 -0
- package/build/public/fonts/Inter.ttf +0 -0
- package/build/public/fonts/RobotoMono.ttf +0 -0
- package/build/public/icons/.DS_Store +0 -0
- package/build/public/icons/alert.svg +0 -5
- package/build/public/icons/array.svg +0 -4
- package/build/public/icons/bin.svg +0 -37
- package/build/public/icons/boolean.svg +0 -4
- package/build/public/icons/check.svg +0 -3
- package/build/public/icons/chevron-down.svg +0 -3
- package/build/public/icons/code.svg +0 -4
- package/build/public/icons/cross.svg +0 -11
- package/build/public/icons/data-tool.svg +0 -5
- package/build/public/icons/database.svg +0 -4
- package/build/public/icons/datetime.svg +0 -4
- package/build/public/icons/double-arrow-right.svg +0 -4
- package/build/public/icons/download.svg +0 -4
- package/build/public/icons/ellipsis.svg +0 -10
- package/build/public/icons/enum.svg +0 -6
- package/build/public/icons/expand.svg +0 -4
- package/build/public/icons/eye.svg +0 -20
- package/build/public/icons/filters.svg +0 -5
- package/build/public/icons/folder.svg +0 -6
- package/build/public/icons/hamburger.svg +0 -4
- package/build/public/icons/icon.svg +0 -199
- package/build/public/icons/logo.svg +0 -199
- package/build/public/icons/logotype.svg +0 -4
- package/build/public/icons/number.svg +0 -7
- package/build/public/icons/object.svg +0 -5
- package/build/public/icons/play.svg +0 -6
- package/build/public/icons/plus.svg +0 -4
- package/build/public/icons/refresh.svg +0 -4
- package/build/public/icons/search.svg +0 -7
- package/build/public/icons/settings.svg +0 -8
- package/build/public/icons/string.svg +0 -4
- package/build/public/icons/tick-indeterminate.svg +0 -3
- package/build/public/icons/tick.svg +0 -4
- package/build/public/illustrations/.DS_Store +0 -0
- package/build/public/illustrations/empty.svg +0 -1
- package/build/public/illustrations/read.svg +0 -1
- package/build/public/illustrations/searching.svg +0 -1
- package/build/public/images/.DS_Store +0 -0
- package/build/public/images/icon-1024.png +0 -0
- package/build/public/index.css +0 -1
- package/build/public/index.html +0 -49
- package/build/public/index.js +0 -1
- package/build/public/main.31f688a6254e294d9128.css +0 -118
- package/build/public/main.31f688a6254e294d9128.css.map +0 -1
- package/build/public/main.364c712f32662ff0e43d.css +0 -116
- package/build/public/main.364c712f32662ff0e43d.css.map +0 -1
- package/build/public/main.42ef3fe7e97347765c91.css +0 -118
- package/build/public/main.42ef3fe7e97347765c91.css.map +0 -1
- package/build/public/main.503446defafe7aeca2f3.css +0 -116
- package/build/public/main.503446defafe7aeca2f3.css.map +0 -1
- package/build/public/main.c50a3b5980fe26f78b65.css +0 -118
- package/build/public/main.c50a3b5980fe26f78b65.css.map +0 -1
- package/build/public/main.cda25e5813776c2af295.css +0 -116
- package/build/public/main.cda25e5813776c2af295.css.map +0 -1
- package/build/public/main.dbac3b290f78404ff579.css +0 -116
- package/build/public/main.dbac3b290f78404ff579.css.map +0 -1
- package/build/public/main.f8ce44e122e5e2b8f778.css +0 -118
- package/build/public/main.f8ce44e122e5e2b8f778.css.map +0 -1
- package/build/public/main.fc9ea7521a4aecce1a77.css +0 -118
- package/build/public/main.fc9ea7521a4aecce1a77.css.map +0 -1
- package/build/public/main.js +0 -403
- package/build/public/main.js.map +0 -1
- package/build/public/mainChunk.0a84f3ba4d2ab481e877.css +0 -116
- package/build/public/mainChunk.1b327d58afbddc917bce.css +0 -118
- package/build/public/mainChunk.2cdf583b2bd51aa67587.css +0 -118
- package/build/public/mainChunk.544af00f7e9ffcbe782c.css +0 -118
- package/build/public/mainChunk.56f96a13868b2b4a53be.css +0 -118
- package/build/public/mainChunk.5cee429bfbf06e7ecb39.css +0 -118
- package/build/public/mainChunk.a862474ed4cdb421ffa2.css +0 -118
- package/build/public/mainChunk.ada34153c4911b5ac22b.css +0 -118
- package/build/public/mainChunk.c16a8d01b2c49b2f2751.css +0 -118
- package/build/public/mainChunk.ca4a878d5478b9320be8.css +0 -116
- package/build/public/mainChunk.e3adc8758b4395546cef.css +0 -116
- package/build/public/mainChunk.f2c59fcbfc455d8b9de5.css +0 -118
- package/build/public/mainChunk.js +0 -396
- package/build/public/manifest.json +0 -34
- package/build/public/preview.html +0 -16
- package/build/public/previewBus.js +0 -2
- package/build/public/previewChunk.js +0 -2
- package/build/public/projects.html +0 -86
- package/build/public/server.html +0 -16
- package/build/public/serverBus.js +0 -2
- package/build/public/serverChunk.js +0 -2
- package/build/public/splash.html +0 -17
- package/build/public/studioBundle.828f34b1781061528841.css +0 -118
- package/build/public/studioBundle.bfe9138b2e0293fcb7da.css +0 -118
- package/build/public/studioBundle.c5b256eede880e502aac.css +0 -118
- package/build/public/studioBundle.e43df511c8e2e368900a.css +0 -118
- package/build/public/studioBundle.e69382554c2a2942ae32.css +0 -118
- package/build/public/studioBundle.ee21aa56a3999a2b380b.css +0 -118
- package/build/public/studioBundle.js +0 -396
- package/build/public/vercel.html +0 -16
- package/build/public/vercelChunk.js +0 -2
- package/build/public/views/index.pug +0 -89
- package/build/xdg-open +0 -1066
- package/install/index.js +0 -5
- package/preinstall/index.js +0 -46
- package/prisma-client/README.md +0 -27
- package/prisma-client/generator-build/.DS_Store +0 -0
- package/prisma-client/generator-build/index.js +0 -79697
- package/prisma-client/index-browser.js +0 -3
- package/prisma-client/index.d.ts +0 -1
- package/prisma-client/index.js +0 -11
- package/prisma-client/package.json +0 -138
- package/prisma-client/runtime/index-browser.d.ts +0 -267
- package/prisma-client/runtime/index-browser.js +0 -2273
- package/prisma-client/runtime/index.d.ts +0 -1018
- package/prisma-client/runtime/index.js +0 -35028
- package/prisma-client/scripts/backup-index-browser.js +0 -3
- package/prisma-client/scripts/backup-index.d.ts +0 -1
- package/prisma-client/scripts/backup-index.js +0 -11
- package/prisma-client/scripts/colors.js +0 -180
- package/prisma-client/scripts/default-index-browser.js +0 -12
- package/prisma-client/scripts/default-index.d.ts +0 -47
- package/prisma-client/scripts/default-index.js +0 -12
- package/prisma-client/scripts/get-packed-client.js +0 -12
- package/prisma-client/scripts/mock-fs.js +0 -14
- package/prisma-client/scripts/postinstall.d.ts +0 -5
- package/prisma-client/scripts/postinstall.js +0 -398
- package/scripts/install-entry.js +0 -8
- package/scripts/preinstall-entry.js +0 -9
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=Object.prototype.hasOwnProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.propertyIsEnumerable,r=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,i=(e,i)=>{for(var s in i||(i={}))t.call(i,s)&&r(e,s,i[s]);if(n)for(var s of n(i))o.call(i,s)&&r(e,s,i[s]);return e},s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})})),t}function l(e){var t={exports:{}};return e(t,t.exports),t.exports
|
|
2
|
-
/*
|
|
3
|
-
object-assign
|
|
4
|
-
(c) Sindre Sorhus
|
|
5
|
-
@license MIT
|
|
6
|
-
*/}var u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function d(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var h=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(r){return!1}}()?Object.assign:function(e,t){for(var n,o,r=d(e),i=1;i<arguments.length;i++){for(var s in n=Object(arguments[i]))p.call(n,s)&&(r[s]=n[s]);if(u){o=u(n);for(var a=0;a<o.length;a++)c.call(n,o[a])&&(r[o[a]]=n[o[a]])}}return r},f="function"==typeof Symbol&&Symbol.for,g=f?Symbol.for("react.element"):60103,v=f?Symbol.for("react.portal"):60106,y=f?Symbol.for("react.fragment"):60107,m=f?Symbol.for("react.strict_mode"):60108,C=f?Symbol.for("react.profiler"):60114,w=f?Symbol.for("react.provider"):60109,E=f?Symbol.for("react.context"):60110,b=f?Symbol.for("react.forward_ref"):60112,R=f?Symbol.for("react.suspense"):60113,_=f?Symbol.for("react.memo"):60115,O=f?Symbol.for("react.lazy"):60116,S="function"==typeof Symbol&&Symbol.iterator;
|
|
7
|
-
/** @license React v16.13.1
|
|
8
|
-
* react.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/function T(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 D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P={};function A(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||D}function N(){}function x(e,t,n){this.props=e,this.context=t,this.refs=P,this.updater=n||D}A.prototype.isReactComponent={},A.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(T(85));this.updater.enqueueSetState(this,e,t,"setState")},A.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},N.prototype=A.prototype;var F=x.prototype=new N;F.constructor=x,h(F,A.prototype),F.isPureReactComponent=!0;var I={current:null},L=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var o,r={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)L.call(t,o)&&!M.hasOwnProperty(o)&&(r[o]=t[o]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}if(e&&e.defaultProps)for(o in a=e.defaultProps)void 0===r[o]&&(r[o]=a[o]);return{$$typeof:g,type:e,key:i,ref:s,props:r,_owner:I.current}}function G(e){return"object"==typeof e&&null!==e&&e.$$typeof===g}var V=/\/+/g,W=[];function H(e,t,n,o){if(W.length){var r=W.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 B(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>W.length&&W.push(e)}function j(e,t,n,o){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var i=!1;if(null===e)i=!0;else switch(r){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case g:case v:i=!0}}if(i)return n(o,e,""===t?"."+z(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var a=t+z(r=e[s],s);i+=j(r,a,n,o)}else if(null===e||"object"!=typeof e?a=null:a="function"==typeof(a=S&&e[S]||e["@@iterator"])?a:null,"function"==typeof a)for(e=a.call(e),s=0;!(r=e.next()).done;)i+=j(r=r.value,a=t+z(r,s++),n,o);else if("object"===r)throw n=""+e,Error(T(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return i}function U(e,t,n){return null==e?0:j(e,"",t,n)}function z(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 Y(e,t){e.func.call(e.context,t,e.count++)}function K(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?q(e,o,n,(function(e){return e})):null!=e&&(G(e)&&(e=function(e,t){return{$$typeof:g,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(V,"$&/")+"/")+n)),o.push(e))}function q(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(V,"$&/")+"/"),U(e,K,t=H(t,i,o,r)),B(t)}var $={current:null};function Q(){var e=$.current;if(null===e)throw Error(T(321));return e}var X={Children:{map:function(e,t,n){if(null==e)return e;var o=[];return q(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;U(e,Y,t=H(null,null,t,n)),B(t)},count:function(e){return U(e,(function(){return null}),null)},toArray:function(e){var t=[];return q(e,t,null,(function(e){return e})),t},only:function(e){if(!G(e))throw Error(T(143));return e}},Component:A,Fragment:y,Profiler:C,PureComponent:x,StrictMode:m,Suspense:R,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:$,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:I,IsSomeRendererActing:{current:!1},assign:h},cloneElement:function(e,t,n){if(null==e)throw Error(T(267,e));var o=h({},e.props),r=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=I.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)L.call(t,l)&&!M.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==a?a[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}return{$$typeof:g,type:e.type,key:r,ref:i,props:o,_owner:s}},createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:E,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:w,_context:e},e.Consumer=e},createElement:k,createFactory:function(e){var t=k.bind(null,e);return t.type=e,t},createRef:function(){return{current:null}},forwardRef:function(e){return{$$typeof:b,render:e}},isValidElement:G,lazy:function(e){return{$$typeof:O,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:_,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return Q().useCallback(e,t)},useContext:function(e,t){return Q().useContext(e,t)},useDebugValue:function(){},useEffect:function(e,t){return Q().useEffect(e,t)},useImperativeHandle:function(e,t,n){return Q().useImperativeHandle(e,t,n)},useLayoutEffect:function(e,t){return Q().useLayoutEffect(e,t)},useMemo:function(e,t){return Q().useMemo(e,t)},useReducer:function(e,t,n){return Q().useReducer(e,t,n)},useRef:function(e){return Q().useRef(e)},useState:function(e){return Q().useState(e)},version:"16.13.1"},J=l((function(e){e.exports=X})),Z=l((function(e,t){var n,o,r,i,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,l=null,u=function(){if(null!==a)try{var e=t.unstable_now();a(!0,e),a=null}catch(n){throw setTimeout(u,0),n}},p=Date.now();t.unstable_now=function(){return Date.now()-p},n=function(e){null!==a?setTimeout(n,0,e):(a=e,setTimeout(u,0))},o=function(e,t){l=setTimeout(e,t)},r=function(){clearTimeout(l)},i=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var c=window.performance,d=window.Date,h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var g=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 g&&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 c&&"function"==typeof c.now)t.unstable_now=function(){return c.now()};else{var v=d.now();t.unstable_now=function(){return d.now()-v}}var y=!1,m=null,C=-1,w=5,E=0;i=function(){return t.unstable_now()>=E},s=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"):w=0<e?Math.floor(1e3/e):5};var b=new MessageChannel,R=b.port2;b.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();E=e+w;try{m(!0,e)?R.postMessage(null):(y=!1,m=null)}catch(n){throw R.postMessage(null),n}}else y=!1},n=function(e){m=e,y||(y=!0,R.postMessage(null))},o=function(e,n){C=h((function(){e(t.unstable_now())}),n)},r=function(){f(C),C=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,r=e[o];if(!(void 0!==r&&0<T(r,t)))break e;e[o]=t,e[n]=r,n=o}}function O(e){return void 0===(e=e[0])?null:e}function S(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>T(s,n))void 0!==l&&0>T(l,s)?(e[o]=l,e[a]=n,o=a):(e[o]=s,e[i]=n,o=i);else{if(!(void 0!==l&&0>T(l,n)))break e;e[o]=l,e[a]=n,o=a}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var D=[],P=[],A=1,N=null,x=3,F=!1,I=!1,L=!1;function M(e){for(var t=O(P);null!==t;){if(null===t.callback)S(P);else{if(!(t.startTime<=e))break;S(P),t.sortIndex=t.expirationTime,_(D,t)}t=O(P)}}function k(e){if(L=!1,M(e),!I)if(null!==O(D))I=!0,n(G);else{var t=O(P);null!==t&&o(k,t.startTime-e)}}function G(e,n){I=!1,L&&(L=!1,r()),F=!0;var s=x;try{for(M(n),N=O(D);null!==N&&(!(N.expirationTime>n)||e&&!i());){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===O(D)&&S(D),M(n)}else S(D);N=O(D)}if(null!==N)var u=!0;else{var p=O(P);null!==p&&o(k,p.startTime-n),u=!1}return u}finally{N=null,x=s,F=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var W=s;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(){I||F||(I=!0,n(G))},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return O(D)},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,i,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:V(e)}else s=V(e),l=a;return e={id:A++,callback:i,priorityLevel:e,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>a?(e.sortIndex=l,_(P,e),null===O(D)&&e===O(P)&&(L?r():L=!0,o(k,l-a))):(e.sortIndex=s,_(D,e),I||F||(I=!0,n(G))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=O(D);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=x;return function(){var n=x;x=t;try{return e.apply(this,arguments)}finally{x=n}}}})),ee=l((function(e){e.exports=Z}));
|
|
15
|
-
/** @license React v16.13.1
|
|
16
|
-
* react-dom.production.min.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/
|
|
23
|
-
function te(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(!J)throw Error(te(227));function ne(e,t,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(p){this.onError(p)}}var oe=!1,re=null,ie=!1,se=null,ae={onError:function(e){oe=!0,re=e}};function le(e,t,n,o,r,i,s,a,l){oe=!1,re=null,ne.apply(ae,arguments)}var ue=null,pe=null,ce=null;function de(e,t,n){var o=e.type||"unknown-event";e.currentTarget=ce(n),function(e,t,n,o,r,i,s,a,l){if(le.apply(this,arguments),oe){if(!oe)throw Error(te(198));var u=re;oe=!1,re=null,ie||(ie=!0,se=u)}}(o,t,void 0,e),e.currentTarget=null}var he=null,fe={};function ge(){if(he)for(var e in fe){var t=fe[e],n=he.indexOf(e);if(!(-1<n))throw Error(te(96,e));if(!ye[n]){if(!t.extractEvents)throw Error(te(97,e));for(var o in ye[n]=t,n=t.eventTypes){var r=void 0,i=n[o],s=t,a=o;if(me.hasOwnProperty(a))throw Error(te(99,a));me[a]=i;var l=i.phasedRegistrationNames;if(l){for(r in l)l.hasOwnProperty(r)&&ve(l[r],s,a);r=!0}else i.registrationName?(ve(i.registrationName,s,a),r=!0):r=!1;if(!r)throw Error(te(98,o,e))}}}}function ve(e,t,n){if(Ce[e])throw Error(te(100,e));Ce[e]=t,we[e]=t.eventTypes[n].dependencies}var ye=[],me={},Ce={},we={};function Ee(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];if(!fe.hasOwnProperty(t)||fe[t]!==o){if(fe[t])throw Error(te(102,t));fe[t]=o,n=!0}}n&&ge()}var be=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Re=null,_e=null,Oe=null;function Se(e){if(e=pe(e)){if("function"!=typeof Re)throw Error(te(280));var t=e.stateNode;t&&(t=ue(t),Re(e.stateNode,e.type,t))}}function Te(e){_e?Oe?Oe.push(e):Oe=[e]:_e=e}function De(){if(_e){var e=_e,t=Oe;if(Oe=_e=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Pe(e,t){return e(t)}function Ae(e,t,n,o,r){return e(t,n,o,r)}function Ne(){}var xe=Pe,Fe=!1,Ie=!1;function Le(){null===_e&&null===Oe||(Ne(),De())}function Me(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return xe(e,t,n)}finally{Ie=!1,Le()}}var ke=/^[: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]*$/,Ge=Object.prototype.hasOwnProperty,Ve={},We={};function He(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 Be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Be[e]=new He(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Be[t]=new He(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Be[e]=new He(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Be[e]=new He(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){Be[e]=new He(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Be[e]=new He(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Be[e]=new He(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Be[e]=new He(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Be[e]=new He(e,5,!1,e.toLowerCase(),null,!1)}));var je=/[\-:]([a-z])/g;function Ue(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(je,Ue);Be[t]=new He(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(je,Ue);Be[t]=new He(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(je,Ue);Be[t]=new He(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Be[e]=new He(e,1,!1,e.toLowerCase(),null,!1)})),Be.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Be[e]=new He(e,1,!1,e.toLowerCase(),null,!0)}));var ze=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Ye(e,t,n,o){var r=Be.hasOwnProperty(t)?Be[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!!Ge.call(We,e)||!Ge.call(Ve,e)&&(ke.test(e)?We[e]=!0:(Ve[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))))}ze.hasOwnProperty("ReactCurrentDispatcher")||(ze.ReactCurrentDispatcher={current:null}),ze.hasOwnProperty("ReactCurrentBatchConfig")||(ze.ReactCurrentBatchConfig={suspense:null});var Ke=/^(.*)[\\\/]/,qe="function"==typeof Symbol&&Symbol.for,$e=qe?Symbol.for("react.element"):60103,Qe=qe?Symbol.for("react.portal"):60106,Xe=qe?Symbol.for("react.fragment"):60107,Je=qe?Symbol.for("react.strict_mode"):60108,Ze=qe?Symbol.for("react.profiler"):60114,et=qe?Symbol.for("react.provider"):60109,tt=qe?Symbol.for("react.context"):60110,nt=qe?Symbol.for("react.concurrent_mode"):60111,ot=qe?Symbol.for("react.forward_ref"):60112,rt=qe?Symbol.for("react.suspense"):60113,it=qe?Symbol.for("react.suspense_list"):60120,st=qe?Symbol.for("react.memo"):60115,at=qe?Symbol.for("react.lazy"):60116,lt=qe?Symbol.for("react.block"):60121,ut="function"==typeof Symbol&&Symbol.iterator;function pt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ut&&e[ut]||e["@@iterator"])?e:null}function ct(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 Xe:return"Fragment";case Qe:return"Portal";case Ze:return"Profiler";case Je:return"StrictMode";case rt:return"Suspense";case it:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case ot:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case st:return ct(e.type);case lt:return ct(e.render);case at:if(e=1===e._status?e._result:null)return ct(e)}return null}function dt(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=ct(e.type);n=null,o&&(n=ct(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace(Ke,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ht(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(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 vt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=ft(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function yt(e,t){var n=t.checked;return h({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function mt(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=ht(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 Ct(e,t){null!=(t=t.checked)&&Ye(e,"checked",t,!1)}function wt(e,t){Ct(e,t);var n=ht(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")?bt(e,t.type,n):t.hasOwnProperty("defaultValue")&&bt(e,t.type,ht(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Et(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 bt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Rt(e,t){return e=h({children:void 0},t),(t=function(e){var t="";return J.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function _t(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=""+ht(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 Ot(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(te(91));return h({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function St(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(te(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(te(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ht(n)}}function Tt(e,t){var n=ht(t.value),o=ht(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 Dt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Pt="http://www.w3.org/1999/xhtml",At="http://www.w3.org/2000/svg";function Nt(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 xt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Nt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ft,It,Lt=(It=function(e,t){if(e.namespaceURI!==At||"innerHTML"in e)e.innerHTML=t;else{for((Ft=Ft||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ft.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return It(e,t)}))}:It);function Mt(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 kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gt={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},Vt={},Wt={};function Ht(e){if(Vt[e])return Vt[e];if(!Gt[e])return e;var t,n=Gt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Wt)return Vt[e]=n[t];return e}be&&(Wt=document.createElement("div").style,"AnimationEvent"in window||(delete Gt.animationend.animation,delete Gt.animationiteration.animation,delete Gt.animationstart.animation),"TransitionEvent"in window||delete Gt.transitionend.transition);var Bt=Ht("animationend"),jt=Ht("animationiteration"),Ut=Ht("animationstart"),zt=Ht("transitionend"),Yt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kt=new("function"==typeof WeakMap?WeakMap:Map);function qt(e){var t=Kt.get(e);return void 0===t&&(t=new Map,Kt.set(e,t)),t}function $t(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 Qt(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 Xt(e){if($t(e)!==e)throw Error(te(188))}function Jt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=$t(e)))throw Error(te(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 Xt(r),e;if(i===o)return Xt(r),t;i=i.sibling}throw Error(te(188))}if(n.return!==o.return)n=r,o=i;else{for(var s=!1,a=r.child;a;){if(a===n){s=!0,n=r,o=i;break}if(a===o){s=!0,o=r,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,o=r;break}if(a===o){s=!0,o=i,n=r;break}a=a.sibling}if(!s)throw Error(te(189))}}if(n.alternate!==o)throw Error(te(190))}if(3!==n.tag)throw Error(te(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 Zt(e,t){if(null==t)throw Error(te(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 en(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var tn=null;function nn(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)de(e,t[o],n[o]);else t&&de(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function on(e){if(null!==e&&(tn=Zt(tn,e)),e=tn,tn=null,e){if(en(e,nn),tn)throw Error(te(95));if(ie)throw e=se,ie=!1,se=null,e}}function rn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function sn(e){if(!be)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 an=[];function ln(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>an.length&&an.push(e)}function un(e,t,n,o){if(an.length){var r=an.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 pn(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=Oo(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=rn(e.nativeEvent);o=e.topLevelType;var i=e.nativeEvent,s=e.eventSystemFlags;0===n&&(s|=64);for(var a=null,l=0;l<ye.length;l++){var u=ye[l];u&&(u=u.extractEvents(o,t,i,r,s))&&(a=Zt(a,u))}on(a)}}function cn(e,t,n){if(!n.has(e)){switch(e){case"scroll":zn(t,"scroll",!0);break;case"focus":case"blur":zn(t,"focus",!0),zn(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":sn(e)&&zn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Yt.indexOf(e)&&Un(e,t)}n.set(e,null)}}var dn,hn,fn,gn=!1,vn=[],yn=null,mn=null,Cn=null,wn=new Map,En=new Map,bn=[],Rn="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(" "),_n="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function On(e,t,n,o,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r,container:o}}function Sn(e,t){switch(e){case"focus":case"blur":yn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":En.delete(t.pointerId)}}function Tn(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e=On(t,n,o,r,i),null!==t&&(null!==(t=So(t))&&hn(t)),e):(e.eventSystemFlags|=o,e)}function Dn(e){var t=Oo(e.target);if(null!==t){var n=$t(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qt(n)))return e.blockedOn=t,void ee.unstable_runWithPriority(e.priority,(function(){fn(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pn(e){if(null!==e.blockedOn)return!1;var t=$n(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=So(t);return null!==n&&hn(n),e.blockedOn=t,!1}return!0}function An(e,t,n){Pn(e)&&n.delete(t)}function Nn(){for(gn=!1;0<vn.length;){var e=vn[0];if(null!==e.blockedOn){null!==(e=So(e.blockedOn))&&dn(e);break}var t=$n(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vn.shift()}null!==yn&&Pn(yn)&&(yn=null),null!==mn&&Pn(mn)&&(mn=null),null!==Cn&&Pn(Cn)&&(Cn=null),wn.forEach(An),En.forEach(An)}function xn(e,t){e.blockedOn===t&&(e.blockedOn=null,gn||(gn=!0,ee.unstable_scheduleCallback(ee.unstable_NormalPriority,Nn)))}function Fn(e){function t(t){return xn(t,e)}if(0<vn.length){xn(vn[0],e);for(var n=1;n<vn.length;n++){var o=vn[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==yn&&xn(yn,e),null!==mn&&xn(mn,e),null!==Cn&&xn(Cn,e),wn.forEach(t),En.forEach(t),n=0;n<bn.length;n++)(o=bn[n]).blockedOn===e&&(o.blockedOn=null);for(;0<bn.length&&null===(n=bn[0]).blockedOn;)Dn(n),null===n.blockedOn&&bn.shift()}var In={},Ln=new Map,Mn=new Map,kn=["abort","abort",Bt,"animationEnd",jt,"animationIteration",Ut,"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",zt,"transitionEnd","waiting","waiting"];function Gn(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},Mn.set(o,t),Ln.set(o,i),In[r]=i}}Gn("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),Gn("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),Gn(kn,2);for(var Vn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Wn=0;Wn<Vn.length;Wn++)Mn.set(Vn[Wn],0);var Hn=ee.unstable_UserBlockingPriority,Bn=ee.unstable_runWithPriority,jn=!0;function Un(e,t){zn(t,e,!1)}function zn(e,t,n){var o=Mn.get(t);switch(void 0===o?2:o){case 0:o=Yn.bind(null,t,1,e);break;case 1:o=Kn.bind(null,t,1,e);break;default:o=qn.bind(null,t,1,e)}n?e.addEventListener(t,o,!0):e.addEventListener(t,o,!1)}function Yn(e,t,n,o){Fe||Ne();var r=qn,i=Fe;Fe=!0;try{Ae(r,e,t,n,o)}finally{(Fe=i)||Le()}}function Kn(e,t,n,o){Bn(Hn,qn.bind(null,e,t,n,o))}function qn(e,t,n,o){if(jn)if(0<vn.length&&-1<Rn.indexOf(e))e=On(null,e,t,n,o),vn.push(e);else{var r=$n(e,t,n,o);if(null===r)Sn(e,o);else if(-1<Rn.indexOf(e))e=On(r,e,t,n,o),vn.push(e);else if(!function(e,t,n,o,r){switch(t){case"focus":return yn=Tn(yn,e,t,n,o,r),!0;case"dragenter":return mn=Tn(mn,e,t,n,o,r),!0;case"mouseover":return Cn=Tn(Cn,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return wn.set(i,Tn(wn.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,En.set(i,Tn(En.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o)){Sn(e,o),e=un(e,o,null,t);try{Me(pn,e)}finally{ln(e)}}}}function $n(e,t,n,o){if(null!==(n=Oo(n=rn(o)))){var r=$t(n);if(null===r)n=null;else{var i=r.tag;if(13===i){if(null!==(n=Qt(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=un(e,o,n,t);try{Me(pn,e)}finally{ln(e)}return null}var Qn={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},Xn=["Webkit","ms","Moz","O"];function Jn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qn.hasOwnProperty(e)&&Qn[e]?(""+t).trim():t+"px"}function Zn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=Jn(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(Qn).forEach((function(e){Xn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qn[t]=Qn[e]}))}));var eo=h({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 to(e,t){if(t){if(eo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(te(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(te(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(te(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(te(62,""))}}function no(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 oo=Pt;function ro(e,t){var n=qt(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=we[t];for(var o=0;o<t.length;o++)cn(t[o],e,n)}function io(){}function so(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 ao(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lo(e,t){var n,o=ao(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=ao(o)}}function uo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?uo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function po(){for(var e=window,t=so();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(o){n=!1}if(!n)break;t=so((e=t.contentWindow).document)}return t}function co(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 ho=null,fo=null;function go(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vo(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 yo="function"==typeof setTimeout?setTimeout:void 0,mo="function"==typeof clearTimeout?clearTimeout:void 0;function Co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function wo(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 Eo=Math.random().toString(36).slice(2),bo="__reactInternalInstance$"+Eo,Ro="__reactEventHandlers$"+Eo,_o="__reactContainere$"+Eo;function Oo(e){var t=e[bo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_o]||n[bo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=wo(e);null!==e;){if(n=e[bo])return n;e=wo(e)}return t}n=(e=n).parentNode}return null}function So(e){return!(e=e[bo]||e[_o])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function To(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(te(33))}function Do(e){return e[Ro]||null}function Po(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ao(e,t){var n=e.stateNode;if(!n)return null;var o=ue(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(te(231,t,typeof n));return n}function No(e,t,n){(t=Ao(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=Zt(n._dispatchListeners,t),n._dispatchInstances=Zt(n._dispatchInstances,e))}function xo(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Po(t);for(t=n.length;0<t--;)No(n[t],"captured",e);for(t=0;t<n.length;t++)No(n[t],"bubbled",e)}}function Fo(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ao(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=Zt(n._dispatchListeners,t),n._dispatchInstances=Zt(n._dispatchInstances,e))}function Io(e){e&&e.dispatchConfig.registrationName&&Fo(e._targetInst,null,e)}function Lo(e){en(e,xo)}var Mo=null,ko=null,Go=null;function Vo(){if(Go)return Go;var e,t,n=ko,o=n.length,r="value"in Mo?Mo.value:Mo.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 Go=r.slice(e,1<t?1-t:void 0)}function Wo(){return!0}function Ho(){return!1}function Bo(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)?Wo:Ho,this.isPropagationStopped=Ho,this}function jo(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 Uo(e){if(!(e instanceof this))throw Error(te(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function zo(e){e.eventPool=[],e.getPooled=jo,e.release=Uo}h(Bo.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wo)},persist:function(){this.isPersistent=Wo},isPersistent:Ho,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=Ho,this._dispatchInstances=this._dispatchListeners=null}}),Bo.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},Bo.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var r=new t;return h(r,n.prototype),n.prototype=r,n.prototype.constructor=n,n.Interface=h({},o.Interface,e),n.extend=o.extend,zo(n),n},zo(Bo);var Yo=Bo.extend({data:null}),Ko=Bo.extend({data:null}),qo=[9,13,27,32],$o=be&&"CompositionEvent"in window,Qo=null;be&&"documentMode"in document&&(Qo=document.documentMode);var Xo=be&&"TextEvent"in window&&!Qo,Jo=be&&(!$o||Qo&&8<Qo&&11>=Qo),Zo=String.fromCharCode(32),er={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(" ")}},tr=!1;function nr(e,t){switch(e){case"keyup":return-1!==qo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var rr=!1;var ir={eventTypes:er,extractEvents:function(e,t,n,o){var r;if($o)e:{switch(e){case"compositionstart":var i=er.compositionStart;break e;case"compositionend":i=er.compositionEnd;break e;case"compositionupdate":i=er.compositionUpdate;break e}i=void 0}else rr?nr(e,n)&&(i=er.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=er.compositionStart);return i?(Jo&&"ko"!==n.locale&&(rr||i!==er.compositionStart?i===er.compositionEnd&&rr&&(r=Vo()):(ko="value"in(Mo=o)?Mo.value:Mo.textContent,rr=!0)),i=Yo.getPooled(i,t,n,o),r?i.data=r:null!==(r=or(n))&&(i.data=r),Lo(i),r=i):r=null,(e=Xo?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(tr=!0,Zo);case"textInput":return(e=t.data)===Zo&&tr?null:e;default:return null}}(e,n):function(e,t){if(rr)return"compositionend"===e||!$o&&nr(e,t)?(e=Vo(),Go=ko=Mo=null,rr=!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 Jo&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Ko.getPooled(er.beforeInput,t,n,o)).data=e,Lo(t)):t=null,null===r?t:null===t?r:[r,t]}},sr={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 ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!sr[e.type]:"textarea"===t}var lr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ur(e,t,n){return(e=Bo.getPooled(lr.change,e,t,n)).type="change",Te(n),Lo(e),e}var pr=null,cr=null;function dr(e){on(e)}function hr(e){if(vt(To(e)))return e}function fr(e,t){if("change"===e)return t}var gr=!1;function vr(){pr&&(pr.detachEvent("onpropertychange",yr),cr=pr=null)}function yr(e){if("value"===e.propertyName&&hr(cr))if(e=ur(cr,e,rn(e)),Fe)on(e);else{Fe=!0;try{Pe(dr,e)}finally{Fe=!1,Le()}}}function mr(e,t,n){"focus"===e?(vr(),cr=n,(pr=t).attachEvent("onpropertychange",yr)):"blur"===e&&vr()}function Cr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return hr(cr)}function wr(e,t){if("click"===e)return hr(t)}function Er(e,t){if("input"===e||"change"===e)return hr(t)}be&&(gr=sn("input")&&(!document.documentMode||9<document.documentMode));var br={eventTypes:lr,_isInputEventSupported:gr,extractEvents:function(e,t,n,o){var r=t?To(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var s=fr;else if(ar(r))if(gr)s=Er;else{s=Cr;var a=mr}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(s=wr);if(s&&(s=s(e,t)))return ur(s,n,o);a&&a(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&bt(r,"number",r.value)}},Rr=Bo.extend({view:null,detail:null}),_r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Or(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_r[e])&&!!t[e]}function Sr(){return Or}var Tr=0,Dr=0,Pr=!1,Ar=!1,Nr=Rr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Sr,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=Tr;return Tr=e.screenX,Pr?"mousemove"===e.type?e.screenX-t:0:(Pr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Dr;return Dr=e.screenY,Ar?"mousemove"===e.type?e.screenY-t:0:(Ar=!0,0)}}),xr=Nr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Fr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ir={eventTypes:Fr,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)?Oo(t):null)&&(t!==$t(t)||5!==t.tag&&6!==t.tag)&&(t=null)):s=null;if(s===t)return null;if("mouseout"===e||"mouseover"===e)var a=Nr,l=Fr.mouseLeave,u=Fr.mouseEnter,p="mouse";else"pointerout"!==e&&"pointerover"!==e||(a=xr,l=Fr.pointerLeave,u=Fr.pointerEnter,p="pointer");if(e=null==s?i:To(s),i=null==t?i:To(t),(l=a.getPooled(l,s,n,o)).type=p+"leave",l.target=e,l.relatedTarget=i,(n=a.getPooled(u,t,n,o)).type=p+"enter",n.target=i,n.relatedTarget=e,p=t,(o=s)&&p)e:{for(u=p,s=0,e=a=o;e;e=Po(e))s++;for(e=0,t=u;t;t=Po(t))e++;for(;0<s-e;)a=Po(a),s--;for(;0<e-s;)u=Po(u),e--;for(;s--;){if(a===u||a===u.alternate)break e;a=Po(a),u=Po(u)}a=null}else a=null;for(u=a,a=[];o&&o!==u&&(null===(s=o.alternate)||s!==u);)a.push(o),o=Po(o);for(o=[];p&&p!==u&&(null===(s=p.alternate)||s!==u);)o.push(p),p=Po(p);for(p=0;p<a.length;p++)Fo(a[p],"bubbled",l);for(p=o.length;0<p--;)Fo(o[p],"captured",n);return 0==(64&r)?[l]:[l,n]}};var Lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Mr=Object.prototype.hasOwnProperty;function kr(e,t){if(Lr(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(!Mr.call(t,n[o])||!Lr(e[n[o]],t[n[o]]))return!1;return!0}var Gr=be&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wr=null,Hr=null,Br=null,jr=!1;function Ur(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return jr||null==Wr||Wr!==so(n)?null:("selectionStart"in(n=Wr)&&co(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},Br&&kr(Br,n)?null:(Br=n,(e=Bo.getPooled(Vr.select,Hr,e,t)).type="select",e.target=Wr,Lo(e),e))}var zr={eventTypes:Vr,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=qt(r),i=we.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?To(t):window,e){case"focus":(ar(r)||"true"===r.contentEditable)&&(Wr=r,Hr=t,Br=null);break;case"blur":Br=Hr=Wr=null;break;case"mousedown":jr=!0;break;case"contextmenu":case"mouseup":case"dragend":return jr=!1,Ur(n,o);case"selectionchange":if(Gr)break;case"keydown":case"keyup":return Ur(n,o)}return null}},Yr=Bo.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Kr=Bo.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qr=Rr.extend({relatedTarget:null});function $r(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 Qr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xr={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"},Jr=Rr.extend({key:function(e){if(e.key){var t=Qr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=$r(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Xr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Sr,charCode:function(e){return"keypress"===e.type?$r(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?$r(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Zr=Nr.extend({dataTransfer:null}),ei=Rr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Sr}),ti=Bo.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ni=Nr.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}),oi={eventTypes:In,extractEvents:function(e,t,n,o){var r=Ln.get(e);if(!r)return null;switch(e){case"keypress":if(0===$r(n))return null;case"keydown":case"keyup":e=Jr;break;case"blur":case"focus":e=qr;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=Nr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=Zr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ei;break;case Bt:case jt:case Ut:e=Yr;break;case zt:e=ti;break;case"scroll":e=Rr;break;case"wheel":e=ni;break;case"copy":case"cut":case"paste":e=Kr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=xr;break;default:e=Bo}return Lo(t=e.getPooled(r,t,n,o)),t}};if(he)throw Error(te(101));he=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),ge(),ue=Do,pe=So,ce=To,Ee({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Ir,ChangeEventPlugin:br,SelectEventPlugin:zr,BeforeInputEventPlugin:ir});var ri=[],ii=-1;function si(e){0>ii||(e.current=ri[ii],ri[ii]=null,ii--)}function ai(e,t){ii++,ri[ii]=e.current,e.current=t}var li={},ui={current:li},pi={current:!1},ci=li;function di(e,t){var n=e.type.contextTypes;if(!n)return li;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 hi(e){return null!=(e=e.childContextTypes)}function fi(){si(pi),si(ui)}function gi(e,t,n){if(ui.current!==li)throw Error(te(168));ai(ui,t),ai(pi,n)}function vi(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in e))throw Error(te(108,ct(t)||"Unknown",r));return h({},n,{},o)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=ui.current,ai(ui,e),ai(pi,pi.current),!0}function mi(e,t,n){var o=e.stateNode;if(!o)throw Error(te(169));n?(e=vi(e,t,ci),o.__reactInternalMemoizedMergedChildContext=e,si(pi),si(ui),ai(ui,e)):si(pi),ai(pi,n)}var Ci=ee.unstable_runWithPriority,wi=ee.unstable_scheduleCallback,Ei=ee.unstable_cancelCallback,bi=ee.unstable_requestPaint,Ri=ee.unstable_now,_i=ee.unstable_getCurrentPriorityLevel,Oi=ee.unstable_ImmediatePriority,Si=ee.unstable_UserBlockingPriority,Ti=ee.unstable_NormalPriority,Di=ee.unstable_LowPriority,Pi=ee.unstable_IdlePriority,Ai={},Ni=ee.unstable_shouldYield,xi=void 0!==bi?bi:function(){},Fi=null,Ii=null,Li=!1,Mi=Ri(),ki=1e4>Mi?Ri:function(){return Ri()-Mi};function Gi(){switch(_i()){case Oi:return 99;case Si:return 98;case Ti:return 97;case Di:return 96;case Pi:return 95;default:throw Error(te(332))}}function Vi(e){switch(e){case 99:return Oi;case 98:return Si;case 97:return Ti;case 96:return Di;case 95:return Pi;default:throw Error(te(332))}}function Wi(e,t){return e=Vi(e),Ci(e,t)}function Hi(e,t,n){return e=Vi(e),wi(e,t,n)}function Bi(e){return null===Fi?(Fi=[e],Ii=wi(Oi,Ui)):Fi.push(e),Ai}function ji(){if(null!==Ii){var e=Ii;Ii=null,Ei(e)}Ui()}function Ui(){if(!Li&&null!==Fi){Li=!0;var e=0;try{var t=Fi;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fi=null}catch(n){throw null!==Fi&&(Fi=Fi.slice(e+1)),wi(Oi,ji),n}finally{Li=!1}}}function zi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Yi(e,t){if(e&&e.defaultProps)for(var n in t=h({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ki={current:null},qi=null,$i=null,Qi=null;function Xi(){Qi=$i=qi=null}function Ji(e){var t=Ki.current;si(Ki),e.type._context._currentValue=t}function Zi(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 es(e,t){qi=e,Qi=$i=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ta=!0),e.firstContext=null)}function ts(e,t){if(Qi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Qi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===$i){if(null===qi)throw Error(te(308));$i=t,qi.dependencies={expirationTime:0,firstContext:t,responders:null}}else $i=$i.next=t;return e._currentValue}var ns=!1;function os(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function rs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function is(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ss(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 as(e,t){var n=e.alternate;null!==n&&rs(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ls(e,t,n,o){var r=e.updateQueue;ns=!1;var i=r.baseQueue,s=r.shared.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}i=s,r.shared.pending=null,null!==(a=e.alternate)&&(null!==(a=a.updateQueue)&&(a.baseQueue=s))}if(null!==i){a=i.next;var l=r.baseState,u=0,p=null,c=null,d=null;if(null!==a)for(var f=a;;){if((s=f.expirationTime)<o){var g={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===d?(c=d=g,p=l):d=d.next=g,s>u&&(u=s)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),ru(s,f.suspenseConfig);e:{var v=e,y=f;switch(s=t,g=n,y.tag){case 1:if("function"==typeof(v=y.payload)){l=v.call(g,l,s);break e}l=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(s="function"==typeof(v=y.payload)?v.call(g,l,s):v))break e;l=h({},l,s);break e;case 2:ns=!0}}null!==f.callback&&(e.effectTag|=32,null===(s=r.effects)?r.effects=[f]:s.push(f))}if(null===(f=f.next)||f===a){if(null===(s=r.shared.pending))break;f=i.next=s.next,s.next=a,r.baseQueue=i=s,r.shared.pending=null}}null===d?p=l:d.next=c,r.baseState=p,r.baseQueue=d,iu(u),e.expirationTime=u,e.memoizedState=l}}function us(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(te(191,o));o.call(r)}}}var ps=ze.ReactCurrentBatchConfig,cs=(new J.Component).refs;function ds(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:h({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var hs={isMounted:function(e){return!!(e=e._reactInternalFiber)&&$t(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=zl(),r=ps.suspense;(r=is(o=Yl(o,e,r),r)).payload=t,null!=n&&(r.callback=n),ss(e,r),Kl(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=zl(),r=ps.suspense;(r=is(o=Yl(o,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),ss(e,r),Kl(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=zl(),o=ps.suspense;(o=is(n=Yl(n,e,o),o)).tag=2,null!=t&&(o.callback=t),ss(e,o),Kl(e,n)}};function fs(e,t,n,o,r,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!kr(n,o)||!kr(r,i))}function gs(e,t,n){var o=!1,r=li,i=t.contextType;return"object"==typeof i&&null!==i?i=ts(i):(r=hi(t)?ci:ui.current,i=(o=null!=(o=t.contextTypes))?di(e,r):li),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hs,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function vs(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&&hs.enqueueReplaceState(t,t.state,null)}function ys(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=cs,os(e);var i=t.contextType;"object"==typeof i&&null!==i?r.context=ts(i):(i=hi(t)?ci:ui.current,r.context=di(e,i)),ls(e,n,r,o),r.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ds(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&&hs.enqueueReplaceState(r,r.state,null),ls(e,n,r,o),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var ms=Array.isArray;function Cs(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(te(309));var o=n.stateNode}if(!o)throw Error(te(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===cs&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(te(284));if(!n._owner)throw Error(te(290,e))}return e}function ws(e,t){if("textarea"!==e.type)throw Error(te(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Es(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=Ou(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 s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function a(e,t,n,o){return null===t||6!==t.tag?((t=Du(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function l(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=Cs(e,t,n),o.return=e,o):((o=Su(n.type,n.key,n.props,null,e.mode,o)).ref=Cs(e,t,n),o.return=e,o)}function u(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Pu(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=Tu(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case $e:return(n=Su(t.type,t.key,t.props,null,e.mode,n)).ref=Cs(e,null,t),n.return=e,n;case Qe:return(t=Pu(t,e.mode,n)).return=e,t}if(ms(t)||pt(t))return(t=Tu(t,e.mode,n,null)).return=e,t;ws(e,t)}return null}function d(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:a(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case $e:return n.key===r?n.type===Xe?p(e,t,n.props.children,o,r):l(e,t,n,o):null;case Qe:return n.key===r?u(e,t,n,o):null}if(ms(n)||pt(n))return null!==r?null:p(e,t,n,o,null);ws(e,n)}return null}function h(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return a(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case $e:return e=e.get(null===o.key?n:o.key)||null,o.type===Xe?p(t,e,o.props.children,r,o.key):l(t,e,o,r);case Qe:return u(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(ms(o)||pt(o))return p(t,e=e.get(n)||null,o,r,null);ws(t,o)}return null}return function(a,l,u,p){var f="object"==typeof u&&null!==u&&u.type===Xe&&null===u.key;f&&(u=u.props.children);var g="object"==typeof u&&null!==u;if(g)switch(u.$$typeof){case $e:e:{for(g=u.key,f=l;null!==f;){if(f.key===g){switch(f.tag){case 7:if(u.type===Xe){n(a,f.sibling),(l=r(f,u.props.children)).return=a,a=l;break e}break;default:if(f.elementType===u.type){n(a,f.sibling),(l=r(f,u.props)).ref=Cs(a,f,u),l.return=a,a=l;break e}}n(a,f);break}t(a,f),f=f.sibling}u.type===Xe?((l=Tu(u.props.children,a.mode,p,u.key)).return=a,a=l):((p=Su(u.type,u.key,u.props,null,a.mode,p)).ref=Cs(a,l,u),p.return=a,a=p)}return s(a);case Qe:e:{for(f=u.key;null!==l;){if(l.key===f){if(4===l.tag&&l.stateNode.containerInfo===u.containerInfo&&l.stateNode.implementation===u.implementation){n(a,l.sibling),(l=r(l,u.children||[])).return=a,a=l;break e}n(a,l);break}t(a,l),l=l.sibling}(l=Pu(u,a.mode,p)).return=a,a=l}return s(a)}if("string"==typeof u||"number"==typeof u)return u=""+u,null!==l&&6===l.tag?(n(a,l.sibling),(l=r(l,u)).return=a,a=l):(n(a,l),(l=Du(u,a.mode,p)).return=a,a=l),s(a);if(ms(u))return function(r,s,a,l){for(var u=null,p=null,f=s,g=s=0,v=null;null!==f&&g<a.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var y=d(r,f,a[g],l);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(r,f),s=i(y,s,g),null===p?u=y:p.sibling=y,p=y,f=v}if(g===a.length)return n(r,f),u;if(null===f){for(;g<a.length;g++)null!==(f=c(r,a[g],l))&&(s=i(f,s,g),null===p?u=f:p.sibling=f,p=f);return u}for(f=o(r,f);g<a.length;g++)null!==(v=h(f,r,g,a[g],l))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),s=i(v,s,g),null===p?u=v:p.sibling=v,p=v);return e&&f.forEach((function(e){return t(r,e)})),u}(a,l,u,p);if(pt(u))return function(r,s,a,l){var u=pt(a);if("function"!=typeof u)throw Error(te(150));if(null==(a=u.call(a)))throw Error(te(151));for(var p=u=null,f=s,g=s=0,v=null,y=a.next();null!==f&&!y.done;g++,y=a.next()){f.index>g?(v=f,f=null):v=f.sibling;var m=d(r,f,y.value,l);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(r,f),s=i(m,s,g),null===p?u=m:p.sibling=m,p=m,f=v}if(y.done)return n(r,f),u;if(null===f){for(;!y.done;g++,y=a.next())null!==(y=c(r,y.value,l))&&(s=i(y,s,g),null===p?u=y:p.sibling=y,p=y);return u}for(f=o(r,f);!y.done;g++,y=a.next())null!==(y=h(f,r,g,y.value,l))&&(e&&null!==y.alternate&&f.delete(null===y.key?g:y.key),s=i(y,s,g),null===p?u=y:p.sibling=y,p=y);return e&&f.forEach((function(e){return t(r,e)})),u}(a,l,u,p);if(g&&ws(a,u),void 0===u&&!f)switch(a.tag){case 1:case 0:throw a=a.type,Error(te(152,a.displayName||a.name||"Component"))}return n(a,l)}}var bs=Es(!0),Rs=Es(!1),_s={},Os={current:_s},Ss={current:_s},Ts={current:_s};function Ds(e){if(e===_s)throw Error(te(174));return e}function Ps(e,t){switch(ai(Ts,t),ai(Ss,e),ai(Os,_s),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xt(null,"");break;default:t=xt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Os),ai(Os,t)}function As(){si(Os),si(Ss),si(Ts)}function Ns(e){Ds(Ts.current);var t=Ds(Os.current),n=xt(t,e.type);t!==n&&(ai(Ss,e),ai(Os,n))}function xs(e){Ss.current===e&&(si(Os),si(Ss))}var Fs={current:0};function Is(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 Ls(e,t){return{responder:e,props:t}}var Ms=ze.ReactCurrentDispatcher,ks=ze.ReactCurrentBatchConfig,Gs=0,Vs=null,Ws=null,Hs=null,Bs=!1;function js(){throw Error(te(321))}function Us(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lr(e[n],t[n]))return!1;return!0}function zs(e,t,n,o,r,i){if(Gs=i,Vs=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ms.current=null===e||null===e.memoizedState?fa:ga,e=n(o,r),t.expirationTime===Gs){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(te(301));i+=1,Hs=Ws=null,t.updateQueue=null,Ms.current=va,e=n(o,r)}while(t.expirationTime===Gs)}if(Ms.current=ha,t=null!==Ws&&null!==Ws.next,Gs=0,Hs=Ws=Vs=null,Bs=!1,t)throw Error(te(300));return e}function Ys(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Hs?Vs.memoizedState=Hs=e:Hs=Hs.next=e,Hs}function Ks(){if(null===Ws){var e=Vs.alternate;e=null!==e?e.memoizedState:null}else e=Ws.next;var t=null===Hs?Vs.memoizedState:Hs.next;if(null!==t)Hs=t,Ws=e;else{if(null===e)throw Error(te(310));e={memoizedState:(Ws=e).memoizedState,baseState:Ws.baseState,baseQueue:Ws.baseQueue,queue:Ws.queue,next:null},null===Hs?Vs.memoizedState=Hs=e:Hs=Hs.next=e}return Hs}function qs(e,t){return"function"==typeof t?t(e):t}function $s(e){var t=Ks(),n=t.queue;if(null===n)throw Error(te(311));n.lastRenderedReducer=e;var o=Ws,r=o.baseQueue,i=n.pending;if(null!==i){if(null!==r){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(null!==r){r=r.next,o=o.baseState;var a=s=i=null,l=r;do{var u=l.expirationTime;if(u<Gs){var p={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===a?(s=a=p,i=o):a=a.next=p,u>Vs.expirationTime&&(Vs.expirationTime=u,iu(u))}else null!==a&&(a=a.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ru(u,l.suspenseConfig),o=l.eagerReducer===e?l.eagerState:e(o,l.action);l=l.next}while(null!==l&&l!==r);null===a?i=o:a.next=s,Lr(o,t.memoizedState)||(Ta=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=a,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Qs(e){var t=Ks(),n=t.queue;if(null===n)throw Error(te(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{i=e(i,s.action),s=s.next}while(s!==r);Lr(i,t.memoizedState)||(Ta=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function Xs(e){var t=Ys();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:qs,lastRenderedState:e}).dispatch=da.bind(null,Vs,e),[t.memoizedState,e]}function Js(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Vs.updateQueue)?(t={lastEffect:null},Vs.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 Zs(){return Ks().memoizedState}function ea(e,t,n,o){var r=Ys();Vs.effectTag|=e,r.memoizedState=Js(1|t,n,void 0,void 0===o?null:o)}function ta(e,t,n,o){var r=Ks();o=void 0===o?null:o;var i=void 0;if(null!==Ws){var s=Ws.memoizedState;if(i=s.destroy,null!==o&&Us(o,s.deps))return void Js(t,n,i,o)}Vs.effectTag|=e,r.memoizedState=Js(1|t,n,i,o)}function na(e,t){return ea(516,4,e,t)}function oa(e,t){return ta(516,4,e,t)}function ra(e,t){return ta(4,2,e,t)}function ia(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 sa(e,t,n){return n=null!=n?n.concat([e]):null,ta(4,2,ia.bind(null,t,e),n)}function aa(){}function la(e,t){return Ys().memoizedState=[e,void 0===t?null:t],e}function ua(e,t){var n=Ks();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Us(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Ks();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Us(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function ca(e,t,n){var o=Gi();Wi(98>o?98:o,(function(){e(!0)})),Wi(97<o?97:o,(function(){var o=ks.suspense;ks.suspense=void 0===t?null:t;try{e(!1),n()}finally{ks.suspense=o}}))}function da(e,t,n){var o=zl(),r=ps.suspense;r={expirationTime:o=Yl(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===Vs||null!==i&&i===Vs)Bs=!0,r.expirationTime=Gs,Vs.expirationTime=Gs;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,Lr(a,s))return}catch(l){}Kl(e,o)}}var ha={readContext:ts,useCallback:js,useContext:js,useEffect:js,useImperativeHandle:js,useLayoutEffect:js,useMemo:js,useReducer:js,useRef:js,useState:js,useDebugValue:js,useResponder:js,useDeferredValue:js,useTransition:js},fa={readContext:ts,useCallback:la,useContext:ts,useEffect:na,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ea(4,2,ia.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ea(4,2,e,t)},useMemo:function(e,t){var n=Ys();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Ys();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=da.bind(null,Vs,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Ys().memoizedState=e},useState:Xs,useDebugValue:aa,useResponder:Ls,useDeferredValue:function(e,t){var n=Xs(e),o=n[0],r=n[1];return na((function(){var n=ks.suspense;ks.suspense=void 0===t?null:t;try{r(e)}finally{ks.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Xs(!1),n=t[0];return t=t[1],[la(ca.bind(null,t,e),[t,e]),n]}},ga={readContext:ts,useCallback:ua,useContext:ts,useEffect:oa,useImperativeHandle:sa,useLayoutEffect:ra,useMemo:pa,useReducer:$s,useRef:Zs,useState:function(){return $s(qs)},useDebugValue:aa,useResponder:Ls,useDeferredValue:function(e,t){var n=$s(qs),o=n[0],r=n[1];return oa((function(){var n=ks.suspense;ks.suspense=void 0===t?null:t;try{r(e)}finally{ks.suspense=n}}),[e,t]),o},useTransition:function(e){var t=$s(qs),n=t[0];return t=t[1],[ua(ca.bind(null,t,e),[t,e]),n]}},va={readContext:ts,useCallback:ua,useContext:ts,useEffect:oa,useImperativeHandle:sa,useLayoutEffect:ra,useMemo:pa,useReducer:Qs,useRef:Zs,useState:function(){return Qs(qs)},useDebugValue:aa,useResponder:Ls,useDeferredValue:function(e,t){var n=Qs(qs),o=n[0],r=n[1];return oa((function(){var n=ks.suspense;ks.suspense=void 0===t?null:t;try{r(e)}finally{ks.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Qs(qs),n=t[0];return t=t[1],[ua(ca.bind(null,t,e),[t,e]),n]}},ya=null,ma=null,Ca=!1;function wa(e,t){var n=Ru(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 Ea(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 ba(e){if(Ca){var t=ma;if(t){var n=t;if(!Ea(e,t)){if(!(t=Co(n.nextSibling))||!Ea(e,t))return e.effectTag=-1025&e.effectTag|2,Ca=!1,void(ya=e);wa(ya,n)}ya=e,ma=Co(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ca=!1,ya=e}}function Ra(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ya=e}function _a(e){if(e!==ya)return!1;if(!Ca)return Ra(e),Ca=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!vo(t,e.memoizedProps))for(t=ma;t;)wa(e,t),t=Co(t.nextSibling);if(Ra(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(te(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ma=Co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ma=null}}else ma=ya?Co(e.stateNode.nextSibling):null;return!0}function Oa(){ma=ya=null,Ca=!1}var Sa=ze.ReactCurrentOwner,Ta=!1;function Da(e,t,n,o){t.child=null===e?Rs(t,null,n,o):bs(t,e.child,n,o)}function Pa(e,t,n,o,r){n=n.render;var i=t.ref;return es(t,r),o=zs(e,t,n,o,i,r),null===e||Ta?(t.effectTag|=1,Da(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),za(e,t,r))}function Aa(e,t,n,o,r,i){if(null===e){var s=n.type;return"function"!=typeof s||_u(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Su(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Na(e,t,s,o,r,i))}return s=e.child,r<i&&(r=s.memoizedProps,(n=null!==(n=n.compare)?n:kr)(r,o)&&e.ref===t.ref)?za(e,t,i):(t.effectTag|=1,(e=Ou(s,o)).ref=t.ref,e.return=t,t.child=e)}function Na(e,t,n,o,r,i){return null!==e&&kr(e.memoizedProps,o)&&e.ref===t.ref&&(Ta=!1,r<i)?(t.expirationTime=e.expirationTime,za(e,t,i)):Fa(e,t,n,o,i)}function xa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Fa(e,t,n,o,r){var i=hi(n)?ci:ui.current;return i=di(t,i),es(t,r),n=zs(e,t,n,o,i,r),null===e||Ta?(t.effectTag|=1,Da(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),za(e,t,r))}function Ia(e,t,n,o,r){if(hi(n)){var i=!0;yi(t)}else i=!1;if(es(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),gs(t,n,o),ys(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=ts(u):u=di(t,u=hi(n)?ci:ui.current);var p=n.getDerivedStateFromProps,c="function"==typeof p||"function"==typeof s.getSnapshotBeforeUpdate;c||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==o||l!==u)&&vs(t,s,o,u),ns=!1;var d=t.memoizedState;s.state=d,ls(t,o,s,r),l=t.memoizedState,a!==o||d!==l||pi.current||ns?("function"==typeof p&&(ds(t,n,p,o),l=t.memoizedState),(a=ns||fs(t,n,a,o,d,l,u))?(c||"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,rs(e,t),a=t.memoizedProps,s.props=t.type===t.elementType?a:Yi(t.type,a),l=s.context,"object"==typeof(u=n.contextType)&&null!==u?u=ts(u):u=di(t,u=hi(n)?ci:ui.current),(c="function"==typeof(p=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==o||l!==u)&&vs(t,s,o,u),ns=!1,l=t.memoizedState,s.state=l,ls(t,o,s,r),d=t.memoizedState,a!==o||l!==d||pi.current||ns?("function"==typeof p&&(ds(t,n,p,o),d=t.memoizedState),(p=ns||fs(t,n,a,o,l,d,u))?(c||"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=p):("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 La(e,t,n,o,i,r)}function La(e,t,n,o,r,i){xa(e,t);var s=0!=(64&t.effectTag);if(!o&&!s)return r&&mi(t,n,!1),za(e,t,i);o=t.stateNode,Sa.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&s?(t.child=bs(t,e.child,null,i),t.child=bs(t,null,a,i)):Da(e,t,a,i),t.memoizedState=o.state,r&&mi(t,n,!0),t.child}function Ma(e){var t=e.stateNode;t.pendingContext?gi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&gi(0,t.context,!1),Ps(e,t.containerInfo)}var ka,Ga,Va,Wa={dehydrated:null,retryTime:0};function Ha(e,t,n){var o,r=t.mode,i=t.pendingProps,s=Fs.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),ai(Fs,1&s),null===e){if(void 0!==i.fallback&&ba(t),a){if(a=i.fallback,(i=Tu(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=Tu(a,r,n,null)).return=t,i.sibling=n,t.memoizedState=Wa,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=Rs(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,a){if(i=i.fallback,(n=Ou(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=Ou(r,i)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=Wa,t.child=n,r}return n=bs(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,a){if(a=i.fallback,(i=Tu(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=Tu(a,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Wa,t.child=i,n}return t.memoizedState=null,t.child=bs(t,e,i.children,n)}function Ba(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),Zi(e.return,t)}function ja(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 Ua(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(Da(e,t,o.children,n),0!=(2&(o=Fs.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&&Ba(e,n);else if(19===e.tag)Ba(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(ai(Fs,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===Is(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ja(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===Is(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ja(t,!0,n,null,i,t.lastEffect);break;case"together":ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function za(e,t,n){null!==e&&(t.dependencies=e.dependencies);var o=t.expirationTime;if(0!==o&&iu(o),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(te(153));if(null!==t.child){for(n=Ou(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ou(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(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 Ka(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 hi(t.type)&&fi(),null;case 3:return As(),si(pi),si(ui),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!_a(t)||(t.effectTag|=4),null;case 5:xs(t),n=Ds(Ts.current);var r=t.type;if(null!==e&&null!=t.stateNode)Ga(e,t,r,o,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!o){if(null===t.stateNode)throw Error(te(166));return null}if(e=Ds(Os.current),_a(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[bo]=t,o[Ro]=i,r){case"iframe":case"object":case"embed":Un("load",o);break;case"video":case"audio":for(e=0;e<Yt.length;e++)Un(Yt[e],o);break;case"source":Un("error",o);break;case"img":case"image":case"link":Un("error",o),Un("load",o);break;case"form":Un("reset",o),Un("submit",o);break;case"details":Un("toggle",o);break;case"input":mt(o,i),Un("invalid",o),ro(n,"onChange");break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Un("invalid",o),ro(n,"onChange");break;case"textarea":St(o,i),Un("invalid",o),ro(n,"onChange")}for(var s in to(r,i),e=null,i)if(i.hasOwnProperty(s)){var a=i[s];"children"===s?"string"==typeof a?o.textContent!==a&&(e=["children",a]):"number"==typeof a&&o.textContent!==""+a&&(e=["children",""+a]):Ce.hasOwnProperty(s)&&null!=a&&ro(n,s)}switch(r){case"input":gt(o),Et(o,i,!0);break;case"textarea":gt(o),Dt(o);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(o.onclick=io)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(s=9===n.nodeType?n:n.ownerDocument,e===oo&&(e=Nt(r)),e===oo?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=s.createElement(r,{is:o.is}):(e=s.createElement(r),"select"===r&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,r),e[bo]=t,e[Ro]=o,ka(e,t),t.stateNode=e,s=no(r,o),r){case"iframe":case"object":case"embed":Un("load",e),a=o;break;case"video":case"audio":for(a=0;a<Yt.length;a++)Un(Yt[a],e);a=o;break;case"source":Un("error",e),a=o;break;case"img":case"image":case"link":Un("error",e),Un("load",e),a=o;break;case"form":Un("reset",e),Un("submit",e),a=o;break;case"details":Un("toggle",e),a=o;break;case"input":mt(e,o),a=yt(e,o),Un("invalid",e),ro(n,"onChange");break;case"option":a=Rt(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=h({},o,{value:void 0}),Un("invalid",e),ro(n,"onChange");break;case"textarea":St(e,o),a=Ot(e,o),Un("invalid",e),ro(n,"onChange");break;default:a=o}to(r,a);var l=a;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];"style"===i?Zn(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&Lt(e,u):"children"===i?"string"==typeof u?("textarea"!==r||""!==u)&&Mt(e,u):"number"==typeof u&&Mt(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Ce.hasOwnProperty(i)?null!=u&&ro(n,i):null!=u&&Ye(e,i,u,s))}switch(r){case"input":gt(e),Et(e,o,!1);break;case"textarea":gt(e),Dt(e);break;case"option":null!=o.value&&e.setAttribute("value",""+ht(o.value));break;case"select":e.multiple=!!o.multiple,null!=(n=o.value)?_t(e,!!o.multiple,n,!1):null!=o.defaultValue&&_t(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=io)}go(r,o)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(0,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(te(166));n=Ds(Ts.current),Ds(Os.current),_a(t)?(n=t.stateNode,o=t.memoizedProps,n[bo]=t,n.nodeValue!==o&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[bo]=t,t.stateNode=n)}return null;case 13:return si(Fs),o=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==o,o=!1,null===e?void 0!==t.memoizedProps.fallback&&_a(t):(o=null!==(r=e.memoizedState),n||null===r||null!==(r=e.child.sibling)&&(null!==(i=t.firstEffect)?(t.firstEffect=r,r.nextEffect=i):(t.firstEffect=t.lastEffect=r,r.nextEffect=null),r.effectTag=8)),n&&!o&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Fs.current)?Sl===Cl&&(Sl=wl):(Sl!==Cl&&Sl!==wl||(Sl=El),0!==Nl&&null!==Rl&&(xu(Rl,Ol),Fu(Rl,Nl)))),(n||o)&&(t.effectTag|=4),null);case 4:return As(),null;case 10:return Ji(t),null;case 17:return hi(t.type)&&fi(),null;case 19:if(si(Fs),null===(o=t.memoizedState))return null;if(r=0!=(64&t.effectTag),null===(i=o.rendering)){if(r)Ya(o,!1);else if(Sl!==Cl||null!==e&&0!=(64&e.effectTag))for(i=t.child;null!==i;){if(null!==(e=Is(i))){for(t.effectTag|=64,Ya(o,!1),null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=t.child;null!==o;)i=n,(r=o).effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(e=r.alternate)?(r.childExpirationTime=0,r.expirationTime=i,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,i=e.dependencies,r.dependencies=null===i?null:{expirationTime:i.expirationTime,firstContext:i.firstContext,responders:i.responders}),o=o.sibling;return ai(Fs,1&Fs.current|2),t.child}i=i.sibling}}else{if(!r)if(null!==(e=Is(i))){if(t.effectTag|=64,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ya(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*ki()-o.renderingStartTime>o.tailExpiration&&1<n&&(t.effectTag|=64,r=!0,Ya(o,!1),t.expirationTime=t.childExpirationTime=n-1);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=o.last)?n.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(0===o.tailExpiration&&(o.tailExpiration=ki()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=ki(),n.sibling=null,t=Fs.current,ai(Fs,r?1&t|2:1&t),n):null}throw Error(te(156,t.tag))}function qa(e){switch(e.tag){case 1:hi(e.type)&&fi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(As(),si(pi),si(ui),0!=(64&(t=e.effectTag)))throw Error(te(285));return e.effectTag=-4097&t|64,e;case 5:return xs(e),null;case 13:return si(Fs),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return si(Fs),null;case 4:return As(),null;case 10:return Ji(e),null;default:return null}}function $a(e,t){return{value:e,source:t,stack:dt(t)}}ka=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}},Ga=function(e,t,n,o,r){var i=e.memoizedProps;if(i!==o){var s,a,l=t.stateNode;switch(Ds(Os.current),e=null,n){case"input":i=yt(l,i),o=yt(l,o),e=[];break;case"option":i=Rt(l,i),o=Rt(l,o),e=[];break;case"select":i=h({},i,{value:void 0}),o=h({},o,{value:void 0}),e=[];break;case"textarea":i=Ot(l,i),o=Ot(l,o),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(l.onclick=io)}for(s in to(n,o),n=null,i)if(!o.hasOwnProperty(s)&&i.hasOwnProperty(s)&&null!=i[s])if("style"===s)for(a in l=i[s])l.hasOwnProperty(a)&&(n||(n={}),n[a]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(Ce.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in o){var u=o[s];if(l=null!=i?i[s]:void 0,o.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(Ce.hasOwnProperty(s)?(null!=u&&ro(r,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),r=e,(t.updateQueue=r)&&(t.effectTag|=4)}},Va=function(e,t,n,o){n!==o&&(t.effectTag|=4)};var Qa="function"==typeof WeakSet?WeakSet:Set;function Xa(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=dt(n)),null!==n&&ct(n.type),t=t.value,null!==e&&1===e.tag&&ct(e.type);try{console.error(t)}catch(r){setTimeout((function(){throw r}))}}function Ja(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){yu(e,n)}else t.current=null}function Za(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:Yi(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(te(163))}function el(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 tl(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 nl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void tl(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:Yi(n.type,t.memoizedProps);e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&us(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}us(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&go(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&&Fn(n)))));case 19:case 17:case 20:case 21:return}throw Error(te(163))}function ol(e,t,n){switch("function"==typeof Eu&&Eu(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;Wi(97<n?97:n,(function(){var e=o;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(i){yu(r,i)}}e=e.next}while(e!==o)}))}break;case 1:Ja(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){yu(e,n)}}(t,n);break;case 5:Ja(t);break;case 4:ul(e,t,n)}}function rl(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&&rl(t)}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:{for(var t=e.return;null!==t;){if(il(t)){var n=t;break e}t=t.return}throw Error(te(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(te(161))}16&n.effectTag&&(Mt(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||il(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?al(e,n,t):ll(e,n,t)}function al(e,t,n){var o=e.tag,r=5===o||6===o;if(r)e=r?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=io));else if(4!==o&&null!==(e=e.child))for(al(e,t,n),e=e.sibling;null!==e;)al(e,t,n),e=e.sibling}function ll(e,t,n){var o=e.tag,r=5===o||6===o;if(r)e=r?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){for(var o,r,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(te(160));switch(o=s.stateNode,s.tag){case 5:r=!1;break e;case 3:case 4:o=o.containerInfo,r=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var a=e,l=i,u=n,p=l;;)if(ol(a,p,u),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===l)break e;for(;null===p.sibling;){if(null===p.return||p.return===l)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r?(a=o,l=i.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):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(ol(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&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function pl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void el(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[Ro]=o,"input"===e&&"radio"===o.type&&null!=o.name&&Ct(n,o),no(e,r),t=no(e,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];"style"===s?Zn(n,a):"dangerouslySetInnerHTML"===s?Lt(n,a):"children"===s?Mt(n,a):Ye(n,s,a,t)}switch(e){case"input":wt(n,o);break;case"textarea":Tt(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(e=o.value)?_t(n,!!o.multiple,e,!1):t!==!!o.multiple&&(null!=o.defaultValue?_t(n,!!o.multiple,o.defaultValue,!0):_t(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(te(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Fn(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?o=!1:(o=!0,n=t.child,Fl=ki()),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=Jn("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 cl(t);case 19:return void cl(t);case 17:return}throw Error(te(163))}function cl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qa),t.forEach((function(t){var o=Cu.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}var dl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=is(n,null)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ll||(Ll=!0,Ml=o),Xa(e,t)},n}function fl(e,t,n){(n=is(n,null)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return Xa(e,t),o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===kl?kl=new Set([this]):kl.add(this),Xa(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var gl,vl=Math.ceil,yl=ze.ReactCurrentDispatcher,ml=ze.ReactCurrentOwner,Cl=0,wl=3,El=4,bl=0,Rl=null,_l=null,Ol=0,Sl=Cl,Tl=null,Dl=1073741823,Pl=1073741823,Al=null,Nl=0,xl=!1,Fl=0,Il=null,Ll=!1,Ml=null,kl=null,Gl=!1,Vl=null,Wl=90,Hl=null,Bl=0,jl=null,Ul=0;function zl(){return 0!=(48&bl)?1073741821-(ki()/10|0):0!==Ul?Ul:Ul=1073741821-(ki()/10|0)}function Yl(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var o=Gi();if(0==(4&t))return 99===o?1073741823:1073741822;if(0!=(16&bl))return Ol;if(null!==n)e=zi(e,0|n.timeoutMs||5e3,250);else switch(o){case 99:e=1073741823;break;case 98:e=zi(e,150,100);break;case 97:case 96:e=zi(e,5e3,250);break;case 95:e=2;break;default:throw Error(te(326))}return null!==Rl&&e===Ol&&--e,e}function Kl(e,t){if(50<Bl)throw Bl=0,jl=null,Error(te(185));if(null!==(e=ql(e,t))){var n=Gi();1073741823===t?0!=(8&bl)&&0==(48&bl)?Jl(e):(Ql(e),0===bl&&ji()):Ql(e),0==(4&bl)||98!==n&&99!==n||(null===Hl?Hl=new Map([[e,t]]):(void 0===(n=Hl.get(e))||n>t)&&Hl.set(e,t))}}function ql(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&&(Rl===r&&(iu(t),Sl===El&&xu(r,Ol)),Fu(r,t)),r}function $l(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Nu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ql(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Bi(Jl.bind(null,e));else{var t=$l(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var o=zl();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!==Ai&&Ei(n)}e.callbackExpirationTime=t,e.callbackPriority=o,t=1073741823===t?Bi(Jl.bind(null,e)):Hi(o,Xl.bind(null,e),{timeout:10*(1073741821-t)-ki()}),e.callbackNode=t}}}function Xl(e,t){if(Ul=0,t)return Iu(e,t=zl()),Ql(e),null;var n=$l(e);if(0!==n){if(t=e.callbackNode,0!=(48&bl))throw Error(te(327));if(fu(),e===Rl&&n===Ol||tu(e,n),null!==_l){var o=bl;bl|=16;for(var r=ou();;)try{au();break}catch(a){nu(e,a)}if(Xi(),bl=o,yl.current=r,1===Sl)throw t=Tl,tu(e,n),xu(e,n),Ql(e),t;if(null===_l)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=Sl,Rl=null,o){case Cl:case 1:throw Error(te(345));case 2:Iu(e,2<n?2:n);break;case wl:if(xu(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pu(r)),1073741823===Dl&&10<(r=Fl+500-ki())){if(xl){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,tu(e,n);break}}if(0!==(i=$l(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=yo(cu.bind(null,e),r);break}cu(e);break;case El:if(xu(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pu(r)),xl&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,tu(e,n);break}if(0!==(r=$l(e))&&r!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==Pl?o=10*(1073741821-Pl)-ki():1073741823===Dl?o=0:(o=10*(1073741821-Dl)-5e3,0>(o=(r=ki())-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*vl(o/1960))-o)&&(o=n)),10<o){e.timeoutHandle=yo(cu.bind(null,e),o);break}cu(e);break;case 5:if(1073741823!==Dl&&null!==Al){i=Dl;var s=Al;if(0>=(o=0|s.busyMinDurationMs)?o=0:(r=0|s.busyDelayMs,o=(i=ki()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=r?0:r+o-i),10<o){xu(e,n),e.timeoutHandle=yo(cu.bind(null,e),o);break}}cu(e);break;default:throw Error(te(329))}if(Ql(e),e.callbackNode===t)return Xl.bind(null,e)}}return null}function Jl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&bl))throw Error(te(327));if(fu(),e===Rl&&t===Ol||tu(e,t),null!==_l){var n=bl;bl|=16;for(var o=ou();;)try{su();break}catch(r){nu(e,r)}if(Xi(),bl=n,yl.current=o,1===Sl)throw n=Tl,tu(e,t),xu(e,t),Ql(e),n;if(null!==_l)throw Error(te(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Rl=null,cu(e),Ql(e)}return null}function Zl(e,t){var n=bl;bl|=1;try{return e(t)}finally{0===(bl=n)&&ji()}}function eu(e,t){var n=bl;bl&=-2,bl|=8;try{return e(t)}finally{0===(bl=n)&&ji()}}function tu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,mo(n)),null!==_l)for(n=_l.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&fi();break;case 3:As(),si(pi),si(ui);break;case 5:xs(o);break;case 4:As();break;case 13:case 19:si(Fs);break;case 10:Ji(o)}n=n.return}Rl=e,_l=Ou(e.current,null),Ol=t,Sl=Cl,Tl=null,Pl=Dl=1073741823,Al=null,Nl=0,xl=!1}function nu(e,t){for(;;){try{if(Xi(),Ms.current=ha,Bs)for(var n=Vs.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}if(Gs=0,Hs=Ws=Vs=null,Bs=!1,null===_l||null===_l.return)return Sl=1,Tl=t,_l=null;e:{var r=e,i=_l.return,s=_l,a=t;if(t=Ol,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 p=0!=(1&Fs.current),c=i;do{var d;if(d=13===c.tag){var h=c.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var f=c.memoizedProps;d=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!p)}}if(d){var g=c.updateQueue;if(null===g){var v=new Set;v.add(l),c.updateQueue=v}else g.add(l);if(0==(2&c.mode)){if(c.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=is(1073741823,null);y.tag=2,ss(s,y)}s.expirationTime=1073741823;break e}a=void 0,s=t;var m=r.pingCache;if(null===m?(m=r.pingCache=new dl,a=new Set,m.set(l,a)):void 0===(a=m.get(l))&&(a=new Set,m.set(l,a)),!a.has(s)){a.add(s);var C=mu.bind(null,r,l,s);l.then(C,C)}c.effectTag|=4096,c.expirationTime=t;break e}c=c.return}while(null!==c);a=Error((ct(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."+dt(s))}5!==Sl&&(Sl=2),a=$a(a,s),c=i;do{switch(c.tag){case 3:l=a,c.effectTag|=4096,c.expirationTime=t,as(c,hl(c,l,t));break e;case 1:l=a;var w=c.type,E=c.stateNode;if(0==(64&c.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===kl||!kl.has(E)))){c.effectTag|=4096,c.expirationTime=t,as(c,fl(c,l,t));break e}}c=c.return}while(null!==c)}_l=uu(_l)}catch(b){t=b;continue}break}}function ou(){var e=yl.current;return yl.current=ha,null===e?ha:e}function ru(e,t){e<Dl&&2<e&&(Dl=e),null!==t&&e<Pl&&2<e&&(Pl=e,Al=t)}function iu(e){e>Nl&&(Nl=e)}function su(){for(;null!==_l;)_l=lu(_l)}function au(){for(;null!==_l&&!Ni();)_l=lu(_l)}function lu(e){var t=gl(e.alternate,e,Ol);return e.memoizedProps=e.pendingProps,null===t&&(t=uu(e)),ml.current=null,t}function uu(e){_l=e;do{var t=_l.alternate;if(e=_l.return,0==(2048&_l.effectTag)){if(t=Ka(t,_l,Ol),1===Ol||1!==_l.childExpirationTime){for(var n=0,o=_l.child;null!==o;){var r=o.expirationTime,i=o.childExpirationTime;r>n&&(n=r),i>n&&(n=i),o=o.sibling}_l.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=_l.firstEffect),null!==_l.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=_l.firstEffect),e.lastEffect=_l.lastEffect),1<_l.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=_l:e.firstEffect=_l,e.lastEffect=_l))}else{if(null!==(t=qa(_l)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=_l.sibling))return t;_l=e}while(null!==_l);return Sl===Cl&&(Sl=5),null}function pu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function cu(e){var t=Gi();return Wi(99,du.bind(null,e,t)),null}function du(e,t){do{fu()}while(null!==Vl);if(0!=(48&bl))throw Error(te(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(te(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=pu(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===Rl&&(_l=Rl=null,Ol=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var i=bl;bl|=32,ml.current=null,ho=jn;var s=po();if(co(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(a=(a=s.ownerDocument)&&a.defaultView||window).getSelection&&a.getSelection();if(l&&0!==l.rangeCount){a=l.anchorNode;var u=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{a.nodeType,p.nodeType}catch(O){a=null;break e}var c=0,d=-1,h=-1,f=0,g=0,v=s,y=null;t:for(;;){for(var m;v!==a||0!==u&&3!==v.nodeType||(d=c+u),v!==p||0!==l&&3!==v.nodeType||(h=c+l),3===v.nodeType&&(c+=v.nodeValue.length),null!==(m=v.firstChild);)y=v,v=m;for(;;){if(v===s)break t;if(y===a&&++f===u&&(d=c),y===p&&++g===l&&(h=c),null!==(m=v.nextSibling))break;y=(v=y).parentNode}v=m}a=-1===d||-1===h?null:{start:d,end:h}}else a=null}a=a||{start:0,end:0}}else a=null;fo={activeElementDetached:null,focusedElem:s,selectionRange:a},jn=!1,Il=r;do{try{hu()}catch(O){if(null===Il)throw Error(te(330));yu(Il,O),Il=Il.nextEffect}}while(null!==Il);Il=r;do{try{for(s=e,a=t;null!==Il;){var C=Il.effectTag;if(16&C&&Mt(Il.stateNode,""),128&C){var w=Il.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&C){case 2:sl(Il),Il.effectTag&=-3;break;case 6:sl(Il),Il.effectTag&=-3,pl(Il.alternate,Il);break;case 1024:Il.effectTag&=-1025;break;case 1028:Il.effectTag&=-1025,pl(Il.alternate,Il);break;case 4:pl(Il.alternate,Il);break;case 8:ul(s,u=Il,a),rl(u)}Il=Il.nextEffect}}catch(O){if(null===Il)throw Error(te(330));yu(Il,O),Il=Il.nextEffect}}while(null!==Il);if(E=fo,w=po(),C=E.focusedElem,a=E.selectionRange,w!==C&&C&&C.ownerDocument&&uo(C.ownerDocument.documentElement,C)){null!==a&&co(C)&&(w=a.start,void 0===(E=a.end)&&(E=w),"selectionStart"in C?(C.selectionStart=w,C.selectionEnd=Math.min(E,C.value.length)):(E=(w=C.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),u=C.textContent.length,s=Math.min(a.start,u),a=void 0===a.end?s:Math.min(a.end,u),!E.extend&&s>a&&(u=a,a=s,s=u),u=lo(C,s),p=lo(C,a),u&&p&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==p.node||E.focusOffset!==p.offset)&&((w=w.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),s>a?(E.addRange(w),E.extend(p.node,p.offset)):(w.setEnd(p.node,p.offset),E.addRange(w))))),w=[];for(E=C;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<w.length;C++)(E=w[C]).element.scrollLeft=E.left,E.element.scrollTop=E.top}jn=!!ho,fo=ho=null,e.current=n,Il=r;do{try{for(C=e;null!==Il;){var b=Il.effectTag;if(36&b&&nl(C,Il.alternate,Il),128&b){w=void 0;var R=Il.ref;if(null!==R){var _=Il.stateNode;switch(Il.tag){case 5:w=_;break;default:w=_}"function"==typeof R?R(w):R.current=w}}Il=Il.nextEffect}}catch(O){if(null===Il)throw Error(te(330));yu(Il,O),Il=Il.nextEffect}}while(null!==Il);Il=null,xi(),bl=i}else e.current=n;if(Gl)Gl=!1,Vl=e,Wl=t;else for(Il=r;null!==Il;)t=Il.nextEffect,Il.nextEffect=null,Il=t;if(0===(t=e.firstPendingTime)&&(kl=null),1073741823===t?e===jl?Bl++:(Bl=0,jl=e):Bl=0,"function"==typeof wu&&wu(n.stateNode,o),Ql(e),Ll)throw Ll=!1,e=Ml,Ml=null,e;return 0!=(8&bl)||ji(),null}function hu(){for(;null!==Il;){var e=Il.effectTag;0!=(256&e)&&Za(Il.alternate,Il),0==(512&e)||Gl||(Gl=!0,Hi(97,(function(){return fu(),null}))),Il=Il.nextEffect}}function fu(){if(90!==Wl){var e=97<Wl?97:Wl;return Wl=90,Wi(e,gu)}}function gu(){if(null===Vl)return!1;var e=Vl;if(Vl=null,0!=(48&bl))throw Error(te(331));var t=bl;for(bl|=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:el(5,n),tl(5,n)}}catch(o){if(null===e)throw Error(te(330));yu(e,o)}n=e.nextEffect,e.nextEffect=null,e=n}return bl=t,ji(),!0}function vu(e,t,n){ss(e,t=hl(e,t=$a(n,t),1073741823)),null!==(e=ql(e,1073741823))&&Ql(e)}function yu(e,t){if(3===e.tag)vu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vu(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===kl||!kl.has(o))){ss(n,e=fl(n,e=$a(t,e),1073741823)),null!==(n=ql(n,1073741823))&&Ql(n);break}}n=n.return}}function mu(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),Rl===e&&Ol===n?Sl===El||Sl===wl&&1073741823===Dl&&ki()-Fl<500?tu(e,Ol):xl=!0:Nu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ql(e)))}function Cu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Yl(t=zl(),e,null)),null!==(e=ql(e,t))&&Ql(e)}gl=function(e,t,n){var o=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||pi.current)Ta=!0;else{if(o<n){switch(Ta=!1,t.tag){case 3:Ma(t),Oa();break;case 5:if(Ns(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:hi(t.type)&&yi(t);break;case 4:Ps(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value,r=t.type._context,ai(Ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Ha(e,t,n):(ai(Fs,1&Fs.current),null!==(t=za(e,t,n))?t.sibling:null);ai(Fs,1&Fs.current);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return Ua(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),ai(Fs,Fs.current),!o)return null}return za(e,t,n)}Ta=!1}}else Ta=!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=di(t,ui.current),es(t,n),r=zs(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,hi(o)){var i=!0;yi(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,os(t);var s=o.getDerivedStateFromProps;"function"==typeof s&&ds(t,o,s,e),r.updater=hs,t.stateNode=r,r._reactInternalFiber=t,ys(t,o,e,n),t=La(null,t,o,!0,i,n)}else t.tag=0,Da(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 _u(e)?1:0;if(null!=e){if((e=e.$$typeof)===ot)return 11;if(e===st)return 14}return 2}(r),e=Yi(r,e),i){case 0:t=Fa(null,t,r,e,n);break e;case 1:t=Ia(null,t,r,e,n);break e;case 11:t=Pa(null,t,r,e,n);break e;case 14:t=Aa(null,t,r,Yi(r.type,e),o,n);break e}throw Error(te(306,r,""))}return t;case 0:return o=t.type,r=t.pendingProps,Fa(e,t,o,r=t.elementType===o?r:Yi(o,r),n);case 1:return o=t.type,r=t.pendingProps,Ia(e,t,o,r=t.elementType===o?r:Yi(o,r),n);case 3:if(Ma(t),o=t.updateQueue,null===e||null===o)throw Error(te(282));if(o=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,rs(e,t),ls(t,o,null,n),(o=t.memoizedState.element)===r)Oa(),t=za(e,t,n);else{if((r=t.stateNode.hydrate)&&(ma=Co(t.stateNode.containerInfo.firstChild),ya=t,r=Ca=!0),r)for(n=Rs(t,null,o,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Da(e,t,o,n),Oa();t=t.child}return t;case 5:return Ns(t),null===e&&ba(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,s=r.children,vo(o,r)?s=null:null!==i&&vo(o,i)&&(t.effectTag|=16),xa(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Da(e,t,s,n),t=t.child),t;case 6:return null===e&&ba(t),null;case 13:return Ha(e,t,n);case 4:return Ps(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=bs(t,null,o,n):Da(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,Pa(e,t,o,r=t.elementType===o?r:Yi(o,r),n);case 7:return Da(e,t,t.pendingProps,n),t.child;case 8:case 12:return Da(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,r=t.pendingProps,s=t.memoizedProps,i=r.value;var a=t.type._context;if(ai(Ki,a._currentValue),a._currentValue=i,null!==s)if(a=s.value,0===(i=Lr(a,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(a,i):1073741823))){if(s.children===r.children&&!pi.current){t=za(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o&&0!=(u.observedBits&i)){1===a.tag&&((u=is(n,null)).tag=2,ss(a,u)),a.expirationTime<n&&(a.expirationTime=n),null!==(u=a.alternate)&&u.expirationTime<n&&(u.expirationTime=n),Zi(a.return,n),l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else s=10===a.tag&&a.type===t.type?null:a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}Da(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,es(t,n),o=o(r=ts(r,i.unstable_observedBits)),t.effectTag|=1,Da(e,t,o,n),t.child;case 14:return i=Yi(r=t.type,t.pendingProps),Aa(e,t,r,i=Yi(r.type,i),o,n);case 15:return Na(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Yi(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,hi(o)?(e=!0,yi(t)):e=!1,es(t,n),gs(t,o,r),ys(t,o,r,n),La(null,t,o,!0,e,n);case 19:return Ua(e,t,n)}throw Error(te(156,t.tag))};var wu=null,Eu=null;function bu(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 Ru(e,t,n,o){return new bu(e,t,n,o)}function _u(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Ru(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 Su(e,t,n,o,r,i){var s=2;if(o=e,"function"==typeof e)_u(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Xe:return Tu(n.children,r,i,t);case nt:s=8,r|=7;break;case Je:s=8,r|=1;break;case Ze:return(e=Ru(12,n,t,8|r)).elementType=Ze,e.type=Ze,e.expirationTime=i,e;case rt:return(e=Ru(13,n,t,r)).type=rt,e.elementType=rt,e.expirationTime=i,e;case it:return(e=Ru(19,n,t,r)).elementType=it,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case et:s=10;break e;case tt:s=9;break e;case ot:s=11;break e;case st:s=14;break e;case at:s=16,o=null;break e;case lt:s=22;break e}throw Error(te(130,null==e?e:typeof e,""))}return(t=Ru(s,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function Tu(e,t,n,o){return(e=Ru(7,e,o,t)).expirationTime=n,e}function Du(e,t,n){return(e=Ru(6,e,null,t)).expirationTime=n,e}function Pu(e,t,n){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Au(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 Nu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function xu(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 Fu(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 Iu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Lu(e,t,n,o){var r=t.current,i=zl(),s=ps.suspense;i=Yl(i,r,s);e:if(n){t:{if($t(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(te(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(hi(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);throw Error(te(171))}if(1===n.tag){var l=n.type;if(hi(l)){n=vi(n,l,a);break e}}n=a}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=is(i,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),ss(r,t),Kl(r,i),i}function Mu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ku(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Gu(e,t){ku(e,t),(e=e.alternate)&&ku(e,t)}function Vu(e,t,n){var o=new Au(e,t,n=null!=n&&!0===n.hydrate),r=Ru(3,null,null,2===t?7:1===t?3:0);o.current=r,r.stateNode=o,os(r),e[_o]=o.current,n&&0!==t&&function(e,t){var n=qt(t);Rn.forEach((function(e){cn(e,t,n)})),_n.forEach((function(e){cn(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=o}function Wu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hu(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=Mu(s);a.call(e)}}Lu(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 Vu(e,0,t?{hydrate:!0}:void 0)}(n,o),s=i._internalRoot,"function"==typeof r){var l=r;r=function(){var e=Mu(s);l.call(e)}}eu((function(){Lu(t,s,e,r)}))}return Mu(s)}function Bu(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Qe,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function ju(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Wu(t))throw Error(te(200));return Bu(e,t,null,n)}Vu.prototype.render=function(e){Lu(e,this._internalRoot,null,null)},Vu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Lu(null,e,null,(function(){t[_o]=null}))},dn=function(e){if(13===e.tag){var t=zi(zl(),150,100);Kl(e,t),Gu(e,t)}},hn=function(e){13===e.tag&&(Kl(e,3),Gu(e,3))},fn=function(e){if(13===e.tag){var t=zl();Kl(e,t=Yl(t,e,null)),Gu(e,t)}},Re=function(e,t,n){switch(t){case"input":if(wt(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=Do(o);if(!r)throw Error(te(90));vt(o),wt(o,r)}}}break;case"textarea":Tt(e,n);break;case"select":null!=(t=n.value)&&_t(e,!!n.multiple,t,!1)}},Pe=Zl,Ae=function(e,t,n,o,r){var i=bl;bl|=4;try{return Wi(98,e.bind(null,t,n,o,r))}finally{0===(bl=i)&&ji()}},Ne=function(){0==(49&bl)&&(function(){if(null!==Hl){var e=Hl;Hl=null,e.forEach((function(e,t){Iu(t,e),Ql(t)})),ji()}}(),fu())},xe=function(e,t){var n=bl;bl|=2;try{return e(t)}finally{0===(bl=n)&&ji()}};var Uu={Events:[So,To,Do,Ee,me,Lo,function(e){en(e,Io)},Te,De,qn,on,fu,{current:!1}]};!function(e){var t=e.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);wu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(o){}},Eu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(o){}}}catch(o){}})(h({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ze.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Jt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Oo,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"});var zu={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Uu,createPortal:ju,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(te(188));throw Error(te(268,Object.keys(e)))}return e=null===(e=Jt(t))?null:e.stateNode},flushSync:function(e,t){if(0!=(48&bl))throw Error(te(187));var n=bl;bl|=1;try{return Wi(99,e.bind(null,t))}finally{bl=n,ji()}},hydrate:function(e,t,n){if(!Wu(t))throw Error(te(200));return Hu(null,e,t,!0,n)},render:function(e,t,n){if(!Wu(t))throw Error(te(200));return Hu(null,e,t,!1,n)},unmountComponentAtNode:function(e){if(!Wu(e))throw Error(te(40));return!!e._reactRootContainer&&(eu((function(){Hu(null,null,e,!1,(function(){e._reactRootContainer=null,e[_o]=null}))})),!0)},unstable_batchedUpdates:Zl,unstable_createPortal:function(e,t){return ju(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){if(!Wu(n))throw Error(te(200));if(null==e||void 0===e._reactInternalFiber)throw Error(te(38));return Hu(e,t,n,!1,o)},version:"16.13.1"},Yu=l((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=zu})),Ku=function(e,t){return(Ku=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 qu=function(){return(qu=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 $u(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 Qu(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function Xu(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Qu(arguments[t]));return e}var Ju=[];Object.freeze(Ju);var Zu={};function ep(){return++Sc.mobxGuid}function tp(e){throw np(!1,e),"X"}function np(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is a production build."))}function op(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}Object.freeze(Zu);var rp=function(){};function ip(e){return null!==e&&"object"==typeof e}function sp(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function ap(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function lp(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return ip(e)&&!0===e[n]}}function up(e){return e instanceof Map}function pp(e){return e instanceof Set}function cp(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 dp(e){return e&&e.toString?e.toString():new String(e).toString()}function hp(e){return null===e?null:"object"==typeof e?""+e:e}var fp=Symbol("mobx administration"),gp=function(){function e(e){void 0===e&&(e="Atom@"+ep()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Wp.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 xc(this)},e.prototype.reportChanged=function(){Ac(),function(e){if(e.lowestObserverState===Wp.STALE)return;e.lowestObserverState=Wp.STALE,e.observers.forEach((function(t){t.dependenciesState===Wp.UP_TO_DATE&&(t.isTracing!==Bp.NONE&&Fc(t,e),t.onBecomeStale()),t.dependenciesState=Wp.STALE}))}(this),Nc()},e.prototype.toString=function(){return this.name},e}(),vp=lp("Atom",gp);function yp(e,t,n){void 0===t&&(t=rp),void 0===n&&(n=rp);var o=new gp(e);return t!==rp&&Xc(o,t),n!==rp&&Jc(o,n),o}var mp={identity:function(e,t){return e===t},structural:function(e,t){return ah(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return ah(e,t,1)}},Cp=Symbol("mobx did run lazy initializers"),wp=Symbol("mobx pending decorators"),Ep={},bp={};function Rp(e,t){var n=t?Ep:bp;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return _p(this),this[e]},set:function(t){_p(this),this[e]=t}})}function _p(e){var t,n;if(!0!==e[Cp]){var o=e[wp];if(o){ap(e,Cp,!0);var r=Xu(Object.getOwnPropertySymbols(o),Object.keys(o));try{for(var i=$u(r),s=i.next();!s.done;s=i.next()){var a=o[s.value];a.propertyCreator(e,a.prop,a.descriptor,a.decoratorTarget,a.decoratorArguments)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}}}function Op(e,t){return function(){var n,o=function(o,r,i,s){if(!0===s)return t(o,r,i,o,n),null;if(!Object.prototype.hasOwnProperty.call(o,wp)){var a=o[wp];ap(o,wp,qu({},a))}return o[wp][r]={prop:r,propertyCreator:t,descriptor:i,decoratorTarget:o,decoratorArguments:n},Rp(r,e)};return Sp(arguments)?(n=Ju,o.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),o)}}function Sp(e){return(2===e.length||3===e.length)&&("string"==typeof e[1]||"symbol"==typeof e[1])||4===e.length&&!0===e[3]}function Tp(e,t,n){return dd(e)?e:Array.isArray(e)?Gp.array(e,{name:n}):sp(e)?Gp.object(e,void 0,{name:n}):up(e)?Gp.map(e,{name:n}):pp(e)?Gp.set(e,{name:n}):e}function Dp(e){return e}function Pp(e){np(e);var t=Op(!0,(function(t,n,o,r,i){var s=o?o.initializer?o.initializer.call(t):o.value:void 0;Xd(t).addObservableProp(n,s,e)})),n=("undefined"!=typeof process&&process.env,t);return n.enhancer=e,n}var Ap={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Np(e){return null==e?Ap:"string"==typeof e?{name:e,deep:!0,proxy:!0}:e}Object.freeze(Ap);var xp=Pp(Tp),Fp=Pp((function(e,t,n){return null==e||nh(e)||Bd(e)||Yd(e)||$d(e)?e:Array.isArray(e)?Gp.array(e,{name:n,deep:!1}):sp(e)?Gp.object(e,void 0,{name:n,deep:!1}):up(e)?Gp.map(e,{name:n,deep:!1}):pp(e)?Gp.set(e,{name:n,deep:!1}):tp(!1)})),Ip=Pp(Dp),Lp=Pp((function(e,t,n){return ah(e,t)?t:e}));function Mp(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?Dp:Tp}var kp={box:function(e,t){arguments.length>2&&Vp("box");var n=Np(t);return new gc(e,Mp(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&Vp("array");var n=Np(t);return kd(e,Mp(n),n.name)},map:function(e,t){arguments.length>2&&Vp("map");var n=Np(t);return new zd(e,Mp(n),n.name)},set:function(e,t){arguments.length>2&&Vp("set");var n=Np(t);return new qd(e,Mp(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&Vp("object");var o=Np(n);if(!1===o.proxy)return td({},e,t,o);var r=nd(o),i=td({},void 0,void 0,o),s=Pd(i);return od(s,e,t,r),s},ref:Ip,shallow:Fp,deep:xp,struct:Lp},Gp=function(e,t,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return xp.apply(null,arguments);if(dd(e))return e;var o=sp(e)?Gp.object(e,t,n):Array.isArray(e)?Gp.array(e,t):up(e)?Gp.map(e,t):pp(e)?Gp.set(e,t):e;if(o!==e)return o;tp(!1)};function Vp(e){tp("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(kp).forEach((function(e){return Gp[e]=kp[e]}));var Wp,Hp,Bp,jp,Up=Op(!1,(function(e,t,n,o,r){var i=n.get,s=n.set,a=r[0]||{};Xd(e).addComputedProp(e,t,qu({get:i,set:s,context:e},a))})),zp=Up({equals:mp.structural}),Yp=function(e,t,n){if("string"==typeof t)return Up.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return Up.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 yc(o)};Yp.struct=zp,(Hp=Wp||(Wp={}))[Hp.NOT_TRACKING=-1]="NOT_TRACKING",Hp[Hp.UP_TO_DATE=0]="UP_TO_DATE",Hp[Hp.POSSIBLY_STALE=1]="POSSIBLY_STALE",Hp[Hp.STALE=2]="STALE",(jp=Bp||(Bp={}))[jp.NONE=0]="NONE",jp[jp.LOG=1]="LOG",jp[jp.BREAK=2]="BREAK";var Kp=function(e){this.cause=e};function qp(e){return e instanceof Kp}function $p(e){switch(e.dependenciesState){case Wp.UP_TO_DATE:return!1;case Wp.NOT_TRACKING:case Wp.STALE:return!0;case Wp.POSSIBLY_STALE:for(var t=nc(!0),n=ec(),o=e.observing,r=o.length,i=0;i<r;i++){var s=o[i];if(mc(s)){if(Sc.disableErrorBoundaries)s.get();else try{s.get()}catch(a){return tc(n),oc(t),!0}if(e.dependenciesState===Wp.STALE)return tc(n),oc(t),!0}}return rc(e),tc(n),oc(t),!1}}function Qp(e){var t=e.observers.size>0;Sc.computationDepth>0&&t&&tp(!1),Sc.allowStateChanges||!t&&"strict"!==Sc.enforceActions||tp(!1)}function Xp(e,t,n){var o=nc(!0);rc(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Sc.runId;var r,i=Sc.trackingDerivation;if(Sc.trackingDerivation=e,!0===Sc.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(s){r=new Kp(s)}return Sc.trackingDerivation=i,function(e){for(var t=e.observing,n=e.observing=e.newObserving,o=Wp.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&&Dc(a,e),a.diffValue=0}for(;r--;){var a;1===(a=n[r]).diffValue&&(a.diffValue=0,Tc(a,e))}o!==Wp.UP_TO_DATE&&(e.dependenciesState=o,e.onBecomeStale())}(e),oc(o),r}function Jp(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Dc(t[n],e);e.dependenciesState=Wp.NOT_TRACKING}function Zp(e){var t=ec();try{return e()}finally{tc(t)}}function ec(){var e=Sc.trackingDerivation;return Sc.trackingDerivation=null,e}function tc(e){Sc.trackingDerivation=e}function nc(e){var t=Sc.allowStateReads;return Sc.allowStateReads=e,t}function oc(e){Sc.allowStateReads=e}function rc(e){if(e.dependenciesState!==Wp.UP_TO_DATE){e.dependenciesState=Wp.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Wp.UP_TO_DATE}}var ic=0,sc=1,ac=Object.getOwnPropertyDescriptor((function(){}),"name");function lc(e,t,n){var o=function(){return uc(e,t,n||this,arguments)};return o.isMobxAction=!0,o}function uc(e,t,n,o){var r=pc();try{return t.apply(n,o)}catch(i){throw r.error=i,i}finally{cc(r)}}function pc(e,t,n){var o=ec();Ac();var r={prevDerivation:o,prevAllowStateChanges:hc(!0),prevAllowStateReads:nc(!0),notifySpy:false,startTime:0,actionId:sc++,parentActionId:ic};return ic=r.actionId,r}function cc(e){ic!==e.actionId&&tp("invalid action stack. did you forget to finish an action?"),ic=e.parentActionId,void 0!==e.error&&(Sc.suppressReactionErrors=!0),fc(e.prevAllowStateChanges),oc(e.prevAllowStateReads),Nc(),tc(e.prevDerivation),e.notifySpy,Sc.suppressReactionErrors=!1}function dc(e,t){var n,o=hc(e);try{n=t()}finally{fc(o)}return n}function hc(e){var t=Sc.allowStateChanges;return Sc.allowStateChanges=e,t}function fc(e){Sc.allowStateChanges=e}ac&&ac.configurable;var gc=function(e){function t(t,n,o,r,i){void 0===o&&(o="ObservableValue@"+ep()),void 0===r&&(r=!0),void 0===i&&(i=mp.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}Ku(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))!==Sc.UNCHANGED){false,this.setNewValue(e)}},t.prototype.prepareNewValue=function(e){if(Qp(this),Ad(this)){var t=xd(this,{object:this,type:"update",newValue:e});if(!t)return Sc.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Sc.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Fd(this)&&Ld(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 Nd(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Id(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return hp(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(gp),vc=lp("ObservableValue",gc),yc=function(){function e(e){this.dependenciesState=Wp.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=Wp.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+ep(),this.value=new Kp(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Bp.NONE,np(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+ep(),e.set&&(this.setter=lc(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?mp.structural:mp.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==Wp.UP_TO_DATE)return;e.lowestObserverState=Wp.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===Wp.UP_TO_DATE&&(t.dependenciesState=Wp.POSSIBLY_STALE,t.isTracing!==Bp.NONE&&Fc(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&&tp("Cycle detected in computation "+this.name+": "+this.derivation),0!==Sc.inBatch||0!==this.observers.size||this.keepAlive?(xc(this),$p(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===Wp.STALE)return;e.lowestObserverState=Wp.STALE,e.observers.forEach((function(t){t.dependenciesState===Wp.POSSIBLY_STALE?t.dependenciesState=Wp.STALE:t.dependenciesState===Wp.UP_TO_DATE&&(e.lowestObserverState=Wp.UP_TO_DATE)}))}(this)):$p(this)&&(this.warnAboutUntrackedRead(),Ac(),this.value=this.computeValue(!1),Nc());var e=this.value;if(qp(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(qp(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){np(!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 np(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===Wp.NOT_TRACKING,n=this.computeValue(!0),o=t||qp(e)||qp(n)||!this.equals(e,n);return o&&(this.value=n),o},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Sc.computationDepth++,e)t=Xp(this,this.derivation,this.scope);else if(!0===Sc.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new Kp(n)}return Sc.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(Jp(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,o=!0,r=void 0;return Kc((function(){var i=n.get();if(!o||t){var s=ec();e({type:"update",object:n,newValue:i,oldValue:r}),tc(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 hp(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),mc=lp("ComputedValue",yc),Cc=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],wc=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},Ec={};function bc(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Ec}var Rc,_c=!0,Oc=!1,Sc=((Rc=bc()).__mobxInstanceCount>0&&!Rc.__mobxGlobals&&(_c=!1),Rc.__mobxGlobals&&Rc.__mobxGlobals.version!==(new wc).version&&(_c=!1),_c?Rc.__mobxGlobals?(Rc.__mobxInstanceCount+=1,Rc.__mobxGlobals.UNCHANGED||(Rc.__mobxGlobals.UNCHANGED={}),Rc.__mobxGlobals):(Rc.__mobxInstanceCount=1,Rc.__mobxGlobals=new wc):(setTimeout((function(){Oc||tp("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new wc));function Tc(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Dc(e,t){e.observers.delete(t),0===e.observers.size&&Pc(e)}function Pc(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Sc.pendingUnobservations.push(e))}function Ac(){Sc.inBatch++}function Nc(){if(0==--Sc.inBatch){kc();for(var e=Sc.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 yc&&n.suspend())}Sc.pendingUnobservations=[]}}function xc(e){var t=Sc.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&&Sc.inBatch>0&&Pc(e),!1)}function Fc(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Bp.BREAK){var n=[];Ic(rd(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 yc?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Ic(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Ic(e,t,n+1)})))}var Lc=function(){function e(e,t,n,o){void 0===e&&(e="Reaction@"+ep()),void 0===o&&(o=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=o,this.observing=[],this.newObserving=[],this.dependenciesState=Wp.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+ep(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Bp.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Sc.pendingReactions.push(this),kc())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Ac(),this._isScheduled=!1,$p(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}Nc()}},e.prototype.track=function(e){if(!this.isDisposed){Ac(),this._isRunning=!0;var t=Xp(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Jp(this),qp(t)&&this.reportExceptionInDerivation(t.cause),Nc()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Sc.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Sc.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),Sc.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Ac(),Jp(this),Nc()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[fp]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),wd(this,e)},e}();var Mc=function(e){return e()};function kc(){Sc.inBatch>0||Sc.isRunningReactions||Mc(Gc)}function Gc(){Sc.isRunningReactions=!0;for(var e=Sc.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()}Sc.isRunningReactions=!1}var Vc=lp("Reaction",Lc);function Wc(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Hc(){tp(!1)}function Bc(e){return function(t,n,o){if(o){if(o.value)return{value:lc(e,o.value),enumerable:!1,configurable:!0,writable:!0};var r=o.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return lc(e,r.call(this))}}}return jc(e).apply(this,arguments)}}function jc(e){return function(t,n,o){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){ap(this,n,Uc(e,t))}})}}var Uc=function(e,t,n,o){return 1===arguments.length&&"function"==typeof e?lc(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?lc(e,t):1===arguments.length&&"string"==typeof e?Bc(e):!0!==o?Bc(t).apply(null,arguments):void ap(e,t,lc(e.name||t,n.value,this))};function zc(e,t){"string"==typeof e||e.name;return uc(0,"function"==typeof e?e:t,this,void 0)}function Yc(e,t,n){ap(e,t,lc(t,n.bind(e)))}function Kc(e,t){void 0===t&&(t=Zu);var n,o=t&&t.name||e.name||"Autorun@"+ep();if(!t.scheduler&&!t.delay)n=new Lc(o,(function(){this.track(s)}),t.onError,t.requiresObservable);else{var r=$c(t),i=!1;n=new Lc(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()}Uc.bound=function(e,t,n,o){return!0===o?(Yc(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Yc(this,t,n.value||n.initializer.call(this)),this[t]},set:Hc}:{enumerable:!1,configurable:!0,set:function(e){Yc(this,t,e)},get:function(){}}};var qc=function(e){return e()};function $c(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:qc}function Qc(e,t,n){void 0===n&&(n=Zu);var o,r,i,s=n.name||"Reaction@"+ep(),a=Uc(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=$c(n),p=!0,c=!1,d=n.compareStructural?mp.structural:n.equals||mp.default,h=new Lc(s,(function(){p||l?f():c||(c=!0,u(f))}),n.onError,n.requiresObservable);function f(){if(c=!1,!h.isDisposed){var t=!1;h.track((function(){var n=e(h);t=p||!d(i,n),i=n})),p&&n.fireImmediately&&a(i,h),p||!0!==t||a(i,h),p&&(p=!1)}}return h.schedule(),h.getDisposer()}function Xc(e,t,n){return Zc("onBecomeObserved",e,t,n)}function Jc(e,t,n){return Zc("onBecomeUnobserved",e,t,n)}function Zc(e,t,n,o){var r="function"==typeof o?oh(t,n):oh(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]?tp(!1):function(){var e=r[s];e&&(e.delete(i),0===e.size&&delete r[s])}}function ed(e){var t,n,o=e.enforceActions,r=e.computedRequiresReaction,i=e.computedConfigurable,s=e.disableErrorBoundaries,a=e.reactionScheduler,l=e.reactionRequiresObservable,u=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Sc.pendingReactions.length||Sc.inBatch||Sc.isRunningReactions)&&tp("isolateGlobalState should be called before MobX is running any reactions"),Oc=!0,_c&&(0==--bc().__mobxInstanceCount&&(bc().__mobxGlobals=void 0),Sc=new wc)),void 0!==o){var p=void 0;switch(o){case!0:case"observed":p=!0;break;case!1:case"never":p=!1;break;case"strict":case"always":p="strict";break;default:tp("Invalid value for 'enforceActions': '"+o+"', expected 'never', 'always' or 'observed'")}Sc.enforceActions=p,Sc.allowStateChanges=!0!==p&&"strict"!==p}void 0!==r&&(Sc.computedRequiresReaction=!!r),void 0!==l&&(Sc.reactionRequiresObservable=!!l),void 0!==u&&(Sc.observableRequiresReaction=!!u,Sc.allowStateReads=!Sc.observableRequiresReaction),void 0!==i&&(Sc.computedConfigurable=!!i),void 0!==s&&(!0===s&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),Sc.disableErrorBoundaries=!!s),a&&(t=a,n=Mc,Mc=function(e){return t((function(){return n(e)}))})}function td(e,t,n,o){var r=nd(o=Np(o));return _p(e),Xd(e,o.name,r.enhancer),t&&od(e,t,n,r),e}function nd(e){return e.defaultDecorator||(!1===e.deep?Ip:xp)}function od(e,t,n,o){var r,i;Ac();try{var s=cp(t);try{for(var a=$u(s),l=a.next();!l.done;l=a.next()){var u=l.value,p=Object.getOwnPropertyDescriptor(t,u);0;var c=(n&&u in n?n[u]:p.get?Up:o)(e,u,p,!0);c&&Object.defineProperty(e,u,c)}}catch(d){r={error:d}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}finally{Nc()}}function rd(e,t){return id(oh(e,t))}function id(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(id)),o}function sd(e){var t,n={name:e.name};return(t=e).observers&&t.observers.size>0&&(n.observers=Array.from(function(e){return e.observers}(e)).map(sd)),n}var ad=0;function ld(){this.message="FLOW_CANCELLED"}function ud(e){"function"==typeof e.cancel&&e.cancel()}function pd(e,t){if(null==e)return!1;if(void 0!==t){if(!1===nh(e))return!1;if(!e[fp].values.has(t))return!1;var n=oh(e,t);return mc(n)}return mc(e)}function cd(e,t){return null!=e&&(void 0!==t?!!nh(e)&&e[fp].values.has(t):nh(e)||!!e[fp]||vp(e)||Vc(e)||mc(e))}function dd(e){return 1!==arguments.length&&tp(!1),cd(e)}function hd(e){return nh(e)?e[fp].getKeys():Yd(e)||$d(e)?Array.from(e.keys()):Bd(e)?e.map((function(e,t){return t})):tp(!1)}function fd(e,t,n){if(2!==arguments.length||$d(e))if(nh(e)){var o=e[fp],r=o.values.get(t);r?o.write(t,n):o.addObservableProp(t,n,o.defaultEnhancer)}else if(Yd(e))e.set(t,n);else if($d(e))e.add(t);else{if(!Bd(e))return tp(!1);"number"!=typeof t&&(t=parseInt(t,10)),np(t>=0,"Not a valid index: '"+t+"'"),Ac(),t>=e.length&&(e.length=t+1),e[t]=n,Nc()}else{Ac();var i=t;try{for(var s in i)fd(e,s,i[s])}finally{Nc()}}}function gd(e,t){return nh(e)?rh(e).has(t):Yd(e)||$d(e)?e.has(t):Bd(e)?t>=0&&t<e.length:tp(!1)}ld.prototype=Object.create(Error.prototype);var vd={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function yd(e,t,n,o){return o.detectCycles&&e.set(t,n),n}function md(e,t,n){if(!t.recurseEverything&&!dd(e))return e;if("object"!=typeof e)return e;if(null===e)return null;if(e instanceof Date)return e;if(vc(e))return md(e.get(),t,n);if(dd(e)&&hd(e),!0===t.detectCycles&&null!==e&&n.has(e))return n.get(e);if(Bd(e)||Array.isArray(e)){var o=yd(n,e,[],t),r=e.map((function(e){return md(e,t,n)}));o.length=r.length;for(var i=0,s=r.length;i<s;i++)o[i]=r[i];return o}if($d(e)||Object.getPrototypeOf(e)===Set.prototype){if(!1===t.exportMapsAsObjects){var a=yd(n,e,new Set,t);return e.forEach((function(e){a.add(md(e,t,n))})),a}var l=yd(n,e,[],t);return e.forEach((function(e){l.push(md(e,t,n))})),l}if(Yd(e)||Object.getPrototypeOf(e)===Map.prototype){if(!1===t.exportMapsAsObjects){var u=yd(n,e,new Map,t);return e.forEach((function(e,o){u.set(o,md(e,t,n))})),u}var p=yd(n,e,{},t);return e.forEach((function(e,o){p[o]=md(e,t,n)})),p}var c=yd(n,e,{},t);return cp(e).forEach((function(o){c[o]=md(e[o],t,n)})),c}function Cd(e,t){var n;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=vd),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(n=new Map),md(e,t,n)}function wd(){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=Ed(e);if(!o)return tp(!1);o.isTracing===Bp.NONE&&console.log("[mobx.trace] '"+o.name+"' tracing enabled"),o.isTracing=n?Bp.BREAK:Bp.LOG}function Ed(e){switch(e.length){case 0:return Sc.trackingDerivation;case 1:return oh(e[0]);case 2:return oh(e[0],e[1])}}function bd(e,t){void 0===t&&(t=void 0),Ac();try{return e.apply(t)}finally{Nc()}}function Rd(e,t,n){return 1===arguments.length||t&&"object"==typeof t?Od(e,t):_d(e,t,n||{})}function _d(e,t,n){var o;"number"==typeof n.timeout&&(o=setTimeout((function(){if(!i[fp].isDisposed){i();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name=n.name||"When@"+ep();var r=lc(n.name+"-effect",t),i=Kc((function(t){e()&&(t.dispose(),o&&clearTimeout(o),r())}),n);return i}function Od(e,t){var n,o=new Promise((function(o,r){var i=_d(e,o,qu(qu({},t),{onError:r}));n=function(){i(),r("WHEN_CANCELLED")}}));return o.cancel=n,o}function Sd(e){return e[fp]}function Td(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var Dd={has:function(e,t){if(t===fp||"constructor"===t||t===Cp)return!0;var n=Sd(e);return Td(t)?n.has(t):t in e},get:function(e,t){if(t===fp||"constructor"===t||t===Cp)return e[t];var n=Sd(e),o=n.values.get(t);if(o instanceof gp){var r=o.get();return void 0===r&&n.has(t),r}return Td(t)&&n.has(t),e[t]},set:function(e,t,n){return!!Td(t)&&(fd(e,t,n),!0)},deleteProperty:function(e,t){return!!Td(t)&&(Sd(e).remove(t),!0)},ownKeys:function(e){return Sd(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return tp("Dynamic observable objects cannot be frozen"),!1}};function Pd(e){var t=new Proxy(e,Dd);return e[fp].proxy=t,t}function Ad(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Nd(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),op((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function xd(e,t){var n=ec();try{for(var o=Xu(e.interceptors||[]),r=0,i=o.length;r<i&&(np(!(t=o[r](t))||t.type,"Intercept handlers should return nothing or a change object"),t);r++);return t}finally{tc(n)}}function Fd(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Id(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),op((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Ld(e,t){var n=ec(),o=e.changeListeners;if(o){for(var r=0,i=(o=o.slice()).length;r<i;r++)o[r](t);tc(n)}}var Md={get:function(e,t){return t===fp?e[fp]:"length"===t?e[fp].getArrayLength():"number"==typeof t?Vd.get.call(e,t):"string"!=typeof t||isNaN(t)?Vd.hasOwnProperty(t)?Vd[t]:e[t]:Vd.get.call(e,parseInt(t))},set:function(e,t,n){return"length"===t&&e[fp].setArrayLength(n),"number"==typeof t&&Vd.set.call(e,t,n),"symbol"==typeof t||isNaN(t)?e[t]=n:Vd.set.call(e,parseInt(t),n),!0},preventExtensions:function(e){return tp("Observable arrays cannot be frozen"),!1}};function kd(e,t,n,o){void 0===n&&(n="ObservableArray@"+ep()),void 0===o&&(o=!1);var r,i,s,a=new Gd(n,t,o);r=a.values,i=fp,s=a,Object.defineProperty(r,i,{enumerable:!1,writable:!1,configurable:!0,value:s});var l=new Proxy(a.values,Md);if(a.proxy=l,e&&e.length){var u=hc(!0);a.spliceWithArray(0,0,e),fc(u)}return l}var Gd=function(){function e(e,t,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new gp(e||"ObservableArray@"+ep()),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 Nd(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}),Id(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;Qp(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=Ju),Ad(this)){var i=xd(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!i)return Ju;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,Xu([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=Fd(this),i=r||o?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),r&&Ld(this,i)},e.prototype.notifyArraySplice=function(e,t,n){var o=!this.owned&&!1,r=Fd(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&&Ld(this,i)},e}(),Vd={intercept:function(e){return this[fp].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[fp].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[fp];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[fp];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[fp].spliceWithArray(e,t,n)},push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this[fp];return n.spliceWithArray(n.values.length,0,e),n.values.length},pop:function(){return this.splice(Math.max(this[fp].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[fp];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[fp],n=t.dehanceValues(t.values).indexOf(e);return n>-1&&(this.splice(n,1),!0)},get:function(e){var t=this[fp];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[fp],o=n.values;if(e<o.length){Qp(n.atom);var r=o[e];if(Ad(n)){var i=xd(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){Vd[e]=function(){var t=this[fp];t.atom.reportObserved();var n=t.dehanceValues(t.values);return n[e].apply(n,arguments)}}));var Wd,Hd=lp("ObservableArrayAdministration",Gd);function Bd(e){return ip(e)&&Hd(e[fp])}var jd,Ud={},zd=function(){function e(e,t,n){if(void 0===t&&(t=Tp),void 0===n&&(n="ObservableMap@"+ep()),this.enhancer=t,this.name=n,this[Wd]=Ud,this._keysAtom=yp(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(!Sc.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var o=n=new gc(this._has(e),Dp,this.name+"."+dp(e)+"?",!1);this._hasMap.set(e,o),Jc(o,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(Ad(this)){var o=xd(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(Ad(this)&&!(o=xd(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Fd(this),o=n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return bd((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),n&&Ld(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))!==Sc.UNCHANGED){var o=Fd(this),r=o?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;false,n.setNewValue(t),o&&Ld(this,r)}},e.prototype._addValue=function(e,t){var n=this;Qp(this._keysAtom),bd((function(){var o=new gc(t,n.enhancer,n.name+"."+dp(e),!1);n._data.set(e,o),t=o.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()}));var o=Fd(this);o&&Ld(this,o?{type:"add",object:this,name:e,newValue:t}:null)},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 ch({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 ch({next:function(){if(t<n.length){var o=n[t++];return{value:[o,e.get(o)],done:!1}}return{done:!0}}})},e.prototype[(Wd=fp,Symbol.iterator)]=function(){return this.entries()},e.prototype.forEach=function(e,t){var n,o;try{for(var r=$u(this),i=r.next();!i.done;i=r.next()){var s=Qu(i.value,2),a=s[0],l=s[1];e.call(t,l,a,this)}}catch(u){n={error:u}}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 Yd(e)&&(e=e.toJS()),bd((function(){sp(e)?cp(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=Qu(e,2),o=n[0],r=n[1];return t.set(o,r)})):up(e)?(e.constructor!==Map&&tp("Cannot initialize from classes that inherit from Map: "+e.constructor.name),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&tp("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;bd((function(){Zp((function(){var t,n;try{for(var o=$u(e.keys()),r=o.next();!r.done;r=o.next()){var i=r.value;e.delete(i)}}catch(s){t={error:s}}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 bd((function(){var n,o=sp(n=e)?Object.keys(n):Array.isArray(n)?n.map((function(e){return Qu(e,1)[0]})):up(n)||Yd(n)?Array.from(n.keys()):tp("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=$u(this),r=o.next();!r.done;r=o.next()){var i=Qu(r.value,2),s=i[0],a=i[1];n["symbol"==typeof s?s:dp(s)]=a}}catch(l){e={error:l}}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 dp(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return Id(this,e)},e.prototype.intercept=function(e){return Nd(this,e)},e}(),Yd=lp("ObservableMap",zd),Kd={},qd=function(){function e(e,t,n){if(void 0===t&&(t=Tp),void 0===n&&(n="ObservableSet@"+ep()),this.name=n,this[jd]=Kd,this._data=new Set,this._atom=yp(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;bd((function(){Zp((function(){var t,n;try{for(var o=$u(e._data.values()),r=o.next();!r.done;r=o.next()){var i=r.value;e.delete(i)}}catch(s){t={error:s}}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=$u(this),i=r.next();!i.done;i=r.next()){var s=i.value;e.call(t,s,s,this)}}catch(a){n={error:a}}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((Qp(this._atom),Ad(this))&&!(o=xd(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){bd((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=Fd(this),o=n?{type:"add",object:this,newValue:e}:null;n&&Ld(this,o)}return this},e.prototype.delete=function(e){var t=this;if(Ad(this)&&!(o=xd(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=Fd(this),o=n?{type:"delete",object:this,oldValue:e}:null;return bd((function(){t._atom.reportChanged(),t._data.delete(e)})),n&&Ld(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 ch({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 ch({next:function(){return t<n.length?{value:e.dehanceValue(n[t++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return $d(e)&&(e=e.toJS()),bd((function(){Array.isArray(e)||pp(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&tp("Cannot initialize set from "+e)})),this},e.prototype.observe=function(e,t){return Id(this,e)},e.prototype.intercept=function(e){return Nd(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},e.prototype[(jd=fp,Symbol.iterator)]=function(){return this.values()},e}(),$d=lp("ObservableSet",qd),Qd=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 gp(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 yc)o.set(t);else{if(Ad(this)){if(!(i=xd(this,{type:"update",object:this.proxy||n,name:e,newValue:t})))return;t=i.newValue}if((t=o.prepareNewValue(t))!==Sc.UNCHANGED){var r=Fd(this),i=r?{type:"update",object:this.proxy||n,oldValue:o.value,name:e,newValue:t}:null;false,o.setNewValue(t),r&&Ld(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 gc(o,Dp,this.name+"."+dp(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(Ad(this)){var r=xd(this,{object:this.proxy||o,name:e,type:"add",newValue:t});if(!r)return;t=r.newValue}var i=new gc(t,n,this.name+"."+dp(e),!1);this.values.set(e,i),t=i.value,Object.defineProperty(o,e,function(e){return Jd[e]||(Jd[e]={configurable:!0,enumerable:!0,get:function(){return this[fp].read(e)},set:function(t){this[fp].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+"."+dp(t),this.values.set(t,new yc(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 Zd[e]||(Zd[e]={configurable:Sc.computedConfigurable,enumerable:!1,get:function(){return eh(this).read(e)},set:function(t){eh(this).write(e,t)}})}(t))},e.prototype.remove=function(e){if(this.values.has(e)){var t=this.target;if(Ad(this))if(!(a=xd(this,{object:this.proxy||t,name:e,type:"remove"})))return;try{Ac();var n=Fd(this),o=!1,r=this.values.get(e),i=r&&r.get();if(r&&r.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){var s=this.pendingKeys.get(e);s&&s.set(!1)}delete this.target[e];var a=n?{type:"remove",object:this.proxy||t,oldValue:i,name:e}:null;o,n&&Ld(this,a)}finally{Nc()}}},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 Id(this,e)},e.prototype.intercept=function(e){return Nd(this,e)},e.prototype.notifyPropertyAddition=function(e,t){var n=Fd(this),o=n?{type:"add",object:this.proxy||this.target,name:e,newValue:t}:null;if(n&&Ld(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=$u(this.values),r=o.next();!r.done;r=o.next()){var i=Qu(r.value,2),s=i[0];i[1]instanceof gc&&n.push(s)}}catch(a){e={error:a}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},e}();function Xd(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n=Tp),Object.prototype.hasOwnProperty.call(e,fp))return e[fp];sp(e)||(t=(e.constructor.name||"ObservableObject")+"@"+ep()),t||(t="ObservableObject@"+ep());var o=new Qd(e,new Map,dp(t),n);return ap(e,fp,o),o}var Jd=Object.create(null),Zd=Object.create(null);function eh(e){var t=e[fp];return t||(_p(e),e[fp])}var th=lp("ObservableObjectAdministration",Qd);function nh(e){return!!ip(e)&&(_p(e),th(e[fp]))}function oh(e,t){if("object"==typeof e&&null!==e){if(Bd(e))return void 0!==t&&tp(!1),e[fp].atom;if($d(e))return e[fp];if(Yd(e)){var n=e;return void 0===t?n._keysAtom:((o=n._data.get(t)||n._hasMap.get(t))||tp(!1),o)}var o;if(_p(e),t&&!e[fp]&&e[t],nh(e))return t?((o=e[fp].values.get(t))||tp(!1),o):tp(!1);if(vp(e)||mc(e)||Vc(e))return e}else if("function"==typeof e&&Vc(e[fp]))return e[fp];return tp(!1)}function rh(e,t){return e||tp("Expecting some object"),void 0!==t?rh(oh(e,t)):vp(e)||mc(e)||Vc(e)||Yd(e)||$d(e)?e:(_p(e),e[fp]?e[fp]:void tp(!1))}function ih(e,t){return(void 0!==t?oh(e,t):nh(e)||Yd(e)||$d(e)?rh(e):oh(e)).name}var sh=Object.prototype.toString;function ah(e,t,n){return void 0===n&&(n=-1),lh(e,t,n)}function lh(e,t,n,o,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var s=sh.call(e);if(s!==sh.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=uh(e),t=uh(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!("function"==typeof l&&l instanceof l&&"function"==typeof u&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),r=r||[];for(var p=(o=o||[]).length;p--;)if(o[p]===e)return r[p]===t;if(o.push(e),r.push(t),a){if((p=e.length)!==t.length)return!1;for(;p--;)if(!lh(e[p],t[p],n-1,o,r))return!1}else{var c=Object.keys(e),d=void 0;if(p=c.length,Object.keys(t).length!==p)return!1;for(;p--;)if(!ph(t,d=c[p])||!lh(e[d],t[d],n-1,o,r))return!1}return o.pop(),r.pop(),!0}function uh(e){return Bd(e)?e.slice():up(e)||Yd(e)||pp(e)||$d(e)?Array.from(e.entries()):e}function ph(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ch(e){return e[Symbol.iterator]=dh,e}function dh(){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:Wc,extras:{getDebugName:ih},$mobx:fp});var hh=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",$mobx:fp,FlowCancellationError:ld,get IDerivationState(){return Wp},ObservableMap:zd,ObservableSet:qd,Reaction:Lc,_allowStateChanges:dc,_allowStateChangesInsideComputed:function(e){var t,n=Sc.computationDepth;Sc.computationDepth=0;try{t=e()}finally{Sc.computationDepth=n}return t},_allowStateReadsEnd:oc,_allowStateReadsStart:nc,_endAction:cc,_getAdministration:rh,_getGlobalState:function(){return Sc},_interceptReads:function(e,t,n){var o;if(Yd(e)||Bd(e)||vc(e))o=rh(e);else{if(!nh(e))return tp(!1);if("string"!=typeof t)return tp(!1);o=rh(e,t)}return void 0!==o.dehancer?tp(!1):(o.dehancer="function"==typeof t?t:n,function(){o.dehancer=void 0})},_isComputingDerivation:function(){return null!==Sc.trackingDerivation},_resetGlobalState:function(){var e=new wc;for(var t in e)-1===Cc.indexOf(t)&&(Sc[t]=e[t]);Sc.allowStateChanges=!Sc.enforceActions},_startAction:pc,action:Uc,autorun:Kc,comparer:mp,computed:Yp,configure:ed,createAtom:yp,decorate:function(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},entries:function(e){return nh(e)?hd(e).map((function(t){return[t,e[t]]})):Yd(e)?hd(e).map((function(t){return[t,e.get(t)]})):$d(e)?Array.from(e.entries()):Bd(e)?e.map((function(e,t){return[t,e]})):tp(!1)},extendObservable:td,flow:function(e){1!==arguments.length&&tp("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=++ad,s=Uc(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=Uc(t+" - runid: "+i+" - yield "+r++,s.next).call(s,e)}catch(l){return o(l)}p(n)}function u(e){var n;a=void 0;try{n=Uc(t+" - runid: "+i+" - yield "+r++,s.throw).call(s,e)}catch(l){return o(l)}p(n)}function p(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(a=Promise.resolve(t.value)).then(l,u);t.then(p,o)}n=o,l(void 0)}));return l.cancel=Uc(t+" - runid: "+i+" - cancel",(function(){try{a&&ud(a);var e=s.return(void 0),t=Promise.resolve(e.value);t.then(rp,rp),ud(t),n(new ld)}catch(o){n(o)}})),l}},get:function(e,t){if(gd(e,t))return nh(e)?e[t]:Yd(e)?e.get(t):Bd(e)?e[t]:tp(!1)},getAtom:oh,getDebugName:ih,getDependencyTree:rd,getObserverTree:function(e,t){return sd(oh(e,t))},has:gd,intercept:function(e,t,n){return"function"==typeof n?function(e,t,n){return rh(e,t).intercept(n)}(e,t,n):function(e,t){return rh(e).intercept(t)}(e,t)},isAction:function(e){return"function"==typeof e&&!0===e.isMobxAction},isArrayLike:function(e){return Array.isArray(e)||Bd(e)},isBoxedObservable:vc,isComputed:function(e){return arguments.length>1?tp(!1):pd(e)},isComputedProp:function(e,t){return"string"!=typeof t?tp(!1):pd(e,t)},isFlowCancellationError:function(e){return e instanceof ld},isObservable:dd,isObservableArray:Bd,isObservableMap:Yd,isObservableObject:nh,isObservableProp:function(e,t){return"string"!=typeof t?tp(!1):cd(e,t)},isObservableSet:$d,keys:hd,observable:Gp,observe:function(e,t,n,o){return"function"==typeof n?function(e,t,n,o){return rh(e,t).observe(n,o)}(e,t,n,o):function(e,t,n){return rh(e).observe(t,n)}(e,t,n)},onBecomeObserved:Xc,onBecomeUnobserved:Jc,onReactionError:function(e){return Sc.globalReactionErrorHandlers.push(e),function(){var t=Sc.globalReactionErrorHandlers.indexOf(e);t>=0&&Sc.globalReactionErrorHandlers.splice(t,1)}},reaction:Qc,remove:function(e,t){if(nh(e))e[fp].remove(t);else if(Yd(e))e.delete(t);else if($d(e))e.delete(t);else{if(!Bd(e))return tp(!1);"number"!=typeof t&&(t=parseInt(t,10)),np(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}},runInAction:zc,set:fd,spy:Wc,toJS:Cd,trace:wd,transaction:bd,untracked:Zp,values:function(e){return nh(e)?hd(e).map((function(t){return e[t]})):Yd(e)?hd(e).map((function(t){return e.get(t)})):$d(e)?Array.from(e.values()):Bd(e)?e.slice():tp(!1)},when:Rd}),fh=l((function(e,t){(function(){var n,o="Expected a function",r="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,l=32,u=64,p=128,c=256,d=1/0,h=9007199254740991,f=NaN,g=4294967295,v=[["ary",p],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",l],["partialRight",u],["rearg",c]],y="[object Arguments]",m="[object Array]",C="[object Boolean]",w="[object Date]",E="[object Error]",b="[object Function]",R="[object GeneratorFunction]",_="[object Map]",O="[object Number]",S="[object Object]",T="[object Promise]",D="[object RegExp]",P="[object Set]",A="[object String]",N="[object Symbol]",x="[object WeakMap]",F="[object ArrayBuffer]",I="[object DataView]",L="[object Float32Array]",M="[object Float64Array]",k="[object Int8Array]",G="[object Int16Array]",V="[object Int32Array]",W="[object Uint8Array]",H="[object Uint8ClampedArray]",B="[object Uint16Array]",j="[object Uint32Array]",U=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,$=RegExp(K.source),Q=RegExp(q.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,re=RegExp(oe.source),ie=/^\s+|\s+$/g,se=/^\s+/,ae=/\s+$/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,pe=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,Ce=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Re="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",De="\\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",Pe="['’]",Ae="[\\ud800-\\udfff]",Ne="["+De+"]",xe="["+Re+"]",Fe="\\d+",Ie="[\\u2700-\\u27bf]",Le="["+Oe+"]",Me="[^\\ud800-\\udfff"+De+Fe+_e+Oe+Se+"]",ke="\\ud83c[\\udffb-\\udfff]",Ge="[^\\ud800-\\udfff]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",We="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Se+"]",Be="(?:"+Le+"|"+Me+")",je="(?:"+He+"|"+Me+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+xe+"|"+ke+")"+"?",Ke="[\\ufe0e\\ufe0f]?",qe=Ke+Ye+("(?:\\u200d(?:"+[Ge,Ve,We].join("|")+")"+Ke+Ye+")*"),$e="(?:"+[Ie,Ve,We].join("|")+")"+qe,Qe="(?:"+[Ge+xe+"?",xe,Ve,We,Ae].join("|")+")",Xe=RegExp(Pe,"g"),Je=RegExp(xe,"g"),Ze=RegExp(ke+"(?="+ke+")|"+Qe+qe,"g"),et=RegExp([He+"?"+Le+"+"+Ue+"(?="+[Ne,He,"$"].join("|")+")",je+"+"+ze+"(?="+[Ne,He+Be,"$"].join("|")+")",He+"?"+Be+"+"+Ue,He+"+"+ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe,$e].join("|"),"g"),tt=RegExp("[\\u200d\\ud800-\\udfff"+Re+Te+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],rt=-1,it={};it[L]=it[M]=it[k]=it[G]=it[V]=it[W]=it[H]=it[B]=it[j]=!0,it[y]=it[m]=it[F]=it[C]=it[I]=it[w]=it[E]=it[b]=it[_]=it[O]=it[S]=it[D]=it[P]=it[A]=it[x]=!1;var st={};st[y]=st[m]=st[F]=st[I]=st[C]=st[w]=st[L]=st[M]=st[k]=st[G]=st[V]=st[_]=st[O]=st[S]=st[D]=st[P]=st[A]=st[N]=st[W]=st[H]=st[B]=st[j]=!0,st[E]=st[b]=st[x]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,pt="object"==typeof s&&s&&s.Object===Object&&s,ct="object"==typeof self&&self&&self.Object===Object&&self,dt=pt||ct||Function("return this")(),ht=t&&!t.nodeType&&t,ft=ht&&e&&!e.nodeType&&e,gt=ft&&ft.exports===ht,vt=gt&&pt.process,yt=function(){try{var e=ft&&ft.require&&ft.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(t){}}(),mt=yt&&yt.isArrayBuffer,Ct=yt&&yt.isDate,wt=yt&&yt.isMap,Et=yt&&yt.isRegExp,bt=yt&&yt.isSet,Rt=yt&&yt.isTypedArray;function _t(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 Ot(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 St(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Dt(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 Pt(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 At(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Nt(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 xt(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 It(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 Lt(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 kt=Ut("length");function Gt(e,t,n){var o;return n(e,(function(e,n,r){if(t(e,n,r))return o=n,!1})),o}function Vt(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 Wt(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):Vt(e,Bt,n)}function Ht(e,t,n,o){for(var r=n-1,i=e.length;++r<i;)if(o(e[r],t))return r;return-1}function Bt(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:f}function Ut(e){return function(t){return null==t?n:t[e]}}function zt(e){return function(t){return null==e?n:e[t]}}function Yt(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function Kt(e,t){for(var o,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==n&&(o=o===n?s:o+s)}return o}function qt(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function $t(e){return function(t){return e(t)}}function Qt(e,t){return xt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,o=e.length;++n<o&&Wt(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length;n--&&Wt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}var tn=zt({"À":"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"}),nn=zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(e){return"\\"+at[e]}function rn(e){return tt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function an(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,o=e.length,r=0,s=[];++n<o;){var a=e[n];a!==t&&a!==i||(e[n]=i,s[r++]=n)}return s}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){return rn(e)?function(e){var t=Ze.lastIndex=0;for(;Ze.test(e);)++t;return t}(e):kt(e)}function cn(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}var dn=zt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var hn=function e(t){var s,Re=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,ot))).Array,_e=t.Date,Oe=t.Error,Se=t.Function,Te=t.Math,De=t.Object,Pe=t.RegExp,Ae=t.String,Ne=t.TypeError,xe=Re.prototype,Fe=Se.prototype,Ie=De.prototype,Le=t["__core-js_shared__"],Me=Fe.toString,ke=Ie.hasOwnProperty,Ge=0,Ve=(s=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",We=Ie.toString,He=Me.call(De),Be=dt._,je=Pe("^"+Me.call(ke).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=gt?t.Buffer:n,ze=t.Symbol,Ye=t.Uint8Array,Ke=Ue?Ue.allocUnsafe:n,qe=an(De.getPrototypeOf,De),$e=De.create,Qe=Ie.propertyIsEnumerable,Ze=xe.splice,tt=ze?ze.isConcatSpreadable:n,at=ze?ze.iterator:n,pt=ze?ze.toStringTag:n,ct=function(){try{var e=di(De,"defineProperty");return e({},"",{}),e}catch(t){}}(),ht=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ft=_e&&_e.now!==dt.Date.now&&_e.now,vt=t.setTimeout!==dt.setTimeout&&t.setTimeout,yt=Te.ceil,kt=Te.floor,zt=De.getOwnPropertySymbols,fn=Ue?Ue.isBuffer:n,gn=t.isFinite,vn=xe.join,yn=an(De.keys,De),mn=Te.max,Cn=Te.min,wn=_e.now,En=t.parseInt,bn=Te.random,Rn=xe.reverse,_n=di(t,"DataView"),On=di(t,"Map"),Sn=di(t,"Promise"),Tn=di(t,"Set"),Dn=di(t,"WeakMap"),Pn=di(De,"create"),An=Dn&&new Dn,Nn={},xn=Bi(_n),Fn=Bi(On),In=Bi(Sn),Ln=Bi(Tn),Mn=Bi(Dn),kn=ze?ze.prototype:n,Gn=kn?kn.valueOf:n,Vn=kn?kn.toString:n;function Wn(e){if(ia(e)&&!qs(e)&&!(e instanceof Un)){if(e instanceof jn)return e;if(ke.call(e,"__wrapped__"))return ji(e)}return new jn(e)}var Hn=function(){function e(){}return function(t){if(!ra(t))return{};if($e)return $e(t);e.prototype=t;var o=new e;return e.prototype=n,o}}();function Bn(){}function jn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function zn(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 Yn(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 Kn(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 qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Yn(e);this.size=t.size}function Qn(e,t){var n=qs(e),o=!n&&Ks(e),r=!n&&!o&&Js(e),i=!n&&!o&&!r&&ha(e),s=n||o||r||i,a=s?qt(e.length,Ae):[],l=a.length;for(var u in e)!t&&!ke.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ci(u,l))||a.push(u);return a}function Xn(e){var t=e.length;return t?e[$o(0,t-1)]:n}function Jn(e,t){return Mi(Ar(e),ao(t,0,e.length))}function Zn(e){return Mi(Ar(e))}function eo(e,t,o){(o!==n&&!Us(e[t],o)||o===n&&!(t in e))&&io(e,t,o)}function to(e,t,o){var r=e[t];ke.call(e,t)&&Us(r,o)&&(o!==n||t in e)||io(e,t,o)}function no(e,t){for(var n=e.length;n--;)if(Us(e[n][0],t))return n;return-1}function oo(e,t,n,o){return ho(e,(function(e,r,i){t(o,e,n(e),i)})),o}function ro(e,t){return e&&Nr(t,La(t),e)}function io(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function so(e,t){for(var o=-1,r=t.length,i=Re(r),s=null==e;++o<r;)i[o]=s?n:Aa(e,t[o]);return i}function ao(e,t,o){return e==e&&(o!==n&&(e=e<=o?e:o),t!==n&&(e=e>=t?e:t)),e}function lo(e,t,o,r,i,s){var a,l=1&t,u=2&t,p=4&t;if(o&&(a=i?o(e,r,i,s):o(e)),a!==n)return a;if(!ra(e))return e;var c=qs(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ar(e,a)}else{var d=gi(e),h=d==b||d==R;if(Js(e))return _r(e,l);if(d==S||d==y||h&&!i){if(a=u||h?{}:yi(e),!l)return u?function(e,t){return Nr(e,fi(e),t)}(e,function(e,t){return e&&Nr(t,Ma(t),e)}(a,e)):function(e,t){return Nr(e,hi(e),t)}(e,ro(a,e))}else{if(!st[d])return i?e:{};a=function(e,t,n){var o=e.constructor;switch(t){case F:return Or(e);case C:case w:return new o(+e);case I:return function(e,t){var n=t?Or(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case M:case k:case G:case V:case W:case H:case B:case j:return Sr(e,n);case _:return new o;case O:case A:return new o(e);case D:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new o;case N:return r=e,Gn?De(Gn.call(r)):{}}var r}(e,d,l)}}s||(s=new $n);var f=s.get(e);if(f)return f;s.set(e,a),pa(e)?e.forEach((function(n){a.add(lo(n,t,o,n,e,s))})):sa(e)&&e.forEach((function(n,r){a.set(r,lo(n,t,o,r,e,s))}));var g=c?n:(p?u?ii:ri:u?Ma:La)(e);return St(g||e,(function(n,r){g&&(n=e[r=n]),to(a,r,lo(n,t,o,r,e,s))})),a}function uo(e,t,o){var r=o.length;if(null==e)return!r;for(e=De(e);r--;){var i=o[r],s=t[i],a=e[i];if(a===n&&!(i in e)||!s(a))return!1}return!0}function po(e,t,r){if("function"!=typeof e)throw new Ne(o);return xi((function(){e.apply(n,r)}),t)}function co(e,t,n,o){var r=-1,i=At,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=xt(t,$t(n))),o?(i=Nt,s=!1):t.length>=200&&(i=Xt,s=!1,t=new qn(t));e:for(;++r<a;){var p=e[r],c=null==n?p:n(p);if(p=o||0!==p?p:0,s&&c==c){for(var d=u;d--;)if(t[d]===c)continue e;l.push(p)}else i(t,c,o)||l.push(p)}return l}Wn.templateSettings={escape:X,evaluate:J,interpolate:Z,variable:"",imports:{_:Wn}},Wn.prototype=Bn.prototype,Wn.prototype.constructor=Wn,jn.prototype=Hn(Bn.prototype),jn.prototype.constructor=jn,Un.prototype=Hn(Bn.prototype),Un.prototype.constructor=Un,zn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},zn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zn.prototype.get=function(e){var t=this.__data__;if(Pn){var o=t[e];return o===r?n:o}return ke.call(t,e)?t[e]:n},zn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==n:ke.call(t,e)},zn.prototype.set=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Pn&&t===n?r:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=no(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,o=no(t,e);return o<0?n:t[o][1]},Yn.prototype.has=function(e){return no(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,o=no(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(On||Yn),string:new zn}},Kn.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return pi(this,e).get(e)},Kn.prototype.has=function(e){return pi(this,e).has(e)},Kn.prototype.set=function(e,t){var n=pi(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,r),this},qn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Yn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var o=n.__data__;if(!On||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(o)}return n.set(e,t),this.size=n.size,this};var ho=Ir(Eo),fo=Ir(bo,!0);function go(e,t){var n=!0;return ho(e,(function(e,o,r){return n=!!t(e,o,r)})),n}function vo(e,t,o){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(l===n?a==a&&!da(a):o(a,l)))var l=a,u=s}return u}function yo(e,t){var n=[];return ho(e,(function(e,o,r){t(e,o,r)&&n.push(e)})),n}function mo(e,t,n,o,r){var i=-1,s=e.length;for(n||(n=mi),r||(r=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?mo(a,t-1,n,o,r):Ft(r,a):o||(r[r.length]=a)}return r}var Co=Lr(),wo=Lr(!0);function Eo(e,t){return e&&Co(e,t,La)}function bo(e,t){return e&&wo(e,t,La)}function Ro(e,t){return Pt(t,(function(t){return ta(e[t])}))}function _o(e,t){for(var o=0,r=(t=wr(t,e)).length;null!=e&&o<r;)e=e[Hi(t[o++])];return o&&o==r?e:n}function Oo(e,t,n){var o=t(e);return qs(e)?o:Ft(o,n(e))}function So(e){return null==e?e===n?"[object Undefined]":"[object Null]":pt&&pt in De(e)?function(e){var t=ke.call(e,pt),o=e[pt];try{e[pt]=n;var r=!0}catch(s){}var i=We.call(e);r&&(t?e[pt]=o:delete e[pt]);return i}(e):function(e){return We.call(e)}(e)}function To(e,t){return e>t}function Do(e,t){return null!=e&&ke.call(e,t)}function Po(e,t){return null!=e&&t in De(e)}function Ao(e,t,o){for(var r=o?Nt:At,i=e[0].length,s=e.length,a=s,l=Re(s),u=1/0,p=[];a--;){var c=e[a];a&&t&&(c=xt(c,$t(t))),u=Cn(c.length,u),l[a]=!o&&(t||i>=120&&c.length>=120)?new qn(a&&c):n}c=e[0];var d=-1,h=l[0];e:for(;++d<i&&p.length<u;){var f=c[d],g=t?t(f):f;if(f=o||0!==f?f:0,!(h?Xt(h,g):r(p,g,o))){for(a=s;--a;){var v=l[a];if(!(v?Xt(v,g):r(e[a],g,o)))continue e}h&&h.push(g),p.push(f)}}return p}function No(e,t,o){var r=null==(e=Di(e,t=wr(t,e)))?e:e[Hi(es(t))];return null==r?n:_t(r,e,o)}function xo(e){return ia(e)&&So(e)==y}function Fo(e,t,o,r,i){return e===t||(null==e||null==t||!ia(e)&&!ia(t)?e!=e&&t!=t:function(e,t,o,r,i,s){var a=qs(e),l=qs(t),u=a?m:gi(e),p=l?m:gi(t),c=(u=u==y?S:u)==S,d=(p=p==y?S:p)==S,h=u==p;if(h&&Js(e)){if(!Js(t))return!1;a=!0,c=!1}if(h&&!c)return s||(s=new $n),a||ha(e)?ni(e,t,o,r,i,s):function(e,t,n,o,r,i,s){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case F:return!(e.byteLength!=t.byteLength||!i(new Ye(e),new Ye(t)));case C:case w:case O:return Us(+e,+t);case E:return e.name==t.name&&e.message==t.message;case D:case A:return e==t+"";case _:var a=sn;case P:var l=1&o;if(a||(a=un),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;o|=2,s.set(e,t);var p=ni(a(e),a(t),o,r,i,s);return s.delete(e),p;case N:if(Gn)return Gn.call(e)==Gn.call(t)}return!1}(e,t,u,o,r,i,s);if(!(1&o)){var f=c&&ke.call(e,"__wrapped__"),g=d&&ke.call(t,"__wrapped__");if(f||g){var v=f?e.value():e,b=g?t.value():t;return s||(s=new $n),i(v,b,o,r,s)}}if(!h)return!1;return s||(s=new $n),function(e,t,o,r,i,s){var a=1&o,l=ri(e),u=l.length,p=ri(t).length;if(u!=p&&!a)return!1;var c=u;for(;c--;){var d=l[c];if(!(a?d in t:ke.call(t,d)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var f=!0;s.set(e,t),s.set(t,e);var g=a;for(;++c<u;){var v=e[d=l[c]],y=t[d];if(r)var m=a?r(y,v,d,t,e,s):r(v,y,d,e,t,s);if(!(m===n?v===y||i(v,y,o,r,s):m)){f=!1;break}g||(g="constructor"==d)}if(f&&!g){var C=e.constructor,w=t.constructor;C==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof w&&w instanceof w||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,o,r,i,s)}(e,t,o,r,Fo,i))}function Io(e,t,o,r){var i=o.length,s=i,a=!r;if(null==e)return!s;for(e=De(e);i--;){var l=o[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var u=(l=o[i])[0],p=e[u],c=l[1];if(a&&l[2]){if(p===n&&!(u in e))return!1}else{var d=new $n;if(r)var h=r(p,c,u,e,t,d);if(!(h===n?Fo(c,p,3,r,d):h))return!1}}return!0}function Lo(e){return!(!ra(e)||(t=e,Ve&&Ve in t))&&(ta(e)?je:ye).test(Bi(e));var t}function Mo(e){return"function"==typeof e?e:null==e?al:"object"==typeof e?qs(e)?Bo(e[0],e[1]):Ho(e):vl(e)}function ko(e){if(!_i(e))return yn(e);var t=[];for(var n in De(e))ke.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Go(e){if(!ra(e))return function(e){var t=[];if(null!=e)for(var n in De(e))t.push(n);return t}(e);var t=_i(e),n=[];for(var o in e)("constructor"!=o||!t&&ke.call(e,o))&&n.push(o);return n}function Vo(e,t){return e<t}function Wo(e,t){var n=-1,o=Qs(e)?Re(e.length):[];return ho(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Ho(e){var t=ci(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||Io(n,e,t)}}function Bo(e,t){return Ei(e)&&Oi(t)?Si(Hi(e),t):function(o){var r=Aa(o,e);return r===n&&r===t?Na(o,e):Fo(t,r,3)}}function jo(e,t,o,r,i){e!==t&&Co(t,(function(s,a){if(i||(i=new $n),ra(s))!function(e,t,o,r,i,s,a){var l=Ai(e,o),u=Ai(t,o),p=a.get(u);if(p)return void eo(e,o,p);var c=s?s(l,u,o+"",e,t,a):n,d=c===n;if(d){var h=qs(u),f=!h&&Js(u),g=!h&&!f&&ha(u);c=u,h||f||g?qs(l)?c=l:Xs(l)?c=Ar(l):f?(d=!1,c=_r(u,!0)):g?(d=!1,c=Sr(u,!0)):c=[]:la(u)||Ks(u)?(c=l,Ks(l)?c=Ea(l):ra(l)&&!ta(l)||(c=yi(u))):d=!1}d&&(a.set(u,c),i(c,u,r,s,a),a.delete(u));eo(e,o,c)}(e,t,a,o,jo,r,i);else{var l=r?r(Ai(e,a),s,a+"",e,t,i):n;l===n&&(l=s),eo(e,a,l)}}),Ma)}function Uo(e,t){var o=e.length;if(o)return Ci(t+=t<0?o:0,o)?e[t]:n}function zo(e,t,n){var o=-1;return t=xt(t.length?t:[al],$t(ui())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Wo(e,(function(e,n,r){return{criteria:xt(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=Tr(r[o],i[o]);if(l)return o>=a?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yo(e,t,n){for(var o=-1,r=t.length,i={};++o<r;){var s=t[o],a=_o(e,s);n(a,s)&&er(i,wr(s,e),a)}return i}function Ko(e,t,n,o){var r=o?Ht:Wt,i=-1,s=t.length,a=e;for(e===t&&(t=Ar(t)),n&&(a=xt(e,$t(n)));++i<s;)for(var l=0,u=t[i],p=n?n(u):u;(l=r(a,p,l,o))>-1;)a!==e&&Ze.call(a,l,1),Ze.call(e,l,1);return e}function qo(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;Ci(r)?Ze.call(e,r,1):dr(e,r)}}return e}function $o(e,t){return e+kt(bn()*(t-e+1))}function Qo(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=kt(t/2))&&(e+=e)}while(t);return n}function Xo(e,t){return Fi(Ti(e,t,al),e+"")}function Jo(e){return Xn(Ua(e))}function Zo(e,t){var n=Ua(e);return Mi(n,ao(t,0,n.length))}function er(e,t,o,r){if(!ra(e))return e;for(var i=-1,s=(t=wr(t,e)).length,a=s-1,l=e;null!=l&&++i<s;){var u=Hi(t[i]),p=o;if(i!=a){var c=l[u];(p=r?r(c,u,l):n)===n&&(p=ra(c)?c:Ci(t[i+1])?[]:{})}to(l,u,p),l=l[u]}return e}var tr=An?function(e,t){return An.set(e,t),e}:al,nr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:rl(t),writable:!0})}:al;function or(e){return Mi(Ua(e))}function rr(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Re(r);++o<r;)i[o]=e[o+t];return i}function ir(e,t){var n;return ho(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}function sr(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&&!da(s)&&(n?s<=t:s<t)?o=i+1:r=i}return r}return ar(e,t,al,n)}function ar(e,t,o,r){t=o(t);for(var i=0,s=null==e?0:e.length,a=t!=t,l=null===t,u=da(t),p=t===n;i<s;){var c=kt((i+s)/2),d=o(e[c]),h=d!==n,f=null===d,g=d==d,v=da(d);if(a)var y=r||g;else y=p?g&&(r||h):l?g&&h&&(r||!f):u?g&&h&&!f&&(r||!v):!f&&!v&&(r?d<=t:d<t);y?i=c+1:s=c}return Cn(s,4294967294)}function lr(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||!Us(a,l)){var l=a;i[r++]=0===s?0:s}}return i}function ur(e){return"number"==typeof e?e:da(e)?f:+e}function pr(e){if("string"==typeof e)return e;if(qs(e))return xt(e,pr)+"";if(da(e))return Vn?Vn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function cr(e,t,n){var o=-1,r=At,i=e.length,s=!0,a=[],l=a;if(n)s=!1,r=Nt;else if(i>=200){var u=t?null:Qr(e);if(u)return un(u);s=!1,r=Xt,l=new qn}else l=t?[]:a;e:for(;++o<i;){var p=e[o],c=t?t(p):p;if(p=n||0!==p?p:0,s&&c==c){for(var d=l.length;d--;)if(l[d]===c)continue e;t&&l.push(c),a.push(p)}else r(l,c,n)||(l!==a&&l.push(c),a.push(p))}return a}function dr(e,t){return null==(e=Di(e,t=wr(t,e)))||delete e[Hi(es(t))]}function hr(e,t,n,o){return er(e,t,n(_o(e,t)),o)}function fr(e,t,n,o){for(var r=e.length,i=o?r:-1;(o?i--:++i<r)&&t(e[i],i,e););return n?rr(e,o?0:i,o?i+1:r):rr(e,o?i+1:0,o?r:i)}function gr(e,t){var n=e;return n instanceof Un&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))}),n)}function vr(e,t,n){var o=e.length;if(o<2)return o?cr(e[0]):[];for(var r=-1,i=Re(o);++r<o;)for(var s=e[r],a=-1;++a<o;)a!=r&&(i[r]=co(i[r]||s,e[a],t,n));return cr(mo(i,1),t,n)}function yr(e,t,o){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var l=r<s?t[r]:n;o(a,e[r],l)}return a}function mr(e){return Xs(e)?e:[]}function Cr(e){return"function"==typeof e?e:al}function wr(e,t){return qs(e)?e:Ei(e,t)?[e]:Wi(ba(e))}var Er=Xo;function br(e,t,o){var r=e.length;return o=o===n?r:o,!t&&o>=r?e:rr(e,t,o)}var Rr=ht||function(e){return dt.clearTimeout(e)};function _r(e,t){if(t)return e.slice();var n=e.length,o=Ke?Ke(n):new e.constructor(n);return e.copy(o),o}function Or(e){var t=new e.constructor(e.byteLength);return new Ye(t).set(new Ye(e)),t}function Sr(e,t){var n=t?Or(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Tr(e,t){if(e!==t){var o=e!==n,r=null===e,i=e==e,s=da(e),a=t!==n,l=null===t,u=t==t,p=da(t);if(!l&&!p&&!s&&e>t||s&&a&&u&&!l&&!p||r&&a&&u||!o&&u||!i)return 1;if(!r&&!s&&!p&&e<t||p&&o&&i&&!r&&!s||l&&o&&i||!a&&i||!u)return-1}return 0}function Dr(e,t,n,o){for(var r=-1,i=e.length,s=n.length,a=-1,l=t.length,u=mn(i-s,0),p=Re(l+u),c=!o;++a<l;)p[a]=t[a];for(;++r<s;)(c||r<i)&&(p[n[r]]=e[r]);for(;u--;)p[a++]=e[r++];return p}function Pr(e,t,n,o){for(var r=-1,i=e.length,s=-1,a=n.length,l=-1,u=t.length,p=mn(i-a,0),c=Re(p+u),d=!o;++r<p;)c[r]=e[r];for(var h=r;++l<u;)c[h+l]=t[l];for(;++s<a;)(d||r<i)&&(c[h+n[s]]=e[r++]);return c}function Ar(e,t){var n=-1,o=e.length;for(t||(t=Re(o));++n<o;)t[n]=e[n];return t}function Nr(e,t,o,r){var i=!o;o||(o={});for(var s=-1,a=t.length;++s<a;){var l=t[s],u=r?r(o[l],e[l],l,o,e):n;u===n&&(u=e[l]),i?io(o,l,u):to(o,l,u)}return o}function xr(e,t){return function(n,o){var r=qs(n)?Ot:oo,i=t?t():{};return r(n,e,ui(o,2),i)}}function Fr(e){return Xo((function(t,o){var r=-1,i=o.length,s=i>1?o[i-1]:n,a=i>2?o[2]:n;for(s=e.length>3&&"function"==typeof s?(i--,s):n,a&&wi(o[0],o[1],a)&&(s=i<3?n:s,i=1),t=De(t);++r<i;){var l=o[r];l&&e(t,l,r,s)}return t}))}function Ir(e,t){return function(n,o){if(null==n)return n;if(!Qs(n))return e(n,o);for(var r=n.length,i=t?r:-1,s=De(n);(t?i--:++i<r)&&!1!==o(s[i],i,s););return n}}function Lr(e){return function(t,n,o){for(var r=-1,i=De(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 Mr(e){return function(t){var o=rn(t=ba(t))?cn(t):n,r=o?o[0]:t.charAt(0),i=o?br(o,1).join(""):t.slice(1);return r[e]()+i}}function kr(e){return function(t){return It(tl(Ka(t).replace(Xe,"")),e,"")}}function Gr(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=Hn(e.prototype),o=e.apply(n,t);return ra(o)?o:n}}function Vr(e){return function(t,o,r){var i=De(t);if(!Qs(t)){var s=ui(o,3);t=La(t),o=function(e){return s(i[e],e,i)}}var a=e(t,o,r);return a>-1?i[s?t[a]:a]:n}}function Wr(e){return oi((function(t){var r=t.length,i=r,s=jn.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Ne(o);if(s&&!l&&"wrapper"==ai(a))var l=new jn([],!0)}for(i=l?i:r;++i<r;){var u=ai(a=t[i]),p="wrapper"==u?si(a):n;l=p&&bi(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?l[ai(p[0])].apply(l,p[3]):1==a.length&&bi(a)?l[u]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&qs(n))return l.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Hr(e,t,o,r,i,s,a,l,u,c){var d=t&p,h=1&t,f=2&t,g=24&t,v=512&t,y=f?n:Gr(e);return function n(){for(var p=arguments.length,m=Re(p),C=p;C--;)m[C]=arguments[C];if(g)var w=li(n),E=en(m,w);if(r&&(m=Dr(m,r,i,g)),s&&(m=Pr(m,s,a,g)),p-=E,g&&p<c){var b=ln(m,w);return qr(e,t,Hr,n.placeholder,o,m,b,l,u,c-p)}var R=h?o:this,_=f?R[e]:e;return p=m.length,l?m=Pi(m,l):v&&p>1&&m.reverse(),d&&u<p&&(m.length=u),this&&this!==dt&&this instanceof n&&(_=y||Gr(_)),_.apply(R,m)}}function Br(e,t){return function(n,o){return function(e,t,n,o){return Eo(e,(function(e,r,i){t(o,n(e),r,i)})),o}(n,e,t(o),{})}}function jr(e,t){return function(o,r){var i;if(o===n&&r===n)return t;if(o!==n&&(i=o),r!==n){if(i===n)return r;"string"==typeof o||"string"==typeof r?(o=pr(o),r=pr(r)):(o=ur(o),r=ur(r)),i=e(o,r)}return i}}function Ur(e){return oi((function(t){return t=xt(t,$t(ui())),Xo((function(n){var o=this;return e(t,(function(e){return _t(e,o,n)}))}))}))}function zr(e,t){var o=(t=t===n?" ":pr(t)).length;if(o<2)return o?Qo(t,e):t;var r=Qo(t,yt(e/pn(t)));return rn(t)?br(cn(r),0,e).join(""):r.slice(0,e)}function Yr(e){return function(t,o,r){return r&&"number"!=typeof r&&wi(t,o,r)&&(o=r=n),t=ya(t),o===n?(o=t,t=0):o=ya(o),function(e,t,n,o){for(var r=-1,i=mn(yt((t-e)/(n||1)),0),s=Re(i);i--;)s[o?i:++r]=e,e+=n;return s}(t,o,r=r===n?t<o?1:-1:ya(r),e)}}function Kr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=wa(t),n=wa(n)),e(t,n)}}function qr(e,t,o,r,i,s,a,p,c,d){var h=8&t;t|=h?l:u,4&(t&=~(h?u:l))||(t&=-4);var f=[e,t,i,h?s:n,h?a:n,h?n:s,h?n:a,p,c,d],g=o.apply(n,f);return bi(e)&&Ni(g,f),g.placeholder=r,Ii(g,e,t)}function $r(e){var t=Te[e];return function(e,n){if(e=wa(e),(n=null==n?0:Cn(ma(n),292))&&gn(e)){var o=(ba(e)+"e").split("e");return+((o=(ba(t(o[0]+"e"+(+o[1]+n)))+"e").split("e"))[0]+"e"+(+o[1]-n))}return t(e)}}var Qr=Tn&&1/un(new Tn([,-0]))[1]==d?function(e){return new Tn(e)}:dl;function Xr(e){return function(t){var n=gi(t);return n==_?sn(t):n==P?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return xt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jr(e,t,r,s,d,h,f,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Ne(o);var y=s?s.length:0;if(y||(t&=-97,s=d=n),f=f===n?f:mn(ma(f),0),g=g===n?g:ma(g),y-=d?d.length:0,t&u){var m=s,C=d;s=d=n}var w=v?n:si(e),E=[e,t,r,s,d,m,C,h,f,g];if(w&&function(e,t){var n=e[1],o=t[1],r=n|o,s=r<131,a=o==p&&8==n||o==p&&n==c&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!s&&!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?Dr(u,l,t[4]):l,e[4]=u?ln(e[3],i):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Pr(u,l,t[6]):l,e[6]=u?ln(e[5],i):t[6]);(l=t[7])&&(e[7]=l);o&p&&(e[8]=null==e[8]?t[8]:Cn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(E,w),e=E[0],t=E[1],r=E[2],s=E[3],d=E[4],!(g=E[9]=E[9]===n?v?0:e.length:mn(E[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||t==a?function(e,t,o){var r=Gr(e);return function i(){for(var s=arguments.length,a=Re(s),l=s,u=li(i);l--;)a[l]=arguments[l];var p=s<3&&a[0]!==u&&a[s-1]!==u?[]:ln(a,u);return(s-=p.length)<o?qr(e,t,Hr,i.placeholder,n,a,p,n,n,o-s):_t(this&&this!==dt&&this instanceof i?r:e,this,a)}}(e,t,g):t!=l&&33!=t||d.length?Hr.apply(n,E):function(e,t,n,o){var r=1&t,i=Gr(e);return function t(){for(var s=-1,a=arguments.length,l=-1,u=o.length,p=Re(u+a),c=this&&this!==dt&&this instanceof t?i:e;++l<u;)p[l]=o[l];for(;a--;)p[l++]=arguments[++s];return _t(c,r?n:this,p)}}(e,t,r,s);else var b=function(e,t,n){var o=1&t,r=Gr(e);return function t(){return(this&&this!==dt&&this instanceof t?r:e).apply(o?n:this,arguments)}}(e,t,r);return Ii((w?tr:Ni)(b,E),e,t)}function Zr(e,t,o,r){return e===n||Us(e,Ie[o])&&!ke.call(r,o)?t:e}function ei(e,t,o,r,i,s){return ra(e)&&ra(t)&&(s.set(t,e),jo(e,t,n,ei,s),s.delete(t)),e}function ti(e){return la(e)?n:e}function ni(e,t,o,r,i,s){var a=1&o,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var c=-1,d=!0,h=2&o?new qn:n;for(s.set(e,t),s.set(t,e);++c<l;){var f=e[c],g=t[c];if(r)var v=a?r(g,f,c,t,e,s):r(f,g,c,e,t,s);if(v!==n){if(v)continue;d=!1;break}if(h){if(!Mt(t,(function(e,t){if(!Xt(h,t)&&(f===e||i(f,e,o,r,s)))return h.push(t)}))){d=!1;break}}else if(f!==g&&!i(f,g,o,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function oi(e){return Fi(Ti(e,n,$i),e+"")}function ri(e){return Oo(e,La,hi)}function ii(e){return Oo(e,Ma,fi)}var si=An?function(e){return An.get(e)}:dl;function ai(e){for(var t=e.name+"",n=Nn[t],o=ke.call(Nn,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t}function li(e){return(ke.call(Wn,"placeholder")?Wn:e).placeholder}function ui(){var e=Wn.iteratee||ll;return e=e===ll?Mo:e,arguments.length?e(arguments[0],arguments[1]):e}function pi(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 ci(e){for(var t=La(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,Oi(r)]}return t}function di(e,t){var o=function(e,t){return null==e?n:e[t]}(e,t);return Lo(o)?o:n}var hi=zt?function(e){return null==e?[]:(e=De(e),Pt(zt(e),(function(t){return Qe.call(e,t)})))}:Cl,fi=zt?function(e){for(var t=[];e;)Ft(t,hi(e)),e=qe(e);return t}:Cl,gi=So;function vi(e,t,n){for(var o=-1,r=(t=wr(t,e)).length,i=!1;++o<r;){var s=Hi(t[o]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&oa(r)&&Ci(s,r)&&(qs(e)||Ks(e))}function yi(e){return"function"!=typeof e.constructor||_i(e)?{}:Hn(qe(e))}function mi(e){return qs(e)||Ks(e)||!!(tt&&e&&e[tt])}function Ci(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&Ce.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!ra(n))return!1;var o=typeof t;return!!("number"==o?Qs(n)&&Ci(t,n.length):"string"==o&&t in n)&&Us(n[t],e)}function Ei(e,t){if(qs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!da(e))||(te.test(e)||!ee.test(e)||null!=t&&e in De(t))}function bi(e){var t=ai(e),n=Wn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var o=si(n);return!!o&&e===o[0]}(_n&&gi(new _n(new ArrayBuffer(1)))!=I||On&&gi(new On)!=_||Sn&&gi(Sn.resolve())!=T||Tn&&gi(new Tn)!=P||Dn&&gi(new Dn)!=x)&&(gi=function(e){var t=So(e),o=t==S?e.constructor:n,r=o?Bi(o):"";if(r)switch(r){case xn:return I;case Fn:return _;case In:return T;case Ln:return P;case Mn:return x}return t});var Ri=Le?ta:wl;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function Oi(e){return e==e&&!ra(e)}function Si(e,t){return function(o){return null!=o&&(o[e]===t&&(t!==n||e in De(o)))}}function Ti(e,t,o){return t=mn(t===n?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=mn(n.length-t,0),s=Re(i);++r<i;)s[r]=n[t+r];r=-1;for(var a=Re(t+1);++r<t;)a[r]=n[r];return a[t]=o(s),_t(e,this,a)}}function Di(e,t){return t.length<2?e:_o(e,rr(t,0,-1))}function Pi(e,t){for(var o=e.length,r=Cn(t.length,o),i=Ar(e);r--;){var s=t[r];e[r]=Ci(s,o)?i[s]:n}return e}function Ai(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ni=Li(tr),xi=vt||function(e,t){return dt.setTimeout(e,t)},Fi=Li(nr);function Ii(e,t,n){var o=t+"";return Fi(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(le,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return St(v,(function(n){var o="_."+n[0];t&n[1]&&!At(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(pe):[]}(o),n)))}function Li(e){var t=0,o=0;return function(){var r=wn(),i=16-(r-o);if(o=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Mi(e,t){var o=-1,r=e.length,i=r-1;for(t=t===n?r:t;++o<t;){var s=$o(o,i),a=e[s];e[s]=e[o],e[o]=a}return e.length=t,e}var ki,Gi,Vi,Wi=(ki=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,o,r){t.push(o?r.replace(de,"$1"):n||e)})),t},Gi=Gs(ki,(function(e){return 500===Vi.size&&Vi.clear(),e})),Vi=Gi.cache,Gi);function Hi(e){if("string"==typeof e||da(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bi(e){if(null!=e){try{return Me.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ji(e){if(e instanceof Un)return e.clone();var t=new jn(e.__wrapped__,e.__chain__);return t.__actions__=Ar(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ui=Xo((function(e,t){return Xs(e)?co(e,mo(t,1,Xs,!0)):[]})),zi=Xo((function(e,t){var o=es(t);return Xs(o)&&(o=n),Xs(e)?co(e,mo(t,1,Xs,!0),ui(o,2)):[]})),Yi=Xo((function(e,t){var o=es(t);return Xs(o)&&(o=n),Xs(e)?co(e,mo(t,1,Xs,!0),n,o):[]}));function Ki(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:ma(n);return r<0&&(r=mn(o+r,0)),Vt(e,ui(t,3),r)}function qi(e,t,o){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return o!==n&&(i=ma(o),i=o<0?mn(r+i,0):Cn(i,r-1)),Vt(e,ui(t,3),i,!0)}function $i(e){return(null==e?0:e.length)?mo(e,1):[]}function Qi(e){return e&&e.length?e[0]:n}var Xi=Xo((function(e){var t=xt(e,mr);return t.length&&t[0]===e[0]?Ao(t):[]})),Ji=Xo((function(e){var t=es(e),o=xt(e,mr);return t===es(o)?t=n:o.pop(),o.length&&o[0]===e[0]?Ao(o,ui(t,2)):[]})),Zi=Xo((function(e){var t=es(e),o=xt(e,mr);return(t="function"==typeof t?t:n)&&o.pop(),o.length&&o[0]===e[0]?Ao(o,n,t):[]}));function es(e){var t=null==e?0:e.length;return t?e[t-1]:n}var ts=Xo(ns);function ns(e,t){return e&&e.length&&t&&t.length?Ko(e,t):e}var os=oi((function(e,t){var n=null==e?0:e.length,o=so(e,t);return qo(e,xt(t,(function(e){return Ci(e,n)?+e:e})).sort(Tr)),o}));function rs(e){return null==e?e:Rn.call(e)}var is=Xo((function(e){return cr(mo(e,1,Xs,!0))})),ss=Xo((function(e){var t=es(e);return Xs(t)&&(t=n),cr(mo(e,1,Xs,!0),ui(t,2))})),as=Xo((function(e){var t=es(e);return t="function"==typeof t?t:n,cr(mo(e,1,Xs,!0),n,t)}));function ls(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Xs(e))return t=mn(e.length,t),!0})),qt(t,(function(t){return xt(e,Ut(t))}))}function us(e,t){if(!e||!e.length)return[];var o=ls(e);return null==t?o:xt(o,(function(e){return _t(t,n,e)}))}var ps=Xo((function(e,t){return Xs(e)?co(e,t):[]})),cs=Xo((function(e){return vr(Pt(e,Xs))})),ds=Xo((function(e){var t=es(e);return Xs(t)&&(t=n),vr(Pt(e,Xs),ui(t,2))})),hs=Xo((function(e){var t=es(e);return t="function"==typeof t?t:n,vr(Pt(e,Xs),n,t)})),fs=Xo(ls);var gs=Xo((function(e){var t=e.length,o=t>1?e[t-1]:n;return o="function"==typeof o?(e.pop(),o):n,us(e,o)}));function vs(e){var t=Wn(e);return t.__chain__=!0,t}function ys(e,t){return t(e)}var ms=oi((function(e){var t=e.length,o=t?e[0]:0,r=this.__wrapped__,i=function(t){return so(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&Ci(o)?((r=r.slice(o,+o+(t?1:0))).__actions__.push({func:ys,args:[i],thisArg:n}),new jn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var Cs=xr((function(e,t,n){ke.call(e,n)?++e[n]:io(e,n,1)}));var ws=Vr(Ki),Es=Vr(qi);function bs(e,t){return(qs(e)?St:ho)(e,ui(t,3))}function Rs(e,t){return(qs(e)?Tt:fo)(e,ui(t,3))}var _s=xr((function(e,t,n){ke.call(e,n)?e[n].push(t):io(e,n,[t])}));var Os=Xo((function(e,t,n){var o=-1,r="function"==typeof t,i=Qs(e)?Re(e.length):[];return ho(e,(function(e){i[++o]=r?_t(t,e,n):No(e,t,n)})),i})),Ss=xr((function(e,t,n){io(e,n,t)}));function Ts(e,t){return(qs(e)?xt:Wo)(e,ui(t,3))}var Ds=xr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ps=Xo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),zo(e,mo(t,1),[])})),As=ft||function(){return dt.Date.now()};function Ns(e,t,o){return t=o?n:t,t=e&&null==t?e.length:t,Jr(e,p,n,n,n,n,t)}function xs(e,t){var r;if("function"!=typeof t)throw new Ne(o);return e=ma(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Fs=Xo((function(e,t,n){var o=1;if(n.length){var r=ln(n,li(Fs));o|=l}return Jr(e,o,t,n,r)})),Is=Xo((function(e,t,n){var o=3;if(n.length){var r=ln(n,li(Is));o|=l}return Jr(t,o,e,n,r)}));function Ls(e,t,r){var i,s,a,l,u,p,c=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new Ne(o);function g(t){var o=i,r=s;return i=s=n,c=t,l=e.apply(r,o)}function v(e){return c=e,u=xi(m,t),d?g(e):l}function y(e){var o=e-p;return p===n||o>=t||o<0||h&&e-c>=a}function m(){var e=As();if(y(e))return C(e);u=xi(m,function(e){var n=t-(e-p);return h?Cn(n,a-(e-c)):n}(e))}function C(e){return u=n,f&&i?g(e):(i=s=n,l)}function w(){var e=As(),o=y(e);if(i=arguments,s=this,p=e,o){if(u===n)return v(p);if(h)return Rr(u),u=xi(m,t),g(p)}return u===n&&(u=xi(m,t)),l}return t=wa(t)||0,ra(r)&&(d=!!r.leading,a=(h="maxWait"in r)?mn(wa(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){u!==n&&Rr(u),c=0,i=p=s=u=n},w.flush=function(){return u===n?l:C(As())},w}var Ms=Xo((function(e,t){return po(e,1,t)})),ks=Xo((function(e,t,n){return po(e,wa(t)||0,n)}));function Gs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(o);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(Gs.Cache||Kn),n}function Vs(e){if("function"!=typeof e)throw new Ne(o);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)}}Gs.Cache=Kn;var Ws=Er((function(e,t){var n=(t=1==t.length&&qs(t[0])?xt(t[0],$t(ui())):xt(mo(t,1),$t(ui()))).length;return Xo((function(o){for(var r=-1,i=Cn(o.length,n);++r<i;)o[r]=t[r].call(this,o[r]);return _t(e,this,o)}))})),Hs=Xo((function(e,t){var o=ln(t,li(Hs));return Jr(e,l,n,t,o)})),Bs=Xo((function(e,t){var o=ln(t,li(Bs));return Jr(e,u,n,t,o)})),js=oi((function(e,t){return Jr(e,c,n,n,n,t)}));function Us(e,t){return e===t||e!=e&&t!=t}var zs=Kr(To),Ys=Kr((function(e,t){return e>=t})),Ks=xo(function(){return arguments}())?xo:function(e){return ia(e)&&ke.call(e,"callee")&&!Qe.call(e,"callee")},qs=Re.isArray,$s=mt?$t(mt):function(e){return ia(e)&&So(e)==F};function Qs(e){return null!=e&&oa(e.length)&&!ta(e)}function Xs(e){return ia(e)&&Qs(e)}var Js=fn||wl,Zs=Ct?$t(Ct):function(e){return ia(e)&&So(e)==w};function ea(e){if(!ia(e))return!1;var t=So(e);return t==E||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!la(e)}function ta(e){if(!ra(e))return!1;var t=So(e);return t==b||t==R||"[object AsyncFunction]"==t||"[object Proxy]"==t}function na(e){return"number"==typeof e&&e==ma(e)}function oa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ia(e){return null!=e&&"object"==typeof e}var sa=wt?$t(wt):function(e){return ia(e)&&gi(e)==_};function aa(e){return"number"==typeof e||ia(e)&&So(e)==O}function la(e){if(!ia(e)||So(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==He}var ua=Et?$t(Et):function(e){return ia(e)&&So(e)==D};var pa=bt?$t(bt):function(e){return ia(e)&&gi(e)==P};function ca(e){return"string"==typeof e||!qs(e)&&ia(e)&&So(e)==A}function da(e){return"symbol"==typeof e||ia(e)&&So(e)==N}var ha=Rt?$t(Rt):function(e){return ia(e)&&oa(e.length)&&!!it[So(e)]};var fa=Kr(Vo),ga=Kr((function(e,t){return e<=t}));function va(e){if(!e)return[];if(Qs(e))return ca(e)?cn(e):Ar(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=gi(e);return(t==_?sn:t==P?un:Ua)(e)}function ya(e){return e?(e=wa(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=ya(e),n=t%1;return t==t?n?t-n:t:0}function Ca(e){return e?ao(ma(e),0,g):0}function wa(e){if("number"==typeof e)return e;if(da(e))return f;if(ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ie,"");var n=ve.test(e);return n||me.test(e)?ut(e.slice(2),n?2:8):ge.test(e)?f:+e}function Ea(e){return Nr(e,Ma(e))}function ba(e){return null==e?"":pr(e)}var Ra=Fr((function(e,t){if(_i(t)||Qs(t))Nr(t,La(t),e);else for(var n in t)ke.call(t,n)&&to(e,n,t[n])})),_a=Fr((function(e,t){Nr(t,Ma(t),e)})),Oa=Fr((function(e,t,n,o){Nr(t,Ma(t),e,o)})),Sa=Fr((function(e,t,n,o){Nr(t,La(t),e,o)})),Ta=oi(so);var Da=Xo((function(e,t){e=De(e);var o=-1,r=t.length,i=r>2?t[2]:n;for(i&&wi(t[0],t[1],i)&&(r=1);++o<r;)for(var s=t[o],a=Ma(s),l=-1,u=a.length;++l<u;){var p=a[l],c=e[p];(c===n||Us(c,Ie[p])&&!ke.call(e,p))&&(e[p]=s[p])}return e})),Pa=Xo((function(e){return e.push(n,ei),_t(Ga,n,e)}));function Aa(e,t,o){var r=null==e?n:_o(e,t);return r===n?o:r}function Na(e,t){return null!=e&&vi(e,t,Po)}var xa=Br((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=We.call(t)),e[t]=n}),rl(al)),Fa=Br((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=We.call(t)),ke.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Ia=Xo(No);function La(e){return Qs(e)?Qn(e):ko(e)}function Ma(e){return Qs(e)?Qn(e,!0):Go(e)}var ka=Fr((function(e,t,n){jo(e,t,n)})),Ga=Fr((function(e,t,n,o){jo(e,t,n,o)})),Va=oi((function(e,t){var n={};if(null==e)return n;var o=!1;t=xt(t,(function(t){return t=wr(t,e),o||(o=t.length>1),t})),Nr(e,ii(e),n),o&&(n=lo(n,7,ti));for(var r=t.length;r--;)dr(n,t[r]);return n}));var Wa=oi((function(e,t){return null==e?{}:function(e,t){return Yo(e,t,(function(t,n){return Na(e,n)}))}(e,t)}));function Ha(e,t){if(null==e)return{};var n=xt(ii(e),(function(e){return[e]}));return t=ui(t),Yo(e,n,(function(e,n){return t(e,n[0])}))}var Ba=Xr(La),ja=Xr(Ma);function Ua(e){return null==e?[]:Qt(e,La(e))}var za=kr((function(e,t,n){return t=t.toLowerCase(),e+(n?Ya(t):t)}));function Ya(e){return el(ba(e).toLowerCase())}function Ka(e){return(e=ba(e))&&e.replace(we,tn).replace(Je,"")}var qa=kr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$a=kr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qa=Mr("toLowerCase");var Xa=kr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ja=kr((function(e,t,n){return e+(n?" ":"")+el(t)}));var Za=kr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),el=Mr("toUpperCase");function tl(e,t,o){return e=ba(e),(t=o?n:t)===n?function(e){return nt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var nl=Xo((function(e,t){try{return _t(e,n,t)}catch(o){return ea(o)?o:new Oe(o)}})),ol=oi((function(e,t){return St(t,(function(t){t=Hi(t),io(e,t,Fs(e[t],e))})),e}));function rl(e){return function(){return e}}var il=Wr(),sl=Wr(!0);function al(e){return e}function ll(e){return Mo("function"==typeof e?e:lo(e,1))}var ul=Xo((function(e,t){return function(n){return No(n,e,t)}})),pl=Xo((function(e,t){return function(n){return No(e,n,t)}}));function cl(e,t,n){var o=La(t),r=Ro(t,o);null!=n||ra(t)&&(r.length||!o.length)||(n=t,t=e,e=this,r=Ro(t,La(t)));var i=!(ra(n)&&"chain"in n&&!n.chain),s=ta(e);return St(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__=Ar(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 dl(){}var hl=Ur(xt),fl=Ur(Dt),gl=Ur(Mt);function vl(e){return Ei(e)?Ut(Hi(e)):function(e){return function(t){return _o(t,e)}}(e)}var yl=Yr(),ml=Yr(!0);function Cl(){return[]}function wl(){return!1}var El=jr((function(e,t){return e+t}),0),bl=$r("ceil"),Rl=jr((function(e,t){return e/t}),1),_l=$r("floor");var Ol,Sl=jr((function(e,t){return e*t}),1),Tl=$r("round"),Dl=jr((function(e,t){return e-t}),0);return Wn.after=function(e,t){if("function"!=typeof t)throw new Ne(o);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},Wn.ary=Ns,Wn.assign=Ra,Wn.assignIn=_a,Wn.assignInWith=Oa,Wn.assignWith=Sa,Wn.at=Ta,Wn.before=xs,Wn.bind=Fs,Wn.bindAll=ol,Wn.bindKey=Is,Wn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qs(e)?e:[e]},Wn.chain=vs,Wn.chunk=function(e,t,o){t=(o?wi(e,t,o):t===n)?1:mn(ma(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,s=0,a=Re(yt(r/t));i<r;)a[s++]=rr(e,i,i+=t);return a},Wn.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},Wn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Re(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ft(qs(n)?Ar(n):[n],mo(t,1))},Wn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?xt(e,(function(e){if("function"!=typeof e[1])throw new Ne(o);return[n(e[0]),e[1]]})):[],Xo((function(n){for(var o=-1;++o<t;){var r=e[o];if(_t(r[0],this,n))return _t(r[1],this,n)}}))},Wn.conforms=function(e){return function(e){var t=La(e);return function(n){return uo(n,e,t)}}(lo(e,1))},Wn.constant=rl,Wn.countBy=Cs,Wn.create=function(e,t){var n=Hn(e);return null==t?n:ro(n,t)},Wn.curry=function e(t,o,r){var i=Jr(t,8,n,n,n,n,n,o=r?n:o);return i.placeholder=e.placeholder,i},Wn.curryRight=function e(t,o,r){var i=Jr(t,a,n,n,n,n,n,o=r?n:o);return i.placeholder=e.placeholder,i},Wn.debounce=Ls,Wn.defaults=Da,Wn.defaultsDeep=Pa,Wn.defer=Ms,Wn.delay=ks,Wn.difference=Ui,Wn.differenceBy=zi,Wn.differenceWith=Yi,Wn.drop=function(e,t,o){var r=null==e?0:e.length;return r?rr(e,(t=o||t===n?1:ma(t))<0?0:t,r):[]},Wn.dropRight=function(e,t,o){var r=null==e?0:e.length;return r?rr(e,0,(t=r-(t=o||t===n?1:ma(t)))<0?0:t):[]},Wn.dropRightWhile=function(e,t){return e&&e.length?fr(e,ui(t,3),!0,!0):[]},Wn.dropWhile=function(e,t){return e&&e.length?fr(e,ui(t,3),!0):[]},Wn.fill=function(e,t,o,r){var i=null==e?0:e.length;return i?(o&&"number"!=typeof o&&wi(e,t,o)&&(o=0,r=i),function(e,t,o,r){var i=e.length;for((o=ma(o))<0&&(o=-o>i?0:i+o),(r=r===n||r>i?i:ma(r))<0&&(r+=i),r=o>r?0:Ca(r);o<r;)e[o++]=t;return e}(e,t,o,r)):[]},Wn.filter=function(e,t){return(qs(e)?Pt:yo)(e,ui(t,3))},Wn.flatMap=function(e,t){return mo(Ts(e,t),1)},Wn.flatMapDeep=function(e,t){return mo(Ts(e,t),d)},Wn.flatMapDepth=function(e,t,o){return o=o===n?1:ma(o),mo(Ts(e,t),o)},Wn.flatten=$i,Wn.flattenDeep=function(e){return(null==e?0:e.length)?mo(e,d):[]},Wn.flattenDepth=function(e,t){return(null==e?0:e.length)?mo(e,t=t===n?1:ma(t)):[]},Wn.flip=function(e){return Jr(e,512)},Wn.flow=il,Wn.flowRight=sl,Wn.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},Wn.functions=function(e){return null==e?[]:Ro(e,La(e))},Wn.functionsIn=function(e){return null==e?[]:Ro(e,Ma(e))},Wn.groupBy=_s,Wn.initial=function(e){return(null==e?0:e.length)?rr(e,0,-1):[]},Wn.intersection=Xi,Wn.intersectionBy=Ji,Wn.intersectionWith=Zi,Wn.invert=xa,Wn.invertBy=Fa,Wn.invokeMap=Os,Wn.iteratee=ll,Wn.keyBy=Ss,Wn.keys=La,Wn.keysIn=Ma,Wn.map=Ts,Wn.mapKeys=function(e,t){var n={};return t=ui(t,3),Eo(e,(function(e,o,r){io(n,t(e,o,r),e)})),n},Wn.mapValues=function(e,t){var n={};return t=ui(t,3),Eo(e,(function(e,o,r){io(n,o,t(e,o,r))})),n},Wn.matches=function(e){return Ho(lo(e,1))},Wn.matchesProperty=function(e,t){return Bo(e,lo(t,1))},Wn.memoize=Gs,Wn.merge=ka,Wn.mergeWith=Ga,Wn.method=ul,Wn.methodOf=pl,Wn.mixin=cl,Wn.negate=Vs,Wn.nthArg=function(e){return e=ma(e),Xo((function(t){return Uo(t,e)}))},Wn.omit=Va,Wn.omitBy=function(e,t){return Ha(e,Vs(ui(t)))},Wn.once=function(e){return xs(2,e)},Wn.orderBy=function(e,t,o,r){return null==e?[]:(qs(t)||(t=null==t?[]:[t]),qs(o=r?n:o)||(o=null==o?[]:[o]),zo(e,t,o))},Wn.over=hl,Wn.overArgs=Ws,Wn.overEvery=fl,Wn.overSome=gl,Wn.partial=Hs,Wn.partialRight=Bs,Wn.partition=Ds,Wn.pick=Wa,Wn.pickBy=Ha,Wn.property=vl,Wn.propertyOf=function(e){return function(t){return null==e?n:_o(e,t)}},Wn.pull=ts,Wn.pullAll=ns,Wn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ko(e,t,ui(n,2)):e},Wn.pullAllWith=function(e,t,o){return e&&e.length&&t&&t.length?Ko(e,t,n,o):e},Wn.pullAt=os,Wn.range=yl,Wn.rangeRight=ml,Wn.rearg=js,Wn.reject=function(e,t){return(qs(e)?Pt:yo)(e,Vs(ui(t,3)))},Wn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var o=-1,r=[],i=e.length;for(t=ui(t,3);++o<i;){var s=e[o];t(s,o,e)&&(n.push(s),r.push(o))}return qo(e,r),n},Wn.rest=function(e,t){if("function"!=typeof e)throw new Ne(o);return Xo(e,t=t===n?t:ma(t))},Wn.reverse=rs,Wn.sampleSize=function(e,t,o){return t=(o?wi(e,t,o):t===n)?1:ma(t),(qs(e)?Jn:Zo)(e,t)},Wn.set=function(e,t,n){return null==e?e:er(e,t,n)},Wn.setWith=function(e,t,o,r){return r="function"==typeof r?r:n,null==e?e:er(e,t,o,r)},Wn.shuffle=function(e){return(qs(e)?Zn:or)(e)},Wn.slice=function(e,t,o){var r=null==e?0:e.length;return r?(o&&"number"!=typeof o&&wi(e,t,o)?(t=0,o=r):(t=null==t?0:ma(t),o=o===n?r:ma(o)),rr(e,t,o)):[]},Wn.sortBy=Ps,Wn.sortedUniq=function(e){return e&&e.length?lr(e):[]},Wn.sortedUniqBy=function(e,t){return e&&e.length?lr(e,ui(t,2)):[]},Wn.split=function(e,t,o){return o&&"number"!=typeof o&&wi(e,t,o)&&(t=o=n),(o=o===n?g:o>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!ua(t))&&!(t=pr(t))&&rn(e)?br(cn(e),0,o):e.split(t,o):[]},Wn.spread=function(e,t){if("function"!=typeof e)throw new Ne(o);return t=null==t?0:mn(ma(t),0),Xo((function(n){var o=n[t],r=br(n,0,t);return o&&Ft(r,o),_t(e,this,r)}))},Wn.tail=function(e){var t=null==e?0:e.length;return t?rr(e,1,t):[]},Wn.take=function(e,t,o){return e&&e.length?rr(e,0,(t=o||t===n?1:ma(t))<0?0:t):[]},Wn.takeRight=function(e,t,o){var r=null==e?0:e.length;return r?rr(e,(t=r-(t=o||t===n?1:ma(t)))<0?0:t,r):[]},Wn.takeRightWhile=function(e,t){return e&&e.length?fr(e,ui(t,3),!1,!0):[]},Wn.takeWhile=function(e,t){return e&&e.length?fr(e,ui(t,3)):[]},Wn.tap=function(e,t){return t(e),e},Wn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ne(o);return ra(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ls(e,t,{leading:r,maxWait:t,trailing:i})},Wn.thru=ys,Wn.toArray=va,Wn.toPairs=Ba,Wn.toPairsIn=ja,Wn.toPath=function(e){return qs(e)?xt(e,Hi):da(e)?[e]:Ar(Wi(ba(e)))},Wn.toPlainObject=Ea,Wn.transform=function(e,t,n){var o=qs(e),r=o||Js(e)||ha(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=r?o?new i:[]:ra(e)&&ta(i)?Hn(qe(e)):{}}return(r?St:Eo)(e,(function(e,o,r){return t(n,e,o,r)})),n},Wn.unary=function(e){return Ns(e,1)},Wn.union=is,Wn.unionBy=ss,Wn.unionWith=as,Wn.uniq=function(e){return e&&e.length?cr(e):[]},Wn.uniqBy=function(e,t){return e&&e.length?cr(e,ui(t,2)):[]},Wn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?cr(e,n,t):[]},Wn.unset=function(e,t){return null==e||dr(e,t)},Wn.unzip=ls,Wn.unzipWith=us,Wn.update=function(e,t,n){return null==e?e:hr(e,t,Cr(n))},Wn.updateWith=function(e,t,o,r){return r="function"==typeof r?r:n,null==e?e:hr(e,t,Cr(o),r)},Wn.values=Ua,Wn.valuesIn=function(e){return null==e?[]:Qt(e,Ma(e))},Wn.without=ps,Wn.words=tl,Wn.wrap=function(e,t){return Hs(Cr(t),e)},Wn.xor=cs,Wn.xorBy=ds,Wn.xorWith=hs,Wn.zip=fs,Wn.zipObject=function(e,t){return yr(e||[],t||[],to)},Wn.zipObjectDeep=function(e,t){return yr(e||[],t||[],er)},Wn.zipWith=gs,Wn.entries=Ba,Wn.entriesIn=ja,Wn.extend=_a,Wn.extendWith=Oa,cl(Wn,Wn),Wn.add=El,Wn.attempt=nl,Wn.camelCase=za,Wn.capitalize=Ya,Wn.ceil=bl,Wn.clamp=function(e,t,o){return o===n&&(o=t,t=n),o!==n&&(o=(o=wa(o))==o?o:0),t!==n&&(t=(t=wa(t))==t?t:0),ao(wa(e),t,o)},Wn.clone=function(e){return lo(e,4)},Wn.cloneDeep=function(e){return lo(e,5)},Wn.cloneDeepWith=function(e,t){return lo(e,5,t="function"==typeof t?t:n)},Wn.cloneWith=function(e,t){return lo(e,4,t="function"==typeof t?t:n)},Wn.conformsTo=function(e,t){return null==t||uo(e,t,La(t))},Wn.deburr=Ka,Wn.defaultTo=function(e,t){return null==e||e!=e?t:e},Wn.divide=Rl,Wn.endsWith=function(e,t,o){e=ba(e),t=pr(t);var r=e.length,i=o=o===n?r:ao(ma(o),0,r);return(o-=t.length)>=0&&e.slice(o,i)==t},Wn.eq=Us,Wn.escape=function(e){return(e=ba(e))&&Q.test(e)?e.replace(q,nn):e},Wn.escapeRegExp=function(e){return(e=ba(e))&&re.test(e)?e.replace(oe,"\\$&"):e},Wn.every=function(e,t,o){var r=qs(e)?Dt:go;return o&&wi(e,t,o)&&(t=n),r(e,ui(t,3))},Wn.find=ws,Wn.findIndex=Ki,Wn.findKey=function(e,t){return Gt(e,ui(t,3),Eo)},Wn.findLast=Es,Wn.findLastIndex=qi,Wn.findLastKey=function(e,t){return Gt(e,ui(t,3),bo)},Wn.floor=_l,Wn.forEach=bs,Wn.forEachRight=Rs,Wn.forIn=function(e,t){return null==e?e:Co(e,ui(t,3),Ma)},Wn.forInRight=function(e,t){return null==e?e:wo(e,ui(t,3),Ma)},Wn.forOwn=function(e,t){return e&&Eo(e,ui(t,3))},Wn.forOwnRight=function(e,t){return e&&bo(e,ui(t,3))},Wn.get=Aa,Wn.gt=zs,Wn.gte=Ys,Wn.has=function(e,t){return null!=e&&vi(e,t,Do)},Wn.hasIn=Na,Wn.head=Qi,Wn.identity=al,Wn.includes=function(e,t,n,o){e=Qs(e)?e:Ua(e),n=n&&!o?ma(n):0;var r=e.length;return n<0&&(n=mn(r+n,0)),ca(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Wt(e,t,n)>-1},Wn.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:ma(n);return r<0&&(r=mn(o+r,0)),Wt(e,t,r)},Wn.inRange=function(e,t,o){return t=ya(t),o===n?(o=t,t=0):o=ya(o),function(e,t,n){return e>=Cn(t,n)&&e<mn(t,n)}(e=wa(e),t,o)},Wn.invoke=Ia,Wn.isArguments=Ks,Wn.isArray=qs,Wn.isArrayBuffer=$s,Wn.isArrayLike=Qs,Wn.isArrayLikeObject=Xs,Wn.isBoolean=function(e){return!0===e||!1===e||ia(e)&&So(e)==C},Wn.isBuffer=Js,Wn.isDate=Zs,Wn.isElement=function(e){return ia(e)&&1===e.nodeType&&!la(e)},Wn.isEmpty=function(e){if(null==e)return!0;if(Qs(e)&&(qs(e)||"string"==typeof e||"function"==typeof e.splice||Js(e)||ha(e)||Ks(e)))return!e.length;var t=gi(e);if(t==_||t==P)return!e.size;if(_i(e))return!ko(e).length;for(var n in e)if(ke.call(e,n))return!1;return!0},Wn.isEqual=function(e,t){return Fo(e,t)},Wn.isEqualWith=function(e,t,o){var r=(o="function"==typeof o?o:n)?o(e,t):n;return r===n?Fo(e,t,n,o):!!r},Wn.isError=ea,Wn.isFinite=function(e){return"number"==typeof e&&gn(e)},Wn.isFunction=ta,Wn.isInteger=na,Wn.isLength=oa,Wn.isMap=sa,Wn.isMatch=function(e,t){return e===t||Io(e,t,ci(t))},Wn.isMatchWith=function(e,t,o){return o="function"==typeof o?o:n,Io(e,t,ci(t),o)},Wn.isNaN=function(e){return aa(e)&&e!=+e},Wn.isNative=function(e){if(Ri(e))throw new Oe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lo(e)},Wn.isNil=function(e){return null==e},Wn.isNull=function(e){return null===e},Wn.isNumber=aa,Wn.isObject=ra,Wn.isObjectLike=ia,Wn.isPlainObject=la,Wn.isRegExp=ua,Wn.isSafeInteger=function(e){return na(e)&&e>=-9007199254740991&&e<=h},Wn.isSet=pa,Wn.isString=ca,Wn.isSymbol=da,Wn.isTypedArray=ha,Wn.isUndefined=function(e){return e===n},Wn.isWeakMap=function(e){return ia(e)&&gi(e)==x},Wn.isWeakSet=function(e){return ia(e)&&"[object WeakSet]"==So(e)},Wn.join=function(e,t){return null==e?"":vn.call(e,t)},Wn.kebabCase=qa,Wn.last=es,Wn.lastIndexOf=function(e,t,o){var r=null==e?0:e.length;if(!r)return-1;var i=r;return o!==n&&(i=(i=ma(o))<0?mn(r+i,0):Cn(i,r-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,i):Vt(e,Bt,i,!0)},Wn.lowerCase=$a,Wn.lowerFirst=Qa,Wn.lt=fa,Wn.lte=ga,Wn.max=function(e){return e&&e.length?vo(e,al,To):n},Wn.maxBy=function(e,t){return e&&e.length?vo(e,ui(t,2),To):n},Wn.mean=function(e){return jt(e,al)},Wn.meanBy=function(e,t){return jt(e,ui(t,2))},Wn.min=function(e){return e&&e.length?vo(e,al,Vo):n},Wn.minBy=function(e,t){return e&&e.length?vo(e,ui(t,2),Vo):n},Wn.stubArray=Cl,Wn.stubFalse=wl,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Sl,Wn.nth=function(e,t){return e&&e.length?Uo(e,ma(t)):n},Wn.noConflict=function(){return dt._===this&&(dt._=Be),this},Wn.noop=dl,Wn.now=As,Wn.pad=function(e,t,n){e=ba(e);var o=(t=ma(t))?pn(e):0;if(!t||o>=t)return e;var r=(t-o)/2;return zr(kt(r),n)+e+zr(yt(r),n)},Wn.padEnd=function(e,t,n){e=ba(e);var o=(t=ma(t))?pn(e):0;return t&&o<t?e+zr(t-o,n):e},Wn.padStart=function(e,t,n){e=ba(e);var o=(t=ma(t))?pn(e):0;return t&&o<t?zr(t-o,n)+e:e},Wn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),En(ba(e).replace(se,""),t||0)},Wn.random=function(e,t,o){if(o&&"boolean"!=typeof o&&wi(e,t,o)&&(t=o=n),o===n&&("boolean"==typeof t?(o=t,t=n):"boolean"==typeof e&&(o=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ya(e),t===n?(t=e,e=0):t=ya(t)),e>t){var r=e;e=t,t=r}if(o||e%1||t%1){var i=bn();return Cn(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return $o(e,t)},Wn.reduce=function(e,t,n){var o=qs(e)?It:Yt,r=arguments.length<3;return o(e,ui(t,4),n,r,ho)},Wn.reduceRight=function(e,t,n){var o=qs(e)?Lt:Yt,r=arguments.length<3;return o(e,ui(t,4),n,r,fo)},Wn.repeat=function(e,t,o){return t=(o?wi(e,t,o):t===n)?1:ma(t),Qo(ba(e),t)},Wn.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wn.result=function(e,t,o){var r=-1,i=(t=wr(t,e)).length;for(i||(i=1,e=n);++r<i;){var s=null==e?n:e[Hi(t[r])];s===n&&(r=i,s=o),e=ta(s)?s.call(e):s}return e},Wn.round=Tl,Wn.runInContext=e,Wn.sample=function(e){return(qs(e)?Xn:Jo)(e)},Wn.size=function(e){if(null==e)return 0;if(Qs(e))return ca(e)?pn(e):e.length;var t=gi(e);return t==_||t==P?e.size:ko(e).length},Wn.snakeCase=Xa,Wn.some=function(e,t,o){var r=qs(e)?Mt:ir;return o&&wi(e,t,o)&&(t=n),r(e,ui(t,3))},Wn.sortedIndex=function(e,t){return sr(e,t)},Wn.sortedIndexBy=function(e,t,n){return ar(e,t,ui(n,2))},Wn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var o=sr(e,t);if(o<n&&Us(e[o],t))return o}return-1},Wn.sortedLastIndex=function(e,t){return sr(e,t,!0)},Wn.sortedLastIndexBy=function(e,t,n){return ar(e,t,ui(n,2),!0)},Wn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=sr(e,t,!0)-1;if(Us(e[n],t))return n}return-1},Wn.startCase=Ja,Wn.startsWith=function(e,t,n){return e=ba(e),n=null==n?0:ao(ma(n),0,e.length),t=pr(t),e.slice(n,n+t.length)==t},Wn.subtract=Dl,Wn.sum=function(e){return e&&e.length?Kt(e,al):0},Wn.sumBy=function(e,t){return e&&e.length?Kt(e,ui(t,2)):0},Wn.template=function(e,t,o){var r=Wn.templateSettings;o&&wi(e,t,o)&&(t=n),e=ba(e),t=Oa({},t,r,Zr);var i,s,a=Oa({},t.imports,r.imports,Zr),l=La(a),u=Qt(a,l),p=0,c=t.interpolate||Ee,d="__p += '",h=Pe((t.escape||Ee).source+"|"+c.source+"|"+(c===Z?he:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),f="//# sourceURL="+(ke.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,(function(t,n,o,r,a,l){return o||(o=r),d+=e.slice(p,l).replace(be,on),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),o&&(d+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),p=l+t.length,t})),d+="';\n";var g=ke.call(t,"variable")&&t.variable;g||(d="with (obj) {\n"+d+"\n}\n"),d=(s?d.replace(U,""):d).replace(z,"$1").replace(Y,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=nl((function(){return Se(l,f+"return "+d).apply(n,u)}));if(v.source=d,ea(v))throw v;return v},Wn.times=function(e,t){if((e=ma(e))<1||e>h)return[];var n=g,o=Cn(e,g);t=ui(t),e-=g;for(var r=qt(o,t);++n<e;)t(n);return r},Wn.toFinite=ya,Wn.toInteger=ma,Wn.toLength=Ca,Wn.toLower=function(e){return ba(e).toLowerCase()},Wn.toNumber=wa,Wn.toSafeInteger=function(e){return e?ao(ma(e),-9007199254740991,h):0===e?e:0},Wn.toString=ba,Wn.toUpper=function(e){return ba(e).toUpperCase()},Wn.trim=function(e,t,o){if((e=ba(e))&&(o||t===n))return e.replace(ie,"");if(!e||!(t=pr(t)))return e;var r=cn(e),i=cn(t);return br(r,Jt(r,i),Zt(r,i)+1).join("")},Wn.trimEnd=function(e,t,o){if((e=ba(e))&&(o||t===n))return e.replace(ae,"");if(!e||!(t=pr(t)))return e;var r=cn(e);return br(r,0,Zt(r,cn(t))+1).join("")},Wn.trimStart=function(e,t,o){if((e=ba(e))&&(o||t===n))return e.replace(se,"");if(!e||!(t=pr(t)))return e;var r=cn(e);return br(r,Jt(r,cn(t))).join("")},Wn.truncate=function(e,t){var o=30,r="...";if(ra(t)){var i="separator"in t?t.separator:i;o="length"in t?ma(t.length):o,r="omission"in t?pr(t.omission):r}var s=(e=ba(e)).length;if(rn(e)){var a=cn(e);s=a.length}if(o>=s)return e;var l=o-pn(r);if(l<1)return r;var u=a?br(a,0,l).join(""):e.slice(0,l);if(i===n)return u+r;if(a&&(l+=u.length-l),ua(i)){if(e.slice(l).search(i)){var p,c=u;for(i.global||(i=Pe(i.source,ba(fe.exec(i))+"g")),i.lastIndex=0;p=i.exec(c);)var d=p.index;u=u.slice(0,d===n?l:d)}}else if(e.indexOf(pr(i),l)!=l){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},Wn.unescape=function(e){return(e=ba(e))&&$.test(e)?e.replace(K,dn):e},Wn.uniqueId=function(e){var t=++Ge;return ba(e)+t},Wn.upperCase=Za,Wn.upperFirst=el,Wn.each=bs,Wn.eachRight=Rs,Wn.first=Qi,cl(Wn,(Ol={},Eo(Wn,(function(e,t){ke.call(Wn.prototype,t)||(Ol[t]=e)})),Ol),{chain:!1}),Wn.VERSION="4.17.15",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Wn[e].placeholder=Wn})),St(["drop","take"],(function(e,t){Un.prototype[e]=function(o){o=o===n?1:mn(ma(o),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=Cn(o,r.__takeCount__):r.__views__.push({size:Cn(o,g),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),St(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),St(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(al)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Xo((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return No(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Vs(ui(e)))},Un.prototype.slice=function(e,t){e=ma(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Un(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==n&&(o=(t=ma(t))<0?o.dropRight(-t):o.take(t-e)),o)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(g)},Eo(Un.prototype,(function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Wn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Wn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Un,u=a[0],p=l||qs(t),c=function(e){var t=i.apply(Wn,Ft([e],a));return r&&d?t[0]:t};p&&o&&"function"==typeof u&&1!=u.length&&(l=p=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,g=l&&!h;if(!s&&p){t=g?t:new Un(this);var v=e.apply(t,a);return v.__actions__.push({func:ys,args:[c],thisArg:n}),new jn(v,d)}return f&&g?e.apply(this,a):(v=this.thru(c),f?r?v.value()[0]:v.value():v)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=xe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);Wn.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var r=this.value();return t.apply(qs(r)?r:[],e)}return this[n]((function(n){return t.apply(qs(n)?n:[],e)}))}})),Eo(Un.prototype,(function(e,t){var n=Wn[t];if(n){var o=n.name+"";ke.call(Nn,o)||(Nn[o]=[]),Nn[o].push({name:t,func:n})}})),Nn[Hr(n,2).name]=[{name:"wrapper",func:n}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ar(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ar(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ar(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qs(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=Cn(t,e+s);break;case"takeRight":e=mn(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,p=this.__iteratees__,c=p.length,d=0,h=Cn(l,this.__takeCount__);if(!n||!o&&r==l&&h==l)return gr(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var g=-1,v=e[u+=t];++g<c;){var y=p[g],m=y.iteratee,C=y.type,w=m(v);if(2==C)v=w;else if(!w){if(1==C)continue e;break e}}f[d++]=v}return f},Wn.prototype.at=ms,Wn.prototype.chain=function(){return vs(this)},Wn.prototype.commit=function(){return new jn(this.value(),this.__chain__)},Wn.prototype.next=function(){this.__values__===n&&(this.__values__=va(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Wn.prototype.plant=function(e){for(var t,o=this;o instanceof Bn;){var r=ji(o);r.__index__=0,r.__values__=n,t?i.__wrapped__=r:t=r;var i=r;o=o.__wrapped__}return i.__wrapped__=e,t},Wn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ys,args:[rs],thisArg:n}),new jn(t,this.__chain__)}return this.thru(rs)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return gr(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,at&&(Wn.prototype[at]=function(){return this}),Wn}();ft?((ft.exports=hn)._=hn,ht._=hn):dt._=hn}).call(s)})),gh=function(e,t){return(gh=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)};
|
|
24
|
-
/**
|
|
25
|
-
* @license
|
|
26
|
-
* Lodash <https://lodash.com/>
|
|
27
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
28
|
-
* Released under MIT license <https://lodash.com/license>
|
|
29
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
30
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
31
|
-
*/function vh(e,t){function n(){this.constructor=e}gh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var yh,mh,Ch,wh,Eh,bh,Rh=function(){return(Rh=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 _h(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 Oh(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function Sh(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Oh(arguments[t]));return e}function Th(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Mh(e,Error)}}function Dh(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function Ph(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function Ah(e){return"[object String]"===Object.prototype.toString.call(e)}function Nh(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function xh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fh(e){return"undefined"!=typeof Event&&Mh(e,Event)}function Ih(e){return"undefined"!=typeof Element&&Mh(e,Element)}function Lh(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Mh(e,t){try{return e instanceof t}catch(n){return!1}}function kh(e){try{for(var t=e,n=[],o=0,r=0,i=" > ".length,s=void 0;t&&o++<5&&!("html"===(s=Gh(t))||o>1&&r+n.length*i+s.length>=80);)n.push(s),r+=s.length,t=t.parentNode;return n.reverse().join(" > ")}catch(a){return"<unknown>"}}function Gh(e){var t,n,o,r,i,s=e,a=[];if(!s||!s.tagName)return"";if(a.push(s.tagName.toLowerCase()),s.id&&a.push("#"+s.id),(t=s.className)&&Ah(t))for(n=t.split(/\s+/),i=0;i<n.length;i++)a.push("."+n[i]);var l=["type","name","title","alt"];for(i=0;i<l.length;i++)o=l[i],(r=s.getAttribute(o))&&a.push("["+o+'="'+r+'"]');return a.join("")}(mh=yh||(yh={})).Ok="ok",mh.Exited="exited",mh.Crashed="crashed",mh.Abnormal="abnormal",(wh=Ch||(Ch={})).Fatal="fatal",wh.Error="error",wh.Warning="warning",wh.Log="log",wh.Info="info",wh.Debug="debug",wh.Critical="critical",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}}}(Ch||(Ch={})),(bh=Eh||(Eh={})).Unknown="unknown",bh.Skipped="skipped",bh.Success="success",bh.RateLimit="rate_limit",bh.Invalid="invalid",bh.Failed="failed",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}}(Eh||(Eh={}));var Vh=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 Wh=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,Vh(o,n.prototype),o}return vh(t,e),t}(Error),Hh=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Bh=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.publicKey+(e&&r?":"+r:"")+"@"+n+(i?":"+i:"")+"/"+(o?o+"/":o)+s},e.prototype._fromString=function(e){var t=Hh.exec(e);if(!t)throw new Wh("Invalid Dsn");var n=Oh(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,p="",c=n[5],d=c.split("/");if(d.length>1&&(p=d.slice(0,-1).join("/"),c=d.pop()),c){var h=c.match(/^\d+/);h&&(c=h[0])}this._fromComponents({host:a,pass:s,path:p,projectId:c,port:u,protocol:o,publicKey:r})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",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","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Wh("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new Wh("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Wh("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Wh("Invalid Dsn: Invalid port "+this.port)},e}();function jh(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Uh(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function zh(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(i){n.push("[value cannot be serialized]")}}return n.join(t)}function Yh(e,t){return!!Ah(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}var Kh={};function qh(){return jh()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Kh}function $h(){var e=qh(),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 Qh(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 Xh(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 Jh(e){var t=qh();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 Zh(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 ef(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(n){}}var tf=qh(),nf="Sentry Logger ",of=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&&Jh((function(){tf.console.log(nf+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Jh((function(){tf.console.warn(nf+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Jh((function(){tf.console.error(nf+"[Error]: "+e.join(" "))}))},e}();tf.__SENTRY__=tf.__SENTRY__||{};var rf=tf.__SENTRY__.logger||(tf.__SENTRY__.logger=new of),sf=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 af(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(t){return"<anonymous>"}}function lf(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(i){}e[t]=r}}function uf(e){if(Th(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}if(Fh(e)){var r=e,i={};i.type=r.type;try{i.target=Ih(r.target)?kh(r.target):Object.prototype.toString.call(r.target)}catch(s){i.target="<unknown>"}try{i.currentTarget=Ih(r.currentTarget)?kh(r.currentTarget):Object.prototype.toString.call(r.currentTarget)}catch(s){i.currentTarget="<unknown>"}for(var o in"undefined"!=typeof CustomEvent&&Mh(e,CustomEvent)&&(i.detail=r.detail),r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r);return i}return e}function pf(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function cf(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var o=ff(e,t);return pf(o)>n?cf(e,t-1,n):o}function df(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":xh(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+af(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var n}function hf(e,t,n,o){if(void 0===n&&(n=1/0),void 0===o&&(o=new sf),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=df(e);return Nh(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var r=df(t,e);if(Nh(r))return r;var i=uf(t),s=Array.isArray(t)?[]:{};if(o.memoize(t))return"[Circular ~]";for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=hf(a,i[a],n-1,o));return o.unmemoize(t),s}function ff(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return hf(e,n,t)})))}catch(n){return"**non-serializable**"}}function gf(e,t){void 0===t&&(t=40);var n=Object.keys(uf(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Uh(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:Uh(r,t)}return""}function vf(e){var t,n;if(xh(e)){var o=e,r={};try{for(var i=_h(Object.keys(o)),s=i.next();!s.done;s=i.next()){var a=s.value;void 0!==o[a]&&(r[a]=vf(o[a]))}}catch(l){t={error:l}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}return Array.isArray(e)?e.map(vf):e}function yf(){if(!("fetch"in qh()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function mf(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Cf(){if(!yf())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var wf,Ef=qh(),bf={},Rf={};function _f(e){if(!Rf[e])switch(Rf[e]=!0,e){case"console":!function(){if(!("console"in Ef))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Ef.console&&lf(Ef.console,e,(function(t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];Sf("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Ef.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Ef))return;var e=Sf.bind(null,"dom"),t=Nf(e,!0);Ef.document.addEventListener("click",t,!1),Ef.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=Ef[t]&&Ef[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(lf(n,"addEventListener",(function(t){return function(n,o,r){if("click"===n||"keypress"==n)try{var i=this,s=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},a=s[n]=s[n]||{refCount:0};if(!a.handler){var l=Nf(e);a.handler=l,t.call(this,n,l,r)}a.refCount+=1}catch(u){}return t.call(this,n,o,r)}})),lf(n,"removeEventListener",(function(e){return function(t,n,o){if("click"===t||"keypress"==t)try{var r=this,i=r.__sentry_instrumentation_handlers__||{},s=i[t];s&&(s.refCount-=1,s.refCount<=0&&(e.call(this,t,s.handler,o),s.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete r.__sentry_instrumentation_handlers__)}catch(a){}return e.call(this,t,n,o)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Ef))return;var e=[],t=[],n=XMLHttpRequest.prototype;lf(n,"open",(function(n){return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=this,s=o[1];i.__sentry_xhr__={method:Ah(o[0])?o[0].toUpperCase():o[0],url:o[1]},Ah(s)&&"POST"===i.__sentry_xhr__.method&&s.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var a=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(s){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var r=t.splice(n)[0];i.__sentry_xhr__&&void 0!==r[0]&&(i.__sentry_xhr__.body=r[0])}}catch(s){}Sf("xhr",{args:o,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?lf(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a(),e.apply(i,t)}})):i.addEventListener("readystatechange",a),n.apply(i,o)}})),lf(n,"send",(function(n){return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];return e.push(this),t.push(o),Sf("xhr",{args:o,startTimestamp:Date.now(),xhr:this}),n.apply(this,o)}}))}();break;case"fetch":!function(){if(!function(){if(!yf())return!1;var e=qh();if(mf(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=mf(o.contentWindow.fetch)),n.head.removeChild(o)}catch(r){rf.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}())return;lf(Ef,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o={args:t,fetchData:{method:Tf(t),url:Df(t)},startTimestamp:Date.now()};return Sf("fetch",Rh({},o)),e.apply(Ef,t).then((function(e){return Sf("fetch",Rh(Rh({},o),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Sf("fetch",Rh(Rh({},o),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=qh(),t=e.chrome,n=t&&t.app&&t.app.runtime,o="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&o}())return;var e=Ef.onpopstate;function t(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=wf,i=String(o);wf=i,Sf("history",{from:r,to:i})}return e.apply(this,t)}}Ef.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=Ef.location.href,r=wf;if(wf=o,Sf("history",{from:r,to:o}),e)return e.apply(this,t)},lf(Ef.history,"pushState",t),lf(Ef.history,"replaceState",t)}();break;case"error":xf=Ef.onerror,Ef.onerror=function(e,t,n,o,r){return Sf("error",{column:o,error:r,line:n,msg:e,url:t}),!!xf&&xf.apply(this,arguments)};break;case"unhandledrejection":Lf=Ef.onunhandledrejection,Ef.onunhandledrejection=function(e){return Sf("unhandledrejection",e),!Lf||Lf.apply(this,arguments)};break;default:rf.warn("unknown instrumentation type:",e)}}function Of(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(bf[e.type]=bf[e.type]||[],bf[e.type].push(e.callback),_f(e.type))}function Sf(e,t){var n,o;if(e&&bf[e])try{for(var r=_h(bf[e]||[]),i=r.next();!i.done;i=r.next()){var s=i.value;try{s(t)}catch(a){rf.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+af(s)+"\nError: "+a)}}}catch(l){n={error:l}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}}function Tf(e){return void 0===e&&(e=[]),"Request"in Ef&&Mh(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Df(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Ef&&Mh(e[0],Request)?e[0].url:String(e[0])}var Pf,Af;function Nf(e,t){return void 0===t&&(t=!1),function(n){if(n&&Af!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(n){}return!0}(n)){var o="keypress"===n.type?"input":n.type;(void 0===Pf||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}(Af,n))&&(e({event:n,name:o,global:t}),Af=n),clearTimeout(Pf),Pf=Ef.setTimeout((function(){Pf=void 0}),1e3)}}}var xf=null;var Ff,If,Lf=null;(If=Ff||(Ff={})).PENDING="PENDING",If.RESOLVED="RESOLVED",If.REJECTED="REJECTED";var Mf=function(){function e(e){var t=this;this._state=Ff.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(Ff.RESOLVED,e)},this._reject=function(e){t._setResult(Ff.REJECTED,e)},this._setResult=function(e,n){t._state===Ff.PENDING&&(Lh(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!==Ff.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===Ff.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===Ff.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return 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(o){return void r(o)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(o){return void r(o)}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.prototype.toString=function(){return"[object SyncPromise]"},e}(),kf=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):Mf.reject(new Wh("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 Mf((function(n){var o=setTimeout((function(){e&&e>0&&n(!1)}),e);Mf.all(t._buffer).then((function(){clearTimeout(o),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),Gf={nowSeconds:function(){return Date.now()/1e3}};var Vf=jh()?function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(n){return}var e,t}():function(){var e=qh().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),Wf=void 0===Vf?Gf:{nowSeconds:function(){return(Vf.timeOrigin+Vf.now())/1e3}},Hf=Gf.nowSeconds.bind(Gf);Wf.nowSeconds.bind(Wf),function(){var e=qh().performance;if(e)e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}();var Bf=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Sh(t._breadcrumbs),n._tags=Rh({},t._tags),n._extra=Rh({},t._extra),n._contexts=Rh({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Sh(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=Rh(Rh({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Rh(Rh({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Rh(Rh({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Rh(Rh({},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.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Rh(Rh({},this._contexts),((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.prototype.getTransaction=function(){var e,t,n,o,r=this.getSpan();return(null===(e=r)||void 0===e?void 0:e.transaction)?null===(t=r)||void 0===t?void 0:t.transaction:(null===(o=null===(n=r)||void 0===n?void 0:n.spanRecorder)||void 0===o?void 0:o.spans[0])?r.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Rh(Rh({},this._tags),t._tags),this._extra=Rh(Rh({},this._extra),t._extra),this._contexts=Rh(Rh({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):xh(t)&&(t=t,this._tags=Rh(Rh({},this._tags),t.tags),this._extra=Rh(Rh({},this._extra),t.extra),this._contexts=Rh(Rh({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Rh({timestamp:Hf()},e);return this._breadcrumbs=void 0!==t&&t>=0?Sh(this._breadcrumbs,[n]).slice(-t):Sh(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Rh(Rh({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Rh(Rh({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Rh(Rh({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Rh(Rh({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Rh({trace:this._span.getTraceContext()},e.contexts);var o=null===(n=this._span.transaction)||void 0===n?void 0:n.name;o&&(e.tags=Rh({transaction:o},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Sh(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Sh(jf(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,o){var r=this;return void 0===o&&(o=0),new Mf((function(i,s){var a=e[o];if(null===t||"function"!=typeof a)i(t);else{var l=a(Rh({},t),n);Lh(l)?l.then((function(t){return r._notifyEventProcessors(e,t,n,o+1).then(i)})).then(null,s):r._notifyEventProcessors(e,l,n,o+1).then(i).then(null,s)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},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}();function jf(){var e=qh();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function Uf(e){jf().push(e)}var zf=function(){function e(e){this.errors=0,this.sid=$h(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=yh.Ok,this.init=!0,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:$h()),void 0!==e.init&&(this.init=e.init),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===yh.Ok?this.update({status:yh.Exited}):this.update()},e.prototype.toJSON=function(){return vf({sid:""+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:vf({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),Yf=function(){function e(e,t,n){void 0===t&&(t=new Bf),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return 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=Bf.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!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=$h(),o=t;if(!t){var r=void 0;try{throw new Error("Sentry syntheticException")}catch(i){r=i}o={originalException:e,syntheticException:r}}return this._invokeClient("captureException",e,Rh(Rh({},o),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var o=this._lastEventId=$h(),r=n;if(!n){var i=void 0;try{throw new Error(e)}catch(s){i=s}r={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,Rh(Rh({},r),{event_id:o})),o},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=$h();return this._invokeClient("captureEvent",e,Rh(Rh({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),o=n.scope,r=n.client;if(o&&r){var i=r.getOptions&&r.getOptions()||{},s=i.beforeBreadcrumb,a=void 0===s?null:s,l=i.maxBreadcrumbs,u=void 0===l?100:l;if(!(u<=0)){var p=Hf(),c=Rh({timestamp:p},e),d=a?Jh((function(){return a(c,t)})):c;null!==d&&o.addBreadcrumb(d,Math.min(u,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,o=t.client;n&&o&&e(n)},e.prototype.run=function(e){var t=qf(this);try{e(this)}finally{qf(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return rf.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,o,r;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(r=null===(o=this.getStackTop())||void 0===o?void 0:o.scope)||void 0===r||r.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,o=t.client,r=o&&o.getOptions()||{},i=r.release,s=r.environment,a=new zf(Rh(Rh({release:i,environment:s},n&&{user:n.getUser()}),e));if(n){var l=n.getSession&&n.getSession();l&&l.status===yh.Ok&&l.update({status:yh.Exited}),this.endSession(),n.setSession(a)}return a},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var o=t.getSession&&t.getSession();o&&n&&n.captureSession&&n.captureSession(o)}},e.prototype._invokeClient=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=this.getStackTop(),i=r.scope,s=r.client;s&&s[e]&&(t=s)[e].apply(t,Sh(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Kf(),r=o.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);rf.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Kf(){var e=qh();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function qf(e){var t=Kf(),n=Xf(t);return Jf(t,e),n}function $f(){var e=Kf();return Qf(e)&&!Xf(e).isOlderThan(3)||Jf(e,new Yf),jh()?function(e){var t,n,o;try{var r=null===(o=null===(n=null===(t=Kf().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===o?void 0:o.active;if(!r)return Xf(e);if(!Qf(r)||Xf(r).isOlderThan(3)){var i=Xf(e).getStackTop();Jf(r,new Yf(i.client,Bf.clone(i.scope)))}return Xf(r)}catch(s){return Xf(e)}}(e):Xf(e)}function Qf(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Xf(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new Yf),e.__SENTRY__.hub}function Jf(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function Zf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=$f();if(o&&o[e])return o[e].apply(o,Sh(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function eg(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(o){n=o}return Zf("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function tg(e){Zf("configureScope",e)}function ng(e){Zf("withScope",e)}var og=function(){function e(e,t){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new Bh(e),this.metadata=t}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},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.publicKey),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.getBaseApiEndpoint()+"embed/error-page/",o=[];for(var r in o.push("dsn="+t.toString()),e)if("dsn"!==r)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.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e,t={sentry_key:this._dsnObject.publicKey,sentry_version:"7"};return e=t,Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e}(),rg=[];function ig(e){var t={};return function(e){var t=e.defaultIntegrations&&Sh(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=Sh(t);var s=o.map((function(e){return e.name})),a="Debug";return-1!==s.indexOf(a)&&o.push.apply(o,Sh(o.splice(s.indexOf(a),1))),o}(e).forEach((function(e){t[e.name]=e,function(e){-1===rg.indexOf(e.name)&&(e.setupOnce(Uf,$f),rg.push(e.name),rf.log("Integration installed: "+e.name))}(e)})),t}var sg=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Bh(t.dsn))}return e.prototype.captureException=function(e,t,n){var o=this,r=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return o._captureEvent(e,t,n)})).then((function(e){r=e}))),r},e.prototype.captureMessage=function(e,t,n,o){var r=this,i=n&&n.event_id,s=Nh(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return r._captureEvent(e,n,o)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var o=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){o=e}))),o},e.prototype.captureSession=function(e){e.release?(this._sendSession(e),e.update({init:!1})):rf.warn("Discarded session because of missing release")},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 t._getBackend().getTransport().close(e).then((function(e){return n&&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=ig(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return rf.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,o,r,i=!1,s=!1,a=t.exception&&t.exception.values;if(a){s=!0;try{for(var l=_h(a),u=l.next();!u.done;u=l.next()){var p=u.value.mechanism;if(p&&!1===p.handled){i=!0;break}}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}var c=t.user;if(!e.userAgent){var d=t.request?t.request.headers:{};for(var h in d)if("user-agent"===h.toLowerCase()){r=d[h];break}}e.update(Rh(Rh({},i&&{status:yh.Crashed}),{user:c,userAgent:r,errors:e.errors+Number(s||i)})),this.captureSession(e)},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new Mf((function(n){var o=0,r=setInterval((function(){0==t._processing?(clearInterval(r),n(!0)):(o+=1,e&&o>=e&&(clearInterval(r),n(!1)))}),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().normalizeDepth,i=void 0===r?3:r,s=Rh(Rh({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:$h()),timestamp:e.timestamp||Hf()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var a=t;n&&n.captureContext&&(a=Bf.clone(a).update(n.captureContext));var l=Mf.resolve(s);return a&&(l=a.applyToEvent(s,n)),l.then((function(e){return"number"==typeof i&&i>0?o._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Rh(Rh(Rh(Rh(Rh({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Rh(Rh({},e),e.data&&{data:ff(e.data,t)})}))}),e.user&&{user:ff(e.user,t)}),e.contexts&&{contexts:ff(e.contexts,t)}),e.extra&&{extra:ff(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,o=t.release,r=t.dist,i=t.maxValueLength,s=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==o&&(e.release=o),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=Uh(e.message,s));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Uh(a.value,s));var l=e.request;l&&l.url&&(l.url=Uh(l.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){rf.error(e)}))},e.prototype._processEvent=function(e,t,n){var o=this,r=this.getOptions(),i=r.beforeSend,s=r.sampleRate;if(!this._isEnabled())return Mf.reject(new Wh("SDK not enabled, will not send event."));var a="transaction"===e.type;return!a&&"number"==typeof s&&Math.random()>s?Mf.reject(new Wh("Discarding event because it's not included in the random sample (sampling rate = "+s+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new Wh("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||a||!i)return e;var n=i(e,t);if(void 0===n)throw new Wh("`beforeSend` method has to return `null` or a valid event.");return Lh(n)?n.then((function(e){return e}),(function(e){throw new Wh("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new Wh("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!a&&t&&o._updateSessionFromEvent(t,e),o._sendEvent(e),e})).then(null,(function(e){if(e instanceof Wh)throw e;throw o.captureException(e,{data:{__sentry__:!0},originalException:e}),new Wh("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}(),ag=function(){function e(){}return e.prototype.sendEvent=function(e){return Mf.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Eh.Skipped})},e.prototype.close=function(e){return Mf.resolve(!0)},e}(),lg=function(){function e(e){this._options=e,this._options.dsn||rf.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Wh("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Wh("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){rf.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){rf.error("Error while sending session: "+e)})):rf.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new ag},e}();function ug(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function pg(e,t){return t?(e.sdk=e.sdk||{name:t.name,version:t.version},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=Sh(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=Sh(e.sdk.packages||[],t.packages||[]),e):e}function cg(e,t){var n=ug(t);return{body:JSON.stringify(Rh({sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function dg(e,t){var n=ug(t),o=e.type||"event",r="transaction"===o,i=e.debug_meta||{},s=i.transactionSampling,a=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}(i,["transactionSampling"]),l=s||{},u=l.method,p=l.rate;0===Object.keys(a).length?delete e.debug_meta:e.debug_meta=a;var c={body:JSON.stringify(n?pg(e,t.metadata.sdk):e),type:o,url:r?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(r){var d=JSON.stringify(Rh({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:u,rate:p}]})+"\n"+c.body;c.body=d}return c}var hg,fg=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){hg=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 hg.apply(n,e)}},e.id="FunctionToString",e}(),gg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],vg=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Uf((function(t){var n=$f();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)?(rf.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Xh(e)),!0):this._isIgnoredError(e,t)?(rf.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Xh(e)),!0):this._isDeniedUrl(e,t)?(rf.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Xh(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(rf.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Xh(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(n){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Yh(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return Yh(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return Yh(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:Sh(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:Sh(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:Sh(this._options.ignoreErrors||[],e.ignoreErrors||[],gg),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},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(s){return rf.error("Cannot extract message for event "+Xh(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(o){return rf.error("Cannot extract url for event "+Xh(e)),null}},e.id="InboundFilters",e}(),yg=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Cg=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Eg=/\((\S*)(?::(\d+))(?::(\d+))\)/,bg=/Minified React error #\d+;/i;function Rg(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:bg.test(e.message)&&(n=1));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:Og(e),name:e.name,stack:s}}(e))return _g(t,n)}catch(o){}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=yg.exec(i[s])){var a=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Eg.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=Cg.exec(i[s]))o={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=mg.exec(i[s])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=wg.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:Og(e),name:e.name,stack:r}}(e))return _g(t,n)}catch(o){}return{message:Og(e),name:e&&e.name,stack:[],failed:!0}}function _g(e,t){try{return Rh(Rh({},e),{stack:e.stack.slice(t)})}catch(n){return e}}function Og(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Sg(e){var t=Dg(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 Tg(e){return{exception:{values:[Sg(e)]}}}function Dg(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.slice(0,50).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}})).reverse()}function Pg(e,t,n){var o,r;if(void 0===n&&(n={}),Dh(e)&&e.error)return o=Tg(Rg(e=e.error));if(Ph(e)||(r=e,"[object DOMException]"===Object.prototype.toString.call(r))){var i=e,s=i.name||(Ph(i)?"DOMError":"DOMException"),a=i.message?s+": "+i.message:s;return Zh(o=Ag(a,t,n),a),"code"in i&&(o.tags=Rh(Rh({},o.tags),{"DOMException.code":""+i.code})),o}return Th(e)?o=Tg(Rg(e)):xh(e)||Fh(e)?(ef(o=function(e,t,n){var o={exception:{values:[{type:Fh(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+gf(e)}]},extra:{__serialized__:cf(e)}};if(t){var r=Dg(Rg(t).stack);o.stacktrace={frames:r}}return o}(e,t,n.rejection),{synthetic:!0}),o):(Zh(o=Ag(e,t,n),""+e,void 0),ef(o,{synthetic:!0}),o)}function Ag(e,t,n){void 0===n&&(n={});var o={message:e};if(n.attachStacktrace&&t){var r=Dg(Rg(t).stack);o.stacktrace={frames:r}}return o}var Ng=function(){function e(e){this.options=e,this._buffer=new kf(30),this._rateLimits={},this._api=new og(e.dsn,e._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new Wh("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,o=e.headers,r=e.resolve,i=e.reject,s=Eh.fromHttpCode(n.status);this._handleRateLimit(o)&&rf.warn("Too many requests, backing off until: "+this._disabledUntil(t)),s!==Eh.Success?i(n):r({status:s})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,o,r,i=Date.now(),s=e["x-sentry-rate-limits"],a=e["retry-after"];if(s){try{for(var l=_h(s.trim().split(",")),u=l.next();!u.done;u=l.next()){var p=u.value.split(":",2),c=parseInt(p[0],10),d=1e3*(isNaN(c)?60:c);try{for(var h=(o=void 0,_h(p[1].split(";"))),f=h.next();!f.done;f=h.next()){var g=f.value;this._rateLimits[g||"all"]=new Date(i+d)}}catch(v){o={error:v}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}}}catch(y){t={error:y}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return!0}return!!a&&(this._rateLimits.all=new Date(i+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}(i,a)),!0)},e}();var xg=function(e){function t(t,n){void 0===n&&(n=function(){var e,t,n=qh(),o=n.document;if("function"==typeof(null===(e=o)||void 0===e?void 0:e.createElement))try{var r=o.createElement("iframe");if(r.hidden=!0,o.head.appendChild(r),null===(t=r.contentWindow)||void 0===t?void 0:t.fetch)return r.contentWindow.fetch.bind(n);o.head.removeChild(r)}catch(i){rf.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return n.fetch.bind(n)}());var o=e.call(this,t)||this;return o._fetch=n,o}return vh(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(dg(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(cg(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var o={body:e.body,method:"POST",referrerPolicy:Cf()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(o,this.options.fetchParameters),void 0!==this.options.headers&&(o.headers=this.options.headers),this._buffer.add(new Mf((function(t,r){n._fetch(e.url,o).then((function(o){var i={"x-sentry-rate-limits":o.headers.get("X-Sentry-Rate-Limits"),"retry-after":o.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:o,headers:i,resolve:t,reject:r})})).catch(r)})))},t}(Ng),Fg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vh(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(dg(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(cg(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new Mf((function(t,o){var r=new XMLHttpRequest;for(var i in r.onreadystatechange=function(){if(4===r.readyState){var i={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:o})}},r.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(i)&&r.setRequestHeader(i,n.options.headers[i]);r.send(e.body)})))},t}(Ng),Ig=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vh(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var o=Pg(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return ef(o,{handled:!0,type:"generic"}),o.level=Ch.Error,n&&n.event_id&&(o.event_id=n.event_id),Mf.resolve(o)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=Ch.Info),function(e,t,n,o){void 0===n&&(n=Ch.Info);var r=Ag(t,o&&o.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return r.level=n,o&&o.event_id&&(r.event_id=o.event_id),Mf.resolve(r)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=Rh(Rh({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):yf()?new xg(t):new Fg(t)},t}(lg),Lg=0;function Mg(){return Lg>0}function kg(){Lg+=1,setTimeout((function(){Lg-=1}))}function Gg(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(i){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 Gg(e,t)}));return e.handleEvent?e.handleEvent.apply(this,r):e.apply(this,r)}catch(i){throw kg(),ng((function(e){e.addEventProcessor((function(e){var n=Rh({},e);return t.mechanism&&(Zh(n,void 0,void 0),ef(n,t.mechanism)),n.extra=Rh(Rh({},n.extra),{arguments:o}),n})),eg(i)})),i}};try{for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r])}catch(s){}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(s){}return o}var Vg=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Rh({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(rf.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(rf.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Of({callback:function(n){var o=n.error,r=$f(),i=r.getIntegration(e),s=o&&!0===o.__sentry_own_request__;if(i&&!Mg()&&!s){var a=r.getClient(),l=Nh(o)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(Pg(o,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);ef(l,{handled:!1,type:"onerror"}),r.captureEvent(l,{originalException:o})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Of({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(u){}var r=$f(),i=r.getIntegration(e),s=o&&!0===o.__sentry_own_request__;if(!i||Mg()||s)return!0;var a=r.getClient(),l=Nh(o)?t._eventFromRejectionWithPrimitive(o):Pg(o,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});l.level=Ch.Error,ef(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=Dh(e)?e.message:e;if(Ah(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._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(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=Ah(t)&&t.length>0?t:function(){try{return document.location.href}catch(e){return""}}();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}(),Wg=["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"],Hg=function(){function e(t){this.name=e.id,this._options=Rh({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=qh();(this._options.setTimeout&&lf(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&lf(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&lf(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&lf(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Wg).forEach(this._wrapEventTarget.bind(this))},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]=Gg(o,{mechanism:{data:{function:af(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Gg(t,{mechanism:{data:{function:"requestAnimationFrame",handler:af(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=qh(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(lf(n,"addEventListener",(function(t){return function(n,o,r){try{"function"==typeof o.handleEvent&&(o.handleEvent=Gg(o.handleEvent.bind(o),{mechanism:{data:{function:"handleEvent",handler:af(o),target:e},handled:!0,type:"instrument"}}))}catch(i){}return t.call(this,n,Gg(o,{mechanism:{data:{function:"addEventListener",handler:af(o),target:e},handled:!0,type:"instrument"}}),r)}})),lf(n,"removeEventListener",(function(e){return function(t,n,o){var r,i=n;try{var s=null===(r=i)||void 0===r?void 0:r.__sentry_wrapped__;s&&e.call(this,t,s,o)}catch(a){}return e.call(this,t,i,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]&&lf(o,e,(function(t){var n={mechanism:{data:{function:e,handler:af(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=af(t.__sentry_original__)),Gg(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Bg=function(){function e(t){this.name=e.id,this._options=Rh({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&$f().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Xh(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Of({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Sh(t))},type:"console"}),this._options.dom&&Of({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Sh(t))},type:"dom"}),this._options.xhr&&Of({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Sh(t))},type:"xhr"}),this._options.fetch&&Of({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Sh(t))},type:"fetch"}),this._options.history&&Of({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Sh(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Ch.fromString(e.level),message:zh(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(zh(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}$f().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?kh(e.event.target):kh(e.event)}catch(n){t="<unknown>"}0!==t.length&&$f().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,o=t.url,r=t.status_code,i=t.body;$f().addBreadcrumb({category:"xhr",data:{method:n,url:o,status_code:r},type:"http"},{xhr:e.xhr,input:i})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?$f().addBreadcrumb({category:"fetch",data:e.fetchData,level:Ch.Error,type:"http"},{data:e.error,input:e.args}):$f().addBreadcrumb({category:"fetch",data:Rh(Rh({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=qh(),n=e.from,o=e.to,r=Qh(t.location.href),i=Qh(n),s=Qh(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),$f().addBreadcrumb({category:"navigation",data:{from:n,to:o}})},e.id="Breadcrumbs",e}(),jg=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(){Uf((function(t,n){var o=$f().getIntegration(e);return o?o._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Mh(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Sh(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Mh(e[t],Error)||n.length+1>=this._limit)return n;var o=Sg(Rg(e[t]));return this._walkErrorTree(e[t],t,Sh([o],n))},e.id="LinkedErrors",e}(),Ug=qh(),zg=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Uf((function(t){var n,o,r;if($f().getIntegration(e)){if(!Ug.navigator&&!Ug.location&&!Ug.document)return t;var i=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(o=Ug.location)||void 0===o?void 0:o.href),s=(Ug.document||{}).referrer,a=(Ug.navigator||{}).userAgent,l=Rh(Rh(Rh({},null===(r=t.request)||void 0===r?void 0:r.headers),s&&{Referer:s}),a&&{"User-Agent":a}),u=Rh(Rh({},i&&{url:i}),{headers:l});return Rh(Rh({},t),{request:u})}return t}))},e.id="UserAgent",e}(),Yg=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.2.3"}],version:"6.2.3"},e.call(this,Ig,t)||this}return vh(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),qh().document&&(this._isEnabled()?function(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new og(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else rf.error("Missing dsn option in showReportDialog call");else rf.error("Missing eventId option in showReportDialog call")}(Rh(Rh({},e),{dsn:e.dsn||this.getDsn()})):rf.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,o){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,o)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Bg);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(sg),Kg=[new vg,new fg,new Hg,new Bg,new Vg,new jg,new zg];function qg(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Kg),void 0===e.release){var t=qh();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),function(e,t){!0===t.debug&&rf.enable();var n=$f(),o=new e(t);n.bindClient(o)}(Yg,e),e.autoSessionTracking&&function(){if(void 0===qh().document)return void rf.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");var e=$f();"startSession"in e&&(e.startSession(),e.captureSession(),Of({callback:function(){e.startSession(),e.captureSession()},type:"history"}))}()}function $g(e){e._metadata=e._metadata||{},void 0===e._metadata.sdk&&(e._metadata.sdk={name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:"6.2.3"}],version:"6.2.3"}),qg(e)}var Qg=a(hh),Xg=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,o=Qg,r=J,i=(n=r)&&"object"==typeof n&&"default"in n?n.default:n;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 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 p(){var e=r.useState(0)[1];return r.useCallback((function(){e((function(e){return e+1}))}),[])}var c={};function d(){return"undefined"!=typeof window?window:void 0!==s?s:"undefined"!=typeof self?self:c}var h,f=(h="observerBatching","function"==typeof Symbol?Symbol.for(h):"__$mobx-react "+h+"__");function g(e){return o.getDependencyTree(e)}var v,y=new Set;function m(){void 0===v&&(v=setTimeout(C,1e4))}function C(){v=void 0;var e=Date.now(),t=y,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,y.delete(i))}y.size>0&&m()}var w={};function E(e){return"observer"+e}function b(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=w),l())return e();var r,s=(n.useForceUpdate||p)(),a=i.useRef(null);if(!a.current){var u=new o.Reaction(E(t),(function(){c.mounted?s():(u.dispose(),a.current=null)})),c=(r=u,{cleanAt:Date.now()+1e4,reaction:r});a.current=c,y.add(a),m()}var d,h,f=a.current.reaction;if(i.useDebugValue(f,g),i.useEffect((function(){return y.delete(a),a.current?a.current.mounted=!0:(a.current={reaction:new o.Reaction(E(t),(function(){s()})),cleanAt:1/0},s()),function(){a.current.reaction.dispose(),a.current=null}}),[]),f.track((function(){try{d=e()}catch(r){h=r}})),h)throw h;return d}var R={$$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 S(e,t){if(!t||void 0!==e){var n=i.useState((function(){return o.observable(e,{},{deep:!1})}))[0];return o.runInAction((function(){Object.assign(n,e)})),n}}_.propTypes={children:O,render:O},_.displayName="Observer",t.Observer=_,t.isObserverBatched=function(){return d()[f]},t.isUsingStaticRendering=l,t.observer=function(e,t){if(l())return e;var n,o,i,s=u({forwardRef:!1},t),a=e.displayName||e.name,p=function(t,n){return b((function(){return e(t,n)}),a)};return p.displayName=a,n=r.memo(s.forwardRef?r.forwardRef(p):p),o=e,i=n,Object.keys(o).forEach((function(e){R[e]||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})),n.displayName=a,n},t.observerBatching=function(e){"function"==typeof e&&o.configure({reactionScheduler:e}),d()[f]=!0},t.observerBatchingOptOut=function(){o.configure({reactionScheduler:void 0}),d()[f]=!0},t.useAsObservableSource=function(e){return S(e,!1)},t.useForceUpdate=p,t.useLocalStore=function(e,t){var n=S(t,!0);return i.useState((function(){var t=o.observable(e(n));return function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(t)&&o.runInAction((function(){Object.keys(t).forEach((function(e){var n,r,i=t[e];"function"==typeof i&&(t[e]=(n=i,r=t,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.transaction((function(){return n.apply(r,t)}))}))}))})),t}))[0]},t.useObserver=b,t.useStaticRendering=function(e){a=e}}));l((function(e){e.exports=Xg})).observerBatching(Yu.unstable_batchedUpdates);var Jg="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Zg=new Uint8Array(16);function ev(){if(!Jg)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jg(Zg)}for(var tv=[],nv=0;nv<256;++nv)tv[nv]=(nv+256).toString(16).substr(1);function ov(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||ev)();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||function(e,t){var n=t||0,o=tv;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("")}(r)}let rv,iv;const sv=new WeakMap,av=new WeakMap,lv=new WeakMap,uv=new WeakMap,pv=new WeakMap;let cv={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return av.get(e);if("objectStoreNames"===t)return e.objectStoreNames||lv.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return fv(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function dv(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(iv||(iv=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(gv(this),t),fv(sv.get(this))}:function(...t){return fv(e.apply(gv(this),t))}:function(t,...n){const o=e.call(gv(this),t,...n);return lv.set(o,t.sort?t.sort():[t]),fv(o)}}function hv(e){return"function"==typeof e?dv(e):(e instanceof IDBTransaction&&function(e){if(av.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)}));av.set(e,t)}(e),t=e,(rv||(rv=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,cv):e);var t}function fv(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(fv(e.result)),o()},i=()=>{n(e.error),o()};e.addEventListener("success",r),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&sv.set(t,e)})).catch((()=>{})),pv.set(t,e),t}(e);if(uv.has(e))return uv.get(e);const t=hv(e);return t!==e&&(uv.set(e,t),pv.set(t,e)),t}const gv=e=>pv.get(e);function vv(e,t,{blocked:n,upgrade:o,blocking:r,terminated:i}={}){const s=indexedDB.open(e,t),a=fv(s);return o&&s.addEventListener("upgradeneeded",(e=>{o(fv(s.result),e.oldVersion,e.newVersion,fv(s.transaction))})),n&&s.addEventListener("blocked",(()=>n())),a.then((e=>{i&&e.addEventListener("close",(()=>i())),r&&e.addEventListener("versionchange",(()=>r()))})).catch((()=>{})),a}function yv(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",(()=>t())),fv(n).then((()=>{}))}const mv=["get","getKey","getAll","getAllKeys","count"],Cv=["put","add","delete","clear"],wv=new Map;function Ev(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(wv.get(t))return wv.get(t);const n=t.replace(/FromIndex$/,""),o=t!==n,r=Cv.includes(n);if(!(n in(o?IDBIndex:IDBObjectStore).prototype)||!r&&!mv.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 wv.set(t,i),i}cv=(e=>i(i({},e),{get:(t,n,o)=>Ev(t,n)||e.get(t,n,o),has:(t,n)=>!!Ev(t,n)||e.has(t,n)}))(cv);
|
|
32
|
-
/*!
|
|
33
|
-
Copyright (c) 2017 Jed Watson.
|
|
34
|
-
Licensed under the MIT License (MIT), see
|
|
35
|
-
http://jedwatson.github.io/classnames
|
|
36
|
-
*/
|
|
37
|
-
var bv=l((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var s=n.apply(null,r);s&&e.push(s)}else if("object"===i)for(var a in r)t.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));if(!J.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Wc)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");function Rv(){return(Rv=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 _v(){var e=J.useState(0)[1];return J.useCallback((function(){e((function(e){return e+1}))}),[])}function Ov(e){return rd(e)}var Sv,Tv=1e4,Dv=new Set;function Pv(){void 0===Sv&&(Sv=setTimeout(Av,1e4))}function Av(){Sv=void 0;var e=Date.now(),t=Dv,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,Dv.delete(i))}Dv.size>0&&Pv()}var Nv={};function xv(e){return"observer"+e}function Fv(e,t,n){void 0===t&&(t="observed"),void 0===n&&(n=Nv);var o,r=(n.useForceUpdate||_v)(),i=J.useRef(null);if(!i.current){var s=new Lc(xv(t),(function(){a.mounted?r():(s.dispose(),i.current=null)})),a=function(e){return{cleanAt:Date.now()+Tv,reaction:e}}(s);i.current=a,o=i,Dv.add(o),Pv()}var l,u,p=i.current.reaction;if(J.useDebugValue(p,Ov),J.useEffect((function(){var e;return e=i,Dv.delete(e),i.current?i.current.mounted=!0:(i.current={reaction:new Lc(xv(t),(function(){r()})),cleanAt:1/0},r()),function(){i.current.reaction.dispose(),i.current=null}}),[]),p.track((function(){try{l=e()}catch(t){u=t}})),u)throw u;return l}function Iv(e,t){var n,o,r,i=Rv({forwardRef:!1},t),s=e.displayName||e.name,a=function(t,n){return Fv((function(){return e(t,n)}),s)};return a.displayName=s,n=i.forwardRef?J.memo(J.forwardRef(a)):J.memo(a),o=e,r=n,Object.keys(o).forEach((function(e){Lv[e]||Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})),n.displayName=s,n}var Lv={$$typeof:!0,render:!0,compare:!0,type:!0};function Mv(e){var t=e.children,n=e.render,o=t||n;return"function"!=typeof o?null:Fv(o)}function kv(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`.")}Mv.propTypes={children:kv,render:kv},Mv.displayName="Observer";var Gv=0;var Vv={};function Wv(e){return Vv[e]||(Vv[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+Gv+")";return Gv++,t}(e)),Vv[e]}function Hv(e,t){if(Bv(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])||!Bv(e[n[r]],t[n[r]]))return!1;return!0}function Bv(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function jv(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var Uv=Wv("patchMixins"),zv=Wv("patchedDefinition");function Yv(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 Kv(e,t){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];Yv.call.apply(Yv,[this,e,t].concat(o))}}function qv(e,t,n){var o=function(e,t){var n=e[Uv]=e[Uv]||{},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[zv]){var i=e[t],s=$v(e,t,r?r.enumerable:void 0,o,i);Object.defineProperty(e,t,s)}}function $v(e,t,n,o,r){var i,s=Kv(r,o);return(i={})[zv]=!0,i.get=function(){return s},i.set=function(r){if(this===e)s=Kv(r,o);else{var i=$v(this,t,n,o,r);Object.defineProperty(this,t,i)}},i.configurable=!0,i.enumerable=n,i}var Qv=fp||"$mobx",Xv=Wv("isUnmounted"),Jv=Wv("skipRender"),Zv=Wv("isForcingUpdate");function ey(e){var t=e.prototype;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==J.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==ny)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=ny;oy(t,"props"),oy(t,"state");var n=t.render;return t.render=function(){return ty.call(this,n)},qv(t,"componentWillUnmount",(function(){this.render[Qv]&&this.render[Qv].dispose(),this[Xv]=!0})),e}function ty(e){var t=this;jv(this,Jv,!1),jv(this,Zv,!1);var n,o=(n=this).displayName||n.name||n.constructor&&(n.constructor.displayName||n.constructor.name)||"<component>",r=e.bind(this),i=!1,s=new Lc(o+".render()",(function(){if(!i&&(i=!0,!0!==t[Xv])){var e=!0;try{jv(t,Zv,!0),t[Jv]||J.Component.prototype.forceUpdate.call(t),e=!1}finally{jv(t,Zv,!1),e&&s.dispose()}}}));function a(){i=!1;var e=void 0,t=void 0;if(s.track((function(){try{t=dc(!1,r)}catch(n){e=n}})),e)throw e;return t}return s.reactComponent=this,a[Qv]=s,this.render=a,a.call(this)}function ny(e,t){return this.state!==t||!Hv(this.props,e)}function oy(e,t){var n=Wv("reactProp_"+t+"_valueHolder"),o=Wv("reactProp_"+t+"_atomHolder");function r(){return this[o]||jv(this,o,yp("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return nc&&oc&&(e=nc(!0)),r.call(this).reportObserved(),nc&&oc&&oc(e),this[n]},set:function(e){this[Zv]||Hv(this[n],e)?jv(this,n,e):(jv(this,n,e),jv(this,Jv,!0),r.call(this).reportChanged(),jv(this,Jv,!1))}})}var ry="function"==typeof Symbol&&Symbol.for,iy=ry?Symbol.for("react.forward_ref"):"function"==typeof J.forwardRef&&J.forwardRef((function(e){return null})).$$typeof,sy=ry?Symbol.for("react.memo"):"function"==typeof J.memo&&J.memo((function(e){return null})).$$typeof;function ay(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'"),sy&&e.$$typeof===sy)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(iy&&e.$$typeof===iy){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return J.forwardRef((function(){var e=arguments;return J.createElement(Mv,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(J.Component,e)?ey(e):Iv(e)}if(!J.Component)throw new Error("mobx-react requires React to be available");if(!Gp)throw new Error("mobx-react requires mobx to be available");var ly=l((function(e){!function(t,n,o){if(t){for(var r,i={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"},s={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},u=1;u<20;++u)i[111+u]="f"+u;for(u=0;u<=9;++u)i[u+96]=u.toString();v.prototype.bind=function(e,t,n){var o=this;return e=e instanceof Array?e:[e],o._bindMultiple.call(o,e,t,n),o},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},v.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},v.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(g(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},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);r=null},v.init=function(){var e=v(n);for(var t in e)"_"!==t.charAt(0)&&(v[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},v.init(),t.Mousetrap=v,e.exports&&(e.exports=v)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function c(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return i[e.which]?i[e.which]:s[e.which]?s[e.which]:String.fromCharCode(e.which).toLowerCase()}function d(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function h(e,t,n){return n||(n=function(){if(!r)for(var e in r={},i)e>95&&e<112||i.hasOwnProperty(e)&&(r[i[e]]=e);return r}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function f(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],l[o]&&(o=l[o]),t&&"keypress"!=t&&a[o]&&(o=a[o],i.push("shift")),d(o)&&i.push(o);return{key:o,modifiers:i,action:t=h(o,i,t)}}function g(e,t){return null!==e&&e!==n&&(e===t||g(e.parentNode,t))}function v(e){var t=this;if(e=e||n,!(t instanceof v))return new v(e);t.target=e,t._callbacks={},t._directMap={};var o,r={},i=!1,s=!1,a=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(a=!1)}function u(e,n,o,i,s,a){var l,u,p,c,h=[],f=o.type;if(!t._callbacks[e])return[];for("keyup"==f&&d(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(u=t._callbacks[e][l],(i||!u.seq||r[u.seq]==u.level)&&f==u.action&&("keypress"==f&&!o.metaKey&&!o.ctrlKey||(p=n,c=u.modifiers,p.sort().join(",")===c.sort().join(",")))){var g=!i&&u.combo==s,v=i&&u.seq==i&&u.level==a;(g||v)&&t._callbacks[e].splice(l,1),h.push(u)}return h}function h(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 g(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=c(e);n&&("keyup"!=e.type||i!==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):i=!1)}function y(e,t,n,s){function u(t){return function(){a=t,++r[e],clearTimeout(o),o=setTimeout(l,1e3)}}function p(t){h(n,t,e),"keyup"!==s&&(i=c(t)),setTimeout(l,10)}r[e]=0;for(var d=0;d<t.length;++d){var g=d+1===t.length?p:u(s||f(t[d+1]).action);m(t[d],g,s,e,d)}}function m(e,n,o,r,i){t._directMap[e+":"+o]=n;var s,a=(e=e.replace(/\s+/g," ")).split(" ");a.length>1?y(e,a,n,o):(s=f(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,c=!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;c=!0,i[r[o].seq]=1,h(r[o].callback,n,r[o].combo,r[o].seq)}else c||h(r[o].callback,n,r[o].combo);var f="keypress"==n.type&&s;n.type!=a||d(e)||f||l(i),s=c&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var o=0;o<e.length;++o)m(e[o],t,n)},p(e,"keypress",g),p(e,"keydown",g),p(e,"keyup",g)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)}));function uy(){}function py(){}py.resetWarningCache=uy;var cy,dy=l((function(e){e.exports=function(){function e(e,t,n,o,r,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var s=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 s.name="Invariant Violation",s}}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:py,resetWarningCache:uy};return n.PropTypes=n,n}()})),hy=l((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});
|
|
38
|
-
/**
|
|
39
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
40
|
-
* @version v23.1.1
|
|
41
|
-
* @link http://www.ag-grid.com/
|
|
42
|
-
* @license MIT
|
|
43
|
-
*/
|
|
44
|
-
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),p=n*(1-t*(1-a));switch(s>>0){case 0:o=n,r=p,i=l;break;case 1:o=u,r=n,i=l;break;case 2:o=l,r=n,i=p;break;case 3:o=l,r=u,i=n;break;case 4:o=p,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),p=e.HSBtoRGB(a,l,s);return p.push(u),e.fromArray(p)},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}();
|
|
45
|
-
/**
|
|
46
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
47
|
-
* @version v23.1.1
|
|
48
|
-
* @link http://www.ag-grid.com/
|
|
49
|
-
* @license MIT
|
|
50
|
-
*/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,p){var c=e[p-1],d=e[p],h=e[p+1],f=function(){i[l]||(i[l]=[]),i[l][u]||(i[l][u]="")};if(f(),'"'===d){if(a)return'"'===h?(i[l][u]+='"',p++):a=!1,n=l,o=u,r=p,"continue";if(void 0===c||c===t||s(c))return a=!0,n=l,o=u,r=p,"continue"}if(!a){if(d===t)return u++,f(),n=l,o=u,r=p,"continue";if(s(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&p++,n=l,o=u,r=p,"continue"}i[l][u]+=d,n=l,o=u,r=p},u=0,p=0,c=0;c<e.length;c++)l(u,p,c),u=n,p=o,c=r;return i}var r,i,a,l,u,p,c=Object.freeze({__proto__:null,stringToArray:o});
|
|
51
|
-
/**
|
|
52
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
53
|
-
* @version v23.1.1
|
|
54
|
-
* @link http://www.ag-grid.com/
|
|
55
|
-
* @license MIT
|
|
56
|
-
*/function d(){return void 0===i&&(i=!!document.documentMode),i}function h(){return void 0===a&&(a=!d()&&!!window.StyleMedia),a}function f(){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 g(){if(void 0===l){var e=window;l=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return l}function v(){if(void 0===u){var e=window;u=void 0!==e.InstallTrigger}return u}var y=Object.freeze({__proto__:null,isBrowserIE:d,isBrowserEdge:h,isBrowserSafari:f,isBrowserChrome:g,isBrowserFirefox:v,isIOSUserAgent:function(){return void 0===p&&(p=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),p},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}});
|
|
57
|
-
/**
|
|
58
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
59
|
-
* @version v23.1.1
|
|
60
|
-
* @link http://www.ag-grid.com/
|
|
61
|
-
* @license MIT
|
|
62
|
-
*/function m(e){return null==e||""===e?null:e}function C(e,t){return void 0===t&&(t=!1),null!=e&&(t||""!==e)}function w(e){return!C(e)}function E(e){return C(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 R=Object.freeze({__proto__:null,makeNull:m,exists:C,missing:w,missingOrEmpty:function(e){return!e||w(e)||0===e.length},toStringOrNull:E,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(s){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={"&":"&","<":"<",">":">",'"':""","'":"'"};
|
|
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
|
-
*/function S(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function T(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}var D=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:S,hyphenToCamelCase:T,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}});
|
|
69
|
-
/**
|
|
70
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
71
|
-
* @version v23.1.1
|
|
72
|
-
* @link http://www.ag-grid.com/
|
|
73
|
-
* @license MIT
|
|
74
|
-
*/function P(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 P(e,t)}))}}function A(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 N(e,t,n){n?P(e,t):A(e,t)}function x(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 F(e,t){N(e,"ag-hidden",!t)}function I(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,p=t.marginBottom,c=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(p),marginLeft:parseFloat(c),boxSizing:d}}function L(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function M(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function G(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 V(e,t){t=H(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function W(e,t){t=H(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function H(e){return"number"==typeof e?e+"px":e}function B(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function j(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function U(e){return B(e)||j(e)}var z=Object.freeze({__proto__:null,addCssClass:P,removeCssClass:A,addOrRemoveCssClass:N,radioCssClass:function(e,t,n){for(var o=e.parentElement.firstChild;o;)t&&N(o,t,o===e),n&&N(o,n,o!==e),o=o.nextSibling},containsClass:x,setDisplayed:F,setVisible:function(e,t){N(e,"ag-invisible",!t)},isElementChildOfClass:function(e,t,n){for(var o=0;e;){if(x(e,t))return!0;if(e=e.parentElement,n&&++o>n)break}return!1},getElementSize:I,getInnerHeight:function(e){var t=I(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height},getInnerWidth:function(e){var t=I(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width},getAbsoluteHeight:function(e){var t=I(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)},getAbsoluteWidth:function(e){var t=I(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),g()&&(n=e.scrollWidth-e.clientWidth-n)),n},setScrollLeft:function(e,t,n){n&&((f()||g())&&(t=e.scrollWidth-e.clientWidth-t),v()&&(t*=-1)),e.scrollLeft=t},clearElement:L,removeElement:function(e,t){M(e.querySelector(t))},removeFromParent:M,isVisible:function(e){return null!==e.offsetParent},loadTemplate:k,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:G,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){C(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:function(e,t){t&&Object.keys(t).forEach((function(n){var o=T(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"):V(e,t)},setFixedWidth:V,setElementHeight:function(e,t){"flex"===t?(e.style.height=null,e.style.minHeight=null,e.style.maxHeight=null,e.style.flex="1 1 auto"):W(e,t)},setFixedHeight:W,formatSize:H,isNode:B,isElement:j,isNodeOrElement:U,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}});
|
|
75
|
-
/**
|
|
76
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
77
|
-
* @version v23.1.1
|
|
78
|
-
* @link http://www.ag-grid.com/
|
|
79
|
-
* @license MIT
|
|
80
|
-
*/function Y(e,t){e&&!w(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 K(e,t){return e[t]}function q(e,t,n){e[t]=n}function $(e,t,n,o){var r=K(e,n);void 0!==r&&q(t,n,o?o(r):r)}var Q=Object.freeze({__proto__:null,iterateObject:Y,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:K,setProperty:q,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];n.forEach((function(n){return $(e,t,n)}))},copyPropertyIfPresent:$,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),C(n)&&Y(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){C(t)&&Y(t,(function(t,n){e[t]=n}))})),e},missingOrEmptyObject:function(e){return w(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(w(r=r[o[i]]))return null;return r}}});
|
|
81
|
-
/**
|
|
82
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
83
|
-
* @version v23.1.1
|
|
84
|
-
* @link http://www.ag-grid.com/
|
|
85
|
-
* @license MIT
|
|
86
|
-
*/var X=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,p=0;p<t;p++)i+=p,s+=u=e[p],l+=p*p,a+=p*u;var c=(t*a-i*s)/(t*l-i*i),d=s/t-c*i/t,h=[];for(p=0;p<=t;p++)h.push(parseFloat((p*c+d).toFixed(n)));return h},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return Y(e,(function(e,n){var o=S(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=k('<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)}))}});
|
|
87
|
-
/**
|
|
88
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
89
|
-
* @version v23.1.1
|
|
90
|
-
* @link http://www.ag-grid.com/
|
|
91
|
-
* @license MIT
|
|
92
|
-
*/function J(){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(C(o))return o}return null}function Z(e){if(e&&e.length)return e[e.length-1]}function ee(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&ie(e,(function(e,o){return n?n(e,t[o]):t[o]===e}))}function te(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function ne(e,t){se(t,(function(t){return te(e,t)}))}function oe(e,t,n){e.splice(n,0,t)}function re(e,t){return e.indexOf(t)>-1}function ie(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 se(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n],n)}function ae(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 le=Object.freeze({__proto__:null,firstExistingValue:J,anyExists:function(e){return e&&null!=J(e)},existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:Z,areEqual:ee,compareArrays:function(e,t){return ee(e,t)},shallowCompare:function(e,t){return ee(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:te,removeAllFromArray:ne,insertIntoArray:oe,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){oe(e,t[o],n)}},moveInArray:function(e,t,n){ne(e,t),se(t.slice().reverse(),(function(t){return oe(e,t,n)}))},includes:re,flatten:function(e){return[].concat.apply([],e)},pushAll:function(e,t){null!=t&&null!=e&&se(t,(function(t){return e.push(t)}))},toStrings:function(e){return ae(e,E)},findIndex:function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1},every:ie,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:se,map:ae,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)}});
|
|
93
|
-
/**
|
|
94
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
95
|
-
* @version v23.1.1
|
|
96
|
-
* @link http://www.ag-grid.com/
|
|
97
|
-
* @license MIT
|
|
98
|
-
*/function ue(e,t){for(var n=""+e;n.length<t;)n="0"+n;return n}function pe(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}var ce=Object.freeze({__proto__:null,padStart:ue,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?"":pe(Math.round(100*e)/100)},formatNumberCommas:pe,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}});
|
|
99
|
-
/**
|
|
100
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
101
|
-
* @version v23.1.1
|
|
102
|
-
* @link http://www.ag-grid.com/
|
|
103
|
-
* @license MIT
|
|
104
|
-
*/function de(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 ue(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return ue(e,2)})).join(":")),o}function he(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)})),p=u[0],c=u[1],d=u[2];return p>=0&&p<24&&l.setHours(p),c>=0&&c<60&&l.setMinutes(c),d>=0&&d<60&&l.setSeconds(d),l}var fe=Object.freeze({__proto__:null,serialiseDate:de,parseDateTimeFromString:he}),ge="__ag_Grid_Stop_Propagation",ve=["touchstart","touchend","touchmove","touchcancel"],ye=["mouseover","mouseout","mouseenter","mouseleave"],me={};
|
|
105
|
-
/**
|
|
106
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
107
|
-
* @version v23.1.1
|
|
108
|
-
* @link http://www.ag-grid.com/
|
|
109
|
-
* @license MIT
|
|
110
|
-
*/var Ce,we=(Ce={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof me[e])return me[e];var t=document.createElement(Ce[e]||"div"),n=(e="on"+e)in t;return n||(t.setAttribute(e,"return;"),n="function"==typeof t[e]),t=null,me[e]=n});function Ee(e){var t=e;return t.target||t.srcElement}function be(e){for(var t=[],n=Ee(e);n;)t.push(n),n=n.parentElement;return t}function Re(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:be(e)}var _e=Object.freeze({__proto__:null,stopPropagationForAgGrid:function(e){e[ge]=!0},isStopPropagationForAgGrid:function(e){return!0===e[ge]},isEventSupported:we,getCellCompForEvent:function(e,t){for(var n=Ee(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:Ee,isElementInEventPath:function(e,t){return!(!t||!e)&&Re(t).indexOf(e)>=0},createEventPath:be,addAgGridEventPath:function(e){e.__agGridEventPath=Re(e)},getEventPath:Re,addSafePassiveEventListener:function(e,t,n,o){var r=re(ve,n)?{passive:!0}:void 0;re(ye,n)?e&&e.addEventListenerOutsideAngular&&e.addEventListenerOutsideAngular(t,n,o,r):t.addEventListener(n,o,r)}}),Oe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Se=/([^\s,]+)/g,Te={};
|
|
111
|
-
/**
|
|
112
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
113
|
-
* @version v23.1.1
|
|
114
|
-
* @link http://www.ag-grid.com/
|
|
115
|
-
* @license MIT
|
|
116
|
-
*/function De(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function Pe(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 Ae=Object.freeze({__proto__:null,doOnce:function(e,t){Te[t]||(e(),Te[t]=!0)},getFunctionParameters:function(e){var t=e.toString().replace(Oe,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(Se)||[]},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},executeInAWhile:function(e){De(e,400)},executeNextVMTurn:function(e){De(e,0)},executeAfter:De,debounce:Pe,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()}});
|
|
117
|
-
/**
|
|
118
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
119
|
-
* @version v23.1.1
|
|
120
|
-
* @link http://www.ag-grid.com/
|
|
121
|
-
* @license MIT
|
|
122
|
-
*/function Ne(e,t,n,o){var r=o?Ie:Fe,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 xe(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 Fe(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=xe(e),i=xe(t),s=r.length+i.length,a=0;for(n=0,o=r.length;n<o;n++){var l,u=r[n],p=void 0;for(p=0,l=i.length;p<l;p++){u===i[p]&&a++}}return a>0?2*a/s:0}function Ie(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 Le=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]=Ne(e,n)})),o},fuzzySuggestions:Ne,get_bigrams:xe,string_distances:Fe,string_weighted_distances:Ie}),Me={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"};
|
|
123
|
-
/**
|
|
124
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
125
|
-
* @version v23.1.1
|
|
126
|
-
* @link http://www.ag-grid.com/
|
|
127
|
-
* @license MIT
|
|
128
|
-
*/function ke(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=Me[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?k(u):U(u)?u:void console.warn("ag-Grid: iconRenderer should return back a string or a dom object")}var Ge=Object.freeze({__proto__:null,iconNameClassMap:Me,createIcon:function(e,t,n){var o=ke(e,t,n);if(o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r},createIconNoSpan:ke}),Ve=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}(),We="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}";
|
|
129
|
-
/**
|
|
130
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
131
|
-
* @version v23.1.1
|
|
132
|
-
* @link http://www.ag-grid.com/
|
|
133
|
-
* @license MIT
|
|
134
|
-
*/function He(e,t){return(e.which||e.keyCode)===t}var Be=Object.freeze({__proto__:null,isKeyPressed:He,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(He(e,Ve.KEY_NEW_LINE))return!1;if(e.altKey||e.ctrlKey)return!1;if(C(e.key)){var n=1===e.key.length,o=function(e){return(h()||d())&&"Del"===e.key&&46===e.charCode}(e);return n||o}return We.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)}});
|
|
135
|
-
/**
|
|
136
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
137
|
-
* @version v23.1.1
|
|
138
|
-
* @link http://www.ag-grid.com/
|
|
139
|
-
* @license MIT
|
|
140
|
-
*/var je=Object.freeze({__proto__:null,keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}});
|
|
141
|
-
/**
|
|
142
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
143
|
-
* @version v23.1.1
|
|
144
|
-
* @link http://www.ag-grid.com/
|
|
145
|
-
* @license MIT
|
|
146
|
-
*/var Ue=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}});
|
|
147
|
-
/**
|
|
148
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
149
|
-
* @version v23.1.1
|
|
150
|
-
* @link http://www.ag-grid.com/
|
|
151
|
-
* @license MIT
|
|
152
|
-
*/var ze=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)}});
|
|
153
|
-
/**
|
|
154
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
155
|
-
* @version v23.1.1
|
|
156
|
-
* @link http://www.ag-grid.com/
|
|
157
|
-
* @license MIT
|
|
158
|
-
*/var Ye,Ke=Object.freeze({__proto__:null,convertToSet:function(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}}),qe=function(){return(qe=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)},$e=qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe(qe({},X),le),y),c),fe),z),_e),Ae),Le),R),Ge),Be),je),Ue),ce),Q),ze),Ke),D),Qe=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}();
|
|
159
|
-
/**
|
|
160
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
161
|
-
* @version v23.1.1
|
|
162
|
-
* @link http://www.ag-grid.com/
|
|
163
|
-
* @license MIT
|
|
164
|
-
*/(
|
|
165
|
-
/**
|
|
166
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
167
|
-
* @version v23.1.1
|
|
168
|
-
* @link http://www.ag-grid.com/
|
|
169
|
-
* @license MIT
|
|
170
|
-
*/
|
|
171
|
-
Ye=t.PromiseStatus||(t.PromiseStatus={}))[Ye.IN_PROGRESS=0]="IN_PROGRESS",Ye[Ye.RESOLVED=1]="RESOLVED";var Xe=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);se(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,se(this.waiters,(function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),Je=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}(),Ze=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=$e.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}(),et=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 $e.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"),$e.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),$e.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){$e.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&&$e.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}();
|
|
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
|
-
*/function tt(e,t,n){var o=ut(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function nt(e,t,n){var o=ut(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function ot(e,t,n){var o=ut(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function rt(e){return function(t){ut(t).beanName=e}}function it(e){return function(t,n,o){at(t,e,!1,t,n,null)}}function st(e){return function(t,n,o){at(t,e,!0,t,n,null)}}function at(e,t,n,o,r,i){if(null!==t)if("number"!=typeof i){var s=ut(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 lt(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=ut(i),s=n):(r=ut(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][o]=e}}}function ut(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}
|
|
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 pt,ct=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},dt=function(e,t){return function(n,o){t(n,o,e)}},ht=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",ct([dt(0,lt("loggerFactory")),dt(1,lt("gridOptionsWrapper")),dt(2,lt("globalEventListener"))],e.prototype,"setBeans",null),e=t=ct([rt("eventService")],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
|
-
pt=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",pt.CommunityAllModules="@ag-grid-community/all",pt.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",pt.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",pt.CsvExportModule="@ag-grid-community/csv-export",pt.RowNodeCache="@ag-grid-community/row-node-cache",pt.EnterpriseCoreModule="@ag-grid-enterprise/core",pt.EnterpriseAllModules="@ag-grid-enterprise/all",pt.RowGroupingModule="@ag-grid-enterprise/row-grouping",pt.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",pt.FiltersToolPanelModule="@ag-grid-enterprise/filters-tool-panel",pt.MenuModule="@ag-grid-enterprise/menu",pt.SetFilterModule="@ag-grid-enterprise/set-filter",pt.StatusBarModule="@ag-grid-enterprise/status-bar",pt.SideBarModule="@ag-grid-enterprise/side-bar",pt.RangeSelectionModule="@ag-grid-enterprise/range-selection",pt.MasterDetailModule="@ag-grid-enterprise/master-detail",pt.RichSelectModule="@ag-grid-enterprise/rich-select",pt.GridChartsModule="@ag-grid-enterprise/charts",pt.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",pt.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",pt.ExcelExportModule="@ag-grid-enterprise/excel-export",pt.ClipboardModule="@ag-grid-enterprise/clipboard",pt.DateTimeCellEditorModule="@ag-grid-enterprise/date-time-cell-editor",pt.AngularModule="@ag-grid-community/angular",pt.ReactModule="@ag-grid-community/react",pt.VueModule="@ag-grid-community/vue",pt.PolymerModule="@ag-grid-community/polymer";
|
|
191
|
-
/**
|
|
192
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
193
|
-
* @version v23.1.1
|
|
194
|
-
* @link http://www.ag-grid.com/
|
|
195
|
-
* @license MIT
|
|
196
|
-
*/
|
|
197
|
-
var ft=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&&$e.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 $e.doOnce((function(){console.warn(o)}),n),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return $e.values(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),gt=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},vt=function(){function e(e,t,n,o){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ht,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=$e.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!n,this.tooltipFieldContainsDots=$e.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!n,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if($e.missing(this.colDef)||$e.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){$e.doOnce((function(){n?console.warn(e,n):$e.doOnce((function(){return console.warn(e)}),t)}),t)}if(!ft.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){$e.exists(e[o])&&(ft.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(ft.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(ft.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")),ft.isRegistered(t.ModuleNames.DateTimeCellEditorModule)||"agRichSelect"!==this.colDef.cellEditor&&"agDateTimeCellEditor"!==this.colDef.cellEditor||(ft.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){$e.exists(e[t])&&n("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}$e.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"),$e.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"),$e.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"),$e.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"),$e.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===Ve.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===Ve.SORT_DESC},e.prototype.isSortNone=function(){return $e.missing(this.sort)},e.prototype.isSorting=function(){return $e.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&&$e.mergeDeep(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===Ve.PINNED_LEFT?this.pinned=Ve.PINNED_LEFT:e===Ve.PINNED_RIGHT?this.pinned=Ve.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===Ve.PINNED_LEFT||this.pinned===Ve.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===Ve.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===Ve.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($e.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($e.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",gt([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),gt([it("columnUtils")],e.prototype,"columnUtils",void 0),gt([it("columnApi")],e.prototype,"columnApi",void 0),gt([it("gridApi")],e.prototype,"gridApi",void 0),gt([it("context")],e.prototype,"context",void 0),gt([nt],e.prototype,"initialise",null),e}(),yt=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new ht,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=$e.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 vt?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof vt?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",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);i>3&&s&&Object.defineProperty(t,n,s)}([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),mt=function(){function e(e,t,n,o){this.localEventService=new ht,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 vt?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?yt.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(vt.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===yt.HEADER_GROUP_SHOW_OPEN)t=!0,o=!0;else if(l===yt.HEADER_GROUP_SHOW_CLOSED)n=!0,o=!0;else{if(t=!0,n=!0,l===yt.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 p={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(p)}}},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}(),Ct={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},wt=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},Et=function(){function e(){}var t,n;return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,n){var o=new Ze;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 mt&&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 mt(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 mt;)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 mt){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,o);a.setChildren(l),r.push(a)}else{for(var u=void 0,p=void 0,c=n-1;c>=t;c--){var d=o.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new mt(h,d,!0,t);this.context.wireBean(f),p&&p.setChildren([f]),p=f,u||(u=p)}if(u){if(r.push(u),e.some((function(e){return e instanceof mt}))){p.setChildren([s]);continue}p.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 mt){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 mt(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 $e.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),$e.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 vt(i,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var n=$e.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&&$e.removeFromArray(t,n),n},e.prototype.mergeColDefs=function(e){var t={};return $e.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),$e.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=$e.assign({},this.gridOptionsWrapper.getColumnTypes(),Ct);n.forEach((function(e){var n=o[e.trim()];n?$e.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},wt([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),wt([it("columnUtils")],e.prototype,"columnUtils",void 0),wt([it("context")],e.prototype,"context",void 0),wt([(t=0,n=lt("loggerFactory"),function(e,o){n(e,o,t)})],e.prototype,"setBeans",null),e=wt([rt("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}(),Rt=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(){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}var t,n;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;ee(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?$e.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?$e.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 vt?t.push(r):r instanceof mt&&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 Ve.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case Ve.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],p=t.length-a,c=Math.min(u.getColSpan(e),p),d=[u];if(c>1){for(var h=c-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&&!$e.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;$e.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,$e.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,p=0,c=function(){if(++p>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 p;i===e.length-1?p=o:(p=Math.round(s[i]*t*r),o-=p),p<n.getMinWidth()?(p=n.getMinWidth(),l[n.getId()]=!0,u=!0):n.getMaxWidth()>0&&p>n.getMaxWidth()&&(p=n.getMaxWidth(),l[n.getId()]=!0,u=!0),a[n.getId()]=p}))};u;){if("break"===c())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)){$e.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 $e.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 mt){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 Ve.PINNED_LEFT:return this.leftWidth;case Ve.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 Ve.PINNED_LEFT:return this.getDisplayedLeftColumns();case Ve.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 $e.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return $e.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===Ve.PINNED_LEFT?Ve.PINNED_LEFT:t===Ve.PINNED_RIGHT?Ve.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(!$e.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),$e.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&&$e.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($e.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};$e.missing(t)&&n&&(l.rowGroupIndex=r++),$e.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"),$e.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($e.exists(o.getAutoColumn(e.colId)))u.push(e);else{var t=o.getPrimaryColumn(e.colId);t?(o.syncColumnWithStateItem(t,e,a,l,n),$e.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 p=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return p.indexOf(e.getId())-p.indexOf(t.getId())}))}if(this.putFixedColumnsFirst(),this.updateDisplayedColumns(n),!t){var c={type:bt.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(c)}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(!ee(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=$e.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)):($e.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&&$e.exists(this.groupAutoColumns)&&!$e.missing(this.groupAutoColumns)?$e.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?$e.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,r=null;if($e.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 yt)return e;var n=this.getAllDisplayedColumnGroups(),o="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof yt){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 mt){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 mt){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 mt?e.getId():e,this.setColumnGroupState([{groupId:o,open:t}],n)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof mt)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 mt){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&&$e.includes(e.groupAutoColumns,t),o=e.valueColumns&&$e.includes(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&$e.includes(e.groupAutoColumns,t)||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){$e.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&&$e.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($e.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(!$e.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);$e.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(),!$e.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()}))}$e.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 yt&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof vt&&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 Ve.PINNED_LEFT:n=this.displayedLeftHeaderRows[t];break;case Ve.PINNED_RIGHT:n=this.displayedRightHeaderRows[t];break;default:n=this.displayedCentreHeaderRows[t]}return $e.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 vt)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],p=i*u.getFlex()/a,c=void 0;if(p<u.getMinWidth()?c=u.getMinWidth():null!=u.getMaxWidth()&&p>u.getMaxWidth()&&(c=u.getMaxWidth()),c){u.setActualWidth(c,t),$e.removeFromArray(r,u),o.push(u);continue e}s[l]=Math.round(p)}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){$e.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 p=u/this.getWidthOfColsInList(r),c=u,d=r.length-1;d>=0;d--){var h=r[d],f=Math.round(h.getActualWidth()*p);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(c,t):h.setActualWidth(f,t)}c-=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 Rt;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,Ve.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,Ve.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 yt&&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 ee(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([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_t([it("expressionService")],e.prototype,"expressionService",void 0),_t([it("columnFactory")],e.prototype,"columnFactory",void 0),_t([it("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),_t([it("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),_t([it("eventService")],e.prototype,"eventService",void 0),_t([it("columnUtils")],e.prototype,"columnUtils",void 0),_t([it("columnAnimationService")],e.prototype,"columnAnimationService",void 0),_t([it("autoGroupColService")],e.prototype,"autoGroupColService",void 0),_t([st("aggFuncService")],e.prototype,"aggFuncService",void 0),_t([st("valueCache")],e.prototype,"valueCache",void 0),_t([st("animationFrameService")],e.prototype,"animationFrameService",void 0),_t([it("columnApi")],e.prototype,"columnApi",void 0),_t([it("gridApi")],e.prototype,"gridApi",void 0),_t([nt],e.prototype,"init",null),_t([(t=0,n=lt("loggerFactory"),function(e,o){n(e,o,t)})],e.prototype,"setBeans",null),e=_t([rt("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()||$e.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 mt)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 mt&&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 yt&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof yt&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},St([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=St([rt("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),p=[],c=!s,d=0;d<r.length;d++)if(c||r[d]!==s[d]){var h=a.createColumnGroup(r[d],n,u,o);p[d]=h,0==d?l.push(h):p[d-1].addChild(h)}else p[d]=i[d];0===p.length?l.push(e):$e.last(p).addChild(e);i=p,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[yt.createUniqueId(r,i)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),$e.exists(s)?s.reset():(s=new yt(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 yt){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 yt){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 mt)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([it("columnUtils")],e.prototype,"columnUtils",void 0),Dt([it("context")],e.prototype,"context",void 0),e=Dt([rt("displayedGroupCreator")],e)}(),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=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}(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(){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=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}(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}(),xt=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}(),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},It=function(e,t){return function(n,o){t(n,o,e)}},Lt=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};
|
|
198
|
-
/**
|
|
199
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
200
|
-
* @version v23.1.1
|
|
201
|
-
* @link http://www.ag-grid.com/
|
|
202
|
-
* @license MIT
|
|
203
|
-
*/function Mt(e){return!0===e||"true"===e}var kt=function(){function e(){this.propertyEventService=new ht,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"};$e.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupDefaultExpanded")),$e.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeFooter")),$e.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&ft.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=Lt(Nt.ALL_PROPERTIES,Nt.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=Lt(At.ALL_PROPERTIES,At.FRAMEWORK_PROPERTIES,$e.values(bt).map((function(e){return Vt.getCallbackForEvent(e)}))),n=Lt(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=$e.fuzzyCheckStrings(e,t,n);$e.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];$e.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 Mt(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return Mt(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return Mt(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return Mt(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===Ve.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===Ve.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===Ve.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return $e.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===Ve.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===Ve.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return Mt(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return Mt(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return Mt(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return Mt(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return Mt(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return Mt(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return Mt(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return Mt(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return Mt(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!Mt(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return Mt(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=Mt(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 Mt(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return Mt(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return Mt(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return Mt(this.gridOptions.groupMultiAutoColumn)||Mt(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return Mt(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return Mt(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return Mt(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return Mt(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return Mt(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return Mt(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return Mt(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return Mt(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return Mt(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isPivotSuppressAutoColumn=function(){return Mt(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return Mt(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return Mt(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return Mt(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return Mt(this.gridOptions.suppressRowDrag)},e.prototype.isSuppressMoveWhenRowDragging=function(){return Mt(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isEnableMultiRowDragging=function(){return Mt(this.gridOptions.enableMultiRowDragging)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||Ve.DOM_LAYOUT_NORMAL;return-1===[Ve.DOM_LAYOUT_PRINT,Ve.DOM_LAYOUT_AUTO_HEIGHT,Ve.DOM_LAYOUT_NORMAL].indexOf(e)?($e.doOnce((function(){return console.warn("ag-Grid: "+e+" is not valid for DOM Layout, valid values are "+Ve.DOM_LAYOUT_NORMAL+", "+Ve.DOM_LAYOUT_AUTO_HEIGHT+" and "+Ve.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),Ve.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return Mt(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return Mt(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Mt(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return Mt(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return Mt(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return Mt(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return Mt(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return Mt(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return Mt(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return Mt(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return Mt(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return Mt(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return Mt(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return Mt(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return Mt(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return Mt(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return Mt(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 Mt(this.gridOptions.embedFullWidthRows)||Mt(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 Mt(this.gridOptions.immutableData)},e.prototype.isImmutableColumns=function(){return Mt(this.gridOptions.immutableColumns)},e.prototype.isEnsureDomOrder=function(){return Mt(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!Mt(this.gridOptions.enableCharts)&&ft.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return Mt(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return Mt(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return Mt(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())||Mt(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return Mt(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return Mt(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(e){return!e&&Mt(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return Mt(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return Mt(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return Mt(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return Mt(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return Mt(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return Mt(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 Mt(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return Mt(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return Mt(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return Mt(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return Mt(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return Mt(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Mt(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return Mt(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return Mt(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return Mt(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return Mt(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return Mt(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return Mt(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return Mt(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return Mt(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Mt(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getAsyncTransactionWaitMillis=function(){return $e.exists(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:Ve.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return Mt(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Mt(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return Mt(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return Mt(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return Mt(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return ft.isRegistered(t.ModuleNames.RangeSelectionModule)&&Mt(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return Mt(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return Mt(this.gridOptions.enableFillHandle)},e.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},e.prototype.isSuppressMultiRangeSelection=function(){return Mt(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return Mt(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return Mt(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!!Mt(this.gridOptions.masterDetail)&&ft.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return Mt(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 Mt(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return Mt(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return Mt(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isFunctionsReadOnly=function(){return Mt(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return Mt(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return Mt(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 Mt(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return Mt(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return Mt(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Mt(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!!Mt(this.gridOptions.treeData)&&ft.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return Mt(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return Mt(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return Mt(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return Mt(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 Mt(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return $e.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===Ve.DOM_LAYOUT_AUTO_HEIGHT,n=e===Ve.DOM_LAYOUT_PRINT,o=e===Ve.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){$e.addOrRemoveCssClass(e,"ag-layout-auto-height",t),$e.addOrRemoveCssClass(e,"ag-layout-normal",o),$e.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 $e.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 Mt(this.gridOptions.tooltipMouseTrack)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&$e.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&$e.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&&($e.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=Ve.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:$e.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&&!$e.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=xt.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&&$e.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()&&$e.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()&&($e.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."),$e.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=Vt.getCallbackForEvent(e);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||$e.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",Ft([it("gridOptions")],e.prototype,"gridOptions",void 0),Ft([it("columnController")],e.prototype,"columnController",void 0),Ft([it("eventService")],e.prototype,"eventService",void 0),Ft([it("gridApi")],e.prototype,"gridApi",void 0),Ft([it("columnApi")],e.prototype,"columnApi",void 0),Ft([it("environment")],e.prototype,"environment",void 0),Ft([it("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),Ft([it("context")],e.prototype,"context",void 0),Ft([It(0,lt("gridApi")),It(1,lt("columnApi"))],e.prototype,"agWire",null),Ft([ot],e.prototype,"destroy",null),Ft([nt],e.prototype,"init",null),e=n=Ft([rt("gridOptionsWrapper")],e)}(),Gt=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},Vt=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),Wt(n),"object"!=typeof t&&(t={});var r=t,i=function(e){return void 0!==n[e]};return Gt(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 kt.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){Wt(t);var i=n,s=function(e){return t[e]};Gt(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};$e.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}();
|
|
204
|
-
/**
|
|
205
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
206
|
-
* @version v23.1.1
|
|
207
|
-
* @link http://www.ag-grid.com/
|
|
208
|
-
* @license MIT
|
|
209
|
-
*/function Wt(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}
|
|
210
|
-
/**
|
|
211
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
212
|
-
* @version v23.1.1
|
|
213
|
-
* @link http://www.ag-grid.com/
|
|
214
|
-
* @license MIT
|
|
215
|
-
*/Vt.EVENTS=$e.values(bt);var Ht,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},jt=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 ht),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?$e.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",Bt([it("context")],e.prototype,"context",void 0),Bt([it("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Bt([ot],e.prototype,"destroy",null),e}(),Ut=(Ht=function(e,t){return(Ht=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}Ht(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),zt=new Qe,Yt=function(e){function t(t){var n=e.call(this)||this;return n.childComponents=[],n.annotatedEventListeners=[],n.displayed=!0,n.visible=!0,n.compId=zt.next(),t&&n.setTemplate(t),n}return Ut(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e,t){var n=this,o=$e.copyNodeList(e.childNodes);$e.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){$e.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&&$e.forEach(n[o].querySelectors,(function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=$e.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");$e.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),$e.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&&($e.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),$e.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,$e.setVisible(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,$e.setDisplayed(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){$e.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){$e.addCssClass(this.eGui,e)},t.prototype.removeCssClass=function(e){$e.removeCssClass(this.eGui,e)},t.prototype.addOrRemoveCssClass=function(e,t){$e.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",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);i>3&&s&&Object.defineProperty(t,n,s)}([tt],t.prototype,"createChildComponentsPreConstruct",null),t}(jt),Kt=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)}}(),qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kt(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){$e.addCssClass(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&$e.removeCssClass(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(Yt);function $t(e){return Qt.bind(this,"[ref="+e+"]")}function Qt(e,t,n,o){null!==e?"number"!=typeof o?Jt(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 Xt(e,t,n){null!==e?Jt(t,"listenerMethods",{methodName:n,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function Jt(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}
|
|
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
|
-
*/(e,e.constructor.name);o[t]||(o[t]=[]),o[t].push(n)}var Zt,en,tn=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){function t(){return e.call(this,t.TEMPLATE)||this}return tn(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===Ve.KEY_BACKSPACE||e.keyPress===Ve.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==Ve.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e));$e.exists(t)&&n.setValue(t,!0),this.addDestroyableEventListener(n.getGui(),"keydown",(function(e){var t=e.keyCode===Ve.KEY_PAGE_UP,n=e.keyCode===Ve.KEY_PAGE_DOWN;(t||n)&&e.preventDefault()}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;$e.isBrowserSafari()||e.getFocusableElement().focus();var t=e.getInputElement();if(this.highlightAllOnFocus)t.select();else{var n=e.getValue(),o=$e.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();$e.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>',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);i>3&&s&&Object.defineProperty(t,n,s)}([$t("eInput")],t.prototype,"eInput",void 0),t}(qt),on=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}(),rn=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}(),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)}}(),an=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},ln=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 sn(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=[Ve.ROW_MODEL_TYPE_SERVER_SIDE,Ve.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");$e.addCssClass(i,"ag-filter-apply-panel");var s=function(e,n){var o=$e.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=$e.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",an([$t("eFilterBodyWrapper")],t.prototype,"eFilterBodyWrapper",void 0),an([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),an([it("rowModel")],t.prototype,"rowModel",void 0),an([nt],t.prototype,"postConstruct",null),t}(Yt),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)}}(),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};(en=Zt||(Zt={}))[en.One=0]="One",en[en.Two=1]="Two";var cn,dn,hn={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"},fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return un(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(Zt.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(Zt.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(Zt.One),condition2:this.createCondition(Zt.Two)}:this.createCondition(Zt.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,Zt.One),this.setConditionIntoUi(t.condition2,Zt.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,Zt.One),this.setConditionIntoUi(null,Zt.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 rn,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(Zt.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(Zt.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.isConditionUiComplete(Zt.One),t=this.allowTwoConditions&&e;$e.setDisplayed(this.eCondition2Body,t),$e.setDisplayed(this.eType2.getGui(),t),$e.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=hn[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",pn([$t("eOptions1")],t.prototype,"eType1",void 0),pn([$t("eOptions2")],t.prototype,"eType2",void 0),pn([$t("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),pn([$t("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),pn([$t("eCondition2Body")],t.prototype,"eCondition2Body",void 0),pn([$t("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),t}(ln),gn=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)}}(),vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gn(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 p=this.nullComparator(a,s,o);return this.scalarFilterParams.inRangeInclusive?u>=0&&p<=0:u>0&&p<0;default:throw new Error("Unexpected type of filter: "+a)}},t}(fn),yn=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)}}(),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},Cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yn(t,e),t.prototype.mapRangeFromModel=function(e){return{from:he(e.dateFrom),to:he(e.dateTo)}},t.prototype.setValueFromFloatingFilter=function(e){if(null!=e){var t=he(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?[he(e.dateFrom),he(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 on(this.userComponentFactory,t,this.eCondition1PanelFrom),this.dateCondition1ToComp=new on(this.userComponentFactory,t,this.eCondition1PanelTo),this.dateCondition2FromComp=new on(this.userComponentFactory,t,this.eCondition2PanelFrom),this.dateCondition2ToComp=new on(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===Zt.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===Zt.One?this.getCondition1Type():this.getCondition2Type();if(t===fn.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!==fn.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===Zt.One?this.getCondition1Type():this.getCondition2Type(),o=this.getFromToComponents(e),r=o[0],i=o[1];return{dateFrom:de(r.getDate()),dateTo:de(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();F(this.eCondition1PanelFrom,this.showValueFrom(t)),F(this.eCondition1PanelTo,this.showValueTo(t));var n=this.getCondition2Type();F(this.eCondition2PanelFrom,this.showValueFrom(n)),F(this.eCondition2PanelTo,this.showValueTo(n))},t.prototype.getFromToComponents=function(e){return e===Zt.One?[this.dateCondition1FromComp,this.dateCondition1ToComp]:[this.dateCondition2FromComp,this.dateCondition2ToComp]},t.FILTER_TYPE="date",t.DEFAULT_FILTER_OPTIONS=[vn.EQUALS,vn.GREATER_THAN,vn.LESS_THAN,vn.NOT_EQUAL,vn.IN_RANGE],mn([$t("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),mn([$t("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),mn([$t("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),mn([$t("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),mn([it("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(vn),wn=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ht,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)!$e.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}(),En=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},Rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return En(t,e),t.prototype.init=function(e){var n=$e.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=$e.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=$e.createIconNoSpan(e,this.gridOptionsWrapper,n);t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new wn(this.getGui(),!0),o=t.isSuppressMenuHide(),r=o&&$e.exists(this.eMenu),i=r?new wn(this.eMenu,!0):n;if(this.params.enableMenu){var s=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(i,wn[s],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addDestroyableEventListener(n,wn.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||$e.isIOSUserAgent()&&!t)$e.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(){$e.removeFromParent(this.eSortAsc),$e.removeFromParent(this.eSortDesc),$e.removeFromParent(this.eSortNone),$e.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,vt.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,vt.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($e.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),$e.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),$e.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&$e.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&$e.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();$e.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;$e.setDisplayed(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():$e.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,vt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();$e.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>',bn([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),bn([it("sortController")],t.prototype,"sortController",void 0),bn([it("menuFactory")],t.prototype,"menuFactory",void 0),bn([it("eventService")],t.prototype,"eventService",void 0),bn([$t("eFilter")],t.prototype,"eFilter",void 0),bn([$t("eSortAsc")],t.prototype,"eSortAsc",void 0),bn([$t("eSortDesc")],t.prototype,"eSortDesc",void 0),bn([$t("eSortNone")],t.prototype,"eSortNone",void 0),bn([$t("eSortOrder")],t.prototype,"eSortOrder",void 0),bn([$t("eMenu")],t.prototype,"eMenu",void 0),bn([$t("eLabel")],t.prototype,"eLabel",void 0),bn([$t("eText")],t.prototype,"eText",void 0),t}(Yt),_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},Sn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return _n(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(!$e.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){$e.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,mt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(o,mt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new wn(e);this.addDestroyableEventListener(n,wn.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();$e.setDisplayed(this.eOpenIcon,e),$e.setDisplayed(this.eCloseIcon,!e)}else $e.setDisplayed(this.eOpenIcon,!1),$e.setDisplayed(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=$e.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return $e.setDisplayed(this.eOpenIcon,!1),void $e.setDisplayed(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if($e.exists(e)){var t=$e.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>',On([it("columnController")],t.prototype,"columnController",void 0),On([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),On([$t("agOpened")],t.prototype,"eOpenIcon",void 0),On([$t("agClosed")],t.prototype,"eCloseIcon",void 0),t}(Yt),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(){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===Ve.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===Ve.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=$e.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&&$e.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);$e.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=$e.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&&$e.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===Ve.PINNED_TOP||this.rowPinned===Ve.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 p={type:bt.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(p)}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(!$e.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 ht),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;$e.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",Tn([it("eventService")],e.prototype,"mainEventService",void 0),Tn([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Tn([it("selectionController")],e.prototype,"selectionController",void 0),Tn([it("columnController")],e.prototype,"columnController",void 0),Tn([it("valueService")],e.prototype,"valueService",void 0),Tn([it("rowModel")],e.prototype,"rowModel",void 0),Tn([it("context")],e.prototype,"context",void 0),Tn([it("valueCache")],e.prototype,"valueCache",void 0),Tn([it("columnApi")],e.prototype,"columnApi",void 0),Tn([it("gridApi")],e.prototype,"gridApi",void 0),e}(),Pn=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)}}(),An=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 Pn(t,e),t.prototype.postConstruct=function(){$e.addCssClass(this.getGui(),"ag-labeled"),$e.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,$e.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 $e.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),$e.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),$e.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||$e.setElementWidth(this.eLabel,e),this},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);i>3&&s&&Object.defineProperty(t,n,s)}([nt],t.prototype,"postConstruct",null),t}(Yt),Nn=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)}}(),xn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return Nn(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),$e.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 $e.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"),$e.addOrRemoveCssClass(t,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(An),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)}}(),In=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},Ln=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 Fn(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),$e.addCssClass(this.eLabel,this.className+"-label"),$e.addCssClass(this.eWrapper,this.className+"-input-wrapper"),$e.addCssClass(this.eInput,this.className+"-input"),$e.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 $e.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)},In([$t("eLabel")],t.prototype,"eLabel",void 0),In([$t("eWrapper")],t.prototype,"eWrapper",void 0),In([$t("eInput")],t.prototype,"eInput",void 0),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=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 Mn(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){$e.addOrRemoveCssClass(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return $e.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){$e.addOrRemoveCssClass(this.eWrapper,"ag-checked",!0===e),$e.addOrRemoveCssClass(this.eWrapper,"ag-indeterminate",null==e)},kn([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),kn([it("eventService")],t.prototype,"eventService",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)}}(),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},Hn=function(e){function t(){return e.call(this,'<div class="ag-selection-checkbox"><ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox></div>')||this}return Vn(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 $e.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return $e.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckbox,Gn.EVENT_CHANGED,(function(e){e.selected?t.onUncheckedClicked(e.event||{}):t.onCheckedClicked()})),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.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},Wn([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Wn([it("eventService")],t.prototype,"eventService",void 0),Wn([$t("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(Yt),Bn={propertyName:"dateComponent",isCellRenderer:function(){return!1}},jn={propertyName:"headerComponent",isCellRenderer:function(){return!1}},Un={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},zn={propertyName:"groupRowInnerRenderer",isCellRenderer:function(){return!0}},Yn={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},Kn={propertyName:"pinnedRowCellRenderer",isCellRenderer:function(){return!0}},qn={propertyName:"cellEditor",isCellRenderer:function(){return!1}},$n={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},Qn={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},Xn={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},Jn={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},Zn={propertyName:"filter",isCellRenderer:function(){return!1}},eo={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},to={propertyName:"toolPanel",isCellRenderer:function(){return!1}},no={propertyName:"statusPanel",isCellRenderer:function(){return!1}},oo=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=cn||(cn={}))[dn.DEFAULT=0]="DEFAULT",dn[dn.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",dn[dn.HARDCODED=2]="HARDCODED";var ro,io,so=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Bn,"agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,jn,"agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,Un,"agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,zn,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?Kn:Yn,null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,qn,"agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,$n,null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Qn,"agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Xn,"agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){return this.createAndInitUserComponent(e.colDef,e,Jn,"agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,n,o){return this.createAndInitUserComponent(e,t,Zn,n,!1,o)},e.prototype.newSetFilterCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,Yn,null,!0)},e.prototype.newFloatingFilterComponent=function(e,t,n){return this.createAndInitUserComponent(e,t,eo,n,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,to)},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,no)},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,p=this.initComponent(a,u);return null==p?Xe.resolve(a):p.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=$e.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:cn.HARDCODED,paramsFromSelector:null};if(s)return{componentFromFramework:!1,component:s,source:cn.HARDCODED,paramsFromSelector:null};if(a)return this.agComponentUtils.adaptFunction(t,a,!1,cn.HARDCODED);var p,c=r?r(n):null;if(!(p=c&&c.component?c.component:i||o))return null;var d=this.lookupFromRegisteredComponents(t,p);return d?{componentFromFramework:d.componentFromFramework,component:d.component,source:d.source,paramsFromSelector:c?c.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:cn.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(o.component)?{component:o.component,componentFromFramework:!1,source:o.source==ro.REGISTERED?cn.REGISTERED_BY_NAME:cn.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,o.component,o.componentFromFramework,o.source==ro.REGISTERED?cn.REGISTERED_BY_NAME:cn.DEFAULT)},e.prototype.createFinalParams=function(e,t,n,o){void 0===o&&(o=null);var r={};$e.mergeDeep(r,n);var i=e?e[t+"Params"]:null;return null!=i&&("function"==typeof i?$e.mergeDeep(r,i(n)):"object"==typeof i&&$e.mergeDeep(r,i)),$e.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 p=a.component,c=this.componentMetadataProvider.retrieve(s);i=this.frameworkComponentWrapper.wrap(p,c.mandatoryMethodList,c.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)},oo([it("gridOptions")],e.prototype,"gridOptions",void 0),oo([it("context")],e.prototype,"context",void 0),oo([it("agComponentUtils")],e.prototype,"agComponentUtils",void 0),oo([it("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),oo([it("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),oo([st("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e=oo([rt("userComponentFactory")],e)}(),ao=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)}}(),lo=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,t.TEMPLATE)||this}return ao(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===Ve.PINNED_LEFT,t=this.params.pinned===Ve.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){$e.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,Dn.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()||$e.get(e.colDef,"cellRendererParams.innerRenderer",null)||$e.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=$e.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!=cn.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,n);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=cn.DEFAULT?this.userComponentFactory.newCellRenderer(t,n):s&&s.source==cn.DEFAULT&&$e.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,n):this.userComponentFactory.newCellRenderer({},n)}return null!=r?r.then((function(e){null!=e?$e.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?$e.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,Dn.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(){$e.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 Hn;this.getContext().wireBean(n),n.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc((function(){return n.destroy()}))}$e.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,n=$e.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),o=$e.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,Dn.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,Dn.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){$e.isKeyPressed(e,Ve.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;!$e.missing(o);){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroup=o;break}o=o.parent}$e.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){$e.isStopPropagationForAgGrid(e)||($e.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){$e.isStopPropagationForAgGrid(e)||($e.isElementInEventPath(this.eExpanded,e)||$e.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;$e.setDisplayed(this.eContracted,!t),$e.setDisplayed(this.eExpanded,t)}else $e.setDisplayed(this.eExpanded,!1),$e.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>',lo([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),lo([it("expressionService")],t.prototype,"expressionService",void 0),lo([it("valueFormatterService")],t.prototype,"valueFormatterService",void 0),lo([it("columnController")],t.prototype,"columnController",void 0),lo([it("userComponentFactory")],t.prototype,"userComponentFactory",void 0),lo([$t("eExpanded")],t.prototype,"eExpanded",void 0),lo([$t("eContracted")],t.prototype,"eContracted",void 0),lo([$t("eCheckbox")],t.prototype,"eCheckbox",void 0),lo([$t("eValue")],t.prototype,"eValue",void 0),lo([$t("eChildCount")],t.prototype,"eChildCount",void 0),t}(Yt),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)}}(),co=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return po(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=$e.exists(o)?o:n,i=t>=0;this.eDelta.innerHTML=i?"↑"+r:"↓"+r,$e.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",i),$e.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(){$e.removeCssClass(this.eValue,"ag-value-change-value-highlight"),$e.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue&&($e.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:$e.exists(e.value)?this.eValue.innerHTML=t:$e.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&&$e.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>',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);i>3&&s&&Object.defineProperty(t,n,s)}([it("filterManager")],t.prototype,"filterManager",void 0),t}(Yt),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){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return ho(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=$e.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&&$e.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($e.missing(t)&&(t=""),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=t,$e.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:$e.exists(e.value)?this.eCurrent.innerHTML=t:$e.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',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);i>3&&s&&Object.defineProperty(t,n,s)}([it("filterManager")],t.prototype,"filterManager",void 0),t}(Yt),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},yo=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return go(t,e),t.prototype.init=function(e){var t=$e.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>',vo([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),vo([$t("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),vo([$t("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(Yt),mo=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},wo=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 mo(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,$e.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},Co([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Co([it("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Co([$t("eSelect")],t.prototype,"eSelect",void 0),t}(qt),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)}}(),bo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Eo(t,e),t.prototype.isPopup=function(){return!0},t}(nn),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)}}(),_o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ro(t,e),t.prototype.isPopup=function(){return!0},t}(wo),Oo=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 e.call(this,t.TEMPLATE)||this}return Oo(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),$e.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==Ve.KEY_LEFT||t==Ve.KEY_UP||t==Ve.KEY_RIGHT||t==Ve.KEY_DOWN||e.shiftKey&&t==Ve.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>',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);i>3&&s&&Object.defineProperty(t,n,s)}([$t("eTextArea")],t.prototype,"eTextArea",void 0),t}(qt),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,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 null!==e&&e.apply(this,arguments)||this}return To(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===Zt.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()===vn.IN_RANGE,n=this.getCondition2Type()===vn.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===Zt.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===Zt.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!==fn.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||(n===fn.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=$e.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.createCondition=function(e){var n=e===Zt.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());$e.setDisplayed(this.eValueFrom1.getGui(),t);var n=this.showValueTo(this.getCondition1Type());$e.setDisplayed(this.eValueTo1.getGui(),n);var o=this.showValueFrom(this.getCondition2Type());$e.setDisplayed(this.eValueFrom2.getGui(),o);var r=this.showValueTo(this.getCondition2Type());$e.setDisplayed(this.eValueTo2.getGui(),r)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[vn.EQUALS,vn.NOT_EQUAL,vn.LESS_THAN,vn.LESS_THAN_OR_EQUAL,vn.GREATER_THAN,vn.GREATER_THAN_OR_EQUAL,vn.IN_RANGE],Do([$t("eValueFrom1")],t.prototype,"eValueFrom1",void 0),Do([$t("eValueFrom2")],t.prototype,"eValueFrom2",void 0),Do([$t("eValueTo1")],t.prototype,"eValueTo1",void 0),Do([$t("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(vn),Ao=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)}}(),No=function(e){function t(){return e.call(this)||this}return Ao(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>',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);i>3&&s&&Object.defineProperty(t,n,s)}([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Yt),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)}}(),Fo=function(e){function t(){return e.call(this)||this}return xo(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>',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);i>3&&s&&Object.defineProperty(t,n,s)}([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Yt),Io=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)}}(),Lo=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return Io(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(qt),Mo=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)}}(),ko=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 Mo(t,e),t.prototype.init=function(e){var t=this;this.shouldUseBrowserDatePicker(e)&&(d()?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 he(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(de(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:g()||v()},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);i>3&&s&&Object.defineProperty(t,n,s)}([$t("eDateInput")],t.prototype,"eDateInput",void 0),t}(Yt),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){function t(){return null!==e&&e.apply(this,arguments)||this}return Go(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 rn,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!==fn.IN_RANGE&&e!==fn.EMPTY},t}(Yt),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,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,'\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 Wo(t,e),t.prototype.getDefaultFilterOptions=function(){return Cn.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type===fn.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){F(this.eDateWrapper,e),F(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(he(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=de(this.dateComp.getDate());this.params.parentFilterInstance((function(n){n&&n.onFloatingFilterChanged(e.getLastType(),t)}))},t.prototype.createDateComponent=function(){var e=this,t=ln.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:Pe(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new on(this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},Ho([it("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ho([$t("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Ho([$t("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Vo),jo=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)}}(),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},zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jo(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===Zt.One?this.eValue1:this.eValue2).setValue(e?e.filter:null)},t.prototype.createCondition=function(e){var n=e===Zt.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===Zt.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());F(this.eValue1.getGui(),t);var n=this.showValueFrom(this.getCondition2Type());F(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===Zt.One,n=t?this.getCondition1Type():this.getCondition2Type();return n!==fn.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===fn.NOT_EQUAL||o===fn.NOT_CONTAINS;var a=this.formatter(n);return this.comparator(o,i,a)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[fn.CONTAINS,fn.NOT_CONTAINS,fn.EQUALS,fn.NOT_EQUAL,fn.STARTS_WITH,fn.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}},Uo([$t("eValue1")],t.prototype,"eValue1",void 0),Uo([$t("eValue2")],t.prototype,"eValue2",void 0),t}(fn),Yo=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)}}(),Ko=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 null!==e&&e.apply(this,arguments)||this}return Yo(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=ln.isUseApplyButton(this.params.filterParams);var n=ln.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o=Pe(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=He(e,Ve.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)},Ko([$t("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),Ko([nt],t.prototype,"postConstruct",null),t}(Vo),$o=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)}}(),Qo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $o(t,e),t.prototype.getDefaultFilterOptions=function(){return Po.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==fn.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(qo),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){function t(){return null!==e&&e.apply(this,arguments)||this}return Xo(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}(qo),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};
|
|
222
|
-
/**
|
|
223
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
224
|
-
* @version v23.1.1
|
|
225
|
-
* @link http://www.ag-grid.com/
|
|
226
|
-
* @license MIT
|
|
227
|
-
*/(io=ro||(ro={}))[io.DEFAULT=0]="DEFAULT",io[io.REGISTERED=1]="REGISTERED";var er,tr=function(){function e(){this.agGridDefaults={agDateInput:ko,agColumnHeader:Rn,agColumnGroupHeader:Sn,agTextColumnFloatingFilter:Jo,agNumberColumnFloatingFilter:Qo,agDateColumnFloatingFilter:Bo,agAnimateShowChangeCellRenderer:co,agAnimateSlideCellRenderer:fo,agGroupCellRenderer:uo,agGroupRowRenderer:uo,agLoadingCellRenderer:yo,agCellEditor:nn,agTextCellEditor:nn,agSelectCellEditor:wo,agPopupTextCellEditor:bo,agPopupSelectCellEditor:_o,agLargeTextCellEditor:So,agTextColumnFilter:zo,agNumberColumnFilter:Po,agDateColumnFilter:Cn,agLoadingOverlay:No,agNoRowsOverlay:Fo,agTooltipComponent:Lo},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:ro.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:ro.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:ro.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?($e.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},Zo([it("gridOptions")],e.prototype,"gridOptions",void 0),Zo([it("context")],e.prototype,"context",void 0),Zo([nt],e.prototype,"init",null),e=Zo([rt("userComponentRegistry")],e)}(),nr=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}(),or=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},rr=function(){function e(){this.events=[]}var t,n;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 $e.iterateObject(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},e.prototype.getSelectedRows=function(){var e=[];return $e.iterateObject(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;$e.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()===Ve.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new nr(!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 $e.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)}})),$e.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){$e.exists(t)&&e.id!==t.id&&($e.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},e.prototype.syncInNewRowNode=function(e){$e.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()===Ve.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 $e.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()===Ve.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 $e.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()!==Ve.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()===Ve.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)},or([it("eventService")],e.prototype,"eventService",void 0),or([it("rowModel")],e.prototype,"rowModel",void 0),or([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),or([it("columnApi")],e.prototype,"columnApi",void 0),or([it("gridApi")],e.prototype,"gridApi",void 0),or([(t=0,n=lt("loggerFactory"),function(e,o){n(e,o,t)})],e.prototype,"setBeans",null),or([nt],e.prototype,"init",null),or([ot],e.prototype,"destroy",null),e=or([rt("selectionController")],e)}(),ir=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},sr=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)},ir([it("columnController")],e.prototype,"columnController",void 0),e=ir([rt("columnApi")],e)}();
|
|
228
|
-
/**
|
|
229
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
230
|
-
* @version v23.1.1
|
|
231
|
-
* @link http://www.ag-grid.com/
|
|
232
|
-
* @license MIT
|
|
233
|
-
*/(
|
|
234
|
-
/**
|
|
235
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
236
|
-
* @version v23.1.1
|
|
237
|
-
* @link http://www.ag-grid.com/
|
|
238
|
-
* @license MIT
|
|
239
|
-
*/
|
|
240
|
-
er=t.CellRangeType||(t.CellRangeType={}))[er.VALUE=0]="VALUE",er[er.DIMENSION=1]="DIMENSION";
|
|
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
|
-
*/
|
|
247
|
-
var ar,lr,ur,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};(ar=t.DragSourceType||(t.DragSourceType={}))[ar.ToolPanel=0]="ToolPanel",ar[ar.HeaderCell=1]="HeaderCell",ar[ar.RowDrag=2]="RowDrag",ar[ar.ChartPanel=3]="ChartPanel",(lr=t.VerticalDirection||(t.VerticalDirection={}))[lr.Up=0]="Up",lr[lr.Down=1]="Down",(ur=t.HorizontalDirection||(t.HorizontalDirection={}))[ur.Left=0]="Left",ur[ur.Right=1]="Right";var cr,dr,hr=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var n;return n=e,e.prototype.init=function(){this.ePinnedIcon=$e.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=$e.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=$e.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=$e.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=$e.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=$e.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=$e.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=$e.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=$e.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=$e.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),$e.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=$e.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 $e.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,l=a.gridApi,u=a.columnApi,p=a.dragItem,c=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:o,hDirection:n,dragSource:c,fromNudge:r,dragItem:p,api:l,columnApi:u,dropZoneTarget:i}},e.prototype.positionGhost=function(e){var t=this.eGhost,n=t.getBoundingClientRect().height,o=$e.getBodyWidth()-2,r=$e.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=$e.loadTemplate(n.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&$e.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;$e.isFunction(o)&&(o=o()),t.innerHTML=$e.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),$e.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}$e.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>',pr([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),pr([it("dragService")],e.prototype,"dragService",void 0),pr([it("environment")],e.prototype,"environment",void 0),pr([it("columnApi")],e.prototype,"columnApi",void 0),pr([it("gridApi")],e.prototype,"gridApi",void 0),pr([nt],e.prototype,"init",null),pr([ot],e.prototype,"destroy",null),e=n=pr([rt("dragAndDropService")],e)}(),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)}}(),gr=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=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 fr(n,e),n.prototype.postConstruct=function(){this.getGui().appendChild($e.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new Cr(this,this.beans,this.rowNode,this.column):new mr(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&&$e.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)}))},gr([nt],n.prototype,"postConstruct",null),n}(Yt),yr=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 fr(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);$e.isFunction(this.column.getColDef().rowDrag)?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(jt),mr=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return fr(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.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)},gr([nt],t.prototype,"postConstruct",null),t}(yr),Cr=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return fr(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,Dn.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.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)},gr([nt],t.prototype,"postConstruct",null),t}(yr),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)}}(),Er=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 wr(t,e),t.prototype.onKeyDown=function(e){$e.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",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);i>3&&s&&Object.defineProperty(t,n,s)}([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(qt),br=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(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 br(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild($e.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=$e.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(r){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},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);i>3&&s&&Object.defineProperty(t,n,s)}([nt],t.prototype,"postConstruct",null),t}(Yt),_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)}}(),Or=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};
|
|
248
|
-
/**
|
|
249
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
250
|
-
* @version v23.1.1
|
|
251
|
-
* @link http://www.ag-grid.com/
|
|
252
|
-
* @license MIT
|
|
253
|
-
*/(dr=cr||(cr={}))[dr.NOTHING=0]="NOTHING",dr[dr.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",dr[dr.SHOWING=2]="SHOWING";var Sr,Tr,Dr=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=cr.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=t,o.location=n,o}return _r(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=cr.WAITING_TO_SHOW},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===cr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=cr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===cr.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=cr.NOTHING},t.prototype.destroyTooltipComp=function(){$e.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=cr.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!==cr.SHOWING||this.tooltipInstanceCount!==e)t.destroy&&t.destroy();else{var n=t.getGui();this.tooltipComp=t,$e.containsClass(n,"ag-tooltip")||$e.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)},Or([it("popupService")],t.prototype,"popupService",void 0),Or([it("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Or([it("columnApi")],t.prototype,"columnApi",void 0),Or([it("gridApi")],t.prototype,"gridApi",void 0),Or([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Or([nt],t.prototype,"postConstruct",null),t}(jt),Pr=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)}}(),Ar=function(){return(Ar=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)},Nr=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 Pr(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=$e.get(this.column,"colDef.template",null)?i:$e.escape(i);this.tooltip=this.getToolTip();var a=$e.escape(this.tooltip),l=$e.escape(n.getId()),u="",p="",c=this.preProcessStylesFromColDef(),d=this.getInitialCssClasses(),h=this.getStylesForRowSpanning(),f=$e.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+">",p="</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="'+$e.escape(d.join(" "))+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&$e.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+Number(o)+"px; left: "+Number(r)+"px; "+$e.escape(c)+" "+$e.escape(h)+'" >'),t.push(u),$e.exists(s,!0)&&t.push(s),t.push(p),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(),$e.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.addFeature(new Dr(this,"cell"),this.beans.context)},n.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);$e.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?$e.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(){$e.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))&&!$e.missing(n))&&o===n.getPinned();r++);return t},n.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();$e.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"),$e.pushAll(e,this.preProcessClassesFromColDef()),$e.pushAll(e,this.preProcessCellClassRules()),$e.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();$e.addCssClass(o,t),$e.removeCssClass(o,n),window.setTimeout((function(){$e.removeCssClass(o,t),$e.addCssClass(o,n),window.setTimeout((function(){$e.removeCssClass(o,n)}),1e3)}),500)},n.prototype.replaceContentsAfterRefresh=function(){$e.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=Ar({},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&&$e.addStylesToElement(this.getGui(),e)},n.prototype.preProcessStylesFromColDef=function(){return $e.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 $e.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=$e.escape(n))}},n.prototype.attemptCellRendererRefresh=function(){if($e.missing(this.cellRenderer)||!this.cellRenderer||$e.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=$e.exists(e);t&&this.tooltip===e.toString()||($e.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&&$e.exists(t))return $e.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?$e.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 $e.addCssClass(e.getGui(),t)}),(function(t){return $e.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(),$e.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(!$e.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),$e.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 Er(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(){$e.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;$e.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),$e.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),$e.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),$e.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),$e.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 $e.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 Ve.KEY_ENTER:this.onEnterKeyDown();break;case Ve.KEY_F2:this.onF2KeyDown();break;case Ve.KEY_ESCAPE:this.onEscapeKeyDown();break;case Ve.KEY_TAB:this.onTabKeyDown(e);break;case Ve.KEY_BACKSPACE:case Ve.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case Ve.KEY_DOWN:case Ve.KEY_UP:case Ve.KEY_RIGHT:case Ve.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,Ve.KEY_DOWN,this.cellPosition,!1):this.startRowOrCellEdit(Ve.KEY_ENTER)},n.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,Ve.KEY_DOWN,this.cellPosition,!1)},n.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(Ve.KEY_F2)},n.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},n.prototype.onKeyPress=function(e){if(!($e.getTarget(e)!==this.getGui())&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):$e.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=($e.isBrowserIE()||$e.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 p=t||n;a.setRangeToCell(u,p)}}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 $e.isElementChildOfClass(e,"ag-selection-checkbox",3)},n.prototype.isDoubleClickOnIPad=function(){if(!$e.isIOSUserAgent()||$e.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()!==Ve.PINNED_LEFT?this.column.getPinned()===Ve.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,p=u.rangeController,c=u.columnController;o?(e=c.getDisplayedColAfter(l),t=c.getDisplayedColBefore(l)):(e=c.getDisplayedColBefore(l),t=c.getDisplayedColAfter(l));var d=p.getCellRanges().filter((function(e){return p.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=p.getRangeStartRow(f),v=p.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&&($e.addOrRemoveCssClass(r,"ag-cell-range-selected",0!==o),$e.addOrRemoveCssClass(r,"ag-cell-range-selected-1",1===o),$e.addOrRemoveCssClass(r,"ag-cell-range-selected-2",2===o),$e.addOrRemoveCssClass(r,"ag-cell-range-selected-3",3===o),$e.addOrRemoveCssClass(r,"ag-cell-range-selected-4",o>=4),this.rangeCount=o);var i=this.getHasChartRange();i!==this.hasChartRange&&(this.hasChartRange=i,$e.addOrRemoveCssClass(r,"ag-cell-range-chart",this.hasChartRange)),this.updateRangeBorders(),$e.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 $e.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=$e.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]);$e.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=$e.last(o.getCellRanges()).type,i=t.isEnableFillHandle()&&$e.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(),$e.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();$e.addOrRemoveCssClass(s,"ag-cell-range-top",n),$e.addOrRemoveCssClass(s,"ag-cell-range-right",o),$e.addOrRemoveCssClass(s,"ag-cell-range-bottom",r),$e.addOrRemoveCssClass(s,"ag-cell-range-left",i)},n.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,$e.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},n.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,$e.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 $e.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 $e.doOnce((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var o=new vr(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 Rr(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 Hn;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()&&$e.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($e.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}(Yt),xr=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)}}(),Fr=function(){return(Fr=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)},Ir=function(e){function n(t,n,o,r,i,s,a,l,u,p,c){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=p,d.embedFullWidth=c,d.setAnimateFlags(l),d}return xr(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 $e.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=$e.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=$e.escape(a),u=this.getInitialRowTopStyle(),p=this.rowNode.getRowIndexString(),c=this.beans.gridPanel.headerRootComp.getHeaderRowCount();return n.push("<div"),n.push(' role="row"'),n.push(' row-index="'+p+'" aria-rowindex="'+(c+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=Fr({},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,Ve.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){n.eFullWidthRowLeft=e}),(function(e){n.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,Ve.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=$e.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,Ve.PINNED_LEFT),i=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,Ve.PINNED_RIGHT);return n&&o&&r&&i},n.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,Dn.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,Dn.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,Dn.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addDestroyableEventListener(this.rowNode,Dn.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){$e.removeCssClass(t,"ag-row-highlight-above"),$e.removeCssClass(t,"ag-row-highlight-below"),e&&$e.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 $e.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},n.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return $e.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return $e.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,Ve.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,Ve.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},n.prototype.getContainerForCell=function(e){switch(e){case Ve.PINNED_LEFT:return this.ePinnedLeftRow;case Ve.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 $e.removeFromArray(o,e.getId())})),t.forEach((function(e){return $e.removeFromArray(o,e.getId())})),n.forEach((function(e){return $e.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];$e.missing(n)||(n.detach(),n.destroy(),t.cellComps[e]=null)}))},n.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),n=!0,o=this.cellComps[e];if(!o||this.isCellInWrongRow(o))return n;var r=o.isEditing(),i=this.beans.focusController.isCellFocused(o.getCellPosition());if(r||i){var s=o.getColumn();return!(t.indexOf(s)>=0)&&n}return n},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&&($e.appendHtml(e,o.join("")),this.callAfterRowAttachedOnCells(r,e)),this.elementOrderChanged&&this.beans.gridOptionsWrapper.isEnsureDomOrder()){var i=t.map((function(e){return n.getCellForCol(e)}));$e.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 Nr(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(!$e.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(bt.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){this.lastMouseDownOnDragger=$e.isElementChildOfClass(e.target,"ag-row-drag",3)},n.prototype.onRowClick=function(e){if(!($e.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),p=function(e){if(l.isAlive()){var t=e.getGui();o.appendChild(t),a(e)}else e.destroy&&e.destroy()},c=l.beans.detailRowCompCache.get(l.rowNode,n);if(c)p(c);else{var d=l.beans.userComponentFactory.newFullWidthCellRenderer(u,r,i);if(!d){var h=ft.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(p)}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 $e.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"),$e.pushAll(t,this.processClassesFromGridOptions()),$e.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 $e.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return $e.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 $e.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){$e.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 $e.addCssClass(e,t)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return $e.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return $e.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 $e.cssStyleObjectToMarkup(e)},n.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return $e.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 $e.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 Nr(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 $e.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($e.exists(n.rowNode.rowTop)){var e=n.roundRowTopToBounds(n.rowNode.rowTop);n.setRowTop(e)}else $e.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,Dn.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||$e.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,Dn.EVENT_MOUSE_LEAVE,(function(){$e.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($e.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 $e.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return $e.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&&$e.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&&($e.addOrRemoveCssClass(i,"ag-row-even",n),$e.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}(Yt),Lr=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)}}(),Mr=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},kr=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}var n,o;return Lr(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,kt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===Ve.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(vt.EVENT_LEFT_CHANGED,o),t.addEventListener(vt.EVENT_WIDTH_CHANGED,r),t.addEventListener(vt.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(vt.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(vt.EVENT_LEFT_CHANGED,o),t.removeEventListener(vt.EVENT_WIDTH_CHANGED,r),t.removeEventListener(vt.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(vt.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===Ve.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){$e.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 $e.iterateObject(this.rowCompsByIndex,n),$e.iterateObject(this.floatingBottomRowComps,n),$e.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 Ir(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 $e.missing(e)||$e.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($e.missing(t))return null;var n=document.activeElement,o=this.gridOptionsWrapper.getDomData(n,Nr.DOM_DATA_KEY_CELL_COMP);return $e.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){$e.iterateObject(this.rowCompsByIndex,e),$e.iterateObject(this.floatingTopRowComps,e),$e.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;$e.exists(e)&&(o={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===Ve.PINNED_TOP?o.top[e.id]=!0:e.rowPinned===Ve.PINNED_BOTTOM?o.bottom[e.id]=!0:o.normal[e.id]=!0}))),$e.exists(t)&&(r={},t.forEach((function(e){var t=i.columnController.getGridColumn(e);$e.exists(t)&&(r[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),i=t.id,s=t.rowPinned;if($e.exists(o))if(s===Ve.PINNED_BOTTOM){if(!o.bottom[i])return}else if(s===Ve.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)}))};$e.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=[],$e.iterateObject(this.rowCompsByIndex,(function(e,r){var i=r.getRowNode();$e.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=$e.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 $e.iterateObject(this.rowCompsByIndex,o),$e.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);$e.exists(a)&&(s.push(a),$e.pushAll(i,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),$e.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){$e.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=[];$e.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=[];$e.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),$e.exists(r)&&$e.exists(t)&&t[r.id]&&r.alreadyRendered&&(i=t[r.id],t[r.id]=null)),!i){if(r||(r=this.paginationProxy.getRow(e)),!$e.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=[];$e.iterateObject(e,(function(e,o){o&&(o.destroy(t),$e.pushAll(n,o.getAndClearDelayedDestroyFunctions()))})),$e.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,p=a+o+r+l;this.ensureAllRowsInRangeHaveHeightsCalculated(u,p);var c=this.paginationProxy.getRowIndexAtPixel(u),d=this.paginationProxy.getRowIndexAtPixel(p),h=this.paginationProxy.getPageFirstRow(),f=this.paginationProxy.getPageLastRow();c<h&&(c=h),d>f&&(d=f),e=c,t=d}else e=0,t=-1;var g=this.gridOptionsWrapper.getDomLayout()===Ve.DOM_LAYOUT_NORMAL,v=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),y=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);g&&!v&&t-e>y&&(t=e+y);var m=e!==this.firstRenderedRow,C=t!==this.lastRenderedRow;if(m||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 E={type:bt.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(E)}),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 Ir(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===Ve.KEY_LEFT&&(r=this.getLastCellOfColSpan(r)):t===Ve.KEY_RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(t,r),$e.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($e.exists(l)){var u=l({key:t,previousCellPosition:n,nextCellPosition:r||null,event:e});$e.exists(u)?(u.floating&&($e.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 p=this.getComponentForCell(r);p&&(r=p.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:$e.last(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){$e.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 Ve.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case Ve.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 Ve.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Ve.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($e.missing(t))return!1;var n=this.getComponentForCell(t);return!$e.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=$e.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=$e.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=$e.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($e.exists(r)){var i=r({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});$e.exists(i)?(i.floating&&($e.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}$e.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(!$e.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(o),a}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===Ve.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===Ve.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},Mr([it("paginationProxy")],t.prototype,"paginationProxy",void 0),Mr([it("columnController")],t.prototype,"columnController",void 0),Mr([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Mr([it("$scope")],t.prototype,"$scope",void 0),Mr([it("eventService")],t.prototype,"eventService",void 0),Mr([it("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Mr([it("rowModel")],t.prototype,"rowModel",void 0),Mr([it("loggerFactory")],t.prototype,"loggerFactory",void 0),Mr([it("focusController")],t.prototype,"focusController",void 0),Mr([it("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Mr([it("columnApi")],t.prototype,"columnApi",void 0),Mr([it("gridApi")],t.prototype,"gridApi",void 0),Mr([it("beans")],t.prototype,"beans",void 0),Mr([it("maxDivHeightScaler")],t.prototype,"maxDivHeightScaler",void 0),Mr([it("animationFrameService")],t.prototype,"animationFrameService",void 0),Mr([it("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Mr([st("rangeController")],t.prototype,"rangeController",void 0),Mr([(n=0,o=lt("loggerFactory"),function(e,t){o(e,t,n)})],t.prototype,"agWire",null),t=Mr([rt("rowRenderer")],t)}(jt),Gr=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,n,o,r){$e.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,n,o,r)},e.addToolPanelClassesFromColDef=function(e,t,n,o,r){$e.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o,r)},e.addColumnClassesFromCollDef=function(e,t,n,o,r,i){if(!$e.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?$e.addCssClass(n,s):Array.isArray(s)&&s.forEach((function(e){$e.addCssClass(n,e)}))}},e}(),Vr=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)}}(),Wr=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},Hr=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return Vr(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)},Wr([it("columnHoverService")],t.prototype,"columnHoverService",void 0),Wr([nt],t.prototype,"postConstruct",null),t}(jt),Br=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)}}(),jr=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()===Ve.DOM_LAYOUT_PRINT,i}return Br(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?$e.last(this.colsSpanning):this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,vt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=$e.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()===Ve.PINNED_LEFT?t:e.getPinned()===Ve.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){if($e.exists(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof vt){var t=this.beans.columnController.getAllDisplayedColumns().indexOf(this.columnOrGroup);this.ariaEl.setAttribute("aria-colindex",(t+1).toString())}else this.ariaEl.removeAttribute("aria-colindex")},t}(jt),Ur=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,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},Yr=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 Ur(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,Gn.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===Ve.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))},zr([it("gridApi")],t.prototype,"gridApi",void 0),zr([it("columnApi")],t.prototype,"columnApi",void 0),zr([it("eventService")],t.prototype,"eventService",void 0),zr([it("rowModel")],t.prototype,"rowModel",void 0),zr([it("selectionController")],t.prototype,"selectionController",void 0),zr([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),zr([nt],t.prototype,"postConstruct",null),t}(jt),Kr=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},$r=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 Kr(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 Hr([this.column],this.getGui())),this.addDestroyableEventListener(this.column,vt.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(new Yr(this.cbSelectAll,this.column));var r=new jr(this.column,this.getGui(),this.beans);r.init(),this.addDestroyFunc(r.destroy.bind(r)),this.addAttributes(),Gr.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);$e.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();$e.addCssClass(t,"ag-header-cell-sortable")}},n.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();$e.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()?$e.addCssClass(this.getGui(),"ag-header-cell-moving"):$e.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:hr.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 wn(this.eResize);this.addDestroyableEventListener(i,wn.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")})),this.addDestroyFunc(i.destroy.bind(i))}}else $e.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&&$e.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,$e.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 Dr(this,"header")))},n.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,vt.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,vt.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,vt.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!==Ve.PINNED_LEFT&&(t*=-1):this.pinned===Ve.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>',qr([it("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),qr([it("dragAndDropService")],n.prototype,"dragAndDropService",void 0),qr([it("columnController")],n.prototype,"columnController",void 0),qr([it("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),qr([it("menuFactory")],n.prototype,"menuFactory",void 0),qr([it("gridApi")],n.prototype,"gridApi",void 0),qr([it("columnApi")],n.prototype,"columnApi",void 0),qr([it("sortController")],n.prototype,"sortController",void 0),qr([it("eventService")],n.prototype,"eventService",void 0),qr([it("userComponentFactory")],n.prototype,"userComponentFactory",void 0),qr([it("columnHoverService")],n.prototype,"columnHoverService",void 0),qr([it("beans")],n.prototype,"beans",void 0),qr([$t("eResize")],n.prototype,"eResize",void 0),qr([$t("cbSelectAll")],n.prototype,"cbSelectAll",void 0),qr([nt],n.prototype,"init",null),n}(Yt),Qr=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)}}(),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},Jr=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 Qr(n,e),n.prototype.postConstruct=function(){Gr.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 Hr(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new jr(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,vt.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 Dr(this,"headerGroup")))},n.prototype.onColumnMovingChanged=function(){$e.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:hr.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),$e.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,yt.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(vt.EVENT_WIDTH_CHANGED,t),n.addEventListener(vt.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){n.removeEventListener(vt.EVENT_WIDTH_CHANGED,t),n.removeEventListener(vt.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 $e.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;$e.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&&$e.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==Ve.PINNED_LEFT&&(t*=-1):this.pinned===Ve.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>',Xr([it("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Xr([it("columnController")],n.prototype,"columnController",void 0),Xr([it("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Xr([it("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Xr([it("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Xr([it("gridApi")],n.prototype,"gridApi",void 0),Xr([it("columnApi")],n.prototype,"columnApi",void 0),Xr([it("beans")],n.prototype,"beans",void 0),Xr([nt],n.prototype,"postConstruct",null),n}(Yt),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)}}(),ei=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 Zr(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("")},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);i>3&&s&&Object.defineProperty(t,n,s)}([$t("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),t}(Yt),ti=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)}}(),ni=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},oi=function(e){function n(t){var o=e.call(this,n.TEMPLATE)||this;return o.column=t,o}return ti(n,e),n.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(new Hr([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 jr(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,vt.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(){N(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,vt.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();N(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),N(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),F(this.eButtonWrapper,!this.suppressFilterButton);var o=ke("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=ft.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(ei,s);a=Xe.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(){F(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>',ni([it("columnHoverService")],n.prototype,"columnHoverService",void 0),ni([it("eventService")],n.prototype,"eventService",void 0),ni([it("beans")],n.prototype,"beans",void 0),ni([it("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ni([it("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ni([it("gridApi")],n.prototype,"gridApi",void 0),ni([it("columnApi")],n.prototype,"columnApi",void 0),ni([it("filterManager")],n.prototype,"filterManager",void 0),ni([it("menuFactory")],n.prototype,"menuFactory",void 0),ni([$t("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),ni([$t("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),ni([$t("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),ni([nt],n.prototype,"postConstruct",null),n}(Yt),ri=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)}}(),ii=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};
|
|
254
|
-
/**
|
|
255
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
256
|
-
* @version v23.1.1
|
|
257
|
-
* @link http://www.ag-grid.com/
|
|
258
|
-
* @license MIT
|
|
259
|
-
*/(Tr=Sr||(Sr={}))[Tr.COLUMN_GROUP=0]="COLUMN_GROUP",Tr[Tr.COLUMN=1]="COLUMN",Tr[Tr.FLOATING_FILTER=2]="FLOATING_FILTER";var si,ai,li=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=Sr[n].toLowerCase().replace(/_/g,"-");return i.addCssClass("ag-header-row-"+s),f()&&(i.getGui().style.transform="translateZ(0)"),i}return ri(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,kt.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.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()===Ve.DOM_LAYOUT_PRINT?w(this.pinned)?this.columnController.getContainerWidth(Ve.PINNED_RIGHT)+this.columnController.getContainerWidth(Ve.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()===Ve.DOM_LAYOUT_PRINT){if(w(this.pinned)){var t=[];return[Ve.PINNED_LEFT,null,Ve.PINNED_RIGHT].forEach((function(n){var o=e.columnController.getVirtualHeaderGroupRow(n,e.type==Sr.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(o)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==Sr.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?te(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()}));G(this.getGui(),o)}},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case Sr.COLUMN:t=new $r(e,this.dropTarget,this.pinned);break;case Sr.COLUMN_GROUP:t=new Jr(e,this.dropTarget,this.pinned);break;case Sr.FLOATING_FILTER:t=new oi(e)}return this.getContext().wireBean(t),t},ii([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ii([it("columnController")],t.prototype,"columnController",void 0),ii([it("eventService")],t.prototype,"eventService",void 0),ii([nt],t.prototype,"init",null),t}(Yt),ui=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(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!$e.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?hr.ICON_PINNED:hr.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,!$e.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=$e.sortNumerically(e.map((function(e){return t.indexOf(e)}))),o=n[0];return $e.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 p=l[0],c=null!==u&&!i;if(e==t.DragSourceType.HeaderCell&&(c=null!==u),c){if(s&&p>=u)return;if(a&&p<=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 $e.includes(e,t)})),a=r.filter((function(t){return!$e.includes(e,t)})),l=i.filter((function(t){return!$e.includes(e,t)})),u=0,p=n;if(t){var c=0;s.forEach((function(e){return c+=e.getActualWidth()})),p-=c}if(p>0){for(var d=0;d<a.length;d++){if((p-=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 y=i[g];g<=v&&this.isColumnHidden(r,y);)g++,f.push(g),y=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(hr.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(hr.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(hr.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(hr.ICON_PINNED),this.failedMoveAttempts>7)){var o=this.needToMoveLeft?Ve.PINNED_LEFT:Ve.PINNED_RIGHT;this.setColumnsPinned(n,o,"uiColumnDragged"),this.dragAndDropService.nudge()}}},ui([it("loggerFactory")],e.prototype,"loggerFactory",void 0),ui([it("columnController")],e.prototype,"columnController",void 0),ui([it("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ui([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ui([nt],e.prototype,"init",null),e}(),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},di=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?hr.ICON_PINNED:hr.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")},ci([it("columnController")],e.prototype,"columnController",void 0),ci([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),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};
|
|
260
|
-
/**
|
|
261
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
262
|
-
* @version v23.1.1
|
|
263
|
-
* @link http://www.ag-grid.com/
|
|
264
|
-
* @license MIT
|
|
265
|
-
*/(ai=si||(si={}))[ai.ColumnMove=0]="ColumnMove",ai[ai.Pivot=1]="Pivot";var fi,gi,vi=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 Ve.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case Ve.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 pi(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new di(this.pinned);this.context.wireBean(e),this.dropListeners[si.ColumnMove]=this.moveColumnController,this.dropListeners[si.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?si.Pivot:si.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)},hi([it("context")],e.prototype,"context",void 0),hi([it("dragAndDropService")],e.prototype,"dragAndDropService",void 0),hi([it("columnController")],e.prototype,"columnController",void 0),hi([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),hi([nt],e.prototype,"init",null),e}(),yi=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,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===Ve.PINNED_LEFT,t=this.pinned===Ve.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),V(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 vi(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,L(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var n=t!==e-1?Sr.COLUMN_GROUP:Sr.COLUMN,o=new li(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 li(e,Sr.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())}},yi([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),yi([it("context")],e.prototype,"context",void 0),yi([it("columnController")],e.prototype,"columnController",void 0),yi([it("eventService")],e.prototype,"eventService",void 0),yi([it("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),yi([nt],e.prototype,"init",null),yi([ot],e.prototype,"destroy",null),e}(),Ci=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)}}(),wi=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(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ci(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()===Ve.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new mi(this.eHeaderContainer,this.eHeaderViewport,null),n=new mi(this.ePinnedLeftHeader,null,Ve.PINNED_LEFT),o=new mi(this.ePinnedRightHeader,null,Ve.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,kt.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()===Ve.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();N(this.getGui(),"ag-pivot-on",e),N(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){F(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){F(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>',wi([$t("ePinnedLeftHeader")],t.prototype,"ePinnedLeftHeader",void 0),wi([$t("ePinnedRightHeader")],t.prototype,"ePinnedRightHeader",void 0),wi([$t("eHeaderContainer")],t.prototype,"eHeaderContainer",void 0),wi([$t("eHeaderViewport")],t.prototype,"eHeaderViewport",void 0),wi([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),wi([it("columnController")],t.prototype,"columnController",void 0),wi([it("eventService")],t.prototype,"eventService",void 0),wi([it("gridApi")],t.prototype,"gridApi",void 0),wi([it("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),wi([nt],t.prototype,"postConstruct",null),t}(Yt),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},Ri=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=$e.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)}));Xe.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();$e.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 $e.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&&$e.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 $e.some(o,(function(o){var r=n.getQuickFilterTextForColumn(o,e);return $e.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 $e.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 $e.exists(n)?n.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var t=this,o=[];se(this.columnController.getAllColumnsForQuickFilter(),(function(n){var r=t.getQuickFilterTextForColumn(n,e);$e.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=ft.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",s=$e.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 $e.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:Xe.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 Xe((function(r){e.filterPromise.then((function(i){var s=i.getGui();if($e.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=$e.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",bi([it("$compile")],e.prototype,"$compile",void 0),bi([it("$scope")],e.prototype,"$scope",void 0),bi([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),bi([it("valueService")],e.prototype,"valueService",void 0),bi([it("columnController")],e.prototype,"columnController",void 0),bi([it("rowModel")],e.prototype,"rowModel",void 0),bi([it("eventService")],e.prototype,"eventService",void 0),bi([it("columnApi")],e.prototype,"columnApi",void 0),bi([it("gridApi")],e.prototype,"gridApi",void 0),bi([it("userComponentFactory")],e.prototype,"userComponentFactory",void 0),bi([nt],e.prototype,"init",null),bi([ot],e.prototype,"destroy",null),e=n=bi([rt("filterManager")],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},Oi=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],p=!o&&t.aggData&&void 0!==t.aggData[a];if(n&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&p?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=$e.getValueUsingField(l,s,e.isFieldContainsDots()):u?r=t.groupData[a]:p?r=t.aggData[a]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(r=$e.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var c=r.substring(1);r=this.executeValueGetter(c,l,e,t)}return r}},e.prototype.setValue=function(e,t,n,o){var r=this.columnController.getPrimaryColumn(t);if(e&&r){$e.missing(e.data)&&(e.data={});var i=r.getColDef(),s=i.field,a=i.newValueHandler,l=i.valueSetter;if($e.missing(s)&&$e.missing(a)&&$e.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,p={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(p.newValue=n,void 0===(u=a&&$e.exists(a)?a(p):$e.exists(l)?this.expressionService.evaluate(l,p):this.setValueUsingField(e.data,s,n,r.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),p.newValue=this.getValue(r,e);var c=r.getColDef().onCellValueChanged;"function"==typeof c&&setTimeout((function(){return c(p)}),0);var d={type:bt.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:p.column,api:p.api,colDef:p.colDef,columnApi:p.columnApi,context:p.context,data:e.data,node:e,oldValue:p.oldValue,newValue:p.newValue,value:p.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))&&$e.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},_i([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_i([it("expressionService")],e.prototype,"expressionService",void 0),_i([it("columnController")],e.prototype,"columnController",void 0),_i([it("eventService")],e.prototype,"eventService",void 0),_i([it("valueCache")],e.prototype,"valueCache",void 0),_i([nt],e.prototype,"init",null),e=_i([rt("valueService")],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){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(kt.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("");$e.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=$e.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&&($e.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(),$e.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},Si([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Si([nt],e.prototype,"postConstruct",null),e}(),Di=function(){return(Di=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)},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},Ai=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},Ni=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=!$e.missingOrEmpty(e)},e.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},e.prototype.onRowGroupChanged=function(){var e=this.columnController.getRowGroupColumns();this.isRowGroupActive=!$e.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()?hr.ICON_NOT_ALLOWED:hr.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,Ai(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=Ai(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(Z(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(Di({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return hr.ICON_MOVE},external:!0},o))}else $e.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)}))},Pi([it("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Pi([it("rowModel")],e.prototype,"rowModel",void 0),Pi([it("columnController")],e.prototype,"columnController",void 0),Pi([it("focusController")],e.prototype,"focusController",void 0),Pi([it("sortController")],e.prototype,"sortController",void 0),Pi([it("filterManager")],e.prototype,"filterManager",void 0),Pi([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Pi([it("selectionController")],e.prototype,"selectionController",void 0),Pi([st("rangeController")],e.prototype,"rangeController",void 0),Pi([it("mouseEventService")],e.prototype,"mouseEventService",void 0),Pi([it("eventService")],e.prototype,"eventService",void 0),Pi([nt],e.prototype,"postConstruct",null),Pi([ot],e.prototype,"destroy",null),e}(),xi=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)}}(),Fi=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(){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=$e.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return xi(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()===Ve.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(){$e.addCssClass(t,"ag-has-focus")})),e.addDestroyableEventListener(t,"focusout",(function(e){t.contains(e.relatedTarget)||$e.removeCssClass(t,"ag-has-focus")}))}))},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===Ve.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},n.prototype.onCenterViewportResized=function(){$e.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 $e.addOrRemoveCssClass(t,"ag-selectable",e)}))},n.prototype.addRowDragListener=function(){var e=new Ni(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;$e.exists(o)&&!n;){var r=!!e.gridOptionsWrapper.getDomData(o,Er.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,kt.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,kt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},n.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!$e.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=$e.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=$e.getTarget(e);t;){var n=this.gridOptionsWrapper.getDomData(t,Ir.DOM_DATA_KEY_RENDERED_ROW);if(n)return n;t=t.parentElement}return null},n.prototype.processKeyboardEvent=function(e,t){var n=$e.getCellCompForEvent(this.gridOptionsWrapper,t);if(n){var o=n.getRenderedRow().getRowNode(),r=n.getColumn(),i=n.isEditing();if(!$e.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 Ve.KEY_A:return this.onCtrlAndA(e);case Ve.KEY_C:return this.onCtrlAndC(e);case Ve.KEY_V:return this.onCtrlAndV();case Ve.KEY_D:return this.onCtrlAndD(e);case Ve.KEY_Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case Ve.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)&&!$e.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;$e.isIOSUserAgent()&&this.eAllCellContainers.forEach((function(t){var n=new wn(t);e.addDestroyableEventListener(n,wn.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,n=t.columnController,o=t.pinnedRowModel,r=t.paginationProxy,i=t.rangeController,s=Ve.PINNED_BOTTOM,a=Ve.PINNED_TOP;if(i&&r.isRowsToRender()){var l=[o.isEmpty(a),o.isEmpty(s)],u=l[0]?null:a,p=void 0,c=void 0;l[1]?(p=null,c=this.paginationProxy.getRowCount()-1):(p=s,c=o.getPinnedBottomRowData().length-1);var d=n.getAllDisplayedColumns();if($e.missingOrEmpty(d))return;i.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:c,rowEndPinned:p,columnStart:d[0],columnEnd:$e.last(d)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){ft.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){ft.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,p=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=p.top+c,h=p.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),v=this.heightScaler.getScrollPositionForPixel(u-f),y=Math.min((g+v)/2,l),m=null;"top"===t?m=g:"bottom"===t?m=v:"middle"===t?m=y:d>l?m=g:h<u&&(m=v),null!==m&&(this.eBodyViewport.scrollTop=m,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 $e.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||$e.isVerticalScrollShowing(this.eBodyViewport)},n.prototype.isHorizontalScrollShowing=function(){return $e.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=$e.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+n+"px)",$e.setFixedHeight(this.eHorizontalScrollBody,o),$e.setFixedHeight(this.eBodyHorizontalScrollViewport,o+(r?1:0)),$e.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,p=o<i,c=s<t.getActualWidth(),d=u||c,h=p,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 Ti({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new Ti({eContainer:this.eFullWidthContainer}),pinnedLeft:new Ti({eContainer:this.eLeftContainer}),pinnedRight:new Ti({eContainer:this.eRightContainer}),floatingTop:new Ti({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new Ti({eContainer:this.eLeftTop}),floatingTopPinnedRight:new Ti({eContainer:this.eRightTop}),floatingTopFullWidth:new Ti({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new Ti({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new Ti({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new Ti({eContainer:this.eRightBottom}),floatingBottomFullWidth:new Ti({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},$e.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();$e.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),$e.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 $e.setDisplayed(t,e.pinningLeft)})),o&&r.forEach((function(e){return $e.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 $e.setDisplayed(e,n)})),n&&o.forEach((function(e){return $e.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),$e.setFixedWidth(this.eHorizontalRightSpacer,e),$e.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),$e.setFixedWidth(this.eHorizontalLeftSpacer,t),$e.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,p=r.getHeaderRowCount();r.isPivotMode()?(t=i.getPivotGroupHeaderHeight(),n=i.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(p++,u=1),t=i.getGroupHeaderHeight(),n=i.getHeaderHeight());var c=p-(1+u);e=u*i.getFloatingFiltersHeight(),e+=c*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($e.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 $e.getScrollLeft(this.eCenterViewport,this.enableRtl)},n.prototype.setCenterViewportScrollLeft=function(e){$e.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;$e.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)},Fi([it("alignedGridsService")],n.prototype,"alignedGridsService",void 0),Fi([it("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Fi([it("columnController")],n.prototype,"columnController",void 0),Fi([it("rowRenderer")],n.prototype,"rowRenderer",void 0),Fi([it("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Fi([it("eventService")],n.prototype,"eventService",void 0),Fi([it("animationFrameService")],n.prototype,"animationFrameService",void 0),Fi([it("navigationService")],n.prototype,"navigationService",void 0),Fi([it("autoHeightCalculator")],n.prototype,"autoHeightCalculator",void 0),Fi([it("columnAnimationService")],n.prototype,"columnAnimationService",void 0),Fi([it("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),Fi([it("paginationAutoPageSizeService")],n.prototype,"paginationAutoPageSizeService",void 0),Fi([it("beans")],n.prototype,"beans",void 0),Fi([it("paginationProxy")],n.prototype,"paginationProxy",void 0),Fi([it("columnApi")],n.prototype,"columnApi",void 0),Fi([it("gridApi")],n.prototype,"gridApi",void 0),Fi([it("dragService")],n.prototype,"dragService",void 0),Fi([it("mouseEventService")],n.prototype,"mouseEventService",void 0),Fi([it("$scope")],n.prototype,"$scope",void 0),Fi([it("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Fi([it("valueService")],n.prototype,"valueService",void 0),Fi([it("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Fi([it("maxDivHeightScaler")],n.prototype,"heightScaler",void 0),Fi([it("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Fi([it("undoRedoService")],n.prototype,"undoRedoService",void 0),Fi([st("rangeController")],n.prototype,"rangeController",void 0),Fi([st("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Fi([st("clipboardService")],n.prototype,"clipboardService",void 0),Fi([$t("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Fi([$t("eCenterContainer")],n.prototype,"eCenterContainer",void 0),Fi([$t("eCenterViewport")],n.prototype,"eCenterViewport",void 0),Fi([$t("eLeftContainer")],n.prototype,"eLeftContainer",void 0),Fi([$t("eRightContainer")],n.prototype,"eRightContainer",void 0),Fi([$t("eCenterColsClipper")],n.prototype,"eCenterColsClipper",void 0),Fi([$t("eHorizontalScrollBody")],n.prototype,"eHorizontalScrollBody",void 0),Fi([$t("eHorizontalLeftSpacer")],n.prototype,"eHorizontalLeftSpacer",void 0),Fi([$t("eHorizontalRightSpacer")],n.prototype,"eHorizontalRightSpacer",void 0),Fi([$t("eBodyHorizontalScrollViewport")],n.prototype,"eBodyHorizontalScrollViewport",void 0),Fi([$t("eBodyHorizontalScrollContainer")],n.prototype,"eBodyHorizontalScrollContainer",void 0),Fi([$t("eFullWidthContainer")],n.prototype,"eFullWidthContainer",void 0),Fi([$t("eTop")],n.prototype,"eTop",void 0),Fi([$t("eLeftTop")],n.prototype,"eLeftTop",void 0),Fi([$t("eRightTop")],n.prototype,"eRightTop",void 0),Fi([$t("eTopContainer")],n.prototype,"eTopContainer",void 0),Fi([$t("eTopViewport")],n.prototype,"eTopViewport",void 0),Fi([$t("eTopFullWidthContainer")],n.prototype,"eTopFullWidthContainer",void 0),Fi([$t("eBottom")],n.prototype,"eBottom",void 0),Fi([$t("eLeftBottom")],n.prototype,"eLeftBottom",void 0),Fi([$t("eRightBottom")],n.prototype,"eRightBottom",void 0),Fi([$t("eBottomContainer")],n.prototype,"eBottomContainer",void 0),Fi([$t("eBottomViewport")],n.prototype,"eBottomViewport",void 0),Fi([$t("eBottomFullWidthContainer")],n.prototype,"eBottomFullWidthContainer",void 0),Fi([$t("headerRoot")],n.prototype,"headerRootComp",void 0),Fi([$t("overlayWrapper")],n.prototype,"overlayWrapper",void 0),Fi([nt],n.prototype,"init",null),n}(Yt),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(){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 Ve.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case Ve.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case Ve.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;$e.iterateObject(this.detailGridInfoMap,(function(n,o){$e.exists(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(ft.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){ft.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){if(ft.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){ft.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 '"+Ve.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 '"+Ve.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 '"+Ve.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){$e.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),$e.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:Ve.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){$e.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=Ve.STEP_EVERYTHING,n={group:Ve.STEP_EVERYTHING,filter:Ve.STEP_FILTER,map:Ve.STEP_MAP,aggregate:Ve.STEP_AGGREGATE,sort:Ve.STEP_SORT,pivot:Ve.STEP_PIVOT};if($e.exists(e)&&(t=n[e]),$e.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(){$e.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){$e.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(){$e.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:Ve.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){$e.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){$e.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){$e.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(kt.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(kt.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(kt.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(kt.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(kt.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(kt.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(kt.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(kt.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(kt.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(kt.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){$e.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(kt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(kt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){$e.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnController.getPrimaryColumn(e);return $e.missing(n)&&(n=this.columnController.getGridColumn(e)),$e.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 $e.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(ft.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&ft.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.createRangeChart=function(e){if(ft.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&ft.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createPivotChart=function(e){if(ft.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&ft.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(kt.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};$e.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){$e.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){$e.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 $e.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){$e.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)},Li([st("immutableService")],e.prototype,"immutableService",void 0),Li([st("csvCreator")],e.prototype,"csvCreator",void 0),Li([st("excelCreator")],e.prototype,"excelCreator",void 0),Li([it("rowRenderer")],e.prototype,"rowRenderer",void 0),Li([it("filterManager")],e.prototype,"filterManager",void 0),Li([it("columnController")],e.prototype,"columnController",void 0),Li([it("selectionController")],e.prototype,"selectionController",void 0),Li([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Li([it("valueService")],e.prototype,"valueService",void 0),Li([it("alignedGridsService")],e.prototype,"alignedGridsService",void 0),Li([it("eventService")],e.prototype,"eventService",void 0),Li([it("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Li([it("context")],e.prototype,"context",void 0),Li([it("rowModel")],e.prototype,"rowModel",void 0),Li([it("sortController")],e.prototype,"sortController",void 0),Li([it("paginationProxy")],e.prototype,"paginationProxy",void 0),Li([it("focusController")],e.prototype,"focusController",void 0),Li([it("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Li([st("rangeController")],e.prototype,"rangeController",void 0),Li([st("clipboardService")],e.prototype,"clipboardService",void 0),Li([st("aggFuncService")],e.prototype,"aggFuncService",void 0),Li([it("menuFactory")],e.prototype,"menuFactory",void 0),Li([st("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Li([it("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),Li([it("valueCache")],e.prototype,"valueCache",void 0),Li([it("animationFrameService")],e.prototype,"animationFrameService",void 0),Li([st("statusBarService")],e.prototype,"statusBarService",void 0),Li([st("chartService")],e.prototype,"chartService",void 0),Li([st("undoRedoService")],e.prototype,"undoRedoService",void 0),Li([nt],e.prototype,"init",null),e=Li([rt("gridApi")],e)}(),ki=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},Gi=function(){function e(){this.expressionToFunctionCache={}}var t,n;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+";"},ki([(t=0,n=lt("loggerFactory"),function(e,o){n(e,o,t)})],e.prototype,"setBeans",null),e=ki([rt("expressionService")],e)}(),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},Wi=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)},Vi([it("$scope")],e.prototype,"$scope",void 0),e=Vi([rt("templateService")],e)}(),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(){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){$e.addCssClass(e.element,"ag-keyboard-focus")}))})),this.eventService.addEventListener(bt.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){$e.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=$e.getAbsoluteHeight(e.ePopup)-l);var p=a?$e.getAbsoluteHeight(o)+o.scrollTop:i.height;a&&(p-=Math.abs(s.top-i.top));var c=p-l-u;return Math.min(Math.max(t,0),Math.abs(c))},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),p=0;e.minWidth&&e.minWidth<u?u=e.minWidth:l.offsetWidth>0&&(u=l.offsetWidth,l.style.minWidth=u+"px",p=$e.getAbsoluteWidth(l)-u);var c=a?$e.getAbsoluteWidth(o)+o.scrollLeft:i.width;a&&(c-=Math.abs(s.left-i.left));var d=c-u-p;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();if((new Date).getTime(),!a)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var l=$e.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 p=document.createElement("div"),c=this.environment.getTheme().theme;c&&$e.addCssClass(p,c),$e.addCssClass(p,"ag-popup"),$e.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),$e.addCssClass(t,"ag-popup-child"),p.appendChild(t),u.appendChild(p),i?this.setAlwaysOnTop(p,!0):this.bringPopupToFront(p);var d=!1,h=function(e){(e.which||e.keyCode)===Ve.KEY_ESCAPE&&p.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(p),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=$e.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($e.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(;!$e.containsClass(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return $e.containsClass(e,"ag-popup")?e:null},e.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&($e.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)$e.containsClass(s,"ag-always-on-top")?a!==o-1&&$e.last(r).insertAdjacentElement("afterend",s):a!==o-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==o-1&&$e.last(n).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},Hi([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Hi([it("environment")],e.prototype,"environment",void 0),Hi([it("eventService")],e.prototype,"eventService",void 0),Hi([nt],e.prototype,"init",null),Hi([ot],e.prototype,"destroy",null),e=Hi([rt("popupService")],e)}(),ji=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(){}var t,n;return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new zi(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},ji([(t=0,n=lt("gridOptionsWrapper"),function(e,o){n(e,o,t)})],e.prototype,"setBeans",null),e=ji([rt("loggerFactory")],e)}(),zi=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}(),Yi=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},Ki=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 $r){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");$e.containsClass(n,"ag-header-cell")&&($e.addCssClass(o,"ag-header"),$e.addCssClass(o,"ag-header-row"),o.style.position="static"),o.style.display="table-row",o.appendChild(n),t.appendChild(o)},Yi([it("rowRenderer")],e.prototype,"rowRenderer",void 0),Yi([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Yi([rt("autoWidthCalculator")],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},$i=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)},qi([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),qi([it("dragService")],e.prototype,"dragService",void 0),qi([it("eGridDiv")],e.prototype,"eGridDiv",void 0),e=qi([rt("horizontalResizeService")],e)}(),Qi=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)}}(),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(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Qi(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)})),ft.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(){$e.addCssClass(i,"ag-keyboard-focus")})),this.addDestroyableEventListener(this.eventService,bt.EVENT_MOUSE_FOCUS,(function(){$e.removeCssClass(i,"ag-keyboard-focus")}))},n.prototype.createTemplate=function(){var e=ft.isRegistered(t.ModuleNames.SideBarModule),n=ft.isRegistered(t.ModuleNames.StatusBarModule);return'<div class="ag-root-wrapper">\n '+(ft.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 "+(ft.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";$e.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=xt.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)},Xi([it("gridOptions")],n.prototype,"gridOptions",void 0),Xi([it("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Xi([it("rowModel")],n.prototype,"rowModel",void 0),Xi([it("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Xi([it("columnController")],n.prototype,"columnController",void 0),Xi([it("rowRenderer")],n.prototype,"rowRenderer",void 0),Xi([it("filterManager")],n.prototype,"filterManager",void 0),Xi([it("eventService")],n.prototype,"eventService",void 0),Xi([it("eGridDiv")],n.prototype,"eGridDiv",void 0),Xi([it("$scope")],n.prototype,"$scope",void 0),Xi([it("quickFilterOnScope")],n.prototype,"quickFilterOnScope",void 0),Xi([it("popupService")],n.prototype,"popupService",void 0),Xi([it("focusController")],n.prototype,"focusController",void 0),Xi([it("loggerFactory")],n.prototype,"loggerFactory",void 0),Xi([it("columnApi")],n.prototype,"columnApi",void 0),Xi([it("gridApi")],n.prototype,"gridApi",void 0),Xi([it("environment")],n.prototype,"environment",void 0),Xi([st("clipboardService")],n.prototype,"clipboardService",void 0),Xi([$t("gridPanel")],n.prototype,"gridPanel",void 0),Xi([$t("sideBar")],n.prototype,"sideBarComp",void 0),Xi([$t("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Xi([nt],n.prototype,"init",null),n}(Yt),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(){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");$e.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()},Zi([it("eventService")],e.prototype,"eventService",void 0),Zi([it("filterManager")],e.prototype,"filterManager",void 0),Zi([it("popupService")],e.prototype,"popupService",void 0),e=Zi([rt("menuFactory")],e)}(),ts=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(){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=$e.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),$e.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");$e.exists(t)&&$e.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=$e.exists(n)?n:4;return $e.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},ts([it("loggerFactory")],e.prototype,"loggerFactory",void 0),ts([it("eventService")],e.prototype,"eventService",void 0),ts([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ts([it("columnApi")],e.prototype,"columnApi",void 0),ts([it("gridApi")],e.prototype,"gridApi",void 0),ts([nt],e.prototype,"init",null),ts([ot],e.prototype,"destroy",null),e=ts([rt("dragService")],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(){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!==Ve.SORT_ASC&&t!==Ve.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()===Ve.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[Ve.SORT_ASC,Ve.SORT_DESC,null],os([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),os([it("columnController")],e.prototype,"columnController",void 0),os([it("eventService")],e.prototype,"eventService",void 0),os([it("columnApi")],e.prototype,"columnApi",void 0),os([it("gridApi")],e.prototype,"gridApi",void 0),e=t=os([rt("sortController")],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(){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,Nr.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=$e.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:$e.makeNull(n),column:r},this.onCellFocused(o)},e.prototype.isCellFocused=function(e){return!$e.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($e.missing(this.focusedCellPosition))return!1;var n=$e.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;return function(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}(o,r)},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)},is([it("eventService")],e.prototype,"eventService",void 0),is([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),is([it("columnController")],e.prototype,"columnController",void 0),is([it("columnApi")],e.prototype,"columnApi",void 0),is([it("gridApi")],e.prototype,"gridApi",void 0),is([nt],e.prototype,"init",null),is([ot],e.prototype,"destroy",null),e=is([rt("focusController")],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},ls=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 $e.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var n=$e.getEventPath(e),o=0;o<n.length;o++){var r=n[o][t.GRID_DOM_KEY];if($e.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()===Ve.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 Qe,e.GRID_DOM_KEY="__ag_grid_instance",as([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),as([it("eGridDiv")],e.prototype,"eGridDiv",void 0),as([nt],e.prototype,"init",null),e=t=as([rt("mouseEventService")],e)}(),us=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.getNextCellToFocus=function(e,t){for(var n=t,o=!1;!o;){switch(e){case Ve.KEY_UP:n=this.getCellAbove(n);break;case Ve.KEY_DOWN:n=this.getCellBelow(n);break;case Ve.KEY_RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case Ve.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 Ve.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case Ve.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 Ve.PINNED_BOTTOM:return null;case Ve.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(Ve.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Ve.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(Ve.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Ve.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===Ve.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===Ve.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===Ve.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(Ve.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:Ve.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($e.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=$e.last(t);var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if($e.missing(i))return null;n=i?i.rowIndex:null,o=i?i.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},us([it("columnController")],e.prototype,"columnController",void 0),us([it("rowModel")],e.prototype,"rowModel",void 0),us([it("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),us([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=us([rt("cellNavigationService")],e)}(),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},ds=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=fo,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=co,this.cellRendererMap[t.GROUP]=uo},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return $e.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",cs([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),cs([it("expressionService")],e.prototype,"expressionService",void 0),cs([it("eventService")],e.prototype,"eventService",void 0),cs([nt],e.prototype,"init",null),e=t=cs([rt("cellRendererFactory")],e)}(),hs=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},fs=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},hs([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),hs([it("expressionService")],e.prototype,"expressionService",void 0),e=hs([rt("valueFormatterService")],e)}(),gs=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)}}(),vs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.inputType="radio",t}return gs(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}(Gn),ys=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}(),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},Cs=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},ms([it("eventService")],e.prototype,"eventService",void 0),ms([it("columnController")],e.prototype,"columnController",void 0),ms([it("columnApi")],e.prototype,"columnApi",void 0),ms([it("gridApi")],e.prototype,"gridApi",void 0),ms([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=ms([rt("scrollVisibleService")],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},Es=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)}))}},ws([it("expressionService")],e.prototype,"expressionService",void 0),e=ws([rt("stylingService")],e)}(),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)}}(),Rs=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(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bs(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},Rs([it("eventService")],t.prototype,"eventService",void 0),Rs([it("columnApi")],t.prototype,"columnApi",void 0),Rs([it("gridApi")],t.prototype,"gridApi",void 0),t=Rs([rt("columnHoverService")],t)}(jt),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},Ss=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))},Os([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Os([rt("columnAnimationService")],e)}(),Ts=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},Ds=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?Ve.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var i=this.gridOptionsWrapper.getAutoGroupColumnDef();($e.mergeDeep(r,i),(r=this.columnFactory.mergeColDefs(r)).colId=o,this.gridOptionsWrapper.isTreeData())||$e.missing(r.field)&&$e.missing(r.valueGetter)&&$e.missing(r.filterValueGetter)&&(r.filter=!1);n&&n>0&&(r.headerCheckboxSelection=!1);var s=new vt(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();$e.assign(n,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),o.cellRenderer&&$e.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=Ve.GROUP_AUTO_COLUMN_ID,Ts([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ts([it("context")],e.prototype,"context",void 0),Ts([it("columnController")],e.prototype,"columnController",void 0),Ts([it("columnFactory")],e.prototype,"columnFactory",void 0),e=t=Ts([rt("autoGroupColService")],e)}(),Ps=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)}}(),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(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 Ps(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 $e.missing(this.topRowBounds)||$e.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=$e.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),(!$e.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),(!$e.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},As([it("rowModel")],t.prototype,"rowModel",void 0),As([it("eventService")],t.prototype,"eventService",void 0),As([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),As([it("selectionController")],t.prototype,"selectionController",void 0),As([it("columnApi")],t.prototype,"columnApi",void 0),As([it("gridApi")],t.prototype,"gridApi",void 0),As([nt],t.prototype,"postConstruct",null),t=As([rt("paginationProxy")],t)}(jt),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},Is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xs(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)}}},Fs([it("eventService")],t.prototype,"eventService",void 0),Fs([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fs([it("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),t=Fs([rt("paginationAutoPageSizeService")],t)}(jt),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},Ms=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]},Ls([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ls([nt],e.prototype,"init",null),e=Ls([rt("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)}}(),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(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ks(t,e),t.prototype.init=function(){this.rowModel.getType()===Ve.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!==Ve.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 nr(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},Gs([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Gs([it("rowModel")],t.prototype,"rowModel",void 0),Gs([it("rowRenderer")],t.prototype,"rowRenderer",void 0),Gs([it("eventService")],t.prototype,"eventService",void 0),Gs([nt],t.prototype,"init",null),t=Gs([rt("changeDetectionService")],t)}(jt),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(){function e(){this.consuming=!1,this.events=[]}var t,n;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 p=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(p)}))}},Ws([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ws([it("columnController")],e.prototype,"columnController",void 0),Ws([it("eventService")],e.prototype,"eventService",void 0),Ws([(t=0,n=lt("loggerFactory"),function(e,o){n(e,o,t)})],e.prototype,"setBeans",null),Ws([nt],e.prototype,"init",null),Ws([ot],e.prototype,"destroy",null),e=Ws([rt("alignedGridsService")],e)}(),Bs=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(){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?$e.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)},Bs([it("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=Bs([rt("agComponentUtils")],e)}(),Us=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},zs=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]},Us([it("agComponentUtils")],e.prototype,"agComponentUtils",void 0),Us([nt],e.prototype,"postConstruct",null),e=Us([rt("componentMetadataProvider")],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},Ks=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},Ys([it("paginationProxy")],e.prototype,"paginationProxy",void 0),Ys([it("context")],e.prototype,"context",void 0),Ys([it("columnApi")],e.prototype,"columnApi",void 0),Ys([it("gridApi")],e.prototype,"gridApi",void 0),Ys([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ys([it("expressionService")],e.prototype,"expressionService",void 0),Ys([it("rowRenderer")],e.prototype,"rowRenderer",void 0),Ys([it("$compile")],e.prototype,"$compile",void 0),Ys([it("templateService")],e.prototype,"templateService",void 0),Ys([it("valueService")],e.prototype,"valueService",void 0),Ys([it("eventService")],e.prototype,"eventService",void 0),Ys([it("columnController")],e.prototype,"columnController",void 0),Ys([it("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Ys([st("rangeController")],e.prototype,"rangeController",void 0),Ys([it("focusController")],e.prototype,"focusController",void 0),Ys([st("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ys([it("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),Ys([it("popupService")],e.prototype,"popupService",void 0),Ys([it("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Ys([it("stylingService")],e.prototype,"stylingService",void 0),Ys([it("columnHoverService")],e.prototype,"columnHoverService",void 0),Ys([it("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ys([it("animationFrameService")],e.prototype,"taskQueue",void 0),Ys([it("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ys([it("sortController")],e.prototype,"sortController",void 0),Ys([it("filterManager")],e.prototype,"filterManager",void 0),Ys([it("maxDivHeightScaler")],e.prototype,"maxDivHeightScaler",void 0),Ys([it("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Ys([it("detailRowCompCache")],e.prototype,"detailRowCompCache",void 0),Ys([it("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Ys([it("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Ys([it("selectionController")],e.prototype,"selectionController",void 0),Ys([nt],e.prototype,"postConstruct",null),e=Ys([rt("beans")],e)}(),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},$s={"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}},Qs={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Xs={},Js=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=$s[n][t],r=0;if(Xs[e]||(Xs[e]={}),Xs[e][t])return Xs[e][t];if(Qs[t]){var i=Qs[t],s=document.createElement("div");s.style.position="absolute";var a=i.reduce((function(t,n,o){0===o&&$e.addCssClass(t,e);var r=document.createElement("div");return r.style.position="static",$e.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 Xs[e][t]=r||o,Xs[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-");$e.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$/,"")}},qs([it("eGridDiv")],e.prototype,"eGridDiv",void 0),e=qs([rt("environment")],e)}(),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},ea=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},Zs([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Zs([it("eventService")],e.prototype,"eventService",void 0),Zs([nt],e.prototype,"init",null),e=Zs([rt("animationFrameService")],e)}(),ta=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(){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 Ve.KEY_PAGE_HOME:case Ve.KEY_PAGE_END:o||n||(this.onHomeOrEndKey(t),i=!0);break;case Ve.KEY_LEFT:case Ve.KEY_RIGHT:o&&!n&&(this.onCtrlLeftOrRight(t,r),i=!0);break;case Ve.KEY_UP:case Ve.KEY_DOWN:o&&!n&&(this.onCtrlUpOrDown(t,r),i=!0);break;case Ve.KEY_PAGE_DOWN:o||n||(this.onPageDown(r),i=!0);break;case Ve.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($e.exists(n)&&this.gridPanel.ensureColumnVisible(n),$e.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===Ve.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(n,null,t.column,n,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var n=e===Ve.KEY_LEFT,o=this.columnController.getAllDisplayedColumns(),r=n?o[0]:$e.last(o);this.navigateTo(t.rowIndex,null,r,t.rowIndex,r)},e.prototype.onHomeOrEndKey=function(e){var t=e===Ve.KEY_PAGE_HOME,n=this.columnController.getAllDisplayedColumns(),o=t?n[0]:$e.last(n),r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,o,r,o)},ta([it("mouseEventService")],e.prototype,"mouseEventService",void 0),ta([it("paginationProxy")],e.prototype,"paginationProxy",void 0),ta([it("focusController")],e.prototype,"focusController",void 0),ta([it("animationFrameService")],e.prototype,"animationFrameService",void 0),ta([st("rangeController")],e.prototype,"rangeController",void 0),ta([it("columnController")],e.prototype,"columnController",void 0),ta([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ta([nt],e.prototype,"init",null),e=ta([rt("navigationService")],e)}(),oa=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)}}(),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(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return oa(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=$e.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},ra([it("eventService")],t.prototype,"eventService",void 0),ra([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ra([nt],t.prototype,"postConstruct",null),t=ra([rt("maxDivHeightScaler")],t)}(jt),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=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=$e.find(t(e),"selectable",!0);o=$e.exists(r)}else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},sa([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),sa([nt],e.prototype,"init",null),e=sa([rt("selectableService")],e)}(),la=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(){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"),$e.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 Nr(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()})),$e.clearElement(this.eDummyContainer),i},la([it("beans")],e.prototype,"beans",void 0),la([it("$scope")],e.prototype,"$scope",void 0),la([it("columnController")],e.prototype,"columnController",void 0),e=la([rt("autoHeightCalculator")],e)}(),pa=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)}}(),ca=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(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return pa(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",$e.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",$e.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",$e.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",$e.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===Ve.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}):$e.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,$e.addOrRemoveCssClass(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),$e.addOrRemoveCssClass(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,$e.addOrRemoveCssClass(this.btNext,"ag-disabled",this.nextButtonDisabled),this.lastButtonDisabled=!t||o||e===n-1,$e.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}},ca([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ca([it("eventService")],t.prototype,"eventService",void 0),ca([it("paginationProxy")],t.prototype,"paginationProxy",void 0),ca([it("rowRenderer")],t.prototype,"rowRenderer",void 0),ca([it("rowModel")],t.prototype,"rowModel",void 0),ca([$t("btFirst")],t.prototype,"btFirst",void 0),ca([$t("btPrevious")],t.prototype,"btPrevious",void 0),ca([$t("btNext")],t.prototype,"btNext",void 0),ca([$t("btLast")],t.prototype,"btLast",void 0),ca([$t("lbRecordCount")],t.prototype,"lbRecordCount",void 0),ca([$t("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),ca([$t("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),ca([$t("eSummaryPanel")],t.prototype,"eSummaryPanel",void 0),ca([$t("lbCurrent")],t.prototype,"lbCurrent",void 0),ca([$t("lbTotal")],t.prototype,"lbTotal",void 0),ca([nt],t.prototype,"postConstruct",null),t}(Yt),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(){}return e.prototype.observeResize=function(e,t,n){void 0===n&&(n=50);var o,r,i,s,a,l=this.frameworkOverrides,u=$e.debounce(t,n),p=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!p?((a=new window.ResizeObserver(u)).observe(e),function(){return a.disconnect()}):(o=$e.offsetWidth(e),r=$e.offsetHeight(e),i=!0,(s=function(){if(i){var a=$e.offsetWidth(e),u=$e.offsetHeight(e);(a!==o||u!==r)&&(o=a,r=u,t()),l.setTimeout(s,n)}})(),function(){return i=!1})},ha([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ha([it("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),e=ha([rt("resizeObserverService")],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};
|
|
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
|
-
*/(gi=fi||(fi={}))[gi.Loading=0]="Loading",gi[gi.NoRows=1]="NoRows";var ya=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n}return ga(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){$e.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===fi.Loading),$e.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===fi.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,fi.Loading)},t.prototype.showNoRowsOverlay=function(){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,fi.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,$e.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>',va([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),va([it("userComponentFactory")],t.prototype,"userComponentFactory",void 0),va([$t("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),va([nt],t.prototype,"postConstruct",null),t}(Yt),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)}}(),Ca=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},wa=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 ma(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($e.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild($e.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addDestroyableEventListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()}))},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;$e.setDisplayed(this.eGroupClosedIcon,e&&!this.expanded),$e.setDisplayed(this.eGroupOpenedIcon,e&&this.expanded),$e.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&&$e.removeCssClass(t,"ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var n="ag-group-item-alignment-"+this.alignItems;return $e.addCssClass(t,n),this},t.prototype.toggleGroupExpand=function(e){if(this.suppressOpenCloseIcons)return this.expanded=!0,this.refreshChildDisplay(),$e.setDisplayed(this.eContainer,!0),this;if(e=null!=e?e:!this.expanded,this.expanded===e)return this;if(this.expanded=e,this.refreshChildDisplay(),$e.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 Yt?e.getGui():e;$e.addCssClass(n,"ag-group-item"),$e.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];$e.addOrRemoveCssClass(n,"ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){$e.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(){$e.addOrRemoveCssClass(this.getGui(),"ag-disabled",!this.enabled),$e.addOrRemoveCssClass(this.eTitleBar,"ag-disabled-group-title-bar",this.suppressEnabledCheckbox&&!this.enabled),$e.addOrRemoveCssClass(this.eContainer,"ag-disabled-group-container",!this.enabled)},Ca([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ca([$t("eTitleBar")],t.prototype,"eTitleBar",void 0),Ca([$t("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Ca([$t("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Ca([$t("eToolbar")],t.prototype,"eToolbar",void 0),Ca([$t("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Ca([$t("eTitle")],t.prototype,"eTitle",void 0),Ca([$t("eContainer")],t.prototype,"eContainer",void 0),Ca([nt],t.prototype,"postConstruct",null),t}(Yt),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)}}(),ba=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},Ra=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 Ea(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,p=t.centered,c=t.x,d=t.y,h=this.getGui();n&&this.setBodyComponent(n),r?$e.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(),p?this.center():(c||d)&&this.offsetElement(c,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(),p=this.getHeight(),c=t.left>=n.clientX&&this.position.x<=0||t.right<=n.clientX&&t.right<=this.position.x+t.left+u;return c||(c=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=c?0:a,movementY:l=t.top>=n.clientY&&this.position.y<=0||t.bottom<=n.clientY&&t.bottom<=this.position.y+t.top+p||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+p||l>0&&n.clientY<this.position.y+t.top+p)?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("%"))$e.setFixedHeight(t,e),e=$e.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"):$e.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("%"))$e.setFixedWidth(t,e),e=$e.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"):$e.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 Yt(t.CLOSE_BTN_TEMPLATE);this.getContext().wireBean(n),(o=n.getGui()).appendChild($e.addCssClass($e.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();$e.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 $e.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return $e.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>',ba([it("popupService")],t.prototype,"popupService",void 0),ba([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ba([$t("eContentWrapper")],t.prototype,"eContentWrapper",void 0),ba([$t("eTitleBar")],t.prototype,"eTitleBar",void 0),ba([$t("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),ba([$t("eTitle")],t.prototype,"eTitle",void 0),ba([nt],t.prototype,"postConstruct",null),t}(Yt),_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)}}(),Oa=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 _a(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,s=o.maximizable;$e.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,p=l.movementY,c=0,d=0;if(s&&u){var h=n?-1:1,f=this.getWidth(),g=f+u*h,v=!1;n&&(c=f-g,(this.position.x+c<=0||g<=this.minWidth)&&(v=!0,c=0)),v||this.setWidth(g)}if(a&&p){h=r?-1:1;var y=this.getHeight(),m=y+p*h,C=!1;r&&(d=y-m,(this.position.y+d<=0||m<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(m)}this.updateDragStartPosition(e.clientX,e.clientY),(c||d)&&this.offsetElement(this.position.x+c,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(){$e.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),$e.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 Yt(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().wireBean(o);var r=o.getGui();r.appendChild(this.maximizeIcon=$e.createIconNoSpan("maximize",this.gridOptionsWrapper)),$e.addCssClass(this.maximizeIcon,"ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=$e.createIconNoSpan("minimize",this.gridOptionsWrapper)),$e.addCssClass(this.minimizeIcon,"ag-panel-title-bar-button-icon"),$e.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()}))}},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);i>3&&s&&Object.defineProperty(t,n,s)}([it("dragService")],t.prototype,"dragService",void 0),t}(Ra),Sa=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)}}(),Ta=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 Sa(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}(Ln),Da=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)}}(),Pa=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 Da(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}(Ln),Aa=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)}}(),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},xa=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.labelAlignment="top",n}return Aa(t,e),t.prototype.init=function(){$e.addCssClass(this.eSlider.getGui(),"ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=xn.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:xn.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>',Na([$t("eLabel")],t.prototype,"eLabel",void 0),Na([$t("eSlider")],t.prototype,"eSlider",void 0),Na([$t("eText")],t.prototype,"eText",void 0),Na([nt],t.prototype,"init",null),t}(An),Fa=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)}}(),Ia=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.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 Fa(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($e.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>',Ia([$t("spectrumColor")],t.prototype,"spectrumColor",void 0),Ia([$t("spectrumVal")],t.prototype,"spectrumVal",void 0),Ia([$t("spectrumDragger")],t.prototype,"spectrumDragger",void 0),Ia([$t("spectrumHue")],t.prototype,"spectrumHue",void 0),Ia([$t("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),Ia([$t("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),Ia([$t("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),Ia([$t("recentColors")],t.prototype,"recentColors",void 0),Ia([nt],t.prototype,"postConstruct",null),t}(Yt),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(){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 Ma(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()&&$e.isVisible(t.pickerComponent.getGui())&&o.contains(e.target)&&(t.skipClick=!0)})),this.addDestroyableEventListener(o,"keydown",(function(e){switch(e.keyCode){case Ve.KEY_UP:case Ve.KEY_DOWN:case Ve.KEY_ENTER:case Ve.KEY_SPACE:n();case Ve.KEY_ESCAPE:e.preventDefault()}})),this.addDestroyableEventListener(this.eWrapper,"click",n),this.addDestroyableEventListener(this.eLabel,"click",n),this.pickerIcon&&this.eIcon.appendChild($e.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return $e.setElementWidth(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},ka([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ka([$t("eLabel")],t.prototype,"eLabel",void 0),ka([$t("eWrapper")],t.prototype,"eWrapper",void 0),ka([$t("eDisplayField")],t.prototype,"eDisplayField",void 0),ka([$t("eIcon")],t.prototype,"eIcon",void 0),t}(xn),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)}}(),Wa=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 Va(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 Oa({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.getContext().wireBean(n),$e.addCssClass(n.getGui(),"ag-color-dialog");var o=new La({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:xn.EVENT_CHANGED})),this},t.prototype.getValue=function(){return this.value},t}(Ga),Ha=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)}}(),Ba=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return Ha(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}(Ta),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)}}(),Ua=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 ja(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=$e.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}(Ln),za=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){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 za(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 Ve.KEY_ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case Ve.KEY_DOWN:case Ve.KEY_UP:var o=t===Ve.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=$e.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");$e.addCssClass(n,"ag-list-item"),$e.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=$e.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=$e.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&&($e.radioCssClass(e,"ag-active-item"),this.highlightedEl=e,this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&($e.removeCssClass(this.highlightedEl,"ag-active-item"),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:xn.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",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);i>3&&s&&Object.defineProperty(t,n,s)}([nt],t.prototype,"init",null),t}(Yt),Ka=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},$a=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 Ka(t,e),t.prototype.init=function(){var e=this;this.listComponent=new Ya("select"),this.getContext().wireBean(this.listComponent),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addDestroyableEventListener(this.listComponent,Ya.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addDestroyableEventListener(this.listComponent,xn.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()})),$e.setElementWidth(t,$e.getAbsoluteWidth(this.eWrapper)),t.style.maxHeight=$e.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)},qa([it("popupService")],t.prototype,"popupService",void 0),qa([nt],t.prototype,"init",null),t}(Ga),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)}}(),Xa=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},Ja=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}return Qa(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(),$e.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addDestroyableEventListener(this,xn.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,xn.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:xn.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return $e.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>',Xa([$t("eLabel")],t.prototype,"eLabel",void 0),Xa([$t("eParentCircle")],t.prototype,"eParentCircle",void 0),Xa([$t("eChildCircle")],t.prototype,"eChildCircle",void 0),Xa([$t("eAngleValue")],t.prototype,"eAngleValue",void 0),Xa([it("dragService")],t.prototype,"dragService",void 0),t}(An),Za=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)}}(),el=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t.inputType="checkbox",t}return Za(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),$e.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(vs),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},nl=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 Ve.PINNED_LEFT:this.destroyFullWidthRow(o.left),o.left=n;break;case Ve.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 Ve.PINNED_LEFT:o.left&&(n=o.left,o.left=void 0);break;case Ve.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)},tl([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),tl([nt],e.prototype,"postConstruct",null),tl([ot],e.prototype,"destroy",null),e=tl([rt("detailRowCompCache")],e)}(),ol=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},rl=function(){function e(){}return e.prototype.getRowNode=function(e){switch(e.rowPinned){case Ve.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Ve.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 Ve.PINNED_TOP:if(t.rowPinned!==Ve.PINNED_TOP)return!0;break;case Ve.PINNED_BOTTOM:if(t.rowPinned!==Ve.PINNED_BOTTOM)return!1;break;default:if($e.exists(t.rowPinned))return t.rowPinned!==Ve.PINNED_TOP}return e.rowIndex<t.rowIndex},ol([it("rowModel")],e.prototype,"rowModel",void 0),ol([it("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),e=ol([rt("rowPositionUtils")],e)}(),il=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=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}([rt("cellPositionUtils")],e)}(),sl=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},al=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===Ve.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return $e.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var n=t===Ve.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if($e.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 Dn;n.context.wireBean(s),s.data=e,s.id=(t?"t":"b")+"-"+i,s.rowPinned=t?Ve.PINNED_TOP:Ve.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){$e.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){$e.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=$e.last(e);return t.rowTop+t.rowHeight}return 0},sl([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),sl([it("eventService")],e.prototype,"eventService",void 0),sl([it("context")],e.prototype,"context",void 0),sl([it("columnApi")],e.prototype,"columnApi",void 0),sl([it("gridApi")],e.prototype,"gridApi",void 0),sl([nt],e.prototype,"init",null),e=sl([rt("pinnedRowModel")],e)}(),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)}}(),ul=function(e){this.cellValueChanges=e},pl=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return ll(t,e),t}(ul),cl=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}(),dl=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},hl=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 cl(e),this.redoStack=new cl(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 pl?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 pl?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),ft.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 ul(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 ul(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 ul(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 pl(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 Ve.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Ve.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},dl([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),dl([it("focusController")],e.prototype,"focusController",void 0),dl([it("eventService")],e.prototype,"eventService",void 0),dl([it("gridApi")],e.prototype,"gridApi",void 0),dl([it("rowModel")],e.prototype,"rowModel",void 0),dl([it("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),dl([nt],e.prototype,"init",null),dl([ot],e.prototype,"destroy",null),e=dl([rt("undoRedoService")],e)}(),fl=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 zi("ag-Grid",(function(){return n.debug}));var p=new zi("Context",(function(){return u.debug}));this.context=new et(u,p),this.registerModuleUserComponents(i);var c=new(o&&o.rootComponent||Ji);this.context.wireBean(c),this.setColumnsAndData(),this.dispatchGridReadyEvent(n);var d=ft.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=ft.getRegisteredModules(),o=[],r={};function i(e,t){var n;r[(n=t).moduleName]||(r[n.moduleName]=!0,o.push(n),ft.register(n,e)),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!ft.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;$e.missing(n)&&(n=new ys);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&&$e.assign(o,t.providedBeanInstances),o},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Gn},{componentName:"AgRadioButton",componentClass:vs},{componentName:"AgToggleButton",componentClass:el},{componentName:"AgInputTextField",componentClass:Ta},{componentName:"AgInputTextArea",componentClass:Pa},{componentName:"AgInputNumberField",componentClass:Ba},{componentName:"AgInputRange",componentClass:Ua},{componentName:"AgSelect",componentClass:$a},{componentName:"AgSlider",componentClass:xa},{componentName:"AgAngleSelect",componentClass:Ja},{componentName:"AgColorPicker",componentClass:Wa},{componentName:"AgGridComp",componentClass:Ii},{componentName:"AgHeaderRoot",componentClass:Ei},{componentName:"AgPagination",componentClass:da},{componentName:"AgOverlayWrapper",componentClass:ya},{componentName:"AgGroupComponent",componentClass:wa},{componentName:"AgPanel",componentClass:Ra},{componentName:"AgDialog",componentClass:Oa}],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,Ks,rl,il,Is,Mi,tr,js,zs,fa,so,ia,ua,ds,$i,al,ns,Pt,ht,kt,Bi,rr,Ri,Ot,Ns,kr,Gi,Et,Wi,Hs,na,Ms,Oi,Ui,Tt,Ki,es,hr,sr,ss,ls,Js,ps,fs,Es,Cs,rs,_s,Ss,aa,Ds,Vs,ea,nl,hl],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();$e.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=Ve.ROW_MODEL_TYPE_SERVER_SIDE),"normal"===n&&(console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),n=Ve.ROW_MODEL_TYPE_CLIENT_SIDE),n||(n=Ve.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};e.forEach((function(e){$e.iterateObject(e.rowModels,(function(e,t){o[e]=t}))}));var r=o[n];return $e.exists(r)?r:(n===Ve.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===Ve.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===Ve.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===Ve.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}();
|
|
272
|
-
/**
|
|
273
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
274
|
-
* @version v23.1.1
|
|
275
|
-
* @link http://www.ag-grid.com/
|
|
276
|
-
* @license MIT
|
|
277
|
-
*/function gl(e,t,n,o){var r,i,s=o.agGrid;if(i=s+".quickFilterText",r=t.$eval(s)){var a=e[0],l=new fl(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")}
|
|
278
|
-
/**
|
|
279
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
280
|
-
* @version v23.1.1
|
|
281
|
-
* @link http://www.ag-grid.com/
|
|
282
|
-
* @license MIT
|
|
283
|
-
*/var vl=!1;
|
|
284
|
-
/**
|
|
285
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
286
|
-
* @version v23.1.1
|
|
287
|
-
* @link http://www.ag-grid.com/
|
|
288
|
-
* @license MIT
|
|
289
|
-
*/
|
|
290
|
-
var yl=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){function t(){return null!==e&&e.apply(this,arguments)||this}return yl(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===Ve.KEY_TAB&&e.onTabKeyDown(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);i>3&&s&&Object.defineProperty(t,n,s)}([nt],t.prototype,"attachListenersToGui",null),t}(Yt),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)}}(),wl=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(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 Cl(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case Ve.KEY_RIGHT:case Ve.KEY_LEFT:if(!this.eHeader.contains(document.activeElement))return;var t=this.items.indexOf(this.activeItem),n=e.keyCode===Ve.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 Ve.KEY_UP:case Ve.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){$e.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),$e.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=$e.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?($e.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e),e.focus()})),this.activeItem&&$e.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),$e.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):$e.callIfPresent(this.params.onActiveItemClicked)},wl([it("focusController")],t.prototype,"focusController",void 0),wl([$t("eHeader")],t.prototype,"eHeader",void 0),wl([$t("eBody")],t.prototype,"eBody",void 0),wl([nt],t.prototype,"init",null),t}(ml);
|
|
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
|
-
*/
|
|
297
|
-
var 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)}}(),Rl=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 bl(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 Dn;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=$e.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}(jt),_l=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=$e.debounce(this.performCheckBlocksToLoad.bind(this),t))}var t,n;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){$e.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()===Rl.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()};$e.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},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);i>3&&s&&Object.defineProperty(t,n,s)}([(t=0,n=lt("loggerFactory"),function(e,o){n(e,o,t)})],e.prototype,"setBeans",null),e}(),Ol=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)}}(),Sl=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},Tl=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 Ol(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()===Rl.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(Rl.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,$e.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 Qe),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 Qe;$e.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,Sl([it("eventService")],t.prototype,"eventService",void 0),Sl([it("rowRenderer")],t.prototype,"rowRenderer",void 0),Sl([nt],t.prototype,"init",null),t}(jt),Dl=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},Al=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 Dl(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(){$e.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");$e.addCssClass(n,"ag-virtual-list-item"),$e.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},Pl([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pl([nt],t.prototype,"init",null),t}(Yt);
|
|
298
|
-
/**
|
|
299
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
300
|
-
* @version v23.1.1
|
|
301
|
-
* @link http://www.ag-grid.com/
|
|
302
|
-
* @license MIT
|
|
303
|
-
*/
|
|
304
|
-
var Nl,xl,Fl=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}();
|
|
305
|
-
/**
|
|
306
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
307
|
-
* @version v23.1.1
|
|
308
|
-
* @link http://www.ag-grid.com/
|
|
309
|
-
* @license MIT
|
|
310
|
-
*/(Nl=t.ChartType||(t.ChartType={})).GroupedColumn="groupedColumn",Nl.StackedColumn="stackedColumn",Nl.NormalizedColumn="normalizedColumn",Nl.GroupedBar="groupedBar",Nl.StackedBar="stackedBar",Nl.NormalizedBar="normalizedBar",Nl.Line="line",Nl.Scatter="scatter",Nl.Bubble="bubble",Nl.Pie="pie",Nl.Doughnut="doughnut",Nl.Area="area",Nl.StackedArea="stackedArea",Nl.NormalizedArea="normalizedArea",Nl.Histogram="histogram",(xl=t.LegendPosition||(t.LegendPosition={})).Top="top",xl.Right="right",xl.Bottom="bottom",xl.Left="left";
|
|
311
|
-
/**
|
|
312
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
313
|
-
* @version v23.1.1
|
|
314
|
-
* @link http://www.ag-grid.com/
|
|
315
|
-
* @license MIT
|
|
316
|
-
*/
|
|
317
|
-
var Il=void 0===s?{}:s;Il.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Il.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Il.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Il.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Il.Node="undefined"==typeof Node?{}:Node,Il.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var Ll,Ml,kl=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=$e.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 $e.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&&$e.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 $e.exists(n)?$e.insertIntoArray(this.rootNode.allLeafChildren,o,n):this.rootNode.allLeafChildren.push(o),o},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowNodeIdFunc();if($e.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=$e.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 Dn;this.context.wireBean(o);var r=this.gridOptionsWrapper.isTreeData(),i=!r&&$e.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!!$e.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}(),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};(Ml=Ll||(Ll={}))[Ml.Normal=0]="Normal",Ml[Ml.AfterFilter=1]="AfterFilter",Ml[Ml.AfterFilterAndSort=2]="AfterFilterAndSort",Ml[Ml.PivotNodes=3]="PivotNodes";var Vl,Wl,Hl=function(){function e(){this.events=[]}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:Ve.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:Ve.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:Ve.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:Ve.STEP_MAP,keepRenderedRows:!0,animate:!0}),this.gridOptionsWrapper.addEventListener(kt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshMapFunc),this.gridOptionsWrapper.addEventListener(kt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,this.refreshMapFunc),this.rootNode=new Dn,this.nodeManager=new kl(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(kt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshMapFunc),this.gridOptionsWrapper.removeEventListener(kt.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),p=l;p<=u;p++){var c=this.getRow(p);if(c.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(c);c.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()===Ve.DOM_LAYOUT_NORMAL,o=this.rowsToDisplay[t];if($e.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){$e.removeFromArray(o.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){$e.insertIntoArray(o.rootNode.allLeafChildren,e,r+n+t)})),this.refreshModel({step:Ve.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($e.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:Ve.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:Ve.STEP_FILTER,keepRenderedRows:!0,animate:t})}},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:Ve.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return Ve.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:Ve.STEP_PIVOT}):this.refreshModel({step:Ve.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=$e.missingOrEmpty(e),n=new nr(!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 Ve.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,e.afterColumnsChanged);case Ve.STEP_FILTER:this.doFilter(n);case Ve.STEP_PIVOT:this.doPivot(n);case Ve.STEP_AGGREGATE:this.doAggregate(n);case Ve.STEP_SORT:this.doSort(e.rowNodeTransactions,n);case Ve.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=$e.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?$e.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:$e.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,$e.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return $e.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,p=a.isParentOfNode(n);(u||p)&&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($e.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=$e.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,Ll.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,Ll.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Ll.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Ll.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 Ll.Normal:s=i.childrenAfterGroup;break;case Ll.AfterFilter:s=i.childrenAfterFilter;break;case Ll.AfterFilterAndSort:s=i.childrenAfterSort;break;case Ll.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?$e.exists(o.childrenAfterGroup):o.group)&&(o.expanded=e,n(o.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:Ve.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(!$e.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))if(this.groupStage){if(t){var i={add:[],remove:[],update:[]};t.forEach((function(e){$e.pushAll(i.add,e.add),$e.pushAll(i.remove,e.remove),$e.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&&$e.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 $e.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:Ve.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:Ve.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:Ve.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},Gl([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Gl([it("columnController")],e.prototype,"columnController",void 0),Gl([it("filterManager")],e.prototype,"filterManager",void 0),Gl([it("$scope")],e.prototype,"$scope",void 0),Gl([it("selectionController")],e.prototype,"selectionController",void 0),Gl([it("eventService")],e.prototype,"eventService",void 0),Gl([it("context")],e.prototype,"context",void 0),Gl([it("valueService")],e.prototype,"valueService",void 0),Gl([it("valueCache")],e.prototype,"valueCache",void 0),Gl([it("columnApi")],e.prototype,"columnApi",void 0),Gl([it("gridApi")],e.prototype,"gridApi",void 0),Gl([it("filterStage")],e.prototype,"filterStage",void 0),Gl([it("sortStage")],e.prototype,"sortStage",void 0),Gl([it("flattenStage")],e.prototype,"flattenStage",void 0),Gl([st("groupStage")],e.prototype,"groupStage",void 0),Gl([st("aggregationStage")],e.prototype,"aggregationStage",void 0),Gl([st("pivotStage")],e.prototype,"pivotStage",void 0),Gl([nt],e.prototype,"init",null),Gl([ot],e.prototype,"destroy",null),e=Gl([rt("rowModel")],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},jl=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,n=e.changedPath;this.filterService.filter(n),this.selectableService.updateSelectableAfterFiltering(t)},Bl([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Bl([it("selectableService")],e.prototype,"selectableService",void 0),Bl([it("filterService")],e.prototype,"filterService",void 0),e=Bl([rt("filterStage")],e)}(),Ul=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},zl=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),n=$e.exists(t)&&t.length>0,o=n&&$e.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=o?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=this.columnController.getValueColumns(),s=$e.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},Ul([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ul([it("sortService")],e.prototype,"sortService",void 0),Ul([it("sortController")],e.prototype,"sortController",void 0),Ul([it("columnController")],e.prototype,"columnController",void 0),e=Ul([rt("sortStage")],e)}(),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(){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(!$e.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 p=e[u],c=p.hasChildren(),d=i&&c,h=o&&!c,f=a&&c&&1===p.childrenAfterGroup.length,g=l&&c&&p.leafGroup&&1===p.childrenAfterGroup.length,v=o&&p.leafGroup,y=s&&p.expanded&&!v;if(!(h||d||y||f||g)&&this.addRowNodeToRowsToDisplay(p,t,n,r),!o||!p.leafGroup)if(c){var m=f||g;if(p.expanded||m){var C=m?r:r+1;this.recursivelyAddToRowsToDisplay(p.childrenAfterSort,t,n,o,C),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(p),this.addRowNodeToRowsToDisplay(p.sibling,t,n,r))}}else if(p.master&&p.expanded){var w=this.createDetailNode(p);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(!$e.exists(e.sibling)){var t=new Dn;this.context.wireBean(t),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,$e.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if($e.exists(e.detailNode))return e.detailNode;var t=new Dn;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,$e.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},Yl([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Yl([it("selectionController")],e.prototype,"selectionController",void 0),Yl([it("eventService")],e.prototype,"eventService",void 0),Yl([it("context")],e.prototype,"context",void 0),Yl([it("columnController")],e.prototype,"columnController",void 0),e=Yl([rt("flattenStage")],e)}(),ql=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},$l=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),p=this.getValue(r,a.column),c=void 0;if(0!==(c=a.column.getColDef().comparator?a.column.getColDef().comparator(u,p,o,r,l):$e.defaultComparator(u,p,this.gridOptionsWrapper.isAccentedSort())))return c*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(!$e.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;$e.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")}))}))},ql([it("sortController")],e.prototype,"sortController",void 0),ql([it("columnController")],e.prototype,"columnController",void 0),ql([it("valueService")],e.prototype,"valueService",void 0),ql([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ql([nt],e.prototype,"init",null),e=ql([rt("sortService")],e)}(),Ql=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},Xl=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()},Ql([it("filterManager")],e.prototype,"filterManager",void 0),Ql([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ql([nt],e.prototype,"postConstruct",null),e=Ql([rt("filterService")],e)}(),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},Zl=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===Ve.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if($e.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!$e.missing(t)){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return $e.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)})),$e.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!")}},Jl([it("rowModel")],e.prototype,"rowModel",void 0),Jl([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Jl([nt],e.prototype,"postConstruct",null),e=Jl([rt("immutableService")],e)}(),eu={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[jl,zl,Kl,$l,Xl,Zl],rowModels:{clientSide:Hl}},tu=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},ou=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.cacheParams=n,o}return tu(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){$e.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()};$e.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0)},nu([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),nu([it("rowRenderer")],t.prototype,"rowRenderer",void 0),nu([nt],t.prototype,"init",null),t}(Rl),ru=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)}}(),iu=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(t){return e.call(this,t)||this}var n,o;return ru(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 ou(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()},iu([it("columnApi")],t.prototype,"columnApi",void 0),iu([it("gridApi")],t.prototype,"gridApi",void 0),iu([(n=0,o=lt("loggerFactory"),function(e,t){o(e,t,n)})],t.prototype,"setBeans",null),t}(Tl),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)}}(),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(e){function t(){return null!==e&&e.apply(this,arguments)||this}return au(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!$e.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return Ve.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;$e.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),$e.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),$e.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),$e.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 $e.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return $e.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!$e.missing(this.datasource)){$e.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 _l(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 Qe},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 su(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(Tl.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 Qe)},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){$e.exists(e.remove)||$e.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):$e.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},lu([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),lu([it("filterManager")],t.prototype,"filterManager",void 0),lu([it("sortController")],t.prototype,"sortController",void 0),lu([it("selectionController")],t.prototype,"selectionController",void 0),lu([it("eventService")],t.prototype,"eventService",void 0),lu([it("gridApi")],t.prototype,"gridApi",void 0),lu([it("columnApi")],t.prototype,"columnApi",void 0),lu([it("rowRenderer")],t.prototype,"rowRenderer",void 0),lu([nt],t.prototype,"init",null),lu([ot],t.prototype,"destroyDatasource",null),t=lu([rt("rowModel")],t)}(jt),pu={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:uu}},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},du=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=$e.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}(),hu=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()===Ve.ROW_MODEL_TYPE_CLIENT_SIDE,p=!u&&t.onlySelected,c=[];if(c=$e.existsAndNotEmpty(t.columnKeys)?this.columnController.getGridColumns(t.columnKeys):t.allColumns&&!l?(c=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([Ve.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),t.customHeader&&e.addCustomContent(t.customHeader),e.prepare(c),t.columnGroups){var d=new Rt,h=this.displayedGroupCreator.createDisplayedGroups(c,this.columnController.getGridBalancedTree(),d,null);this.recursivelyAddHeaderGroups(h,e,t.processGroupHeaderCallback)}if(!t.skipHeader){var f=e.onNewHeaderRow();c.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||p?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,p=1===l.allChildrenCount&&(i||u);if((!l.group||!t.skipGroups&&!p)&&((!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(c.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 yt&&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)}))},cu([it("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),cu([it("columnController")],e.prototype,"columnController",void 0),cu([it("rowModel")],e.prototype,"rowModel",void 0),cu([it("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),cu([it("selectionController")],e.prototype,"selectionController",void 0),cu([it("columnFactory")],e.prototype,"columnFactory",void 0),cu([it("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=cu([rt("gridSerializer")],e)}();(Wl=Vl||(Vl={}))[Wl.HEADER_GROUPING=0]="HEADER_GROUPING",Wl[Wl.HEADER=1]="HEADER",Wl[Wl.BODY=2]="BODY";var fu=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)}}(),gu=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},vu=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 fu(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,Ve.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}(du),yu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fu(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,n=t.columnController,o=t.valueService,r=t.gridOptionsWrapper,i=e.processCellCallback,s=e.processHeaderCallback,a=e.processGroupHeaderCallback,l=e.processRowGroupCallback,u=e.suppressQuotes,p=e.columnSeparator;return new vu({columnController:n,valueService:o,gridOptionsWrapper:r,processCellCallback:i||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:l||void 0,suppressQuotes:u||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},gu([it("columnController")],t.prototype,"columnController",void 0),gu([it("valueService")],t.prototype,"valueService",void 0),gu([it("downloader")],t.prototype,"downloader",void 0),gu([it("gridSerializer")],t.prototype,"gridSerializer",void 0),gu([it("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),gu([nt],t.prototype,"postConstruct",null),t=gu([rt("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 $e.assign(n,t),$e.assign(n,e),n},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}()),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=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}([rt("downloader")],e)}(),Cu="\r\n",wu=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+">"+Cu:(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">"+Cu):r+"/>"+Cu},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=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}([rt("xmlFactory")],e)}(),Eu=[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],bu=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),p=u.fileHeader,c=u.folderHeader,d=u.content;r+=p.length+d.length,i+=c.length,e+=p+d,o+=c}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=$e.utf8_encode,s=$e.decToHex,a=i(o),l=a!==o,u=this.convertTime(r),p=this.convertDate(r),c="";if(l){var d=s(1,1)+s(this.getFromCrc32Table(a),4)+a;c="up"+s(d.length,2)+d}var h="\n\0"+(l?"\0\b":"\0\0")+"\0\0"+s(u,2)+s(p,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(c.length,2);return{fileHeader:"PK"+h+a+c,folderHeader:"PK\0"+h+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\0\0\0")+s(t,4)+a+c,content:n||""}},e.prototype.buildFolderEnd=function(e,t,n){var o=$e.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^Eu[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=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}([rt("zipContainer")],e)}(),Ru={moduleName:t.ModuleNames.CsvExportModule,beans:[yu,mu,wu,hu,bu]};ft.register(eu,!1),ft.register(pu,!1),ft.register(Ru,!1),t.AgAbstractField=xn,t.AgAngleSelect=Ja,t.AgCheckbox=Gn,t.AgColorPicker=Wa,t.AgDialog=Oa,t.AgGroupComponent=wa,t.AgInputNumberField=Ba,t.AgInputRange=Ua,t.AgInputTextArea=Pa,t.AgInputTextField=Ta,t.AgPanel=Ra,t.AgRadioButton=vs,t.AgSelect=$a,t.AgSlider=xa,t.AgToggleButton=el,t.AlignedGridsService=Hs,t.AnimateShowChangeCellRenderer=co,t.AnimateSlideCellRenderer=fo,t.AutoWidthCalculator=Ki,t.Autowired=it,t.BaseComponentWrapper=Fl,t.Bean=rt,t.BeanStub=jt,t.BodyDropPivotTarget=di,t.BodyDropTarget=vi,t.CellComp=Nr,t.CellNavigationService=ps,t.CellPositionUtils=il,t.CellRendererFactory=ds,t.ChangedPath=nr,t.CheckboxSelectionComponent=Hn,t.ColDefUtil=Nt,t.Color=n,t.Column=vt,t.ColumnApi=sr,t.ColumnController=Ot,t.ColumnFactory=Et,t.ColumnGroup=yt,t.ColumnKeyCreator=Ze,t.ColumnUtils=Tt,t.Component=Yt,t.ComponentUtil=Vt,t.Constants=Ve,t.Context=et,t.CssClassApplier=Gr,t.DateFilter=Cn,t.DisplayedGroupCreator=Pt,t.DragAndDropService=hr,t.DragService=ns,t.Environment=Js,t.EventService=ht,t.Events=bt,t.ExpressionService=Gi,t.FilterManager=Ri,t.FocusController=ss,t.Grid=fl,t.GridApi=Mi,t.GridCore=Ji,t.GridOptionsWrapper=kt,t.GridPanel=Ii,t.GroupCellRenderer=uo,t.GroupInstanceIdCreator=Rt,t.HeaderContainer=mi,t.HeaderRootComp=Ei,t.HeaderRowComp=li,t.HorizontalResizeService=$i,t.LargeTextCellEditor=So,t.Listener=function(e){return Xt.bind(this,e)},t.Logger=zi,t.LoggerFactory=Ui,t.ManagedTabComponent=ml,t.ModuleRegistry=ft,t.MouseEventService=ls,t.MoveColumnController=pi,t.NumberFilter=Po,t.NumberSequence=Qe,t.Optional=st,t.OriginalColumnGroup=mt,t.PaginationProxy=Ns,t.PinnedRowModel=al,t.PopupComponent=qt,t.PopupEditorWrapper=Er,t.PopupSelectCellEditor=_o,t.PopupService=Bi,t.PopupTextCellEditor=bo,t.PostConstruct=nt,t.PreConstruct=tt,t.PreDestroy=ot,t.Promise=Xe,t.PropertyKeys=At,t.ProvidedFilter=ln,t.Qualifier=lt,t.QuerySelector=
|
|
318
|
-
/**
|
|
319
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
320
|
-
* @version v23.1.1
|
|
321
|
-
* @link http://www.ag-grid.com/
|
|
322
|
-
* @license MIT
|
|
323
|
-
*/
|
|
324
|
-
function(e){return Qt.bind(this,e)},t.RefSelector=$t,t.ResizeObserverService=fa,t.RowComp=Ir,t.RowNode=Dn,t.RowNodeBlock=Rl,t.RowNodeBlockLoader=_l,t.RowNodeCache=Tl,t.RowPositionUtils=rl,t.RowRenderer=kr,t.ScalarFilter=vn,t.ScrollVisibleService=Cs,t.SelectCellEditor=wo,t.SelectableService=aa,t.SelectionController=rr,t.SetLeftFeature=jr,t.SimpleFilter=fn,t.SortController=rs,t.StandardMenuFactory=es,t.StylingService=Es,t.TabbedLayout=El,t.TemplateService=Wi,t.TextCellEditor=nn,t.TextFilter=zo,t.Timer=Je,t.TooltipFeature=Dr,t.TouchListener=wn,t.UserComponentFactory=so,t.UserComponentRegistry=tr,t.ValueCache=Ms,t.ValueFormatterService=fs,t.ValueService=Oi,t.VanillaFrameworkOverrides=ys,t.VirtualList=Al,t._=$e,t.defaultGroupComparator=
|
|
325
|
-
/**
|
|
326
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
327
|
-
* @version v23.1.1
|
|
328
|
-
* @link http://www.ag-grid.com/
|
|
329
|
-
* @license MIT
|
|
330
|
-
*/
|
|
331
|
-
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=$e.exists(n)&&n.group,s=$e.exists(o)&&o.group,a=!i&&!s;return i&&s?$e.defaultComparator(n.key,o.key,r):a?$e.defaultComparator(e,t,r):i?1:-1},t.initialiseAgGridWithAngular1=
|
|
332
|
-
/**
|
|
333
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
334
|
-
* @version v23.1.1
|
|
335
|
-
* @link http://www.ag-grid.com/
|
|
336
|
-
* @license MIT
|
|
337
|
-
*/
|
|
338
|
-
function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",gl],scope:!0}}))},t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!vl){vl=!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);Vt.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&&Vt.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=Vt.copyAttributesToGridOptions(e,this);var n={globalEventListener:t};this._agGrid=new fl(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;Vt.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=
|
|
339
|
-
/**
|
|
340
|
-
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
|
341
|
-
* @version v23.1.1
|
|
342
|
-
* @link http://www.ag-grid.com/
|
|
343
|
-
* @license MIT
|
|
344
|
-
*/
|
|
345
|
-
function(e){return new Xe((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})),fy=s&&s.__extends||(cy=function(e,t){return(cy=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}cy(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gy=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.props=t,o.state=n,o}return fy(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return J.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 J.Children.count(e.children)>0},t.getChildColDefs=function(e){return J.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}(J.Component),vy=gy;function yy(e,t){e.forEach((function(e){gy[e]=t}))}yy(hy.ColDefUtil.BOOLEAN_PROPERTIES,dy.bool),yy(hy.ColDefUtil.STRING_PROPERTIES,dy.string),yy(hy.ColDefUtil.OBJECT_PROPERTIES,dy.object),yy(hy.ColDefUtil.ARRAY_PROPERTIES,dy.array),yy(hy.ColDefUtil.NUMBER_PROPERTIES,dy.number),yy(hy.ColDefUtil.FUNCTION_PROPERTIES,dy.func);var my=Object.defineProperty({AgGridColumn:vy},"__esModule",{value:!0}),Cy=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}(),wy=Object.defineProperty({BaseReactComponent:Cy},"__esModule",{value:!0}),Ey=l((function(e,t){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}})),by=0;var Ry=function(){return"agPortalKey_"+ ++by},_y=Object.defineProperty({default:Ry},"__esModule",{value:!0});
|
|
346
|
-
/** @license React v16.13.1
|
|
347
|
-
* react-dom-server.browser.production.min.js
|
|
348
|
-
*
|
|
349
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
350
|
-
*
|
|
351
|
-
* This source code is licensed under the MIT license found in the
|
|
352
|
-
* LICENSE file in the root directory of this source tree.
|
|
353
|
-
*/
|
|
354
|
-
function Oy(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 Sy="function"==typeof Symbol&&Symbol.for,Ty=Sy?Symbol.for("react.portal"):60106,Dy=Sy?Symbol.for("react.fragment"):60107,Py=Sy?Symbol.for("react.strict_mode"):60108,Ay=Sy?Symbol.for("react.profiler"):60114,Ny=Sy?Symbol.for("react.provider"):60109,xy=Sy?Symbol.for("react.context"):60110,Fy=Sy?Symbol.for("react.concurrent_mode"):60111,Iy=Sy?Symbol.for("react.forward_ref"):60112,Ly=Sy?Symbol.for("react.suspense"):60113,My=Sy?Symbol.for("react.suspense_list"):60120,ky=Sy?Symbol.for("react.memo"):60115,Gy=Sy?Symbol.for("react.lazy"):60116,Vy=Sy?Symbol.for("react.block"):60121,Wy=Sy?Symbol.for("react.fundamental"):60117,Hy=Sy?Symbol.for("react.scope"):60119;function By(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 Dy:return"Fragment";case Ty:return"Portal";case Ay:return"Profiler";case Py:return"StrictMode";case Ly:return"Suspense";case My:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case xy:return"Context.Consumer";case Ny:return"Context.Provider";case Iy:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ky:return By(e.type);case Vy:return By(e.render);case Gy:if(e=1===e._status?e._result:null)return By(e)}return null}var jy=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;jy.hasOwnProperty("ReactCurrentDispatcher")||(jy.ReactCurrentDispatcher={current:null}),jy.hasOwnProperty("ReactCurrentBatchConfig")||(jy.ReactCurrentBatchConfig={suspense:null});var Uy={};function zy(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var Yy=new Uint16Array(16),Ky=0;15>Ky;Ky++)Yy[Ky]=Ky+1;Yy[15]=0;var qy=/^[: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]*$/,$y=Object.prototype.hasOwnProperty,Qy={},Xy={};function Jy(e){return!!$y.call(Xy,e)||!$y.call(Qy,e)&&(qy.test(e)?Xy[e]=!0:(Qy[e]=!0,!1))}function Zy(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 em={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){em[e]=new Zy(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];em[t]=new Zy(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){em[e]=new Zy(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){em[e]=new Zy(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){em[e]=new Zy(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){em[e]=new Zy(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){em[e]=new Zy(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){em[e]=new Zy(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){em[e]=new Zy(e,5,!1,e.toLowerCase(),null,!1)}));var tm=/[\-:]([a-z])/g;function nm(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(tm,nm);em[t]=new Zy(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(tm,nm);em[t]=new Zy(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(tm,nm);em[t]=new Zy(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){em[e]=new Zy(e,1,!1,e.toLowerCase(),null,!1)})),em.xlinkHref=new Zy("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){em[e]=new Zy(e,1,!1,e.toLowerCase(),null,!0)}));var om=/["'&<>]/;function rm(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=om.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";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 im(e,t){var n,o=em.hasOwnProperty(e)?em[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+'="'+rm(t)+'"')):Jy(e)?e+'="'+rm(t)+'"':""}var sm="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},am=null,lm=null,um=null,pm=!1,cm=!1,dm=null,hm=0;function fm(){if(null===am)throw Error(Oy(321));return am}function gm(){if(0<hm)throw Error(Oy(312));return{memoizedState:null,queue:null,next:null}}function vm(){return null===um?null===lm?(pm=!1,lm=um=gm()):(pm=!0,um=lm):null===um.next?(pm=!1,um=um.next=gm()):(pm=!0,um=um.next),um}function ym(e,t,n,o){for(;cm;)cm=!1,hm+=1,um=null,n=e(t,o);return lm=am=null,hm=0,um=dm=null,n}function mm(e,t){return"function"==typeof t?t(e):t}function Cm(e,t,n){if(am=fm(),um=vm(),pm){var o=um.queue;if(t=o.dispatch,null!==dm&&void 0!==(n=dm.get(o))){dm.delete(o),o=um.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return um.memoizedState=o,[o,t]}return[um.memoizedState,t]}return e=e===mm?"function"==typeof t?t():t:void 0!==n?n(t):t,um.memoizedState=e,e=(e=um.queue={last:null,dispatch:null}).dispatch=wm.bind(null,am,e),[um.memoizedState,e]}function wm(e,t,n){if(!(25>hm))throw Error(Oy(301));if(e===am)if(cm=!0,e={action:n,next:null},null===dm&&(dm=new Map),void 0===(n=dm.get(t)))dm.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Em(){}var bm=0,Rm={readContext:function(e){var t=bm;return zy(e,t),e[t]},useContext:function(e){fm();var t=bm;return zy(e,t),e[t]},useMemo:function(e,t){if(am=fm(),t=void 0===t?null:t,null!==(um=vm())){var n=um.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(!sm(t[r],o[r])){o=!1;break e}o=!0}}if(o)return n[0]}}return e=e(),um.memoizedState=[e,t],e},useReducer:Cm,useRef:function(e){am=fm();var t=(um=vm()).memoizedState;return null===t?(e={current:e},um.memoizedState=e):t},useState:function(e){return Cm(mm,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:Em,useEffect:Em,useDebugValue:Em,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return fm(),e},useTransition:function(){return fm(),[function(e){e()},!1]}},_m="http://www.w3.org/1999/xhtml";var Om={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},Sm=h({menuitem:!0},Om),Tm={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},Dm=["Webkit","ms","Moz","O"];Object.keys(Tm).forEach((function(e){Dm.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tm[t]=Tm[e]}))}));var Pm=/([A-Z])/g,Am=/^ms-/,Nm=J.Children.toArray,xm=jy.ReactCurrentDispatcher,Fm={listing:!0,pre:!0,textarea:!0},Im=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Lm={},Mm={};var km=Object.prototype.hasOwnProperty,Gm={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Vm(e,t){if(void 0===e)throw Error(Oy(152,By(t)||"Component"))}function Wm(e,t,n){function o(o,r){var i=r.prototype&&r.prototype.isReactComponent,s=function(e,t,n,o){if(o&&"object"==typeof(o=e.contextType)&&null!==o)return zy(o,n),o[n];if(e=e.contextTypes){for(var r in n={},e)n[r]=t[r];t=n}else t=Uy;return t}(r,t,n,i),a=[],l=!1,u={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===a)return null},enqueueReplaceState:function(e,t){l=!0,a=[t]},enqueueSetState:function(e,t){if(null===a)return null;a.push(t)}};if(i){if(i=new r(o.props,s,u),"function"==typeof r.getDerivedStateFromProps){var p=r.getDerivedStateFromProps.call(null,o.props,i.state);null!=p&&(i.state=h({},i.state,p))}}else if(am={},i=r(o.props,s,u),null==(i=ym(r,o.props,i,s))||null==i.render)return void Vm(e=i,r);if(i.props=o.props,i.context=s,i.updater=u,void 0===(u=i.state)&&(i.state=u=null),"function"==typeof i.UNSAFE_componentWillMount||"function"==typeof i.componentWillMount)if("function"==typeof i.componentWillMount&&"function"!=typeof r.getDerivedStateFromProps&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&"function"!=typeof r.getDerivedStateFromProps&&i.UNSAFE_componentWillMount(),a.length){u=a;var c=l;if(a=null,l=!1,c&&1===u.length)i.state=u[0];else{p=c?u[0]:i.state;var d=!0;for(c=c?1:0;c<u.length;c++){var f=u[c];null!=(f="function"==typeof f?f.call(i,p,o.props,s):f)&&(d?(d=!1,p=h({},p,f)):h(p,f))}i.state=p}}else a=null;if(Vm(e=i.render(),r),"function"==typeof i.getChildContext&&"object"==typeof(o=r.childContextTypes)){var g=i.getChildContext();for(var v in g)if(!(v in o))throw Error(Oy(108,By(r)||"Unknown",v))}g&&(t=h({},t,g))}for(;J.isValidElement(e);){var r=e,i=r.type;if("function"!=typeof i)break;o(r,i)}return{child:e,context:t}}var Hm=function(){function e(e,t){J.isValidElement(e)?e.type!==Dy?e=[e]:(e=e.props.children,e=J.isValidElement(e)?[e]:Nm(e)):e=Nm(e),e={type:null,domNamespace:_m,children:e,childIndex:0,context:Uy,footer:""};var n=Yy[0];if(0===n){var o=Yy,r=2*(n=o.length);if(!(65536>=r))throw Error(Oy(304));var i=new Uint16Array(r);for(i.set(o),(Yy=i)[0]=n+1,o=n;o<r-1;o++)Yy[o]=o+1;Yy[r-1]=0}else Yy[0]=Yy[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;Yy[e]=Yy[0],Yy[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,o=this.threadID;zy(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=bm;bm=this.threadID;var n=xm.current;xm.current=Rm;try{for(var o=[""],r=!1;o[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var i=this.threadID;Yy[i]=Yy[0],Yy[0]=i;break}var s=this.stack[this.stack.length-1];if(r||s.childIndex>=s.children.length){var a=s.footer;if(""!==a&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===Ny)this.popProvider(s.type);else if(s.type===Ly){this.suspenseDepth--;var l=o.pop();if(r){r=!1;var u=s.fallbackFrame;if(!u)throw Error(Oy(303));this.stack.push(u),o[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}o[this.suspenseDepth]+=l}o[this.suspenseDepth]+=a}else{var p=s.children[s.childIndex++],c="";try{c+=this.render(p,s.context,s.domNamespace)}catch(d){if(null!=d&&"function"==typeof d.then)throw Error(Oy(294));throw d}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=c}}return o[0]}finally{xm.current=n,bm=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?rm(n):this.previousWasTextNode?"\x3c!-- --\x3e"+rm(n):(this.previousWasTextNode=!0,rm(n));if(e=(t=Wm(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!J.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===Ty)throw Error(Oy(257));throw Error(Oy(258,n.toString()))}return e=Nm(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var o=e.type;if("string"==typeof o)return this.renderDOM(e,t,n);switch(o){case Py:case Fy:case Ay:case My:case Dy:return e=Nm(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case Ly:throw Error(Oy(294))}if("object"==typeof o&&null!==o)switch(o.$$typeof){case Iy:am={};var r=o.render(e.props,e.ref);return r=ym(o.render,e.props,r,e.ref),r=Nm(r),this.stack.push({type:null,domNamespace:n,children:r,childIndex:0,context:t,footer:""}),"";case ky:return e=[J.createElement(o.type,h({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case Ny:return n={type:e,domNamespace:n,children:o=Nm(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case xy:o=e.type,r=e.props;var i=this.threadID;return zy(o,i),o=Nm(r.children(o[i])),this.stack.push({type:e,domNamespace:n,children:o,childIndex:0,context:t,footer:""}),"";case Wy:throw Error(Oy(338));case Gy: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)}))}}(o=e.type),o._status){case 1:return e=[J.createElement(o._result,h({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw o._result;default:throw Error(Oy(295))}case Hy:throw Error(Oy(343))}throw Error(Oy(130,null==o?o:typeof o,""))},t.renderDOM=function(e,t,n){var o=e.type.toLowerCase();if(!Lm.hasOwnProperty(o)){if(!Im.test(o))throw Error(Oy(65,o));Lm[o]=!0}var r=e.props;if("input"===o)r=h({type:void 0},r,{defaultChecked:void 0,defaultValue:void 0,value:null!=r.value?r.value:r.defaultValue,checked:null!=r.checked?r.checked:r.defaultChecked});else if("textarea"===o){var i=r.value;if(null==i){i=r.defaultValue;var s=r.children;if(null!=s){if(null!=i)throw Error(Oy(92));if(Array.isArray(s)){if(!(1>=s.length))throw Error(Oy(93));s=s[0]}i=""+s}null==i&&(i="")}r=h({},r,{value:void 0,children:""+i})}else if("select"===o)this.currentSelectValue=null!=r.value?r.value:r.defaultValue,r=h({},r,{value:void 0});else if("option"===o){s=this.currentSelectValue;var a=function(e){if(null==e)return e;var t="";return J.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(r.children);if(null!=s){var l=null!=r.value?r.value+"":a;if(i=!1,Array.isArray(s)){for(var u=0;u<s.length;u++)if(""+s[u]===l){i=!0;break}}else i=""+s===l;r=h({selected:void 0,children:void 0},r,{selected:i,children:a})}}if(i=r){if(Sm[o]&&(null!=i.children||null!=i.dangerouslySetInnerHTML))throw Error(Oy(137,o,""));if(null!=i.dangerouslySetInnerHTML){if(null!=i.children)throw Error(Oy(60));if("object"!=typeof i.dangerouslySetInnerHTML||!("__html"in i.dangerouslySetInnerHTML))throw Error(Oy(61))}if(null!=i.style&&"object"!=typeof i.style)throw Error(Oy(62,""))}for(m in i=r,s=this.makeStaticMarkup,a=1===this.stack.length,l="<"+e.type,i)if(km.call(i,m)){var p=i[m];if(null!=p){if("style"===m){u=void 0;var c="",d="";for(u in p)if(p.hasOwnProperty(u)){var f=0===u.indexOf("--"),g=p[u];if(null!=g){if(f)var v=u;else if(v=u,Mm.hasOwnProperty(v))v=Mm[v];else{var y=v.replace(Pm,"-$1").toLowerCase().replace(Am,"-ms-");v=Mm[v]=y}c+=d+v+":",d=u,c+=f=null==g||"boolean"==typeof g||""===g?"":f||"number"!=typeof g||0===g||Tm.hasOwnProperty(d)&&Tm[d]?(""+g).trim():g+"px",d=";"}}p=c||null}u=null;e:if(f=o,g=i,-1===f.indexOf("-"))f="string"==typeof g.is;else switch(f){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":f=!1;break e;default:f=!0}f?Gm.hasOwnProperty(m)||(u=Jy(u=m)&&null!=p?u+'="'+rm(p)+'"':""):u=im(m,p),u&&(l+=" "+u)}}s||a&&(l+=' data-reactroot=""');var m=l;i="",Om.hasOwnProperty(o)?m+="/>":(m+=">",i="</"+e.type+">");e:{if(null!=(s=r.dangerouslySetInnerHTML)){if(null!=s.__html){s=s.__html;break e}}else if("string"==typeof(s=r.children)||"number"==typeof s){s=rm(s);break e}s=null}return null!=s?(r=[],Fm.hasOwnProperty(o)&&"\n"===s.charAt(0)&&(m+="\n"),m+=s):r=Nm(r.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?function(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"}}(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:o,children:r,childIndex:0,context:t,footer:i}),this.previousWasTextNode=!1,m},e}(),Bm={renderToString:function(e){e=new Hm(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Hm(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(Oy(207))},renderToStaticNodeStream:function(){throw Error(Oy(208))},version:"16.13.1"},jm=Bm.default||Bm,Um=l((function(e){e.exports=jm})),zm=s&&s.__extends||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)}}(),Ym=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 zm(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 hy.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=J.createElement(this.reactComponent,e),r=Yu.createPortal(o,this.eParentElement,_y.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()&&Ey.assignProperties(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return hy._.addCssClass(e.eParentElement,t)})))},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return hy._.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=J.createElement(this.reactComponent,e);try{var o=console.error;console.error=function(){};var r=Date.now(),i=Um.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-r,console.error=o,""===i?this.staticMarkup=i:i&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=i,this.eParentElement.appendChild(this.staticMarkup))}catch(s){}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}(wy.BaseReactComponent),Km=Object.defineProperty({ReactComponent:Ym},"__esModule",{value:!0}),qm=l((function(e,t){var n,o;Object.defineProperty(t,"__esModule",{value:!0}),(o=n=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={})).IdentityCheck="IdentityCheck",o.DeepValueCheck="DeepValueCheck",o.NoCheck="NoCheck";var r=function(){function e(){var e;this.strategyMap=((e={})[n.DeepValueCheck]=new s,e[n.IdentityCheck]=new i((function(e,t){return e===t})),e[n.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}()})),$m=s&&s.__extends||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)}}(),Qm=s&&s.__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},Xm=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.props=t,o.state=n,o.changeDetectionService=new qm.ChangeDetectionService,o.api=null,o.portals=[],o.hasPendingPortalUpdate=!1,o.destroyed=!1,o}return $m(t,e),t.prototype.render=function(){var e=this;return J.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 eC(this)},modules:e},n=this.props.gridOptions||{};my.AgGridColumn.hasChildColumns(this.props)&&(n.columnDefs=my.AgGridColumn.mapChildColumnDefs(this.props)),this.gridOptions=hy.ComponentUtil.copyAttributesToGridOptions(n,this.props),new hy.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=Qm(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 qm.ChangeDetectionStrategyType.IdentityCheck}return qm.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&&hy.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)},t.prototype.extractDeclarativeColDefChanges=function(e,t){var n=!!e.debug;if(my.AgGridColumn.hasChildColumns(e)){var o=this.changeDetectionService.getStrategy(qm.ChangeDetectionStrategyType.DeepValueCheck),r=this.gridOptions.columnDefs,i=my.AgGridColumn.mapChildColumnDefs(e);o.areEqual(r,i)||(n&&console.log("agGridReact: colDefs definitions changed"),t.columnDefs={previousValue:this.gridOptions.columnDefs,currentValue:my.AgGridColumn.mapChildColumnDefs(e)})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){-1!==hy.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]}))})),hy.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}(J.Component),Jm=Xm;function Zm(e,t){e.forEach((function(e){Xm[e]=t}))}Xm.propTypes={gridOptions:dy.object},Zm(hy.ComponentUtil.getEventCallbacks(),dy.func),Zm(hy.ComponentUtil.BOOLEAN_PROPERTIES,dy.bool),Zm(hy.ComponentUtil.STRING_PROPERTIES,dy.string),Zm(hy.ComponentUtil.OBJECT_PROPERTIES,dy.object),Zm(hy.ComponentUtil.ARRAY_PROPERTIES,dy.array),Zm(hy.ComponentUtil.NUMBER_PROPERTIES,dy.number),Zm(hy.ComponentUtil.FUNCTION_PROPERTIES,dy.func);var eC=function(e){function t(t){var n=e.call(this)||this;return n.agGridReact=t,n}return $m(t,e),t.prototype.createWrapper=function(e,t){return new Km.ReactComponent(e,this.agGridReact,t)},t}(hy.BaseComponentWrapper),tC=Object.defineProperty({AgGridReact:Jm},"__esModule",{value:!0}).AgGridReact,nC=my.AgGridColumn;function oC(){return(oC=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 rC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iC(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}function sC(e,t){var n;void 0===t&&(t=iC);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 aC="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function lC(e){cancelAnimationFrame(e.id)}var uC=null;function pC(e){if(void 0===e&&(e=!1),null===uC||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?uC="positive-descending":(t.scrollLeft=1,uC=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),uC}return uC}var cC=function(e,t){return e};function dC(e){var t,n,o=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,p=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return n=t=function(e){var t,n;function d(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,rC(rC(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:rC(rC(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=sC((function(e,t,o,r){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:o,visibleStopIndex:r})})),n._callOnScroll=void 0,n._callOnScroll=sC((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,s=r.direction,a=r.itemSize,l=r.layout,u=n._getItemStyleCache(p&&a,p&&l,p&&s);if(u.hasOwnProperty(e))t=u[e];else{var c,d=o(n.props,e,n._instanceProps),h=i(n.props,e,n._instanceProps),f="horizontal"===s||"horizontal"===l;u[e]=((c={position:"absolute"})["rtl"===s?"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=sC((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(pC()){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&&lC(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=function(e,t){var n=aC(),o={id:requestAnimationFrame((function r(){aC()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))};return o}(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,d.getDerivedStateFromProps=function(e,t){return hC(e,t),c(e),null};var h=d.prototype;return h.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)},h.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(s(this.props,e,t,o,this._instanceProps))},h.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()},h.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(pC()){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()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&lC(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,s=e.innerRef,a=e.innerElementType,l=e.innerTagName,u=e.itemCount,p=e.itemData,c=e.itemKey,d=void 0===c?cC:c,h=e.layout,f=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,m=e.width,C=this.state.isScrolling,w="horizontal"===o||"horizontal"===h,E=w?this._onScrollHorizontal:this._onScrollVertical,b=this._getRangeToRender(),R=b[0],_=b[1],O=[];if(u>0)for(var S=R;S<=_;S++)O.push(J.createElement(t,{data:p,key:d(S,p),index:S,isScrolling:y?C:void 0,style:this._getItemStyle(S)}));var T=r(this.props,this._instanceProps);return J.createElement(f||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:oC({position:"relative",height:i,width:m,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},J.createElement(a||l||"div",{children:O,ref:s,style:{height:w?"100%":T,pointerEvents:C?"none":void 0,width:w?T:"100%"}}))},h._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)}},h._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 u=a(this.props,s,this._instanceProps),p=l(this.props,u,s,this._instanceProps),c=r&&"backward"!==i?1:Math.max(1,n),d=r&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-c),Math.max(0,Math.min(t-1,p+d)),u,p]},d}(J.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var hC=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},fC=dC({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,p="horizontal"===r||"horizontal"===l?u:i,c=Math.max(0,s*a-p),d=Math.min(c,t*a),h=Math.max(0,t*a-p+a);switch("smart"===n&&(n=o>=h-p&&o<=d+p?"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(p/2)?0:f>c+Math.floor(p/2)?c: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,p="horizontal"===o||"horizontal"===a?l:r,c=Math.ceil((p+n-u)/s);return Math.max(0,Math.min(i-1,t+c-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});export{tC as A,fC as F,Uc as a,eg as b,tg as c,vv as d,yv as e,Yp as f,Qc as g,ed as h,$g as i,J as j,ay as k,fh as l,bv as m,ly as n,Gp as o,Yu as p,nC as q,zc as r,Cd as t,gv as u,ov as v,Rd as w};
|