@elliemae/pui-app-sdk 5.44.2 → 5.45.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/build/docs/404.html +2 -2
- package/build/docs/api/classes/Analytics/index.html +2 -2
- package/build/docs/api/classes/CMicroAppGuest/index.html +2 -2
- package/build/docs/api/classes/CMicroAppHost/index.html +2 -2
- package/build/docs/api/classes/ErrorBoundary/index.html +2 -2
- package/build/docs/api/classes/GuestModule/index.html +2 -2
- package/build/docs/api/functions/AppRoot/index.html +3 -3
- package/build/docs/api/functions/Autocomplete/index.html +3 -3
- package/build/docs/api/functions/CheckBox/index.html +3 -3
- package/build/docs/api/functions/ComboBox/index.html +3 -3
- package/build/docs/api/functions/ComboBoxV3/index.html +3 -3
- package/build/docs/api/functions/ConnectForm/index.html +3 -3
- package/build/docs/api/functions/DateInput/index.html +3 -3
- package/build/docs/api/functions/DatePicker/index.html +3 -3
- package/build/docs/api/functions/DateRangePicker/index.html +3 -3
- package/build/docs/api/functions/DateTimePicker/index.html +3 -3
- package/build/docs/api/functions/Form/index.html +3 -3
- package/build/docs/api/functions/FormItemLayout/index.html +3 -3
- package/build/docs/api/functions/FormLayoutBlockItem/index.html +3 -3
- package/build/docs/api/functions/FormSubmitButton/index.html +3 -3
- package/build/docs/api/functions/InputMask/index.html +3 -3
- package/build/docs/api/functions/InputText/index.html +3 -3
- package/build/docs/api/functions/LargeTextBox/index.html +3 -3
- package/build/docs/api/functions/MaskedInputText/index.html +3 -3
- package/build/docs/api/functions/Page/index.html +3 -3
- package/build/docs/api/functions/Radio/index.html +3 -3
- package/build/docs/api/functions/RadioGroup/index.html +3 -3
- package/build/docs/api/functions/RegisterService/index.html +3 -3
- package/build/docs/api/functions/RenderWithStateAddOns/index.html +3 -3
- package/build/docs/api/functions/RequireAuth/index.html +3 -3
- package/build/docs/api/functions/SessionTimeout/index.html +3 -3
- package/build/docs/api/functions/TextBox/index.html +3 -3
- package/build/docs/api/functions/Toggle/index.html +3 -3
- package/build/docs/api/functions/authSaga/index.html +3 -3
- package/build/docs/api/functions/authorize/index.html +3 -3
- package/build/docs/api/functions/buildModuleParams/index.html +3 -3
- package/build/docs/api/functions/cleanup/index.html +3 -3
- package/build/docs/api/functions/configureStore/index.html +3 -3
- package/build/docs/api/functions/createGuestModule/index.html +3 -3
- package/build/docs/api/functions/createManager/index.html +3 -3
- package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +3 -3
- package/build/docs/api/functions/fetchHostAppData/index.html +3 -3
- package/build/docs/api/functions/fetchUserSettings/index.html +3 -3
- package/build/docs/api/functions/getApiActionCreator/index.html +3 -3
- package/build/docs/api/functions/getAppConfig/index.html +3 -3
- package/build/docs/api/functions/getAppConfigValue/index.html +3 -3
- package/build/docs/api/functions/getAuthHTTPClient/index.html +3 -3
- package/build/docs/api/functions/getAuthorizationHeader/index.html +3 -3
- package/build/docs/api/functions/getHTTPClient/index.html +3 -3
- package/build/docs/api/functions/getHostAppDataByKey/index.html +3 -3
- package/build/docs/api/functions/getLogger/index.html +3 -3
- package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +3 -3
- package/build/docs/api/functions/getNavigationLinks/index.html +3 -3
- package/build/docs/api/functions/getRedirectUrl/index.html +3 -3
- package/build/docs/api/functions/getSelectField/index.html +3 -3
- package/build/docs/api/functions/getStore/index.html +3 -3
- package/build/docs/api/functions/initServiceWorker/index.html +3 -3
- package/build/docs/api/functions/isCIBuild/index.html +3 -3
- package/build/docs/api/functions/isProd/index.html +3 -3
- package/build/docs/api/functions/isUserAuthorized/index.html +3 -3
- package/build/docs/api/functions/listenStorageEvents/index.html +3 -3
- package/build/docs/api/functions/loadAppConfig/index.html +3 -3
- package/build/docs/api/functions/loadable/index.html +3 -3
- package/build/docs/api/functions/login/index.html +3 -3
- package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +3 -3
- package/build/docs/api/functions/onAuthorizationFailure/index.html +3 -3
- package/build/docs/api/functions/onGuestUnloadStart/index.html +3 -3
- package/build/docs/api/functions/redactPii/index.html +3 -3
- package/build/docs/api/functions/removeDoubleSlash/index.html +3 -3
- package/build/docs/api/functions/removeStorageEvents/index.html +3 -3
- package/build/docs/api/functions/render/index.html +4 -4
- package/build/docs/api/functions/renderHook/index.html +3 -3
- package/build/docs/api/functions/renderWithHostData/index.html +3 -3
- package/build/docs/api/functions/renderWithRedux/index.html +4 -4
- package/build/docs/api/functions/renderWithRouter/index.html +3 -3
- package/build/docs/api/functions/renderWithRouterRedux/index.html +3 -3
- package/build/docs/api/functions/sdkBaseQuery/index.html +3 -3
- package/build/docs/api/functions/sendBAEvent/index.html +3 -3
- package/build/docs/api/functions/sendMessageToHost/index.html +3 -3
- package/build/docs/api/functions/setAppConfig/index.html +3 -3
- package/build/docs/api/functions/setAppConfigValue/index.html +3 -3
- package/build/docs/api/functions/setHostAppData/index.html +3 -3
- package/build/docs/api/functions/setLoginParams/index.html +4 -4
- package/build/docs/api/functions/setSessionTimeoutInterval/index.html +24 -0
- package/build/docs/api/functions/subscribeToResetSession/index.html +4 -4
- package/build/docs/api/functions/subscribeToSessionExpiry/index.html +3 -3
- package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +3 -3
- package/build/docs/api/functions/trackActivity/index.html +3 -3
- package/build/docs/api/functions/useAppDispatch/index.html +3 -3
- package/build/docs/api/functions/useAppMiddleware/index.html +3 -3
- package/build/docs/api/functions/useInjectQuery/index.html +3 -3
- package/build/docs/api/functions/useInjectReducer/index.html +3 -3
- package/build/docs/api/functions/useInjectSaga/index.html +3 -3
- package/build/docs/api/functions/useInjectSideEffect/index.html +3 -3
- package/build/docs/api/functions/useMediaQueryList/index.html +3 -3
- package/build/docs/api/functions/useStateSelector/index.html +3 -3
- package/build/docs/api/functions/useStateSelectorShallow/index.html +3 -3
- package/build/docs/api/functions/waitFor/index.html +3 -3
- package/build/docs/api/functions/waitForElementToBeRemoved/index.html +3 -3
- package/build/docs/api/functions/withAppDecorator/index.html +3 -3
- package/build/docs/api/index.html +3 -3
- package/build/docs/api/interfaces/AppConfig/index.html +2 -2
- package/build/docs/api/interfaces/GuestProps/index.html +2 -2
- package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +2 -2
- package/build/docs/api/type-aliases/AppDispatch/index.html +2 -2
- package/build/docs/api/type-aliases/AppStore/index.html +2 -2
- package/build/docs/api/type-aliases/Await/index.html +2 -2
- package/build/docs/api/type-aliases/EMUI/index.html +2 -2
- package/build/docs/api/type-aliases/HostOptions/index.html +2 -2
- package/build/docs/api/type-aliases/HostProvidedParams/index.html +2 -2
- package/build/docs/api/type-aliases/ModuleOverrides/index.html +2 -2
- package/build/docs/api/type-aliases/OnHostInitCallback/index.html +2 -2
- package/build/docs/api/type-aliases/OnInitCallback/index.html +2 -2
- package/build/docs/api/type-aliases/OnMountCallback/index.html +2 -2
- package/build/docs/api/type-aliases/OnUnMountCallback/index.html +2 -2
- package/build/docs/api/type-aliases/RootState/index.html +2 -2
- package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +2 -2
- package/build/docs/api/variables/ErrorToast/index.html +2 -2
- package/build/docs/api/variables/FormPropsContext/index.html +2 -2
- package/build/docs/api/variables/GuestMicroApp/index.html +2 -2
- package/build/docs/api/variables/MASK_PIPES/index.html +2 -2
- package/build/docs/api/variables/MASK_TYPES/index.html +2 -2
- package/build/docs/api/variables/MicroApp/index.html +2 -2
- package/build/docs/api/variables/MicroIFrameApp/index.html +2 -2
- package/build/docs/api/variables/NavigationPrompt/index.html +2 -2
- package/build/docs/api/variables/NavigationPromptActions/index.html +2 -2
- package/build/docs/api/variables/Themes/index.html +2 -2
- package/build/docs/api/variables/VisuallyHidden/index.html +2 -2
- package/build/docs/api/variables/WaitMessage/index.html +2 -2
- package/build/docs/api/variables/act/index.html +2 -2
- package/build/docs/api/variables/ariaLive/index.html +2 -2
- package/build/docs/api/variables/auth/index.html +2 -2
- package/build/docs/api/variables/authReducer/index.html +2 -2
- package/build/docs/api/variables/clearSideEffects/index.html +2 -2
- package/build/docs/api/variables/createSideEffect/index.html +2 -2
- package/build/docs/api/variables/decorators/index.html +2 -2
- package/build/docs/api/variables/endSession/index.html +2 -2
- package/build/docs/api/variables/error/index.html +2 -2
- package/build/docs/api/variables/errorMiddleware/index.html +2 -2
- package/build/docs/api/variables/fireEvent/index.html +2 -2
- package/build/docs/api/variables/globalConstants/index.html +2 -2
- package/build/docs/api/variables/history/index.html +2 -2
- package/build/docs/api/variables/httpClientProps/index.html +2 -2
- package/build/docs/api/variables/logout/index.html +2 -2
- package/build/docs/api/variables/memoryHistory/index.html +2 -2
- package/build/docs/api/variables/removeSideEffect/index.html +2 -2
- package/build/docs/api/variables/resetUserIdleTime/index.html +2 -2
- package/build/docs/api/variables/screen/index.html +2 -2
- package/build/docs/api/variables/startSideEffect/index.html +2 -2
- package/build/docs/api/variables/updateBAEventParameters/index.html +2 -2
- package/build/docs/api/variables/useAppSelector/index.html +2 -2
- package/build/docs/api/variables/waitMessageAction/index.html +2 -2
- package/build/docs/api/variables/within/index.html +2 -2
- package/build/docs/assets/js/{2856.0700bd2f.js → 2856.5f4708fe.js} +1 -1
- package/build/docs/assets/js/{386.60c604cf.js → 386.1ca60f37.js} +2 -2
- package/build/docs/assets/js/{3995.097eacab.js → 3995.471cb67b.js} +1 -1
- package/build/docs/assets/js/{5e8c322a.c3cc240b.js → 5e8c322a.cd8f81c9.js} +1 -1
- package/build/docs/assets/js/{6286.44ea15e4.js → 6286.f26d2403.js} +1 -1
- package/build/docs/assets/js/{6779.205be7c8.js → 6779.d05f07c7.js} +1 -1
- package/build/docs/assets/js/77982fdd.daa51d7d.js +1 -0
- package/build/docs/assets/js/822e0178.bea29480.js +1 -0
- package/build/docs/assets/js/a48fd09c.e36a2228.js +1 -0
- package/build/docs/assets/js/fed4ae4f.b3dfb5da.js +1 -0
- package/build/docs/assets/js/main.eb628dfd.js +2 -0
- package/build/docs/assets/js/runtime~main.d66bc46a.js +1 -0
- package/build/docs/index.html +2 -2
- package/build/docs/sitemap.xml +1 -1
- package/build/docs/usage-guide/index.html +2 -2
- package/demo/{1896.619ce620.iframe.bundle.js → 1896.11783677.iframe.bundle.js} +1 -1
- package/demo/1896.11783677.iframe.bundle.js.br +0 -0
- package/demo/{docs/1896.619ce620.iframe.bundle.js.gz → 1896.11783677.iframe.bundle.js.gz} +0 -0
- package/demo/docs/{1896.619ce620.iframe.bundle.js → 1896.11783677.iframe.bundle.js} +1 -1
- package/demo/docs/1896.11783677.iframe.bundle.js.br +0 -0
- package/demo/{1896.619ce620.iframe.bundle.js.gz → docs/1896.11783677.iframe.bundle.js.gz} +0 -0
- package/demo/docs/iframe.html +1 -1
- package/demo/docs/index.html +1 -1
- package/demo/docs/{main.a6b1ae4b10ba95f2bb8e.manager.bundle.js → main.7fe19f1fb477a0b9fcce.manager.bundle.js} +1 -1
- package/demo/docs/main.7fe19f1fb477a0b9fcce.manager.bundle.js.br +0 -0
- package/demo/docs/{main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.gz → main.7fe19f1fb477a0b9fcce.manager.bundle.js.gz} +0 -0
- package/demo/docs/main.ccc2d540.iframe.bundle.js +5 -0
- package/demo/docs/main.ccc2d540.iframe.bundle.js.br +0 -0
- package/demo/docs/main.ccc2d540.iframe.bundle.js.gz +0 -0
- package/demo/docs/project.json +1 -1
- package/demo/iframe.html +1 -1
- package/demo/index.html +1 -1
- package/demo/{main.a6b1ae4b10ba95f2bb8e.manager.bundle.js → main.7fe19f1fb477a0b9fcce.manager.bundle.js} +1 -1
- package/demo/main.7fe19f1fb477a0b9fcce.manager.bundle.js.br +0 -0
- package/demo/{main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.gz → main.7fe19f1fb477a0b9fcce.manager.bundle.js.gz} +0 -0
- package/demo/main.ccc2d540.iframe.bundle.js +5 -0
- package/demo/main.ccc2d540.iframe.bundle.js.br +0 -0
- package/demo/main.ccc2d540.iframe.bundle.js.gz +0 -0
- package/demo/project.json +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/utils/session-timeout-config.js +8 -1
- package/dist/cjs/utils/session.js +5 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/utils/session-timeout-config.js +8 -1
- package/dist/esm/utils/session.js +7 -1
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/lib/utils/session-timeout-config.d.ts +1 -0
- package/dist/types/lib/utils/session.d.ts +5 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/docs/assets/js/822e0178.dfd661b8.js +0 -1
- package/build/docs/assets/js/a48fd09c.49a10fd0.js +0 -1
- package/build/docs/assets/js/fed4ae4f.4cbcd19c.js +0 -1
- package/build/docs/assets/js/main.1bebbb71.js +0 -2
- package/build/docs/assets/js/runtime~main.995cc93a.js +0 -1
- package/demo/1896.619ce620.iframe.bundle.js.br +0 -0
- package/demo/docs/1896.619ce620.iframe.bundle.js.br +0 -0
- package/demo/docs/main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.br +0 -0
- package/demo/docs/main.b368484e.iframe.bundle.js +0 -5
- package/demo/docs/main.b368484e.iframe.bundle.js.br +0 -0
- package/demo/docs/main.b368484e.iframe.bundle.js.gz +0 -0
- package/demo/main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.br +0 -0
- package/demo/main.b368484e.iframe.bundle.js +0 -5
- package/demo/main.b368484e.iframe.bundle.js.br +0 -0
- package/demo/main.b368484e.iframe.bundle.js.gz +0 -0
- /package/build/docs/assets/js/{386.60c604cf.js.LICENSE.txt → 386.1ca60f37.js.LICENSE.txt} +0 -0
- /package/build/docs/assets/js/{main.1bebbb71.js.LICENSE.txt → main.eb628dfd.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[2856],{2856(t,e,n){n.d(e,{diagram:()=>ht});var i=n(4969),r=n(3639),a=n(4689),s=n(2371),o=n(8053),c=n(7012),l=n(3212),h=n(8480),d=n(9515),u=function(){var t=(0,o.K)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],a=[1,15],s=[1,16],c=[1,19],l=[1,20],h={trace:(0,o.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:(0,o.K)(function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:i.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:i.addTask(a[o],0,""),this.$=a[o];break;case 19:i.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:a,20:s,21:17,22:18,23:c,24:l},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:n,15:i,17:r,19:a,20:s,21:17,22:18,23:c,24:l},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:(0,o.K)(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:(0,o.K)(function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,c="",l=0,h=0,d=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var m=p.options&&p.options.ranges;function x(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K)(function(t){n.length=n.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,o.K)(x,"lex");for(var b,k,_,w,v,$,K,S,E,R={};;){if(_=n[n.length-1],this.defaultActions[_]?w=this.defaultActions[_]:(null==b&&(b=x()),w=s[_]&&s[_][b]),void 0===w||!w.length||!w[0]){var T="";for($ in E=[],s[_])this.terminals_[$]&&$>2&&E.push("'"+this.terminals_[$]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:f,expected:E})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(w[0]){case 1:n.push(b),r.push(p.yytext),a.push(p.yylloc),n.push(w[1]),b=null,k?(b=k,k=null):(h=p.yyleng,c=p.yytext,l=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if(K=this.productions_[w[1]][1],R.$=r[r.length-K],R._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},m&&(R._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply(R,[c,h,l,g.yy,w[1],r,a].concat(u))))return v;K&&(n=n.slice(0,-1*K*2),r=r.slice(0,-1*K),a=a.slice(0,-1*K)),n.push(this.productions_[w[1]][0]),r.push(R.$),a.push(R._$),S=s[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:(0,o.K)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,o.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,o.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,o.K)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,o.K)(function(){return this._more=!0,this},"more"),reject:(0,o.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,o.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,o.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,o.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,o.K)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,o.K)(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},"test_match"),next:(0,o.K)(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,o.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,o.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,o.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,o.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,o.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,o.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,o.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,o.K)(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function u(){this.yy={}}return h.lexer=d,(0,o.K)(u,"Parser"),u.prototype=h,h.Parser=u,new u}();u.parser=u;var p=u,g={};(0,o.V)(g,{addEvent:()=>T,addSection:()=>K,addTask:()=>R,addTaskOrg:()=>I,clear:()=>w,default:()=>L,getCommonDb:()=>_,getDirection:()=>$,getSections:()=>S,getTasks:()=>E,setDirection:()=>v});var y="",f=0,m="LR",x=[],b=[],k=[],_=(0,o.K)(()=>a.Wt,"getCommonDb"),w=(0,o.K)(function(){x.length=0,b.length=0,y="",k.length=0,m="LR",(0,a.IU)()},"clear"),v=(0,o.K)(function(t){m=t},"setDirection"),$=(0,o.K)(function(){return m},"getDirection"),K=(0,o.K)(function(t){y=t,x.push(t)},"addSection"),S=(0,o.K)(function(){return x},"getSections"),E=(0,o.K)(function(){let t=M();let e=0;for(;!t&&e<100;)t=M(),e++;return b.push(...k),b},"getTasks"),R=(0,o.K)(function(t,e,n){const i={id:f++,section:y,type:y,task:t,score:e||0,events:n?[n]:[]};k.push(i)},"addTask"),T=(0,o.K)(function(t){k.find(t=>t.id===f-1).events.push(t)},"addEvent"),I=(0,o.K)(function(t){const e={section:y,type:y,description:t,task:t,classes:[]};b.push(e)},"addTaskOrg"),M=(0,o.K)(function(){const t=(0,o.K)(function(t){return k[t].processed},"compileTask");let e=!0;for(const[n,i]of k.entries())t(n),e=e&&i.processed;return e},"compileTasks"),L={clear:w,getCommonDb:_,getDirection:$,setDirection:v,addSection:K,getSections:S,getTasks:E,addTask:R,addTaskOrg:I,addEvent:T},H=0,C=(0,o.K)(function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),N=(0,o.K)(function(t,e){const n=15,i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");function a(t){const i=(0,c.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function s(t){const i=(0,c.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function l(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,o.K)(a,"smile"),(0,o.K)(s,"sad"),(0,o.K)(l,"ambivalent"),e.score>3?a(r):e.score<3?s(r):l(r),i},"drawFace"),D=(0,o.K)(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),A=(0,o.K)(function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},"drawText"),O=(0,o.K)(function(t,e){function n(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}(0,o.K)(n,"genPoints");const i=t.append("polygon");i.attr("points",n(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,A(t,e)},"drawLabel"),B=(0,o.K)(function(t,e,n){const i=t.append("g"),r=F();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,C(i,r),V(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),P=-1,W=(0,o.K)(function(t,e,n,i){const r=e.x+n.width/2,a=t.append("g");P++;a.append("line").attr("id",i+"-task"+P).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),N(a,{cx:r,cy:300+30*(5-e.score),score:e.score});const s=F();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,C(a,s),V(n)(e.task,a,s.x,s.y,s.width,s.height,{class:"task"},n,e.colour)},"drawTask"),j=(0,o.K)(function(t,e){C(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),z=(0,o.K)(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),F=(0,o.K)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),V=function(){function t(t,e,n,r,a,s,o,c){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function e(t,e,n,r,a,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,u=t.split(/<br\s*\/?>/gi);for(let p=0;p<u.length;p++){const t=p*h-h*(u.length-1)/2,c=e.append("text").attr("x",n+a/2).attr("y",r).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);c.append("tspan").attr("x",n+a/2).attr("dy",t).text(u[p]),c.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(c,o)}}function n(t,n,r,a,s,o,c,l){const h=n.append("switch"),d=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,o,c,l),i(d,c)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return(0,o.K)(t,"byText"),(0,o.K)(e,"byTspan"),(0,o.K)(n,"byFo"),(0,o.K)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),G=(0,o.K)(function(t,e){H=0,P=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function U(t,e){t.each(function(){var t,n=(0,c.Ltv)(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let c=0;c<i.length;c++)t=i[i.length-1-c],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(0,o.K)(U,"wrap");var Z=(0,o.K)(function(t,e,n,i,r,a=!1){const{theme:s,look:o}=i,l=s?.includes("redux"),h=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=t.append("g");e.section=h,d.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+h);const u=d.append("g"),p=d.append("g"),g=p.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(U,e.width).node().getBBox(),y=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=g.height+1.1*y*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,p.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),l&&p.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),J(u,e,h,r,i),"neo"===o&&(d.attr("data-look","neo"),l)){const e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),i=(0,c.Ltv)(n),r=i.attr("id")??"",a=r?`${r}-drop-shadow`:"drop-shadow";if(i.select(`#${a}`).empty()){const t=i.select("defs");(t.empty()?i.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),q=(0,o.K)(function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(U,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),J=(0,o.K)(function(t,e,n,i,r){const{theme:a}=r,s=a?.includes("redux")?0:5,o=s>0?`M0 ${e.height-5} v${10-e.height} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",i+"-node-"+H++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),Y={drawRect:C,drawCircle:D,drawSection:B,drawText:A,drawLabel:O,drawTask:W,drawBackgroundRect:j,getTextObj:z,getNoteRect:F,initGraphics:G,drawNode:Z,getVirtualNodeHeight:q},X=(0,o.K)(function(t,e,n,i){const r=(0,a.D7)(),{look:o,theme:l,themeVariables:h}=r,{useGradient:d,gradientStart:u,gradientStop:p}=h,g=r.timeline?.leftMargin??50;s.R.debug("timeline",i.db);const y=r.securityLevel;let f;"sandbox"===y&&(f=(0,c.Ltv)("#i"+e));const m=("sandbox"===y?(0,c.Ltv)(f.nodes()[0].contentDocument.body):(0,c.Ltv)("body")).select("#"+e);m.append("g");const x=i.db.getTasks(),b=i.db.getCommonDb().getDiagramTitle();s.R.debug("task",x),Y.initGraphics(m,e);const k=i.db.getSections();s.R.debug("sections",k);let _=0,w=0,v=0,$=0,K=50+g,S=50;$=50;let E=0,R=!0;k.forEach(function(t){const e={number:E,descr:t,section:E,width:150,padding:20,maxHeight:_},n=Y.getVirtualNodeHeight(m,e,r);s.R.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let T=0,I=0;s.R.debug("tasks.length",x.length);for(const[a,c]of x.entries()){const t={number:a,descr:c,section:c.section,width:150,padding:20,maxHeight:w},e=Y.getVirtualNodeHeight(m,t,r);s.R.debug("taskHeight before draw",e),w=Math.max(w,e+20),T=Math.max(T,c.events.length);let n=0;for(const i of c.events){const t={descr:i,section:c.section,number:c.section,width:150,padding:20,maxHeight:50};n+=Y.getVirtualNodeHeight(m,t,r)}c.events.length>0&&(n+=10*(c.events.length-1)),I=Math.max(I,n)}s.R.debug("maxSectionHeight before draw",_),s.R.debug("maxTaskHeight before draw",w),k&&k.length>0?k.forEach(t=>{const n=x.filter(e=>e.section===t),i={number:E,descr:t,section:E,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};s.R.debug("sectionNode",i);const a=m.append("g"),o=Y.drawNode(a,i,E,r,e);s.R.debug("sectionNode output",o),a.attr("transform",`translate(${K}, 50)`),S+=_+50,n.length>0&&Q(m,n,E,K,S,w,r,T,I,_,!1,e),K+=200*Math.max(n.length,1),S=50,E++}):(R=!1,Q(m,x,E,K,S,w,r,T,I,_,!0,e));const M=m.node().getBBox();s.R.debug("bounds",M),b&&m.append("text").text(b).attr("x","neo"===o?2*M.x+g:M.width/2-g).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),v=R?_+w+150:w+100;if(m.append("g").attr("class","lineWrapper").append("line").attr("x1",g).attr("y1",v).attr("x2",M.width+3*g).attr("y2",v).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===o&&d&&"neutral"!==l){const t=m.select("defs"),e=(t.empty()?m.append("defs"):t).append("linearGradient").attr("id",m.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",p).attr("stop-opacity",1)}(0,a.ot)(void 0,m,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),Q=(0,o.K)(function(t,e,n,i,r,a,o,c,l,h,d,u){for(const p of e){const e={descr:p.task,section:n,number:n,width:150,padding:20,maxHeight:a};s.R.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper"),h=Y.drawNode(c,e,n,o,u).height;if(s.R.debug("taskHeight after draw",h),c.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,h),p.events){const e=t.append("g").attr("class","lineWrapper");let s=a;r+=100,s+=tt(t,p.events,n,i,r,o,u),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${u}-arrowhead)`).attr("stroke-dasharray","5,5")}i+=200,d&&!o.timeline?.disableMulticolor&&n++}r-=10},"drawTasks"),tt=(0,o.K)(function(t,e,n,i,r,a,o){let c=0;const l=r;r+=100;for(const h of e){const e={descr:h,section:n,number:n,width:150,padding:20,maxHeight:50};s.R.debug("eventNode",e);const l=t.append("g").attr("class","eventWrapper"),d=Y.drawNode(l,e,n,a,o,!0).height;c+=d,l.attr("transform",`translate(${i}, ${r})`),r=r+10+d}return r=l,c},"drawEvents"),et={setConf:(0,o.K)(()=>{},"setConf"),draw:X},nt=200,it=(0,o.K)(function(t,e,n,o){const c=(0,a.D7)(),l=c.timeline?.leftMargin??50;s.R.debug("timeline",o.db);const h=(0,i.D)(e);h.append("g");const d=o.db.getTasks(),u=o.db.getCommonDb().getDiagramTitle();s.R.debug("task",d),Y.initGraphics(h);const p=o.db.getSections();s.R.debug("sections",p);let g=0,y=0;const f=50+l;let m=50;const x=m,b=230,k=f+b;let _=0;const w=p&&p.length>0,v=w?k:f+b,$=Math.max(50,580);p.forEach(function(t){const e={number:_,descr:t,section:_,width:$,padding:5,maxHeight:g},n=Y.getVirtualNodeHeight(h,e,c);s.R.debug("sectionHeight before draw",n),g=Math.max(g,n)});let K=0;s.R.debug("tasks.length",d.length);for(const[i,r]of d.entries()){const t={number:i,descr:r,section:r.section,width:nt,padding:5,maxHeight:y},e=Y.getVirtualNodeHeight(h,t,c);s.R.debug("taskHeight before draw",e),y=Math.max(y,e);let n=0;for(const i of r.events){const t={descr:i,section:r.section,number:r.section,width:300,padding:5,maxHeight:50};n+=Y.getVirtualNodeHeight(h,t,c)}r.events.length>0&&(n+=10*(r.events.length-1)),K=Math.max(K,n)+0}s.R.debug("maxSectionHeight before draw",g),s.R.debug("maxTaskHeight before draw",y);const S=Math.max(y,K)+30;w?p.forEach(t=>{const e=d.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:$,padding:5,maxHeight:g};s.R.debug("sectionNode",n);const i=h.append("g"),r=Y.drawNode(i,n,_,c);s.R.debug("sectionNode output",r);const a=v-b;i.attr("transform",`translate(${a}, ${m})`);const o=m+r.height+20;e.length>0&&rt(h,e,_,v,o,y,c,S,!1);const l=e.length,u=r.height+20+S*Math.max(l,1)-(l>0?60:0);m+=u,_++}):rt(h,d,_,v,m,y,c,S,!0);let E=h.node()?.getBBox();if(!E)throw new Error("bbox not found");if(s.R.debug("bounds",E),u){if(h.append("text").text(u).attr("x",E.width/2-l).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),E=h.node()?.getBBox(),!E)throw new Error("bbox not found");s.R.debug("bounds after title",E)}const[R]=(0,r.I5)(c.fontSize),T=2*(R??16),I=.5*(R??16)+20,M=h.append("g").attr("class","lineWrapper");M.append("line").attr("x1",v).attr("y1",x-T).attr("x2",v).attr("y2",E.y+E.height+I).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),M.lower(),(0,a.ot)(void 0,h,c.timeline?.padding??50,c.timeline?.useMaxWidth??!1)},"draw"),rt=(0,o.K)(function(t,e,n,i,r,a,o,c,l){for(const h of e){const e={descr:h.task,section:n,number:n,width:nt,padding:5,maxHeight:a};s.R.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),u=Y.drawNode(d,e,n,o),p=u.height;s.R.debug("taskHeight after draw",p);const g=i-20-u.width;if(d.attr("transform",`translate(${g}, ${r})`),a=Math.max(a,p),h.events&&h.events.length>0){const e=r,a=i+50;at(t,h.events,n,i,a,e,o)}r+=c,l&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),at=(0,o.K)(function(t,e,n,i,r,a,o){let c=a;for(const l of e){const e={descr:l,section:n,number:n,width:300,padding:5,maxHeight:0};s.R.debug("eventNode",e);const a=t.append("g").attr("class","eventWrapper"),h=Y.drawNode(a,e,n,o).height;a.attr("transform",`translate(${r}, ${c})`);const d=c+h/2;t.append("g").attr("class","lineWrapper").append("line").attr("x1",i).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),c=c+h+10}return c-a},"drawEvents"),st={setConf:(0,o.K)(()=>{},"setConf"),draw:it},ot=(0,o.K)(t=>{const{theme:e}=(0,a.zj)(),n=e?.includes("dark"),i=e?.includes("color"),r=t.svgId?.replace(/^#/,"")??"",s=r?`url(#${r}-drop-shadow)`:t.dropShadow??"none";let o="";for(let a=0;a<t.THEME_COLOR_LIMIT;a++){const e=""+(17-3*a),r=i?t.borderColorArray[a]:t.mainBkg,c=i?t.borderColorArray[a]:t.nodeBorder;o+=`\n .section-${a-1} rect,\n .section-${a-1} path,\n .section-${a-1} circle {\n fill: ${n&&i?t.mainBkg:r};\n stroke: ${c};\n stroke-width: ${t.strokeWidth};\n filter: ${s};\n }\n\n .section-${a-1} text {\n fill: ${t.nodeBorder};\n font-weight: ${t.fontWeight}\n }\n\n .node-icon-${a-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+a]};\n }\n\n .section-edge-${a-1} {\n stroke: ${t["cScale"+a]};\n }\n\n .edge-depth-${a-1} {\n stroke-width: ${e};\n }\n\n .section-${a-1} line {\n stroke: ${t["cScaleInv"+a]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${t.nodeBorder};\n stroke-width:${t.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return o},"genReduxSections"),ct=(0,o.K)(t=>{let e="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],(0,l.A)(t["lineColor"+n])?t["lineColor"+n]=(0,h.A)(t["lineColor"+n],20):t["lineColor"+n]=(0,d.A)(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return e},"genSections"),lt=(0,o.K)(t=>{const{theme:e}=(0,a.zj)(),n=e?.includes("redux"),i="neutral"===e,r=t.svgId?.replace(/^#/,"")??"";let s="";if(t.useGradient&&r&&t.THEME_COLOR_LIMIT&&!i)for(let a=0;a<t.THEME_COLOR_LIMIT;a++)s+=`\n .section-${a-1}[data-look="neo"] rect,\n .section-${a-1}[data-look="neo"] path,\n .section-${a-1}[data-look="neo"] circle {\n fill: ${t.mainBkg};\n stroke: url(#${r}-gradient);\n stroke-width: 2;\n }\n .section-${a-1}[data-look="neo"] line {\n stroke: url(#${r}-gradient);\n stroke-width: 2;\n }`;return`\n .edge {\n stroke-width: 3;\n }\n ${n?ot(t):ct(t)}\n ${s}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`},"getStyles"),ht={db:g,renderer:{setConf:(0,o.K)(()=>{},"setConf"),draw:(0,o.K)((t,e,n,i)=>"TD"===(i?.db?.getDirection?.()??"LR")?st.draw(t,e,n,i):et.draw(t,e,n,i),"draw")},parser:p,styles:lt}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[2856],{2856(t,e,n){n.d(e,{diagram:()=>ht});var i=n(4969),r=n(3639),a=n(4689),s=n(2371),o=n(8053),c=n(7012),l=n(3212),h=n(6099),d=n(9515),u=function(){var t=(0,o.K)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],a=[1,15],s=[1,16],c=[1,19],l=[1,20],h={trace:(0,o.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:(0,o.K)(function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:i.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:i.addTask(a[o],0,""),this.$=a[o];break;case 19:i.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:a,20:s,21:17,22:18,23:c,24:l},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:n,15:i,17:r,19:a,20:s,21:17,22:18,23:c,24:l},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:(0,o.K)(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:(0,o.K)(function(t){var e=this,n=[0],i=[],r=[null],a=[],s=this.table,c="",l=0,h=0,d=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var m=p.options&&p.options.ranges;function x(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K)(function(t){n.length=n.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,o.K)(x,"lex");for(var b,k,_,w,v,$,K,S,E,R={};;){if(_=n[n.length-1],this.defaultActions[_]?w=this.defaultActions[_]:(null==b&&(b=x()),w=s[_]&&s[_][b]),void 0===w||!w.length||!w[0]){var T="";for($ in E=[],s[_])this.terminals_[$]&&$>2&&E.push("'"+this.terminals_[$]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:f,expected:E})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(w[0]){case 1:n.push(b),r.push(p.yytext),a.push(p.yylloc),n.push(w[1]),b=null,k?(b=k,k=null):(h=p.yyleng,c=p.yytext,l=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if(K=this.productions_[w[1]][1],R.$=r[r.length-K],R._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},m&&(R._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply(R,[c,h,l,g.yy,w[1],r,a].concat(u))))return v;K&&(n=n.slice(0,-1*K*2),r=r.slice(0,-1*K),a=a.slice(0,-1*K)),n.push(this.productions_[w[1]][0]),r.push(R.$),a.push(R._$),S=s[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:(0,o.K)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,o.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,o.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,o.K)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,o.K)(function(){return this._more=!0,this},"more"),reject:(0,o.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,o.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,o.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,o.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,o.K)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,o.K)(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},"test_match"),next:(0,o.K)(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,o.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,o.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,o.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,o.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,o.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,o.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,o.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,o.K)(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function u(){this.yy={}}return h.lexer=d,(0,o.K)(u,"Parser"),u.prototype=h,h.Parser=u,new u}();u.parser=u;var p=u,g={};(0,o.V)(g,{addEvent:()=>T,addSection:()=>K,addTask:()=>R,addTaskOrg:()=>I,clear:()=>w,default:()=>L,getCommonDb:()=>_,getDirection:()=>$,getSections:()=>S,getTasks:()=>E,setDirection:()=>v});var y="",f=0,m="LR",x=[],b=[],k=[],_=(0,o.K)(()=>a.Wt,"getCommonDb"),w=(0,o.K)(function(){x.length=0,b.length=0,y="",k.length=0,m="LR",(0,a.IU)()},"clear"),v=(0,o.K)(function(t){m=t},"setDirection"),$=(0,o.K)(function(){return m},"getDirection"),K=(0,o.K)(function(t){y=t,x.push(t)},"addSection"),S=(0,o.K)(function(){return x},"getSections"),E=(0,o.K)(function(){let t=M();let e=0;for(;!t&&e<100;)t=M(),e++;return b.push(...k),b},"getTasks"),R=(0,o.K)(function(t,e,n){const i={id:f++,section:y,type:y,task:t,score:e||0,events:n?[n]:[]};k.push(i)},"addTask"),T=(0,o.K)(function(t){k.find(t=>t.id===f-1).events.push(t)},"addEvent"),I=(0,o.K)(function(t){const e={section:y,type:y,description:t,task:t,classes:[]};b.push(e)},"addTaskOrg"),M=(0,o.K)(function(){const t=(0,o.K)(function(t){return k[t].processed},"compileTask");let e=!0;for(const[n,i]of k.entries())t(n),e=e&&i.processed;return e},"compileTasks"),L={clear:w,getCommonDb:_,getDirection:$,setDirection:v,addSection:K,getSections:S,getTasks:E,addTask:R,addTaskOrg:I,addEvent:T},H=0,C=(0,o.K)(function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),N=(0,o.K)(function(t,e){const n=15,i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");function a(t){const i=(0,c.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function s(t){const i=(0,c.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function l(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,o.K)(a,"smile"),(0,o.K)(s,"sad"),(0,o.K)(l,"ambivalent"),e.score>3?a(r):e.score<3?s(r):l(r),i},"drawFace"),D=(0,o.K)(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),A=(0,o.K)(function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},"drawText"),O=(0,o.K)(function(t,e){function n(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}(0,o.K)(n,"genPoints");const i=t.append("polygon");i.attr("points",n(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,A(t,e)},"drawLabel"),B=(0,o.K)(function(t,e,n){const i=t.append("g"),r=F();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,C(i,r),V(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),P=-1,W=(0,o.K)(function(t,e,n,i){const r=e.x+n.width/2,a=t.append("g");P++;a.append("line").attr("id",i+"-task"+P).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),N(a,{cx:r,cy:300+30*(5-e.score),score:e.score});const s=F();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,C(a,s),V(n)(e.task,a,s.x,s.y,s.width,s.height,{class:"task"},n,e.colour)},"drawTask"),j=(0,o.K)(function(t,e){C(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),z=(0,o.K)(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),F=(0,o.K)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),V=function(){function t(t,e,n,r,a,s,o,c){i(e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function e(t,e,n,r,a,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,u=t.split(/<br\s*\/?>/gi);for(let p=0;p<u.length;p++){const t=p*h-h*(u.length-1)/2,c=e.append("text").attr("x",n+a/2).attr("y",r).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);c.append("tspan").attr("x",n+a/2).attr("dy",t).text(u[p]),c.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(c,o)}}function n(t,n,r,a,s,o,c,l){const h=n.append("switch"),d=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,o,c,l),i(d,c)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return(0,o.K)(t,"byText"),(0,o.K)(e,"byTspan"),(0,o.K)(n,"byFo"),(0,o.K)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),G=(0,o.K)(function(t,e){H=0,P=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function U(t,e){t.each(function(){var t,n=(0,c.Ltv)(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let c=0;c<i.length;c++)t=i[i.length-1-c],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(0,o.K)(U,"wrap");var Z=(0,o.K)(function(t,e,n,i,r,a=!1){const{theme:s,look:o}=i,l=s?.includes("redux"),h=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=t.append("g");e.section=h,d.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+h);const u=d.append("g"),p=d.append("g"),g=p.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(U,e.width).node().getBBox(),y=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=g.height+1.1*y*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,p.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),l&&p.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),J(u,e,h,r,i),"neo"===o&&(d.attr("data-look","neo"),l)){const e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),i=(0,c.Ltv)(n),r=i.attr("id")??"",a=r?`${r}-drop-shadow`:"drop-shadow";if(i.select(`#${a}`).empty()){const t=i.select("defs");(t.empty()?i.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),q=(0,o.K)(function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(U,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),J=(0,o.K)(function(t,e,n,i,r){const{theme:a}=r,s=a?.includes("redux")?0:5,o=s>0?`M0 ${e.height-5} v${10-e.height} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",i+"-node-"+H++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),Y={drawRect:C,drawCircle:D,drawSection:B,drawText:A,drawLabel:O,drawTask:W,drawBackgroundRect:j,getTextObj:z,getNoteRect:F,initGraphics:G,drawNode:Z,getVirtualNodeHeight:q},X=(0,o.K)(function(t,e,n,i){const r=(0,a.D7)(),{look:o,theme:l,themeVariables:h}=r,{useGradient:d,gradientStart:u,gradientStop:p}=h,g=r.timeline?.leftMargin??50;s.R.debug("timeline",i.db);const y=r.securityLevel;let f;"sandbox"===y&&(f=(0,c.Ltv)("#i"+e));const m=("sandbox"===y?(0,c.Ltv)(f.nodes()[0].contentDocument.body):(0,c.Ltv)("body")).select("#"+e);m.append("g");const x=i.db.getTasks(),b=i.db.getCommonDb().getDiagramTitle();s.R.debug("task",x),Y.initGraphics(m,e);const k=i.db.getSections();s.R.debug("sections",k);let _=0,w=0,v=0,$=0,K=50+g,S=50;$=50;let E=0,R=!0;k.forEach(function(t){const e={number:E,descr:t,section:E,width:150,padding:20,maxHeight:_},n=Y.getVirtualNodeHeight(m,e,r);s.R.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let T=0,I=0;s.R.debug("tasks.length",x.length);for(const[a,c]of x.entries()){const t={number:a,descr:c,section:c.section,width:150,padding:20,maxHeight:w},e=Y.getVirtualNodeHeight(m,t,r);s.R.debug("taskHeight before draw",e),w=Math.max(w,e+20),T=Math.max(T,c.events.length);let n=0;for(const i of c.events){const t={descr:i,section:c.section,number:c.section,width:150,padding:20,maxHeight:50};n+=Y.getVirtualNodeHeight(m,t,r)}c.events.length>0&&(n+=10*(c.events.length-1)),I=Math.max(I,n)}s.R.debug("maxSectionHeight before draw",_),s.R.debug("maxTaskHeight before draw",w),k&&k.length>0?k.forEach(t=>{const n=x.filter(e=>e.section===t),i={number:E,descr:t,section:E,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};s.R.debug("sectionNode",i);const a=m.append("g"),o=Y.drawNode(a,i,E,r,e);s.R.debug("sectionNode output",o),a.attr("transform",`translate(${K}, 50)`),S+=_+50,n.length>0&&Q(m,n,E,K,S,w,r,T,I,_,!1,e),K+=200*Math.max(n.length,1),S=50,E++}):(R=!1,Q(m,x,E,K,S,w,r,T,I,_,!0,e));const M=m.node().getBBox();s.R.debug("bounds",M),b&&m.append("text").text(b).attr("x","neo"===o?2*M.x+g:M.width/2-g).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),v=R?_+w+150:w+100;if(m.append("g").attr("class","lineWrapper").append("line").attr("x1",g).attr("y1",v).attr("x2",M.width+3*g).attr("y2",v).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===o&&d&&"neutral"!==l){const t=m.select("defs"),e=(t.empty()?m.append("defs"):t).append("linearGradient").attr("id",m.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",p).attr("stop-opacity",1)}(0,a.ot)(void 0,m,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),Q=(0,o.K)(function(t,e,n,i,r,a,o,c,l,h,d,u){for(const p of e){const e={descr:p.task,section:n,number:n,width:150,padding:20,maxHeight:a};s.R.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper"),h=Y.drawNode(c,e,n,o,u).height;if(s.R.debug("taskHeight after draw",h),c.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,h),p.events){const e=t.append("g").attr("class","lineWrapper");let s=a;r+=100,s+=tt(t,p.events,n,i,r,o,u),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${u}-arrowhead)`).attr("stroke-dasharray","5,5")}i+=200,d&&!o.timeline?.disableMulticolor&&n++}r-=10},"drawTasks"),tt=(0,o.K)(function(t,e,n,i,r,a,o){let c=0;const l=r;r+=100;for(const h of e){const e={descr:h,section:n,number:n,width:150,padding:20,maxHeight:50};s.R.debug("eventNode",e);const l=t.append("g").attr("class","eventWrapper"),d=Y.drawNode(l,e,n,a,o,!0).height;c+=d,l.attr("transform",`translate(${i}, ${r})`),r=r+10+d}return r=l,c},"drawEvents"),et={setConf:(0,o.K)(()=>{},"setConf"),draw:X},nt=200,it=(0,o.K)(function(t,e,n,o){const c=(0,a.D7)(),l=c.timeline?.leftMargin??50;s.R.debug("timeline",o.db);const h=(0,i.D)(e);h.append("g");const d=o.db.getTasks(),u=o.db.getCommonDb().getDiagramTitle();s.R.debug("task",d),Y.initGraphics(h);const p=o.db.getSections();s.R.debug("sections",p);let g=0,y=0;const f=50+l;let m=50;const x=m,b=230,k=f+b;let _=0;const w=p&&p.length>0,v=w?k:f+b,$=Math.max(50,580);p.forEach(function(t){const e={number:_,descr:t,section:_,width:$,padding:5,maxHeight:g},n=Y.getVirtualNodeHeight(h,e,c);s.R.debug("sectionHeight before draw",n),g=Math.max(g,n)});let K=0;s.R.debug("tasks.length",d.length);for(const[i,r]of d.entries()){const t={number:i,descr:r,section:r.section,width:nt,padding:5,maxHeight:y},e=Y.getVirtualNodeHeight(h,t,c);s.R.debug("taskHeight before draw",e),y=Math.max(y,e);let n=0;for(const i of r.events){const t={descr:i,section:r.section,number:r.section,width:300,padding:5,maxHeight:50};n+=Y.getVirtualNodeHeight(h,t,c)}r.events.length>0&&(n+=10*(r.events.length-1)),K=Math.max(K,n)+0}s.R.debug("maxSectionHeight before draw",g),s.R.debug("maxTaskHeight before draw",y);const S=Math.max(y,K)+30;w?p.forEach(t=>{const e=d.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:$,padding:5,maxHeight:g};s.R.debug("sectionNode",n);const i=h.append("g"),r=Y.drawNode(i,n,_,c);s.R.debug("sectionNode output",r);const a=v-b;i.attr("transform",`translate(${a}, ${m})`);const o=m+r.height+20;e.length>0&&rt(h,e,_,v,o,y,c,S,!1);const l=e.length,u=r.height+20+S*Math.max(l,1)-(l>0?60:0);m+=u,_++}):rt(h,d,_,v,m,y,c,S,!0);let E=h.node()?.getBBox();if(!E)throw new Error("bbox not found");if(s.R.debug("bounds",E),u){if(h.append("text").text(u).attr("x",E.width/2-l).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),E=h.node()?.getBBox(),!E)throw new Error("bbox not found");s.R.debug("bounds after title",E)}const[R]=(0,r.I5)(c.fontSize),T=2*(R??16),I=.5*(R??16)+20,M=h.append("g").attr("class","lineWrapper");M.append("line").attr("x1",v).attr("y1",x-T).attr("x2",v).attr("y2",E.y+E.height+I).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),M.lower(),(0,a.ot)(void 0,h,c.timeline?.padding??50,c.timeline?.useMaxWidth??!1)},"draw"),rt=(0,o.K)(function(t,e,n,i,r,a,o,c,l){for(const h of e){const e={descr:h.task,section:n,number:n,width:nt,padding:5,maxHeight:a};s.R.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),u=Y.drawNode(d,e,n,o),p=u.height;s.R.debug("taskHeight after draw",p);const g=i-20-u.width;if(d.attr("transform",`translate(${g}, ${r})`),a=Math.max(a,p),h.events&&h.events.length>0){const e=r,a=i+50;at(t,h.events,n,i,a,e,o)}r+=c,l&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),at=(0,o.K)(function(t,e,n,i,r,a,o){let c=a;for(const l of e){const e={descr:l,section:n,number:n,width:300,padding:5,maxHeight:0};s.R.debug("eventNode",e);const a=t.append("g").attr("class","eventWrapper"),h=Y.drawNode(a,e,n,o).height;a.attr("transform",`translate(${r}, ${c})`);const d=c+h/2;t.append("g").attr("class","lineWrapper").append("line").attr("x1",i).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),c=c+h+10}return c-a},"drawEvents"),st={setConf:(0,o.K)(()=>{},"setConf"),draw:it},ot=(0,o.K)(t=>{const{theme:e}=(0,a.zj)(),n=e?.includes("dark"),i=e?.includes("color"),r=t.svgId?.replace(/^#/,"")??"",s=r?`url(#${r}-drop-shadow)`:t.dropShadow??"none";let o="";for(let a=0;a<t.THEME_COLOR_LIMIT;a++){const e=""+(17-3*a),r=i?t.borderColorArray[a]:t.mainBkg,c=i?t.borderColorArray[a]:t.nodeBorder;o+=`\n .section-${a-1} rect,\n .section-${a-1} path,\n .section-${a-1} circle {\n fill: ${n&&i?t.mainBkg:r};\n stroke: ${c};\n stroke-width: ${t.strokeWidth};\n filter: ${s};\n }\n\n .section-${a-1} text {\n fill: ${t.nodeBorder};\n font-weight: ${t.fontWeight}\n }\n\n .node-icon-${a-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+a]};\n }\n\n .section-edge-${a-1} {\n stroke: ${t["cScale"+a]};\n }\n\n .edge-depth-${a-1} {\n stroke-width: ${e};\n }\n\n .section-${a-1} line {\n stroke: ${t["cScaleInv"+a]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${t.nodeBorder};\n stroke-width:${t.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return o},"genReduxSections"),ct=(0,o.K)(t=>{let e="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],(0,l.A)(t["lineColor"+n])?t["lineColor"+n]=(0,h.A)(t["lineColor"+n],20):t["lineColor"+n]=(0,d.A)(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return e},"genSections"),lt=(0,o.K)(t=>{const{theme:e}=(0,a.zj)(),n=e?.includes("redux"),i="neutral"===e,r=t.svgId?.replace(/^#/,"")??"";let s="";if(t.useGradient&&r&&t.THEME_COLOR_LIMIT&&!i)for(let a=0;a<t.THEME_COLOR_LIMIT;a++)s+=`\n .section-${a-1}[data-look="neo"] rect,\n .section-${a-1}[data-look="neo"] path,\n .section-${a-1}[data-look="neo"] circle {\n fill: ${t.mainBkg};\n stroke: url(#${r}-gradient);\n stroke-width: 2;\n }\n .section-${a-1}[data-look="neo"] line {\n stroke: url(#${r}-gradient);\n stroke-width: 2;\n }`;return`\n .edge {\n stroke-width: 3;\n }\n ${n?ot(t):ct(t)}\n ${s}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`},"getStyles"),ht={db:g,renderer:{setConf:(0,o.K)(()=>{},"setConf"),draw:(0,o.K)((t,e,n,i)=>"TD"===(i?.db?.getDirection?.()??"LR")?st.draw(t,e,n,i):et.draw(t,e,n,i),"draw")},parser:p,styles:lt}}}]);
|