@openfin/workspace-platform 22.2.17 → 22.2.18
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/index.js +1 -1
- package/package.json +1 -1
- package/workspace_platform.zip +0 -0
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var e={847:(e,t)=>{var a={2346:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMostReadable=t.darkenColor=t.lightenColor=void 0;const o=n(a(6535));t.lightenColor=(e,t)=>r(e,"lighten",t),t.darkenColor=(e,t)=>r(e,"darken",t);const r=(e,t,a)=>{if(a&&(a<0||a>100))throw new Error(`${a} must be a number between 0 and 100`);return(0,o.default)(e)[t](a).toString()};t.getMostReadable=(e,t)=>o.default.mostReadable(e,t).toHexString()},2317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IconSize=t.Transition=t.LineHeight=t.FontWeight=t.FontSize=t.FontFamily=t.Shadow=t.Radius=t.UnitPx=t.Unit=t.SizeName=t.Size=t.Color=void 0,t.Color={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"#8C61FF",lightblue:"#36C3FE",aqua:"#00CC88",yellow:"#FFEB00",salmon:"#FF8C4C",pink:"#FF5E60",lightpink:"#FF8FB8",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent",openFinActive:"#4642FF",openFinHover:"#6965FF",lightGray4Active:"#D7DADF",lightGray4Hover:"#EBECEF",darkGray2Active:"#33353B",darkGray2Hover:"#44464E"},t.Size={xsmall:"xsmall",small:"small",base:"base",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge",xxxxlarge:"xxxxlarge"},t.SizeName={[t.Size.xsmall]:"Extra Small",[t.Size.small]:"Small",[t.Size.base]:"Base",[t.Size.large]:"Large",[t.Size.xlarge]:"Extra Large",[t.Size.xxlarge]:"2X Large",[t.Size.xxxlarge]:"3X Large",[t.Size.xxxxlarge]:"4X Large"},t.Unit={[t.Size.xsmall]:4,[t.Size.small]:8,[t.Size.base]:12,[t.Size.large]:16,[t.Size.xlarge]:20,[t.Size.xxlarge]:24,[t.Size.xxxlarge]:32,[t.Size.xxxxlarge]:48},t.UnitPx={[t.Size.xsmall]:"4px",[t.Size.small]:"8px",[t.Size.base]:"12px",[t.Size.large]:"16px",[t.Size.xlarge]:"20px",[t.Size.xxlarge]:"24px",[t.Size.xxxlarge]:"32px",[t.Size.xxxxlarge]:"48px"},t.Radius={[t.Size.xsmall]:"2px",[t.Size.small]:"4px",[t.Size.base]:"8px",[t.Size.large]:"24px",pill:"100vh",round:"50%",none:"0"},t.Shadow={[t.Size.base]:"0 4px 4px rgba(0, 0, 0, 0.25)"},t.FontFamily=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),t.FontSize={[t.Size.xsmall]:"8px",[t.Size.small]:"10px",[t.Size.base]:"12px",[t.Size.large]:"14px",[t.Size.xlarge]:"16px",[t.Size.xxlarge]:"18px",[t.Size.xxxlarge]:"20px",[t.Size.xxxxlarge]:"40px"},t.FontWeight={normal:400,bold:600},t.LineHeight={ui:1,heading:1.2,text:1.5},t.Transition={base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},t.IconSize={[t.Size.xsmall]:t.UnitPx.small,[t.Size.small]:t.UnitPx.base,[t.Size.base]:"15px",[t.Size.large]:t.UnitPx.xlarge,[t.Size.xlarge]:t.UnitPx.xxlarge,[t.Size.xxlarge]:t.UnitPx.xxxlarge,[t.Size.xxxlarge]:t.UnitPx.xxxxlarge}},6893:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;const n=a(2317),o=a(2346),r=a(5939),i={fontFamily:n.FontFamily,fontSize:n.FontSize,fontWeight:n.FontWeight,lineHeight:n.LineHeight,iconSize:n.IconSize,radius:n.Radius,shadow:n.Shadow,transition:n.Transition,unit:n.Unit,px:n.UnitPx},s=(e,t)=>({[`${e}Active`]:(0,o.darkenColor)(t,2),[`${e}Hover`]:(0,o.lightenColor)(t,5),[`${e}Focused`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5]),[`${e}Text`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5])});t.createTheme=e=>Object.assign(Object.assign({},i),{palette:Object.assign(Object.assign(Object.assign({},s(r.Palette.brandPrimary,e.brandPrimary)),s(r.Palette.brandSecondary,e.brandSecondary)),e)})},5939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=void 0,t.Palette={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"}},6535:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,a=/\s+$/;function n(o,r){if(r=r||{},(o=o||"")instanceof n)return o;if(!(this instanceof n))return new n(o,r);var i=function(n){var o,r,i,s={r:0,g:0,b:0},c=1,l=null,d=null,u=null,p=!1,w=!1;return"string"==typeof n&&(n=function(e){e=e.replace(t,"").replace(a,"").toLowerCase();var n,o=!1;if(f[e])e=f[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=R.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=R.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=R.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=R.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=R.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=R.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=R.hex8.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:W(n[4]),format:o?"name":"hex8"}:(n=R.hex6.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:o?"name":"hex"}:(n=R.hex4.exec(e))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:W(n[4]+""+n[4]),format:o?"name":"hex8"}:!!(n=R.hex3.exec(e))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:o?"name":"hex"}}(n)),"object"==e(n)&&(E(n.r)&&E(n.g)&&E(n.b)?(o=n.r,r=n.g,i=n.b,s={r:255*P(o,255),g:255*P(r,255),b:255*P(i,255)},p=!0,w="%"===String(n.r).substr(-1)?"prgb":"rgb"):E(n.h)&&E(n.s)&&E(n.v)?(l=I(n.s),d=I(n.v),s=function(e,t,a){e=6*P(e,360),t=P(t,100),a=P(a,100);var n=Math.floor(e),o=e-n,r=a*(1-t),i=a*(1-o*t),s=a*(1-(1-o)*t),c=n%6;return{r:255*[a,i,r,r,s,a][c],g:255*[s,a,a,i,r,r][c],b:255*[r,r,s,a,a,i][c]}}(n.h,l,d),p=!0,w="hsv"):E(n.h)&&E(n.s)&&E(n.l)&&(l=I(n.s),u=I(n.l),s=function(e,t,a){var n,o,r;function i(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}if(e=P(e,360),t=P(t,100),a=P(a,100),0===t)n=o=r=a;else{var s=a<.5?a*(1+t):a+t-a*t,c=2*a-s;n=i(c,s,e+1/3),o=i(c,s,e),r=i(c,s,e-1/3)}return{r:255*n,g:255*o,b:255*r}}(n.h,l,u),p=!0,w="hsl"),n.hasOwnProperty("a")&&(c=n.a)),c=v(c),{ok:p,format:n.format||w,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:c}}(o);this._originalInput=o,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||i.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}function o(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=(r+i)/2;if(r==i)n=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,l:s}}function r(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=r,c=r-i;if(o=0===r?0:c/r,r==i)n=0;else{switch(r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,v:s}}function i(e,t,a,n){var o=[x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s(e,t,a,n){return[x(A(n)),x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16))].join("")}function c(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s-=t/100,a.s=C(a.s),n(a)}function l(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s+=t/100,a.s=C(a.s),n(a)}function d(e){return n(e).desaturate(100)}function u(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l+=t/100,a.l=C(a.l),n(a)}function p(e,t){t=0===t?0:t||10;var a=n(e).toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(-t/100*255))),a.g=Math.max(0,Math.min(255,a.g-Math.round(-t/100*255))),a.b=Math.max(0,Math.min(255,a.b-Math.round(-t/100*255))),n(a)}function w(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l-=t/100,a.l=C(a.l),n(a)}function g(e,t){var a=n(e).toHsl(),o=(a.h+t)%360;return a.h=o<0?360+o:o,n(a)}function h(e){var t=n(e).toHsl();return t.h=(t.h+180)%360,n(t)}function m(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var a=n(e).toHsl(),o=[n(e)],r=360/t,i=1;i<t;i++)o.push(n({h:(a.h+i*r)%360,s:a.s,l:a.l}));return o}function k(e){var t=n(e).toHsl(),a=t.h;return[n(e),n({h:(a+72)%360,s:t.s,l:t.l}),n({h:(a+216)%360,s:t.s,l:t.l})]}function b(e,t,a){t=t||6,a=a||30;var o=n(e).toHsl(),r=360/a,i=[n(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(n(o));return i}function y(e,t){t=t||6;for(var a=n(e).toHsv(),o=a.h,r=a.s,i=a.v,s=[],c=1/t;t--;)s.push(n({h:o,s:r,v:i})),i=(i+c)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,a,n=this.toRgb();return e=n.r/255,t=n.g/255,a=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},setAlpha:function(e){return this._a=v(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+a+"%, "+n+"%)":"hsva("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+a+"%, "+n+"%)":"hsla("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return i(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,a,n,o){var r=[x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16)),x(A(n))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+"%",g:Math.round(100*P(this._g,255))+"%",b:Math.round(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%)":"rgba("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[i(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),a=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=n(e);a="#"+s(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+a+")"},toString:function(e){var t=!!e;e=e||this._format;var a=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(a=this.toRgbString()),"prgb"===e&&(a=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(a=this.toHexString()),"hex3"===e&&(a=this.toHexString(!0)),"hex4"===e&&(a=this.toHex8String(!0)),"hex8"===e&&(a=this.toHex8String()),"name"===e&&(a=this.toName()),"hsl"===e&&(a=this.toHslString()),"hsv"===e&&(a=this.toHsvString()),a||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var a=e.apply(null,[this].concat([].slice.call(t)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},n.fromRatio=function(t,a){if("object"==e(t)){var o={};for(var r in t)t.hasOwnProperty(r)&&(o[r]="a"===r?t[r]:I(t[r]));t=o}return n(t,a)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,a){a=0===a?0:a||50;var o=n(e).toRgb(),r=n(t).toRgb(),i=a/100;return n({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},n.readability=function(e,t){var a=n(e),o=n(t);return(Math.max(a.getLuminance(),o.getLuminance())+.05)/(Math.min(a.getLuminance(),o.getLuminance())+.05)},n.isReadable=function(e,t,a){var o,r,i,s,c,l=n.readability(e,t);switch(r=!1,(i=a,"AA"!==(s=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(c=(i.size||"small").toLowerCase())&&"large"!==c&&(c="small"),o={level:s,size:c}).level+o.size){case"AAsmall":case"AAAlarge":r=l>=4.5;break;case"AAlarge":r=l>=3;break;case"AAAsmall":r=l>=7}return r},n.mostReadable=function(e,t,a){var o,r,i,s,c=null,l=0;r=(a=a||{}).includeFallbackColors,i=a.level,s=a.size;for(var d=0;d<t.length;d++)(o=n.readability(e,t[d]))>l&&(l=o,c=n(t[d]));return n.isReadable(e,c,{level:i,size:s})||!r?c:(a.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],a))};var f=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=n.hexNames=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&(t[e[a]]=a);return t}(f);function v(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var a=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function x(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function A(e){return Math.round(255*parseFloat(e)).toString(16)}function W(e){return M(e)/255}var D,T,B,R=(T="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",B="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(e){return!!R.CSS_UNIT.exec(e)}return n}()}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=e.Palette=e.Color=void 0;var t=o(2317);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return t.Color}});var a=o(5939);Object.defineProperty(e,"Palette",{enumerable:!0,get:function(){return a.Palette}});var n=o(6893);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return n.createTheme}})})();var i=t;for(var s in r)i[s]=r[s];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})},877:()=>{},67:()=>{}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";a.r(n),a.d(n,{AppManifestType:()=>c,BookmarkItemContextMenuOptionType:()=>y,BrowserButtonType:()=>S,ColorSchemeOptionType:()=>m,CustomActionCallerType:()=>C,EnterpriseMainContextMenuOptionType:()=>b,GlobalContextMenuOptionType:()=>h,PageChangeEventType:()=>g,PageTabContextMenuOptionType:()=>k,PanelPosition:()=>w,SUPPORTED_LANGUAGES:()=>M,SaveButtonContextMenuOptionType:()=>v,SaveModalType:()=>x,ViewTabMenuOptionType:()=>f,WindowType:()=>P,getCurrentSync:()=>Aa,init:()=>Ss,initDockCompanion:()=>ys,wrapSync:()=>Ia});var e,t,o,r,i,s,c,l,d={};a.r(d),a.d(d,{createNamespacedLocalStorage:()=>_e,getItem:()=>Ge,removeItem:()=>He,setItem:()=>Ue}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(e||(e={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(t||(t={})),function(e){e.Active="active",e.Default="default"}(o||(o={})),function(e){e.Suggestion="suggestion"}(r||(r={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(i||(i={})),function(e){e.MultiSelect="MultiSelect"}(s||(s={})),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(c||(c={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(l||(l={}));var u,p,w,g,h,m,k,b,y,f,S,v,P,C;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(u||(u={})),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(p||(p={})),function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(w||(w={})),function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(g||(g={})),function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(h||(h={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(m||(m={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.AddToChannel="AddToChannel",e.Custom="Custom"}(k||(k={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.Print="Print",e.Pin="Pin"}(b||(b={})),function(e){e.EditName="Edit Name",e.Move="Move",e.Delete="Delete"}(y||(y={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(f||(f={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(S||(S={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(v||(v={})),function(e){e.Browser="browser",e.Platform="platform"}(P||(P={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(C||(C={}));const M=["en-US","ja-JP","zh-CN","ko-KR","ru-RU","de-DE","zh-Hant"];var x,I;!function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(x||(x={})),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(I||(I={}));const A="undefined"!=typeof window&&"undefined"!=typeof fin,W=("undefined"==typeof process||process.env,"undefined"!=typeof window),D=W&&"undefined"!=typeof indexedDB,T=W?window.origin:I.Local,B=A&&fin.me.uuid,R=A&&fin.me.name,E=A&&fin.me.entityType,F=(I.Local,I.Dev,I.Staging,"prod"===I.Prod),V=e=>e.startsWith("http://")||e.startsWith("https://")?e:T+e,N=V("https://workspace.openfin.co/workspace/22.2.17"),L=V("https://workspace.openfin.co/workspace/22.2.17"),_=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&V(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&V(WORKSPACE_DOCS_CLIENT_URL),"41.134.102.4"),O="22.2.17";"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA;var U,G;!function(e){e.Home="/home/",e.HomeSearch="/home/?deeplink=search",e.HomePagesRename="/home/pages/rename/",e.Dock="/dock/",e.Docs="/provider/docs/",e.Storefront="/storefront/",e.DeprecatedAlert="/provider/deprecated-alert/",e.Analytics="/provider/analytics/",e.Provider="/provider/"}(U||(U={})),function(e){e.Browser="/browser/",e.BrowserPopupMenu="/popup-menu/",e.BrowserPopupMenuSaveModal="/popup-menu/save-modal/",e.BrowserPopupMenuLayouts="/popup-menu/layouts/layouts/",e.BrowserPopupMenuColorLinking="/popup-menu/color-linking/color-linking/",e.BrowserIndicator="/indicator/",e.BrowserPopupMenuAddressSearchResultsView="/popup-menu/address-search-results-view/",e.ResponseModal="/popup-menu/response-modal/",e.CloseConfirmationModal="/popup-menu/close-confirmation-modal/",e.EnterpriseBrowser="/enterprise/",e.EnterpriseLandingPage="/enterprise/landing/",e.EnterpriseContextMenu="/context-menu/",e.EnterpriseBookmarkDialog="/bookmark-dialog/",e.DropdownMenu="/dropdown-menu/",e.EnterpriseDock="/dock/",e.ZoomControlsDialog="/zoom-controls-dialog/"}(G||(G={}));const H={...U,...G};var $;!function(e){e.Search="search"}($||($={}));const z=H;async function K(){const e="getManifestOverrides",{manifest:t,initialOptions:a}=await fin.Application.getCurrentSync().getInfo();return t?.platform.workspace||t?.platform.home||a?.workspace||a?.home||console.warn(`${e}: Missing Home development manifest overrides, using Desktop Owner Settings.`),t?.platform.workspace?(JSON.stringify(t?.platform.workspace),t?.platform.workspace):t?.platform.home?(JSON.stringify(t?.platform.home),t?.platform.home):a?.workspace?(JSON.stringify(a?.workspace),a?.workspace):a?.home?(JSON.stringify(a?.home),a?.home):{}}const J=e=>fin.System.getSystemAppConfig(e);async function Z(){const e="getDOSOverrides";if(!A)return console.warn(`${e}: the fin API was not available, returning no result`),{};try{let t=await J("workspace").catch(t=>{console.warn(`${e}: customConfig entry for SystemApp workspace not available in Desktop Owner Settings. ${t?.message}`)});return t||(t=await J("home")),JSON.stringify(t),t}catch(t){if(!F)return{};if(!(t instanceof Error))throw t;console.warn(`${e}: Missing Workspace Desktop Owner Settings configuration, using defaults. ${t?.message}`)}return{}}let q,j;async function Q(){if(q)return q;const e="getOverrides";if(!A)return W&&console.warn(`${e}: The Fin API was not available. Returning an empty result.`),{};const[t,a]=await Promise.all([Z(),K()]);return q={...a,...t,disableRuntimeValidation:a.disableRuntimeValidation||t.disableRuntimeValidation},q}function Y(e){j=e}const X=e=>e.replace(/\/$/,"");async function ee(){const e=(await Q()).browserBaseUrl;if(e)try{const t=new URL(e);if(t.pathname.endsWith("/"))t.pathname=X(t.pathname);else{if("/workspace"===t.pathname)return t.pathname+=`/${O}`,t.toString();console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url, with path: /workspace. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}}catch(t){console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}return j??L}async function te(e=!1){const t=await ee()+z.Browser;return e?t:X(t)}async function ae(e=!1){const t=await ee()+z.EnterpriseBrowser;return e?t:X(t)}async function ne(){return await ae()+"/landing/"}const oe=async(e,t=!1)=>e?ae(t):te(t);var re,ie;!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(re||(re={})),function(e){e.FinProtocol="fin-protocol"}(ie||(ie={}));const se={uuid:B},ce=(re.Workspace,e=>{if(!A)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)}),le=()=>ce(se);var de;!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.UpdateVersionModal="here-update-version-modal",e.ZoomControlsDialog="here-zoom-controls-dialog"}(de||(de={}));const ue=e=>({left:(e.left+(e.right??e.left+e.width))/2,top:(e.top+(e.bottom??e.top+e.height))/2});function pe(e){if(!A)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const we={name:R,uuid:B};function ge(){return pe(we)}de.Home,re.Workspace,de.Dock,re.Workspace;const he={name:de.Storefront,uuid:re.Workspace};re.Workspace,re.Workspace;async function me(e){const t=pe(e);"minimized"===await t.getState()&&await t.restore(),await t.show(),await t.focus()}const ke=async e=>{try{const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return("browser"===t.workspacePlatform?.windowType||"enterprise"===t.workspacePlatform?.windowType)&&t.workspacePlatform?.pages}catch(e){return console.warn("isBrowserWindow error: ",e),!1}};async function be(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map(async e=>ke(e.identity)));return e.filter((e,a)=>t[a])}async function ye(){return(await fin.Application.getCurrentSync().getChildWindows()).filter(e=>e.identity.name.startsWith(de.BrowserMenu))}const fe=e=>pe(e).getInfo().then(()=>!0).catch(()=>!1),Se=()=>fe(he);function ve(e,t){const a=e.top,n=e.left,o=e.top+e.height,r=e.left+e.width,i=t.monitorRect.top,s=t.monitorRect.left,c=t.monitorRect.bottom,l=t.monitorRect.right;if(a>c||o<i||n>l||r<s)return 0;const d=Math.max(a,i),u=Math.max(n,s);return(Math.min(o,c)-d)*(Math.min(r,l)-u)/(e.height*e.width)}async function Pe(e){const t=await fin.System.getMonitorInfo();return[t.primaryMonitor,...t.nonPrimaryMonitors].reduce((t,a)=>{const n=ve(e,a);return n>t.percentage?{percentage:n,monitor:a}:t},{percentage:0,monitor:t.primaryMonitor}).monitor}const Ce=(e,t)=>{const a=e;return a.workspacePlatform||(a.workspacePlatform={}),a.workspacePlatform._internalDeferShowOptions={setAsForeground:!!t,deferShowEnabled:!0,autoShow:a.workspacePlatform?._internalAutoShow||a.workspacePlatform?._internalDeferShowOptions?.autoShow||void 0===a.autoShow||a.autoShow},a.autoShow=!1,a};const Me=56,xe=728,Ie=150,Ae=async e=>{const t=e?fin.Window.wrapSync(e):fin.Window.getCurrentSync(),a=await t.getOptions();return a.workspacePlatform?.windowType&&"enterprise"===a.workspacePlatform.windowType},We=e=>{const t=e?.defaultWindowOptions?.workspacePlatform?.windowType;return"enterprise"===t};let De;const Te=e=>{if(e)try{return new URL(e).pathname.includes(z.EnterpriseLandingPage.replace(/\/$/,""))}catch(t){console.error("error parsing url: %O",e)}return!1},Be=(e,t=0)=>{let a,n,o=!1;const r=async n=>{const i=await e(...n);if(o){await new Promise(e=>setTimeout(e,t));const e=a;return a=void 0,o=!1,r(e)}return i};return(...e)=>(n?(o=!0,a=e):n=r(e).catch(e=>{throw console.error("makeDebouncedFunc",e),e}).finally(()=>{n=void 0}),n)};var Re;!function(e){e.Top="top",e.Below="below"}(Re||(Re={}));const Ee=async e=>{try{return!!e&&"maximized"===await e.getState()}catch(e){return console.warn("parentWindowMaximized - Failed to get parent window state",e),!1}};async function Fe(e,t,a,n,o,r){const i=!!e&&pe(e),s=await(async(e,t)=>{try{return e?await e.getBounds():t}catch(e){return console.warn("getParentWindowBounds - Failed to get parent window bounds",e),t}})(i,r);if(n===Re.Below){if(!i||await Ee(i)){const e=i?(await Pe(s)).availableRect:(await fin.System.getMonitorInfo()).primaryMonitor.availableRect;return{left:ue(e).left-t/2,top:o?e.bottom-128:e.bottom+12,width:t,height:a}}return{left:ue(s).left-t/2,top:o?s.bottom-128:s.bottom+12,width:t,height:a}}if(!i||await Ee(i)){const e=i?(await Pe(s)).availableRect:(await fin.System.getMonitorInfo()).primaryMonitor.availableRect;return{left:ue(e).left-t/2,top:e.top+20,width:t,height:a}}return{left:ue(s).left-t/2,top:s.top+20,width:t,height:a}}Be(async function(e,t,a,n,o){const r=t.getBoundingClientRect(),i=await Fe(e,r.width,r.height,a,n,o);if(0===i.width||0===i.height)return;const s=ge();await s.setBounds(i),await s.show();const c=setTimeout(()=>s.close(),n?5e3:3e3),l=()=>{clearTimeout(c),s.close()};if(e){const t=pe(e);t.on("bounds-changing",()=>l()),t.on("blurred",()=>l()),t.on("maximized",()=>l()),t.on("minimized",()=>l()),t.on("restored",()=>l())}},10);const Ve=async e=>{const t=e&&await pe(e).getBounds(),a=e?await Pe(t):(await fin.System.getMonitorInfo()).primaryMonitor;return{left:((n=a.availableRect).left+n.right)/2,top:(n.top+n.bottom)/2};var n},Ne=async(e,t,a=!1)=>{let n;if(a)n=await Ve(t);else{const e=pe(t),a=await e.getBounds();n=n??ue(a)}const{defaultHeight:o,defaultWidth:r}=e;return((e,t)=>{const a=t.width/2,n=t.height/2;return{left:Math.round(e.left-a),top:Math.round(e.top-n),width:t.width,height:t.height}})(n,{height:o,width:r})};async function Le(e,t,a=!1){const n=t&&"maximized"===await pe(t).getState(),o=a||n||!t,r=await Ne(e,t,o);return await(async e=>{const t=await fin.System.getMonitorInfo(),a=[t.primaryMonitor,...t.nonPrimaryMonitors];for(const t of a)if(1===ve(e,t))return!1;return!0})(r)?(await pe(t).center(),Ne(e,t,o)):(console.warn("Response modal isn't off screen, not centering parent window"),r)}const _e=e=>({setItem:(t,a)=>{localStorage.setItem(`${e}-${t}`,a)},getItem:t=>localStorage.getItem(`${e}-${t}`),removeItem:t=>localStorage.removeItem(`${e}-${t}`)}),Oe=_e(B),Ue=Oe.setItem,Ge=Oe.getItem,He=Oe.removeItem;var $e;!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}($e||($e={}));const ze=async(e,t,a="workspace-licensing")=>{const n={apiVersion:t.apiVersion||O,componentName:e,componentVersion:t.componentVersion||O,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:a,data:n})};let Ke=!1;const Je=new Map,Ze=e=>{let t=Je.get(e.uuid);return t||(t=Ia(e),t.once("closed",()=>{Je.delete(e.uuid)}),Je.set(e.uuid,t)),t},qe=async(e,t)=>{try{await e._raiseAnalytics([t])}catch(e){console.error("failed to raise analytics event",e)}},je=async e=>{await qe(Ze(fin.me.identity),{source:"Browser",...e})};var Qe=a(847);const Ye=e=>e.replace(/[^\d,]/g,"").split(","),Xe=e=>{if(e.length<2)throw new Error("Invalid color object, cannot convert to HSL.");const t=e[0]/255,a=e[1]/255,n=e[2]/255,o=Math.min(t,a,n),r=Math.max(t,a,n),i=r-o;let s=0,c=0,l=0;return s=0===i?0:r===t?(a-n)/i%6:r===a?(n-t)/i+2:(t-a)/i+4,s=Math.round(60*s),s<0&&(s+=360),l=(r+o)/2,c=0==i?0:i/(1-Math.abs(2*l-1)),c=+(100*c).toFixed(1),l=+(100*l).toFixed(1),{hsl:`hsl(${s}, ${c}%, ${l}%)`,hsla:`hsl(${s}, ${c}%, ${l}%, 1)`,hue:s,lightness:l,saturation:c}},et=e=>{if(!e.includes("#"))throw new Error("Invalid hex value, cannot convert to RGB. Hex value begins with a hashtag.");let t=0,a=0,n=0;if(4===e.length)t=`0x${e[1]}${e[1]}`,a=`0x${e[2]}${e[2]}`,n=`0x${e[3]}${e[3]}`;else{if(7!==e.length)throw new Error("Invalid hex string length, cannot convert to RGB.");t=`0x${e[1]}${e[2]}`,a=`0x${e[3]}${e[4]}`,n=`0x${e[5]}${e[6]}`}return[+t,+a,+n]},tt=e=>{const t=e;if(t.startsWith("#")){return{rgb:et(t).join(", "),alpha:1}}const a=t.match(/\d{1,3}(\.\d+)?/g);if(a){const[e,t,n,o]=a;return{rgb:`${e}, ${t}, ${n}`,alpha:void 0!==o?parseFloat(o):1}}return{rgb:et(e).join(", "),alpha:1}},at=(e,t=!1)=>{const a=(e=>{if(!e)throw new Error("Color is not defined");const t=e.toLowerCase();let a;if(t.includes("rgb")){const e=Ye(t);e.length>3&&e.pop(),a=Xe(e).hue}if(t.includes("#")){const e=et(t);a=Xe(e).hue}t.includes("hsl")&&(a=Ye(t)[0]);const n=a?.toString();if(!n)throw new Error(`Hue was unable to be extracted from "${t}", check color format. Accepted formats are: rgb(), rgba(), hex, hsl(), and hsla()`);return n})(e);return t?{background1:`hsla(${a}, 0%, 100%, 1)`,background2:`hsla(${a}, 67%, 99%, 1)`,background3:`hsla(${a}, 26%, 96%, 1)`,background4:`hsla(${a}, 15%, 94%, 1)`,background5:`hsla(${a}, 10%, 88%, 1)`,background6:`hsla(${a}, 80%, 80%, 1)`}:{background1:`hsla(${a}, 8%, 7%, 1)`,background2:`hsla(${a}, 8%, 13%, 1)`,background3:`hsla(${a}, 9%, 15%, 1)`,background4:`hsla(${a}, 6%, 23%, 1)`,background5:`hsla(${a}, 21%, 28%, 1)`,background6:`hsla(${a}, 5%, 51%, 1)`}},nt=(e,t)=>{const a={};return Object.keys(e).forEach(n=>{a[n]=t[n]?t[n]:e[n]}),a};var ot=a(877),rt=a.n(ot),it=a(67),st=a.n(it);const ct={light:{symbol:st()?.src||""},dark:{symbol:rt()?.src||""}},lt=W&&"complete"!==document.readyState&&new Promise(e=>document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&e()}));function dt(e){let t;const a=new Set;return()=>{if(!A)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await lt;const n={clientAPIVersion:O},o=await fin.InterApplicationBus.Channel.connect(e,{payload:n});return o.onDisconnection(async()=>{a.forEach(e=>e()),a.clear(),console.warn(`disconnected from channel provider ${e}`),t=void 0}),o})().then(e=>(e.addDisconnectionListener=e=>{a.add(e)},e)).catch(a=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${a}`)})),t}}var ut,pt;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(ut||(ut={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(pt||(pt={}));const wt=dt("__of_workspace_protocol__"),gt=wt;dt("__search-openfin-browser-home-topic__");var ht;!function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal"}(ht||(ht={}));const mt=async e=>fin.Platform.wrapSync(e).getClient(),kt=async e=>{const t=await mt(e),a="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let n;try{n=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(a)}if("boolean"==typeof n&&n)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),n;if("object"==typeof n&&n.isWorkspacePlatform)return n;throw new Error(a)},bt=async e=>(await kt(e),mt(e)),yt=async e=>{const t=await kt(e);if("object"==typeof t&&!0!==t?.isBrowserInitialized)throw new Error("Target is not a Browser-enabled Workspace Platform.");return mt(e)},ft="dark",St={[Qe.Palette.brandPrimary]:"#0A76D3",[Qe.Palette.brandPrimaryActive]:"#0A71C9",[Qe.Palette.brandPrimaryHover]:"#0B84EB",[Qe.Palette.brandPrimaryFocused]:Qe.Color.white,[Qe.Palette.brandPrimaryText]:Qe.Color.white,[Qe.Palette.statusSuccess]:Qe.Color.functional1,[Qe.Palette.statusWarning]:Qe.Color.functional10,[Qe.Palette.statusCritical]:Qe.Color.functional7,[Qe.Palette.statusActive]:Qe.Color.functional3,[Qe.Palette.contentBackground1]:"#0A76D3",[Qe.Palette.contentBackground2]:"#000000",[Qe.Palette.contentBackground3]:"#000000",[Qe.Palette.contentBackground4]:"#000000",[Qe.Palette.contentBackground5]:"#000000",[Qe.Palette.borderNeutral]:Qe.Color.silverGray},vt={...St,[Qe.Palette.background1]:Qe.Color.white,[Qe.Palette.background2]:Qe.Color.lightGray1,[Qe.Palette.background3]:Qe.Color.lightGray2,[Qe.Palette.background4]:Qe.Color.lightGray3,[Qe.Palette.background5]:Qe.Color.lightGray4,[Qe.Palette.background6]:Qe.Color.lightGray5,[Qe.Palette.brandSecondary]:Qe.Color.lightGray4,[Qe.Palette.brandSecondaryActive]:Qe.Color.lightGray4Active,[Qe.Palette.brandSecondaryHover]:Qe.Color.lightGray4Hover,[Qe.Palette.brandSecondaryFocused]:Qe.Color.darkGray5,[Qe.Palette.brandSecondaryText]:Qe.Color.darkGray5,[Qe.Palette.inputBackground]:Qe.Color.lightGray3,[Qe.Palette.inputColor]:Qe.Color.darkGray5,[Qe.Palette.inputPlaceholder]:Qe.Color.darkGray2,[Qe.Palette.inputDisabled]:Qe.Color.neutralGray,[Qe.Palette.inputFocused]:Qe.Color.lightGray5,[Qe.Palette.inputBorder]:Qe.Color.neutralGray,[Qe.Palette.textDefault]:Qe.Color.darkGray5,[Qe.Palette.textHelp]:Qe.Color.darkGray3,[Qe.Palette.textInactive]:Qe.Color.neutralGray},Pt={...St,[Qe.Palette.background1]:Qe.Color.darkGray6,[Qe.Palette.background2]:Qe.Color.darkGray5,[Qe.Palette.background3]:Qe.Color.darkGray4,[Qe.Palette.background4]:Qe.Color.darkGray3,[Qe.Palette.background5]:Qe.Color.darkGray2,[Qe.Palette.background6]:Qe.Color.darkGray1,[Qe.Palette.brandSecondary]:Qe.Color.darkGray2,[Qe.Palette.brandSecondaryActive]:Qe.Color.darkGray2Active,[Qe.Palette.brandSecondaryHover]:Qe.Color.darkGray2Hover,[Qe.Palette.brandSecondaryFocused]:Qe.Color.white,[Qe.Palette.brandSecondaryText]:Qe.Color.white,[Qe.Palette.inputBackground]:Qe.Color.darkGray1,[Qe.Palette.inputColor]:Qe.Color.white,[Qe.Palette.inputPlaceholder]:Qe.Color.lightGray5,[Qe.Palette.inputDisabled]:Qe.Color.neutralGray,[Qe.Palette.inputFocused]:Qe.Color.lightGray5,[Qe.Palette.inputBorder]:Qe.Color.neutralGray,[Qe.Palette.textDefault]:Qe.Color.white,[Qe.Palette.textHelp]:Qe.Color.lightGray5,[Qe.Palette.textInactive]:Qe.Color.neutralGray},Ct=[{label:"OpenFin Default Light and Dark Theme",palettes:{light:{...vt,backgroundPrimary:Qe.Color.darkGray5},dark:{...Pt,backgroundPrimary:Qe.Color.darkGray5}}}],Mt=e=>{const{background:t,foreground:a}=e;return{background:t,foreground:a??"#FFFFFF"}},xt=(e,t)=>({icons:{symbol:e.brand?.icons?.[t]?.symbol||ct[t].symbol}}),It=e=>{const{light:t,dark:a}="palettes"in e?e.palettes:{light:e.palette,dark:e.palette},n=nt(Pt,a),o=nt(vt,t),r=((e,t)=>{const a={...e},n={...t};let o=t.backgroundPrimary?at(t.backgroundPrimary,!0):{},r=e.backgroundPrimary?at(e.backgroundPrimary):{};return o={...o,...n},r={...r,...a},{light:{...t,...o},dark:{...e,...r}}})(a,t),i={...(0,Qe.createTheme)({...n,...r?.dark}),brand:xt(e,"dark")},s={...(0,Qe.createTheme)({...o,...r?.light}),brand:xt(e,"light")},{light:c,dark:l}=(e=>{const t=Object.keys(e.notificationIndicatorColors??{});if(t?.length){const a={},n={};return t.forEach(t=>{const o=e.notificationIndicatorColors[t];"background"in o?(a[t]=Mt(o),n[t]=Mt(o)):(a[t]=Mt(o.dark??o.light),n[t]=Mt(o.light??o.dark))}),{light:n,dark:a}}return{light:null,dark:null}})(e);return i.notificationIndicatorColors=l,s.notificationIndicatorColors=c,{dark:i,light:s}},At=async e=>{const{themes:t,selectedScheme:a}=await(async e=>{const t=fin?.__internal_?.initialOptions?.workspacePlatform?._themeData;if(!t||e.uuid!==we.uuid)return{themes:await Ia(e).Theme.getThemes(),selectedScheme:await Ia(e).Theme.getSelectedScheme()};return t})(e);var n,o;return(n=t?.length?t:Ct,o=a,n.map(e=>{const t="palettes"in e?e.default:ft,{light:a,dark:n}=It(e);return{label:e.label,logoUrl:e.logoUrl,theme:{dark:n,light:a},defaultScheme:o??t}}))[0]},Wt=async e=>{const t=await bt(e||fin.me.identity),a=await t.dispatch(ht.GetSelectedScheme,void 0);return a===m.System?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a},Dt=async(e,t)=>{const a=await At(fin.me.identity),n=await Wt(fin.me.identity)===m.Dark,o=a?.theme;return o?.[n?m.Dark:m.Light]?.palette?.[e]||t};let Tt;const Bt=async e=>{Tt||(Tt=new TextEncoder);const t=Tt.encode(e),a=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(a)).map(e=>e.toString(16).padStart(2,"0")).join("")};function Rt(e){return e&&"object"==typeof e&&!Array.isArray(e)}function Et(e,...t){if(!t.length)return e;const a=t.shift();return Rt(e)&&Rt(a)&&Object.entries(a).forEach(([t,a])=>{if(Rt(a))return e[t]||(e[t]={}),Et(e[t],a);e[t]=a}),Et(e,...t)}const Ft=require("lodash.debounce");var Vt,Nt=a.n(Ft);function Lt(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}!function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.ThemePaletteSheet="ThemePaletteSheet",e.HasMovedStore="HasMovedStore",e.PageDragState="BrowserPageDragState"}(Vt||(Vt={}));const _t=Vt;function Ot(){return localStorage.getItem(_t.MachineName)??"unknown"}let Ut;async function Gt(){return Ut||(Ut=await fin.System.getMachineId()),Ut}const Ht=e=>{if(Array.isArray(e.workspacePlatform?.pages)&&(e.layoutSnapshot||e.layout)){const t=e.workspacePlatform.pages.find(e=>e.isActive);if(t){const a=e.layoutSnapshot?e.layoutSnapshot.layouts[t.layoutContainerKey]:e.layout;if(a)if(t.isLocked){const n=_a(a,t.layout);t.layout=n,e.layout=n}else t.layout=a,e.layout=a}}return e};async function $t(e){const t=e||await fin.Platform.getCurrentSync().getSnapshot();if(t.snapshotDetails?.machineId)return t;const a=Ot();return{...t,snapshotDetails:{...t.snapshotDetails,machineId:await Gt(),machineName:a}}}const zt=async e=>({...e,layoutDetails:{machineId:await Gt(),machineName:Ot()}}),Kt=async(e,t)=>({pageId:Lt(),title:e,layout:await zt(t),isReadOnly:!1}),Jt=async e=>{const t=await Kt(e.title,Fa(e.layout));return e.panels&&(t.panels=e.panels.map(e=>({...e,viewOptions:Ea(e.viewOptions)}))),{...e,...t}},Zt=e=>{const t=fin.Platform.Layout.wrapSync(e);return{show:async()=>{const a=await t.getConfig(),{settings:n,dimensions:o}=a,r=await Ae(e);await t.replace({...a,settings:{...n,hasHeaders:!0,reorderEnabled:!0},dimensions:{...o,headerHeight:r?28:30}})},hide:async e=>{const a=await t.getConfig(),{settings:n,dimensions:o}=await a;await t.replace({...a,settings:{...n,hasHeaders:!1,reorderEnabled:e?.settings?.reorderEnabled??!1},dimensions:{...o,headerHeight:0}})},isShowingTabs:async()=>{try{const e=await t.getConfig(),{settings:a}=await e;return a.hasHeaders}catch(e){return console.error("failed to get layout config: ",e),!0}}}},qt="of-workspace-";const jt=new class{mark(e){performance.mark(`${qt}${e}`)}markStart(e){performance.mark(`${qt}${e}-start`)}markEnd(e){performance.mark(`${qt}${e}-end`)}markEndAndMeasure(e){performance.mark(`${qt}${e}-end`);try{return performance.measure(`${qt}${e}`,`${qt}${e}-start`,`${qt}${e}-end`)}catch(e){0}}markAndMeasure(e,t){performance.mark(`${qt}${e}`);try{return performance.measure(`${qt}${e}-measure`,`${qt}${t}-start`,`${qt}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter(e=>e.name.startsWith(qt))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map(e=>({name:e.name.replace(`${qt}`,"").replace("-measure",""),duration:e.duration}))}},Qt=(e,t)=>t?`${t}-${e.uuid}-${e.name}`:`__browser_window__-${e.uuid}-${e.name}`,Yt=new Map,Xt=e=>(Yt.has(e)||Yt.set(e,dt(e)),Yt.get(e)()),ea=(e,t)=>{const a=Qt(e,t);return Xt(a)};var ta,aa,na,oa,ra,ia;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator",e.SetSelectedLanguage="set-selected-language",e.RefreshBookmarksInternal="refresh-bookmarks",e.GetLayoutsWithSelectedViewsInternal="get-layouts-with-selected-views",e.FocusAndExpandSearchInternal="focus-and-expand-search"}(ta||(ta={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(aa||(aa={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited",e.GetSearchProviders="get-search-providers"}(na||(na={})),function(e){e.CreateBookmarkNode="create-bookmark-node",e.GetBookmarkNode="get-bookmark-node",e.SearchBookmarkNodes="search-bookmark-nodes",e.UpdateBookmarkNode="update-bookmark-node",e.DeleteBookmarkNode="delete-bookmark-node"}(oa||(oa={})),function(e){e.UpdateFavoriteEntries="update-favorite-entries",e.UpdateContentMenu="update-content-menu",e.NavigateContentMenu="navigate-content-menu"}(ra||(ra={})),function(e){e.SendUpdateVersionModalResponse="send-update-version-modal-response"}(ia||(ia={}));const sa={...ta,...aa,...ra},ca=dt(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-bookmarks`),la=e=>({identity:e,openfinWindow:fin.Window.wrapSync(e),_bookmarks:{_createBookmarkNode:async e=>(async e=>(await ca()).dispatch(oa.CreateBookmarkNode,e))(e),_getBookmarkNode:async e=>(async e=>(await ca()).dispatch(oa.GetBookmarkNode,e))(e),_searchBookmarkNodes:async e=>(async e=>(await ca()).dispatch(oa.SearchBookmarkNodes,e))(e),_updateBookmarkNode:async e=>(async e=>(await ca()).dispatch(oa.UpdateBookmarkNode,e))(e),_deleteBookmarkNode:async e=>(async e=>(await ca()).dispatch(oa.DeleteBookmarkNode,e))(e)},getPages:async()=>(await yt(e)).dispatch(ht.GetPagesForWindow,e),getPage:async t=>(await yt(e)).dispatch(ht.GetPageForWindow,{identity:e,pageId:t}),addPage:async t=>Aa().Browser.wrapSync(e)._addPage(t),_addPage:async(t,a)=>{const n=await yt(e),o={identity:e,page:t,insertionIndex:a?.index,multiInstanceViewBehavior:a?.multiInstanceViewBehavior};return n.dispatch(ht.AddPage,o)},removePage:async t=>(await yt(e)).dispatch(ht.DetachPagesFromWindow,{identity:e,pageIds:[t]}),reparentPage:async t=>Aa().Browser.wrapSync(e)._reparentPage(t),_reparentPage:async t=>{const{pageId:a}=t,n=await yt(e),o=(await n.dispatch(ht.GetAllAttachedPages,void 0)).find(({pageId:e})=>e===a);if(!o)throw new Error(`Reparent Page Error: Target page with pageId ${a} not found`);o.multiInstanceViewBehavior="reparent";const r={identity:e,pages:[o],insertionIndex:t.index};return n.dispatch(ht.AttachPagesToWindow,r)},setActivePage:async t=>(await yt(e)).dispatch(ht.SetActivePage,{identity:e,pageId:t}),updatePage:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.UpdatePageForWindow,t)},reorderPages:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.ReorderPagesForWindow,t)},_openGlobalContextMenu:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.OpenGlobalContextMenuInternal,t)},replaceToolbarOptions:async t=>{await yt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{toolbarOptions:t}})},replaceWindowStateButtonOptions:async t=>{await yt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{windowStateButtonOptions:t}})},updateBrowserWindowTitle:async t=>{const a=fin.Window.wrapSync(e);"string"!=typeof t?await a.updateOptions({workspacePlatform:{title:t}}):console.warn("Type string for window title is deprecated, please use WindowTitle type instead",t)},_openViewTabContextMenu:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.OpenViewTabContextMenuInternal,t)},_openPageTabContextMenu:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.OpenPageTabContextMenuInternal,t)},_openSaveModal:async t=>{await yt(e);return(await ea(e)).dispatch(sa.OpenSaveModalInternal,t)},_getLayoutsWithSelectedViews:async()=>(await ea(e)).dispatch(sa.GetLayoutsWithSelectedViewsInternal,e),_openSaveButtonContextMenu:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.OpenSaveButtonContextMenuInternal,t)},_addDefaultPage:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.AddDefaultPage,t)},_trackRemovedTab:async t=>(await yt(e)).dispatch(ht.TrackRemovedTabInternal,t),_restoreRemovedTab:async t=>(await yt(e)).dispatch(ht.RestoreRemovedTabInternal,t),_trackVisitedSite:async t=>(await yt(e)).dispatch(ht.TrackVisitedSiteInternal,t),_getRecentlyVisitedSites:async t=>(await yt(e)).dispatch(ht.GetRecentlyVisitedSitesInternal,t),_getFrequentlyVisitedSites:async t=>(await yt(e)).dispatch(ht.GetFrequentlyVisitedSitesInternal,t),_searchSites:async t=>(await yt(e)).dispatch(ht.SearchSitesInternal,{identity:e,req:t}),_getSearchProviders:async()=>(await yt(e)).dispatch(ht.GetSearchProvidersInternal,{identity:e}),_getCuratedContent:async t=>(await yt(e)).dispatch(ht.GetCuratedContentInternal,{identity:e,req:t}),_handleRequestNavigation:async t=>(await yt(e)).dispatch(ht.HandleRequestNavigationInternal,t),_sendUpdateVersionModalResponse:async t=>(await yt(e)).dispatch(ht.SendUpdateVersionModalResponseInternal,t)}),da=e=>{const t=fin.Platform.wrapSync(e);return{wrapSync:e=>la(e),createWindow:async a=>{const n=(()=>{const e=`browser-window-startup-${Lt()}`;return jt.markStart(e),e})();(e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",()=>{jt.markAndMeasure("browser-window-shown",e)})})(n),await yt(e);const o=await t.createWindow(a);return(e=>{jt.markAndMeasure("browser-window-started",e)})(n),la(o.identity)},getAllAttachedPages:async()=>(await yt(e)).dispatch(ht.GetAllAttachedPages,void 0),getAllWindows:async()=>{await yt(e);return(await be()).map(e=>la(e.identity))},getUniquePageTitle:async t=>(await yt(e)).dispatch(ht.GetUniquePageTitle,t),getLastFocusedWindow:async()=>(await yt(e)).dispatch(ht.GetLastFocusedBrowserWindow,void 0),getPageByViewIdentity:async t=>(await yt(e)).dispatch(ht.GetPageByViewIdentity,t)}},ua=e=>({createPage:async t=>(await yt(e)).dispatch(ht.CreateSavedPageInternal,t),deletePage:async t=>(await yt(e)).dispatch(ht.DeleteSavedPageInternal,t),updatePage:async t=>(await yt(e)).dispatch(ht.UpdateSavedPageInternal,t),getPage:async t=>(await yt(e)).dispatch(ht.GetSavedPage,t),getPages:async t=>(await yt(e)).dispatch(ht.GetSavedPages,t),savePage:async t=>(await yt(e)).dispatch(ht.SavePage,t),createWorkspace:async t=>(await bt(e)).dispatch(ht.CreateSavedWorkspace,t),deleteWorkspace:async t=>{const a=Aa(),n=await a.getCurrentWorkspace();if(n.workspaceId===t)throw new Error(`Cannot delete current active workspace ${n.title}`);return(await bt(e)).dispatch(ht.DeleteSavedWorkspace,t)},updateWorkspace:async t=>(await bt(e)).dispatch(ht.UpdateSavedWorkspace,t),getWorkspace:async t=>(await bt(e)).dispatch(ht.GetSavedWorkspace,t),getWorkspaces:async t=>(await bt(e)).dispatch(ht.GetSavedWorkspaces,t),saveWorkspace:async t=>(await bt(e)).dispatch(ht.SaveWorkspace,t),getDockProviderConfig:async t=>(await bt(e)).dispatch(ht.GetDockProviderConfig,t),saveDockProviderConfig:async t=>(await bt(e)).dispatch(ht.SaveDockProviderConfig,t)});var pa;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(pa||(pa={}));const wa=dt("of-workspace-notifications-sync"),ga=m.System,ha=e=>Object.entries(e).reduce((e,[t,a])=>`${e}--workspace-palette-${t}: ${a};`,""),ma=(e,t)=>{const a=!!e.contentBackground5&&"#000000"!==e.contentBackground5,n=!!e.contentBackground4&&"#000000"!==e.contentBackground4,o=tt(e.textDefault),r=tt(e.textInactive),i=o.rgb,s=r.rgb,c=o.alpha?parseFloat(o.alpha.toString()):1,l=r.alpha?parseFloat(r.alpha.toString()):1;return{dockExpandedContainerBorderColor:a?e.contentBackground5:e.background4,dockExpandedContainerBorderRadius:a&&t?"0":"10px",dockExpandedContainerBackground:n?e.contentBackground4:e.background1,fillerBackgroundColor:n?e.contentBackground4:"inherit",dockCompanionContainerBackground:n?e.contentBackground4:"inherit",dockComponentContainerBackground:a?e.contentBackground5:e.background5,styledDropdownActiveBackground:`${a?e.contentBackground5:e.background4}`,contentMenuWrapperInternalDivBorderColor:a?e.contentBackground5:e.background5,contentMenuItemContainerActiveBackground:a?e.contentBackground5:e.background3,contentMenuItemContainerHoverBackground:a?e.contentBackground5:e.background2,contentMenuHeaderBorderColor:a?e.contentBackground5:e.background5,dockCompanionSeparatorBorderColor:a?e.contentBackground5:e.background3,dockComponentContainerBorderColor:a?e.contentBackground5:e.background5,companionDockButtonActiveBackground:a?e.contentBackground5:e.background4,companionDockButtonHoverBackground:a?e.contentBackground5:e.background4,"computed-scrollbar-thumb-alpha":c,"computed-scrollbar-track-alpha":l,"scrollbar-thumb-rgb":i,"scrollbar-track-rgb":s}},ka=(e,t,a)=>({selectedTab:"dark"===t?e.background3:e.background1,...ma(e,a)});const ba=new class{constructor(e){this.providerStorage=e,this.getVarsByScheme=e=>"dark"===e?this.darkPaletteVars:this.lightPaletteVars,this.setWorkspaceStorage=e=>{this.workspaceStorage=e},this.trySynchronizeWorkspaceStorage=()=>{if(this.workspaceStorage){const e=this.getScheme();if(this.workspaceStorage.setItem(_t.SelectedColorScheme,e),this.darkPaletteVars&&this.lightPaletteVars)if("dark"===e||"light"===e)this.workspaceStorage.setItem(_t.ThemePaletteSheet,`:root{${this.getVarsByScheme(e)}}`);else{const e=`@media (prefers-color-scheme: dark){:root {${this.getVarsByScheme("dark")}}}`,t=`@media (prefers-color-scheme: light){:root{${this.getVarsByScheme("light")}}}`;this.workspaceStorage.setItem(_t.ThemePaletteSheet,`${t}${e}`)}}},this.setPalettes=async({light:e,dark:t},a)=>{this.lightPaletteVars=ha({...e,...ka(e,"light",a)}),this.darkPaletteVars=ha({...t,...ka(t,"dark",a)})}}setScheme(e){this.providerStorage.setItem(_t.SelectedColorScheme,e)}getScheme(){return null===this.providerStorage.getItem(_t.SelectedColorScheme)&&this.providerStorage.setItem(_t.SelectedColorScheme,ga),this.providerStorage.getItem(_t.SelectedColorScheme)}}(d),ya=()=>ba,fa=e=>({getThemes:async()=>(await bt(e)).dispatch(ht.GetThemes,void 0),setSelectedScheme:async t=>(await bt(e)).dispatch(ht.SetSelectedScheme,t),getSelectedScheme:async()=>(await bt(e)).dispatch(ht.GetSelectedScheme,void 0)}),Sa=async e=>{const t=await gt();await t.dispatch("set-selected-scheme",e)},va=async e=>{const t=await wa();await t.dispatch(pa.UpdatePlatformThemeScheme,{scheme:e})},Pa=async e=>{const t=await be();return Promise.all(t.map(async t=>{const a=await ea(t.identity);await a.dispatch(sa.SetSelectedScheme,e)}))},Ca=async e=>{const t=await ye();return Promise.all(t.map(async t=>{const a=await ea(t.identity);await a.dispatch(sa.SetSelectedScheme,e)}))},Ma=async e=>{try{const t=ya();t.setScheme(e),await Promise.all([await t.trySynchronizeWorkspaceStorage(),va(e),Pa(e),Ca(e),Sa(e)])}catch(e){console.error("failed to set the selected scheme: ",e)}},xa=()=>{try{return ya().getScheme()}catch(e){console.error("failed to get the selected scheme: ",e)}},Ia=e=>{const t=fin.Platform.wrapSync(e);let a;return Object.assign(t,{applySnapshot:async(t,a)=>{if("string"!=typeof t&&!t?.windows)throw new Error("Not a valid browser snapshot");return fin.Platform.wrapSync(e).applySnapshot(t,a)},getSnapshot:()=>fin.Platform.wrapSync(e).getSnapshot().then(e=>e),getViewSnapshot:t=>fin.Platform.wrapSync(e).getViewSnapshot(t),createView:(t,a,n)=>fin.Platform.wrapSync(e).createView(t,a,n),launchApp:async t=>{console.warn("launchApp method is deprecated. It is recommended to use createView - https://developers.openfin.co/of-docs/docs/platform-getting-started#add-a-view-to-an-existing-window or createWindow - https://developers.openfin.co/of-docs/docs/platform-getting-started#create-a-platform-window instead."),t.target||(t.target={uuid:B,name:R,entityType:E||"unknown"});return(await bt(e)).dispatch(ht.LaunchApp,t)},_invokeCustomAction:async(t,a)=>{const n=await bt(e),o={actionId:t,payload:{...a,callerType:a.callerType||C.API}};return n.dispatch(ht.InvokeCustomActionInternal,o)},_requestQuitPlatformDialog:async t=>(await bt(e)).dispatch(ht.RequestQuitPlatformDialogInternal,t),_showUpdateVersionModal:async t=>(await bt(e)).dispatch(ht.ShowUpdateVersionModalInternal,t),getCurrentWorkspace:async()=>(await bt(e)).dispatch(ht.GetCurrentWorkspace,void 0),applyWorkspace:async(t,a)=>(await bt(e)).dispatch(ht.ApplyWorkspace,{...t,options:a}),restoreLastSavedWorkspace:async t=>(await bt(e)).dispatch(ht.RestoreLastSavedWorkspaceInternal,t),setActiveWorkspace:async t=>(await bt(e)).dispatch(ht.SetActiveWorkspace,t),getLanguage:async()=>(await bt(e)).dispatch(ht.GetLanguage),_getLanguageResources:async()=>(await bt(e)).dispatch(ht.GetLanguageResourcesInternal),setLanguage:async t=>(await bt(e)).dispatch(ht.SetLanguage,t),_raiseAnalytics:async t=>{if(a||(a=await kt(e)),"object"==typeof a&&a?.analytics?.isSupported){return(await bt(e)).dispatch(ht.Analytics,t)}e.uuid},getNotificationsConfig:async()=>(await bt(e)).dispatch(ht.GetNotificationsConfig),_refreshBookmarksInternal:async()=>(await bt(e)).dispatch(ht.RefreshBookmarksInternal),_launchBookmarkInternal:async t=>(await bt(e)).dispatch(ht.LaunchBookmarkInternal,t),_updateDockFavoritesInternal:async t=>(await bt(e)).dispatch(ht.UpdateDockFavoritesInternal,t),_updateContentMenuInternal:async t=>(await bt(e)).dispatch(ht.UpdateContentMenuInternal,t),_launchDockEntryInternal:async t=>(await bt(e)).dispatch(ht.LaunchDockEntryInternal,t),_setDockFavoritesInternal:async t=>(await bt(e)).dispatch(ht.SetDockFavoritesOrderInternal,t),_setDefaultDockButtonsOrderInternal:async t=>(await bt(e)).dispatch(ht.SetDefaultDockButtonsOrderInternal,t),_removeDockFavoriteInternal:async t=>(await bt(e)).dispatch(ht.RemoveDockFavoriteInternal,t),_addDockFavoriteInternal:async t=>(await bt(e)).dispatch(ht.AddDockFavoriteInternal,t),_navigateContentMenuInternal:async t=>(await bt(e)).dispatch(ht.NavigateContentMenuInternal,t),_openDockWorkspacesContextMenuInternal:async()=>(await bt(e)).dispatch(ht.GetDockWorkspacesContextMenuInternal),_handleDockWorkspacesMenuResponseInternal:async t=>(await bt(e)).dispatch(ht.HandleDockWorkspacesMenuResponseInternal,t),_focusAndExpandSearchInternal:async()=>(await bt(e)).dispatch(ht.FocusAndExpandSearchInternal),Theme:fa(e),Browser:da(e),Storage:ua(e)})},Aa=()=>Ia(fin.me.identity),Wa={contextMenuOptions:{enabled:!0,template:["spellCheck","separator","print","separator","cut","copy","paste","undo","redo","selectAll","inspect","reload"]},downloadShelf:{enabled:!0}};function Da(e,t){return Et({},Wa,t,e)}const Ta="internal-generated-view-",Ba=(e,t)=>e.content?{...e,content:e.content.map(e=>Ba(e,t))}:{...e,componentState:t(e.componentState)},Ra=(e,t)=>{return a=Da(e,t),{...a,name:a.name?a.name:`internal-generated-view-${Lt()}`,_internalWorkspaceData:{...a._internalWorkspaceData,viewIdentifier:a._internalWorkspaceData?.viewIdentifier||Lt()}};var a},Ea=e=>({...e,name:void 0}),Fa=e=>{const t={...e};return Ba(t,Ea)},Va=e=>{const t={...e};return Ba(t,e=>e.name&&e.name.startsWith(Ta)?Ea(e):e)},Na=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach(e=>{if("component"===e.type)return t.push(e.componentState);const a=Na(e.content);t.push(...a)}),t},La=async(e,t,a=we)=>{let n;if(await ke(a)){n=(await pe(a).getOptions()).layout||{settings:{}}}return{...n,content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{title:e,url:t}}]}]}};new Map,new Map;const _a=(e,t)=>{const a=Na(t.content);return{...Ba(e,e=>{const t=a.find(t=>t._internalWorkspaceData?.viewIdentifier===e._internalWorkspaceData?.viewIdentifier),n=t?t.isClosable:e.isClosable;return{...e,isClosable:n}}),settings:t.settings}},Oa=e=>e?Na(e).length:0,Ua=(Nt()(async e=>{try{if(!e||!e.layoutContainerKey)return;const t=await(async e=>fin.Platform.Layout.wrapSync({...fin.me.identity,layoutName:e}).getConfig())(e.layoutContainerKey),a=t.content?Na(t.content):[],n=a.length;n>1?(async e=>{if("multiView"!==e.attachedPageType){const t=await Aa().Browser.getUniquePageTitle();Aa().Browser.wrapSync(we).updatePage({pageId:e.pageId,page:{title:e.title??t,singleViewName:null,attachedPageType:"multiView"}})}})(e):1===n&&(async(e,t)=>{const a=Aa().Browser.wrapSync(we);if("singleView"!==e.attachedPageType){const n=await Jt(e);delete n.layout,delete n.pageId;const o=fin.View.wrapSync({uuid:we.uuid,name:t}),r=await o.getInfo(),i={...n,title:null,singleViewName:t,hasUnsavedChanges:!1,attachedPageType:"singleView",pageIcon:r.favicons[0]};await a.updatePage({pageId:e.pageId,page:i})}})(e,a[0].name),await(async(e,t)=>{const a=Zt({...we,layoutName:e.layoutContainerKey}),n=await a.isShowingTabs();t>1?n||await a.show():1===t&&n&&await a.hide({settings:{reorderEnabled:!0}})})(e,n)}catch(e){}},50,{leading:!1,trailing:!0}),require("react-i18next")),Ga=require("i18next");var Ha=a.n(Ga);const $a=JSON.parse('{"contextMenu.newWindow":"新建窗口","contextMenu.newPage":"新建页面","contextMenu.restore":"还原到上次保存的更改","contextMenu.switchWorkspace":"切换工作区","contextMenu.appearance":"外观","contextMenu.saveWorkspace":"保存工作区","contextMenu.saveWorkspaceAs":"将工作区另存为...","contextMenu.renameWorkspace":"重命名工作区","contextMenu.deleteWorkspace":"删除工作区","contextMenu.downloads":"下载","contextMenu.savePage":"保存页面","contextMenu.savePageAs":"将页面另存为...","contextMenu.print":"打印...","contextMenu.printScreen":"打印屏幕","contextMenu.closeWindow":"关闭窗口","contextMenu.openStorefront":"开放式店面","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新建视图","contextMenu.openView":"使用默认 Web 浏览器打开视图","contextMenu.openViews":"使用默认 Web 浏览器打开视图","contextMenu.reload":"Reload CN","contextMenu.reloadView":"重新加载视图","contextMenu.reloadViews":"重新加载视图","contextMenu.duplicate":"Duplicate CN","contextMenu.duplicateView":"复制视图","contextMenu.duplicateViews":"复制视图","contextMenu.addView":"将视图添加到频道","contextMenu.addViews":"将视图添加到频道","contextMenu.removeView":"从频道中移除视图","contextMenu.removeViews":"从频道中移除视图","contextMenu.closeView":"关闭视图","contextMenu.closeViews":"关闭视图","contextMenu.closeTab":"Close Tab CN","contextMenu.duplicatePage":"复制页面","contextMenu.submenu.print":"打印","contextMenu.submenu.printAll":"全部打印","saveMenu.saveWorkspaceAs":"将工作区另存为","saveMenu.savePageAs":"将页面另存为","saveModal.enterValue":"Please enter a value CN","saveModal.alreadyExists":"{{title}} 已存在。","saveModal.pleaseEnterValidName":"请输入有效名称","saveModal.renamePage":"重新命名页面","saveModal.closePage":"关闭页面","saveModal.discardChanges":"放弃更改","saveModal.discardAll":"全部放弃","saveModal.saveAll":"全部保存","saveModal.savePagesCount":"关闭前保存 ({{count}}) 个页面?","defaultPageTitle":"Untitled Page CN","enterpriseDefaultPageTitle":"Untitled Supertab CN","addNewPage":"添加新页面","addNewTab":"添加新选项卡","addNewView":"新建视图","restoreModal":"您确定要还原到上次保存的更改吗?","modal.discardWarning":"任何未保存的更改都将丢失","modal.discardPageWarning":"对此页的任何未保存的更改都将丢失。","modal.saveChangesPrompt":"关闭前保存更改?","modal.pageClose":"关闭页面","switchWorkspaceModal":"您确定要切换到 {{workspace}} 吗?","switchWorkspaceModal.warning":"任何未保存的更改都将丢失","deleteWorkspaceModal":"您确定要永久删除此工作区吗?","replaceWorkspaceModal.warning":"名称为 {{workspace}} 的工作区已存在。您是否要替换它?","replaceWorkspaceModal.warning.body":"已存在同名的工作区。替换它将覆盖其当前内容。","replaceWorkspaceModal.replace":"替换","closePlatform":"关闭平台","closePlatform.workspace":"关闭 {{workspace}} 平台","closePlatform.warning":"关闭平台将关闭所有工作区、应用或任何正在运行的进程。","back":"后退","forward":"前进","reload":"重新加载","green":"绿色","purple":"紫色","orange":"橙色","red":"红色","pink":"粉红色","yellow":"黄色","theme.light":"浅色","theme.dark":"深色","theme.system":"与操作系统设置同步","toolbar.hideTabs":"隐藏选项卡","toolbar.showTabs":"显示选项卡","toolbar.lock":"锁定","toolbar.unlock":"解锁","toolbar.colorLinking":"颜色链接","toolbar.changeLayout":"更改布局","toolbar.saveMenu":"保存菜单","toolbar.maximizeWindow":"最大化窗口","toolbar.restoreWindow":"还原窗口","toolbar.minimizeWindow":"最小化窗口","changeLayout.fullWidth":"全宽","changeLayout.columns":"列数","changeLayout.Rows":"行数","changeLayout.Grid":"网格","successIndicator.workspaceSwitched":"已切换工作区","successIndicator.hidden":"选项卡已隐藏","successIndicator.shown":"选项卡已显示","successIndicator.locked":"页面已锁定","successIndicator.unlocked":"页面已解锁","successIndicator.workspaceSaved":"工作区已保存","successIndicator.workspaceSavedAs":"工作区已另存为 {{workspace}}","successIndicator.workspaceRenamed":"工作区已重命名","successIndicator.pageSaved":"页面已保存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. CN","successIndicator.pageCopySaved":"页面已另存为 {{title}}","successIndicator.pageRenamed":"页面已重命名","successIndicator.contextGroupApplied":"已应用上下文组","successIndicator.namedContextGroupApplied":"已应用 {{colorName}} 上下文组","successIndicator.viewRemoved":"从上下文组中移除视图","successIndicator.viewsRemoved":"从上下文组中移除视图","successIndicator.layoutApplied":"已应用 {{layoutName}} 布局","successIndicator.workspaceDeleted":"工作区已删除","errorIndicator.pageSaveFailed":"页面保存失败","errorIndicator.workspaceSaveFailed":"工作区保存失败","errorIndicator.failedToDuplicatePage":"复制页面失败","infoIndicator.colorLinkAttempt":"我们尝试对此选项卡进行颜色链接,但网站/内容所有者尚未启用该功能","global.cancel":"取消","global.confirm":"确认","global.save":"保存","global.delete":"Delete CN","appResults.header":"Featured Content CN","recentlyClosed.header":"Recently Closed CN","landingPage.subheader":"Apps and websites selected by an admin will show here CN","aria.openBrowser":"打开浏览器菜单","aria.browserTabs":"浏览器选项卡","aria.viewTab":"查看 {{title}} 的选项卡","aria.closePage":"关闭 {{title}} 的页面选项卡按钮","aria.closeTab":"关闭选项卡 {{title}}","aria.title":"标题","aria.closeContextGroup":"使用转义关闭上下文组选择对话框","aria.colorLinking":"显示或隐藏颜色链接","aria.applyColorLinking":"请选择一个视图以应用颜色链接","aria.assignColorLinkingCurrentView":"分配给 {{name}} 上下文组的当前视图","aria.assignColorLinkingCurrentViews":"分配给 {{name}} 上下文组的当前视图","aria.setColorLinkingActiveView":"将活动视图设置为 {{name}} 上下文组","aria.setColorLinkingActiveViews":"将活动视图设置为 {{name}} 上下文组","aria.escapeLayoutDialog":"使用转义关闭更改布局对话框","global.supertab":"Supertab CN","global.tab":"Tab CN","bookmarks.editBookmark":"Edit Bookmark CN","bookmarks.bookmarkAdded":"Bookmark added CN","bookmarks.done":"Done CN","bookmarks.remove":"Remove CN","bookmarks.bookmarksPanel":"Bookmarks Panel CN","bookmarks.bookmarks":"Bookmarks CN","bookmarks.allBookmarks":"All Bookmarks CN","bookmarks.favorites":"Favorites CN","bookmarks.searchBookmarks":"Search Bookmarks CN","bookmarks.clearSearchInput":"Clear Search Input CN","bookmarks.createFolder":"Create New Folder CN","bookmarks.exitFolder":"Exit Folder CN","bookmarks.newFolder":"New Folder CN","bookmarks.namedFolder":"{{name}} Folder CN","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings CN","bookmarks.folderSettings":"{{name}} Folder Settings CN","bookmarks.noResultsFound":"No results found CN","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search CN","bookmarks.nothingToShow":"Nothing to show yet CN","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder CN","bookmarks.resultsFoundIn":"Results found in {{name}} CN","bookmarks.resultsInOtherFolders":"Results found in other folders CN","bookmarks.allResultsFoundIn":"All results found in CN","bookmarks.editName":"Edit Name CN","bookmarks.move":"Move CN","bookmarks.bookmarkAddedTitle":"Bookmark Added CN","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" CN","bookmarks.bookmarkEditedTitle":"Bookmark Edited CN","enterpriseContextMenu.saveSupertab":"Save Supertab CN","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... CN","enterpriseContextMenu.duplicate":"Duplicate CN","enterpriseContextMenu.deleteSupertab":"Delete Supertab CN","enterpriseContextMenu.newTab":"New Tab CN","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As CN","enterpriseSaveModal.renameSupertab":"Rename CN","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. CN","enterpriseSaveModal.closeTab":"Close Tab CN","enterpriseSaveModal.closeSupertab":"Close Supertab CN","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? CN","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. CN","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? CN","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. CN","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved CN","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. CN","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted CN","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. CN","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab CN","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab CN","enterpriseCommandBar.switchToSupertab":"Switch to Supertab CN","enterpriseCommandBar.goTo":"Go to {{type}} CN","enterpriseCommandBar.viewMore":"View More CN","sidePanel.aiCenter":"AI Center CN","sidePanel.newChat":"New Chat CN","sidePanel.toggleSidePanel":"Toggle Side Panel CN","sidePanel.closeSidePanel":"Close Side Panel CN","sidePanel.openAiCenter":"Open AI Center CN","contextMenu.quitEnterpriseBrowser":"Quit CN","dock.removeFavorite":"Remove CN"}'),za=JSON.parse('{"contextMenu.newWindow":"新視窗","contextMenu.newPage":"新頁面","contextMenu.restore":"還原到上次儲存的變更","contextMenu.switchWorkspace":"切換工作空間","contextMenu.appearance":"外觀","contextMenu.saveWorkspace":"儲存工作空間","contextMenu.saveWorkspaceAs":"將工作空間另存為...","contextMenu.renameWorkspace":"重新命名工作空間","contextMenu.deleteWorkspace":"刪除工作空間","contextMenu.downloads":"下載","contextMenu.savePage":"儲存頁面","contextMenu.savePageAs":"將頁面另存為...","contextMenu.print":"列印...","contextMenu.printScreen":"擷取畫面","contextMenu.closeWindow":"關閉視窗","contextMenu.openStorefront":"打開 Storefront","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新視圖","contextMenu.openView":"使用預設網頁瀏覽器打開視圖","contextMenu.openViews":"使用預設網頁瀏覽器打開視圖","contextMenu.reload":"Reload ZH","contextMenu.reloadView":"重新載入視圖","contextMenu.reloadViews":"重新載入視圖","contextMenu.duplicate":"Duplicate ZH","contextMenu.duplicateView":"複寫視圖","contextMenu.duplicateViews":"複寫視圖","contextMenu.addView":"將視圖新增至頻道","contextMenu.addViews":"將視圖新增至頻道","contextMenu.removeView":"從頻道中移除視圖","contextMenu.removeViews":"從頻道中移除視圖","contextMenu.closeView":"關閉視圖","contextMenu.closeViews":"關閉視圖","contextMenu.closeTab":"Close Tab ZH","contextMenu.duplicatePage":"複寫頁面","contextMenu.submenu.print":"列印","contextMenu.submenu.printAll":"列印全部","saveMenu.saveWorkspaceAs":"將工作空間另存為","saveMenu.savePageAs":"頁面另存為","saveModal.enterValue":"Please enter a value ZH","saveModal.alreadyExists":"{{title}} 已經存在。","saveModal.pleaseEnterValidName":"請輸入一個有效的名稱","saveModal.renamePage":"重新命名頁面","saveModal.closePage":"關閉頁面","saveModal.discardChanges":"捨棄變更","saveModal.discardAll":"全部捨棄","saveModal.saveAll":"儲存全部","saveModal.savePagesCount":"要先儲存 ({{count}}) 個頁面再關閉嗎?","defaultPageTitle":"Untitled Page ZH","enterpriseDefaultPageTitle":"Untitled Supertab ZH","addNewPage":"新增新頁面","addNewTab":"新增新索引標籤","addNewView":"新視圖","restoreModal":"您確定要還原到上次儲存的變更嗎?","modal.discardWarning":"任何未儲存的變更都將被捨棄","modal.discardPageWarning":"在此頁面任何未儲存的變更都將遺失。","modal.saveChangesPrompt":"要先儲存變更再關閉嗎?","modal.pageClose":"頁面關閉","switchWorkspaceModal":"您確定要切換到 {{workspace}}?","switchWorkspaceModal.warning":"任何未儲存的變更都將被捨棄","deleteWorkspaceModal":"您確定要永久刪除此工作空間嗎?","replaceWorkspaceModal.warning":"具有名稱 {{workspace}} 的工作空間已經存在。你要更換它嗎?","replaceWorkspaceModal.warning.body":"相同名稱的工作空間已經存在。更換它後,將會覆蓋目前內容。","replaceWorkspaceModal.replace":"更換","closePlatform":"關閉平台","closePlatform.workspace":"關閉 {{workspace}} 平台","closePlatform.warning":"關閉平台後,將關閉正在執行的任何工作空間、APP 或流程。","back":"上一頁","forward":"下一頁","reload":"重新載入","green":"綠","purple":"紫","orange":"橘","red":"紅色","pink":"粉紅","yellow":"黃","theme.light":"淺","theme.dark":"深","theme.system":"與 OS 設定同步","toolbar.hideTabs":"隱藏索引標籤","toolbar.showTabs":"顯示索引標籤","toolbar.lock":"上鎖","toolbar.unlock":"解鎖","toolbar.colorLinking":"顏色連結","toolbar.changeLayout":"變更版面","toolbar.saveMenu":"儲存選單","toolbar.maximizeWindow":"最大化視窗","toolbar.restoreWindow":"還原視窗","toolbar.minimizeWindow":"最小化視窗","changeLayout.fullWidth":"全螢幕寬度","changeLayout.columns":"行","changeLayout.Rows":"列","changeLayout.Grid":"網格","successIndicator.workspaceSwitched":"工作空間已切換","successIndicator.hidden":"索引標籤已隱藏","successIndicator.shown":"索引標籤已顯示","successIndicator.locked":"頁面已上鎖","successIndicator.unlocked":"頁面已解鎖","successIndicator.workspaceSaved":"工作空間已儲存","successIndicator.workspaceSavedAs":"工作空間已另存為 {{workspace}}","successIndicator.workspaceRenamed":"工作空間已重新命名","successIndicator.pageSaved":"頁面已儲存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. ZH","successIndicator.pageCopySaved":"頁面已另存為 {{title}}","successIndicator.pageRenamed":"頁面已重新命名","successIndicator.contextGroupApplied":"脈絡群組已套用","successIndicator.namedContextGroupApplied":"{{colorName}} 脈絡群組已套用","successIndicator.viewRemoved":"從脈絡群組中移除的視圖","successIndicator.viewsRemoved":"從脈絡群組中移除的視圖","successIndicator.layoutApplied":"{{layoutName}} 版面已套用","successIndicator.workspaceDeleted":"工作空間已刪除","errorIndicator.pageSaveFailed":"頁面無法儲存","errorIndicator.workspaceSaveFailed":"工作空間無法儲存","errorIndicator.failedToDuplicatePage":"無法複寫頁面","infoIndicator.colorLinkAttempt":"我們嘗試對此索引標籤進行顏色連結,但網站/內容所有者尚未啟用該功能","global.cancel":"取消","global.confirm":"確認","global.save":"儲存","global.delete":"Delete ZH","appResults.header":"Featured Content ZH","recentlyClosed.header":"Recently Closed ZH","landingPage.subheader":"Apps and websites selected by an admin will show here ZH","aria.openBrowser":"開啟瀏覽器選單","aria.browserTabs":"瀏覽器索引標籤","aria.viewTab":"{{title}} 的視圖索引標籤","aria.closePage":"關閉 {{title}} 的頁面索引標籤按鈕","aria.closeTab":"關閉索引標籤 {{title}}","aria.title":"標題","aria.closeContextGroup":"使用 Esc 鍵關閉脈絡群組選取對話框","aria.colorLinking":"顯示或隱藏顏色連結","aria.applyColorLinking":"請選取要套用顏色連結的視圖","aria.assignColorLinkingCurrentView":"目前視圖分配給 {{name}} 脈絡群組","aria.assignColorLinkingCurrentViews":"目前視圖分配給 {{name}} 脈絡群組","aria.setColorLinkingActiveView":"將啟用視圖設定為 {{name}} 脈絡群組","aria.setColorLinkingActiveViews":"將啟用視圖設定為 {{name}} 脈絡群組","aria.escapeLayoutDialog":"使用 Esc 鍵關閉變更版面對話框","global.supertab":"Supertab ZH","global.tab":"Tab ZH","bookmarks.editBookmark":"Edit Bookmark ZH","bookmarks.bookmarkAdded":"Bookmark added ZH","bookmarks.done":"Done ZH","bookmarks.remove":"Remove ZH","bookmarks.bookmarksPanel":"Bookmarks Panel ZH","bookmarks.bookmarks":"Bookmarks ZH","bookmarks.allBookmarks":"All Bookmarks ZH","bookmarks.favorites":"Favorites ZH","bookmarks.searchBookmarks":"Search Bookmarks ZH","bookmarks.clearSearchInput":"Clear Search Input ZH","bookmarks.createFolder":"Create New Folder ZH","bookmarks.exitFolder":"Exit Folder ZH","bookmarks.newFolder":"New Folder ZH","bookmarks.namedFolder":"{{name}} Folder ZH","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings ZH","bookmarks.folderSettings":"{{name}} Folder Settings ZH","bookmarks.noResultsFound":"No results found ZH","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search ZH","bookmarks.nothingToShow":"Nothing to show yet ZH","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder ZH","bookmarks.resultsFoundIn":"Results found in {{name}} ZH","bookmarks.resultsInOtherFolders":"Results found in other folders ZH","bookmarks.allResultsFoundIn":"All results found in ZH","bookmarks.editName":"Edit Name ZH","bookmarks.move":"Move ZH","bookmarks.bookmarkAddedTitle":"Bookmark Added ZH","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" ZH","bookmarks.bookmarkEditedTitle":"Bookmark Edited ZH","enterpriseContextMenu.saveSupertab":"Save Supertab ZH","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... ZH","enterpriseContextMenu.duplicate":"Duplicate ZH","enterpriseContextMenu.deleteSupertab":"Delete Supertab ZH","enterpriseContextMenu.newTab":"New Tab ZH","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As ZH","enterpriseSaveModal.renameSupertab":"Rename ZH","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. ZH","enterpriseSaveModal.closeTab":"Close Tab ZH","enterpriseSaveModal.closeSupertab":"Close Supertab ZH","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? ZH","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. ZH","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? ZH","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. ZH","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved ZH","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. ZH","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted ZH","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. ZH","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab ZH","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab ZH","enterpriseCommandBar.switchToSupertab":"Switch to Supertab ZH","enterpriseCommandBar.goTo":"Go to {{type}} ZH","enterpriseCommandBar.viewMore":"View More ZH","sidePanel.aiCenter":"AI Center ZH","sidePanel.newChat":"New Chat ZH","sidePanel.toggleSidePanel":"Toggle Side Panel ZH","sidePanel.closeSidePanel":"Close Side Panel ZH","sidePanel.openAiCenter":"Open AI Center ZH","contextMenu.quitEnterpriseBrowser":"Quit ZH","dock.removeFavorite":"Remove ZH"}'),Ka=JSON.parse('{"contextMenu.newWindow":"New Window","contextMenu.newPage":"New Page","contextMenu.restore":"Restore to Last Saved Changes","contextMenu.switchWorkspace":"Switch Workspace","contextMenu.appearance":"Appearance","contextMenu.saveWorkspace":"Save Workspace","contextMenu.saveWorkspaceAs":"Save Workspace As...","contextMenu.renameWorkspace":"Rename Workspace","contextMenu.deleteWorkspace":"Delete Workspace","contextMenu.downloads":"Downloads","contextMenu.savePage":"Save Page","contextMenu.savePageAs":"Save Page As...","contextMenu.print":"Print...","contextMenu.printScreen":"Print Screen","contextMenu.closeWindow":"Close Window","contextMenu.openStorefront":"Open Storefront","contextMenu.quitPlatform":"Quit {{platformLabel}}","contextMenu.newView":"New View","contextMenu.openView":"Open View with Default Web Browser","contextMenu.openViews":"Open Views with Default Web Browser","contextMenu.reload":"Reload","contextMenu.reloadView":"Reload View","contextMenu.reloadViews":"Reload Views","contextMenu.duplicate":"Duplicate","contextMenu.duplicateView":"Duplicate View","contextMenu.duplicateViews":"Duplicate Views","contextMenu.addView":"Add View to Channel","contextMenu.addViews":"Add Views to Channel","contextMenu.removeView":"Remove View from Channel","contextMenu.removeViews":"Remove Views from Channel","contextMenu.closeView":"Close View","contextMenu.closeViews":"Close Views","contextMenu.closeTab":"Close Tab","contextMenu.duplicatePage":"Duplicate Page","contextMenu.submenu.print":"Print","contextMenu.submenu.printAll":"Print All","saveMenu.saveWorkspaceAs":"Save Workspace As","saveMenu.savePageAs":"Save Page As","saveModal.enterValue":"Please enter a value","saveModal.alreadyExists":"{{title}} already exists.","saveModal.pleaseEnterValidName":"Please enter a valid name","saveModal.renamePage":"Rename Page","saveModal.closePage":"Close Page","saveModal.discardChanges":"Discard Changes","saveModal.discardAll":"Discard All","saveModal.saveAll":"Save All","saveModal.savePagesCount":"Save ({{count}}) pages before closing?","defaultPageTitle":"Untitled Page","enterpriseDefaultPageTitle":"Untitled Supertab","addNewPage":"New Page","addNewTab":"Add New Tab","addNewView":"New View","restoreModal":"Are you sure you want to restore to last saved changes?","modal.discardWarning":"Any unsaved changes will be discarded","modal.discardPageWarning":"Any unsaved changes to this page will be lost.","modal.saveChangesPrompt":"Save changes before closing?","modal.pageClose":"Page Close","switchWorkspaceModal":"Are you sure you want to switch to {{workspace}}?","switchWorkspaceModal.warning":"Any unsaved changes will be discarded","deleteWorkspaceModal":"Are you sure you want to permanently delete this workspace?","replaceWorkspaceModal.warning":"A Workspace with the name {{workspace}} already exists. Do you want to replace it?","replaceWorkspaceModal.warning.body":"A workspace with the same name already exists. Replacing it will overwrite its current contents.","replaceWorkspaceModal.replace":"Replace","closePlatform":"Close the platform","closePlatform.workspace":"Close the {{workspace}} Platform","closePlatform.warning":"Closing a platform will close any workspaces, apps or any processes that are running.","back":"Back","forward":"Forward","reload":"Reload","green":"Green","purple":"Purple","orange":"Orange","red":"Red","pink":"Pink","yellow":"Yellow","theme.light":"Light","theme.dark":"Dark","theme.system":"Sync with OS setting","toolbar.hideTabs":"Hide Tabs","toolbar.showTabs":"Show Tabs","toolbar.lock":"Lock","toolbar.unlock":"Unlock","toolbar.colorLinking":"Color Linking","toolbar.changeLayout":"Change Layout","toolbar.saveMenu":"Save Menu","toolbar.maximizeWindow":"Maximize Window","toolbar.restoreWindow":"Restore Window","toolbar.minimizeWindow":"Minimize Window","changeLayout.fullWidth":"Full Width","changeLayout.columns":"Columns","changeLayout.Rows":"Rows","changeLayout.Grid":"Grid","successIndicator.workspaceSwitched":"Workspace Switched","successIndicator.hidden":"Tabs are Hidden","successIndicator.shown":"Tabs are Shown","successIndicator.locked":"Page is Locked","successIndicator.unlocked":"Page is Unlocked","successIndicator.workspaceSaved":"Workspace saved","successIndicator.workspaceSavedAs":"Workspace saved as {{workspace}}","successIndicator.workspaceRenamed":"Workspace renamed","successIndicator.pageSaved":"Page Saved","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved.","successIndicator.pageCopySaved":"Page saved as {{title}}","successIndicator.pageRenamed":"Page renamed","successIndicator.contextGroupApplied":"Context group applied","successIndicator.namedContextGroupApplied":"{{colorName}} context group applied","successIndicator.viewRemoved":"View removed from context group","successIndicator.viewsRemoved":"Views removed from context group","successIndicator.layoutApplied":"{{layoutName}} layout applied","successIndicator.workspaceDeleted":"Workspace deleted","errorIndicator.pageSaveFailed":"Page failed to save","errorIndicator.workspaceSaveFailed":"Workspace failed to save","errorIndicator.failedToDuplicatePage":"Failed to duplicate Page","infoIndicator.colorLinkAttempt":"We attempted to color link this tab, but the site/content owner has not enabled it yet","global.cancel":"Cancel","global.confirm":"Confirm","global.save":"Save","global.delete":"Delete","appResults.header":"Featured Content","recentlyClosed.header":"Recently Closed","landingPage.subheader":"Apps and websites selected by an admin will show here","aria.openBrowser":"Open Browser Menu","aria.browserTabs":"Browser Tabs","aria.viewTab":"View Tab for {{title}}","aria.closePage":"Close Page Tab Button for {{title}}","aria.closeTab":"Close Tab {{title}}","aria.title":"Title","aria.closeContextGroup":"Use escape to close context group selection dialog","aria.colorLinking":"Show or hide color linking","aria.applyColorLinking":"Please select a view to apply color linking","aria.assignColorLinkingCurrentView":"Current view assigned to {{name}} context group","aria.assignColorLinkingCurrentViews":"Current views assigned to {{name}} context group","aria.setColorLinkingActiveView":"Set active view to {{name}} context group","aria.setColorLinkingActiveViews":"Set active views to {{name}} context group","aria.escapeLayoutDialog":"Use escape to close change layout dialog","global.supertab":"Supertab","global.tab":"Tab","bookmarks.editBookmark":"Edit Bookmark","bookmarks.bookmarkAdded":"Bookmark added","bookmarks.done":"Done","bookmarks.remove":"Remove","bookmarks.bookmarksPanel":"Bookmarks Panel","bookmarks.bookmarks":"Bookmarks","bookmarks.allBookmarks":"All Bookmarks","bookmarks.favorites":"Favorites","bookmarks.searchBookmarks":"Search Bookmarks","bookmarks.clearSearchInput":"Clear Search Input","bookmarks.createFolder":"Create New Folder","bookmarks.exitFolder":"Exit Folder","bookmarks.newFolder":"New Folder","bookmarks.namedFolder":"{{name}} Folder","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings","bookmarks.folderSettings":"{{name}} Folder Settings","bookmarks.noResultsFound":"No results found","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search","bookmarks.nothingToShow":"Nothing to show yet","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder","bookmarks.resultsFoundIn":"Results found in {{name}}","bookmarks.resultsInOtherFolders":"Results found in other folders","bookmarks.allResultsFoundIn":"All results found in","bookmarks.editName":"Edit Name","bookmarks.move":"Move","bookmarks.bookmarkAddedTitle":"Bookmark Added","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\"","bookmarks.bookmarkEditedTitle":"Bookmark Edited","enterpriseContextMenu.saveSupertab":"Save Supertab","enterpriseContextMenu.saveSupertabAs":"Save Supertab As...","enterpriseContextMenu.duplicate":"Duplicate","enterpriseContextMenu.deleteSupertab":"Delete Supertab","enterpriseContextMenu.newTab":"New Tab","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As","enterpriseSaveModal.renameSupertab":"Rename","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab.","enterpriseSaveModal.closeTab":"Close Tab","enterpriseSaveModal.closeSupertab":"Close Supertab","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing?","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost.","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab?","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent.","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted.","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab","enterpriseCommandBar.switchToSupertab":"Switch to Supertab","enterpriseCommandBar.goTo":"Go to {{type}}","enterpriseCommandBar.viewMore":"View More","sidePanel.aiCenter":"AI Center","sidePanel.newChat":"New Chat","sidePanel.toggleSidePanel":"Toggle Side Panel","sidePanel.closeSidePanel":"Close Side Panel","sidePanel.openAiCenter":"Open AI Center","contextMenu.quitEnterpriseBrowser":"Quit","dock.removeFavorite":"Remove"}'),Ja=JSON.parse('{"contextMenu.newWindow":"Neues Fenster","contextMenu.newPage":"Neue Seite","contextMenu.restore":"Wiederherstellen der zuletzt gespeicherten Änderungen","contextMenu.switchWorkspace":"Workspace wechseln","contextMenu.appearance":"Erscheinungsbild","contextMenu.saveWorkspace":"Workspace speichern","contextMenu.saveWorkspaceAs":"Workspace speichern unter...","contextMenu.renameWorkspace":"Workspace umbenennen","contextMenu.deleteWorkspace":"Workspace löschen","contextMenu.downloads":"Downloads","contextMenu.savePage":"Seite speichern","contextMenu.savePageAs":"Seite speichern unter...","contextMenu.print":"Drucken...","contextMenu.printScreen":"Bildschirmansicht drucken","contextMenu.closeWindow":"Fenster schließen","contextMenu.openStorefront":"Schaufenster öffnen","contextMenu.quitPlatform":"Plattform verlassen","contextMenu.newView":"Neue Ansicht","contextMenu.openView":"Ansicht mit Standard-Webbrowser öffnen","contextMenu.openViews":"Ansichten mit Standard-Webbrowser öffnen","contextMenu.reload":"Reload DE","contextMenu.reloadView":"Ansicht neu laden","contextMenu.reloadViews":"Ansichten neu laden","contextMenu.duplicate":"Duplicate DE","contextMenu.duplicateView":"Ansicht duplizieren","contextMenu.duplicateViews":"Ansichten duplizieren","contextMenu.addView":"Ansicht zum Channel hinzufügen","contextMenu.addViews":"Ansichten zum Channel hinzufügen","contextMenu.removeView":"Ansicht aus dem Channel entfernen","contextMenu.removeViews":"Ansichten aus dem Channel entfernen","contextMenu.closeView":"Ansicht schließen","contextMenu.closeViews":"Ansichten schließen","contextMenu.closeTab":"Close Tab DE","contextMenu.duplicatePage":"Seite duplizieren","contextMenu.submenu.print":"Drucken","contextMenu.submenu.printAll":"Alle drucken","saveMenu.saveWorkspaceAs":"Workspace speichern unter","saveMenu.savePageAs":"Seite speichern unter","saveModal.enterValue":"Please enter a value DE","saveModal.alreadyExists":"{{title}} existiert bereits.","saveModal.pleaseEnterValidName":"Bitte geben Sie einen gültigen Namen ein","saveModal.renamePage":"Seite umbenennen","saveModal.closePage":"Seite schließen","saveModal.discardChanges":"Änderungen verwerfen","saveModal.discardAll":"Alle verwerfen","saveModal.saveAll":"Alle speichern","saveModal.savePagesCount":"({{count}}) Seiten vor dem Schließen speichern?","defaultPageTitle":"Untitled Page DE","enterpriseDefaultPageTitle":"Untitled Supertab DE","addNewPage":"Neue Seite hinzufügen","addNewTab":"Neuen Tab hinzufügen","addNewView":"Neue Ansicht","restoreModal":"Sind Sie sicher, dass Sie die zuletzt gespeicherten Änderungen wiederherstellen wollen?","modal.discardWarning":"Alle nicht gespeicherten Änderungen werden verworfen","modal.discardPageWarning":"Alle nicht gespeicherten Änderungen auf dieser Seite gehen verloren.","modal.saveChangesPrompt":"Änderungen vor dem Schließen speichern?","modal.pageClose":"Seite schließen","switchWorkspaceModal":"Sind Sie sicher, dass Sie zu {{workspace}}wechseln wollen?","switchWorkspaceModal.warning":"Alle nicht gespeicherten Änderungen werden verworfen","deleteWorkspaceModal":"Sind Sie sicher, dass Sie diesen Workspace dauerhaft löschen wollen?","replaceWorkspaceModal.warning":"Ein Workspace mit dem Namen {{workspace}} existiert bereits. Möchten Sie ihn ersetzen?","replaceWorkspaceModal.warning.body":"Ein Workspace mit demselben Namen existiert bereits. Wenn Sie ihn ersetzen, wird der aktuelle Inhalt überschrieben.","replaceWorkspaceModal.replace":"Ersetzen","closePlatform":"Plattform schließen","closePlatform.workspace":"Die {{workspace}} Plattform schließen","closePlatform.warning":"Wenn Sie eine Plattform schließen, werden alle Workspaces, Apps und laufenden Prozesse beendet.","back":"Zurück","forward":"Weiter","reload":"Neu laden","green":"Grün","purple":"Lila","orange":"Orange","red":"Rot","pink":"Pink","yellow":"Gelb","theme.light":"Hell","theme.dark":"Dunkel","theme.system":"Synchronisierung mit OS-Einstellung","toolbar.hideTabs":"Tabs ausblenden","toolbar.showTabs":"Tabs anzeigen","toolbar.lock":"Sperren","toolbar.unlock":"Freischalten","toolbar.colorLinking":"Farbverknüpfung","toolbar.changeLayout":"Layout ändern","toolbar.saveMenu":"Menü speichern","toolbar.maximizeWindow":"Fenster maximieren","toolbar.restoreWindow":"Fenster wiederherstellen","toolbar.minimizeWindow":"Fenster minimieren","changeLayout.fullWidth":"Volle Breite","changeLayout.columns":"Spalten","changeLayout.Rows":"Zeilen","changeLayout.Grid":"Raster","successIndicator.workspaceSwitched":"Workspace gewechselt","successIndicator.hidden":"Tabs sind ausgeblendet","successIndicator.shown":"Tabs werden angezeigt","successIndicator.locked":"Seite ist gesperrt","successIndicator.unlocked":"Seite ist freigeschaltet","successIndicator.workspaceSaved":"Workspace gespeichert","successIndicator.workspaceSavedAs":"Workspace gespeichert als {{workspace}}","successIndicator.workspaceRenamed":"Workspace umbenannt","successIndicator.pageSaved":"Seite gespeichert","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. DE","successIndicator.pageCopySaved":"Seite gespeichert als {{title}}","successIndicator.pageRenamed":"Seite umbenannt","successIndicator.contextGroupApplied":"Angewandte Kontextgruppe","successIndicator.namedContextGroupApplied":"{{colorName}} angewandte Kontextgruppe","successIndicator.viewRemoved":"Ansicht aus der Kontextgruppe entfernt","successIndicator.viewsRemoved":"Ansichten aus der Kontextgruppe entfernt","successIndicator.layoutApplied":"{{layoutName}} angewandtes Layout","successIndicator.workspaceDeleted":"Workspace gelöscht","errorIndicator.pageSaveFailed":"Seite konnte nicht gespeichert werden","errorIndicator.workspaceSaveFailed":"Workspace konnte nicht gespeichert werden","errorIndicator.failedToDuplicatePage":"Seite kann nicht dupliziert werden","infoIndicator.colorLinkAttempt":"Wir haben versucht, diesem Tab eine Farbe zuordnen, aber der Eigentümer der Website/des Inhalts hat sie noch nicht aktiviert","global.cancel":"Abbrechen","global.confirm":"Bestätigen","global.save":"Speichern","global.delete":"Delete DE","appResults.header":"Featured Content DC","recentlyClosed.header":"Recently Closed DC","landingPage.subheader":"Apps and websites selected by an admin will show here DE","aria.openBrowser":"Browser-Menü öffnen","aria.browserTabs":"Browser-Tab","aria.viewTab":"Tab „Ansicht“ für {{title}}","aria.closePage":"Button „Seite schließen“ für {{title}}","aria.closeTab":"Tab schließen {{title}}","aria.title":"Bezeichnung","aria.closeContextGroup":"Verwenden Sie die Escape-Taste, um den Dialog zur Auswahl von Kontextgruppen zu schließen","aria.colorLinking":"Farbverknüpfung ein- oder ausblenden","aria.applyColorLinking":"Bitte wählen Sie eine Ansicht, um die Farbverknüpfung anzuwenden","aria.assignColorLinkingCurrentView":"Aktuelle Ansicht, die der Kontextgruppe {{name}} zugeordnet ist","aria.assignColorLinkingCurrentViews":"Aktuelle Ansichten, die der Kontextgruppe {{name}} zugeordnet sind","aria.setColorLinkingActiveView":"Aktive Ansicht auf die Kontextgruppe {{name}} setzen","aria.setColorLinkingActiveViews":"Aktive Ansichten auf die Kontextgruppe {{name}} setzen","aria.escapeLayoutDialog":"Verwenden Sie die Escape-Taste, um den Dialog zur Layoutänderung zu schließen","global.supertab":"Supertab DE","global.tab":"Tab DE","bookmarks.editBookmark":"Edit Bookmark DE","bookmarks.bookmarkAdded":"Bookmark added DE","bookmarks.done":"Done DE","bookmarks.remove":"Remove DE","bookmarks.bookmarksPanel":"Bookmarks Panel DE","bookmarks.bookmarks":"Bookmarks DE","bookmarks.allBookmarks":"All Bookmarks DE","bookmarks.favorites":"Favorites DE","bookmarks.searchBookmarks":"Search Bookmarks DE","bookmarks.clearSearchInput":"Clear Search Input DE","bookmarks.createFolder":"Create New Folder DE","bookmarks.exitFolder":"Exit Folder DE","bookmarks.newFolder":"New Folder DE","bookmarks.namedFolder":"{{name}} Folder DE","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings DE","bookmarks.folderSettings":"{{name}} Folder Settings DE","bookmarks.noResultsFound":"No results found DE","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search DE","bookmarks.nothingToShow":"Nothing to show yet DE","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder DE","bookmarks.resultsFoundIn":"Results found in {{name}} DE","bookmarks.resultsInOtherFolders":"Results found in other folders DE","bookmarks.allResultsFoundIn":"All results found in DE","bookmarks.editName":"Edit Name DE","bookmarks.move":"Move DE","bookmarks.bookmarkAddedTitle":"Bookmark Added DE","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" DE","bookmarks.bookmarkEditedTitle":"Bookmark Edited DE","enterpriseContextMenu.saveSupertab":"Save Supertab DE","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... DE","enterpriseContextMenu.duplicate":"Duplicate DE","enterpriseContextMenu.deleteSupertab":"Delete Supertab DE","enterpriseContextMenu.newTab":"New Tab DE","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As DE","enterpriseSaveModal.renameSupertab":"Rename DE","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. DE","enterpriseSaveModal.closeTab":"Close Tab DE","enterpriseSaveModal.closeSupertab":"Close Supertab DE","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? DE","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. DE","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? DE","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. DE","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved DE","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. DE","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted DE","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. DE","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab DE","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab DE","enterpriseCommandBar.switchToSupertab":"Switch to Supertab DE","enterpriseCommandBar.goTo":"Go to {{type}} DE","enterpriseCommandBar.viewMore":"View More DE","sidePanel.aiCenter":"AI Center DE","sidePanel.newChat":"New Chat DE","sidePanel.toggleSidePanel":"Toggle Side Panel DE","sidePanel.closeSidePanel":"Close Side Panel DE","sidePanel.openAiCenter":"Open AI Center DE","contextMenu.quitEnterpriseBrowser":"Quit DE","dock.removeFavorite":"Remove DE"}'),Za=JSON.parse('{"contextMenu.newWindow":"新しいウィンドウ","contextMenu.newPage":"新しいページ","contextMenu.restore":"最後に保存された変更に戻す","contextMenu.switchWorkspace":"ワークスペースに切り替える","contextMenu.appearance":"外観","contextMenu.saveWorkspace":"ワークスペースを保存","contextMenu.saveWorkspaceAs":"ワークスペースを別名で保存...","contextMenu.renameWorkspace":"ワークスペース名を変更","contextMenu.deleteWorkspace":"ワークスペースを削除","contextMenu.downloads":"ダウンロード","contextMenu.savePage":"ページを保存","contextMenu.savePageAs":"ページを別名で保存...","contextMenu.print":"印刷...","contextMenu.printScreen":"プリントスクリーン","contextMenu.closeWindow":"ウィンドウを閉じる","contextMenu.openStorefront":"ストアフロントを開く","contextMenu.quitPlatform":"プラットフォームを終了する","contextMenu.newView":"新しいビュー","contextMenu.openView":"デフォルトのウェブブラウザーでビューを開く","contextMenu.openViews":"デフォルトのウェブブラウザーでビューを開く","contextMenu.reload":"Reload JP","contextMenu.reloadView":"ビューをリロード","contextMenu.reloadViews":"ビューをリロード","contextMenu.duplicate":"Duplicate JP","contextMenu.duplicateView":"ビューを複製","contextMenu.duplicateViews":"ビューを複製","contextMenu.addView":"ビューをチャネルに追加","contextMenu.addViews":"ビューをチャネルに追加","contextMenu.removeView":"チャネルからビューを削除","contextMenu.removeViews":"チャネルからビューを削除","contextMenu.closeView":"ビューを閉じる","contextMenu.closeViews":"ビューを閉じる","contextMenu.closeTab":"Close Tab JP","contextMenu.duplicatePage":"ページを複製","contextMenu.submenu.print":"印刷","contextMenu.submenu.printAll":"すべてを印刷","saveMenu.saveWorkspaceAs":"ワークスペースを別名で保存","saveMenu.savePageAs":"ページを別名で保存","saveModal.enterValue":"Please enter a value JP","saveModal.alreadyExists":"{{title}}はすでに存在しています。","saveModal.pleaseEnterValidName":"有効な名前を入力してください","saveModal.renamePage":"ページ名を変更","saveModal.closePage":"ページを閉じる","saveModal.discardChanges":"変更を破棄","saveModal.discardAll":"すべて破棄","saveModal.saveAll":"すべて保存","saveModal.savePagesCount":"閉じる前に({{count}})つのページを保存しますか?","defaultPageTitle":"Untitled Page JP","enterpriseDefaultPageTitle":"Untitled Supertab JP","addNewPage":"新しいページを追加","addNewTab":"新しいタブを追加","addNewView":"新しいビュー","restoreModal":"本当に最後に保存された変更に戻しますか?","modal.discardWarning":"保存されていない変更は破棄されます","modal.discardPageWarning":"保存されていないこのページへの変更は失われます。","modal.saveChangesPrompt":"閉じる前に変更を保存しますか?","modal.pageClose":"ページを閉じる","switchWorkspaceModal":"本当に{{workspace}}に切り替えますか?","switchWorkspaceModal.warning":"保存されていない変更は破棄されます","deleteWorkspaceModal":"このワークスペースを永久に削除してもよろしいですか?","replaceWorkspaceModal.warning":"{{workspace}}という名前のワークスペースがすでに存在します。置き換えますか?","replaceWorkspaceModal.warning.body":"同じ名前のワークスペースがすでに存在します。置き換えると、現在の内容は上書きされます。","replaceWorkspaceModal.replace":"置き換える","closePlatform":"プラットフォームを閉じる","closePlatform.workspace":"{{workspace}}プラットフォームを閉じる","closePlatform.warning":"プラットフォームを閉じると、実行中のワークスペース、アプリ、プロセスがすべて閉じます。","back":"戻る","forward":"進む","reload":"リロード","green":"グリーン","purple":"パープル","orange":"オレンジ","red":"レッド","pink":"ピンク","yellow":"イエロー","theme.light":"ライト","theme.dark":"ダーク","theme.system":"OSの設定と同期","toolbar.hideTabs":"タブを非表示","toolbar.showTabs":"タブを表示","toolbar.lock":"ロック","toolbar.unlock":"ロック解除","toolbar.colorLinking":"カラーリンク","toolbar.changeLayout":"レイアウトを変更","toolbar.saveMenu":"メニューを保存","toolbar.maximizeWindow":"ウィンドウを最大化する","toolbar.restoreWindow":"ウィンドウを復元","toolbar.minimizeWindow":"ウィンドウを最小化する","changeLayout.fullWidth":"全幅","changeLayout.columns":"列","changeLayout.Rows":"行","changeLayout.Grid":"グリッド","successIndicator.workspaceSwitched":"ワークスペースが切り替わりました","successIndicator.hidden":"タブが非表示になっています","successIndicator.shown":"タブが表示されています","successIndicator.locked":"ページがロックされています","successIndicator.unlocked":"ページのロックが解除されています","successIndicator.workspaceSaved":"ワークスペースが保存されました","successIndicator.workspaceSavedAs":"ワークスペースが{{workspace}}として保存されました","successIndicator.workspaceRenamed":"ワークスペース名が変更されました","successIndicator.pageSaved":"ページが保存されました","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. JP","successIndicator.pageCopySaved":"ページが{{title}}として保存されました","successIndicator.pageRenamed":"ページ名が変更されました","successIndicator.contextGroupApplied":"コンテキストグループが適用されました","successIndicator.namedContextGroupApplied":"{{colorName}}コンテキストグループが適用されました","successIndicator.viewRemoved":"コンテキストグループからビューが削除されました","successIndicator.viewsRemoved":"コンテキストグループからビューが削除されました","successIndicator.layoutApplied":"{{layoutName}}レイアウトが適用されました","successIndicator.workspaceDeleted":"ワークスペースが削除されました","errorIndicator.pageSaveFailed":"ページを保存できませんでした","errorIndicator.workspaceSaveFailed":"ワークスペースを保存できませんでした","errorIndicator.failedToDuplicatePage":"ページを複製できませんでした","infoIndicator.colorLinkAttempt":"このタブをカラーリンクしようとしましたが、サイト/コンテンツのオーナーがまだこれを有効にしていません","global.cancel":"キャンセル","global.confirm":"確認","global.save":"保存","global.delete":"Delete JP","appResults.header":"Featured content JP","recentlyClosed.header":"Recently Closed JP","landingPage.subheader":"Apps and websites selected by an admin will show here JP","aria.openBrowser":"ブラウザーメニューを開く","aria.browserTabs":"ブラウザータブ","aria.viewTab":"{{title}}のタブを表示","aria.closePage":"{{title}}のページタブボタンを閉じる","aria.closeTab":"{{title}}タブを閉じる","aria.title":"タイトル","aria.closeContextGroup":"エスケープを使用して、コンテキストグループ選択ダイアログを閉じる","aria.colorLinking":"カラーリンクの表示/非表示","aria.applyColorLinking":"カラーリンクを適用するビューを選択してください","aria.assignColorLinkingCurrentView":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.assignColorLinkingCurrentViews":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.setColorLinkingActiveView":"アクティブビューを{{name}}コンテキストグループに設定","aria.setColorLinkingActiveViews":"アクティブビューを{{name}}コンテキストグループに設定","aria.escapeLayoutDialog":"エスケープを使用して、レイアウト変更選択ダイアログを閉じる","global.supertab":"Supertab JP","global.tab":"Tab JP","bookmarks.editBookmark":"Edit Bookmark JP","bookmarks.bookmarkAdded":"Bookmark added JP","bookmarks.done":"Done JP","bookmarks.remove":"Remove JP","bookmarks.bookmarksPanel":"Bookmarks Panel JP","bookmarks.bookmarks":"Bookmarks JP","bookmarks.allBookmarks":"All Bookmarks JP","bookmarks.favorites":"Favorites JP","bookmarks.searchBookmarks":"Search Bookmarks JP","bookmarks.clearSearchInput":"Clear Search Input JP","bookmarks.createFolder":"Create New Folder JP","bookmarks.exitFolder":"Exit Folder JP","bookmarks.newFolder":"New Folder JP","bookmarks.namedFolder":"{{name}} Folder JP","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings JP","bookmarks.folderSettings":"{{name}} Folder Settings JP","bookmarks.noResultsFound":"No results found JP","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search JP","bookmarks.nothingToShow":"Nothing to show yet JP","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder JP","bookmarks.resultsFoundIn":"Results found in {{name}} JP","bookmarks.resultsInOtherFolders":"Results found in other folders JP","bookmarks.allResultsFoundIn":"All results found in JP","bookmarks.editName":"Edit Name JP","bookmarks.move":"Move JP","bookmarks.bookmarkAddedTitle":"Bookmark Added JP","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" JP","bookmarks.bookmarkEditedTitle":"Bookmark Edited JP","enterpriseContextMenu.saveSupertab":"Save Supertab JP","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... JP","enterpriseContextMenu.duplicate":"Duplicate JP","enterpriseContextMenu.deleteSupertab":"Delete Supertab JP","enterpriseContextMenu.newTab":"New Tab JP","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As JP","enterpriseSaveModal.renameSupertab":"Rename JP","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. JP","enterpriseSaveModal.closeTab":"Close Tab JP","enterpriseSaveModal.closeSupertab":"Close Supertab JP","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? JP","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. JP","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? JP","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. JP","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved JP","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. JP","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted JP","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. JP","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab JP","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab JP","enterpriseCommandBar.switchToSupertab":"Switch to Supertab JP","enterpriseCommandBar.goTo":"Go to {{type}} JP","enterpriseCommandBar.viewMore":"View More JP","sidePanel.aiCenter":"AI Center JP","sidePanel.newChat":"New Chat JP","sidePanel.toggleSidePanel":"Toggle Side Panel JP","sidePanel.closeSidePanel":"Close Side Panel JP","sidePanel.openAiCenter":"Open AI Center JP","contextMenu.quitEnterpriseBrowser":"Quit JP","dock.removeFavorite":"Remove JP"}'),qa=JSON.parse('{"contextMenu.newWindow":"새 창","contextMenu.newPage":"새 페이지","contextMenu.restore":"마지막으로 저장한 변경 사항으로 복원","contextMenu.switchWorkspace":"작업 공간 전환","contextMenu.appearance":"모양","contextMenu.saveWorkspace":"작업 공간 저장","contextMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장...","contextMenu.renameWorkspace":"작업 공간 이름 바꾸기","contextMenu.deleteWorkspace":"작업 공간 삭제","contextMenu.downloads":"다운로드","contextMenu.savePage":"페이지 저장","contextMenu.savePageAs":"다른 이름으로 페이지 저장...","contextMenu.print":"인쇄...","contextMenu.printScreen":"화면 인쇄","contextMenu.closeWindow":"창 닫기","contextMenu.openStorefront":"매장 열기","contextMenu.quitPlatform":"플랫폼 종료","contextMenu.newView":"새 뷰","contextMenu.openView":"기본 웹 브라우저로 뷰 열기","contextMenu.openViews":"기본 웹 브라우저로 뷰 열기","contextMenu.reload":"Reload KR","contextMenu.reloadView":"뷰 다시 로드","contextMenu.reloadViews":"뷰 다시 로드","contextMenu.duplicate":"Duplicate KR","contextMenu.duplicateView":"뷰 복제","contextMenu.duplicateViews":"뷰 복제","contextMenu.addView":"채널에 뷰 추가","contextMenu.addViews":"채널에 뷰 추가","contextMenu.removeView":"채널에서 뷰 제거","contextMenu.removeViews":"채널에서 뷰 제거","contextMenu.closeView":"뷰 닫기","contextMenu.closeViews":"뷰 닫기","contextMenu.closeTab":"Close Tab KR","contextMenu.duplicatePage":"페이지 복제","contextMenu.submenu.print":"인쇄","contextMenu.submenu.printAll":"모두 인쇄","saveMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장","saveMenu.savePageAs":"다른 이름으로 페이지 저장","saveModal.enterValue":"Please enter a value KR","saveModal.alreadyExists":"{{title}}이(가) 이미 존재합니다.","saveModal.pleaseEnterValidName":"유효한 이름을 입력하십시오.","saveModal.renamePage":"페이지 이름 바꾸기","saveModal.closePage":"페이지 닫기","saveModal.discardChanges":"변경 사항 폐기","saveModal.discardAll":"모두 폐기","saveModal.saveAll":"모두 저장","saveModal.savePagesCount":"닫기 전에 페이지({{count}}개)를 저장하시겠습니까?","defaultPageTitle":"Untitled Page KR","enterpriseDefaultPageTitle":"Untitled Supertab KR","addNewPage":"새 페이지 추가","addNewTab":"새 탭 추가","addNewView":"새 뷰","restoreModal":"마지막으로 저장한 변경 사항으로 복원하시겠습니까?","modal.discardWarning":"저장하지 않은 변경 사항은 모두 폐기됩니다","modal.discardPageWarning":"이 페이지의 저장하지 않은 변경 사항은 모두 손실됩니다.","modal.saveChangesPrompt":"닫기 전에 변경 사항을 저장하시겠습니까?","modal.pageClose":"페이지 닫기","switchWorkspaceModal":"{{workspace}}(으)로 전환하시겠습니까?","switchWorkspaceModal.warning":"저장하지 않은 변경 사항은 모두 폐기됩니다","deleteWorkspaceModal":"이 작업 공간을 영구적으로 삭제하시겠습니까?","replaceWorkspaceModal.warning":"{{workspace}}(이)라는 이름의 작업 공간이 이미 존재합니다. 교체하시겠습니까?","replaceWorkspaceModal.warning.body":"같은 이름의 작업 공간이 이미 존재합니다. 교체하면 현재 내용을 덮어쓰게 됩니다.","replaceWorkspaceModal.replace":"교체","closePlatform":"플랫폼 닫기","closePlatform.workspace":"{{workspace}} 플랫폼 닫기","closePlatform.warning":"플랫폼을 닫으면 실행 중인 모든 작업 공간, 앱 또는 프로세스가 닫힙니다.","back":"뒤로 가기","forward":"앞으로 가기","reload":"새로고침","green":"녹색","purple":"보라색","orange":"오렌지색","red":"빨간색","pink":"핑크색","yellow":"노란색","theme.light":"밝은","theme.dark":"어두운","theme.system":"OS 설정과 동기화","toolbar.hideTabs":"탭 숨기기","toolbar.showTabs":"탭 표시","toolbar.lock":"잠금","toolbar.unlock":"잠금 해제","toolbar.colorLinking":"색상 연결","toolbar.changeLayout":"레이아웃 변경","toolbar.saveMenu":"저장 메뉴","toolbar.maximizeWindow":"창 최대화","toolbar.restoreWindow":"창 복원","toolbar.minimizeWindow":"창 최소화","changeLayout.fullWidth":"전체 너비","changeLayout.columns":"열","changeLayout.Rows":"행","changeLayout.Grid":"그리드","successIndicator.workspaceSwitched":"작업 공간 전환","successIndicator.hidden":"탭 숨김","successIndicator.shown":"탭 표시","successIndicator.locked":"페이지 잠금","successIndicator.unlocked":"페이지 잠금 해제됨","successIndicator.workspaceSaved":"작업 공간 저장됨","successIndicator.workspaceSavedAs":"작업 공간이 {{workspace}}(으)로 저장됨","successIndicator.workspaceRenamed":"작업 공간 이름 변경됨","successIndicator.pageSaved":"페이지 저장됨","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. KR","successIndicator.pageCopySaved":"페이지가 {{title}}(으)로 저장됨","successIndicator.pageRenamed":"페이지 이름 변경됨","successIndicator.contextGroupApplied":"컨텍스트 그룹 적용됨","successIndicator.namedContextGroupApplied":"{{colorName}} 컨텍스트 그룹 적용됨","successIndicator.viewRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.viewsRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.layoutApplied":"{{layoutName}} 레이아웃 적용됨","successIndicator.workspaceDeleted":"작업 공간 삭제됨","errorIndicator.pageSaveFailed":"페이지 저장 실패","errorIndicator.workspaceSaveFailed":"작업 공간 저장 실패","errorIndicator.failedToDuplicatePage":"페이지 복제 실패","infoIndicator.colorLinkAttempt":"이 탭의 색상 링크를 시도했지만 사이트/콘텐츠 소유자가 아직 활성화하지 않았습니다.","global.cancel":"취소","global.confirm":"확인","global.save":"저장","global.delete":"Delete KR","appResults.header":"Featured Content KR","recentlyClosed.header":"Recently Closed KR","landingPage.subheader":"Apps and websites selected by an admin will show here KR","aria.openBrowser":"브라우저 메뉴 열기","aria.browserTabs":"브라우저 탭","aria.viewTab":"{{title}}의 뷰 탭","aria.closePage":"{{title}}의 페이지 닫기 탭","aria.closeTab":"탭 {{title}} 닫기","aria.title":"제목","aria.closeContextGroup":"이스케이프를 사용하여 컨텍스트 그룹 선택 대화상자 닫기","aria.colorLinking":"색상 연결 표시 또는 숨기기","aria.applyColorLinking":"색상 연결을 적용하려면 뷰를 선택하십시오.","aria.assignColorLinkingCurrentView":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.assignColorLinkingCurrentViews":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.setColorLinkingActiveView":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.setColorLinkingActiveViews":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.escapeLayoutDialog":"이스케이프를 사용하여 레이아웃 변경 대화상자 닫기","global.supertab":"Supertab KR","global.tab":"Tab KR","bookmarks.editBookmark":"Edit Bookmark KR","bookmarks.bookmarkAdded":"Bookmark added KR","bookmarks.done":"Done KR","bookmarks.remove":"Remove KR","bookmarks.bookmarksPanel":"Bookmarks Panel KR","bookmarks.bookmarks":"Bookmarks KR","bookmarks.allBookmarks":"All Bookmarks KR","bookmarks.favorites":"Favorites KR","bookmarks.searchBookmarks":"Search Bookmarks KR","bookmarks.clearSearchInput":"Clear Search Input KR","bookmarks.createFolder":"Create New Folder KR","bookmarks.exitFolder":"Exit Folder KR","bookmarks.newFolder":"New Folder KR","bookmarks.namedFolder":"{{name}} Folder KR","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings KR","bookmarks.folderSettings":"{{name}} Folder Settings KR","bookmarks.noResultsFound":"No results found KR","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search KR","bookmarks.nothingToShow":"Nothing to show yet KR","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder KR","bookmarks.resultsFoundIn":"Results found in {{name}} KR","bookmarks.resultsInOtherFolders":"Results found in other folders KR","bookmarks.allResultsFoundIn":"All results found in KR","bookmarks.editName":"Edit Name KR","bookmarks.move":"Move KR","bookmarks.bookmarkAddedTitle":"Bookmark Added KR","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" KR","bookmarks.bookmarkEditedTitle":"Bookmark Edited KR","enterpriseContextMenu.saveSupertab":"Save Supertab KR","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... KR","enterpriseContextMenu.duplicate":"Duplicate KR","enterpriseContextMenu.deleteSupertab":"Delete Supertab KR","enterpriseContextMenu.newTab":"New Tab KR","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As KR","enterpriseSaveModal.renameSupertab":"Rename KR","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. KR","enterpriseSaveModal.closeTab":"Close Tab KR","enterpriseSaveModal.closeSupertab":"Close Supertab KR","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? KR","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. KR","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? KR","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. KR","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved KR","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. KR","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted KR","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. KR","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab KR","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab KR","enterpriseCommandBar.switchToSupertab":"Switch to Supertab KR","enterpriseCommandBar.goTo":"Go to {{type}} KR","enterpriseCommandBar.viewMore":"View More KR","sidePanel.aiCenter":"AI Center KR","sidePanel.newChat":"New Chat KR","sidePanel.toggleSidePanel":"Toggle Side Panel KR","sidePanel.closeSidePanel":"Close Side Panel KR","sidePanel.openAiCenter":"Open AI Center KR","contextMenu.quitEnterpriseBrowser":"Quit KR","dock.removeFavorite":"Remove KR"}'),ja=JSON.parse('{"contextMenu.newWindow":"Новое окно","contextMenu.newPage":"Новая страница","contextMenu.restore":"Восстановить последние сохраненные изменения","contextMenu.switchWorkspace":"Переключить рабочую область","contextMenu.appearance":"Внешний вид","contextMenu.saveWorkspace":"Сохранить рабочую область","contextMenu.saveWorkspaceAs":"Сохранить рабочую область как...","contextMenu.renameWorkspace":"Переименовать рабочую область","contextMenu.deleteWorkspace":"Удалить рабочую область","contextMenu.downloads":"Загрузки","contextMenu.savePage":"Сохранить страницу","contextMenu.savePageAs":"Сохранить страницу как...","contextMenu.print":"Печать...","contextMenu.printScreen":"Распечатать экран","contextMenu.closeWindow":"Закрыть окно","contextMenu.openStorefront":"Открыть Storefront","contextMenu.quitPlatform":"Выйти из платформы","contextMenu.newView":"Новое представление","contextMenu.openView":"Открыть представление с помощью веб-браузера по умолчанию","contextMenu.openViews":"Открыть представления с помощью веб-браузера по умолчанию","contextMenu.reload":"Reload RU","contextMenu.reloadView":"Перезагрузить представление","contextMenu.reloadViews":"Перезагрузить представления","contextMenu.duplicate":"Duplicate RU","contextMenu.duplicateView":"Дублировать представление","contextMenu.duplicateViews":"Дублировать представления","contextMenu.addView":"Добавить представление на канал","contextMenu.addViews":"Добавить представления на канал","contextMenu.removeView":"Удалить представление из канала","contextMenu.removeViews":"Удалить представления из канала","contextMenu.closeView":"Закрыть представление","contextMenu.closeViews":"Закрыть представления","contextMenu.closeTab":"Close Tab RU","contextMenu.duplicatePage":"Дублировать страницу","contextMenu.submenu.print":"Печатать","contextMenu.submenu.printAll":"Печатать все","saveMenu.saveWorkspaceAs":"Сохранить рабочую область как","saveMenu.savePageAs":"Сохранить страницу как","saveModal.enterValue":"Please enter a value RU","saveModal.alreadyExists":"{{title}} уже существует.","saveModal.pleaseEnterValidName":"Введите подходящее имя","saveModal.renamePage":"Переименовать страницу","saveModal.closePage":"Закрыть страницу","saveModal.discardChanges":"Отменить изменения","saveModal.discardAll":"Отменить все","saveModal.saveAll":"Сохранить все","saveModal.savePagesCount":"Сохранить ({{count}}) страниц перед закрытием?","defaultPageTitle":"Untitled Page RU","enterpriseDefaultPageTitle":"Untitled Supertab RU","addNewPage":"Добавить новую страницу","addNewTab":"Добавить новую вкладку","addNewView":"Новое представление","restoreModal":"Вы уверены, что хотите восстановить последние сохраненные изменения?","modal.discardWarning":"Все несохраненные изменения будут отменены","modal.discardPageWarning":"Все несохраненные изменения на этой странице будут потеряны.","modal.saveChangesPrompt":"Сохранить изменения перед закрытием?","modal.pageClose":"Закрыть страницу","switchWorkspaceModal":"Вы уверены, что хотите перейти в {{workspace}}?","switchWorkspaceModal.warning":"Все несохраненные изменения будут отменены","deleteWorkspaceModal":"Вы уверены, что хотите навсегда удалить эту рабочую область?","replaceWorkspaceModal.warning":"Рабочая область с именем {{workspace}} уже существует. Вы хотите заменить ее?","replaceWorkspaceModal.warning.body":"Рабочая область с таким же именем уже существует. При ее замене текущее содержимое будет перезаписано.","replaceWorkspaceModal.replace":"Заменить","closePlatform":"Закрыть платформу","closePlatform.workspace":"Закрыть платформу {{workspace}}","closePlatform.warning":"Закрытие платформы приведет к закрытию всех рабочих областей, приложений и запущенных процессов.","back":"Назад","forward":"Вперед","reload":"Перезагрузить ","green":"Зеленый","purple":"Фиолетовый","orange":"Оранжевый","red":"Красный","pink":"Розовый","yellow":"Желтый","theme.light":"Светлый","theme.dark":"Темный","theme.system":"Синхронизировать с настройками ОС","toolbar.hideTabs":"Скрыть вкладки","toolbar.showTabs":"Показать вкладки","toolbar.lock":"Заблокировать","toolbar.unlock":"Разблокировать","toolbar.colorLinking":"Привязка к цвету","toolbar.changeLayout":"Изменить макет","toolbar.saveMenu":"Меню сохранения","toolbar.maximizeWindow":"Увеличить окно","toolbar.restoreWindow":"Восстановить окно","toolbar.minimizeWindow":"Свернуть окно","changeLayout.fullWidth":"Полная ширина","changeLayout.columns":"Столбцы","changeLayout.Rows":"Строки","changeLayout.Grid":"Сетка","successIndicator.workspaceSwitched":"Рабочая область переключена","successIndicator.hidden":"Вкладки скрыты","successIndicator.shown":"Вкладки показаны","successIndicator.locked":"Страница заблокирована","successIndicator.unlocked":"Страница разблокирована","successIndicator.workspaceSaved":"Рабочая область сохранена","successIndicator.workspaceSavedAs":"Рабочая область сохранена как {{workspace}}","successIndicator.workspaceRenamed":"Рабочая область переименована","successIndicator.pageSaved":"Страница сохранена","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. RU","successIndicator.pageCopySaved":"Страница сохранена как {{title}}","successIndicator.pageRenamed":"Страница переименована","successIndicator.contextGroupApplied":"Контекстная группа применена","successIndicator.namedContextGroupApplied":"Контекстная группа {{colorName}} применена","successIndicator.viewRemoved":"Представление удалено из контекстной группы","successIndicator.viewsRemoved":"Представления удалены из контекстной группы","successIndicator.layoutApplied":"Макет {{layoutName}} применен","successIndicator.workspaceDeleted":"Рабочая область удалена","errorIndicator.pageSaveFailed":"Не удалось сохранить страницу","errorIndicator.workspaceSaveFailed":"Не удалось сохранить рабочую область","errorIndicator.failedToDuplicatePage":"Не удалось продублировать страницу","infoIndicator.colorLinkAttempt":"Мы попытались привязать цвет к этой вкладке, но владелец сайта/контента еще не включил эту возможность","global.cancel":"Отменить","global.confirm":"Подтвердить","global.save":"Сохранить","global.delete":"Delete RU","appResults.header":"Featured Content RU","recentlyClosed.header":"Recently Closed RU","landingPage.subheader":"Apps and websites selected by an admin will show here RU","aria.openBrowser":"Открыть меню браузера","aria.browserTabs":"Вкладки браузера","aria.viewTab":"Вкладка представления {{title}}","aria.closePage":"Кнопка «Закрыть» на вкладке для страницы {{title}}","aria.closeTab":"Закрыть вкладку {{title}}","aria.title":"Название","aria.closeContextGroup":"Чтобы закрыть диалог выбора контекстной группы, используйте escape","aria.colorLinking":"Показать или скрыть привязку к цвету","aria.applyColorLinking":"Выберите представление, чтобы применить привязку к цвету","aria.assignColorLinkingCurrentView":"Текущее представление, назначенное контекстной группе {{name}}","aria.assignColorLinkingCurrentViews":"Текущие представления, назначенные контекстной группе {{name}}","aria.setColorLinkingActiveView":"Установить активное представление в контекстную группу {{name}}","aria.setColorLinkingActiveViews":"Установить активные представления в контекстную группу {{name}}","aria.escapeLayoutDialog":"Чтобы закрыть диалог изменения макета, используйте escape","global.supertab":"Supertab RU","global.tab":"Tab RU","bookmarks.editBookmark":"Edit Bookmark RU","bookmarks.bookmarkAdded":"Bookmark added RU","bookmarks.done":"Done RU","bookmarks.remove":"Remove RU","bookmarks.bookmarksPanel":"Bookmarks Panel RU","bookmarks.bookmarks":"Bookmarks RU","bookmarks.allBookmarks":"All Bookmarks RU","bookmarks.favorites":"Favorites RU","bookmarks.searchBookmarks":"Search Bookmarks RU","bookmarks.clearSearchInput":"Clear Search Input RU","bookmarks.createFolder":"Create New Folder RU","bookmarks.exitFolder":"Exit Folder RU","bookmarks.newFolder":"New Folder RU","bookmarks.namedFolder":"{{name}} Folder RU","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings RU","bookmarks.folderSettings":"{{name}} Folder Settings RU","bookmarks.noResultsFound":"No results found RU","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search RU","bookmarks.nothingToShow":"Nothing to show yet RU","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder RU","bookmarks.resultsFoundIn":"Results found in {{name}} RU","bookmarks.resultsInOtherFolders":"Results found in other folders RU","bookmarks.allResultsFoundIn":"All results found in RU","bookmarks.editName":"Edit Name RU","bookmarks.move":"Move RU","bookmarks.bookmarkAddedTitle":"Bookmark Added RU","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" RU","bookmarks.bookmarkEditedTitle":"Bookmark Edited RU","enterpriseContextMenu.saveSupertab":"Save Supertab RU","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... RU","enterpriseContextMenu.duplicate":"Duplicate RU","enterpriseContextMenu.deleteSupertab":"Delete Supertab RU","enterpriseContextMenu.newTab":"New Tab RU","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As RU","enterpriseSaveModal.renameSupertab":"Rename RU","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. RU","enterpriseSaveModal.closeTab":"Close Tab RU","enterpriseSaveModal.closeSupertab":"Close Supertab RU","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? RU","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. RU","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? RU","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. RU","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved RU","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.RU","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted RU","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. RU","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab RU","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab RU","enterpriseCommandBar.switchToSupertab":"Switch to Supertab RU","enterpriseCommandBar.goTo":"Go to {{type}} RU","enterpriseCommandBar.viewMore":"View More RU","sidePanel.aiCenter":"AI Center RU","sidePanel.newChat":"New Chat RU","sidePanel.toggleSidePanel":"Toggle Side Panel RU","sidePanel.closeSidePanel":"Close Side Panel RU","sidePanel.openAiCenter":"Open AI Center RU","contextMenu.quitEnterpriseBrowser":"Quit RU","dock.removeFavorite":"Remove RU"}');const Qa=Ha().t,Ya=async e=>{const t=await ea(e);return await t.dispatch(sa.GetPages)},Xa=async e=>(await ea(e.identity)).dispatch(sa.UpdatePageForWindow,e);let en,tn=!1;const an=()=>tn,nn=()=>en||{enabled:!1};async function on(e,t){const a=!!t;let n=new Set;if(a){const{identity:e,pageId:a}=t,o=Aa().Browser.wrapSync(e),r=await o.getPage(a);r?.panels&&(n=new Set(r.panels.map(({viewOptions:e})=>e.name)))}return e.map(e=>{const t=e.viewOptions.name,o=t?.startsWith(Ta);o&&(!a||a&&!n.has(t))&&delete e.viewOptions.name;const r=(i=e.viewOptions,i.name||=`${Ta}${Lt()}`,i);var i;return{...e,viewOptions:{...r,uuid:we.uuid}}})}async function rn(e){for(const t of e)t.panels&&await cn(t.panels)}const sn=e=>null!==e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&/ERR_([A-Z]+_*)+/.test(e.message);async function cn(e){const t=e.map(e=>fin.Platform.getCurrentSync().createView(e.viewOptions,fin.me.identity).catch(e=>{if(!sn(e))throw e;console.error(e)}));return await Promise.all(t)}const ln=(e,t)=>!t.find(t=>t===e),dn=(e,t)=>`${e} (${t})`,un=(e,t)=>{if(ln(e,t))return e;let a=1;const n=e.replace(/ *\(\d+\)$/,"");for(;!ln(dn(n,a),t);)a+=1;return dn(n,a)},pn=async()=>{const e=await be();return(await Promise.all(e.map(async e=>{try{return Ya(e.identity)}catch(t){JSON.stringify(e.identity);const a=await e.getOptions();return a.workspacePlatform?.pages||[]}}))).reduce((e,t)=>e.concat(t),[])},wn=async()=>(await bt(we)).dispatch(ht.GetSavedPages,void 0),gn=async e=>(await bt(we)).dispatch(ht.GetSavedPage,e),hn=async(e,t)=>{const a=await(async e=>(await pn()).find(t=>t.pageId===e))(e);return!a||a.title===t.title&&e===t.pageId||await Xa({identity:a.parentIdentity,pageId:e,page:{pageId:t.pageId,title:t.title}}),a},mn=async({page:e})=>{await hn(e.pageId,e),await(async e=>(await bt(we)).dispatch(ht.CreateSavedPage,e))({page:e})},kn=async e=>{await gn(e)&&await(async e=>(await bt(we)).dispatch(ht.DeleteSavedPage,e))(e)},bn=async({pageId:e,page:t})=>{await hn(e,t);return await(async e=>(await bt(we)).dispatch(ht.UpdateSavedPage,e))({pageId:e,page:t})},yn=async e=>await gn(e.pageId)?bn({pageId:e.pageId,page:e}):mn({page:e}),fn=async e=>{await(async e=>(await ea(e.identity)).dispatch(sa.AttachPagesToWindow,e))(e)},Sn=async e=>{const t={...e.page,panels:e.page.panels&&await on(e.page.panels,e)};t.panels&&await cn(t.panels),await Xa({...e,page:t})},vn=async e=>{await(async e=>(await ea(e.identity)).dispatch(sa.DetachPagesFromWindow,e))(e)},Pn=async e=>{await(async e=>(await ea(e.identity)).dispatch(sa.SetActivePageForWindow,e))(e)},Cn=e=>Ya(e),Mn=async({identity:e,pageId:t})=>(await Cn(e)).find(e=>e.pageId===t),xn=async e=>{await(async e=>(await ea(e.identity)).dispatch(sa.ReorderPagesForWindow,e))(e)},In=new class{constructor(){this.queue=[],this.locked=!1}lock(){return new Promise(e=>{this.locked?this.queue.push(e):(this.locked=!0,e())})}unlock(){if(this.queue.length>0){const e=this.queue.shift();e&&e()}else this.locked=!1}};async function An(e){await In.lock();try{const t=an()?Qa("enterpriseDefaultPageTitle"):Qa("defaultPageTitle"),a=e??t,[n,o]=await Promise.all([wn(),pn()]),r=[...n,...o].map(({title:e})=>e);return un(a,r)}finally{In.unlock()}}async function Wn({page:e}){return{shouldShowModal:!(!e||!e.hasUnsavedChanges)}}async function Dn({page:e,identity:t}){const a=fin.Application.getCurrentSync();if((await a.getInfo()).initialOptions.enableBeforeUnload){const a=await fin.Application.getCurrentSync().getViews(),n=Na(e.layout.content).filter(e=>e.name&&a.some(t=>t.identity.name===e.name)).map(e=>fin.View.wrapSync({name:e.name,uuid:t.uuid})),o=await this.checkViewsForPreventUnload(n);if(o.viewsPreventingUnload.length>0){if((await this.getUserDecisionForBeforeUnload({...o,windowId:t,windowShouldClose:!1,closeType:"page"})).viewsToClose.length!==n.length)return e.pageId,{shouldPageClose:!1}}}return{shouldPageClose:!0}}async function Tn({pages:e,identity:t}){const a=await Promise.all(e.map(e=>this.shouldPageClose({page:e,closeType:"window",identity:t}))),{pagesPreventingClose:n,pagesNotPreventingClose:o}=e.reduce((e,t,n)=>!a[n].shouldPageClose?{pagesNotPreventingClose:e.pagesNotPreventingClose,pagesPreventingClose:[...e.pagesPreventingClose,t]}:{pagesPreventingClose:e.pagesPreventingClose,pagesNotPreventingClose:[...e.pagesNotPreventingClose,t]},{pagesPreventingClose:[],pagesNotPreventingClose:[]});return this.handlePagesAndWindowClose({pagesNotPreventingClose:o,pagesPreventingClose:n,identity:t})}async function Bn({pagesPreventingClose:e,pagesNotPreventingClose:t,identity:a}){return{shouldWindowClose:0===e.length}}async function Rn({page:e}){return Jt(e)}async function En(e){return{hasUnsavedChanges:!0}}const Fn=async()=>{const e=Aa(),t=(await be()).map(t=>e.Browser.wrapSync(t.identity));await Promise.all(t.map(async e=>{const t=await e.getPages();await Promise.all(t.map(async t=>{t.title,await e.updatePage({pageId:t.pageId,page:{hasUnsavedChanges:!1}}),t.pageId,t.title,await yn({...t,hasUnsavedChanges:!1})}))}))},Vn=new Map,Nn=()=>Vn,Ln=e=>Vn.delete(e);let _n=!1;const On=()=>{_n||(_n=!0,fin.Window.wrapSync(he).once("closed",()=>{_n=!1,(async(e,t)=>{await qe(Ze(e),{source:"Store",...t})})(fin.me.identity,{type:"Navigation",action:"Close Store",skipValueHashing:!0})}))};let Un,Gn,Hn;const $n=async()=>(void 0===Hn&&(Hn=!!(await Q()).disableOpenFinAnalytics),Hn);async function zn(e){e.forEach(e=>{var t,a;"Page"===e.type?"Open Page"===e.action?(t=e.data.uuid,a=e,Vn.set(t,a)):"Close Page"===e.action&&Ln(e.data.uuid):"Store"===e.source&&"Close"!==e.action&&On()}),await(async e=>{Un?.sendToOpenFin&&(await $n()||e.forEach(async e=>{const t=Et({},e);t.entityId&&(t.entityId.uuid=await Bt(t.entityId.uuid),t.entityId.name=await Bt(t.entityId.name)),!e.skipValueHashing&&"value"in t&&(t.value=await Bt(t.value)),Gn(t)}))})(e);const t=e.map(({skipValueHashing:e,...t})=>t);this.handleAnalytics(t)}const Kn=async e=>{Un=e;Un?.sendToOpenFin&&!await $n()&&(()=>{const e=N,t=e+z.Analytics,a=document.createElement("IFRAME");a.setAttribute("src",t),a.setAttribute("style","width: 0px !important"),a.setAttribute("style","height: 0px !important"),a.setAttribute("style","display: none !important"),document.body.appendChild(a),Gn=async t=>{a.contentWindow.postMessage(t,e)}})();const t=fin.Application.getCurrentSync();t.addListener("view-created",async e=>{var t;je({type:"View",action:"Open View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid,url:await(t=e.viewIdentity,fin.View.wrapSync(t).getInfo().then(e=>e.url))}})}),t.addListener("view-destroyed",async e=>{je({type:"View",action:"Close View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid}})}),t.addListener("window-closed",e=>{e.name.startsWith(de.BrowserMenu)||(je({type:"Window",action:"Close Window",value:e.name,data:{uuid:e.uuid}}),(async()=>{const e=Nn(),t=await pn();if(t.length===e.size)return;const a=t.reduce((e,t)=>e.set(t.pageId,1),new Map);for(const[t,n]of e)a.has(t)||(n.action="Close Page",je(n),Ln(t))})())})},Jn=Ce({alwaysOnTop:!0,autoShow:!1,frame:!1,resizable:!1,showTaskbarIcon:!1});const Zn=function(e=Jn){const t=new Map;return async(a,n,o,r,i)=>{if(t.has(a)){const{currentUrl:e,currentName:o}=t.get(a);if(e===n)return;const r=fin.Window.wrapSync({uuid:fin.me.uuid,name:o});await r.close()}const s=`${de.HomeInternal}-${Date.now()}${Math.random()}`;t.set(a,{currentUrl:n,currentName:s});const c=`New ${r} indicator: ${o} ${i}`,l=await fin.Platform.getCurrentSync().createWindow({...e,name:s,url:n});((e,t)=>{const a=document.createElement("div");a.setAttribute("role","alert"),a.setAttribute("aria-live",t||"polite"),(e=>{e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.margin="-1px",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.border="0"})(a),document.body.appendChild(a),setTimeout(()=>{a.innerHTML=e},300),setTimeout(()=>{document.body.removeChild(a)},1e3)})(c),l.once("closed",()=>{t.delete(a)})}}();async function qn(e,t,a,n,o,r){if(a&&fin.me.name!==a){const i={type:e,message:t,parentBrowserName:a,secondaryMessage:n,icon:o,isEnterprise:r};return(await ea({uuid:fin.me.uuid,name:a})).dispatch(sa.ShowBrowserIndicator,i)}const i=new URLSearchParams;if(i.append("type",e),i.append("message",t),i.append("parentName",a||""),i.append("secondaryMessage",n||""),i.append("icon",o||""),i.append("isEnterprise",`${r}`||""),a){const e=pe(a?{uuid:B,name:a}:void 0),t=`${(s=await e.getBounds()).top},${s.left},${s.height},${s.width},${s.bottom},${s.right},${s.content.top},${s.content.left},${s.content.height},${s.content.width}`;i.append("parentBounds",t)}var s;const c=`${(r?await ae():await te())+z.BrowserIndicator}#${i.toString()}`;return Zn("browser"+a,c,t,e,n)}async function jn(e,t,a,n){const o=await Ae(t);return qn("success",e,t.name,a,n,o)}const Qn=async(e=we)=>{const{workspacePlatform:t}=await pe(e).getOptions(),a=t?.newPageUrl,n=t?.newTabUrl;return{newPageUrl:a,newTabUrl:n}},Yn=async(e=we)=>{const t=await Ae(e)||an(),a=t?null:await Aa().Browser.getUniquePageTitle();let n;if(e&&await ke(e))n=await(async(e,t=we)=>{const{newPageUrl:a}=await Qn(t);if(!a)throw new Error("Trying to create a new page without a newPageUrl set");return La(e,a,t)})(a,e);else if(t){const e=await ne();n=await La(a,e)}t&&(n.settings=n.settings??{},n.dimensions=n.dimensions??{},n.settings.hasHeaders=!1,n.settings.reorderEnabled=!0,n.dimensions.headerHeight=0);const o=await Kt(a,n);return t&&(o.hasUnsavedChanges=!1),o};var Xn;!function(e){e.Home="/home",e.Browser="/browser",e.Enterprise="/enterprise",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(Xn||(Xn={}));function eo(e,t){return async(a,...n)=>{e.has(a)&&e.get(a).forEach(e=>e(...n)),t&&await t({event:a,payload:n})}}function to(e,t){return t&&t(t=>{const{event:a,payload:n}=t;e.has(a)&&e.get(a).forEach(e=>e(...n))}),(t,a)=>{e.has(t)||e.set(t,new Set),e.get(t).add(a)}}function ao(e){return(t,a)=>{e.has(t)||e.set(t,new Set);const n=e.get(t),o=(...e)=>{a(...e),n.delete(o)};n.add(o)}}function no(e){return(t,a)=>{e.has(t)&&e.get(t).delete(a)}}const oo={name:de.BrowserMenu,alwaysOnTop:!0,autoShow:!0,frame:!1,resizable:!1,backgroundColor:"#2f3136",smallWindow:!0,showTaskbarIcon:!1,backgroundThrottling:!1,saveWindowState:!1};function ro(e){const t={...oo,...e};return t.url=function(e,t){if(!W)throw new Error("resolveAbsolutePath can only be used in a window");const a=t??window.location;if(/^(?:[a-z]+:)?\/\//i.test(e))return e;const n=`${a.protocol}//${a.hostname}`;return new URL(e,n).href}(t.url??""),t}const io=function(e){const t=new Map;return{emit:eo(t,t=>A&&fin.InterApplicationBus.publish(e,t)),addListener:to(t,t=>A&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t)),addListenerWithUUID:a=>to(t,t=>A&&fin.InterApplicationBus.subscribe({uuid:a},e,t)),removeListener:no(t),once:ao(t)}}("window.menu"),so=(e,t)=>fin.Window.wrapSync(e).updateOptions({opacity:t}),co=e=>io.emit("response",e),lo=Be(()=>le().getChildWindows(),500);const uo=new Map;async function po(e,t){const a=ro(e),n={top:a.top,left:a.left,width:a.defaultWidth||a.width,height:a.defaultHeight||a.height};return t.set("parentName",fin.Window.getCurrentSync().identity.name),{name:a.name,bounds:n,route:`${a.url}#${t.toString()}`}}async function wo({options:e,parameters:t}){const a=t??new URLSearchParams,n=ro(e),{name:o,modalParentIdentity:r}=n;if(!a.has("isEnterprise")){const e=`${await(async e=>(De||(De=await Ae(e)),De))(r)}`;a.set("isEnterprise",e)}let i=await async function(e){return(await lo()).find(t=>t.identity.name===e)}(o);if(i)await async function(e,t){const{name:a,bounds:n,route:o}=await po(e,t),r={uuid:fin.me.identity.uuid,name:a},i=fin.Window.wrapSync(r);await Promise.all([so(r,0),i.setBounds(n)]),e.preventBlur||i.once("blurred",()=>{so(r,0),i.hide(),co({name:r.name,data:{actionName:"Cancel"}})}),io.emit("update",a,n,o),await co({name:a,data:{actionName:"Cancel"}})}(n,a);else{const{route:t,bounds:o}=await po(e,a);i=await async function(e,t,a){const n=ro(e),o=await At(fin.me.identity),r=await Wt(fin.me.identity)===m.Dark,i=o?.theme;if(n.backgroundColor=i?.[r?m.Dark:m.Light]?.palette?.inputBackground||n.backgroundColor,!uo.has(n.name))return new Promise(o=>{io.once("ready",async e=>{if(e.name===n.name){const t=await uo.get(n.name);n.preventBlur||t.once("blurred",async()=>{if(so(e,0),t.hide(),co({name:n.name,data:{actionName:"Cancel"}}),t.identity.name===de.BrowserSaveMenu){const e=await t.getOptions();"submitting"!==e.customContext&&"error"!==e.customContext&&t.close()}else t.identity.name.startsWith(de.BrowserMenu)&&t.close()}),setTimeout(async()=>{await so(e,1),1!==(await fin.Window.wrapSync(e).getOptions()).opacity&&so(e,1)}),o(t)}});const r=(async()=>{const o=await fin.Platform.getCurrentSync().createWindow(Ce({...n,opacity:0,url:t||n.url,defaultLeft:a?.left,defaultTop:a?.top,defaultWidth:a?.width,defaultHeight:a?.height,workspacePlatform:{preventBlur:e.preventBlur}},!0));return o.once("closed",()=>{uo.delete(n.name)}),o})();uo.set(n.name,r)});return uo.get(n.name)}({...n},t,o)}return i}const go=async({options:e,content:t,parameters:a})=>{const n=a??new URLSearchParams;n.set("content",JSON.stringify({...t,invocationId:Lt()}));const o={...e,name:`${e.name}--${e.modalParentIdentity?.name??""}`},r=await wo({options:o,parameters:n});return new Promise(e=>{io.once("response",async t=>{t.name===o.name&&(e({data:t.data}),o?.closeOnResponse&&r.close())})})},ho=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t)=>{const a=await Ae(t);return{title:"Switch Workspace",windowOptions:{url:await oe(a,!1)+z.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:t},content:{title:Qa("switchWorkspaceModal",{workspace:e}),body:Qa("switchWorkspaceModal.warning"),buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel"},{label:Qa("global.confirm"),type:"primary",id:"Confirm"}]}}}})(t,a?void 0:e),r=await Le(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await go({options:i,content:o})).data.actionName},mo=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await Ae(e);return{title:"Delete Workspace",windowOptions:{url:await oe(a,!1)+z.ResponseModal,name:de.BrowserMenu,defaultHeight:144,defaultWidth:410,modalParentIdentity:e},content:{title:Qa("deleteWorkspaceModal"),body:`${t}`,buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel"},{label:Qa("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t),o=await Le(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Confirm"===(await go({options:r,content:n})).data.actionName},ko=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>{const n=await Ae(e);return{title:"Platform Quit",windowOptions:{url:await oe(n,!1)+z.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:a?void 0:e},content:{title:Qa("Platform"===t?"closePlatform":"closePlatform.workspace",{workspace:t}),body:Qa("closePlatform.warning"),buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel"},{label:Qa("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t,a),r=await Le(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await go({options:i,content:o})).data.actionName},bo=async e=>{const{windowOptions:t,content:a}=await(async e=>{const t=await Ae(e);return{title:"Restore Changes",windowOptions:{url:await oe(t,!1)+z.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:e},content:{title:Qa("restoreModal"),body:Qa("modal.discardWarning"),buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel"},{label:Qa("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e),n=await Le(t,t.modalParentIdentity),o={...t,top:n.top,left:n.left};return"Confirm"===(await go({options:o,content:a})).data.actionName},yo=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await Ae(e);return{title:"Delete Page",windowOptions:{url:new URL(await oe(a,!1)+z.ResponseModal).toString(),name:de.BrowserMenu,defaultHeight:172,defaultWidth:464,modalParentIdentity:e},content:{title:Qa("enterpriseDeleteModal.deleteSupertab",{title:t}),body:Qa("enterpriseDeleteModal.deleteSupertabWarning"),buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel",variant:a?"outline":void 0},{label:Qa("global.delete"),type:"primary",id:"Delete",variant:a?"submit":void 0}]}}}})(e,t),o=await Le(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Delete"===(await go({options:r,content:n})).data.actionName},fo=async({identity:e,title:t,description:a})=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>({title:"Update Version",windowOptions:{url:await ae()+z.ResponseModal,name:de.UpdateVersionModal,defaultHeight:172,defaultWidth:464,modalParentIdentity:e,preventBlur:!0,closeOnResponse:!0,includeInSnapshots:!1},content:{title:t,body:a,buttons:{right:[{label:"Snooze",type:"secondary",id:"snooze"},{label:"Restart",type:"primary",id:"restart"}]}}}))(e,t,a),r=fin.Window.wrapSync({uuid:e.uuid,name:`${n.name}--${n.modalParentIdentity?.name}`});try{if(await(r?.isShowing()))return}catch(e){}const i=await Le(n,n.modalParentIdentity),s={...n,top:i.top,left:i.left};return(await go({options:s,content:o})).data};async function So({options:e,...t}){if(!(!!e?.skipPrompt||await ho(e?.promptContainerWindowIdentity,t.title,e?.shouldCenterModalOnMonitor)))return!1;const a=!!(await fin.Application.getCurrentSync().getChildWindows()).find(({identity:e})=>e.name===de.DockCompanion);an();const n=a||an()?{closeExistingWindows:!1,closeSnapshotWindows:!0}:{closeExistingWindows:e?.applySnapshotOptions?.closeExistingWindows??!0},o=Aa();return await o.applySnapshot(t.snapshot,{...e?.applySnapshotOptions??{},...n}),Co(t),qn("success",Qa("successIndicator.workspaceSwitched")).catch(console.warn),!0}async function vo(e){try{return await So(e)}catch(e){return console.error("failed to apply the current workspace: ",e),!1}}async function Po(e){try{const t=await async function(){const e=Aa(),t=await e.getCurrentWorkspace();return(await e.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId)}();if(!t)return"not-saved-workspace";return!!e?.skipPrompt||await bo(e?.promptContainerWindowIdentity)?(await So({options:{skipPrompt:!0,applySnapshotOptions:e?.applySnapshotOptions},...t}),"success"):"user-declined"}catch(e){throw console.error("failed to restore last saved workspace: ",e),e}}function Co(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);Ue(_t.CurrentWorkspaceId,t)}catch(e){console.error("failed to set the active workspace: ",e)}}async function Mo(){const e=Aa(),t=await e.getSnapshot();return{workspaceId:Lt(),title:await Wo(),metadata:{APIVersion:O},snapshot:t}}async function xo(){if("undefined"==typeof localStorage)return Mo();const e=Ge(_t.CurrentWorkspaceId);if(!e)return Mo();const t=JSON.parse(e),a=Aa(),n=await a.getSnapshot();return{...t,metadata:{APIVersion:O},snapshot:n}}const Io=async()=>(await bt(we)).dispatch(ht.GetSavedWorkspaces,void 0),Ao=async e=>await(async e=>(await bt(we)).dispatch(ht.GetSavedWorkspace,e))(e.workspaceId)?(async e=>(await bt(we)).dispatch(ht.UpdateSavedWorkspace,e))({workspaceId:e.workspaceId,workspace:e}):(async e=>(await bt(we)).dispatch(ht.CreateSavedWorkspace,e))({workspace:e});async function Wo(e="Untitled Workspace"){const t=(await Io()).map(({title:e})=>e);return un(e,t)}const Do=e=>({...e,snapshot:{...e.snapshot,windows:e.snapshot.windows.map(e=>({...e,workspacePlatform:{...e.workspacePlatform,pages:e.workspacePlatform?.pages?.map(e=>({...e,hasUnsavedChanges:!1}))}}))}}),To=async(e,t)=>{const a=t??Aa();await a.Storage.saveWorkspace(Do(e)),await(async()=>(await bt(we)).dispatch(ht.MarkUnsavedPagesAsSavedInternal,void 0))()},Bo=async e=>{const t=Aa(),a=await t.getCurrentWorkspace(),n=await t.Storage.getWorkspaces(),o=a.workspaceId;if(n.some(e=>e.workspaceId===o))await To(a,t),await t.setActiveWorkspace(a),await jn(Qa("successIndicator.workspaceSaved"),e);else{const a=t.Browser.wrapSync(e);await a._openSaveModal({menuType:x.SAVE_WORKSPACE})}},Ro=e=>{Aa().Browser.wrapSync(e)._openSaveModal({menuType:x.SAVE_WORKSPACE_AS})},Eo=async e=>{const t=Aa().Browser.wrapSync(e),{newPageUrl:a}=await Qn(),n=await Yn(e),o=a||void 0;await t._addDefaultPage({identity:e,page:n,newPageUrl:o})},Fo=async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=await Aa().Storage.getPages(),o=(await a.getPages()).find(e=>t?e.pageId===t:e.isActive),r=n.some(e=>o.pageId===e.pageId),i=await Ae(e);if(r)try{await Aa().Storage.savePage((d=o,{...d,hasUnsavedChanges:void 0,parentIdentity:void 0,isActive:void 0,layout:Va(d.layout)})),await a.updatePage({pageId:o.pageId,page:{hasUnsavedChanges:!1}}),jn(Qa(i?"enterpriseSuccessIndicator.supertabSaved":"successIndicator.pageSaved"),e,Qa(i?"enterpriseSuccessIndicator.supertabHasBeenSaved":"successIndicator.pageHasBeenSaved",{title:o.title}))}catch{s=Qa("errorIndicator.pageSaveFailed"),c=o.parentIdentity.name,qn("error",s,c,l)}else a._openSaveModal({id:o.pageId,menuType:x.SAVE_PAGE});var s,c,l,d},Vo=async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=(await a.getPages()).find(e=>t?e.pageId===t:e.isActive);a._openSaveModal({id:n.pageId,menuType:x.SAVE_PAGE_AS}),je({type:"Page Modal",action:"Select Save As",value:n.title,skipValueHashing:!0})},No={title:"Downloads",pageId:"downloads-page-id",layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{name:"show-download-view",url:"chrome://downloads/"}}]}]}},Lo=async e=>{const t=pe(e),a=await t.getCurrentViews(),n=(await Aa().Browser.wrapSync(t.identity).getPages()).find(e=>e.isActive);try{const t=(await Promise.all(a.map(async e=>({identity:e.identity,info:await fin.View.wrapSync(e.identity).getInfo()})))).find(e=>"chrome://downloads/"===e.info.url);if(t)await fin.View.wrapSync(t.identity).focus();else{const t=Aa();if(n?.isLocked){const e=(await fin.Application.getCurrentSync().getChildWindows()).find(e=>"show-download-window"===e.identity.name);return void(e?await e.focus():t.Browser.createWindow({name:"show-download-window",workspacePlatform:{pages:[No]}}))}(await Aa().createView({name:"show-download-view",url:"chrome://downloads/",target:e},e)).focus()}}catch(e){console.error("Couldn't open downloads view",e)}},_o=async e=>{const t=e.map(e=>fin.View.wrapSync(e).print());await Promise.all(t)},Oo=e=>{const[t,a,n]=e.split(".").map(e=>"x"===e?0:1);return 100*t+10*a+1*n};class Uo extends Error{}const Go=async e=>{try{const a=await async function(){const e=await Q(),t=e?.translationOverridesUrl??"https://workspace.openfin.co/workspace/assets/translation-override.json";if(""===t)throw new Uo("Empty string provided as url to translationOverridesUrl, overrides will not be fetched.");return await fetch(t).then(e=>e.json())}();(t=(e=>{const t=O.split(".");return Object.keys(e).filter(e=>{const a=e.split(".");if(3!==a.length)return console.warn(`Encountered a translation override version string in an unsupported format: ${e}. Versions must be in A.B.C format where A, B, C are either integers or the wildcard symbol 'x'.`),!1;const[n,o,r]=a;return!(n!==t[0]&&"x"!==n||o!==t[1]&&"x"!==o||r!==t[2]&&"x"!==r)})})(a),[...t].sort((e,t)=>Oo(e)-Oo(t))).forEach(t=>{const n=a[t];Object.keys(n).forEach(t=>{e.addResourceBundle(t,"translation",n[t],!0,!0)})})}catch(e){e instanceof Uo?console.warn(e.message):console.error("Error applying a translation override: ",e)}var t};function Ho(){return Ha().language}const $o=async e=>{Jo(e),(e=>{Ha().changeLanguage(e)})(e),await(async e=>{const t=await be();return Promise.all(t.map(async t=>{const a=await ea(t.identity);await a.dispatch(sa.SetSelectedLanguage,e)}))})(e)};function zo(){if(!Ha().options.resources)throw new Error("No language resources found");return{currentLanguage:Ho(),resources:Ha().options.resources}}async function Ko(e="en-US"){Jo(e),function(e="en-US"){Ha().use(Ua.initReactI18next).init({lng:e,fallbackLng:"en-US",resources:{"en-US":{translation:Ka},"ja-JP":{translation:Za},"zh-CN":{translation:$a},"ko-KR":{translation:qa},"ru-RU":{translation:ja},"de-DE":{translation:Ja},"zh-Hant":{translation:za}},interpolation:{escapeValue:!1}})}(e),await Go(Ha())}function Jo(e){if(!M.includes(e))throw new Error(`The ISO language provided ${e} is not supported`)}const Zo=new Map;let qo=Date.now();function jo(){const e=Date.now();return qo=Math.max(e,qo+1),qo}async function Qo(){const e=Array.from(Zo.values()).sort((e,t)=>t.lastFocusedTime-e.lastFocusedTime);if(e.length>0)return e[0].identity;try{const e=Ge(_t.LastFocusedBrowserWindow);if(!e)return;const t=JSON.parse(e);if(await fe(t))return await er(t),t}catch(e){console.error("failed to get last focused browser window from localStorage:",e)}}async function Yo(){const e=fin.Application.getCurrentSync();return(await e.getChildWindows()).filter(e=>e.identity.name.startsWith(de.BrowserWindow))}async function Xo(){const e=Aa(),t=fin.Window.wrapSync({uuid:fin.me.uuid,name:de.DockCompanion}),a=await Pe(await t.getBounds()),n=await async function(e,t,a){const n=await fin.System.getMonitorInfo(),o=a?.availableRect??n.primaryMonitor.availableRect,r={width:o.right-o.left,height:o.bottom-o.top},i=Math.min(e,r.height),s=Math.min(t,r.width),c=o.top+Math.floor((r.height-i)/2);return{height:i,width:s,left:o.left+Math.floor((r.width-s)/2),top:c}}(600,900,a),o=await Yn();return(await e.Browser.createWindow({defaultHeight:600,defaultWidth:900,defaultLeft:n.left,defaultTop:n.top,workspacePlatform:{pages:[o]}})).identity}async function er(e,t,a=!1){if(!await ke(e))return;const n=fin.Window.wrapSync(e),o=t??await n.isShowing(),r=Zo.get(e.name),i={identity:e,lastFocusedTime:a?jo():r?.lastFocusedTime??jo(),isVisible:o};Zo.set(e.name,i),a&&function(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);Ue(_t.LastFocusedBrowserWindow,t)}catch(e){console.error("failed to save last focused browser window: ",e)}}(e)}async function tr(e=fin.me.identity){Zo.delete(e.name)}const ar=Nt()(async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,a=!1;for(const n of e)if(n.identity.name===de.BrowserMenu||n.identity.name===de.BrowserSaveMenu?t=n:await ke(n.identity)&&(a=!0),a)break;!a&&t&&t.close()},100,{leading:!1,trailing:!0});let nr={};const or=async({actionId:e,payload:t})=>{if("function"!=typeof nr[e])throw new Error(`Cannot find a configured function for the action '${e}'`);return nr[e](t)};let rr;const ir=()=>`custom-context-menu-${Aa().identity.uuid}-${O}`,sr=()=>`custom-bookmark-context-menu-${Aa().identity.uuid}-${O}`,cr=async()=>(rr||(rr=await fin.InterApplicationBus.Channel.connect(ir())),rr);var lr,dr;!function(e){e.Save="Save",e.SaveAs="SaveAs"}(lr||(lr={})),function(e){e.GlobalMenu="global-menu",e.ContextMenu="context-menu",e.RenameSupertab="rename-supertab",e.AddEditBookmark="add-edit-bookmark",e.DropdownMenu="dropdown-menu",e.ZoomControls="zoom-controls"}(dr||(dr={}));const ur=require("dexie"),pr=e=>e+"-"+fin.me.uuid,wr=(e,t)=>{const a=D&&A&&new ur.Dexie(e);return a&&a.version(.1).stores({[t]:""}),a},gr=(e,t)=>{const a=wr(pr(e),t),n=wr(e,t);if(!a||!n)throw new Error("Unable to migrate store - IndexDB not supported");return(async(e,t,a)=>{const n=Ge(_t.HasMovedStore),o=n?JSON.parse(n):{};if(o&&o[a])return;o[a]=!0,Ue(_t.HasMovedStore,JSON.stringify(o));const r=await e[a].toArray();await t[a].bulkPut(r)})(n,a,e),a},hr=(e,t="")=>e.toLowerCase().includes(t.toLowerCase()),mr="visited-sites",kr="removed-tab-stack",br=D&&A&&gr("openfin-home-pages","pages"),yr=D&&A&&new ur.Dexie(pr("openfin-enterprise-site-history"));yr&&yr.version(.1).stores({[mr]:"id, url"});const fr=D&&A&&new ur.Dexie(pr("openfin-enterprise-tab-history"));async function Sr(e){if(!br)throw new Error("Unable to get page - IndexDB not supported");const t=await br.pages.get(e);if(t)return t.pageId=e.toString(),t.title=t.title||t.pageId,t}async function vr(e){if(!br)throw new Error("Unable to get page list - IndexDB not supported");const t=await br.pages.toCollection().keys(),a=(await Promise.all(t.map(e=>Sr(e.toString())))).filter(e=>!!e);return e?a.filter(t=>hr(t.title,e)):a}async function Pr({page:e}){if(!br)throw new Error("Unable to create page - IndexDB not supported");await br.pages.put(e,e.pageId)}async function Cr(e){if(!br)throw new Error("Unable to delete page - IndexDB not supported");await br.pages.delete(e)}async function Mr({pageId:e,page:t}){if(!br)throw new Error("Unable to update page - IndexDB not supported");if(void 0===await Sr(e))throw new Error("page not found");await Pr({page:t}),e!==t.pageId&&await Cr(e)}fr&&fr.version(.1).stores({[kr]:""});const xr=async e=>{if(!fr)throw new Error("Unable to add removed tab - IndexDB not supported");const t=Date.now().toString(),a={...e,id:t};await fr[kr].put(a,t)};function Ir(e){return"app"===e.type||"website"===e.type}const Ar=async e=>{if("website"===e.type){const t=e,a=t.url||"";let n=await yr[mr].get(a);n&&Ir(n)?(n.icon=t.icon,n.title=t.title,n.type=t.type,n.visitCount=(n.visitCount||0)+1,n.url=t.url):n={...t,id:a,visitCount:1,accessTime:void 0},n.accessTime=Date.now(),await yr[mr].put(n,a)}},Wr=async()=>{if(!yr)throw new Error("Unable to get frequently visited sites - IndexDB not supported");const e=yr[mr],t=await e.toCollection().toArray();t.sort((e,t)=>(t.visitCount||0)-(e.visitCount||0));return(t.length>5?t.slice(0,5):t).map(({id:e,...t})=>t)};const Dr=async()=>(await fin.System.getHostSpecs()).name.toLowerCase().includes("windows"),Tr=async({browserIdentity:e,url:t,shiftKey:a,activePage:n,pages:o})=>{const r=Aa().Browser.wrapSync(e),i=await La(t,t,e),s={...await Kt(t,i),attachedPageType:"singleView",singleViewName:t},c=o.findIndex(e=>e.pageId===n.pageId);await r._addPage(s,{index:c+1}),a&&await r.setActivePage(s.pageId)},Br=async e=>{const{url:t}=e.bookmark,{sourceIdentity:a,sourceEvent:n}=e,o=await Dr(),r=Aa();let i=!1,s=a;if(!await ke(a)){const t=await async function(){const e=Array.from(Zo.values());for(let t=e.length-1;t>=0;t--)if(e[t].isVisible)return e[t].identity}();if(!t)return await(async e=>{const t=Aa(),a=await La(e.url,e.url),n=await Kt(e.url,a);me((await t.Browser.createWindow({workspacePlatform:{pages:[n]}})).identity)})(e.bookmark);i=!0,s=t}const c=r.Browser.wrapSync(s),l=await c.getPages(),d=(await c._getLayoutsWithSelectedViews()).find(e=>e.isActive);if(!d)throw Error(`Browser ${s} does not have any active layouts`);const u=l.find(e=>e.isActive),p=1===Oa(u.layout.content),w=d.selectedViews[0];i?await Tr({browserIdentity:s,url:t,shiftKey:!0,activePage:u,pages:l}):p?await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activePage:o,pages:r,sourceEvent:i})=>{const{ctrlKey:s,metaKey:c,shiftKey:l}=i;(e?s:c)?await Tr({browserIdentity:a,url:n,shiftKey:l,activePage:o,pages:r}):await fin.View.wrapSync(t).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activePage:u,pages:l,sourceEvent:n}):await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activeLayout:o,sourceEvent:r})=>{const{ctrlKey:i,metaKey:s,shiftKey:c}=r;if(e?i:s){const e=fin.View.wrapSync(t),o=await e.getCurrentStack(),r=(await o.getViews()).findIndex(e=>e.name===t.name),i={url:n,browserIdentity:a,title:n};await o.addView(i,{index:r+1})}else await fin.View.wrapSync(o.selectedViews[0]).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activeLayout:d,sourceEvent:n})};var Rr;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(Rr||(Rr={}));let Er={locked:!1,x:-1,y:-1};const Fr=async(e,t,a,n)=>{if(!A)throw new Error("showEnterpriseContextMenu can only be used in a Here env. Avoid calling this method during pre-rendering.");if(!n&&!fin.me.isWindow)throw new Error("showEnterpriseContextMenu can only be used in a Here window.");const{x:o,y:r,template:i}=e;if(((e,t)=>{const{x:a,y:n,locked:o}=Er;return o&&e===a&&t===n})(o,r))return new Promise((e,t)=>e({data:void 0}));Er={locked:!0,x:o,y:r};const s=await cr(),c=Lt(),l=new Promise((e,t)=>{s.register(`response-${c}`,t=>{Er.locked=!1,s.remove(`response-${c}`),e(t)})});return await s.dispatch("open",{parentIdentity:n.identity,responseIdentity:we,requestId:c,type:t,anchorBehavior:a,x:o,y:r,payload:{template:i}}),l},Vr={type:Rr.Separator,data:void 0},Nr=async()=>({type:Rr.Submenu,label:Qa("contextMenu.print"),submenu:[{type:Rr.Label,label:Qa("contextMenu.submenu.print"),data:{type:f.Print}},{type:Rr.Label,label:Qa("contextMenu.submenu.printAll"),data:{type:f.PrintAll}},Vr,{type:Rr.Label,label:Qa("contextMenu.printScreen"),data:{type:f.PrintScreen}}]}),Lr=()=>({type:Rr.Label,label:Qa("contextMenu.closeWindow"),data:{type:h.CloseWindow}}),_r=e=>({type:Rr.Label,label:Qa(e?"contextMenu.quitEnterpriseBrowser":"contextMenu.quitPlatform"),data:{type:h.Quit}}),Or=()=>({type:Rr.Label,label:Qa("contextMenu.newWindow"),data:{type:h.NewWindow}}),Ur=e=>({type:Rr.Label,label:Qa(e?"enterpriseContextMenu.saveSupertab":"contextMenu.savePage"),data:{type:h.SavePage}}),Gr=e=>({type:Rr.Label,label:Qa(e?"enterpriseContextMenu.saveSupertabAs":"contextMenu.savePageAs"),data:{type:h.SavePageAs}}),Hr=(e,t)=>({type:Rr.Label,label:Qa(t?"enterpriseContextMenu.newTab":"contextMenu.newPage"),data:{type:h.NewPage},enabled:e}),$r=()=>({label:Qa("contextMenu.switchWorkspace")}),zr=()=>({label:Qa("contextMenu.deleteWorkspace")}),Kr=()=>({label:Qa("contextMenu.appearance")}),Jr=(e,t,a)=>t.map(t=>{const n=t.workspaceId===e.workspaceId;return{label:t.title,type:Rr.Checkbox,enabled:!n,checked:n,data:{type:a,workspaceId:t.workspaceId}}}),Zr=async()=>{const e=await Aa().Theme.getSelectedScheme();return[{label:Qa("theme.light"),type:Rr.Checkbox,checked:e===m.Light,data:{type:h.Appearance,scheme:m.Light}},{label:Qa("theme.dark"),type:Rr.Checkbox,checked:e===m.Dark,data:{type:h.Appearance,scheme:m.Dark}},{label:Qa("theme.system"),type:Rr.Checkbox,checked:e===m.System,data:{type:h.Appearance,scheme:m.System}}]},qr=async(e,t=[])=>{const a=await Se(),{newPageUrl:n}=await Qn(e),o=await(async e=>{const t=pe(e),{workspacePlatform:a}=await t.getOptions();return a?.disableMultiplePages})(e),r=await(async e=>{const t=pe(e),{workspacePlatform:a}=await t.getOptions();return a?.isLocked})(e),i=await Ae(e),s=[],c=t.length>0;n&&(s.push(Or()),o||s.push(Hr(!r,i))),s.push(Vr);const l=Aa(),d=await l.getCurrentWorkspace(),u=await l.Storage.getWorkspaces(),p=u.find(e=>e.workspaceId===d.workspaceId);s.push({type:Rr.Label,label:Qa("contextMenu.restore"),data:{type:h.RestoreChanges},enabled:!!p}),s.push({type:Rr.Label,label:Qa("contextMenu.saveWorkspace"),data:{type:h.SaveWorkspace},enabled:!!p}),s.push({type:Rr.Label,label:Qa("contextMenu.saveWorkspaceAs"),data:{type:h.SaveWorkspaceAs}}),s.push({type:Rr.Label,label:Qa("contextMenu.renameWorkspace"),data:{type:h.RenameWorkspace},enabled:!!p}),u.some(e=>e.workspaceId!==d.workspaceId)?s.push({label:$r().label,submenu:Jr(d,u,h.SwitchWorkspace),data:void 0},{label:zr().label,submenu:Jr(d,u,h.DeleteWorkspace),data:void 0}):s.push({label:$r().label,enabled:!1,data:void 0},{label:zr().label,enabled:!1,data:void 0}),s.push({label:Qa("contextMenu.downloads"),data:{type:h.Downloads}});const w=await l.Theme.getThemes();return(w&&w[0]&&"palettes"in w[0]||!w[0]||0===w.length)&&s.push({label:Kr().label,submenu:await Zr(),data:void 0}),s.push(Vr,Ur(i),Gr(i),await(async e=>{const t=await Dr();return{label:Qa("contextMenu.print"),submenu:[{type:Rr.Label,label:Qa("contextMenu.submenu.print"),data:{type:h.Print},enabled:e},{type:Rr.Label,label:Qa("contextMenu.submenu.printAll"),data:{type:h.PrintAll}},...t?[Vr,{type:Rr.Label,label:Qa("contextMenu.printScreen"),data:{type:h.PrintScreen}}]:[]],data:void 0}})(c)),a?[...s,Lr(),Vr,{type:Rr.Label,label:Qa("contextMenu.openStorefront"),data:{type:h.OpenStorefront}},Vr,_r()]:[...s,Vr,Lr(),Vr,_r()]},jr=async(e,t)=>{const a=t.selectedViews[0],n=fin.View.wrapSync(a),o=await(async e=>{const{newTabUrl:t}=await Qn(e);if(!t)throw new Error("Trying to create a new page without a newTabUrl set");return{url:t,target:e,title:"New Tab"}})(e);await Aa().createView(o,e,n.identity)},Qr=async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=(await a.getPages()).find(e=>e.isActive),o=await fin.Window.wrapSync(e).getCurrentViews();if(t.length===o.length-(n.panels??[]).length){return void(await ea(e)).dispatch(sa.ClosePage,{pageId:n?.pageId})}const r=fin.Platform.getCurrentSync();t.forEach(async t=>{const o=await fin.View.wrapSync(t).getParentLayout();await r.closeView(t);const{hasUnsavedChanges:i}=await(async e=>(await yt(we)).dispatch(ht.HandlePageChanges,e))({page:{...n,layout:await o.getConfig()},identity:e,eventDetails:{type:g.ViewRemoved,viewIdentity:t}});i&&await a.updatePage({pageId:n.pageId,page:{hasUnsavedChanges:!0}})})},Yr=async(e,t)=>{const a=await(e=>Promise.all(e.map(async e=>fin.View.wrapSync(e).getInfo())))(t),{newPageUrl:n,newTabUrl:o}=await Qn(e);a.forEach(async e=>{e.url!==n&&e.url!==o&&await fin.System.openUrlWithBrowser(e.url)})},Xr=(e,t)=>{t.forEach(async t=>{const a=fin.View.wrapSync(t);await(async(e,t)=>{const{url:a}=await t.getInfo(),n={...await t.getOptions(),url:a,target:e,name:void 0};await Aa().createView(n,e,t.identity)})(e,a)})},ei=async(e,t,a)=>{const n={newChannelId:t,selectedViews:a};(await ea(e)).dispatch(sa.AddToChannel,n)},ti=async(e,t)=>{(await ea(e)).dispatch(sa.RemoveFromChannel,t)},ai=async(e,t)=>{if(!e)return;const a=t.identity,n=fin.Window.wrapSync(a);switch(je({type:"View Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e.type){case f.Back:await(async e=>{const t=e.map(e=>fin.View.wrapSync(e).navigateBack());await Promise.all(t)})(t.selectedViews);break;case f.Forward:await(async e=>{const t=e.map(e=>fin.View.wrapSync(e).navigateForward());await Promise.all(t)})(t.selectedViews);break;case f.Print:await _o(t.selectedViews);break;case f.PrintAll:await n.print({content:"views",includeSelf:!1});break;case f.PrintScreen:await n.print({content:"screenshot"});break;case f.CloseViews:await Qr(a,t.selectedViews);break;case f.OpenWithDefaultBrowser:await Yr(a,t.selectedViews);break;case f.ReloadViews:t.selectedViews.forEach(async e=>{const t=fin.View.wrapSync(e);await t.reload()});break;case f.NewView:await jr(a,t);break;case f.DuplicateViews:Xr(a,t.selectedViews);break;case f.AddToChannel:ei(a,e.option,t.selectedViews);break;case f.RemoveFromChannel:ti(a,t.selectedViews);break;case f.Custom:if(e.action){const n={callerType:C.ViewTabContextMenu,windowIdentity:a,selectedViews:t.selectedViews,customData:e.action.customData};Aa()._invokeCustomAction(e.action.id,n)}}},ni=(require("title-case"),new Map([["blue",{name:"Blue",color:"#0091EB"}],["indigo",{name:"Indigo",color:"#6450FF"}],["pink",{name:"Pink",color:"#E878CF"}],["teal",{name:"Teal",color:"#24D1D1"}],["green",{name:"Green",color:"#00AF78"}],["orange",{name:"Orange",color:"#FF7D37"}],["red",{name:"Red",color:"#F94144"}],["yellow",{name:"Yellow",color:"#F9C74F"}],["gray",{name:"Gray",color:"#828788"}]]));function oi(e){const t=Array.from(ni.entries()),a=e.contextGroup;return{type:"widget",config:{type:"add-to-channel",channels:[...t.map(([e,t])=>({label:t.name,data:{type:k.AddToChannel,option:e},color:t.color,checked:a===e})),{label:"unlink",data:{type:k.AddToChannel,option:"unlink"},isNone:!0}]},label:"Link to Channel"}}let ri="Platform";const ii=async()=>ri;const si=async(e,t)=>{if(!e)return;const a=t.identity,n=await ea(a),o=Aa().Browser.wrapSync(a),r=fin.Window.wrapSync(a);if(je({type:"Global Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0,data:{action:e.action?.id}}),await Ae(a)){const a=await(async(e,t)=>{const a=t.identity,n=Aa().Browser.wrapSync(a),o=(await n.getPages()).find(e=>e.isActive),r=Zt({...a,layoutName:o.layoutContainerKey}),i=t.selectedViews;switch(e?.type){case b.Lock:await n.updatePage({pageId:o.pageId,page:{isLocked:!o.isLocked}});break;case b.AddToChanel:e.option?await ei(a,e.option,i):null===e.option&&await ti(a,i);break;case h.NewWindow:{const e=await Yn(a);await Aa().Browser.createWindow({workspacePlatform:{pages:[e],windowType:"enterprise"}});break}case b.Pin:{const{alwaysOnTop:e}=await n.openfinWindow.getOptions();await n.openfinWindow.updateOptions({alwaysOnTop:!e});break}case b.ShowHideTabs:await r.isShowingTabs()?await r.hide():await r.show();break;default:return!1}return!0})(e,t);if(a)return}switch(e.type){case h.NewWindow:{const{newPageUrl:e}=await Qn(a);if(!e)throw new Error("Trying to create a new empty window without a newPageUrl set");Aa().createView({target:void 0,url:e});break}case h.NewPage:await Eo(a);break;case h.CloseWindow:n.dispatch(sa.CloseBrowserWindow);break;case h.SaveWorkspace:await Bo(a);break;case h.SavePage:await Fo(a);break;case h.SavePageAs:await Vo(a);break;case h.SaveWorkspaceAs:await Ro(a);break;case h.RenameWorkspace:o._openSaveModal({menuType:x.RENAME_WORKSPACE});break;case h.SwitchWorkspace:await(async(e,t)=>{const a=Aa(),n=(await a.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId);a.applyWorkspace(n,{skipPrompt:!1,promptContainerWindowIdentity:e})})(a,e);break;case h.DeleteWorkspace:await(async(e,t)=>{const a=Aa(),n=(await a.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId);n&&await mo(e,n.title)&&(await a.Storage.deleteWorkspace(t.workspaceId),jn(Qa("successIndicator.workspaceDeleted"),e))})(a,e);break;case h.Downloads:await Lo(a);break;case h.Appearance:await Aa().Theme.setSelectedScheme(e.scheme);break;case h.Quit:{const e=ii();await ko(a,await e)&&fin.Platform.getCurrentSync().quit()}break;case h.OpenStorefront:(async()=>{await Se()&&me(he)})();break;case h.RestoreChanges:await Po();break;case h.Print:await _o(t.selectedViews);break;case h.PrintAll:await r.print({content:"views",includeSelf:!1});break;case h.PrintScreen:await r.print({content:"screenshot"});break;case h.Custom:if(e.action){const t={callerType:C.GlobalContextMenu,windowIdentity:a,customData:e.action.customData};Aa()._invokeCustomAction(e.action.id,t)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}},ci=async(e,t,a)=>{const n=Aa().Browser.wrapSync(t.identity),o=fin.Window.wrapSync(t.identity),r=await ea(t.identity),i=await Ae();switch(e&&je({type:"Page Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e?.type){case k.Save:await Fo(t.identity,t.pageId);break;case k.SaveAs:await Vo(t.identity,t.pageId);break;case k.NewPage:await Eo(t.identity);break;case k.DeletePage:await(async(e,t)=>{const a=Aa(),n=a.Browser.wrapSync(e),o=(await a.Storage.getPages()).find(e=>e.pageId===t);o&&await yo(e,o.title)&&(await a.Storage.deletePage(o.pageId),await n.removePage(t),jn(Qa("enterpriseSuccessIndicator.supertabDeleted"),e,Qa("enterpriseSuccessIndicator.supertabHasBeenDeleted",{title:o.title})))})(t.identity,t.pageId);break;case k.Rename:if(await Ae(t.identity)){await n.setActivePage(t.pageId);const e=await cr();await e.dispatch("open",{parentIdentity:t.identity,responseIdentity:we,type:dr.RenameSupertab,anchorBehavior:di.Center,x:a.left+a.width/2-164,y:a.bottom-8,payload:{pageId:t.pageId}})}else await n._openSaveModal({menuType:x.RENAME_PAGE,id:t.pageId});break;case k.Duplicate:r.dispatch(sa.DuplicatePage,t.pageId);break;case k.Close:i?await(async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=await a.getPages();for(const o of n)if(o.pageId===t){await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o});break}})(t.identity,t.pageId):r.dispatch(sa.ClosePage,{pageId:t.pageId});break;case k.Custom:if(e.action){const a={callerType:C.PageTabContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};Aa()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`);break;case k.Refresh:await(async(e,t)=>{const a=Aa(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find(e=>t?e.pageId===t:e.isActive);o?.layout?.content&&Na(o.layout.content).forEach(async e=>{(await fin.View.wrap({uuid:a.identity.uuid,name:e.name})).reload()})})(t.identity,t.pageId);break;case k.CloseOthers:await(async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=await a.getPages();for(const o of n)o.pageId!==t&&(await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o}))})(t.identity,t.pageId);break;case k.SaveWorkspaceAs:await Ro(t.identity);break;case k.Print:{const e=await n._getLayoutsWithSelectedViews(),{selectedViews:a}=e.find(e=>e.pageId===t.pageId);await _o(a);break}case k.PrintAll:await n.setActivePage(t.pageId),await o.print({content:"views",includeSelf:!1});break;case k.PrintScreen:await n.setActivePage(t.pageId),await o.print({content:"screenshot"});break;case k.AddToChannel:await n.updatePage({pageId:t.pageId,page:{contextGroup:"unlink"===e.option?null:e.option}})}},li=async(e,t)=>{if(e?.type){const a=t.identity;switch(e.type){case v.SavePage:await Fo(a);break;case v.SaveWorkspace:await Bo(a);break;case v.SavePageAs:await Vo(a);break;case v.SaveWorkspaceAs:await Ro(a);break;case v.Custom:if(e.action){const a={callerType:C.SaveButtonContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};Aa()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}}};var di;!function(e){e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e[e.Center=4]="Center"}(di||(di={}));const ui=async(e,t,a,n)=>{const{x:o,y:r,identity:i,template:s,callback:c}=e,l=await Ae(i),{data:d}=l?await Fr({x:o,y:r,template:s},a,n,fin.Window.wrapSync(i)):await function(e,t){if(!A)throw new Error("showContextMenu can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");if(!t&&!fin.me.isWindow)throw new Error("showContextMenu can only be used in an OpenFin window.");return(t||fin.Window.getCurrentSync()).showPopupMenu(e)}({x:o,y:r,template:s},fin.Window.wrapSync(i));c(d,e)};async function pi(e,t){const a=await Ae(e.identity),n=a?await(async({identity:e,selectedViews:t})=>{const a=Aa(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find(e=>e.isActive),r=await a.Storage.getPage(o.pageId),i=Oa(o.layout.content)>1,s=await Ae(e),c=await a.Theme.getThemes(),l=c[0]&&"palettes"in c[0]||!c[0]||0===c.length,d={...Ur(s),enabled:!!r},u={...Gr(s),enabled:i};return[Or(),Hr(!0,s),{type:Rr.Separator},d,u,{type:Rr.Separator},...l?[{type:Rr.Submenu,label:Kr().label,submenu:await Zr()}]:[],{type:Rr.Separator},Lr(),{type:Rr.Separator},_r(!0)]})({identity:e.identity,selectedViews:e.selectedViews}):await qr(e.identity,e.selectedViews),o=await ii();a||(n.find(e=>e.data?.type===h.Quit).label=`Quit ${o}`);const{rect:r,...i}=e,{x:s,y:c}=a?{x:r.left+r.width,y:r.bottom}:e,l={...i,x:s,y:c,template:n,callback:si};await this.openGlobalContextMenu(l,t)}async function wi(e,t){const a={...e,callback:ai};await this.openViewTabContextMenu(a,t)}async function gi(e,t){const a=await(async(e,t)=>{const a=await Aa().Storage.getPage(e),n=await pn(),o=await Ae(t),r=n.find(t=>t.pageId===e),i=Oa(r.layout.content)>1,{workspacePlatform:s}=await pe(t).getOptions(),c=!(s.isLocked||s.preventPageClose||r.closeButton?.disabled||r.closeButton?.hidden),l=[{type:Rr.Label,label:Qa("enterpriseContextMenu.newTab"),data:{type:k.NewPage}},Vr,oi(r),Vr,{type:Rr.Label,label:Qa("reload"),data:{type:k.Refresh}},{type:Rr.Label,label:Qa("enterpriseContextMenu.duplicate"),data:{type:k.Duplicate},enabled:!s.isLocked},await Nr(),Vr,{type:Rr.Label,label:Qa(i?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:k.Close},enabled:c}],d=[{type:Rr.Label,label:Qa("enterpriseContextMenu.newTab"),data:{type:k.NewPage}},Vr,oi(r),Vr,{type:Rr.Label,label:Qa("enterpriseSaveModal.renameSupertab"),data:{type:k.Rename},enabled:!s.isLocked&&!!a&&i},{type:Rr.Label,label:Qa("enterpriseContextMenu.duplicate"),data:{type:k.Duplicate},enabled:!s.isLocked},Vr,{type:Rr.Label,label:Qa("enterpriseContextMenu.saveSupertab"),data:{type:k.Save},enabled:i&&!!a},{type:Rr.Label,label:Qa("enterpriseContextMenu.saveSupertabAs"),data:{type:k.SaveAs},enabled:i},Vr,{type:Rr.Label,label:Qa("enterpriseContextMenu.deleteSupertab"),data:{type:k.DeletePage},enabled:!!a},Vr,{type:Rr.Label,label:Qa(i?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:k.Close},enabled:c}],u=[{type:Rr.Label,label:Qa("contextMenu.savePage"),data:{type:k.Save},enabled:!0},{type:Rr.Label,label:Qa("saveMenu.savePageAs"),data:{type:k.SaveAs},enabled:!0},{type:Rr.Label,label:"Save Workspace As",data:{type:k.SaveWorkspaceAs}},{type:Rr.Label,label:"Refresh",data:{type:k.Refresh}},Vr,{type:Rr.Label,label:Qa("saveModal.renamePage"),data:{type:k.Rename},enabled:!!a},{type:Rr.Label,label:Qa("contextMenu.duplicatePage"),data:{type:k.Duplicate},enabled:!s.isLocked},Vr,{type:Rr.Label,label:Qa("saveModal.closePage"),data:{type:k.Close},enabled:c}];return o?i?d:l:u})(e.pageId,e.identity),n={...e,template:a,callback:(t,a)=>{ci(t,a,e.rect)}};await this.openPageTabContextMenu(n,t)}async function hi(e,t){const a={...e,template:await(async()=>{const e=Aa(),t=await e.getCurrentWorkspace(),a=(await e.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId);return[{type:Rr.Label,label:Qa("contextMenu.saveWorkspace"),enabled:!!a,data:{type:v.SaveWorkspace}},{type:Rr.Label,label:Qa("saveMenu.saveWorkspaceAs"),data:{type:v.SaveWorkspaceAs}},{type:Rr.Separator,data:void 0},{type:Rr.Label,label:Qa("contextMenu.savePage"),data:{type:v.SavePage}},{type:Rr.Label,label:Qa("saveMenu.savePageAs"),data:{type:v.SavePageAs}}]})(),callback:li};await this.openSaveButtonContextMenu(a,t)}const mi="dock-companion-updates",ki=async()=>(await fin.Application.getCurrentSync().getChildWindows()).find(e=>e.identity.name===de.DockCompanion),bi=dt(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-dock`),yi=async()=>{const e=Aa(),t=await async function(){const e=await Yo();await Promise.all(e.map(async e=>{await er(e.identity)}));const t=Array.from(Zo.values()).sort((e,t)=>t.lastFocusedTime-e.lastFocusedTime),a=t.find(e=>e.isVisible);if(a){const e=fin.Window.wrapSync(a.identity);return await e.focus(),a.identity}const n=t[0];if(n){const e=fin.Window.wrapSync(n.identity);return await e.restore(),await e.focus(),n.identity}return Xo()}(),a=e.Browser.wrapSync(t),n=(await a.getPages()).at(-1),o=Na(n.layout.content);if(1===o.length&&Te(o[0].url))await a.setActivePage(n.pageId);else{const e=await Yn(t),{newPageUrl:n}=await Qn();await a._addDefaultPage({identity:a.identity,page:e,newPageUrl:n||void 0})}(await ea(t)).dispatch(sa.FocusAndExpandSearchInternal)},fi="dock-provider-configs",Si=D&&A&&new ur.Dexie(pr("dock-provider-configs"));async function vi(e){if(!Si)throw new Error("Unable to get Dock provider config - IndexDB not supported");try{return await Si[fi].get(e)}catch(e){return void console.warn("Failed to retrieve Dock provider config from IndexedDB",e)}}async function Pi(e){if(!Si)throw new Error("Unable to save Dock provider config - IndexDB not supported");await Si[fi].put(e,e.id)}let Ci;Si&&Si.version(.1).stores({[fi]:""});async function Mi(e){return(await(Ci||(Ci=dt(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-modal`)()),Ci)).dispatch(ia.SendUpdateVersionModalResponse,e)}const xi="workspaces",Ii=D&&A&&gr("openfin-workspace-platform-workspaces",xi);async function Ai(e){if(!Ii)throw new Error("Unable to get workspace - IndexDB not supported");const t=await Ii[xi].get(e);return t&&(t.workspaceId=e.toString(),t.title=t.title||t.workspaceId),t}async function Wi(e){if(!Ii)throw new Error("Unable to get workspaces - IndexDB not supported");const t=await Ii[xi].toCollection().keys(),a=(await Promise.all(t.map(e=>Ai(e.toString())))).filter(e=>!!e);return e?a.filter(t=>hr(t.title,e)):a}async function Di({workspace:e}){if(!Ii)throw new Error("Unable to create workspace - IndexDB not supported");const t=(await Wi()).find(t=>t.title===e.title);if(t&&t.workspaceId!==e.workspaceId)throw new Error(`Workspace with title '${e.title}' already exists.`);await Ii[xi].put(e,e.workspaceId)}async function Ti(e){if(!Ii)throw new Error("Unable to delete workspace - IndexDB not supported");await Ii[xi].delete(e)}async function Bi({workspaceId:e,workspace:t}){if(!Ii)throw new Error("Unable to update workspace - IndexDB not supported");if(!await Ai(e))throw new Error("workspace not found");await Di({workspace:t}),e!==t.workspaceId&&await Ti(e)}const Ri=e=>{const t=e.layout,a=t.content?Na(t.content):[],n=a.length;return n>1?{...e,singleViewName:null}:1===n?{...e,singleViewName:a[0].name}:void 0},Ei=async(e,t,a)=>{const n=await Aa().Browser.getAllAttachedPages(),o=new Set(n.map(e=>e.title).filter(e=>!!e)),r=new Set(n.map(e=>e.pageId).filter(e=>!!e)),i=t?.defaultPageOptions,s="enterprise"===a?.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType,c=await(async(e,t,a)=>{if(a)return ne();const n=t?.workspacePlatform?.newTabUrl;if(n)return n;const o=e?.defaultWindowOptions?.workspacePlatform?.newTabUrl;return o||void 0})(t,a,s);return Promise.all(e.map(async e=>{if("reparent"===e.multiInstanceViewBehavior)return{...e,layoutContainerKey:Lt()};((e,t)=>{e.pageId||=Lt(),t.has(e.pageId)&&(console.warn("PageID collision detected. All Page IDs should be unique. A random new pageId will be generated"),e.pageId=Lt()),t.add(e.pageId)})(e,r),s||(e.title=un(e.title,Array.from(o.keys()))),o.add(e.title),e.panels?.reduce((e,t)=>{const a=Object.values(w);if(!a.includes(t.position))throw new Error(`Encountered a panel with unsupported position "${t.position}". Supported positions are: ${a.toString()}`);if(1==e[t.position])throw new Error(`Found more than 1 panel at position: ${t.position}. Only 1 panel at a given position is currently supported.`);return{...e,[t.position]:e[t.position]+1}},{[w.Left]:0,[w.Right]:0,[w.Top]:0,[w.Bottom]:0});const a="panels"in e?e.panels:i?.panels;let n=(l=e.layout,d=t?.defaultViewOptions,Ba({...l},e=>Ra(e,d)));var l,d;c&&!n?.settings?.newTabButton&&(n={...n,settings:{...n?.settings,newTabButton:{url:c}}});return{...i,...e,panels:a&&await on(a),layoutContainerKey:Lt(),layout:n,isLayoutCreated:!1}}))},Fi=async(e,t)=>{try{await fin.Platform.getCurrentSync().createView({name:e,url:t,target:fin.me.identity,bounds:{top:0,left:0,width:0,height:0}},fin.me.identity)}catch(e){}};async function Vi(e){return e?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==":(await Q()).displayViewTabDefaultIcon?"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==":"data:image/svg+xml,%3Csvg%20style%3D%22background-color%3A%237D808A%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.64648%200.874962C4.84174%200.6797%205.15833%200.6797%205.35359%200.874962L9.12482%204.6462C9.32009%204.84146%209.32009%205.15804%209.12482%205.3533L5.35359%209.12454C5.15833%209.3198%204.84174%209.3198%204.64648%209.12454L0.875245%205.3533C0.679982%205.15804%200.679982%204.84146%200.875245%204.6462L4.64648%200.874962ZM5.00003%201.93562L1.9359%204.99975L5.00003%208.06388L8.06416%204.99975L5.00003%201.93562Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"}const Ni={dimensions:{borderWidth:3,headerHeight:30}};async function Li(e,t,a){let n=e;const o="enterprise"===n.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType;if(n.layout&&!n.workspacePlatform?.pages?.length){const e=await An(),a={...await Kt(e,n.layout),isActive:!0};n.workspacePlatform||={},n.workspacePlatform.pages=await Ei([a],t,n)}t?.browserIconSize&&(n.workspacePlatform||={},n.workspacePlatform.browserIconSize=t.browserIconSize);const r=a?.themes?.[0];if(n.workspacePlatform?.pages?.length){const e=await Ei(n.workspacePlatform.pages,t,n),i=e,s=(e=>{if(!e)return;let t=e.find(e=>e.isActive);return!t&&e.length>0&&(e[0].isActive=!0,t=e[0]),t})(i);if(i.forEach(e=>{e.pageId!==s?.pageId&&(e.isActive=!1)}),await rn(i),n.workspacePlatform.pages=e,n=Et({},await(async e=>({contextMenuOptions:{enabled:!1},experimental:{showFavicons:!0,defaultFaviconUrl:await Vi(e)},viewVisibility:{showViewsOnSplitterDrag:{enabled:!0},showViewsOnWindowResize:{enabled:!0}}}))(o),t?.defaultWindowOptions,n,await(async e=>({backgroundThrottling:!0,url:await oe(e,!0),contextMenu:!0,closeOnLastViewRemoved:!1,permissions:{System:{openUrlWithBrowser:{enabled:!0,protocols:["mailto"]}}}}))(o)),s.layout=Et(s.layout,Ni),async function(e){if(e.icon||e.taskbarIcon){const t=fin.Application.getCurrentSync(),a=await(await t.getWindow()).getOptions();e.taskbarIconGroup||=a.taskbarIconGroup||fin.me.identity.uuid}if(e.workspacePlatform.icon)if("object"==typeof e.workspacePlatform.icon){const t=window.matchMedia("(prefers-color-scheme: dark)");e.icon=t.matches?e.workspacePlatform.icon.dark:e.workspacePlatform.icon.light}else e.icon=e.workspacePlatform.icon}(n),!n.backgroundColor&&r)if("palette"in r)n.backgroundColor=r?.palette?.background2||r?.palette?.backgroundPrimary;else{const e=a.selectedScheme===m.Dark||a.selectedScheme===m.System&&window.matchMedia("(prefers-color-scheme: dark)")?r?.palettes.dark:r?.palettes.light;n.backgroundColor=e?.background2||e?.backgroundPrimary}n=Ce(n,!0);const c=await oe(o,!0);c&&(n.url=c),n.layout=s.layout,n.layoutSnapshot=((e,t)=>({layouts:e.reduce((e,a)=>{if(!a.isActive){if(!t)return e;if(!Ri(a).singleViewName)return e}return e[a.layoutContainerKey]=a.layout,e},{}),pages:e}))(n.workspacePlatform.pages,o),n.workspacePlatform.windowType=n.workspacePlatform.windowType??P.Browser}if(n.cornerRounding&&delete n.cornerRounding,n.name||n.layoutSnapshot?n.contextMenuOptions?.template?.length>0?n.contextMenuOptions.template=n.contextMenuOptions.template.filter(e=>"print"!==e):n.contextMenuOptions={template:[],enabled:!1}:n.name=`${de.ClassicWindow}-${Lt()}`,n.workspacePlatform&&a&&(n.workspacePlatform._themeData=a),o){const e=await ne();n.workspacePlatform.newPageUrl=e,n.workspacePlatform.newTabUrl=e,n.layout&&(n.layout.dimensions.borderWidth=4,n.layout.dimensions.headerHeight=28),n.name=n.name||`${de.BrowserWindow}-${Lt()}`;if(n.name.startsWith(de.BrowserWindow)){(async e=>{const t=await ae(),a=de.BrowserAddressSearchPrefix+e.name,n=t+z.BrowserPopupMenuAddressSearchResultsView,o=[],r=Fi(a,n);o.push(r);const i=de.AICompanionPrefix+e.name,{url:s,enabled:c}=nn();if(c){const e=Fi(i,s);o.push(e)}await Promise.all(o)})(n);const{enabled:e}=nn();n.workspacePlatform.isAiEnabled=e,n.minWidth=Math.max(654,n.minWidth??0),n.minHeight=Math.max(488,n.minHeight??0)}}else n.minWidth=Math.max(232,n.minWidth??0);return n}const _i=async(e,t)=>{const a={uuid:t.uuid,name:t.name};await ko(a,e.title??await ii(),e.shouldCenterOnMonitor)&&fin.Platform.getCurrentSync().quit()},Oi=async(e,t)=>{const a=Aa(),n=await a.Browser.getLastFocusedWindow();if(!n)return;const o=a.Browser.wrapSync(n),{title:r,description:i}=e,s=await fo({title:r,description:i,identity:o.identity});s&&o._sendUpdateVersionModalResponse({identity:t,response:s})},Ui=e=>{const t=e.name===de.Home,a=e.name?.startsWith(de.HomeInternal),n=e.name?.startsWith(de.BrowserMenu)||e.name?.startsWith(de.BrowserSaveMenu);return!t&&!a&&!n};const Gi=e=>JSON.parse(JSON.stringify(e));async function Hi(e,t,a){const n=e.manifestUrl?await t({manifestUrl:e.manifestUrl},a):void 0;if(n?.interop&&e.interop){const t={...e,...n,interop:e.interop};return delete t.manifestUrl,t}return e}const $i=e=>{const t=Gi(e);return t._internalWorkspaceData?.browserNavigationButtons&&(t.workspacePlatform={...t.workspacePlatform,browserNavigationButtons:t._internalWorkspaceData.browserNavigationButtons},delete t._internalWorkspaceData.browserNavigationButtons),t},zi=e=>{const t=Gi(e);return t.workspacePlatform&&(t._internalWorkspaceData={...t._internalWorkspaceData,...t.workspacePlatform},delete t.workspacePlatform),t},Ki={reload:[{keys:"Ctrl+R",preventDefault:!0}],back:[{keys:"Alt+Left",preventDefault:!0}],forward:[{keys:"Alt+Right",preventDefault:!0}]},Ji={reload:[{keys:"Cmd+R",preventDefault:!0}],back:[{keys:"Cmd+[",preventDefault:!0},{keys:"Cmd+Left",preventDefault:!0}],forward:[{keys:"Cmd+]",preventDefault:!0},{keys:"Cmd+Right",preventDefault:!0}]},Zi=async()=>await Dr()?Ki:Ji,qi=(e,t)=>{const a=fin.View.wrapSync(e);if(!t)return;const n=e=>{(async(e,t,a)=>{if("keyDown"!==a.inputType)return;const n=await(async e=>{const t=await e.getCurrentWindow(),a=await t.getOptions(),n=a.workspacePlatform?.navigationButtons;return n.enabled&&!n.hotkeysDisabled})(e),o=await Dr();if(n){if(t.reload){const n=a.ctrlKey&&!a.altKey&&!a.metaKey&&!a.shiftKey&&"r"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"r"===a.key;(o?n:r)&&t?.reload&&(e.reload(),je({type:"View",action:"Reload",value:e.identity.name}))}if(t.back){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"["===a.key;(o?n:r||i)&&t?.back&&(e.navigateBack(),je({type:"View",action:"Back",value:e.identity.name}))}if(t.forward){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"]"===a.key;(o?n:r||i)&&t?.forward&&(e.navigateForward(),je({type:"View",action:"Forward",value:e.identity.name}))}}})(a,t,e)};a.addListener("hotkey",n),a.once("destroyed",()=>{a.removeListener("hotkey",n)})},ji=(e,t)=>Gi(e).map(e=>("componentState"in e?e.componentState=t(e.componentState):"content"in e&&(e.content=ji(e.content,t)),e)),Qi=e=>{if(e){const t=Gi(e);return t.content&&(t.content=ji(t.content,$i)),t}return e},Yi=e=>{if(e){const t=Gi(e);return t.content&&(t.content=ji(t.content,zi)),t}return e};async function Xi({app:e,target:t}){const a=fin.Platform.getCurrentSync();switch(e.manifestType){case c.Snapshot:return a.applySnapshot(e.manifest);case c.View:return async function(e,t){const a=fin.Platform.getCurrentSync();if("view"===t.entityType){const a=fin.View.wrapSync(t),n=await a.getParentLayout();return await n.replaceView(t,{manifestUrl:e.manifest,url:void 0,target:void 0}),a.destroy()}return a.createView({name:void 0,url:void 0,manifestUrl:e.manifest,target:void 0})}(e,t);case c.External:return fin.System.launchExternalProcess({path:e.manifest,uuid:e.appId});default:return fin.Application.startFromManifest(e.manifest)}}let es;const ts=()=>{if(!es){const e=dt(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-app-directory`);es=e()}return es};async function as(e){if(!await Ae(e.identity))return[];return(await ts()).dispatch(na.GetApps,e.req)}async function ns(e){if(!await Ae(e.identity))return[];return(await ts()).dispatch(na.GetSearchProviders,e)}async function os(e){return(await ts()).dispatch(na.GetCuratedContent,e)}async function rs(e){return(await ts()).dispatch(na.GetRecentlyVisited,e)}async function is(e){const t=(await be()).map(async e=>{const t=await e.getOptions();t.workspacePlatform?.pages&&t.layout&&await(async e=>(await ea(e)).dispatch(sa.UpdatePagesWindowOptions))(e.identity)});return await Promise.all(t),e?e():$t()}let ss=[];const cs=()=>ss;async function ls(e){const t=e=>{if(!e.includes("#")&&!e.includes("rgb")&&!e.includes("hsl"))throw new Error("Background primary color is not the right format.")};e?.forEach(e=>{"palette"in e&&t(e.palette.backgroundPrimary),"palettes"in e&&(t(e.palettes.dark.backgroundPrimary),t(e.palettes.light.backgroundPrimary))});const a=((e,t)=>{if(!e||!e[0]){const{dark:e,light:a}=Ct[0].palettes;return ba.setPalettes({dark:e,light:a},t),Ct}{const a=e[0];if("palette"in a){const{palette:n}=a,o={...Pt,...n};return ba.setPalettes({dark:o,light:o},t),a.palette=o,e}if("palettes"in a){const{dark:n,light:o}=a.palettes,r={...Pt,...n},i={...vt,...o};return ba.setPalettes({dark:r,light:i},t),a.palettes={dark:r,light:i},e}}})(e,await Dr());ss=a}const ds=(e,t)=>a=>{const n=null!==e;return class extends a{constructor(){super(),this.isWorkspacePlatform=()=>({isWorkspacePlatform:!0,isBrowserInitialized:!!e,analytics:{isSupported:!0}}),this.detachPagesFromWindow=vn,this.getAllAttachedPages=pn,this.getPagesForWindow=Cn,this.getPageForWindow=Mn,this.markUnsavedPagesAsSavedInternal=Fn,this.launchApp=Xi,this.savePage=yn,this.saveWorkspace=Ao,this.createSavedPageInternal=mn,this.updateSavedPageInternal=bn,this.deleteSavedPageInternal=kn,this.reorderPagesForWindow=xn,this.getUniquePageTitle=An,this.updatePageForWindow=Sn,this.getLastFocusedBrowserWindow=Qo,this.getThemes=cs,this.invokeCustomActionInternal=or,this.requestQuitPlatformDialogInternal=_i,this.getCurrentWorkspace=xo,this.setActiveWorkspace=Co,this.getLanguageResourcesInternal=zo,this.getPageByViewIdentity=async e=>{const t=await fin.Platform.Layout.getLayoutByViewIdentity(e),a=t.identity;if(!("layoutName"in a))throw new Error("Failed to get layout's identity");const n=await Aa().Browser.wrapSync(t.identity).getPages(),o=n.findIndex(e=>e.layoutName===a.layoutName);if(-1===o)throw new Error("Failed to get page's index");return{windowIdentity:{name:t.identity.name,uuid:t.identity.uuid},page:n[o],pageIndex:o}},this.openGlobalContextMenuInternal=this.openGlobalContextMenuInternal.bind(this),this.openGlobalContextMenu=this.openGlobalContextMenu.bind(this),this.getSavedPages=this.getSavedPages.bind(this),this.getSavedPage=this.getSavedPage.bind(this),this.createSavedPage=this.createSavedPage.bind(this),this.updateSavedPage=this.updateSavedPage.bind(this),this.deleteSavedPage=this.deleteSavedPage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.attachPagesToWindow=this.attachPagesToWindow.bind(this),this.openViewTabContextMenuInternal=this.openViewTabContextMenuInternal.bind(this),this.openViewTabContextMenu=this.openViewTabContextMenu.bind(this),this.openPageTabContextMenuInternal=this.openPageTabContextMenuInternal.bind(this),this.openPageTabContextMenu=this.openPageTabContextMenu.bind(this),this.getSavedWorkspaces=this.getSavedWorkspaces.bind(this),this.getSavedWorkspace=this.getSavedWorkspace.bind(this),this.createSavedWorkspace=this.createSavedWorkspace.bind(this),this.updateSavedWorkspace=this.updateSavedWorkspace.bind(this),this.deleteSavedWorkspace=this.deleteSavedWorkspace.bind(this),this.getCurrentWorkspace=this.getCurrentWorkspace.bind(this),this.getDockProviderConfig=this.getDockProviderConfig.bind(this),this.saveDockProviderConfig=this.saveDockProviderConfig.bind(this),this.applyWorkspace=this.applyWorkspace.bind(this),this.restoreLastSavedWorkspaceInternal=this.restoreLastSavedWorkspaceInternal.bind(this),this.setActiveWorkspace=this.setActiveWorkspace.bind(this),this.openSaveButtonContextMenu=this.openSaveButtonContextMenu.bind(this),this.openSaveButtonContextMenuInternal=this.openSaveButtonContextMenuInternal.bind(this),this.getSelectedScheme=this.getSelectedScheme.bind(this),this.setSelectedScheme=this.setSelectedScheme.bind(this),this.analyticsInternal=this.analyticsInternal.bind(this),this.handleAnalytics=this.handleAnalytics.bind(this),this.getLanguage=this.getLanguage.bind(this),this.setLanguage=this.setLanguage.bind(this),this.handleSaveModalOnPageClose=this.handleSaveModalOnPageClose.bind(this),this.shouldPageClose=this.shouldPageClose.bind(this),this.shouldWindowClose=this.shouldWindowClose.bind(this),this.handlePagesAndWindowClose=this.handlePagesAndWindowClose.bind(this),this.setActivePage=this.setActivePage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.copyPage=this.copyPage.bind(this),this.addPage=this.addPage.bind(this),this.addDefaultPage=this.addDefaultPage.bind(this),this.markUnsavedPagesAsSavedInternal=this.markUnsavedPagesAsSavedInternal.bind(this),this.trackRemovedTabInternal=this.trackRemovedTabInternal.bind(this),this.restoreRemovedTabInternal=this.restoreRemovedTabInternal.bind(this),this.trackVisitedSiteInternal=this.trackVisitedSiteInternal.bind(this),this.getRecentlyVisitedSitesInternal=this.getRecentlyVisitedSitesInternal.bind(this),this.getFrequentlyVisitedSitesInternal=this.getFrequentlyVisitedSitesInternal.bind(this),this.searchSitesInternal=this.searchSitesInternal.bind(this),this.getSearchProvidersInternal=this.getSearchProvidersInternal.bind(this),this.getCuratedContentInternal=this.getCuratedContentInternal.bind(this),this.handleRequestNavigationInternal=this.handleRequestNavigationInternal.bind(this),this.refreshBookmarksInternal=this.refreshBookmarksInternal.bind(this),this.launchBookmarkInternal=this.launchBookmarkInternal.bind(this),this.getNotificationsConfig=this.getNotificationsConfig.bind(this),this.updateDockFavoritesInternal=this.updateDockFavoritesInternal.bind(this),this.updateContentMenuInternal=this.updateContentMenuInternal.bind(this),this.launchDockEntryInternal=this.launchDockEntryInternal.bind(this),this.setDockFavoritesOrderInternal=this.setDockFavoritesOrderInternal.bind(this),this.navigateContentMenuInternal=this.navigateContentMenuInternal.bind(this),this.setDefaultDockButtonsOrderInternal=this.setDefaultDockButtonsOrderInternal.bind(this),this.getDockWorkspacesContextMenuInternal=this.getDockWorkspacesContextMenuInternal.bind(this),this.handleDockWorkspacesMenuResponseInternal=this.handleDockWorkspacesMenuResponseInternal.bind(this),this.removeDockFavoriteInternal=this.removeDockFavoriteInternal.bind(this),this.addDockFavoriteInternal=this.addDockFavoriteInternal.bind(this),this.focusAndExpandSearchInternal=this.focusAndExpandSearchInternal.bind(this),this.sendUpdateVersionModalResponseInternal=this.sendUpdateVersionModalResponseInternal.bind(this),this.requestQuitPlatformDialogInternal=_i.bind(this),this.showUpdateVersionModalInternal=Oi.bind(this)}async applyWorkspace(...e){return vo.apply(this,e)}async restoreLastSavedWorkspaceInternal(...e){return Po.apply(this,e)}async getSnapshot(){const e=n?await is(async()=>$t(await super.getSnapshot(void 0,fin.me.identity))):await $t(await super.getSnapshot(void 0,fin.me.identity));let t={...e,windows:e.windows.filter(Ui).map(Ht)};return t=(e=>{const t=Gi(e);return t.windows.forEach(e=>{e.layout&&(e.layout=Qi(e.layout)),e.workspacePlatform?.pages?.forEach(e=>{e?.layout&&(e.layout=Qi(e.layout))})}),t})(t),t}async getViewSnapshot(e){let t=await super.getViewSnapshot(e);return t=$i(t),t}async applySnapshot({snapshot:e,options:t}){let a=e;"string"==typeof a&&(a=await super.fetchManifest({manifestUrl:a},fin.me.identity));const o=function(e){for(const t of e.windows)if(t.workspacePlatform?.pages?.length)return!0;return!1}(a);if(!n&&o)throw new Error("This snapshot cannot be applied as the platform has been initialized without the browser.");return a=(e=>{const t=Gi(e);return t.windows.forEach(e=>{e.layout=Yi(e.layout),e.workspacePlatform?.pages?.forEach(e=>{e.layout=Yi(e.layout)})}),t})(a),super.applySnapshot({snapshot:a,options:t})}async createWindow(t,a){if(n&&"tearout"===t.reason){const e=await fin.Window.wrapSync(a).getOptions(),n=e.workspacePlatform?.windowType;t.taskbarIconGroup=e.taskbarIconGroup,n&&(t.workspacePlatform||={},t.workspacePlatform.windowType=e.workspacePlatform.windowType,n===P.Platform&&(t.url=e.url))}if(!n||t.workspacePlatform?.windowType===P.Platform){const e=await super.createWindow(t,a);return je({type:"Window",action:"Open Window",value:e.identity.name,data:{uuid:e.identity.uuid}}),e}var o;o={allowed:!0},Ke||(Ke=!0,ze($e.Browser,o)),((e=[])=>{const t=e.filter(e=>e.type!==S.Custom),a=new Set,n=[];for(const e of t)a.has(e.type)&&n.push(e.type),a.add(e.type);if(n.length>0){const e=n.join(", ");throw new Error(`Encountered a duplicate "${e}" toolbar button. No more than one instance of a button type may be provided.`)}})(t.workspacePlatform?.toolbarOptions?.buttons);let r=(e=>"workspacePlatform"in e?e:(({workstacks:e,pages:t,...a})=>({...a,workspacePlatform:{pages:t||e||null}}))(e))(t);r=await Li(r,e,{themes:cs(),selectedScheme:this.getSelectedScheme()}),r=await(async e=>{const t=await fin.System.getMonitorInfo();let a=t.primaryMonitor;const n=e.defaultLeft,o=e.defaultTop;t.nonPrimaryMonitors.forEach(e=>{const{top:t,bottom:r,left:i,right:s}=e.availableRect;n>=i&&n<=s&&o>=t&&o<=r&&(a=e)});const r=a.availableRect.bottom-a.availableRect.top,i=a.availableRect.right-a.availableRect.left;return e.defaultHeight=Math.min(e.defaultHeight||800,r),e.defaultWidth=Math.min(e.defaultWidth||800,i),e})(r);const i=await(e=>async(t,a)=>{let n=!1;const o=await e(t,a);return t?.workspacePlatform?._internalDeferShowOptions?.deferShowEnabled?(await o.addListener("show-requested",async()=>{if(n)return;const e=await o.getOptions();await o.updateOptions({workspacePlatform:{...e.workspacePlatform,_internalDeferShowOptions:{...e.workspacePlatform._internalDeferShowOptions,autoShow:!0}}}),n=!0}),o):o})((e,t)=>super.createWindow(e,t))(r,a);return je({type:"Window",action:"Open Window",value:i.identity.name,data:{uuid:i.identity.uuid}}),i}async createView(t,a){t.opts=Da(t.opts,e?.defaultViewOptions),t.opts=await Hi(t.opts,this.fetchManifest,a),t.opts=await(async e=>{const t=Gi(e),a=t.workspacePlatform?.browserNavigationButtons;if(a){const e=Object.keys(a);for(const n of e)if(a[n]){const e=(await Zi())[n];t.hotkeys?t.hotkeys.push(...e):t.hotkeys=[...e]}}return t})(t.opts),t.opts=zi(t.opts);const n=await super.createView(t,a);return qi(n.identity,t.opts._internalWorkspaceData?.browserNavigationButtons),n}async replaceView(t,a){return t.opts.newView=await Da(t.opts.newView,e?.defaultViewOptions),t.opts.newView=await Hi(t.opts.newView,this.fetchManifest,a),super.replaceView(t,a)}async replaceLayout(e,t){return await Ae(t)||delete e.opts.layout?.dimensions,super.replaceLayout(e,t)}async getSavedPage(...e){return Sr.apply(this,e)}async getSavedPages(...e){return vr.apply(this,e)}async createSavedPage(...e){return Pr.apply(this,e)}async deleteSavedPage(...e){return Cr.apply(this,e)}async updateSavedPage(...e){return Mr.apply(this,e)}async getSavedWorkspace(...e){return Ai.apply(this,e)}async getSavedWorkspaces(...e){return Wi.apply(this,e)}async createSavedWorkspace(...e){return Di.apply(this,e)}async deleteSavedWorkspace(...e){return Ti.apply(this,e)}async updateSavedWorkspace(...e){return Bi.apply(this,e)}async getDockProviderConfig(...e){return vi.apply(this,e)}async saveDockProviderConfig(...e){return Pi.apply(this,e)}async attachPagesToWindow(t){const a=await Ei(t.pages,e);await rn(a),await fn({...t,pages:a})}async addPage(e){const t=await Ae(e.identity),a=await yt(e.identity),{page:n,insertionIndex:o}=e;n?.title||t||(n.title=await a.dispatch(ht.GetUniquePageTitle,void 0));const r=(await this.getAllAttachedPages()).find(e=>e.pageId===n.pageId||e.title===n.title);if(r){if(r.pageId===n.pageId)throw new Error(`page with id ${n.pageId} is already attached to a browser window ${r.parentIdentity.name}`);if(!t)throw new Error(`addPage title collision, page with title ${n.title} already exists, conflicting page id: ${r.pageId} with title ${r.title}`)}const i={identity:e.identity,pages:[{...n,multiInstanceViewBehavior:e.multiInstanceViewBehavior||"duplicate"}],insertionIndex:o};await this.attachPagesToWindow(i)}async addDefaultPage(e){await this.addPage(e),await this.setActivePage({identity:e.identity,pageId:e.page.pageId})}async setActivePage(...e){return Pn.apply(this,e)}async openGlobalContextMenuInternal(...e){return pi.apply(this,e)}async openGlobalContextMenu(...e){return ui.apply(this,[...e,dr.GlobalMenu,di.BottomRight])}async openViewTabContextMenuInternal(...e){return wi.apply(this,e)}async openViewTabContextMenu(...e){return ui.apply(this,[...e,dr.ContextMenu])}async openPageTabContextMenuInternal(...e){return gi.apply(this,e)}async openPageTabContextMenu(...e){return ui.apply(this,[...e,dr.ContextMenu])}async openSaveButtonContextMenu(...e){return ui.apply(this,e)}async openSaveButtonContextMenuInternal(...e){return hi.apply(this,e)}getSelectedScheme(...e){return xa.apply(this,e)}async setSelectedScheme(...e){return Ma.apply(this,e)}async handlePageChanges(...e){return En.apply(this,e)}async analyticsInternal(...e){return zn.apply(this,e)}async handleAnalytics(...e){}async handleSaveModalOnPageClose(...e){return Wn.apply(this,e)}async shouldPageClose(...e){return Dn.apply(this,e)}async shouldWindowClose(...e){return Tn.apply(this,e)}handlePagesAndWindowClose(...e){return Bn.apply(this,e)}async copyPage(...e){return Rn.apply(this,e)}async getNotificationsConfig(){return t}async setLanguage(...e){return $o.apply(this,e)}async getLanguage(){return Ho.apply(this)}async trackRemovedTabInternal(...e){return xr.apply(this,e)}async restoreRemovedTabInternal(){const e=await(async()=>{if(!fr)throw new Error("Unable to pop last removed tab - IndexDB not supported");const e=fr[kr],t=await e.toCollection().keys();if(t.length>0){const a=Math.max(...t.map(e=>Number(e))).toString(),n=await e.get(a);if(n){await e.delete(a);const{id:t,...o}=n;return o}}})();if("page"in e)if(await fe(e.identity)){const t=Aa().Browser.wrapSync(e.identity);await t.addPage(e.page),await t.setActivePage(e.page.pageId)}else Aa().createWindow({name:e.identity.name,workspacePlatform:{pages:[e.page],windowType:P.Browser}});else(function(e){return"window"in e})(e)&&Aa().createWindow({workspacePlatform:{pages:e.window.pages,windowType:P.Browser}})}async trackVisitedSiteInternal(...e){return Ar.apply(this,e)}async getRecentlyVisitedSitesInternal(...e){return await rs.apply(this,e)}async getFrequentlyVisitedSitesInternal(...e){return Wr.apply(this,e)}async searchSitesInternal(...e){return await as.apply(this,e)}async getSearchProvidersInternal(...e){return await ns.apply(this,e)}async getCuratedContentInternal(...e){return await os.apply(this,e)}async handleRequestNavigationInternal(...e){}async refreshBookmarksInternal(){(await Aa().Browser.getAllWindows()).forEach(async({identity:e})=>{(await ea(e)).dispatch(sa.RefreshBookmarksInternal)});(await Xt(sr())).dispatch(sa.RefreshBookmarksInternal),await(async()=>{const e=await ki();if(e){const t=await ea(e.identity,mi);await t.dispatch(sa.RefreshBookmarksInternal)}})()}async launchBookmarkInternal(e){return Br(e)}async updateDockFavoritesInternal(e){return(async e=>{const t=await ki();if(!t)throw new Error("Companion Dock window not found");{const a=await ea(t.identity,mi);await a.dispatch(ra.UpdateFavoriteEntries,e)}})(e)}async updateContentMenuInternal(e){return(async e=>{const t=await ki();if(!t)throw new Error("Companion Dock window not found");{const a=await ea(t.identity,mi);await a.dispatch(ra.UpdateContentMenu,e)}})(e)}async launchDockEntryInternal(e){return(async e=>(await bi()).dispatch("launch-entry",e))(e)}async setDefaultDockButtonsOrderInternal(e){return(async e=>(await bi()).dispatch("set-default-dock-buttons-order",e))(e)}async setDockFavoritesOrderInternal(e){return(async e=>(await bi()).dispatch("set-dock-favorites-order",e))(e)}async addDockFavoriteInternal(e){return(async e=>(await bi()).dispatch("add-favorite-entry",e))(e)}async removeDockFavoriteInternal(e){return(async e=>(await bi()).dispatch("remove-favorite-entry",e))(e)}async navigateContentMenuInternal(e){return(async e=>{const t=await ki();if(!t)throw new Error("Companion Dock window not found");{const a=await ea(t.identity,mi);await a.dispatch(ra.NavigateContentMenu,e)}})(e)}async getDockWorkspacesContextMenuInternal(){return(async()=>(await bi()).dispatch("get-dock-workspaces-context-menu",void 0))()}async handleDockWorkspacesMenuResponseInternal(e){return(async e=>(await bi()).dispatch("handle-dock-workspaces-menu-response",e))(e)}async focusAndExpandSearchInternal(){return yi()}async sendUpdateVersionModalResponseInternal(e){return Mi(e)}async showUpdateVersionModalInternal(e,t){return Oi(e,t)}}};function us(e,t,a){const n=ds(e,a);try{return"function"==typeof t?e=>t(n(e)):Array.isArray(t)?[...t,n]:e=>new(n(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}}const ps=["green","purple","orange","red","pink","yellow"],ws="CONTEXT_GROUP_PAGE",gs=()=>e=>class extends e{getContextGroups(){return super.getContextGroups().map(e=>ps.includes(e.displayMetadata?.name)?{...e,displayMetadata:{...e.displayMetadata,name:Qa(e.displayMetadata?.name)}}:e)}},hs=()=>{const e=new Set(ni.keys());return t=>class extends t{constructor(){super(),this.onClientConnected=async e=>{if(e.name.startsWith("internal-generated-view")){const{page:t}=await Aa().Browser.getPageByViewIdentity(e),a=t.contextGroup;this.joinContextGroup({contextGroupId:a??ws,target:e},{uuid:this.fin.me.uuid,name:this.fin.me.name})}};const e=this.interopClients.set;this.interopClients.set=(t,a)=>{e.call(this.interopClients,t,a),this.onClientConnected(a.clientIdentity)}}async joinContextGroup({contextGroupId:t,target:a},n){if(t!==ws)return super.joinContextGroup({contextGroupId:t,target:a},n);try{const t=(await Aa().Browser.getPageByViewIdentity(a)).page.layoutName;if(!t)throw new Error("View does not belong to a page");if(!e.has(t)&&(e.add(t),!this.contextGroupsById.has(t))){const e=new Map;this.contextGroupsById.set(t,e)}await super.joinContextGroup({contextGroupId:t,target:a},n),a.name}catch(e){JSON.stringify(a),e.stack}}getContextGroups(){return Array.from(e).map(e=>({id:e,displayMetadata:ni.get(e)??{}}))}setContextForGroup(e,t){if(!this.contextGroupsById.has(t)){const e=new Map;this.contextGroupsById.set(t,e)}return super.setContextForGroup(e,t)}}},ms=(e,t)=>{const a=(e=>We(e)?hs():gs())(t);try{return"function"==typeof e?t=>e(a(t)):Array.isArray(e)?[...e,a]:e=>new(a(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}};async function ks(){(async()=>{le().on("window-closed",ar)})(),async function(){const e=fin.Application.getCurrentSync(),t=await Yo();await Promise.all(t.map(async e=>{await er(e.identity,void 0,!0)}));const a=await fin.System.getFocusedWindow();a&&a.name.startsWith(de.BrowserWindow)&&await er(a,void 0,!0),await e.addListener("window-focused",async e=>{await er(e,void 0,!0)}),await e.addListener("window-minimized",async e=>{await er(e,!1)}),await e.addListener("window-restored",async e=>{await er(e,!0)}),await e.addListener("window-closed",tr)}();Co(await Mo())}let bs;async function ys(e,t){if(!await fe({uuid:we.uuid,name:de.DockCompanion})){const a=await Ve(we);await t.createWindow(Ce({name:de.DockCompanion,url:X((e.baseUrl??await ee())+z.EnterpriseBrowser)+z.EnterpriseDock,autoShow:!0,frame:!1,smallWindow:!0,saveWindowState:!1,defaultHeight:Me,defaultWidth:xe,includeInSnapshots:!1,defaultTop:e.dockPosition?.top??Ie,defaultLeft:e.dockPosition?.left??a.left-xe/2,workspacePlatform:{windowType:"enterprise",...e},throttling:"disabled",resizable:!1,maximizable:!1,backgroundColor:await Dt("background1")}))}}function fs({overrideCallback:e,interopOverride:t,browser:a,notifications:n,analytics:o,integrations:r=[],workspaceAsar:i}){if(!A)throw new Error("Cannot be used outside an OpenFin env.");return bs||(bs=(async()=>{const s=fin.Platform.getCurrentSync();var c,l;if(s.once("platform-api-ready",()=>ks()),s.on("window-show-all-downloads",({name:e,uuid:t})=>{Lo({name:e,uuid:t})}),a?.title&&(c=a.title,ri=c),Kn(o),i){const e=`workspace-${encodeURIComponent(fin.me.uuid)}`,{baseUrl:t}=await fin.System.serveAsset({...i,hostName:e});Y(t)}a?.browserBaseUrl&&Y(a.browserBaseUrl),We(a)&&(tn=!0,l=a,en=l?.aiPanelOptions,nn());const d=ya();var u;return d.setWorkspaceStorage(_e(`${B}-workspace`)),d.trySynchronizeWorkspaceStorage(),await fin.Platform.init({overrideCallback:us(a,e||a?.overrideCallback,n),interopOverride:ms(t||a?.interopOverride,a)}),u={allowed:!0},ze($e.Platform,u),await Promise.all(r.map(async e=>{((e,t)=>{ze(`${$e.Microflow}:${e}`,t,"integration-feature")})(e.workflowIntegrationName,{allowed:!0,apiVersion:_}),await e._initializeWorkflows()})),s})()),bs}const Ss=async({theme:e,customActions:t,language:a,...n})=>{const o=_.split(".").map(e=>parseInt(e)),r=await(async e=>{if((await Q()).disableRuntimeValidation)return!0;if(await Ae())return!0;const t=(await fin.System.getVersion()).split(".").map(e=>parseInt(e));return e.every((a,n)=>!(n<3)||t[n]===e[n])})(o);if(!r)throw new Error(`Runtime version is not supported. ${o[0]}.${o[1]}.${o[2]}.* is required`);var i;return ls(e),e&&(i={allowed:!0},ze($e.Theming,i)),t&&(nr=t),await Ko(a?.initialLanguage),fs(n)}})(),module.exports=n})();
|
|
1
|
+
(()=>{var e={847:(e,t)=>{var a={2346:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMostReadable=t.darkenColor=t.lightenColor=void 0;const o=n(a(6535));t.lightenColor=(e,t)=>r(e,"lighten",t),t.darkenColor=(e,t)=>r(e,"darken",t);const r=(e,t,a)=>{if(a&&(a<0||a>100))throw new Error(`${a} must be a number between 0 and 100`);return(0,o.default)(e)[t](a).toString()};t.getMostReadable=(e,t)=>o.default.mostReadable(e,t).toHexString()},2317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IconSize=t.Transition=t.LineHeight=t.FontWeight=t.FontSize=t.FontFamily=t.Shadow=t.Radius=t.UnitPx=t.Unit=t.SizeName=t.Size=t.Color=void 0,t.Color={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"#8C61FF",lightblue:"#36C3FE",aqua:"#00CC88",yellow:"#FFEB00",salmon:"#FF8C4C",pink:"#FF5E60",lightpink:"#FF8FB8",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent",openFinActive:"#4642FF",openFinHover:"#6965FF",lightGray4Active:"#D7DADF",lightGray4Hover:"#EBECEF",darkGray2Active:"#33353B",darkGray2Hover:"#44464E"},t.Size={xsmall:"xsmall",small:"small",base:"base",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge",xxxxlarge:"xxxxlarge"},t.SizeName={[t.Size.xsmall]:"Extra Small",[t.Size.small]:"Small",[t.Size.base]:"Base",[t.Size.large]:"Large",[t.Size.xlarge]:"Extra Large",[t.Size.xxlarge]:"2X Large",[t.Size.xxxlarge]:"3X Large",[t.Size.xxxxlarge]:"4X Large"},t.Unit={[t.Size.xsmall]:4,[t.Size.small]:8,[t.Size.base]:12,[t.Size.large]:16,[t.Size.xlarge]:20,[t.Size.xxlarge]:24,[t.Size.xxxlarge]:32,[t.Size.xxxxlarge]:48},t.UnitPx={[t.Size.xsmall]:"4px",[t.Size.small]:"8px",[t.Size.base]:"12px",[t.Size.large]:"16px",[t.Size.xlarge]:"20px",[t.Size.xxlarge]:"24px",[t.Size.xxxlarge]:"32px",[t.Size.xxxxlarge]:"48px"},t.Radius={[t.Size.xsmall]:"2px",[t.Size.small]:"4px",[t.Size.base]:"8px",[t.Size.large]:"24px",pill:"100vh",round:"50%",none:"0"},t.Shadow={[t.Size.base]:"0 4px 4px rgba(0, 0, 0, 0.25)"},t.FontFamily=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),t.FontSize={[t.Size.xsmall]:"8px",[t.Size.small]:"10px",[t.Size.base]:"12px",[t.Size.large]:"14px",[t.Size.xlarge]:"16px",[t.Size.xxlarge]:"18px",[t.Size.xxxlarge]:"20px",[t.Size.xxxxlarge]:"40px"},t.FontWeight={normal:400,bold:600},t.LineHeight={ui:1,heading:1.2,text:1.5},t.Transition={base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},t.IconSize={[t.Size.xsmall]:t.UnitPx.small,[t.Size.small]:t.UnitPx.base,[t.Size.base]:"15px",[t.Size.large]:t.UnitPx.xlarge,[t.Size.xlarge]:t.UnitPx.xxlarge,[t.Size.xxlarge]:t.UnitPx.xxxlarge,[t.Size.xxxlarge]:t.UnitPx.xxxxlarge}},6893:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;const n=a(2317),o=a(2346),r=a(5939),i={fontFamily:n.FontFamily,fontSize:n.FontSize,fontWeight:n.FontWeight,lineHeight:n.LineHeight,iconSize:n.IconSize,radius:n.Radius,shadow:n.Shadow,transition:n.Transition,unit:n.Unit,px:n.UnitPx},s=(e,t)=>({[`${e}Active`]:(0,o.darkenColor)(t,2),[`${e}Hover`]:(0,o.lightenColor)(t,5),[`${e}Focused`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5]),[`${e}Text`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5])});t.createTheme=e=>Object.assign(Object.assign({},i),{palette:Object.assign(Object.assign(Object.assign({},s(r.Palette.brandPrimary,e.brandPrimary)),s(r.Palette.brandSecondary,e.brandSecondary)),e)})},5939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=void 0,t.Palette={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"}},6535:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,a=/\s+$/;function n(o,r){if(r=r||{},(o=o||"")instanceof n)return o;if(!(this instanceof n))return new n(o,r);var i=function(n){var o,r,i,s={r:0,g:0,b:0},c=1,l=null,d=null,u=null,p=!1,w=!1;return"string"==typeof n&&(n=function(e){e=e.replace(t,"").replace(a,"").toLowerCase();var n,o=!1;if(f[e])e=f[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=R.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=R.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=R.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=R.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=R.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=R.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=R.hex8.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:W(n[4]),format:o?"name":"hex8"}:(n=R.hex6.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:o?"name":"hex"}:(n=R.hex4.exec(e))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:W(n[4]+""+n[4]),format:o?"name":"hex8"}:!!(n=R.hex3.exec(e))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:o?"name":"hex"}}(n)),"object"==e(n)&&(E(n.r)&&E(n.g)&&E(n.b)?(o=n.r,r=n.g,i=n.b,s={r:255*P(o,255),g:255*P(r,255),b:255*P(i,255)},p=!0,w="%"===String(n.r).substr(-1)?"prgb":"rgb"):E(n.h)&&E(n.s)&&E(n.v)?(l=I(n.s),d=I(n.v),s=function(e,t,a){e=6*P(e,360),t=P(t,100),a=P(a,100);var n=Math.floor(e),o=e-n,r=a*(1-t),i=a*(1-o*t),s=a*(1-(1-o)*t),c=n%6;return{r:255*[a,i,r,r,s,a][c],g:255*[s,a,a,i,r,r][c],b:255*[r,r,s,a,a,i][c]}}(n.h,l,d),p=!0,w="hsv"):E(n.h)&&E(n.s)&&E(n.l)&&(l=I(n.s),u=I(n.l),s=function(e,t,a){var n,o,r;function i(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}if(e=P(e,360),t=P(t,100),a=P(a,100),0===t)n=o=r=a;else{var s=a<.5?a*(1+t):a+t-a*t,c=2*a-s;n=i(c,s,e+1/3),o=i(c,s,e),r=i(c,s,e-1/3)}return{r:255*n,g:255*o,b:255*r}}(n.h,l,u),p=!0,w="hsl"),n.hasOwnProperty("a")&&(c=n.a)),c=v(c),{ok:p,format:n.format||w,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:c}}(o);this._originalInput=o,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||i.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}function o(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=(r+i)/2;if(r==i)n=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,l:s}}function r(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=r,c=r-i;if(o=0===r?0:c/r,r==i)n=0;else{switch(r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,v:s}}function i(e,t,a,n){var o=[x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s(e,t,a,n){return[x(A(n)),x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16))].join("")}function c(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s-=t/100,a.s=C(a.s),n(a)}function l(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s+=t/100,a.s=C(a.s),n(a)}function d(e){return n(e).desaturate(100)}function u(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l+=t/100,a.l=C(a.l),n(a)}function p(e,t){t=0===t?0:t||10;var a=n(e).toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(-t/100*255))),a.g=Math.max(0,Math.min(255,a.g-Math.round(-t/100*255))),a.b=Math.max(0,Math.min(255,a.b-Math.round(-t/100*255))),n(a)}function w(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l-=t/100,a.l=C(a.l),n(a)}function g(e,t){var a=n(e).toHsl(),o=(a.h+t)%360;return a.h=o<0?360+o:o,n(a)}function h(e){var t=n(e).toHsl();return t.h=(t.h+180)%360,n(t)}function m(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var a=n(e).toHsl(),o=[n(e)],r=360/t,i=1;i<t;i++)o.push(n({h:(a.h+i*r)%360,s:a.s,l:a.l}));return o}function k(e){var t=n(e).toHsl(),a=t.h;return[n(e),n({h:(a+72)%360,s:t.s,l:t.l}),n({h:(a+216)%360,s:t.s,l:t.l})]}function b(e,t,a){t=t||6,a=a||30;var o=n(e).toHsl(),r=360/a,i=[n(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(n(o));return i}function y(e,t){t=t||6;for(var a=n(e).toHsv(),o=a.h,r=a.s,i=a.v,s=[],c=1/t;t--;)s.push(n({h:o,s:r,v:i})),i=(i+c)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,a,n=this.toRgb();return e=n.r/255,t=n.g/255,a=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},setAlpha:function(e){return this._a=v(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+a+"%, "+n+"%)":"hsva("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+a+"%, "+n+"%)":"hsla("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return i(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,a,n,o){var r=[x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16)),x(A(n))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+"%",g:Math.round(100*P(this._g,255))+"%",b:Math.round(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%)":"rgba("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[i(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),a=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=n(e);a="#"+s(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+a+")"},toString:function(e){var t=!!e;e=e||this._format;var a=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(a=this.toRgbString()),"prgb"===e&&(a=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(a=this.toHexString()),"hex3"===e&&(a=this.toHexString(!0)),"hex4"===e&&(a=this.toHex8String(!0)),"hex8"===e&&(a=this.toHex8String()),"name"===e&&(a=this.toName()),"hsl"===e&&(a=this.toHslString()),"hsv"===e&&(a=this.toHsvString()),a||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var a=e.apply(null,[this].concat([].slice.call(t)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},n.fromRatio=function(t,a){if("object"==e(t)){var o={};for(var r in t)t.hasOwnProperty(r)&&(o[r]="a"===r?t[r]:I(t[r]));t=o}return n(t,a)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,a){a=0===a?0:a||50;var o=n(e).toRgb(),r=n(t).toRgb(),i=a/100;return n({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},n.readability=function(e,t){var a=n(e),o=n(t);return(Math.max(a.getLuminance(),o.getLuminance())+.05)/(Math.min(a.getLuminance(),o.getLuminance())+.05)},n.isReadable=function(e,t,a){var o,r,i,s,c,l=n.readability(e,t);switch(r=!1,(i=a,"AA"!==(s=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(c=(i.size||"small").toLowerCase())&&"large"!==c&&(c="small"),o={level:s,size:c}).level+o.size){case"AAsmall":case"AAAlarge":r=l>=4.5;break;case"AAlarge":r=l>=3;break;case"AAAsmall":r=l>=7}return r},n.mostReadable=function(e,t,a){var o,r,i,s,c=null,l=0;r=(a=a||{}).includeFallbackColors,i=a.level,s=a.size;for(var d=0;d<t.length;d++)(o=n.readability(e,t[d]))>l&&(l=o,c=n(t[d]));return n.isReadable(e,c,{level:i,size:s})||!r?c:(a.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],a))};var f=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=n.hexNames=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&(t[e[a]]=a);return t}(f);function v(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var a=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function x(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function A(e){return Math.round(255*parseFloat(e)).toString(16)}function W(e){return M(e)/255}var D,T,B,R=(T="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",B="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(e){return!!R.CSS_UNIT.exec(e)}return n}()}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=e.Palette=e.Color=void 0;var t=o(2317);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return t.Color}});var a=o(5939);Object.defineProperty(e,"Palette",{enumerable:!0,get:function(){return a.Palette}});var n=o(6893);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return n.createTheme}})})();var i=t;for(var s in r)i[s]=r[s];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})},877:()=>{},67:()=>{}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";a.r(n),a.d(n,{AppManifestType:()=>c,BookmarkItemContextMenuOptionType:()=>y,BrowserButtonType:()=>S,ColorSchemeOptionType:()=>m,CustomActionCallerType:()=>C,EnterpriseMainContextMenuOptionType:()=>b,GlobalContextMenuOptionType:()=>h,PageChangeEventType:()=>g,PageTabContextMenuOptionType:()=>k,PanelPosition:()=>w,SUPPORTED_LANGUAGES:()=>M,SaveButtonContextMenuOptionType:()=>v,SaveModalType:()=>x,ViewTabMenuOptionType:()=>f,WindowType:()=>P,getCurrentSync:()=>Aa,init:()=>Ss,initDockCompanion:()=>ys,wrapSync:()=>Ia});var e,t,o,r,i,s,c,l,d={};a.r(d),a.d(d,{createNamespacedLocalStorage:()=>_e,getItem:()=>Ge,removeItem:()=>He,setItem:()=>Ue}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(e||(e={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(t||(t={})),function(e){e.Active="active",e.Default="default"}(o||(o={})),function(e){e.Suggestion="suggestion"}(r||(r={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(i||(i={})),function(e){e.MultiSelect="MultiSelect"}(s||(s={})),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(c||(c={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(l||(l={}));var u,p,w,g,h,m,k,b,y,f,S,v,P,C;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(u||(u={})),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(p||(p={})),function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(w||(w={})),function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(g||(g={})),function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(h||(h={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(m||(m={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.AddToChannel="AddToChannel",e.Custom="Custom"}(k||(k={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.Print="Print",e.Pin="Pin"}(b||(b={})),function(e){e.EditName="Edit Name",e.Move="Move",e.Delete="Delete"}(y||(y={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(f||(f={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(S||(S={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(v||(v={})),function(e){e.Browser="browser",e.Platform="platform"}(P||(P={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(C||(C={}));const M=["en-US","ja-JP","zh-CN","ko-KR","ru-RU","de-DE","zh-Hant"];var x,I;!function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(x||(x={})),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(I||(I={}));const A="undefined"!=typeof window&&"undefined"!=typeof fin,W=("undefined"==typeof process||process.env,"undefined"!=typeof window),D=W&&"undefined"!=typeof indexedDB,T=W?window.origin:I.Local,B=A&&fin.me.uuid,R=A&&fin.me.name,E=A&&fin.me.entityType,F=(I.Local,I.Dev,I.Staging,"prod"===I.Prod),V=e=>e.startsWith("http://")||e.startsWith("https://")?e:T+e,N=V("https://workspace.openfin.co/workspace/22.2.18"),L=V("https://workspace.openfin.co/workspace/22.2.18"),_=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&V(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&V(WORKSPACE_DOCS_CLIENT_URL),"41.134.102.4"),O="22.2.18";"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA;var U,G;!function(e){e.Home="/home/",e.HomeSearch="/home/?deeplink=search",e.HomePagesRename="/home/pages/rename/",e.Dock="/dock/",e.Docs="/provider/docs/",e.Storefront="/storefront/",e.DeprecatedAlert="/provider/deprecated-alert/",e.Analytics="/provider/analytics/",e.Provider="/provider/"}(U||(U={})),function(e){e.Browser="/browser/",e.BrowserPopupMenu="/popup-menu/",e.BrowserPopupMenuSaveModal="/popup-menu/save-modal/",e.BrowserPopupMenuLayouts="/popup-menu/layouts/layouts/",e.BrowserPopupMenuColorLinking="/popup-menu/color-linking/color-linking/",e.BrowserIndicator="/indicator/",e.BrowserPopupMenuAddressSearchResultsView="/popup-menu/address-search-results-view/",e.ResponseModal="/popup-menu/response-modal/",e.CloseConfirmationModal="/popup-menu/close-confirmation-modal/",e.EnterpriseBrowser="/enterprise/",e.EnterpriseLandingPage="/enterprise/landing/",e.EnterpriseContextMenu="/context-menu/",e.EnterpriseBookmarkDialog="/bookmark-dialog/",e.DropdownMenu="/dropdown-menu/",e.EnterpriseDock="/dock/",e.ZoomControlsDialog="/zoom-controls-dialog/"}(G||(G={}));const H={...U,...G};var $;!function(e){e.Search="search"}($||($={}));const z=H;async function K(){const e="getManifestOverrides",{manifest:t,initialOptions:a}=await fin.Application.getCurrentSync().getInfo();return t?.platform.workspace||t?.platform.home||a?.workspace||a?.home||console.warn(`${e}: Missing Home development manifest overrides, using Desktop Owner Settings.`),t?.platform.workspace?(JSON.stringify(t?.platform.workspace),t?.platform.workspace):t?.platform.home?(JSON.stringify(t?.platform.home),t?.platform.home):a?.workspace?(JSON.stringify(a?.workspace),a?.workspace):a?.home?(JSON.stringify(a?.home),a?.home):{}}const J=e=>fin.System.getSystemAppConfig(e);async function Z(){const e="getDOSOverrides";if(!A)return console.warn(`${e}: the fin API was not available, returning no result`),{};try{let t=await J("workspace").catch(t=>{console.warn(`${e}: customConfig entry for SystemApp workspace not available in Desktop Owner Settings. ${t?.message}`)});return t||(t=await J("home")),JSON.stringify(t),t}catch(t){if(!F)return{};if(!(t instanceof Error))throw t;console.warn(`${e}: Missing Workspace Desktop Owner Settings configuration, using defaults. ${t?.message}`)}return{}}let q,j;async function Q(){if(q)return q;const e="getOverrides";if(!A)return W&&console.warn(`${e}: The Fin API was not available. Returning an empty result.`),{};const[t,a]=await Promise.all([Z(),K()]);return q={...a,...t,disableRuntimeValidation:a.disableRuntimeValidation||t.disableRuntimeValidation},q}function Y(e){j=e}const X=e=>e.replace(/\/$/,"");async function ee(){const e=(await Q()).browserBaseUrl;if(e)try{const t=new URL(e);if(t.pathname.endsWith("/"))t.pathname=X(t.pathname);else{if("/workspace"===t.pathname)return t.pathname+=`/${O}`,t.toString();console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url, with path: /workspace. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}}catch(t){console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}return j??L}async function te(e=!1){const t=await ee()+z.Browser;return e?t:X(t)}async function ae(e=!1){const t=await ee()+z.EnterpriseBrowser;return e?t:X(t)}async function ne(){return await ae()+"/landing/"}const oe=async(e,t=!1)=>e?ae(t):te(t);var re,ie;!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(re||(re={})),function(e){e.FinProtocol="fin-protocol"}(ie||(ie={}));const se={uuid:B},ce=(re.Workspace,e=>{if(!A)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)}),le=()=>ce(se);var de;!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.UpdateVersionModal="here-update-version-modal",e.ZoomControlsDialog="here-zoom-controls-dialog"}(de||(de={}));const ue=e=>({left:(e.left+(e.right??e.left+e.width))/2,top:(e.top+(e.bottom??e.top+e.height))/2});function pe(e){if(!A)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const we={name:R,uuid:B};function ge(){return pe(we)}de.Home,re.Workspace,de.Dock,re.Workspace;const he={name:de.Storefront,uuid:re.Workspace};re.Workspace,re.Workspace;async function me(e){const t=pe(e);"minimized"===await t.getState()&&await t.restore(),await t.show(),await t.focus()}const ke=async e=>{try{const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return("browser"===t.workspacePlatform?.windowType||"enterprise"===t.workspacePlatform?.windowType)&&t.workspacePlatform?.pages}catch(e){return console.warn("isBrowserWindow error: ",e),!1}};async function be(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map(async e=>ke(e.identity)));return e.filter((e,a)=>t[a])}async function ye(){return(await fin.Application.getCurrentSync().getChildWindows()).filter(e=>e.identity.name.startsWith(de.BrowserMenu))}const fe=e=>pe(e).getInfo().then(()=>!0).catch(()=>!1),Se=()=>fe(he);function ve(e,t){const a=e.top,n=e.left,o=e.top+e.height,r=e.left+e.width,i=t.monitorRect.top,s=t.monitorRect.left,c=t.monitorRect.bottom,l=t.monitorRect.right;if(a>c||o<i||n>l||r<s)return 0;const d=Math.max(a,i),u=Math.max(n,s);return(Math.min(o,c)-d)*(Math.min(r,l)-u)/(e.height*e.width)}async function Pe(e){const t=await fin.System.getMonitorInfo();return[t.primaryMonitor,...t.nonPrimaryMonitors].reduce((t,a)=>{const n=ve(e,a);return n>t.percentage?{percentage:n,monitor:a}:t},{percentage:0,monitor:t.primaryMonitor}).monitor}const Ce=(e,t)=>{const a=e;return a.workspacePlatform||(a.workspacePlatform={}),a.workspacePlatform._internalDeferShowOptions={setAsForeground:!!t,deferShowEnabled:!0,autoShow:a.workspacePlatform?._internalAutoShow||a.workspacePlatform?._internalDeferShowOptions?.autoShow||void 0===a.autoShow||a.autoShow},a.autoShow=!1,a};const Me=56,xe=728,Ie=150,Ae=async e=>{const t=e?fin.Window.wrapSync(e):fin.Window.getCurrentSync(),a=await t.getOptions();return a.workspacePlatform?.windowType&&"enterprise"===a.workspacePlatform.windowType},We=e=>{const t=e?.defaultWindowOptions?.workspacePlatform?.windowType;return"enterprise"===t};let De;const Te=e=>{if(e)try{return new URL(e).pathname.includes(z.EnterpriseLandingPage.replace(/\/$/,""))}catch(t){console.error("error parsing url: %O",e)}return!1},Be=(e,t=0)=>{let a,n,o=!1;const r=async n=>{const i=await e(...n);if(o){await new Promise(e=>setTimeout(e,t));const e=a;return a=void 0,o=!1,r(e)}return i};return(...e)=>(n?(o=!0,a=e):n=r(e).catch(e=>{throw console.error("makeDebouncedFunc",e),e}).finally(()=>{n=void 0}),n)};var Re;!function(e){e.Top="top",e.Below="below"}(Re||(Re={}));const Ee=async e=>{try{return!!e&&"maximized"===await e.getState()}catch(e){return console.warn("parentWindowMaximized - Failed to get parent window state",e),!1}};async function Fe(e,t,a,n,o,r){const i=!!e&&pe(e),s=await(async(e,t)=>{try{return e?await e.getBounds():t}catch(e){return console.warn("getParentWindowBounds - Failed to get parent window bounds",e),t}})(i,r);if(n===Re.Below){if(!i||await Ee(i)){const e=i?(await Pe(s)).availableRect:(await fin.System.getMonitorInfo()).primaryMonitor.availableRect;return{left:ue(e).left-t/2,top:o?e.bottom-128:e.bottom+12,width:t,height:a}}return{left:ue(s).left-t/2,top:o?s.bottom-128:s.bottom+12,width:t,height:a}}if(!i||await Ee(i)){const e=i?(await Pe(s)).availableRect:(await fin.System.getMonitorInfo()).primaryMonitor.availableRect;return{left:ue(e).left-t/2,top:e.top+20,width:t,height:a}}return{left:ue(s).left-t/2,top:s.top+20,width:t,height:a}}Be(async function(e,t,a,n,o){const r=t.getBoundingClientRect(),i=await Fe(e,r.width,r.height,a,n,o);if(0===i.width||0===i.height)return;const s=ge();await s.setBounds(i),await s.show();const c=setTimeout(()=>s.close(),n?5e3:3e3),l=()=>{clearTimeout(c),s.close()};if(e){const t=pe(e);t.on("bounds-changing",()=>l()),t.on("blurred",()=>l()),t.on("maximized",()=>l()),t.on("minimized",()=>l()),t.on("restored",()=>l())}},10);const Ve=async e=>{const t=e&&await pe(e).getBounds(),a=e?await Pe(t):(await fin.System.getMonitorInfo()).primaryMonitor;return{left:((n=a.availableRect).left+n.right)/2,top:(n.top+n.bottom)/2};var n},Ne=async(e,t,a=!1)=>{let n;if(a)n=await Ve(t);else{const e=pe(t),a=await e.getBounds();n=n??ue(a)}const{defaultHeight:o,defaultWidth:r}=e;return((e,t)=>{const a=t.width/2,n=t.height/2;return{left:Math.round(e.left-a),top:Math.round(e.top-n),width:t.width,height:t.height}})(n,{height:o,width:r})};async function Le(e,t,a=!1){const n=t&&"maximized"===await pe(t).getState(),o=a||n||!t,r=await Ne(e,t,o);return await(async e=>{const t=await fin.System.getMonitorInfo(),a=[t.primaryMonitor,...t.nonPrimaryMonitors];for(const t of a)if(1===ve(e,t))return!1;return!0})(r)?(await pe(t).center(),Ne(e,t,o)):(console.warn("Response modal isn't off screen, not centering parent window"),r)}const _e=e=>({setItem:(t,a)=>{localStorage.setItem(`${e}-${t}`,a)},getItem:t=>localStorage.getItem(`${e}-${t}`),removeItem:t=>localStorage.removeItem(`${e}-${t}`)}),Oe=_e(B),Ue=Oe.setItem,Ge=Oe.getItem,He=Oe.removeItem;var $e;!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}($e||($e={}));const ze=async(e,t,a="workspace-licensing")=>{const n={apiVersion:t.apiVersion||O,componentName:e,componentVersion:t.componentVersion||O,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:a,data:n})};let Ke=!1;const Je=new Map,Ze=e=>{let t=Je.get(e.uuid);return t||(t=Ia(e),t.once("closed",()=>{Je.delete(e.uuid)}),Je.set(e.uuid,t)),t},qe=async(e,t)=>{try{await e._raiseAnalytics([t])}catch(e){console.error("failed to raise analytics event",e)}},je=async e=>{await qe(Ze(fin.me.identity),{source:"Browser",...e})};var Qe=a(847);const Ye=e=>e.replace(/[^\d,]/g,"").split(","),Xe=e=>{if(e.length<2)throw new Error("Invalid color object, cannot convert to HSL.");const t=e[0]/255,a=e[1]/255,n=e[2]/255,o=Math.min(t,a,n),r=Math.max(t,a,n),i=r-o;let s=0,c=0,l=0;return s=0===i?0:r===t?(a-n)/i%6:r===a?(n-t)/i+2:(t-a)/i+4,s=Math.round(60*s),s<0&&(s+=360),l=(r+o)/2,c=0==i?0:i/(1-Math.abs(2*l-1)),c=+(100*c).toFixed(1),l=+(100*l).toFixed(1),{hsl:`hsl(${s}, ${c}%, ${l}%)`,hsla:`hsl(${s}, ${c}%, ${l}%, 1)`,hue:s,lightness:l,saturation:c}},et=e=>{if(!e.includes("#"))throw new Error("Invalid hex value, cannot convert to RGB. Hex value begins with a hashtag.");let t=0,a=0,n=0;if(4===e.length)t=`0x${e[1]}${e[1]}`,a=`0x${e[2]}${e[2]}`,n=`0x${e[3]}${e[3]}`;else{if(7!==e.length)throw new Error("Invalid hex string length, cannot convert to RGB.");t=`0x${e[1]}${e[2]}`,a=`0x${e[3]}${e[4]}`,n=`0x${e[5]}${e[6]}`}return[+t,+a,+n]},tt=e=>{const t=e;if(t.startsWith("#")){return{rgb:et(t).join(", "),alpha:1}}const a=t.match(/\d{1,3}(\.\d+)?/g);if(a){const[e,t,n,o]=a;return{rgb:`${e}, ${t}, ${n}`,alpha:void 0!==o?parseFloat(o):1}}return{rgb:et(e).join(", "),alpha:1}},at=(e,t=!1)=>{const a=(e=>{if(!e)throw new Error("Color is not defined");const t=e.toLowerCase();let a;if(t.includes("rgb")){const e=Ye(t);e.length>3&&e.pop(),a=Xe(e).hue}if(t.includes("#")){const e=et(t);a=Xe(e).hue}t.includes("hsl")&&(a=Ye(t)[0]);const n=a?.toString();if(!n)throw new Error(`Hue was unable to be extracted from "${t}", check color format. Accepted formats are: rgb(), rgba(), hex, hsl(), and hsla()`);return n})(e);return t?{background1:`hsla(${a}, 0%, 100%, 1)`,background2:`hsla(${a}, 67%, 99%, 1)`,background3:`hsla(${a}, 26%, 96%, 1)`,background4:`hsla(${a}, 15%, 94%, 1)`,background5:`hsla(${a}, 10%, 88%, 1)`,background6:`hsla(${a}, 80%, 80%, 1)`}:{background1:`hsla(${a}, 8%, 7%, 1)`,background2:`hsla(${a}, 8%, 13%, 1)`,background3:`hsla(${a}, 9%, 15%, 1)`,background4:`hsla(${a}, 6%, 23%, 1)`,background5:`hsla(${a}, 21%, 28%, 1)`,background6:`hsla(${a}, 5%, 51%, 1)`}},nt=(e,t)=>{const a={};return Object.keys(e).forEach(n=>{a[n]=t[n]?t[n]:e[n]}),a};var ot=a(877),rt=a.n(ot),it=a(67),st=a.n(it);const ct={light:{symbol:st()?.src||""},dark:{symbol:rt()?.src||""}},lt=W&&"complete"!==document.readyState&&new Promise(e=>document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&e()}));function dt(e){let t;const a=new Set;return()=>{if(!A)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await lt;const n={clientAPIVersion:O},o=await fin.InterApplicationBus.Channel.connect(e,{payload:n});return o.onDisconnection(async()=>{a.forEach(e=>e()),a.clear(),console.warn(`disconnected from channel provider ${e}`),t=void 0}),o})().then(e=>(e.addDisconnectionListener=e=>{a.add(e)},e)).catch(a=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${a}`)})),t}}var ut,pt;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(ut||(ut={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(pt||(pt={}));const wt=dt("__of_workspace_protocol__"),gt=wt;dt("__search-openfin-browser-home-topic__");var ht;!function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal"}(ht||(ht={}));const mt=async e=>fin.Platform.wrapSync(e).getClient(),kt=async e=>{const t=await mt(e),a="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let n;try{n=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(a)}if("boolean"==typeof n&&n)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),n;if("object"==typeof n&&n.isWorkspacePlatform)return n;throw new Error(a)},bt=async e=>(await kt(e),mt(e)),yt=async e=>{const t=await kt(e);if("object"==typeof t&&!0!==t?.isBrowserInitialized)throw new Error("Target is not a Browser-enabled Workspace Platform.");return mt(e)},ft="dark",St={[Qe.Palette.brandPrimary]:"#0A76D3",[Qe.Palette.brandPrimaryActive]:"#0A71C9",[Qe.Palette.brandPrimaryHover]:"#0B84EB",[Qe.Palette.brandPrimaryFocused]:Qe.Color.white,[Qe.Palette.brandPrimaryText]:Qe.Color.white,[Qe.Palette.statusSuccess]:Qe.Color.functional1,[Qe.Palette.statusWarning]:Qe.Color.functional10,[Qe.Palette.statusCritical]:Qe.Color.functional7,[Qe.Palette.statusActive]:Qe.Color.functional3,[Qe.Palette.contentBackground1]:"#0A76D3",[Qe.Palette.contentBackground2]:"#000000",[Qe.Palette.contentBackground3]:"#000000",[Qe.Palette.contentBackground4]:"#000000",[Qe.Palette.contentBackground5]:"#000000",[Qe.Palette.borderNeutral]:Qe.Color.silverGray},vt={...St,[Qe.Palette.background1]:Qe.Color.white,[Qe.Palette.background2]:Qe.Color.lightGray1,[Qe.Palette.background3]:Qe.Color.lightGray2,[Qe.Palette.background4]:Qe.Color.lightGray3,[Qe.Palette.background5]:Qe.Color.lightGray4,[Qe.Palette.background6]:Qe.Color.lightGray5,[Qe.Palette.brandSecondary]:Qe.Color.lightGray4,[Qe.Palette.brandSecondaryActive]:Qe.Color.lightGray4Active,[Qe.Palette.brandSecondaryHover]:Qe.Color.lightGray4Hover,[Qe.Palette.brandSecondaryFocused]:Qe.Color.darkGray5,[Qe.Palette.brandSecondaryText]:Qe.Color.darkGray5,[Qe.Palette.inputBackground]:Qe.Color.lightGray3,[Qe.Palette.inputColor]:Qe.Color.darkGray5,[Qe.Palette.inputPlaceholder]:Qe.Color.darkGray2,[Qe.Palette.inputDisabled]:Qe.Color.neutralGray,[Qe.Palette.inputFocused]:Qe.Color.lightGray5,[Qe.Palette.inputBorder]:Qe.Color.neutralGray,[Qe.Palette.textDefault]:Qe.Color.darkGray5,[Qe.Palette.textHelp]:Qe.Color.darkGray3,[Qe.Palette.textInactive]:Qe.Color.neutralGray},Pt={...St,[Qe.Palette.background1]:Qe.Color.darkGray6,[Qe.Palette.background2]:Qe.Color.darkGray5,[Qe.Palette.background3]:Qe.Color.darkGray4,[Qe.Palette.background4]:Qe.Color.darkGray3,[Qe.Palette.background5]:Qe.Color.darkGray2,[Qe.Palette.background6]:Qe.Color.darkGray1,[Qe.Palette.brandSecondary]:Qe.Color.darkGray2,[Qe.Palette.brandSecondaryActive]:Qe.Color.darkGray2Active,[Qe.Palette.brandSecondaryHover]:Qe.Color.darkGray2Hover,[Qe.Palette.brandSecondaryFocused]:Qe.Color.white,[Qe.Palette.brandSecondaryText]:Qe.Color.white,[Qe.Palette.inputBackground]:Qe.Color.darkGray1,[Qe.Palette.inputColor]:Qe.Color.white,[Qe.Palette.inputPlaceholder]:Qe.Color.lightGray5,[Qe.Palette.inputDisabled]:Qe.Color.neutralGray,[Qe.Palette.inputFocused]:Qe.Color.lightGray5,[Qe.Palette.inputBorder]:Qe.Color.neutralGray,[Qe.Palette.textDefault]:Qe.Color.white,[Qe.Palette.textHelp]:Qe.Color.lightGray5,[Qe.Palette.textInactive]:Qe.Color.neutralGray},Ct=[{label:"OpenFin Default Light and Dark Theme",palettes:{light:{...vt,backgroundPrimary:Qe.Color.darkGray5},dark:{...Pt,backgroundPrimary:Qe.Color.darkGray5}}}],Mt=e=>{const{background:t,foreground:a}=e;return{background:t,foreground:a??"#FFFFFF"}},xt=(e,t)=>({icons:{symbol:e.brand?.icons?.[t]?.symbol||ct[t].symbol}}),It=e=>{const{light:t,dark:a}="palettes"in e?e.palettes:{light:e.palette,dark:e.palette},n=nt(Pt,a),o=nt(vt,t),r=((e,t)=>{const a={...e},n={...t};let o=t.backgroundPrimary?at(t.backgroundPrimary,!0):{},r=e.backgroundPrimary?at(e.backgroundPrimary):{};return o={...o,...n},r={...r,...a},{light:{...t,...o},dark:{...e,...r}}})(a,t),i={...(0,Qe.createTheme)({...n,...r?.dark}),brand:xt(e,"dark")},s={...(0,Qe.createTheme)({...o,...r?.light}),brand:xt(e,"light")},{light:c,dark:l}=(e=>{const t=Object.keys(e.notificationIndicatorColors??{});if(t?.length){const a={},n={};return t.forEach(t=>{const o=e.notificationIndicatorColors[t];"background"in o?(a[t]=Mt(o),n[t]=Mt(o)):(a[t]=Mt(o.dark??o.light),n[t]=Mt(o.light??o.dark))}),{light:n,dark:a}}return{light:null,dark:null}})(e);return i.notificationIndicatorColors=l,s.notificationIndicatorColors=c,{dark:i,light:s}},At=async e=>{const{themes:t,selectedScheme:a}=await(async e=>{const t=fin?.__internal_?.initialOptions?.workspacePlatform?._themeData;if(!t||e.uuid!==we.uuid)return{themes:await Ia(e).Theme.getThemes(),selectedScheme:await Ia(e).Theme.getSelectedScheme()};return t})(e);var n,o;return(n=t?.length?t:Ct,o=a,n.map(e=>{const t="palettes"in e?e.default:ft,{light:a,dark:n}=It(e);return{label:e.label,logoUrl:e.logoUrl,theme:{dark:n,light:a},defaultScheme:o??t}}))[0]},Wt=async e=>{const t=await bt(e||fin.me.identity),a=await t.dispatch(ht.GetSelectedScheme,void 0);return a===m.System?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a},Dt=async(e,t)=>{const a=await At(fin.me.identity),n=await Wt(fin.me.identity)===m.Dark,o=a?.theme;return o?.[n?m.Dark:m.Light]?.palette?.[e]||t};let Tt;const Bt=async e=>{Tt||(Tt=new TextEncoder);const t=Tt.encode(e),a=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(a)).map(e=>e.toString(16).padStart(2,"0")).join("")};function Rt(e){return e&&"object"==typeof e&&!Array.isArray(e)}function Et(e,...t){if(!t.length)return e;const a=t.shift();return Rt(e)&&Rt(a)&&Object.entries(a).forEach(([t,a])=>{if(Rt(a))return e[t]||(e[t]={}),Et(e[t],a);e[t]=a}),Et(e,...t)}const Ft=require("lodash.debounce");var Vt,Nt=a.n(Ft);function Lt(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}!function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.ThemePaletteSheet="ThemePaletteSheet",e.HasMovedStore="HasMovedStore",e.PageDragState="BrowserPageDragState"}(Vt||(Vt={}));const _t=Vt;function Ot(){return localStorage.getItem(_t.MachineName)??"unknown"}let Ut;async function Gt(){return Ut||(Ut=await fin.System.getMachineId()),Ut}const Ht=e=>{if(Array.isArray(e.workspacePlatform?.pages)&&(e.layoutSnapshot||e.layout)){const t=e.workspacePlatform.pages.find(e=>e.isActive);if(t){const a=e.layoutSnapshot?e.layoutSnapshot.layouts[t.layoutContainerKey]:e.layout;if(a)if(t.isLocked){const n=_a(a,t.layout);t.layout=n,e.layout=n}else t.layout=a,e.layout=a}}return e};async function $t(e){const t=e||await fin.Platform.getCurrentSync().getSnapshot();if(t.snapshotDetails?.machineId)return t;const a=Ot();return{...t,snapshotDetails:{...t.snapshotDetails,machineId:await Gt(),machineName:a}}}const zt=async e=>({...e,layoutDetails:{machineId:await Gt(),machineName:Ot()}}),Kt=async(e,t)=>({pageId:Lt(),title:e,layout:await zt(t),isReadOnly:!1}),Jt=async e=>{const t=await Kt(e.title,Fa(e.layout));return e.panels&&(t.panels=e.panels.map(e=>({...e,viewOptions:Ea(e.viewOptions)}))),{...e,...t}},Zt=e=>{const t=fin.Platform.Layout.wrapSync(e);return{show:async()=>{const a=await t.getConfig(),{settings:n,dimensions:o}=a,r=await Ae(e);await t.replace({...a,settings:{...n,hasHeaders:!0,reorderEnabled:!0},dimensions:{...o,headerHeight:r?28:30}})},hide:async e=>{const a=await t.getConfig(),{settings:n,dimensions:o}=await a;await t.replace({...a,settings:{...n,hasHeaders:!1,reorderEnabled:e?.settings?.reorderEnabled??!1},dimensions:{...o,headerHeight:0}})},isShowingTabs:async()=>{try{const e=await t.getConfig(),{settings:a}=await e;return a.hasHeaders}catch(e){return console.error("failed to get layout config: ",e),!0}}}},qt="of-workspace-";const jt=new class{mark(e){performance.mark(`${qt}${e}`)}markStart(e){performance.mark(`${qt}${e}-start`)}markEnd(e){performance.mark(`${qt}${e}-end`)}markEndAndMeasure(e){performance.mark(`${qt}${e}-end`);try{return performance.measure(`${qt}${e}`,`${qt}${e}-start`,`${qt}${e}-end`)}catch(e){0}}markAndMeasure(e,t){performance.mark(`${qt}${e}`);try{return performance.measure(`${qt}${e}-measure`,`${qt}${t}-start`,`${qt}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter(e=>e.name.startsWith(qt))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map(e=>({name:e.name.replace(`${qt}`,"").replace("-measure",""),duration:e.duration}))}},Qt=(e,t)=>t?`${t}-${e.uuid}-${e.name}`:`__browser_window__-${e.uuid}-${e.name}`,Yt=new Map,Xt=e=>(Yt.has(e)||Yt.set(e,dt(e)),Yt.get(e)()),ea=(e,t)=>{const a=Qt(e,t);return Xt(a)};var ta,aa,na,oa,ra,ia;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator",e.SetSelectedLanguage="set-selected-language",e.RefreshBookmarksInternal="refresh-bookmarks",e.GetLayoutsWithSelectedViewsInternal="get-layouts-with-selected-views",e.FocusAndExpandSearchInternal="focus-and-expand-search"}(ta||(ta={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(aa||(aa={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited",e.GetSearchProviders="get-search-providers"}(na||(na={})),function(e){e.CreateBookmarkNode="create-bookmark-node",e.GetBookmarkNode="get-bookmark-node",e.SearchBookmarkNodes="search-bookmark-nodes",e.UpdateBookmarkNode="update-bookmark-node",e.DeleteBookmarkNode="delete-bookmark-node"}(oa||(oa={})),function(e){e.UpdateFavoriteEntries="update-favorite-entries",e.UpdateContentMenu="update-content-menu",e.NavigateContentMenu="navigate-content-menu"}(ra||(ra={})),function(e){e.SendUpdateVersionModalResponse="send-update-version-modal-response"}(ia||(ia={}));const sa={...ta,...aa,...ra},ca=dt(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-bookmarks`),la=e=>({identity:e,openfinWindow:fin.Window.wrapSync(e),_bookmarks:{_createBookmarkNode:async e=>(async e=>(await ca()).dispatch(oa.CreateBookmarkNode,e))(e),_getBookmarkNode:async e=>(async e=>(await ca()).dispatch(oa.GetBookmarkNode,e))(e),_searchBookmarkNodes:async e=>(async e=>(await ca()).dispatch(oa.SearchBookmarkNodes,e))(e),_updateBookmarkNode:async e=>(async e=>(await ca()).dispatch(oa.UpdateBookmarkNode,e))(e),_deleteBookmarkNode:async e=>(async e=>(await ca()).dispatch(oa.DeleteBookmarkNode,e))(e)},getPages:async()=>(await yt(e)).dispatch(ht.GetPagesForWindow,e),getPage:async t=>(await yt(e)).dispatch(ht.GetPageForWindow,{identity:e,pageId:t}),addPage:async t=>Aa().Browser.wrapSync(e)._addPage(t),_addPage:async(t,a)=>{const n=await yt(e),o={identity:e,page:t,insertionIndex:a?.index,multiInstanceViewBehavior:a?.multiInstanceViewBehavior};return n.dispatch(ht.AddPage,o)},removePage:async t=>(await yt(e)).dispatch(ht.DetachPagesFromWindow,{identity:e,pageIds:[t]}),reparentPage:async t=>Aa().Browser.wrapSync(e)._reparentPage(t),_reparentPage:async t=>{const{pageId:a}=t,n=await yt(e),o=(await n.dispatch(ht.GetAllAttachedPages,void 0)).find(({pageId:e})=>e===a);if(!o)throw new Error(`Reparent Page Error: Target page with pageId ${a} not found`);o.multiInstanceViewBehavior="reparent";const r={identity:e,pages:[o],insertionIndex:t.index};return n.dispatch(ht.AttachPagesToWindow,r)},setActivePage:async t=>(await yt(e)).dispatch(ht.SetActivePage,{identity:e,pageId:t}),updatePage:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.UpdatePageForWindow,t)},reorderPages:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.ReorderPagesForWindow,t)},_openGlobalContextMenu:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.OpenGlobalContextMenuInternal,t)},replaceToolbarOptions:async t=>{await yt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{toolbarOptions:t}})},replaceWindowStateButtonOptions:async t=>{await yt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{windowStateButtonOptions:t}})},updateBrowserWindowTitle:async t=>{const a=fin.Window.wrapSync(e);"string"!=typeof t?await a.updateOptions({workspacePlatform:{title:t}}):console.warn("Type string for window title is deprecated, please use WindowTitle type instead",t)},_openViewTabContextMenu:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.OpenViewTabContextMenuInternal,t)},_openPageTabContextMenu:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.OpenPageTabContextMenuInternal,t)},_openSaveModal:async t=>{await yt(e);return(await ea(e)).dispatch(sa.OpenSaveModalInternal,t)},_getLayoutsWithSelectedViews:async()=>(await ea(e)).dispatch(sa.GetLayoutsWithSelectedViewsInternal,e),_openSaveButtonContextMenu:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.OpenSaveButtonContextMenuInternal,t)},_addDefaultPage:async t=>{const a=await yt(e);return t.identity=e,a.dispatch(ht.AddDefaultPage,t)},_trackRemovedTab:async t=>(await yt(e)).dispatch(ht.TrackRemovedTabInternal,t),_restoreRemovedTab:async t=>(await yt(e)).dispatch(ht.RestoreRemovedTabInternal,t),_trackVisitedSite:async t=>(await yt(e)).dispatch(ht.TrackVisitedSiteInternal,t),_getRecentlyVisitedSites:async t=>(await yt(e)).dispatch(ht.GetRecentlyVisitedSitesInternal,t),_getFrequentlyVisitedSites:async t=>(await yt(e)).dispatch(ht.GetFrequentlyVisitedSitesInternal,t),_searchSites:async t=>(await yt(e)).dispatch(ht.SearchSitesInternal,{identity:e,req:t}),_getSearchProviders:async()=>(await yt(e)).dispatch(ht.GetSearchProvidersInternal,{identity:e}),_getCuratedContent:async t=>(await yt(e)).dispatch(ht.GetCuratedContentInternal,{identity:e,req:t}),_handleRequestNavigation:async t=>(await yt(e)).dispatch(ht.HandleRequestNavigationInternal,t),_sendUpdateVersionModalResponse:async t=>(await yt(e)).dispatch(ht.SendUpdateVersionModalResponseInternal,t)}),da=e=>{const t=fin.Platform.wrapSync(e);return{wrapSync:e=>la(e),createWindow:async a=>{const n=(()=>{const e=`browser-window-startup-${Lt()}`;return jt.markStart(e),e})();(e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",()=>{jt.markAndMeasure("browser-window-shown",e)})})(n),await yt(e);const o=await t.createWindow(a);return(e=>{jt.markAndMeasure("browser-window-started",e)})(n),la(o.identity)},getAllAttachedPages:async()=>(await yt(e)).dispatch(ht.GetAllAttachedPages,void 0),getAllWindows:async()=>{await yt(e);return(await be()).map(e=>la(e.identity))},getUniquePageTitle:async t=>(await yt(e)).dispatch(ht.GetUniquePageTitle,t),getLastFocusedWindow:async()=>(await yt(e)).dispatch(ht.GetLastFocusedBrowserWindow,void 0),getPageByViewIdentity:async t=>(await yt(e)).dispatch(ht.GetPageByViewIdentity,t)}},ua=e=>({createPage:async t=>(await yt(e)).dispatch(ht.CreateSavedPageInternal,t),deletePage:async t=>(await yt(e)).dispatch(ht.DeleteSavedPageInternal,t),updatePage:async t=>(await yt(e)).dispatch(ht.UpdateSavedPageInternal,t),getPage:async t=>(await yt(e)).dispatch(ht.GetSavedPage,t),getPages:async t=>(await yt(e)).dispatch(ht.GetSavedPages,t),savePage:async t=>(await yt(e)).dispatch(ht.SavePage,t),createWorkspace:async t=>(await bt(e)).dispatch(ht.CreateSavedWorkspace,t),deleteWorkspace:async t=>{const a=Aa(),n=await a.getCurrentWorkspace();if(n.workspaceId===t)throw new Error(`Cannot delete current active workspace ${n.title}`);return(await bt(e)).dispatch(ht.DeleteSavedWorkspace,t)},updateWorkspace:async t=>(await bt(e)).dispatch(ht.UpdateSavedWorkspace,t),getWorkspace:async t=>(await bt(e)).dispatch(ht.GetSavedWorkspace,t),getWorkspaces:async t=>(await bt(e)).dispatch(ht.GetSavedWorkspaces,t),saveWorkspace:async t=>(await bt(e)).dispatch(ht.SaveWorkspace,t),getDockProviderConfig:async t=>(await bt(e)).dispatch(ht.GetDockProviderConfig,t),saveDockProviderConfig:async t=>(await bt(e)).dispatch(ht.SaveDockProviderConfig,t)});var pa;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(pa||(pa={}));const wa=dt("of-workspace-notifications-sync"),ga=m.System,ha=e=>Object.entries(e).reduce((e,[t,a])=>`${e}--workspace-palette-${t}: ${a};`,""),ma=(e,t)=>{const a=!!e.contentBackground5&&"#000000"!==e.contentBackground5,n=!!e.contentBackground4&&"#000000"!==e.contentBackground4,o=tt(e.textDefault),r=tt(e.textInactive),i=o.rgb,s=r.rgb,c=o.alpha?parseFloat(o.alpha.toString()):1,l=r.alpha?parseFloat(r.alpha.toString()):1;return{dockExpandedContainerBorderColor:a?e.contentBackground5:e.background4,dockExpandedContainerBorderRadius:a&&t?"0":"10px",dockExpandedContainerBackground:n?e.contentBackground4:e.background1,fillerBackgroundColor:n?e.contentBackground4:"inherit",dockCompanionContainerBackground:n?e.contentBackground4:"inherit",dockComponentContainerBackground:a?e.contentBackground5:e.background5,styledDropdownActiveBackground:`${a?e.contentBackground5:e.background4}`,contentMenuWrapperInternalDivBorderColor:a?e.contentBackground5:e.background5,contentMenuItemContainerActiveBackground:a?e.contentBackground5:e.background3,contentMenuItemContainerHoverBackground:a?e.contentBackground5:e.background2,contentMenuHeaderBorderColor:a?e.contentBackground5:e.background5,dockCompanionSeparatorBorderColor:a?e.contentBackground5:e.background3,dockComponentContainerBorderColor:a?e.contentBackground5:e.background5,companionDockButtonActiveBackground:a?e.contentBackground5:e.background4,companionDockButtonHoverBackground:a?e.contentBackground5:e.background4,"computed-scrollbar-thumb-alpha":c,"computed-scrollbar-track-alpha":l,"scrollbar-thumb-rgb":i,"scrollbar-track-rgb":s}},ka=(e,t,a)=>({selectedTab:"dark"===t?e.background3:e.background1,...ma(e,a)});const ba=new class{constructor(e){this.providerStorage=e,this.getVarsByScheme=e=>"dark"===e?this.darkPaletteVars:this.lightPaletteVars,this.setWorkspaceStorage=e=>{this.workspaceStorage=e},this.trySynchronizeWorkspaceStorage=()=>{if(this.workspaceStorage){const e=this.getScheme();if(this.workspaceStorage.setItem(_t.SelectedColorScheme,e),this.darkPaletteVars&&this.lightPaletteVars)if("dark"===e||"light"===e)this.workspaceStorage.setItem(_t.ThemePaletteSheet,`:root{${this.getVarsByScheme(e)}}`);else{const e=`@media (prefers-color-scheme: dark){:root {${this.getVarsByScheme("dark")}}}`,t=`@media (prefers-color-scheme: light){:root{${this.getVarsByScheme("light")}}}`;this.workspaceStorage.setItem(_t.ThemePaletteSheet,`${t}${e}`)}}},this.setPalettes=async({light:e,dark:t},a)=>{this.lightPaletteVars=ha({...e,...ka(e,"light",a)}),this.darkPaletteVars=ha({...t,...ka(t,"dark",a)})}}setScheme(e){this.providerStorage.setItem(_t.SelectedColorScheme,e)}getScheme(){return null===this.providerStorage.getItem(_t.SelectedColorScheme)&&this.providerStorage.setItem(_t.SelectedColorScheme,ga),this.providerStorage.getItem(_t.SelectedColorScheme)}}(d),ya=()=>ba,fa=e=>({getThemes:async()=>(await bt(e)).dispatch(ht.GetThemes,void 0),setSelectedScheme:async t=>(await bt(e)).dispatch(ht.SetSelectedScheme,t),getSelectedScheme:async()=>(await bt(e)).dispatch(ht.GetSelectedScheme,void 0)}),Sa=async e=>{const t=await gt();await t.dispatch("set-selected-scheme",e)},va=async e=>{const t=await wa();await t.dispatch(pa.UpdatePlatformThemeScheme,{scheme:e})},Pa=async e=>{const t=await be();return Promise.all(t.map(async t=>{const a=await ea(t.identity);await a.dispatch(sa.SetSelectedScheme,e)}))},Ca=async e=>{const t=await ye();return Promise.all(t.map(async t=>{const a=await ea(t.identity);await a.dispatch(sa.SetSelectedScheme,e)}))},Ma=async e=>{try{const t=ya();t.setScheme(e),await Promise.all([await t.trySynchronizeWorkspaceStorage(),va(e),Pa(e),Ca(e),Sa(e)])}catch(e){console.error("failed to set the selected scheme: ",e)}},xa=()=>{try{return ya().getScheme()}catch(e){console.error("failed to get the selected scheme: ",e)}},Ia=e=>{const t=fin.Platform.wrapSync(e);let a;return Object.assign(t,{applySnapshot:async(t,a)=>{if("string"!=typeof t&&!t?.windows)throw new Error("Not a valid browser snapshot");return fin.Platform.wrapSync(e).applySnapshot(t,a)},getSnapshot:()=>fin.Platform.wrapSync(e).getSnapshot().then(e=>e),getViewSnapshot:t=>fin.Platform.wrapSync(e).getViewSnapshot(t),createView:(t,a,n)=>fin.Platform.wrapSync(e).createView(t,a,n),launchApp:async t=>{console.warn("launchApp method is deprecated. It is recommended to use createView - https://developers.openfin.co/of-docs/docs/platform-getting-started#add-a-view-to-an-existing-window or createWindow - https://developers.openfin.co/of-docs/docs/platform-getting-started#create-a-platform-window instead."),t.target||(t.target={uuid:B,name:R,entityType:E||"unknown"});return(await bt(e)).dispatch(ht.LaunchApp,t)},_invokeCustomAction:async(t,a)=>{const n=await bt(e),o={actionId:t,payload:{...a,callerType:a.callerType||C.API}};return n.dispatch(ht.InvokeCustomActionInternal,o)},_requestQuitPlatformDialog:async t=>(await bt(e)).dispatch(ht.RequestQuitPlatformDialogInternal,t),_showUpdateVersionModal:async t=>(await bt(e)).dispatch(ht.ShowUpdateVersionModalInternal,t),getCurrentWorkspace:async()=>(await bt(e)).dispatch(ht.GetCurrentWorkspace,void 0),applyWorkspace:async(t,a)=>(await bt(e)).dispatch(ht.ApplyWorkspace,{...t,options:a}),restoreLastSavedWorkspace:async t=>(await bt(e)).dispatch(ht.RestoreLastSavedWorkspaceInternal,t),setActiveWorkspace:async t=>(await bt(e)).dispatch(ht.SetActiveWorkspace,t),getLanguage:async()=>(await bt(e)).dispatch(ht.GetLanguage),_getLanguageResources:async()=>(await bt(e)).dispatch(ht.GetLanguageResourcesInternal),setLanguage:async t=>(await bt(e)).dispatch(ht.SetLanguage,t),_raiseAnalytics:async t=>{if(a||(a=await kt(e)),"object"==typeof a&&a?.analytics?.isSupported){return(await bt(e)).dispatch(ht.Analytics,t)}e.uuid},getNotificationsConfig:async()=>(await bt(e)).dispatch(ht.GetNotificationsConfig),_refreshBookmarksInternal:async()=>(await bt(e)).dispatch(ht.RefreshBookmarksInternal),_launchBookmarkInternal:async t=>(await bt(e)).dispatch(ht.LaunchBookmarkInternal,t),_updateDockFavoritesInternal:async t=>(await bt(e)).dispatch(ht.UpdateDockFavoritesInternal,t),_updateContentMenuInternal:async t=>(await bt(e)).dispatch(ht.UpdateContentMenuInternal,t),_launchDockEntryInternal:async t=>(await bt(e)).dispatch(ht.LaunchDockEntryInternal,t),_setDockFavoritesInternal:async t=>(await bt(e)).dispatch(ht.SetDockFavoritesOrderInternal,t),_setDefaultDockButtonsOrderInternal:async t=>(await bt(e)).dispatch(ht.SetDefaultDockButtonsOrderInternal,t),_removeDockFavoriteInternal:async t=>(await bt(e)).dispatch(ht.RemoveDockFavoriteInternal,t),_addDockFavoriteInternal:async t=>(await bt(e)).dispatch(ht.AddDockFavoriteInternal,t),_navigateContentMenuInternal:async t=>(await bt(e)).dispatch(ht.NavigateContentMenuInternal,t),_openDockWorkspacesContextMenuInternal:async()=>(await bt(e)).dispatch(ht.GetDockWorkspacesContextMenuInternal),_handleDockWorkspacesMenuResponseInternal:async t=>(await bt(e)).dispatch(ht.HandleDockWorkspacesMenuResponseInternal,t),_focusAndExpandSearchInternal:async()=>(await bt(e)).dispatch(ht.FocusAndExpandSearchInternal),Theme:fa(e),Browser:da(e),Storage:ua(e)})},Aa=()=>Ia(fin.me.identity),Wa={contextMenuOptions:{enabled:!0,template:["spellCheck","separator","print","separator","cut","copy","paste","undo","redo","selectAll","inspect","reload"]},downloadShelf:{enabled:!0}};function Da(e,t){return Et({},Wa,t,e)}const Ta="internal-generated-view-",Ba=(e,t)=>e.content?{...e,content:e.content.map(e=>Ba(e,t))}:{...e,componentState:t(e.componentState)},Ra=(e,t)=>{return a=Da(e,t),{...a,name:a.name?a.name:`internal-generated-view-${Lt()}`,_internalWorkspaceData:{...a._internalWorkspaceData,viewIdentifier:a._internalWorkspaceData?.viewIdentifier||Lt()}};var a},Ea=e=>({...e,name:void 0}),Fa=e=>{const t={...e};return Ba(t,Ea)},Va=e=>{const t={...e};return Ba(t,e=>e.name&&e.name.startsWith(Ta)?Ea(e):e)},Na=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach(e=>{if("component"===e.type)return t.push(e.componentState);const a=Na(e.content);t.push(...a)}),t},La=async(e,t,a=we)=>{let n;if(await ke(a)){n=(await pe(a).getOptions()).layout||{settings:{}}}return{...n,content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{title:e,url:t}}]}]}};new Map,new Map;const _a=(e,t)=>{const a=Na(t.content);return{...Ba(e,e=>{const t=a.find(t=>t._internalWorkspaceData?.viewIdentifier===e._internalWorkspaceData?.viewIdentifier),n=t?t.isClosable:e.isClosable;return{...e,isClosable:n}}),settings:t.settings}},Oa=e=>e?Na(e).length:0,Ua=(Nt()(async e=>{try{if(!e||!e.layoutContainerKey)return;const t=await(async e=>fin.Platform.Layout.wrapSync({...fin.me.identity,layoutName:e}).getConfig())(e.layoutContainerKey),a=t.content?Na(t.content):[],n=a.length;n>1?(async e=>{if("multiView"!==e.attachedPageType){const t=await Aa().Browser.getUniquePageTitle();Aa().Browser.wrapSync(we).updatePage({pageId:e.pageId,page:{title:e.title??t,singleViewName:null,attachedPageType:"multiView"}})}})(e):1===n&&(async(e,t)=>{const a=Aa().Browser.wrapSync(we);if("singleView"!==e.attachedPageType){const n=await Jt(e);delete n.layout,delete n.pageId;const o=fin.View.wrapSync({uuid:we.uuid,name:t}),r=await o.getInfo(),i={...n,title:null,singleViewName:t,hasUnsavedChanges:!1,attachedPageType:"singleView",pageIcon:r.favicons[0]};await a.updatePage({pageId:e.pageId,page:i})}})(e,a[0].name),await(async(e,t)=>{const a=Zt({...we,layoutName:e.layoutContainerKey}),n=await a.isShowingTabs();t>1?n||await a.show():1===t&&n&&await a.hide({settings:{reorderEnabled:!0}})})(e,n)}catch(e){}},50,{leading:!1,trailing:!0}),require("react-i18next")),Ga=require("i18next");var Ha=a.n(Ga);const $a=JSON.parse('{"contextMenu.newWindow":"新建窗口","contextMenu.newPage":"新建页面","contextMenu.restore":"还原到上次保存的更改","contextMenu.switchWorkspace":"切换工作区","contextMenu.appearance":"外观","contextMenu.saveWorkspace":"保存工作区","contextMenu.saveWorkspaceAs":"将工作区另存为...","contextMenu.renameWorkspace":"重命名工作区","contextMenu.deleteWorkspace":"删除工作区","contextMenu.downloads":"下载","contextMenu.savePage":"保存页面","contextMenu.savePageAs":"将页面另存为...","contextMenu.print":"打印...","contextMenu.printScreen":"打印屏幕","contextMenu.closeWindow":"关闭窗口","contextMenu.openStorefront":"开放式店面","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新建视图","contextMenu.openView":"使用默认 Web 浏览器打开视图","contextMenu.openViews":"使用默认 Web 浏览器打开视图","contextMenu.reload":"Reload CN","contextMenu.reloadView":"重新加载视图","contextMenu.reloadViews":"重新加载视图","contextMenu.duplicate":"Duplicate CN","contextMenu.duplicateView":"复制视图","contextMenu.duplicateViews":"复制视图","contextMenu.addView":"将视图添加到频道","contextMenu.addViews":"将视图添加到频道","contextMenu.removeView":"从频道中移除视图","contextMenu.removeViews":"从频道中移除视图","contextMenu.closeView":"关闭视图","contextMenu.closeViews":"关闭视图","contextMenu.closeTab":"Close Tab CN","contextMenu.duplicatePage":"复制页面","contextMenu.submenu.print":"打印","contextMenu.submenu.printAll":"全部打印","saveMenu.saveWorkspaceAs":"将工作区另存为","saveMenu.savePageAs":"将页面另存为","saveModal.enterValue":"Please enter a value CN","saveModal.alreadyExists":"{{title}} 已存在。","saveModal.pleaseEnterValidName":"请输入有效名称","saveModal.renamePage":"重新命名页面","saveModal.closePage":"关闭页面","saveModal.discardChanges":"放弃更改","saveModal.discardAll":"全部放弃","saveModal.saveAll":"全部保存","saveModal.savePagesCount":"关闭前保存 ({{count}}) 个页面?","defaultPageTitle":"Untitled Page CN","enterpriseDefaultPageTitle":"Untitled Supertab CN","addNewPage":"添加新页面","addNewTab":"添加新选项卡","addNewView":"新建视图","restoreModal":"您确定要还原到上次保存的更改吗?","modal.discardWarning":"任何未保存的更改都将丢失","modal.discardPageWarning":"对此页的任何未保存的更改都将丢失。","modal.saveChangesPrompt":"关闭前保存更改?","modal.pageClose":"关闭页面","switchWorkspaceModal":"您确定要切换到 {{workspace}} 吗?","switchWorkspaceModal.warning":"任何未保存的更改都将丢失","deleteWorkspaceModal":"您确定要永久删除此工作区吗?","replaceWorkspaceModal.warning":"名称为 {{workspace}} 的工作区已存在。您是否要替换它?","replaceWorkspaceModal.warning.body":"已存在同名的工作区。替换它将覆盖其当前内容。","replaceWorkspaceModal.replace":"替换","closePlatform":"关闭平台","closePlatform.workspace":"关闭 {{workspace}} 平台","closePlatform.warning":"关闭平台将关闭所有工作区、应用或任何正在运行的进程。","back":"后退","forward":"前进","reload":"重新加载","green":"绿色","purple":"紫色","orange":"橙色","red":"红色","pink":"粉红色","yellow":"黄色","theme.light":"浅色","theme.dark":"深色","theme.system":"与操作系统设置同步","toolbar.hideTabs":"隐藏选项卡","toolbar.showTabs":"显示选项卡","toolbar.lock":"锁定","toolbar.unlock":"解锁","toolbar.colorLinking":"颜色链接","toolbar.changeLayout":"更改布局","toolbar.saveMenu":"保存菜单","toolbar.maximizeWindow":"最大化窗口","toolbar.restoreWindow":"还原窗口","toolbar.minimizeWindow":"最小化窗口","changeLayout.fullWidth":"全宽","changeLayout.columns":"列数","changeLayout.Rows":"行数","changeLayout.Grid":"网格","successIndicator.workspaceSwitched":"已切换工作区","successIndicator.hidden":"选项卡已隐藏","successIndicator.shown":"选项卡已显示","successIndicator.locked":"页面已锁定","successIndicator.unlocked":"页面已解锁","successIndicator.workspaceSaved":"工作区已保存","successIndicator.workspaceSavedAs":"工作区已另存为 {{workspace}}","successIndicator.workspaceRenamed":"工作区已重命名","successIndicator.pageSaved":"页面已保存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. CN","successIndicator.pageCopySaved":"页面已另存为 {{title}}","successIndicator.pageRenamed":"页面已重命名","successIndicator.contextGroupApplied":"已应用上下文组","successIndicator.namedContextGroupApplied":"已应用 {{colorName}} 上下文组","successIndicator.viewRemoved":"从上下文组中移除视图","successIndicator.viewsRemoved":"从上下文组中移除视图","successIndicator.layoutApplied":"已应用 {{layoutName}} 布局","successIndicator.workspaceDeleted":"工作区已删除","errorIndicator.pageSaveFailed":"页面保存失败","errorIndicator.workspaceSaveFailed":"工作区保存失败","errorIndicator.failedToDuplicatePage":"复制页面失败","infoIndicator.colorLinkAttempt":"我们尝试对此选项卡进行颜色链接,但网站/内容所有者尚未启用该功能","global.cancel":"取消","global.confirm":"确认","global.save":"保存","global.delete":"Delete CN","appResults.header":"Featured Content CN","recentlyClosed.header":"Recently Closed CN","landingPage.subheader":"Apps and websites selected by an admin will show here CN","aria.openBrowser":"打开浏览器菜单","aria.browserTabs":"浏览器选项卡","aria.viewTab":"查看 {{title}} 的选项卡","aria.closePage":"关闭 {{title}} 的页面选项卡按钮","aria.closeTab":"关闭选项卡 {{title}}","aria.title":"标题","aria.closeContextGroup":"使用转义关闭上下文组选择对话框","aria.colorLinking":"显示或隐藏颜色链接","aria.applyColorLinking":"请选择一个视图以应用颜色链接","aria.assignColorLinkingCurrentView":"分配给 {{name}} 上下文组的当前视图","aria.assignColorLinkingCurrentViews":"分配给 {{name}} 上下文组的当前视图","aria.setColorLinkingActiveView":"将活动视图设置为 {{name}} 上下文组","aria.setColorLinkingActiveViews":"将活动视图设置为 {{name}} 上下文组","aria.escapeLayoutDialog":"使用转义关闭更改布局对话框","global.supertab":"Supertab CN","global.tab":"Tab CN","bookmarks.editBookmark":"Edit Bookmark CN","bookmarks.bookmarkAdded":"Bookmark added CN","bookmarks.done":"Done CN","bookmarks.remove":"Remove CN","bookmarks.bookmarksPanel":"Bookmarks Panel CN","bookmarks.bookmarks":"Bookmarks CN","bookmarks.allBookmarks":"All Bookmarks CN","bookmarks.favorites":"Favorites CN","bookmarks.searchBookmarks":"Search Bookmarks CN","bookmarks.clearSearchInput":"Clear Search Input CN","bookmarks.createFolder":"Create New Folder CN","bookmarks.exitFolder":"Exit Folder CN","bookmarks.newFolder":"New Folder CN","bookmarks.namedFolder":"{{name}} Folder CN","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings CN","bookmarks.folderSettings":"{{name}} Folder Settings CN","bookmarks.noResultsFound":"No results found CN","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search CN","bookmarks.nothingToShow":"Nothing to show yet CN","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder CN","bookmarks.resultsFoundIn":"Results found in {{name}} CN","bookmarks.resultsInOtherFolders":"Results found in other folders CN","bookmarks.allResultsFoundIn":"All results found in CN","bookmarks.editName":"Edit Name CN","bookmarks.move":"Move CN","bookmarks.bookmarkAddedTitle":"Bookmark Added CN","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" CN","bookmarks.bookmarkEditedTitle":"Bookmark Edited CN","enterpriseContextMenu.saveSupertab":"Save Supertab CN","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... CN","enterpriseContextMenu.duplicate":"Duplicate CN","enterpriseContextMenu.deleteSupertab":"Delete Supertab CN","enterpriseContextMenu.newTab":"New Tab CN","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As CN","enterpriseSaveModal.renameSupertab":"Rename CN","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. CN","enterpriseSaveModal.closeTab":"Close Tab CN","enterpriseSaveModal.closeSupertab":"Close Supertab CN","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? CN","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. CN","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? CN","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. CN","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved CN","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. CN","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted CN","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. CN","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab CN","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab CN","enterpriseCommandBar.switchToSupertab":"Switch to Supertab CN","enterpriseCommandBar.goTo":"Go to {{type}} CN","enterpriseCommandBar.viewMore":"View More CN","sidePanel.aiCenter":"AI Center CN","sidePanel.newChat":"New Chat CN","sidePanel.toggleSidePanel":"Toggle Side Panel CN","sidePanel.closeSidePanel":"Close Side Panel CN","sidePanel.openAiCenter":"Open AI Center CN","contextMenu.quitEnterpriseBrowser":"Quit CN","dock.removeFavorite":"Remove CN"}'),za=JSON.parse('{"contextMenu.newWindow":"新視窗","contextMenu.newPage":"新頁面","contextMenu.restore":"還原到上次儲存的變更","contextMenu.switchWorkspace":"切換工作空間","contextMenu.appearance":"外觀","contextMenu.saveWorkspace":"儲存工作空間","contextMenu.saveWorkspaceAs":"將工作空間另存為...","contextMenu.renameWorkspace":"重新命名工作空間","contextMenu.deleteWorkspace":"刪除工作空間","contextMenu.downloads":"下載","contextMenu.savePage":"儲存頁面","contextMenu.savePageAs":"將頁面另存為...","contextMenu.print":"列印...","contextMenu.printScreen":"擷取畫面","contextMenu.closeWindow":"關閉視窗","contextMenu.openStorefront":"打開 Storefront","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新視圖","contextMenu.openView":"使用預設網頁瀏覽器打開視圖","contextMenu.openViews":"使用預設網頁瀏覽器打開視圖","contextMenu.reload":"Reload ZH","contextMenu.reloadView":"重新載入視圖","contextMenu.reloadViews":"重新載入視圖","contextMenu.duplicate":"Duplicate ZH","contextMenu.duplicateView":"複寫視圖","contextMenu.duplicateViews":"複寫視圖","contextMenu.addView":"將視圖新增至頻道","contextMenu.addViews":"將視圖新增至頻道","contextMenu.removeView":"從頻道中移除視圖","contextMenu.removeViews":"從頻道中移除視圖","contextMenu.closeView":"關閉視圖","contextMenu.closeViews":"關閉視圖","contextMenu.closeTab":"Close Tab ZH","contextMenu.duplicatePage":"複寫頁面","contextMenu.submenu.print":"列印","contextMenu.submenu.printAll":"列印全部","saveMenu.saveWorkspaceAs":"將工作空間另存為","saveMenu.savePageAs":"頁面另存為","saveModal.enterValue":"Please enter a value ZH","saveModal.alreadyExists":"{{title}} 已經存在。","saveModal.pleaseEnterValidName":"請輸入一個有效的名稱","saveModal.renamePage":"重新命名頁面","saveModal.closePage":"關閉頁面","saveModal.discardChanges":"捨棄變更","saveModal.discardAll":"全部捨棄","saveModal.saveAll":"儲存全部","saveModal.savePagesCount":"要先儲存 ({{count}}) 個頁面再關閉嗎?","defaultPageTitle":"Untitled Page ZH","enterpriseDefaultPageTitle":"Untitled Supertab ZH","addNewPage":"新增新頁面","addNewTab":"新增新索引標籤","addNewView":"新視圖","restoreModal":"您確定要還原到上次儲存的變更嗎?","modal.discardWarning":"任何未儲存的變更都將被捨棄","modal.discardPageWarning":"在此頁面任何未儲存的變更都將遺失。","modal.saveChangesPrompt":"要先儲存變更再關閉嗎?","modal.pageClose":"頁面關閉","switchWorkspaceModal":"您確定要切換到 {{workspace}}?","switchWorkspaceModal.warning":"任何未儲存的變更都將被捨棄","deleteWorkspaceModal":"您確定要永久刪除此工作空間嗎?","replaceWorkspaceModal.warning":"具有名稱 {{workspace}} 的工作空間已經存在。你要更換它嗎?","replaceWorkspaceModal.warning.body":"相同名稱的工作空間已經存在。更換它後,將會覆蓋目前內容。","replaceWorkspaceModal.replace":"更換","closePlatform":"關閉平台","closePlatform.workspace":"關閉 {{workspace}} 平台","closePlatform.warning":"關閉平台後,將關閉正在執行的任何工作空間、APP 或流程。","back":"上一頁","forward":"下一頁","reload":"重新載入","green":"綠","purple":"紫","orange":"橘","red":"紅色","pink":"粉紅","yellow":"黃","theme.light":"淺","theme.dark":"深","theme.system":"與 OS 設定同步","toolbar.hideTabs":"隱藏索引標籤","toolbar.showTabs":"顯示索引標籤","toolbar.lock":"上鎖","toolbar.unlock":"解鎖","toolbar.colorLinking":"顏色連結","toolbar.changeLayout":"變更版面","toolbar.saveMenu":"儲存選單","toolbar.maximizeWindow":"最大化視窗","toolbar.restoreWindow":"還原視窗","toolbar.minimizeWindow":"最小化視窗","changeLayout.fullWidth":"全螢幕寬度","changeLayout.columns":"行","changeLayout.Rows":"列","changeLayout.Grid":"網格","successIndicator.workspaceSwitched":"工作空間已切換","successIndicator.hidden":"索引標籤已隱藏","successIndicator.shown":"索引標籤已顯示","successIndicator.locked":"頁面已上鎖","successIndicator.unlocked":"頁面已解鎖","successIndicator.workspaceSaved":"工作空間已儲存","successIndicator.workspaceSavedAs":"工作空間已另存為 {{workspace}}","successIndicator.workspaceRenamed":"工作空間已重新命名","successIndicator.pageSaved":"頁面已儲存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. ZH","successIndicator.pageCopySaved":"頁面已另存為 {{title}}","successIndicator.pageRenamed":"頁面已重新命名","successIndicator.contextGroupApplied":"脈絡群組已套用","successIndicator.namedContextGroupApplied":"{{colorName}} 脈絡群組已套用","successIndicator.viewRemoved":"從脈絡群組中移除的視圖","successIndicator.viewsRemoved":"從脈絡群組中移除的視圖","successIndicator.layoutApplied":"{{layoutName}} 版面已套用","successIndicator.workspaceDeleted":"工作空間已刪除","errorIndicator.pageSaveFailed":"頁面無法儲存","errorIndicator.workspaceSaveFailed":"工作空間無法儲存","errorIndicator.failedToDuplicatePage":"無法複寫頁面","infoIndicator.colorLinkAttempt":"我們嘗試對此索引標籤進行顏色連結,但網站/內容所有者尚未啟用該功能","global.cancel":"取消","global.confirm":"確認","global.save":"儲存","global.delete":"Delete ZH","appResults.header":"Featured Content ZH","recentlyClosed.header":"Recently Closed ZH","landingPage.subheader":"Apps and websites selected by an admin will show here ZH","aria.openBrowser":"開啟瀏覽器選單","aria.browserTabs":"瀏覽器索引標籤","aria.viewTab":"{{title}} 的視圖索引標籤","aria.closePage":"關閉 {{title}} 的頁面索引標籤按鈕","aria.closeTab":"關閉索引標籤 {{title}}","aria.title":"標題","aria.closeContextGroup":"使用 Esc 鍵關閉脈絡群組選取對話框","aria.colorLinking":"顯示或隱藏顏色連結","aria.applyColorLinking":"請選取要套用顏色連結的視圖","aria.assignColorLinkingCurrentView":"目前視圖分配給 {{name}} 脈絡群組","aria.assignColorLinkingCurrentViews":"目前視圖分配給 {{name}} 脈絡群組","aria.setColorLinkingActiveView":"將啟用視圖設定為 {{name}} 脈絡群組","aria.setColorLinkingActiveViews":"將啟用視圖設定為 {{name}} 脈絡群組","aria.escapeLayoutDialog":"使用 Esc 鍵關閉變更版面對話框","global.supertab":"Supertab ZH","global.tab":"Tab ZH","bookmarks.editBookmark":"Edit Bookmark ZH","bookmarks.bookmarkAdded":"Bookmark added ZH","bookmarks.done":"Done ZH","bookmarks.remove":"Remove ZH","bookmarks.bookmarksPanel":"Bookmarks Panel ZH","bookmarks.bookmarks":"Bookmarks ZH","bookmarks.allBookmarks":"All Bookmarks ZH","bookmarks.favorites":"Favorites ZH","bookmarks.searchBookmarks":"Search Bookmarks ZH","bookmarks.clearSearchInput":"Clear Search Input ZH","bookmarks.createFolder":"Create New Folder ZH","bookmarks.exitFolder":"Exit Folder ZH","bookmarks.newFolder":"New Folder ZH","bookmarks.namedFolder":"{{name}} Folder ZH","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings ZH","bookmarks.folderSettings":"{{name}} Folder Settings ZH","bookmarks.noResultsFound":"No results found ZH","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search ZH","bookmarks.nothingToShow":"Nothing to show yet ZH","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder ZH","bookmarks.resultsFoundIn":"Results found in {{name}} ZH","bookmarks.resultsInOtherFolders":"Results found in other folders ZH","bookmarks.allResultsFoundIn":"All results found in ZH","bookmarks.editName":"Edit Name ZH","bookmarks.move":"Move ZH","bookmarks.bookmarkAddedTitle":"Bookmark Added ZH","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" ZH","bookmarks.bookmarkEditedTitle":"Bookmark Edited ZH","enterpriseContextMenu.saveSupertab":"Save Supertab ZH","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... ZH","enterpriseContextMenu.duplicate":"Duplicate ZH","enterpriseContextMenu.deleteSupertab":"Delete Supertab ZH","enterpriseContextMenu.newTab":"New Tab ZH","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As ZH","enterpriseSaveModal.renameSupertab":"Rename ZH","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. ZH","enterpriseSaveModal.closeTab":"Close Tab ZH","enterpriseSaveModal.closeSupertab":"Close Supertab ZH","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? ZH","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. ZH","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? ZH","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. ZH","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved ZH","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. ZH","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted ZH","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. ZH","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab ZH","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab ZH","enterpriseCommandBar.switchToSupertab":"Switch to Supertab ZH","enterpriseCommandBar.goTo":"Go to {{type}} ZH","enterpriseCommandBar.viewMore":"View More ZH","sidePanel.aiCenter":"AI Center ZH","sidePanel.newChat":"New Chat ZH","sidePanel.toggleSidePanel":"Toggle Side Panel ZH","sidePanel.closeSidePanel":"Close Side Panel ZH","sidePanel.openAiCenter":"Open AI Center ZH","contextMenu.quitEnterpriseBrowser":"Quit ZH","dock.removeFavorite":"Remove ZH"}'),Ka=JSON.parse('{"contextMenu.newWindow":"New Window","contextMenu.newPage":"New Page","contextMenu.restore":"Restore to Last Saved Changes","contextMenu.switchWorkspace":"Switch Workspace","contextMenu.appearance":"Appearance","contextMenu.saveWorkspace":"Save Workspace","contextMenu.saveWorkspaceAs":"Save Workspace As...","contextMenu.renameWorkspace":"Rename Workspace","contextMenu.deleteWorkspace":"Delete Workspace","contextMenu.downloads":"Downloads","contextMenu.savePage":"Save Page","contextMenu.savePageAs":"Save Page As...","contextMenu.print":"Print...","contextMenu.printScreen":"Print Screen","contextMenu.closeWindow":"Close Window","contextMenu.openStorefront":"Open Storefront","contextMenu.quitPlatform":"Quit {{platformLabel}}","contextMenu.newView":"New View","contextMenu.openView":"Open View with Default Web Browser","contextMenu.openViews":"Open Views with Default Web Browser","contextMenu.reload":"Reload","contextMenu.reloadView":"Reload View","contextMenu.reloadViews":"Reload Views","contextMenu.duplicate":"Duplicate","contextMenu.duplicateView":"Duplicate View","contextMenu.duplicateViews":"Duplicate Views","contextMenu.addView":"Add View to Channel","contextMenu.addViews":"Add Views to Channel","contextMenu.removeView":"Remove View from Channel","contextMenu.removeViews":"Remove Views from Channel","contextMenu.closeView":"Close View","contextMenu.closeViews":"Close Views","contextMenu.closeTab":"Close Tab","contextMenu.duplicatePage":"Duplicate Page","contextMenu.submenu.print":"Print","contextMenu.submenu.printAll":"Print All","saveMenu.saveWorkspaceAs":"Save Workspace As","saveMenu.savePageAs":"Save Page As","saveModal.enterValue":"Please enter a value","saveModal.alreadyExists":"{{title}} already exists.","saveModal.pleaseEnterValidName":"Please enter a valid name","saveModal.renamePage":"Rename Page","saveModal.closePage":"Close Page","saveModal.discardChanges":"Discard Changes","saveModal.discardAll":"Discard All","saveModal.saveAll":"Save All","saveModal.savePagesCount":"Save ({{count}}) pages before closing?","defaultPageTitle":"Untitled Page","enterpriseDefaultPageTitle":"Untitled Supertab","addNewPage":"New Page","addNewTab":"Add New Tab","addNewView":"New View","restoreModal":"Are you sure you want to restore to last saved changes?","modal.discardWarning":"Any unsaved changes will be discarded","modal.discardPageWarning":"Any unsaved changes to this page will be lost.","modal.saveChangesPrompt":"Save changes before closing?","modal.pageClose":"Page Close","switchWorkspaceModal":"Are you sure you want to switch to {{workspace}}?","switchWorkspaceModal.warning":"Any unsaved changes will be discarded","deleteWorkspaceModal":"Are you sure you want to permanently delete this workspace?","replaceWorkspaceModal.warning":"A Workspace with the name {{workspace}} already exists. Do you want to replace it?","replaceWorkspaceModal.warning.body":"A workspace with the same name already exists. Replacing it will overwrite its current contents.","replaceWorkspaceModal.replace":"Replace","closePlatform":"Close the platform","closePlatform.workspace":"Close the {{workspace}} Platform","closePlatform.warning":"Closing a platform will close any workspaces, apps or any processes that are running.","back":"Back","forward":"Forward","reload":"Reload","green":"Green","purple":"Purple","orange":"Orange","red":"Red","pink":"Pink","yellow":"Yellow","theme.light":"Light","theme.dark":"Dark","theme.system":"Sync with OS setting","toolbar.hideTabs":"Hide Tabs","toolbar.showTabs":"Show Tabs","toolbar.lock":"Lock","toolbar.unlock":"Unlock","toolbar.colorLinking":"Color Linking","toolbar.changeLayout":"Change Layout","toolbar.saveMenu":"Save Menu","toolbar.maximizeWindow":"Maximize Window","toolbar.restoreWindow":"Restore Window","toolbar.minimizeWindow":"Minimize Window","changeLayout.fullWidth":"Full Width","changeLayout.columns":"Columns","changeLayout.Rows":"Rows","changeLayout.Grid":"Grid","successIndicator.workspaceSwitched":"Workspace Switched","successIndicator.hidden":"Tabs are Hidden","successIndicator.shown":"Tabs are Shown","successIndicator.locked":"Page is Locked","successIndicator.unlocked":"Page is Unlocked","successIndicator.workspaceSaved":"Workspace saved","successIndicator.workspaceSavedAs":"Workspace saved as {{workspace}}","successIndicator.workspaceRenamed":"Workspace renamed","successIndicator.pageSaved":"Page Saved","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved.","successIndicator.pageCopySaved":"Page saved as {{title}}","successIndicator.pageRenamed":"Page renamed","successIndicator.contextGroupApplied":"Context group applied","successIndicator.namedContextGroupApplied":"{{colorName}} context group applied","successIndicator.viewRemoved":"View removed from context group","successIndicator.viewsRemoved":"Views removed from context group","successIndicator.layoutApplied":"{{layoutName}} layout applied","successIndicator.workspaceDeleted":"Workspace deleted","errorIndicator.pageSaveFailed":"Page failed to save","errorIndicator.workspaceSaveFailed":"Workspace failed to save","errorIndicator.failedToDuplicatePage":"Failed to duplicate Page","infoIndicator.colorLinkAttempt":"We attempted to color link this tab, but the site/content owner has not enabled it yet","global.cancel":"Cancel","global.confirm":"Confirm","global.save":"Save","global.delete":"Delete","appResults.header":"Featured Content","recentlyClosed.header":"Recently Closed","landingPage.subheader":"Apps and websites selected by an admin will show here","aria.openBrowser":"Open Browser Menu","aria.browserTabs":"Browser Tabs","aria.viewTab":"View Tab for {{title}}","aria.closePage":"Close Page Tab Button for {{title}}","aria.closeTab":"Close Tab {{title}}","aria.title":"Title","aria.closeContextGroup":"Use escape to close context group selection dialog","aria.colorLinking":"Show or hide color linking","aria.applyColorLinking":"Please select a view to apply color linking","aria.assignColorLinkingCurrentView":"Current view assigned to {{name}} context group","aria.assignColorLinkingCurrentViews":"Current views assigned to {{name}} context group","aria.setColorLinkingActiveView":"Set active view to {{name}} context group","aria.setColorLinkingActiveViews":"Set active views to {{name}} context group","aria.escapeLayoutDialog":"Use escape to close change layout dialog","global.supertab":"Supertab","global.tab":"Tab","bookmarks.editBookmark":"Edit Bookmark","bookmarks.bookmarkAdded":"Bookmark added","bookmarks.done":"Done","bookmarks.remove":"Remove","bookmarks.bookmarksPanel":"Bookmarks Panel","bookmarks.bookmarks":"Bookmarks","bookmarks.allBookmarks":"All Bookmarks","bookmarks.favorites":"Favorites","bookmarks.searchBookmarks":"Search Bookmarks","bookmarks.clearSearchInput":"Clear Search Input","bookmarks.createFolder":"Create New Folder","bookmarks.exitFolder":"Exit Folder","bookmarks.newFolder":"New Folder","bookmarks.namedFolder":"{{name}} Folder","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings","bookmarks.folderSettings":"{{name}} Folder Settings","bookmarks.noResultsFound":"No results found","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search","bookmarks.nothingToShow":"Nothing to show yet","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder","bookmarks.resultsFoundIn":"Results found in {{name}}","bookmarks.resultsInOtherFolders":"Results found in other folders","bookmarks.allResultsFoundIn":"All results found in","bookmarks.editName":"Edit Name","bookmarks.move":"Move","bookmarks.bookmarkAddedTitle":"Bookmark Added","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\"","bookmarks.bookmarkEditedTitle":"Bookmark Edited","enterpriseContextMenu.saveSupertab":"Save Supertab","enterpriseContextMenu.saveSupertabAs":"Save Supertab As...","enterpriseContextMenu.duplicate":"Duplicate","enterpriseContextMenu.deleteSupertab":"Delete Supertab","enterpriseContextMenu.newTab":"New Tab","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As","enterpriseSaveModal.renameSupertab":"Rename","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab.","enterpriseSaveModal.closeTab":"Close Tab","enterpriseSaveModal.closeSupertab":"Close Supertab","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing?","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost.","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab?","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent.","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted.","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab","enterpriseCommandBar.switchToSupertab":"Switch to Supertab","enterpriseCommandBar.goTo":"Go to {{type}}","enterpriseCommandBar.viewMore":"View More","sidePanel.aiCenter":"AI Center","sidePanel.newChat":"New Chat","sidePanel.toggleSidePanel":"Toggle Side Panel","sidePanel.closeSidePanel":"Close Side Panel","sidePanel.openAiCenter":"Open AI Center","contextMenu.quitEnterpriseBrowser":"Quit","dock.removeFavorite":"Remove"}'),Ja=JSON.parse('{"contextMenu.newWindow":"Neues Fenster","contextMenu.newPage":"Neue Seite","contextMenu.restore":"Wiederherstellen der zuletzt gespeicherten Änderungen","contextMenu.switchWorkspace":"Workspace wechseln","contextMenu.appearance":"Erscheinungsbild","contextMenu.saveWorkspace":"Workspace speichern","contextMenu.saveWorkspaceAs":"Workspace speichern unter...","contextMenu.renameWorkspace":"Workspace umbenennen","contextMenu.deleteWorkspace":"Workspace löschen","contextMenu.downloads":"Downloads","contextMenu.savePage":"Seite speichern","contextMenu.savePageAs":"Seite speichern unter...","contextMenu.print":"Drucken...","contextMenu.printScreen":"Bildschirmansicht drucken","contextMenu.closeWindow":"Fenster schließen","contextMenu.openStorefront":"Schaufenster öffnen","contextMenu.quitPlatform":"Plattform verlassen","contextMenu.newView":"Neue Ansicht","contextMenu.openView":"Ansicht mit Standard-Webbrowser öffnen","contextMenu.openViews":"Ansichten mit Standard-Webbrowser öffnen","contextMenu.reload":"Reload DE","contextMenu.reloadView":"Ansicht neu laden","contextMenu.reloadViews":"Ansichten neu laden","contextMenu.duplicate":"Duplicate DE","contextMenu.duplicateView":"Ansicht duplizieren","contextMenu.duplicateViews":"Ansichten duplizieren","contextMenu.addView":"Ansicht zum Channel hinzufügen","contextMenu.addViews":"Ansichten zum Channel hinzufügen","contextMenu.removeView":"Ansicht aus dem Channel entfernen","contextMenu.removeViews":"Ansichten aus dem Channel entfernen","contextMenu.closeView":"Ansicht schließen","contextMenu.closeViews":"Ansichten schließen","contextMenu.closeTab":"Close Tab DE","contextMenu.duplicatePage":"Seite duplizieren","contextMenu.submenu.print":"Drucken","contextMenu.submenu.printAll":"Alle drucken","saveMenu.saveWorkspaceAs":"Workspace speichern unter","saveMenu.savePageAs":"Seite speichern unter","saveModal.enterValue":"Please enter a value DE","saveModal.alreadyExists":"{{title}} existiert bereits.","saveModal.pleaseEnterValidName":"Bitte geben Sie einen gültigen Namen ein","saveModal.renamePage":"Seite umbenennen","saveModal.closePage":"Seite schließen","saveModal.discardChanges":"Änderungen verwerfen","saveModal.discardAll":"Alle verwerfen","saveModal.saveAll":"Alle speichern","saveModal.savePagesCount":"({{count}}) Seiten vor dem Schließen speichern?","defaultPageTitle":"Untitled Page DE","enterpriseDefaultPageTitle":"Untitled Supertab DE","addNewPage":"Neue Seite hinzufügen","addNewTab":"Neuen Tab hinzufügen","addNewView":"Neue Ansicht","restoreModal":"Sind Sie sicher, dass Sie die zuletzt gespeicherten Änderungen wiederherstellen wollen?","modal.discardWarning":"Alle nicht gespeicherten Änderungen werden verworfen","modal.discardPageWarning":"Alle nicht gespeicherten Änderungen auf dieser Seite gehen verloren.","modal.saveChangesPrompt":"Änderungen vor dem Schließen speichern?","modal.pageClose":"Seite schließen","switchWorkspaceModal":"Sind Sie sicher, dass Sie zu {{workspace}}wechseln wollen?","switchWorkspaceModal.warning":"Alle nicht gespeicherten Änderungen werden verworfen","deleteWorkspaceModal":"Sind Sie sicher, dass Sie diesen Workspace dauerhaft löschen wollen?","replaceWorkspaceModal.warning":"Ein Workspace mit dem Namen {{workspace}} existiert bereits. Möchten Sie ihn ersetzen?","replaceWorkspaceModal.warning.body":"Ein Workspace mit demselben Namen existiert bereits. Wenn Sie ihn ersetzen, wird der aktuelle Inhalt überschrieben.","replaceWorkspaceModal.replace":"Ersetzen","closePlatform":"Plattform schließen","closePlatform.workspace":"Die {{workspace}} Plattform schließen","closePlatform.warning":"Wenn Sie eine Plattform schließen, werden alle Workspaces, Apps und laufenden Prozesse beendet.","back":"Zurück","forward":"Weiter","reload":"Neu laden","green":"Grün","purple":"Lila","orange":"Orange","red":"Rot","pink":"Pink","yellow":"Gelb","theme.light":"Hell","theme.dark":"Dunkel","theme.system":"Synchronisierung mit OS-Einstellung","toolbar.hideTabs":"Tabs ausblenden","toolbar.showTabs":"Tabs anzeigen","toolbar.lock":"Sperren","toolbar.unlock":"Freischalten","toolbar.colorLinking":"Farbverknüpfung","toolbar.changeLayout":"Layout ändern","toolbar.saveMenu":"Menü speichern","toolbar.maximizeWindow":"Fenster maximieren","toolbar.restoreWindow":"Fenster wiederherstellen","toolbar.minimizeWindow":"Fenster minimieren","changeLayout.fullWidth":"Volle Breite","changeLayout.columns":"Spalten","changeLayout.Rows":"Zeilen","changeLayout.Grid":"Raster","successIndicator.workspaceSwitched":"Workspace gewechselt","successIndicator.hidden":"Tabs sind ausgeblendet","successIndicator.shown":"Tabs werden angezeigt","successIndicator.locked":"Seite ist gesperrt","successIndicator.unlocked":"Seite ist freigeschaltet","successIndicator.workspaceSaved":"Workspace gespeichert","successIndicator.workspaceSavedAs":"Workspace gespeichert als {{workspace}}","successIndicator.workspaceRenamed":"Workspace umbenannt","successIndicator.pageSaved":"Seite gespeichert","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. DE","successIndicator.pageCopySaved":"Seite gespeichert als {{title}}","successIndicator.pageRenamed":"Seite umbenannt","successIndicator.contextGroupApplied":"Angewandte Kontextgruppe","successIndicator.namedContextGroupApplied":"{{colorName}} angewandte Kontextgruppe","successIndicator.viewRemoved":"Ansicht aus der Kontextgruppe entfernt","successIndicator.viewsRemoved":"Ansichten aus der Kontextgruppe entfernt","successIndicator.layoutApplied":"{{layoutName}} angewandtes Layout","successIndicator.workspaceDeleted":"Workspace gelöscht","errorIndicator.pageSaveFailed":"Seite konnte nicht gespeichert werden","errorIndicator.workspaceSaveFailed":"Workspace konnte nicht gespeichert werden","errorIndicator.failedToDuplicatePage":"Seite kann nicht dupliziert werden","infoIndicator.colorLinkAttempt":"Wir haben versucht, diesem Tab eine Farbe zuordnen, aber der Eigentümer der Website/des Inhalts hat sie noch nicht aktiviert","global.cancel":"Abbrechen","global.confirm":"Bestätigen","global.save":"Speichern","global.delete":"Delete DE","appResults.header":"Featured Content DC","recentlyClosed.header":"Recently Closed DC","landingPage.subheader":"Apps and websites selected by an admin will show here DE","aria.openBrowser":"Browser-Menü öffnen","aria.browserTabs":"Browser-Tab","aria.viewTab":"Tab „Ansicht“ für {{title}}","aria.closePage":"Button „Seite schließen“ für {{title}}","aria.closeTab":"Tab schließen {{title}}","aria.title":"Bezeichnung","aria.closeContextGroup":"Verwenden Sie die Escape-Taste, um den Dialog zur Auswahl von Kontextgruppen zu schließen","aria.colorLinking":"Farbverknüpfung ein- oder ausblenden","aria.applyColorLinking":"Bitte wählen Sie eine Ansicht, um die Farbverknüpfung anzuwenden","aria.assignColorLinkingCurrentView":"Aktuelle Ansicht, die der Kontextgruppe {{name}} zugeordnet ist","aria.assignColorLinkingCurrentViews":"Aktuelle Ansichten, die der Kontextgruppe {{name}} zugeordnet sind","aria.setColorLinkingActiveView":"Aktive Ansicht auf die Kontextgruppe {{name}} setzen","aria.setColorLinkingActiveViews":"Aktive Ansichten auf die Kontextgruppe {{name}} setzen","aria.escapeLayoutDialog":"Verwenden Sie die Escape-Taste, um den Dialog zur Layoutänderung zu schließen","global.supertab":"Supertab DE","global.tab":"Tab DE","bookmarks.editBookmark":"Edit Bookmark DE","bookmarks.bookmarkAdded":"Bookmark added DE","bookmarks.done":"Done DE","bookmarks.remove":"Remove DE","bookmarks.bookmarksPanel":"Bookmarks Panel DE","bookmarks.bookmarks":"Bookmarks DE","bookmarks.allBookmarks":"All Bookmarks DE","bookmarks.favorites":"Favorites DE","bookmarks.searchBookmarks":"Search Bookmarks DE","bookmarks.clearSearchInput":"Clear Search Input DE","bookmarks.createFolder":"Create New Folder DE","bookmarks.exitFolder":"Exit Folder DE","bookmarks.newFolder":"New Folder DE","bookmarks.namedFolder":"{{name}} Folder DE","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings DE","bookmarks.folderSettings":"{{name}} Folder Settings DE","bookmarks.noResultsFound":"No results found DE","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search DE","bookmarks.nothingToShow":"Nothing to show yet DE","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder DE","bookmarks.resultsFoundIn":"Results found in {{name}} DE","bookmarks.resultsInOtherFolders":"Results found in other folders DE","bookmarks.allResultsFoundIn":"All results found in DE","bookmarks.editName":"Edit Name DE","bookmarks.move":"Move DE","bookmarks.bookmarkAddedTitle":"Bookmark Added DE","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" DE","bookmarks.bookmarkEditedTitle":"Bookmark Edited DE","enterpriseContextMenu.saveSupertab":"Save Supertab DE","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... DE","enterpriseContextMenu.duplicate":"Duplicate DE","enterpriseContextMenu.deleteSupertab":"Delete Supertab DE","enterpriseContextMenu.newTab":"New Tab DE","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As DE","enterpriseSaveModal.renameSupertab":"Rename DE","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. DE","enterpriseSaveModal.closeTab":"Close Tab DE","enterpriseSaveModal.closeSupertab":"Close Supertab DE","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? DE","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. DE","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? DE","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. DE","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved DE","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. DE","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted DE","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. DE","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab DE","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab DE","enterpriseCommandBar.switchToSupertab":"Switch to Supertab DE","enterpriseCommandBar.goTo":"Go to {{type}} DE","enterpriseCommandBar.viewMore":"View More DE","sidePanel.aiCenter":"AI Center DE","sidePanel.newChat":"New Chat DE","sidePanel.toggleSidePanel":"Toggle Side Panel DE","sidePanel.closeSidePanel":"Close Side Panel DE","sidePanel.openAiCenter":"Open AI Center DE","contextMenu.quitEnterpriseBrowser":"Quit DE","dock.removeFavorite":"Remove DE"}'),Za=JSON.parse('{"contextMenu.newWindow":"新しいウィンドウ","contextMenu.newPage":"新しいページ","contextMenu.restore":"最後に保存された変更に戻す","contextMenu.switchWorkspace":"ワークスペースに切り替える","contextMenu.appearance":"外観","contextMenu.saveWorkspace":"ワークスペースを保存","contextMenu.saveWorkspaceAs":"ワークスペースを別名で保存...","contextMenu.renameWorkspace":"ワークスペース名を変更","contextMenu.deleteWorkspace":"ワークスペースを削除","contextMenu.downloads":"ダウンロード","contextMenu.savePage":"ページを保存","contextMenu.savePageAs":"ページを別名で保存...","contextMenu.print":"印刷...","contextMenu.printScreen":"プリントスクリーン","contextMenu.closeWindow":"ウィンドウを閉じる","contextMenu.openStorefront":"ストアフロントを開く","contextMenu.quitPlatform":"プラットフォームを終了する","contextMenu.newView":"新しいビュー","contextMenu.openView":"デフォルトのウェブブラウザーでビューを開く","contextMenu.openViews":"デフォルトのウェブブラウザーでビューを開く","contextMenu.reload":"Reload JP","contextMenu.reloadView":"ビューをリロード","contextMenu.reloadViews":"ビューをリロード","contextMenu.duplicate":"Duplicate JP","contextMenu.duplicateView":"ビューを複製","contextMenu.duplicateViews":"ビューを複製","contextMenu.addView":"ビューをチャネルに追加","contextMenu.addViews":"ビューをチャネルに追加","contextMenu.removeView":"チャネルからビューを削除","contextMenu.removeViews":"チャネルからビューを削除","contextMenu.closeView":"ビューを閉じる","contextMenu.closeViews":"ビューを閉じる","contextMenu.closeTab":"Close Tab JP","contextMenu.duplicatePage":"ページを複製","contextMenu.submenu.print":"印刷","contextMenu.submenu.printAll":"すべてを印刷","saveMenu.saveWorkspaceAs":"ワークスペースを別名で保存","saveMenu.savePageAs":"ページを別名で保存","saveModal.enterValue":"Please enter a value JP","saveModal.alreadyExists":"{{title}}はすでに存在しています。","saveModal.pleaseEnterValidName":"有効な名前を入力してください","saveModal.renamePage":"ページ名を変更","saveModal.closePage":"ページを閉じる","saveModal.discardChanges":"変更を破棄","saveModal.discardAll":"すべて破棄","saveModal.saveAll":"すべて保存","saveModal.savePagesCount":"閉じる前に({{count}})つのページを保存しますか?","defaultPageTitle":"Untitled Page JP","enterpriseDefaultPageTitle":"Untitled Supertab JP","addNewPage":"新しいページを追加","addNewTab":"新しいタブを追加","addNewView":"新しいビュー","restoreModal":"本当に最後に保存された変更に戻しますか?","modal.discardWarning":"保存されていない変更は破棄されます","modal.discardPageWarning":"保存されていないこのページへの変更は失われます。","modal.saveChangesPrompt":"閉じる前に変更を保存しますか?","modal.pageClose":"ページを閉じる","switchWorkspaceModal":"本当に{{workspace}}に切り替えますか?","switchWorkspaceModal.warning":"保存されていない変更は破棄されます","deleteWorkspaceModal":"このワークスペースを永久に削除してもよろしいですか?","replaceWorkspaceModal.warning":"{{workspace}}という名前のワークスペースがすでに存在します。置き換えますか?","replaceWorkspaceModal.warning.body":"同じ名前のワークスペースがすでに存在します。置き換えると、現在の内容は上書きされます。","replaceWorkspaceModal.replace":"置き換える","closePlatform":"プラットフォームを閉じる","closePlatform.workspace":"{{workspace}}プラットフォームを閉じる","closePlatform.warning":"プラットフォームを閉じると、実行中のワークスペース、アプリ、プロセスがすべて閉じます。","back":"戻る","forward":"進む","reload":"リロード","green":"グリーン","purple":"パープル","orange":"オレンジ","red":"レッド","pink":"ピンク","yellow":"イエロー","theme.light":"ライト","theme.dark":"ダーク","theme.system":"OSの設定と同期","toolbar.hideTabs":"タブを非表示","toolbar.showTabs":"タブを表示","toolbar.lock":"ロック","toolbar.unlock":"ロック解除","toolbar.colorLinking":"カラーリンク","toolbar.changeLayout":"レイアウトを変更","toolbar.saveMenu":"メニューを保存","toolbar.maximizeWindow":"ウィンドウを最大化する","toolbar.restoreWindow":"ウィンドウを復元","toolbar.minimizeWindow":"ウィンドウを最小化する","changeLayout.fullWidth":"全幅","changeLayout.columns":"列","changeLayout.Rows":"行","changeLayout.Grid":"グリッド","successIndicator.workspaceSwitched":"ワークスペースが切り替わりました","successIndicator.hidden":"タブが非表示になっています","successIndicator.shown":"タブが表示されています","successIndicator.locked":"ページがロックされています","successIndicator.unlocked":"ページのロックが解除されています","successIndicator.workspaceSaved":"ワークスペースが保存されました","successIndicator.workspaceSavedAs":"ワークスペースが{{workspace}}として保存されました","successIndicator.workspaceRenamed":"ワークスペース名が変更されました","successIndicator.pageSaved":"ページが保存されました","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. JP","successIndicator.pageCopySaved":"ページが{{title}}として保存されました","successIndicator.pageRenamed":"ページ名が変更されました","successIndicator.contextGroupApplied":"コンテキストグループが適用されました","successIndicator.namedContextGroupApplied":"{{colorName}}コンテキストグループが適用されました","successIndicator.viewRemoved":"コンテキストグループからビューが削除されました","successIndicator.viewsRemoved":"コンテキストグループからビューが削除されました","successIndicator.layoutApplied":"{{layoutName}}レイアウトが適用されました","successIndicator.workspaceDeleted":"ワークスペースが削除されました","errorIndicator.pageSaveFailed":"ページを保存できませんでした","errorIndicator.workspaceSaveFailed":"ワークスペースを保存できませんでした","errorIndicator.failedToDuplicatePage":"ページを複製できませんでした","infoIndicator.colorLinkAttempt":"このタブをカラーリンクしようとしましたが、サイト/コンテンツのオーナーがまだこれを有効にしていません","global.cancel":"キャンセル","global.confirm":"確認","global.save":"保存","global.delete":"Delete JP","appResults.header":"Featured content JP","recentlyClosed.header":"Recently Closed JP","landingPage.subheader":"Apps and websites selected by an admin will show here JP","aria.openBrowser":"ブラウザーメニューを開く","aria.browserTabs":"ブラウザータブ","aria.viewTab":"{{title}}のタブを表示","aria.closePage":"{{title}}のページタブボタンを閉じる","aria.closeTab":"{{title}}タブを閉じる","aria.title":"タイトル","aria.closeContextGroup":"エスケープを使用して、コンテキストグループ選択ダイアログを閉じる","aria.colorLinking":"カラーリンクの表示/非表示","aria.applyColorLinking":"カラーリンクを適用するビューを選択してください","aria.assignColorLinkingCurrentView":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.assignColorLinkingCurrentViews":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.setColorLinkingActiveView":"アクティブビューを{{name}}コンテキストグループに設定","aria.setColorLinkingActiveViews":"アクティブビューを{{name}}コンテキストグループに設定","aria.escapeLayoutDialog":"エスケープを使用して、レイアウト変更選択ダイアログを閉じる","global.supertab":"Supertab JP","global.tab":"Tab JP","bookmarks.editBookmark":"Edit Bookmark JP","bookmarks.bookmarkAdded":"Bookmark added JP","bookmarks.done":"Done JP","bookmarks.remove":"Remove JP","bookmarks.bookmarksPanel":"Bookmarks Panel JP","bookmarks.bookmarks":"Bookmarks JP","bookmarks.allBookmarks":"All Bookmarks JP","bookmarks.favorites":"Favorites JP","bookmarks.searchBookmarks":"Search Bookmarks JP","bookmarks.clearSearchInput":"Clear Search Input JP","bookmarks.createFolder":"Create New Folder JP","bookmarks.exitFolder":"Exit Folder JP","bookmarks.newFolder":"New Folder JP","bookmarks.namedFolder":"{{name}} Folder JP","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings JP","bookmarks.folderSettings":"{{name}} Folder Settings JP","bookmarks.noResultsFound":"No results found JP","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search JP","bookmarks.nothingToShow":"Nothing to show yet JP","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder JP","bookmarks.resultsFoundIn":"Results found in {{name}} JP","bookmarks.resultsInOtherFolders":"Results found in other folders JP","bookmarks.allResultsFoundIn":"All results found in JP","bookmarks.editName":"Edit Name JP","bookmarks.move":"Move JP","bookmarks.bookmarkAddedTitle":"Bookmark Added JP","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" JP","bookmarks.bookmarkEditedTitle":"Bookmark Edited JP","enterpriseContextMenu.saveSupertab":"Save Supertab JP","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... JP","enterpriseContextMenu.duplicate":"Duplicate JP","enterpriseContextMenu.deleteSupertab":"Delete Supertab JP","enterpriseContextMenu.newTab":"New Tab JP","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As JP","enterpriseSaveModal.renameSupertab":"Rename JP","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. JP","enterpriseSaveModal.closeTab":"Close Tab JP","enterpriseSaveModal.closeSupertab":"Close Supertab JP","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? JP","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. JP","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? JP","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. JP","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved JP","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. JP","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted JP","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. JP","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab JP","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab JP","enterpriseCommandBar.switchToSupertab":"Switch to Supertab JP","enterpriseCommandBar.goTo":"Go to {{type}} JP","enterpriseCommandBar.viewMore":"View More JP","sidePanel.aiCenter":"AI Center JP","sidePanel.newChat":"New Chat JP","sidePanel.toggleSidePanel":"Toggle Side Panel JP","sidePanel.closeSidePanel":"Close Side Panel JP","sidePanel.openAiCenter":"Open AI Center JP","contextMenu.quitEnterpriseBrowser":"Quit JP","dock.removeFavorite":"Remove JP"}'),qa=JSON.parse('{"contextMenu.newWindow":"새 창","contextMenu.newPage":"새 페이지","contextMenu.restore":"마지막으로 저장한 변경 사항으로 복원","contextMenu.switchWorkspace":"작업 공간 전환","contextMenu.appearance":"모양","contextMenu.saveWorkspace":"작업 공간 저장","contextMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장...","contextMenu.renameWorkspace":"작업 공간 이름 바꾸기","contextMenu.deleteWorkspace":"작업 공간 삭제","contextMenu.downloads":"다운로드","contextMenu.savePage":"페이지 저장","contextMenu.savePageAs":"다른 이름으로 페이지 저장...","contextMenu.print":"인쇄...","contextMenu.printScreen":"화면 인쇄","contextMenu.closeWindow":"창 닫기","contextMenu.openStorefront":"매장 열기","contextMenu.quitPlatform":"플랫폼 종료","contextMenu.newView":"새 뷰","contextMenu.openView":"기본 웹 브라우저로 뷰 열기","contextMenu.openViews":"기본 웹 브라우저로 뷰 열기","contextMenu.reload":"Reload KR","contextMenu.reloadView":"뷰 다시 로드","contextMenu.reloadViews":"뷰 다시 로드","contextMenu.duplicate":"Duplicate KR","contextMenu.duplicateView":"뷰 복제","contextMenu.duplicateViews":"뷰 복제","contextMenu.addView":"채널에 뷰 추가","contextMenu.addViews":"채널에 뷰 추가","contextMenu.removeView":"채널에서 뷰 제거","contextMenu.removeViews":"채널에서 뷰 제거","contextMenu.closeView":"뷰 닫기","contextMenu.closeViews":"뷰 닫기","contextMenu.closeTab":"Close Tab KR","contextMenu.duplicatePage":"페이지 복제","contextMenu.submenu.print":"인쇄","contextMenu.submenu.printAll":"모두 인쇄","saveMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장","saveMenu.savePageAs":"다른 이름으로 페이지 저장","saveModal.enterValue":"Please enter a value KR","saveModal.alreadyExists":"{{title}}이(가) 이미 존재합니다.","saveModal.pleaseEnterValidName":"유효한 이름을 입력하십시오.","saveModal.renamePage":"페이지 이름 바꾸기","saveModal.closePage":"페이지 닫기","saveModal.discardChanges":"변경 사항 폐기","saveModal.discardAll":"모두 폐기","saveModal.saveAll":"모두 저장","saveModal.savePagesCount":"닫기 전에 페이지({{count}}개)를 저장하시겠습니까?","defaultPageTitle":"Untitled Page KR","enterpriseDefaultPageTitle":"Untitled Supertab KR","addNewPage":"새 페이지 추가","addNewTab":"새 탭 추가","addNewView":"새 뷰","restoreModal":"마지막으로 저장한 변경 사항으로 복원하시겠습니까?","modal.discardWarning":"저장하지 않은 변경 사항은 모두 폐기됩니다","modal.discardPageWarning":"이 페이지의 저장하지 않은 변경 사항은 모두 손실됩니다.","modal.saveChangesPrompt":"닫기 전에 변경 사항을 저장하시겠습니까?","modal.pageClose":"페이지 닫기","switchWorkspaceModal":"{{workspace}}(으)로 전환하시겠습니까?","switchWorkspaceModal.warning":"저장하지 않은 변경 사항은 모두 폐기됩니다","deleteWorkspaceModal":"이 작업 공간을 영구적으로 삭제하시겠습니까?","replaceWorkspaceModal.warning":"{{workspace}}(이)라는 이름의 작업 공간이 이미 존재합니다. 교체하시겠습니까?","replaceWorkspaceModal.warning.body":"같은 이름의 작업 공간이 이미 존재합니다. 교체하면 현재 내용을 덮어쓰게 됩니다.","replaceWorkspaceModal.replace":"교체","closePlatform":"플랫폼 닫기","closePlatform.workspace":"{{workspace}} 플랫폼 닫기","closePlatform.warning":"플랫폼을 닫으면 실행 중인 모든 작업 공간, 앱 또는 프로세스가 닫힙니다.","back":"뒤로 가기","forward":"앞으로 가기","reload":"새로고침","green":"녹색","purple":"보라색","orange":"오렌지색","red":"빨간색","pink":"핑크색","yellow":"노란색","theme.light":"밝은","theme.dark":"어두운","theme.system":"OS 설정과 동기화","toolbar.hideTabs":"탭 숨기기","toolbar.showTabs":"탭 표시","toolbar.lock":"잠금","toolbar.unlock":"잠금 해제","toolbar.colorLinking":"색상 연결","toolbar.changeLayout":"레이아웃 변경","toolbar.saveMenu":"저장 메뉴","toolbar.maximizeWindow":"창 최대화","toolbar.restoreWindow":"창 복원","toolbar.minimizeWindow":"창 최소화","changeLayout.fullWidth":"전체 너비","changeLayout.columns":"열","changeLayout.Rows":"행","changeLayout.Grid":"그리드","successIndicator.workspaceSwitched":"작업 공간 전환","successIndicator.hidden":"탭 숨김","successIndicator.shown":"탭 표시","successIndicator.locked":"페이지 잠금","successIndicator.unlocked":"페이지 잠금 해제됨","successIndicator.workspaceSaved":"작업 공간 저장됨","successIndicator.workspaceSavedAs":"작업 공간이 {{workspace}}(으)로 저장됨","successIndicator.workspaceRenamed":"작업 공간 이름 변경됨","successIndicator.pageSaved":"페이지 저장됨","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. KR","successIndicator.pageCopySaved":"페이지가 {{title}}(으)로 저장됨","successIndicator.pageRenamed":"페이지 이름 변경됨","successIndicator.contextGroupApplied":"컨텍스트 그룹 적용됨","successIndicator.namedContextGroupApplied":"{{colorName}} 컨텍스트 그룹 적용됨","successIndicator.viewRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.viewsRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.layoutApplied":"{{layoutName}} 레이아웃 적용됨","successIndicator.workspaceDeleted":"작업 공간 삭제됨","errorIndicator.pageSaveFailed":"페이지 저장 실패","errorIndicator.workspaceSaveFailed":"작업 공간 저장 실패","errorIndicator.failedToDuplicatePage":"페이지 복제 실패","infoIndicator.colorLinkAttempt":"이 탭의 색상 링크를 시도했지만 사이트/콘텐츠 소유자가 아직 활성화하지 않았습니다.","global.cancel":"취소","global.confirm":"확인","global.save":"저장","global.delete":"Delete KR","appResults.header":"Featured Content KR","recentlyClosed.header":"Recently Closed KR","landingPage.subheader":"Apps and websites selected by an admin will show here KR","aria.openBrowser":"브라우저 메뉴 열기","aria.browserTabs":"브라우저 탭","aria.viewTab":"{{title}}의 뷰 탭","aria.closePage":"{{title}}의 페이지 닫기 탭","aria.closeTab":"탭 {{title}} 닫기","aria.title":"제목","aria.closeContextGroup":"이스케이프를 사용하여 컨텍스트 그룹 선택 대화상자 닫기","aria.colorLinking":"색상 연결 표시 또는 숨기기","aria.applyColorLinking":"색상 연결을 적용하려면 뷰를 선택하십시오.","aria.assignColorLinkingCurrentView":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.assignColorLinkingCurrentViews":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.setColorLinkingActiveView":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.setColorLinkingActiveViews":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.escapeLayoutDialog":"이스케이프를 사용하여 레이아웃 변경 대화상자 닫기","global.supertab":"Supertab KR","global.tab":"Tab KR","bookmarks.editBookmark":"Edit Bookmark KR","bookmarks.bookmarkAdded":"Bookmark added KR","bookmarks.done":"Done KR","bookmarks.remove":"Remove KR","bookmarks.bookmarksPanel":"Bookmarks Panel KR","bookmarks.bookmarks":"Bookmarks KR","bookmarks.allBookmarks":"All Bookmarks KR","bookmarks.favorites":"Favorites KR","bookmarks.searchBookmarks":"Search Bookmarks KR","bookmarks.clearSearchInput":"Clear Search Input KR","bookmarks.createFolder":"Create New Folder KR","bookmarks.exitFolder":"Exit Folder KR","bookmarks.newFolder":"New Folder KR","bookmarks.namedFolder":"{{name}} Folder KR","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings KR","bookmarks.folderSettings":"{{name}} Folder Settings KR","bookmarks.noResultsFound":"No results found KR","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search KR","bookmarks.nothingToShow":"Nothing to show yet KR","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder KR","bookmarks.resultsFoundIn":"Results found in {{name}} KR","bookmarks.resultsInOtherFolders":"Results found in other folders KR","bookmarks.allResultsFoundIn":"All results found in KR","bookmarks.editName":"Edit Name KR","bookmarks.move":"Move KR","bookmarks.bookmarkAddedTitle":"Bookmark Added KR","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" KR","bookmarks.bookmarkEditedTitle":"Bookmark Edited KR","enterpriseContextMenu.saveSupertab":"Save Supertab KR","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... KR","enterpriseContextMenu.duplicate":"Duplicate KR","enterpriseContextMenu.deleteSupertab":"Delete Supertab KR","enterpriseContextMenu.newTab":"New Tab KR","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As KR","enterpriseSaveModal.renameSupertab":"Rename KR","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. KR","enterpriseSaveModal.closeTab":"Close Tab KR","enterpriseSaveModal.closeSupertab":"Close Supertab KR","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? KR","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. KR","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? KR","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. KR","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved KR","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. KR","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted KR","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. KR","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab KR","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab KR","enterpriseCommandBar.switchToSupertab":"Switch to Supertab KR","enterpriseCommandBar.goTo":"Go to {{type}} KR","enterpriseCommandBar.viewMore":"View More KR","sidePanel.aiCenter":"AI Center KR","sidePanel.newChat":"New Chat KR","sidePanel.toggleSidePanel":"Toggle Side Panel KR","sidePanel.closeSidePanel":"Close Side Panel KR","sidePanel.openAiCenter":"Open AI Center KR","contextMenu.quitEnterpriseBrowser":"Quit KR","dock.removeFavorite":"Remove KR"}'),ja=JSON.parse('{"contextMenu.newWindow":"Новое окно","contextMenu.newPage":"Новая страница","contextMenu.restore":"Восстановить последние сохраненные изменения","contextMenu.switchWorkspace":"Переключить рабочую область","contextMenu.appearance":"Внешний вид","contextMenu.saveWorkspace":"Сохранить рабочую область","contextMenu.saveWorkspaceAs":"Сохранить рабочую область как...","contextMenu.renameWorkspace":"Переименовать рабочую область","contextMenu.deleteWorkspace":"Удалить рабочую область","contextMenu.downloads":"Загрузки","contextMenu.savePage":"Сохранить страницу","contextMenu.savePageAs":"Сохранить страницу как...","contextMenu.print":"Печать...","contextMenu.printScreen":"Распечатать экран","contextMenu.closeWindow":"Закрыть окно","contextMenu.openStorefront":"Открыть Storefront","contextMenu.quitPlatform":"Выйти из платформы","contextMenu.newView":"Новое представление","contextMenu.openView":"Открыть представление с помощью веб-браузера по умолчанию","contextMenu.openViews":"Открыть представления с помощью веб-браузера по умолчанию","contextMenu.reload":"Reload RU","contextMenu.reloadView":"Перезагрузить представление","contextMenu.reloadViews":"Перезагрузить представления","contextMenu.duplicate":"Duplicate RU","contextMenu.duplicateView":"Дублировать представление","contextMenu.duplicateViews":"Дублировать представления","contextMenu.addView":"Добавить представление на канал","contextMenu.addViews":"Добавить представления на канал","contextMenu.removeView":"Удалить представление из канала","contextMenu.removeViews":"Удалить представления из канала","contextMenu.closeView":"Закрыть представление","contextMenu.closeViews":"Закрыть представления","contextMenu.closeTab":"Close Tab RU","contextMenu.duplicatePage":"Дублировать страницу","contextMenu.submenu.print":"Печатать","contextMenu.submenu.printAll":"Печатать все","saveMenu.saveWorkspaceAs":"Сохранить рабочую область как","saveMenu.savePageAs":"Сохранить страницу как","saveModal.enterValue":"Please enter a value RU","saveModal.alreadyExists":"{{title}} уже существует.","saveModal.pleaseEnterValidName":"Введите подходящее имя","saveModal.renamePage":"Переименовать страницу","saveModal.closePage":"Закрыть страницу","saveModal.discardChanges":"Отменить изменения","saveModal.discardAll":"Отменить все","saveModal.saveAll":"Сохранить все","saveModal.savePagesCount":"Сохранить ({{count}}) страниц перед закрытием?","defaultPageTitle":"Untitled Page RU","enterpriseDefaultPageTitle":"Untitled Supertab RU","addNewPage":"Добавить новую страницу","addNewTab":"Добавить новую вкладку","addNewView":"Новое представление","restoreModal":"Вы уверены, что хотите восстановить последние сохраненные изменения?","modal.discardWarning":"Все несохраненные изменения будут отменены","modal.discardPageWarning":"Все несохраненные изменения на этой странице будут потеряны.","modal.saveChangesPrompt":"Сохранить изменения перед закрытием?","modal.pageClose":"Закрыть страницу","switchWorkspaceModal":"Вы уверены, что хотите перейти в {{workspace}}?","switchWorkspaceModal.warning":"Все несохраненные изменения будут отменены","deleteWorkspaceModal":"Вы уверены, что хотите навсегда удалить эту рабочую область?","replaceWorkspaceModal.warning":"Рабочая область с именем {{workspace}} уже существует. Вы хотите заменить ее?","replaceWorkspaceModal.warning.body":"Рабочая область с таким же именем уже существует. При ее замене текущее содержимое будет перезаписано.","replaceWorkspaceModal.replace":"Заменить","closePlatform":"Закрыть платформу","closePlatform.workspace":"Закрыть платформу {{workspace}}","closePlatform.warning":"Закрытие платформы приведет к закрытию всех рабочих областей, приложений и запущенных процессов.","back":"Назад","forward":"Вперед","reload":"Перезагрузить ","green":"Зеленый","purple":"Фиолетовый","orange":"Оранжевый","red":"Красный","pink":"Розовый","yellow":"Желтый","theme.light":"Светлый","theme.dark":"Темный","theme.system":"Синхронизировать с настройками ОС","toolbar.hideTabs":"Скрыть вкладки","toolbar.showTabs":"Показать вкладки","toolbar.lock":"Заблокировать","toolbar.unlock":"Разблокировать","toolbar.colorLinking":"Привязка к цвету","toolbar.changeLayout":"Изменить макет","toolbar.saveMenu":"Меню сохранения","toolbar.maximizeWindow":"Увеличить окно","toolbar.restoreWindow":"Восстановить окно","toolbar.minimizeWindow":"Свернуть окно","changeLayout.fullWidth":"Полная ширина","changeLayout.columns":"Столбцы","changeLayout.Rows":"Строки","changeLayout.Grid":"Сетка","successIndicator.workspaceSwitched":"Рабочая область переключена","successIndicator.hidden":"Вкладки скрыты","successIndicator.shown":"Вкладки показаны","successIndicator.locked":"Страница заблокирована","successIndicator.unlocked":"Страница разблокирована","successIndicator.workspaceSaved":"Рабочая область сохранена","successIndicator.workspaceSavedAs":"Рабочая область сохранена как {{workspace}}","successIndicator.workspaceRenamed":"Рабочая область переименована","successIndicator.pageSaved":"Страница сохранена","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. RU","successIndicator.pageCopySaved":"Страница сохранена как {{title}}","successIndicator.pageRenamed":"Страница переименована","successIndicator.contextGroupApplied":"Контекстная группа применена","successIndicator.namedContextGroupApplied":"Контекстная группа {{colorName}} применена","successIndicator.viewRemoved":"Представление удалено из контекстной группы","successIndicator.viewsRemoved":"Представления удалены из контекстной группы","successIndicator.layoutApplied":"Макет {{layoutName}} применен","successIndicator.workspaceDeleted":"Рабочая область удалена","errorIndicator.pageSaveFailed":"Не удалось сохранить страницу","errorIndicator.workspaceSaveFailed":"Не удалось сохранить рабочую область","errorIndicator.failedToDuplicatePage":"Не удалось продублировать страницу","infoIndicator.colorLinkAttempt":"Мы попытались привязать цвет к этой вкладке, но владелец сайта/контента еще не включил эту возможность","global.cancel":"Отменить","global.confirm":"Подтвердить","global.save":"Сохранить","global.delete":"Delete RU","appResults.header":"Featured Content RU","recentlyClosed.header":"Recently Closed RU","landingPage.subheader":"Apps and websites selected by an admin will show here RU","aria.openBrowser":"Открыть меню браузера","aria.browserTabs":"Вкладки браузера","aria.viewTab":"Вкладка представления {{title}}","aria.closePage":"Кнопка «Закрыть» на вкладке для страницы {{title}}","aria.closeTab":"Закрыть вкладку {{title}}","aria.title":"Название","aria.closeContextGroup":"Чтобы закрыть диалог выбора контекстной группы, используйте escape","aria.colorLinking":"Показать или скрыть привязку к цвету","aria.applyColorLinking":"Выберите представление, чтобы применить привязку к цвету","aria.assignColorLinkingCurrentView":"Текущее представление, назначенное контекстной группе {{name}}","aria.assignColorLinkingCurrentViews":"Текущие представления, назначенные контекстной группе {{name}}","aria.setColorLinkingActiveView":"Установить активное представление в контекстную группу {{name}}","aria.setColorLinkingActiveViews":"Установить активные представления в контекстную группу {{name}}","aria.escapeLayoutDialog":"Чтобы закрыть диалог изменения макета, используйте escape","global.supertab":"Supertab RU","global.tab":"Tab RU","bookmarks.editBookmark":"Edit Bookmark RU","bookmarks.bookmarkAdded":"Bookmark added RU","bookmarks.done":"Done RU","bookmarks.remove":"Remove RU","bookmarks.bookmarksPanel":"Bookmarks Panel RU","bookmarks.bookmarks":"Bookmarks RU","bookmarks.allBookmarks":"All Bookmarks RU","bookmarks.favorites":"Favorites RU","bookmarks.searchBookmarks":"Search Bookmarks RU","bookmarks.clearSearchInput":"Clear Search Input RU","bookmarks.createFolder":"Create New Folder RU","bookmarks.exitFolder":"Exit Folder RU","bookmarks.newFolder":"New Folder RU","bookmarks.namedFolder":"{{name}} Folder RU","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings RU","bookmarks.folderSettings":"{{name}} Folder Settings RU","bookmarks.noResultsFound":"No results found RU","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search RU","bookmarks.nothingToShow":"Nothing to show yet RU","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder RU","bookmarks.resultsFoundIn":"Results found in {{name}} RU","bookmarks.resultsInOtherFolders":"Results found in other folders RU","bookmarks.allResultsFoundIn":"All results found in RU","bookmarks.editName":"Edit Name RU","bookmarks.move":"Move RU","bookmarks.bookmarkAddedTitle":"Bookmark Added RU","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" RU","bookmarks.bookmarkEditedTitle":"Bookmark Edited RU","enterpriseContextMenu.saveSupertab":"Save Supertab RU","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... RU","enterpriseContextMenu.duplicate":"Duplicate RU","enterpriseContextMenu.deleteSupertab":"Delete Supertab RU","enterpriseContextMenu.newTab":"New Tab RU","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As RU","enterpriseSaveModal.renameSupertab":"Rename RU","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. RU","enterpriseSaveModal.closeTab":"Close Tab RU","enterpriseSaveModal.closeSupertab":"Close Supertab RU","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? RU","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. RU","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? RU","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. RU","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved RU","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.RU","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted RU","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. RU","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab RU","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab RU","enterpriseCommandBar.switchToSupertab":"Switch to Supertab RU","enterpriseCommandBar.goTo":"Go to {{type}} RU","enterpriseCommandBar.viewMore":"View More RU","sidePanel.aiCenter":"AI Center RU","sidePanel.newChat":"New Chat RU","sidePanel.toggleSidePanel":"Toggle Side Panel RU","sidePanel.closeSidePanel":"Close Side Panel RU","sidePanel.openAiCenter":"Open AI Center RU","contextMenu.quitEnterpriseBrowser":"Quit RU","dock.removeFavorite":"Remove RU"}');const Qa=Ha().t,Ya=async e=>{const t=await ea(e);return await t.dispatch(sa.GetPages)},Xa=async e=>(await ea(e.identity)).dispatch(sa.UpdatePageForWindow,e);let en,tn=!1;const an=()=>tn,nn=()=>en||{enabled:!1};async function on(e,t){const a=!!t;let n=new Set;if(a){const{identity:e,pageId:a}=t,o=Aa().Browser.wrapSync(e),r=await o.getPage(a);r?.panels&&(n=new Set(r.panels.map(({viewOptions:e})=>e.name)))}return e.map(e=>{const t=e.viewOptions.name,o=t?.startsWith(Ta);o&&(!a||a&&!n.has(t))&&delete e.viewOptions.name;const r=(i=e.viewOptions,i.name||=`${Ta}${Lt()}`,i);var i;return{...e,viewOptions:{...r,uuid:we.uuid}}})}async function rn(e){for(const t of e)t.panels&&await cn(t.panels)}const sn=e=>null!==e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&/ERR_([A-Z]+_*)+/.test(e.message);async function cn(e){const t=e.map(e=>fin.Platform.getCurrentSync().createView(e.viewOptions,fin.me.identity).catch(e=>{if(!sn(e))throw e;console.error(e)}));return await Promise.all(t)}const ln=(e,t)=>!t.find(t=>t===e),dn=(e,t)=>`${e} (${t})`,un=(e,t)=>{if(ln(e,t))return e;let a=1;const n=e.replace(/ *\(\d+\)$/,"");for(;!ln(dn(n,a),t);)a+=1;return dn(n,a)},pn=async()=>{const e=await be();return(await Promise.all(e.map(async e=>{try{return Ya(e.identity)}catch(t){JSON.stringify(e.identity);const a=await e.getOptions();return a.workspacePlatform?.pages||[]}}))).reduce((e,t)=>e.concat(t),[])},wn=async()=>(await bt(we)).dispatch(ht.GetSavedPages,void 0),gn=async e=>(await bt(we)).dispatch(ht.GetSavedPage,e),hn=async(e,t)=>{const a=await(async e=>(await pn()).find(t=>t.pageId===e))(e);return!a||a.title===t.title&&e===t.pageId||await Xa({identity:a.parentIdentity,pageId:e,page:{pageId:t.pageId,title:t.title}}),a},mn=async({page:e})=>{await hn(e.pageId,e),await(async e=>(await bt(we)).dispatch(ht.CreateSavedPage,e))({page:e})},kn=async e=>{await gn(e)&&await(async e=>(await bt(we)).dispatch(ht.DeleteSavedPage,e))(e)},bn=async({pageId:e,page:t})=>{await hn(e,t);return await(async e=>(await bt(we)).dispatch(ht.UpdateSavedPage,e))({pageId:e,page:t})},yn=async e=>await gn(e.pageId)?bn({pageId:e.pageId,page:e}):mn({page:e}),fn=async e=>{await(async e=>(await ea(e.identity)).dispatch(sa.AttachPagesToWindow,e))(e)},Sn=async e=>{const t={...e.page,panels:e.page.panels&&await on(e.page.panels,e)};t.panels&&await cn(t.panels),await Xa({...e,page:t})},vn=async e=>{await(async e=>(await ea(e.identity)).dispatch(sa.DetachPagesFromWindow,e))(e)},Pn=async e=>{await(async e=>(await ea(e.identity)).dispatch(sa.SetActivePageForWindow,e))(e)},Cn=e=>Ya(e),Mn=async({identity:e,pageId:t})=>(await Cn(e)).find(e=>e.pageId===t),xn=async e=>{await(async e=>(await ea(e.identity)).dispatch(sa.ReorderPagesForWindow,e))(e)},In=new class{constructor(){this.queue=[],this.locked=!1}lock(){return new Promise(e=>{this.locked?this.queue.push(e):(this.locked=!0,e())})}unlock(){if(this.queue.length>0){const e=this.queue.shift();e&&e()}else this.locked=!1}};async function An(e){await In.lock();try{const t=an()?Qa("enterpriseDefaultPageTitle"):Qa("defaultPageTitle"),a=e??t,[n,o]=await Promise.all([wn(),pn()]),r=[...n,...o].map(({title:e})=>e);return un(a,r)}finally{In.unlock()}}async function Wn({page:e}){return{shouldShowModal:!(!e||!e.hasUnsavedChanges)}}async function Dn({page:e,identity:t}){const a=fin.Application.getCurrentSync();if((await a.getInfo()).initialOptions.enableBeforeUnload){const a=await fin.Application.getCurrentSync().getViews(),n=Na(e.layout.content).filter(e=>e.name&&a.some(t=>t.identity.name===e.name)).map(e=>fin.View.wrapSync({name:e.name,uuid:t.uuid})),o=await this.checkViewsForPreventUnload(n);if(o.viewsPreventingUnload.length>0){if((await this.getUserDecisionForBeforeUnload({...o,windowId:t,windowShouldClose:!1,closeType:"page"})).viewsToClose.length!==n.length)return e.pageId,{shouldPageClose:!1}}}return{shouldPageClose:!0}}async function Tn({pages:e,identity:t}){const a=await Promise.all(e.map(e=>this.shouldPageClose({page:e,closeType:"window",identity:t}))),{pagesPreventingClose:n,pagesNotPreventingClose:o}=e.reduce((e,t,n)=>!a[n].shouldPageClose?{pagesNotPreventingClose:e.pagesNotPreventingClose,pagesPreventingClose:[...e.pagesPreventingClose,t]}:{pagesPreventingClose:e.pagesPreventingClose,pagesNotPreventingClose:[...e.pagesNotPreventingClose,t]},{pagesPreventingClose:[],pagesNotPreventingClose:[]});return this.handlePagesAndWindowClose({pagesNotPreventingClose:o,pagesPreventingClose:n,identity:t})}async function Bn({pagesPreventingClose:e,pagesNotPreventingClose:t,identity:a}){return{shouldWindowClose:0===e.length}}async function Rn({page:e}){return Jt(e)}async function En(e){return{hasUnsavedChanges:!0}}const Fn=async()=>{const e=Aa(),t=(await be()).map(t=>e.Browser.wrapSync(t.identity));await Promise.all(t.map(async e=>{const t=await e.getPages();await Promise.all(t.map(async t=>{t.title,await e.updatePage({pageId:t.pageId,page:{hasUnsavedChanges:!1}}),t.pageId,t.title,await yn({...t,hasUnsavedChanges:!1})}))}))},Vn=new Map,Nn=()=>Vn,Ln=e=>Vn.delete(e);let _n=!1;const On=()=>{_n||(_n=!0,fin.Window.wrapSync(he).once("closed",()=>{_n=!1,(async(e,t)=>{await qe(Ze(e),{source:"Store",...t})})(fin.me.identity,{type:"Navigation",action:"Close Store",skipValueHashing:!0})}))};let Un,Gn,Hn;const $n=async()=>(void 0===Hn&&(Hn=!!(await Q()).disableOpenFinAnalytics),Hn);async function zn(e){e.forEach(e=>{var t,a;"Page"===e.type?"Open Page"===e.action?(t=e.data.uuid,a=e,Vn.set(t,a)):"Close Page"===e.action&&Ln(e.data.uuid):"Store"===e.source&&"Close"!==e.action&&On()}),await(async e=>{Un?.sendToOpenFin&&(await $n()||e.forEach(async e=>{const t=Et({},e);t.entityId&&(t.entityId.uuid=await Bt(t.entityId.uuid),t.entityId.name=await Bt(t.entityId.name)),!e.skipValueHashing&&"value"in t&&(t.value=await Bt(t.value)),Gn(t)}))})(e);const t=e.map(({skipValueHashing:e,...t})=>t);this.handleAnalytics(t)}const Kn=async e=>{Un=e;Un?.sendToOpenFin&&!await $n()&&(()=>{const e=N,t=e+z.Analytics,a=document.createElement("IFRAME");a.setAttribute("src",t),a.setAttribute("style","width: 0px !important"),a.setAttribute("style","height: 0px !important"),a.setAttribute("style","display: none !important"),document.body.appendChild(a),Gn=async t=>{a.contentWindow.postMessage(t,e)}})();const t=fin.Application.getCurrentSync();t.addListener("view-created",async e=>{var t;je({type:"View",action:"Open View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid,url:await(t=e.viewIdentity,fin.View.wrapSync(t).getInfo().then(e=>e.url))}})}),t.addListener("view-destroyed",async e=>{je({type:"View",action:"Close View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid}})}),t.addListener("window-closed",e=>{e.name.startsWith(de.BrowserMenu)||(je({type:"Window",action:"Close Window",value:e.name,data:{uuid:e.uuid}}),(async()=>{const e=Nn(),t=await pn();if(t.length===e.size)return;const a=t.reduce((e,t)=>e.set(t.pageId,1),new Map);for(const[t,n]of e)a.has(t)||(n.action="Close Page",je(n),Ln(t))})())})},Jn=Ce({alwaysOnTop:!0,autoShow:!1,frame:!1,resizable:!1,showTaskbarIcon:!1});const Zn=function(e=Jn){const t=new Map;return async(a,n,o,r,i)=>{if(t.has(a)){const{currentUrl:e,currentName:o}=t.get(a);if(e===n)return;const r=fin.Window.wrapSync({uuid:fin.me.uuid,name:o});await r.close()}const s=`${de.HomeInternal}-${Date.now()}${Math.random()}`;t.set(a,{currentUrl:n,currentName:s});const c=`New ${r} indicator: ${o} ${i}`,l=await fin.Platform.getCurrentSync().createWindow({...e,name:s,url:n});((e,t)=>{const a=document.createElement("div");a.setAttribute("role","alert"),a.setAttribute("aria-live",t||"polite"),(e=>{e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.margin="-1px",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.border="0"})(a),document.body.appendChild(a),setTimeout(()=>{a.innerHTML=e},300),setTimeout(()=>{document.body.removeChild(a)},1e3)})(c),l.once("closed",()=>{t.delete(a)})}}();async function qn(e,t,a,n,o,r){if(a&&fin.me.name!==a){const i={type:e,message:t,parentBrowserName:a,secondaryMessage:n,icon:o,isEnterprise:r};return(await ea({uuid:fin.me.uuid,name:a})).dispatch(sa.ShowBrowserIndicator,i)}const i=new URLSearchParams;if(i.append("type",e),i.append("message",t),i.append("parentName",a||""),i.append("secondaryMessage",n||""),i.append("icon",o||""),i.append("isEnterprise",`${r}`||""),a){const e=pe(a?{uuid:B,name:a}:void 0),t=`${(s=await e.getBounds()).top},${s.left},${s.height},${s.width},${s.bottom},${s.right},${s.content.top},${s.content.left},${s.content.height},${s.content.width}`;i.append("parentBounds",t)}var s;const c=`${(r?await ae():await te())+z.BrowserIndicator}#${i.toString()}`;return Zn("browser"+a,c,t,e,n)}async function jn(e,t,a,n){const o=await Ae(t);return qn("success",e,t.name,a,n,o)}const Qn=async(e=we)=>{const{workspacePlatform:t}=await pe(e).getOptions(),a=t?.newPageUrl,n=t?.newTabUrl;return{newPageUrl:a,newTabUrl:n}},Yn=async(e=we)=>{const t=await Ae(e)||an(),a=t?null:await Aa().Browser.getUniquePageTitle();let n;if(e&&await ke(e))n=await(async(e,t=we)=>{const{newPageUrl:a}=await Qn(t);if(!a)throw new Error("Trying to create a new page without a newPageUrl set");return La(e,a,t)})(a,e);else if(t){const e=await ne();n=await La(a,e)}t&&(n.settings=n.settings??{},n.dimensions=n.dimensions??{},n.settings.hasHeaders=!1,n.settings.reorderEnabled=!0,n.dimensions.headerHeight=0);const o=await Kt(a,n);return t&&(o.hasUnsavedChanges=!1),o};var Xn;!function(e){e.Home="/home",e.Browser="/browser",e.Enterprise="/enterprise",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(Xn||(Xn={}));function eo(e,t){return async(a,...n)=>{e.has(a)&&e.get(a).forEach(e=>e(...n)),t&&await t({event:a,payload:n})}}function to(e,t){return t&&t(t=>{const{event:a,payload:n}=t;e.has(a)&&e.get(a).forEach(e=>e(...n))}),(t,a)=>{e.has(t)||e.set(t,new Set),e.get(t).add(a)}}function ao(e){return(t,a)=>{e.has(t)||e.set(t,new Set);const n=e.get(t),o=(...e)=>{a(...e),n.delete(o)};n.add(o)}}function no(e){return(t,a)=>{e.has(t)&&e.get(t).delete(a)}}const oo={name:de.BrowserMenu,alwaysOnTop:!0,autoShow:!0,frame:!1,resizable:!1,backgroundColor:"#2f3136",smallWindow:!0,showTaskbarIcon:!1,backgroundThrottling:!1,saveWindowState:!1};function ro(e){const t={...oo,...e};return t.url=function(e,t){if(!W)throw new Error("resolveAbsolutePath can only be used in a window");const a=t??window.location;if(/^(?:[a-z]+:)?\/\//i.test(e))return e;const n=`${a.protocol}//${a.hostname}`;return new URL(e,n).href}(t.url??""),t}const io=function(e){const t=new Map;return{emit:eo(t,t=>A&&fin.InterApplicationBus.publish(e,t)),addListener:to(t,t=>A&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t)),addListenerWithUUID:a=>to(t,t=>A&&fin.InterApplicationBus.subscribe({uuid:a},e,t)),removeListener:no(t),once:ao(t)}}("window.menu"),so=(e,t)=>fin.Window.wrapSync(e).updateOptions({opacity:t}),co=e=>io.emit("response",e),lo=Be(()=>le().getChildWindows(),500);const uo=new Map;async function po(e,t){const a=ro(e),n={top:a.top,left:a.left,width:a.defaultWidth||a.width,height:a.defaultHeight||a.height};return t.set("parentName",fin.Window.getCurrentSync().identity.name),{name:a.name,bounds:n,route:`${a.url}#${t.toString()}`}}async function wo({options:e,parameters:t}){const a=t??new URLSearchParams,n=ro(e),{name:o,modalParentIdentity:r}=n;if(!a.has("isEnterprise")){const e=`${await(async e=>(De||(De=await Ae(e)),De))(r)}`;a.set("isEnterprise",e)}let i=await async function(e){return(await lo()).find(t=>t.identity.name===e)}(o);if(i)await async function(e,t){const{name:a,bounds:n,route:o}=await po(e,t),r={uuid:fin.me.identity.uuid,name:a},i=fin.Window.wrapSync(r);await Promise.all([so(r,0),i.setBounds(n)]),e.preventBlur||i.once("blurred",()=>{so(r,0),i.hide(),co({name:r.name,data:{actionName:"Cancel"}})}),io.emit("update",a,n,o),await co({name:a,data:{actionName:"Cancel"}})}(n,a);else{const{route:t,bounds:o}=await po(e,a);i=await async function(e,t,a){const n=ro(e),o=await At(fin.me.identity),r=await Wt(fin.me.identity)===m.Dark,i=o?.theme;if(n.backgroundColor=i?.[r?m.Dark:m.Light]?.palette?.inputBackground||n.backgroundColor,!uo.has(n.name))return new Promise(o=>{io.once("ready",async e=>{if(e.name===n.name){const t=await uo.get(n.name);n.preventBlur||t.once("blurred",async()=>{if(so(e,0),t.hide(),co({name:n.name,data:{actionName:"Cancel"}}),t.identity.name===de.BrowserSaveMenu){const e=await t.getOptions();"submitting"!==e.customContext&&"error"!==e.customContext&&t.close()}else t.identity.name.startsWith(de.BrowserMenu)&&t.close()}),setTimeout(async()=>{await so(e,1),1!==(await fin.Window.wrapSync(e).getOptions()).opacity&&so(e,1)}),o(t)}});const r=(async()=>{const o=await fin.Platform.getCurrentSync().createWindow(Ce({...n,opacity:0,url:t||n.url,defaultLeft:a?.left,defaultTop:a?.top,defaultWidth:a?.width,defaultHeight:a?.height,workspacePlatform:{preventBlur:e.preventBlur}},!0));return o.once("closed",()=>{uo.delete(n.name)}),o})();uo.set(n.name,r)});return uo.get(n.name)}({...n},t,o)}return i}const go=async({options:e,content:t,parameters:a})=>{const n=a??new URLSearchParams;n.set("content",JSON.stringify({...t,invocationId:Lt()}));const o={...e,name:`${e.name}--${e.modalParentIdentity?.name??""}`},r=await wo({options:o,parameters:n});return new Promise(e=>{io.once("response",async t=>{t.name===o.name&&(e({data:t.data}),o?.closeOnResponse&&r.close())})})},ho=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t)=>{const a=await Ae(t);return{title:"Switch Workspace",windowOptions:{url:await oe(a,!1)+z.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:t},content:{title:Qa("switchWorkspaceModal",{workspace:e}),body:Qa("switchWorkspaceModal.warning"),buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel"},{label:Qa("global.confirm"),type:"primary",id:"Confirm"}]}}}})(t,a?void 0:e),r=await Le(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await go({options:i,content:o})).data.actionName},mo=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await Ae(e);return{title:"Delete Workspace",windowOptions:{url:await oe(a,!1)+z.ResponseModal,name:de.BrowserMenu,defaultHeight:144,defaultWidth:410,modalParentIdentity:e},content:{title:Qa("deleteWorkspaceModal"),body:`${t}`,buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel"},{label:Qa("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t),o=await Le(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Confirm"===(await go({options:r,content:n})).data.actionName},ko=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>{const n=await Ae(e);return{title:"Platform Quit",windowOptions:{url:await oe(n,!1)+z.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:a?void 0:e},content:{title:Qa("Platform"===t?"closePlatform":"closePlatform.workspace",{workspace:t}),body:Qa("closePlatform.warning"),buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel"},{label:Qa("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t,a),r=await Le(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await go({options:i,content:o})).data.actionName},bo=async e=>{const{windowOptions:t,content:a}=await(async e=>{const t=await Ae(e);return{title:"Restore Changes",windowOptions:{url:await oe(t,!1)+z.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:e},content:{title:Qa("restoreModal"),body:Qa("modal.discardWarning"),buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel"},{label:Qa("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e),n=await Le(t,t.modalParentIdentity),o={...t,top:n.top,left:n.left};return"Confirm"===(await go({options:o,content:a})).data.actionName},yo=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await Ae(e);return{title:"Delete Page",windowOptions:{url:new URL(await oe(a,!1)+z.ResponseModal).toString(),name:de.BrowserMenu,defaultHeight:172,defaultWidth:464,modalParentIdentity:e},content:{title:Qa("enterpriseDeleteModal.deleteSupertab",{title:t}),body:Qa("enterpriseDeleteModal.deleteSupertabWarning"),buttons:{right:[{label:Qa("global.cancel"),type:"secondary",id:"Cancel",variant:a?"outline":void 0},{label:Qa("global.delete"),type:"primary",id:"Delete",variant:a?"submit":void 0}]}}}})(e,t),o=await Le(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Delete"===(await go({options:r,content:n})).data.actionName},fo=async({identity:e,title:t,description:a})=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>({title:"Update Version",windowOptions:{url:await ae()+z.ResponseModal,name:de.UpdateVersionModal,defaultHeight:172,defaultWidth:464,modalParentIdentity:e,preventBlur:!0,closeOnResponse:!0,includeInSnapshots:!1},content:{title:t,body:a,buttons:{right:[{label:"Snooze",type:"secondary",id:"snooze"},{label:"Restart",type:"primary",id:"restart"}]}}}))(e,t,a),r=fin.Window.wrapSync({uuid:e.uuid,name:`${n.name}--${n.modalParentIdentity?.name}`});try{if(await(r?.isShowing()))return}catch(e){}const i=await Le(n,n.modalParentIdentity),s={...n,top:i.top,left:i.left};return(await go({options:s,content:o})).data};async function So({options:e,...t}){if(!(!!e?.skipPrompt||await ho(e?.promptContainerWindowIdentity,t.title,e?.shouldCenterModalOnMonitor)))return!1;const a=!!(await fin.Application.getCurrentSync().getChildWindows()).find(({identity:e})=>e.name===de.DockCompanion);an();const n=a||an()?{closeExistingWindows:!1,closeSnapshotWindows:!0}:{closeExistingWindows:e?.applySnapshotOptions?.closeExistingWindows??!0},o=Aa();return await o.applySnapshot(t.snapshot,{...e?.applySnapshotOptions??{},...n}),Co(t),qn("success",Qa("successIndicator.workspaceSwitched")).catch(console.warn),!0}async function vo(e){try{return await So(e)}catch(e){return console.error("failed to apply the current workspace: ",e),!1}}async function Po(e){try{const t=await async function(){const e=Aa(),t=await e.getCurrentWorkspace();return(await e.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId)}();if(!t)return"not-saved-workspace";return!!e?.skipPrompt||await bo(e?.promptContainerWindowIdentity)?(await So({options:{skipPrompt:!0,applySnapshotOptions:e?.applySnapshotOptions},...t}),"success"):"user-declined"}catch(e){throw console.error("failed to restore last saved workspace: ",e),e}}function Co(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);Ue(_t.CurrentWorkspaceId,t)}catch(e){console.error("failed to set the active workspace: ",e)}}async function Mo(){const e=Aa(),t=await e.getSnapshot();return{workspaceId:Lt(),title:await Wo(),metadata:{APIVersion:O},snapshot:t}}async function xo(){if("undefined"==typeof localStorage)return Mo();const e=Ge(_t.CurrentWorkspaceId);if(!e)return Mo();const t=JSON.parse(e),a=Aa(),n=await a.getSnapshot();return{...t,metadata:{APIVersion:O},snapshot:n}}const Io=async()=>(await bt(we)).dispatch(ht.GetSavedWorkspaces,void 0),Ao=async e=>await(async e=>(await bt(we)).dispatch(ht.GetSavedWorkspace,e))(e.workspaceId)?(async e=>(await bt(we)).dispatch(ht.UpdateSavedWorkspace,e))({workspaceId:e.workspaceId,workspace:e}):(async e=>(await bt(we)).dispatch(ht.CreateSavedWorkspace,e))({workspace:e});async function Wo(e="Untitled Workspace"){const t=(await Io()).map(({title:e})=>e);return un(e,t)}const Do=e=>({...e,snapshot:{...e.snapshot,windows:e.snapshot.windows.map(e=>({...e,workspacePlatform:{...e.workspacePlatform,pages:e.workspacePlatform?.pages?.map(e=>({...e,hasUnsavedChanges:!1}))}}))}}),To=async(e,t)=>{const a=t??Aa();await a.Storage.saveWorkspace(Do(e)),await(async()=>(await bt(we)).dispatch(ht.MarkUnsavedPagesAsSavedInternal,void 0))()},Bo=async e=>{const t=Aa(),a=await t.getCurrentWorkspace(),n=await t.Storage.getWorkspaces(),o=a.workspaceId;if(n.some(e=>e.workspaceId===o))await To(a,t),await t.setActiveWorkspace(a),await jn(Qa("successIndicator.workspaceSaved"),e);else{const a=t.Browser.wrapSync(e);await a._openSaveModal({menuType:x.SAVE_WORKSPACE})}},Ro=e=>{Aa().Browser.wrapSync(e)._openSaveModal({menuType:x.SAVE_WORKSPACE_AS})},Eo=async e=>{const t=Aa().Browser.wrapSync(e),{newPageUrl:a}=await Qn(),n=await Yn(e),o=a||void 0;await t._addDefaultPage({identity:e,page:n,newPageUrl:o})},Fo=async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=await Aa().Storage.getPages(),o=(await a.getPages()).find(e=>t?e.pageId===t:e.isActive),r=n.some(e=>o.pageId===e.pageId),i=await Ae(e);if(r)try{await Aa().Storage.savePage((d=o,{...d,hasUnsavedChanges:void 0,parentIdentity:void 0,isActive:void 0,layout:Va(d.layout)})),await a.updatePage({pageId:o.pageId,page:{hasUnsavedChanges:!1}}),jn(Qa(i?"enterpriseSuccessIndicator.supertabSaved":"successIndicator.pageSaved"),e,Qa(i?"enterpriseSuccessIndicator.supertabHasBeenSaved":"successIndicator.pageHasBeenSaved",{title:o.title}))}catch{s=Qa("errorIndicator.pageSaveFailed"),c=o.parentIdentity.name,qn("error",s,c,l)}else a._openSaveModal({id:o.pageId,menuType:x.SAVE_PAGE});var s,c,l,d},Vo=async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=(await a.getPages()).find(e=>t?e.pageId===t:e.isActive);a._openSaveModal({id:n.pageId,menuType:x.SAVE_PAGE_AS}),je({type:"Page Modal",action:"Select Save As",value:n.title,skipValueHashing:!0})},No={title:"Downloads",pageId:"downloads-page-id",layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{name:"show-download-view",url:"chrome://downloads/"}}]}]}},Lo=async e=>{const t=pe(e),a=await t.getCurrentViews(),n=(await Aa().Browser.wrapSync(t.identity).getPages()).find(e=>e.isActive);try{const t=(await Promise.all(a.map(async e=>({identity:e.identity,info:await fin.View.wrapSync(e.identity).getInfo()})))).find(e=>"chrome://downloads/"===e.info.url);if(t)await fin.View.wrapSync(t.identity).focus();else{const t=Aa();if(n?.isLocked){const e=(await fin.Application.getCurrentSync().getChildWindows()).find(e=>"show-download-window"===e.identity.name);return void(e?await e.focus():t.Browser.createWindow({name:"show-download-window",workspacePlatform:{pages:[No]}}))}(await Aa().createView({name:"show-download-view",url:"chrome://downloads/",target:e},e)).focus()}}catch(e){console.error("Couldn't open downloads view",e)}},_o=async e=>{const t=e.map(e=>fin.View.wrapSync(e).print());await Promise.all(t)},Oo=e=>{const[t,a,n]=e.split(".").map(e=>"x"===e?0:1);return 100*t+10*a+1*n};class Uo extends Error{}const Go=async e=>{try{const a=await async function(){const e=await Q(),t=e?.translationOverridesUrl??"https://workspace.openfin.co/workspace/assets/translation-override.json";if(""===t)throw new Uo("Empty string provided as url to translationOverridesUrl, overrides will not be fetched.");return await fetch(t).then(e=>e.json())}();(t=(e=>{const t=O.split(".");return Object.keys(e).filter(e=>{const a=e.split(".");if(3!==a.length)return console.warn(`Encountered a translation override version string in an unsupported format: ${e}. Versions must be in A.B.C format where A, B, C are either integers or the wildcard symbol 'x'.`),!1;const[n,o,r]=a;return!(n!==t[0]&&"x"!==n||o!==t[1]&&"x"!==o||r!==t[2]&&"x"!==r)})})(a),[...t].sort((e,t)=>Oo(e)-Oo(t))).forEach(t=>{const n=a[t];Object.keys(n).forEach(t=>{e.addResourceBundle(t,"translation",n[t],!0,!0)})})}catch(e){e instanceof Uo?console.warn(e.message):console.error("Error applying a translation override: ",e)}var t};function Ho(){return Ha().language}const $o=async e=>{Jo(e),(e=>{Ha().changeLanguage(e)})(e),await(async e=>{const t=await be();return Promise.all(t.map(async t=>{const a=await ea(t.identity);await a.dispatch(sa.SetSelectedLanguage,e)}))})(e)};function zo(){if(!Ha().options.resources)throw new Error("No language resources found");return{currentLanguage:Ho(),resources:Ha().options.resources}}async function Ko(e="en-US"){Jo(e),function(e="en-US"){Ha().use(Ua.initReactI18next).init({lng:e,fallbackLng:"en-US",resources:{"en-US":{translation:Ka},"ja-JP":{translation:Za},"zh-CN":{translation:$a},"ko-KR":{translation:qa},"ru-RU":{translation:ja},"de-DE":{translation:Ja},"zh-Hant":{translation:za}},interpolation:{escapeValue:!1}})}(e),await Go(Ha())}function Jo(e){if(!M.includes(e))throw new Error(`The ISO language provided ${e} is not supported`)}const Zo=new Map;let qo=Date.now();function jo(){const e=Date.now();return qo=Math.max(e,qo+1),qo}async function Qo(){const e=Array.from(Zo.values()).sort((e,t)=>t.lastFocusedTime-e.lastFocusedTime);if(e.length>0)return e[0].identity;try{const e=Ge(_t.LastFocusedBrowserWindow);if(!e)return;const t=JSON.parse(e);if(await fe(t))return await er(t),t}catch(e){console.error("failed to get last focused browser window from localStorage:",e)}}async function Yo(){const e=fin.Application.getCurrentSync();return(await e.getChildWindows()).filter(e=>e.identity.name.startsWith(de.BrowserWindow))}async function Xo(){const e=Aa(),t=fin.Window.wrapSync({uuid:fin.me.uuid,name:de.DockCompanion}),a=await Pe(await t.getBounds()),n=await async function(e,t,a){const n=await fin.System.getMonitorInfo(),o=a?.availableRect??n.primaryMonitor.availableRect,r={width:o.right-o.left,height:o.bottom-o.top},i=Math.min(e,r.height),s=Math.min(t,r.width),c=o.top+Math.floor((r.height-i)/2);return{height:i,width:s,left:o.left+Math.floor((r.width-s)/2),top:c}}(600,900,a),o=await Yn();return(await e.Browser.createWindow({defaultHeight:600,defaultWidth:900,defaultLeft:n.left,defaultTop:n.top,workspacePlatform:{pages:[o]}})).identity}async function er(e,t,a=!1){if(!await ke(e))return;const n=fin.Window.wrapSync(e),o=t??await n.isShowing(),r=Zo.get(e.name),i={identity:e,lastFocusedTime:a?jo():r?.lastFocusedTime??jo(),isVisible:o};Zo.set(e.name,i),a&&function(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);Ue(_t.LastFocusedBrowserWindow,t)}catch(e){console.error("failed to save last focused browser window: ",e)}}(e)}async function tr(e=fin.me.identity){Zo.delete(e.name)}const ar=Nt()(async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,a=!1;for(const n of e)if(n.identity.name===de.BrowserMenu||n.identity.name===de.BrowserSaveMenu?t=n:await ke(n.identity)&&(a=!0),a)break;!a&&t&&t.close()},100,{leading:!1,trailing:!0});let nr={};const or=async({actionId:e,payload:t})=>{if("function"!=typeof nr[e])throw new Error(`Cannot find a configured function for the action '${e}'`);return nr[e](t)};let rr;const ir=()=>`custom-context-menu-${Aa().identity.uuid}-${O}`,sr=()=>`custom-bookmark-context-menu-${Aa().identity.uuid}-${O}`,cr=async()=>(rr||(rr=await fin.InterApplicationBus.Channel.connect(ir())),rr);var lr,dr;!function(e){e.Save="Save",e.SaveAs="SaveAs"}(lr||(lr={})),function(e){e.GlobalMenu="global-menu",e.ContextMenu="context-menu",e.RenameSupertab="rename-supertab",e.AddEditBookmark="add-edit-bookmark",e.DropdownMenu="dropdown-menu",e.ZoomControls="zoom-controls"}(dr||(dr={}));const ur=require("dexie"),pr=e=>e+"-"+fin.me.uuid,wr=(e,t)=>{const a=D&&A&&new ur.Dexie(e);return a&&a.version(.1).stores({[t]:""}),a},gr=(e,t)=>{const a=wr(pr(e),t),n=wr(e,t);if(!a||!n)throw new Error("Unable to migrate store - IndexDB not supported");return(async(e,t,a)=>{const n=Ge(_t.HasMovedStore),o=n?JSON.parse(n):{};if(o&&o[a])return;o[a]=!0,Ue(_t.HasMovedStore,JSON.stringify(o));const r=await e[a].toArray();await t[a].bulkPut(r)})(n,a,e),a},hr=(e,t="")=>e.toLowerCase().includes(t.toLowerCase()),mr="visited-sites",kr="removed-tab-stack",br=D&&A&&gr("openfin-home-pages","pages"),yr=D&&A&&new ur.Dexie(pr("openfin-enterprise-site-history"));yr&&yr.version(.1).stores({[mr]:"id, url"});const fr=D&&A&&new ur.Dexie(pr("openfin-enterprise-tab-history"));async function Sr(e){if(!br)throw new Error("Unable to get page - IndexDB not supported");const t=await br.pages.get(e);if(t)return t.pageId=e.toString(),t.title=t.title||t.pageId,t}async function vr(e){if(!br)throw new Error("Unable to get page list - IndexDB not supported");const t=await br.pages.toCollection().keys(),a=(await Promise.all(t.map(e=>Sr(e.toString())))).filter(e=>!!e);return e?a.filter(t=>hr(t.title,e)):a}async function Pr({page:e}){if(!br)throw new Error("Unable to create page - IndexDB not supported");await br.pages.put(e,e.pageId)}async function Cr(e){if(!br)throw new Error("Unable to delete page - IndexDB not supported");await br.pages.delete(e)}async function Mr({pageId:e,page:t}){if(!br)throw new Error("Unable to update page - IndexDB not supported");if(void 0===await Sr(e))throw new Error("page not found");await Pr({page:t}),e!==t.pageId&&await Cr(e)}fr&&fr.version(.1).stores({[kr]:""});const xr=async e=>{if(!fr)throw new Error("Unable to add removed tab - IndexDB not supported");const t=Date.now().toString(),a={...e,id:t};await fr[kr].put(a,t)};function Ir(e){return"app"===e.type||"website"===e.type}const Ar=async e=>{if("website"===e.type){const t=e,a=t.url||"";let n=await yr[mr].get(a);n&&Ir(n)?(n.icon=t.icon,n.title=t.title,n.type=t.type,n.visitCount=(n.visitCount||0)+1,n.url=t.url):n={...t,id:a,visitCount:1,accessTime:void 0},n.accessTime=Date.now(),await yr[mr].put(n,a)}},Wr=async()=>{if(!yr)throw new Error("Unable to get frequently visited sites - IndexDB not supported");const e=yr[mr],t=await e.toCollection().toArray();t.sort((e,t)=>(t.visitCount||0)-(e.visitCount||0));return(t.length>5?t.slice(0,5):t).map(({id:e,...t})=>t)};const Dr=async()=>(await fin.System.getHostSpecs()).name.toLowerCase().includes("windows"),Tr=async({browserIdentity:e,url:t,shiftKey:a,activePage:n,pages:o})=>{const r=Aa().Browser.wrapSync(e),i=await La(t,t,e),s={...await Kt(t,i),attachedPageType:"singleView",singleViewName:t},c=o.findIndex(e=>e.pageId===n.pageId);await r._addPage(s,{index:c+1}),a&&await r.setActivePage(s.pageId)},Br=async e=>{const{url:t}=e.bookmark,{sourceIdentity:a,sourceEvent:n}=e,o=await Dr(),r=Aa();let i=!1,s=a;if(!await ke(a)){const t=await async function(){const e=Array.from(Zo.values());for(let t=e.length-1;t>=0;t--)if(e[t].isVisible)return e[t].identity}();if(!t)return await(async e=>{const t=Aa(),a=await La(e.url,e.url),n=await Kt(e.url,a);me((await t.Browser.createWindow({workspacePlatform:{pages:[n]}})).identity)})(e.bookmark);i=!0,s=t}const c=r.Browser.wrapSync(s),l=await c.getPages(),d=(await c._getLayoutsWithSelectedViews()).find(e=>e.isActive);if(!d)throw Error(`Browser ${s} does not have any active layouts`);const u=l.find(e=>e.isActive),p=1===Oa(u.layout.content),w=d.selectedViews[0];i?await Tr({browserIdentity:s,url:t,shiftKey:!0,activePage:u,pages:l}):p?await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activePage:o,pages:r,sourceEvent:i})=>{const{ctrlKey:s,metaKey:c,shiftKey:l}=i;(e?s:c)?await Tr({browserIdentity:a,url:n,shiftKey:l,activePage:o,pages:r}):await fin.View.wrapSync(t).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activePage:u,pages:l,sourceEvent:n}):await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activeLayout:o,sourceEvent:r})=>{const{ctrlKey:i,metaKey:s,shiftKey:c}=r;if(e?i:s){const e=fin.View.wrapSync(t),o=await e.getCurrentStack(),r=(await o.getViews()).findIndex(e=>e.name===t.name),i={url:n,browserIdentity:a,title:n};await o.addView(i,{index:r+1})}else await fin.View.wrapSync(o.selectedViews[0]).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activeLayout:d,sourceEvent:n})};var Rr;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(Rr||(Rr={}));let Er={locked:!1,x:-1,y:-1};const Fr=async(e,t,a,n)=>{if(!A)throw new Error("showEnterpriseContextMenu can only be used in a Here env. Avoid calling this method during pre-rendering.");if(!n&&!fin.me.isWindow)throw new Error("showEnterpriseContextMenu can only be used in a Here window.");const{x:o,y:r,template:i}=e;if(((e,t)=>{const{x:a,y:n,locked:o}=Er;return o&&e===a&&t===n})(o,r))return new Promise((e,t)=>e({data:void 0}));Er={locked:!0,x:o,y:r};const s=await cr(),c=Lt(),l=new Promise((e,t)=>{s.register(`response-${c}`,t=>{Er.locked=!1,s.remove(`response-${c}`),e(t)})});return await s.dispatch("open",{parentIdentity:n.identity,responseIdentity:we,requestId:c,type:t,anchorBehavior:a,x:o,y:r,payload:{template:i}}),l},Vr={type:Rr.Separator,data:void 0},Nr=async()=>({type:Rr.Submenu,label:Qa("contextMenu.print"),submenu:[{type:Rr.Label,label:Qa("contextMenu.submenu.print"),data:{type:f.Print}},{type:Rr.Label,label:Qa("contextMenu.submenu.printAll"),data:{type:f.PrintAll}},Vr,{type:Rr.Label,label:Qa("contextMenu.printScreen"),data:{type:f.PrintScreen}}]}),Lr=()=>({type:Rr.Label,label:Qa("contextMenu.closeWindow"),data:{type:h.CloseWindow}}),_r=e=>({type:Rr.Label,label:Qa(e?"contextMenu.quitEnterpriseBrowser":"contextMenu.quitPlatform"),data:{type:h.Quit}}),Or=()=>({type:Rr.Label,label:Qa("contextMenu.newWindow"),data:{type:h.NewWindow}}),Ur=e=>({type:Rr.Label,label:Qa(e?"enterpriseContextMenu.saveSupertab":"contextMenu.savePage"),data:{type:h.SavePage}}),Gr=e=>({type:Rr.Label,label:Qa(e?"enterpriseContextMenu.saveSupertabAs":"contextMenu.savePageAs"),data:{type:h.SavePageAs}}),Hr=(e,t)=>({type:Rr.Label,label:Qa(t?"enterpriseContextMenu.newTab":"contextMenu.newPage"),data:{type:h.NewPage},enabled:e}),$r=()=>({label:Qa("contextMenu.switchWorkspace")}),zr=()=>({label:Qa("contextMenu.deleteWorkspace")}),Kr=()=>({label:Qa("contextMenu.appearance")}),Jr=(e,t,a)=>t.map(t=>{const n=t.workspaceId===e.workspaceId;return{label:t.title,type:Rr.Checkbox,enabled:!n,checked:n,data:{type:a,workspaceId:t.workspaceId}}}),Zr=async()=>{const e=await Aa().Theme.getSelectedScheme();return[{label:Qa("theme.light"),type:Rr.Checkbox,checked:e===m.Light,data:{type:h.Appearance,scheme:m.Light}},{label:Qa("theme.dark"),type:Rr.Checkbox,checked:e===m.Dark,data:{type:h.Appearance,scheme:m.Dark}},{label:Qa("theme.system"),type:Rr.Checkbox,checked:e===m.System,data:{type:h.Appearance,scheme:m.System}}]},qr=async(e,t=[])=>{const a=await Se(),{newPageUrl:n}=await Qn(e),o=await(async e=>{const t=pe(e),{workspacePlatform:a}=await t.getOptions();return a?.disableMultiplePages})(e),r=await(async e=>{const t=pe(e),{workspacePlatform:a}=await t.getOptions();return a?.isLocked})(e),i=await Ae(e),s=[],c=t.length>0;n&&(s.push(Or()),o||s.push(Hr(!r,i))),s.push(Vr);const l=Aa(),d=await l.getCurrentWorkspace(),u=await l.Storage.getWorkspaces(),p=u.find(e=>e.workspaceId===d.workspaceId);s.push({type:Rr.Label,label:Qa("contextMenu.restore"),data:{type:h.RestoreChanges},enabled:!!p}),s.push({type:Rr.Label,label:Qa("contextMenu.saveWorkspace"),data:{type:h.SaveWorkspace},enabled:!!p}),s.push({type:Rr.Label,label:Qa("contextMenu.saveWorkspaceAs"),data:{type:h.SaveWorkspaceAs}}),s.push({type:Rr.Label,label:Qa("contextMenu.renameWorkspace"),data:{type:h.RenameWorkspace},enabled:!!p}),u.some(e=>e.workspaceId!==d.workspaceId)?s.push({label:$r().label,submenu:Jr(d,u,h.SwitchWorkspace),data:void 0},{label:zr().label,submenu:Jr(d,u,h.DeleteWorkspace),data:void 0}):s.push({label:$r().label,enabled:!1,data:void 0},{label:zr().label,enabled:!1,data:void 0}),s.push({label:Qa("contextMenu.downloads"),data:{type:h.Downloads}});const w=await l.Theme.getThemes();return(w&&w[0]&&"palettes"in w[0]||!w[0]||0===w.length)&&s.push({label:Kr().label,submenu:await Zr(),data:void 0}),s.push(Vr,Ur(i),Gr(i),await(async e=>{const t=await Dr();return{label:Qa("contextMenu.print"),submenu:[{type:Rr.Label,label:Qa("contextMenu.submenu.print"),data:{type:h.Print},enabled:e},{type:Rr.Label,label:Qa("contextMenu.submenu.printAll"),data:{type:h.PrintAll}},...t?[Vr,{type:Rr.Label,label:Qa("contextMenu.printScreen"),data:{type:h.PrintScreen}}]:[]],data:void 0}})(c)),a?[...s,Lr(),Vr,{type:Rr.Label,label:Qa("contextMenu.openStorefront"),data:{type:h.OpenStorefront}},Vr,_r()]:[...s,Vr,Lr(),Vr,_r()]},jr=async(e,t)=>{const a=t.selectedViews[0],n=fin.View.wrapSync(a),o=await(async e=>{const{newTabUrl:t}=await Qn(e);if(!t)throw new Error("Trying to create a new page without a newTabUrl set");return{url:t,target:e,title:"New Tab"}})(e);await Aa().createView(o,e,n.identity)},Qr=async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=(await a.getPages()).find(e=>e.isActive),o=await fin.Window.wrapSync(e).getCurrentViews();if(t.length===o.length-(n.panels??[]).length){return void(await ea(e)).dispatch(sa.ClosePage,{pageId:n?.pageId})}const r=fin.Platform.getCurrentSync();t.forEach(async t=>{const o=await fin.View.wrapSync(t).getParentLayout();await r.closeView(t);const{hasUnsavedChanges:i}=await(async e=>(await yt(we)).dispatch(ht.HandlePageChanges,e))({page:{...n,layout:await o.getConfig()},identity:e,eventDetails:{type:g.ViewRemoved,viewIdentity:t}});i&&await a.updatePage({pageId:n.pageId,page:{hasUnsavedChanges:!0}})})},Yr=async(e,t)=>{const a=await(e=>Promise.all(e.map(async e=>fin.View.wrapSync(e).getInfo())))(t),{newPageUrl:n,newTabUrl:o}=await Qn(e);a.forEach(async e=>{e.url!==n&&e.url!==o&&await fin.System.openUrlWithBrowser(e.url)})},Xr=(e,t)=>{t.forEach(async t=>{const a=fin.View.wrapSync(t);await(async(e,t)=>{const{url:a}=await t.getInfo(),n={...await t.getOptions(),url:a,target:e,name:void 0};await Aa().createView(n,e,t.identity)})(e,a)})},ei=async(e,t,a)=>{const n={newChannelId:t,selectedViews:a};(await ea(e)).dispatch(sa.AddToChannel,n)},ti=async(e,t)=>{(await ea(e)).dispatch(sa.RemoveFromChannel,t)},ai=async(e,t)=>{if(!e)return;const a=t.identity,n=fin.Window.wrapSync(a);switch(je({type:"View Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e.type){case f.Back:await(async e=>{const t=e.map(e=>fin.View.wrapSync(e).navigateBack());await Promise.all(t)})(t.selectedViews);break;case f.Forward:await(async e=>{const t=e.map(e=>fin.View.wrapSync(e).navigateForward());await Promise.all(t)})(t.selectedViews);break;case f.Print:await _o(t.selectedViews);break;case f.PrintAll:await n.print({content:"views",includeSelf:!1});break;case f.PrintScreen:await n.print({content:"screenshot"});break;case f.CloseViews:await Qr(a,t.selectedViews);break;case f.OpenWithDefaultBrowser:await Yr(a,t.selectedViews);break;case f.ReloadViews:t.selectedViews.forEach(async e=>{const t=fin.View.wrapSync(e);await t.reload()});break;case f.NewView:await jr(a,t);break;case f.DuplicateViews:Xr(a,t.selectedViews);break;case f.AddToChannel:ei(a,e.option,t.selectedViews);break;case f.RemoveFromChannel:ti(a,t.selectedViews);break;case f.Custom:if(e.action){const n={callerType:C.ViewTabContextMenu,windowIdentity:a,selectedViews:t.selectedViews,customData:e.action.customData};Aa()._invokeCustomAction(e.action.id,n)}}},ni=(require("title-case"),new Map([["blue",{name:"Blue",color:"#0091EB"}],["indigo",{name:"Indigo",color:"#6450FF"}],["pink",{name:"Pink",color:"#E878CF"}],["teal",{name:"Teal",color:"#24D1D1"}],["green",{name:"Green",color:"#00AF78"}],["orange",{name:"Orange",color:"#FF7D37"}],["red",{name:"Red",color:"#F94144"}],["yellow",{name:"Yellow",color:"#F9C74F"}],["gray",{name:"Gray",color:"#828788"}]]));function oi(e){const t=Array.from(ni.entries()),a=e.contextGroup;return{type:"widget",config:{type:"add-to-channel",channels:[...t.map(([e,t])=>({label:t.name,data:{type:k.AddToChannel,option:e},color:t.color,checked:a===e})),{label:"unlink",data:{type:k.AddToChannel,option:"unlink"},isNone:!0}]},label:"Link to Channel"}}let ri="Platform";const ii=async()=>ri;const si=async(e,t)=>{if(!e)return;const a=t.identity,n=await ea(a),o=Aa().Browser.wrapSync(a),r=fin.Window.wrapSync(a);if(je({type:"Global Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0,data:{action:e.action?.id}}),await Ae(a)){const a=await(async(e,t)=>{const a=t.identity,n=Aa().Browser.wrapSync(a),o=(await n.getPages()).find(e=>e.isActive),r=Zt({...a,layoutName:o.layoutContainerKey}),i=t.selectedViews;switch(e?.type){case b.Lock:await n.updatePage({pageId:o.pageId,page:{isLocked:!o.isLocked}});break;case b.AddToChanel:e.option?await ei(a,e.option,i):null===e.option&&await ti(a,i);break;case h.NewWindow:{const e=await Yn(a);await Aa().Browser.createWindow({workspacePlatform:{pages:[e],windowType:"enterprise"}});break}case b.Pin:{const{alwaysOnTop:e}=await n.openfinWindow.getOptions();await n.openfinWindow.updateOptions({alwaysOnTop:!e});break}case b.ShowHideTabs:await r.isShowingTabs()?await r.hide():await r.show();break;default:return!1}return!0})(e,t);if(a)return}switch(e.type){case h.NewWindow:{const{newPageUrl:e}=await Qn(a);if(!e)throw new Error("Trying to create a new empty window without a newPageUrl set");Aa().createView({target:void 0,url:e});break}case h.NewPage:await Eo(a);break;case h.CloseWindow:n.dispatch(sa.CloseBrowserWindow);break;case h.SaveWorkspace:await Bo(a);break;case h.SavePage:await Fo(a);break;case h.SavePageAs:await Vo(a);break;case h.SaveWorkspaceAs:await Ro(a);break;case h.RenameWorkspace:o._openSaveModal({menuType:x.RENAME_WORKSPACE});break;case h.SwitchWorkspace:await(async(e,t)=>{const a=Aa(),n=(await a.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId);a.applyWorkspace(n,{skipPrompt:!1,promptContainerWindowIdentity:e})})(a,e);break;case h.DeleteWorkspace:await(async(e,t)=>{const a=Aa(),n=(await a.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId);n&&await mo(e,n.title)&&(await a.Storage.deleteWorkspace(t.workspaceId),jn(Qa("successIndicator.workspaceDeleted"),e))})(a,e);break;case h.Downloads:await Lo(a);break;case h.Appearance:await Aa().Theme.setSelectedScheme(e.scheme);break;case h.Quit:{const e=ii();await ko(a,await e)&&fin.Platform.getCurrentSync().quit()}break;case h.OpenStorefront:(async()=>{await Se()&&me(he)})();break;case h.RestoreChanges:await Po();break;case h.Print:await _o(t.selectedViews);break;case h.PrintAll:await r.print({content:"views",includeSelf:!1});break;case h.PrintScreen:await r.print({content:"screenshot"});break;case h.Custom:if(e.action){const t={callerType:C.GlobalContextMenu,windowIdentity:a,customData:e.action.customData};Aa()._invokeCustomAction(e.action.id,t)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}},ci=async(e,t,a)=>{const n=Aa().Browser.wrapSync(t.identity),o=fin.Window.wrapSync(t.identity),r=await ea(t.identity),i=await Ae();switch(e&&je({type:"Page Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e?.type){case k.Save:await Fo(t.identity,t.pageId);break;case k.SaveAs:await Vo(t.identity,t.pageId);break;case k.NewPage:await Eo(t.identity);break;case k.DeletePage:await(async(e,t)=>{const a=Aa(),n=a.Browser.wrapSync(e),o=(await a.Storage.getPages()).find(e=>e.pageId===t);o&&await yo(e,o.title)&&(await a.Storage.deletePage(o.pageId),await n.removePage(t),jn(Qa("enterpriseSuccessIndicator.supertabDeleted"),e,Qa("enterpriseSuccessIndicator.supertabHasBeenDeleted",{title:o.title})))})(t.identity,t.pageId);break;case k.Rename:if(await Ae(t.identity)){await n.setActivePage(t.pageId);const e=await cr();await e.dispatch("open",{parentIdentity:t.identity,responseIdentity:we,type:dr.RenameSupertab,anchorBehavior:di.Center,x:a.left+a.width/2-164,y:a.bottom-8,payload:{pageId:t.pageId}})}else await n._openSaveModal({menuType:x.RENAME_PAGE,id:t.pageId});break;case k.Duplicate:r.dispatch(sa.DuplicatePage,t.pageId);break;case k.Close:i?await(async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=await a.getPages();for(const o of n)if(o.pageId===t){await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o});break}})(t.identity,t.pageId):r.dispatch(sa.ClosePage,{pageId:t.pageId});break;case k.Custom:if(e.action){const a={callerType:C.PageTabContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};Aa()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`);break;case k.Refresh:await(async(e,t)=>{const a=Aa(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find(e=>t?e.pageId===t:e.isActive);o?.layout?.content&&Na(o.layout.content).forEach(async e=>{(await fin.View.wrap({uuid:a.identity.uuid,name:e.name})).reload()})})(t.identity,t.pageId);break;case k.CloseOthers:await(async(e,t)=>{const a=Aa().Browser.wrapSync(e),n=await a.getPages();for(const o of n)o.pageId!==t&&(await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o}))})(t.identity,t.pageId);break;case k.SaveWorkspaceAs:await Ro(t.identity);break;case k.Print:{const e=await n._getLayoutsWithSelectedViews(),{selectedViews:a}=e.find(e=>e.pageId===t.pageId);await _o(a);break}case k.PrintAll:await n.setActivePage(t.pageId),await o.print({content:"views",includeSelf:!1});break;case k.PrintScreen:await n.setActivePage(t.pageId),await o.print({content:"screenshot"});break;case k.AddToChannel:await n.updatePage({pageId:t.pageId,page:{contextGroup:"unlink"===e.option?null:e.option}})}},li=async(e,t)=>{if(e?.type){const a=t.identity;switch(e.type){case v.SavePage:await Fo(a);break;case v.SaveWorkspace:await Bo(a);break;case v.SavePageAs:await Vo(a);break;case v.SaveWorkspaceAs:await Ro(a);break;case v.Custom:if(e.action){const a={callerType:C.SaveButtonContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};Aa()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}}};var di;!function(e){e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e[e.Center=4]="Center"}(di||(di={}));const ui=async(e,t,a,n)=>{const{x:o,y:r,identity:i,template:s,callback:c}=e,l=await Ae(i),{data:d}=l?await Fr({x:o,y:r,template:s},a,n,fin.Window.wrapSync(i)):await function(e,t){if(!A)throw new Error("showContextMenu can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");if(!t&&!fin.me.isWindow)throw new Error("showContextMenu can only be used in an OpenFin window.");return(t||fin.Window.getCurrentSync()).showPopupMenu(e)}({x:o,y:r,template:s},fin.Window.wrapSync(i));c(d,e)};async function pi(e,t){const a=await Ae(e.identity),n=a?await(async({identity:e,selectedViews:t})=>{const a=Aa(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find(e=>e.isActive),r=await a.Storage.getPage(o.pageId),i=Oa(o.layout.content)>1,s=await Ae(e),c=await a.Theme.getThemes(),l=c[0]&&"palettes"in c[0]||!c[0]||0===c.length,d={...Ur(s),enabled:!!r},u={...Gr(s),enabled:i};return[Or(),Hr(!0,s),{type:Rr.Separator},d,u,{type:Rr.Separator},...l?[{type:Rr.Submenu,label:Kr().label,submenu:await Zr()}]:[],{type:Rr.Separator},Lr(),{type:Rr.Separator},_r(!0)]})({identity:e.identity,selectedViews:e.selectedViews}):await qr(e.identity,e.selectedViews),o=await ii();a||(n.find(e=>e.data?.type===h.Quit).label=`Quit ${o}`);const{rect:r,...i}=e,{x:s,y:c}=a?{x:r.left+r.width,y:r.bottom}:e,l={...i,x:s,y:c,template:n,callback:si};await this.openGlobalContextMenu(l,t)}async function wi(e,t){const a={...e,callback:ai};await this.openViewTabContextMenu(a,t)}async function gi(e,t){const a=await(async(e,t)=>{const a=await Aa().Storage.getPage(e),n=await pn(),o=await Ae(t),r=n.find(t=>t.pageId===e),i=Oa(r.layout.content)>1,{workspacePlatform:s}=await pe(t).getOptions(),c=!(s.isLocked||s.preventPageClose||r.closeButton?.disabled||r.closeButton?.hidden),l=[{type:Rr.Label,label:Qa("enterpriseContextMenu.newTab"),data:{type:k.NewPage}},Vr,oi(r),Vr,{type:Rr.Label,label:Qa("reload"),data:{type:k.Refresh}},{type:Rr.Label,label:Qa("enterpriseContextMenu.duplicate"),data:{type:k.Duplicate},enabled:!s.isLocked},await Nr(),Vr,{type:Rr.Label,label:Qa(i?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:k.Close},enabled:c}],d=[{type:Rr.Label,label:Qa("enterpriseContextMenu.newTab"),data:{type:k.NewPage}},Vr,oi(r),Vr,{type:Rr.Label,label:Qa("enterpriseSaveModal.renameSupertab"),data:{type:k.Rename},enabled:!s.isLocked&&!!a&&i},{type:Rr.Label,label:Qa("enterpriseContextMenu.duplicate"),data:{type:k.Duplicate},enabled:!s.isLocked},Vr,{type:Rr.Label,label:Qa("enterpriseContextMenu.saveSupertab"),data:{type:k.Save},enabled:i&&!!a},{type:Rr.Label,label:Qa("enterpriseContextMenu.saveSupertabAs"),data:{type:k.SaveAs},enabled:i},Vr,{type:Rr.Label,label:Qa("enterpriseContextMenu.deleteSupertab"),data:{type:k.DeletePage},enabled:!!a},Vr,{type:Rr.Label,label:Qa(i?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:k.Close},enabled:c}],u=[{type:Rr.Label,label:Qa("contextMenu.savePage"),data:{type:k.Save},enabled:!0},{type:Rr.Label,label:Qa("saveMenu.savePageAs"),data:{type:k.SaveAs},enabled:!0},{type:Rr.Label,label:"Save Workspace As",data:{type:k.SaveWorkspaceAs}},{type:Rr.Label,label:"Refresh",data:{type:k.Refresh}},Vr,{type:Rr.Label,label:Qa("saveModal.renamePage"),data:{type:k.Rename},enabled:!!a},{type:Rr.Label,label:Qa("contextMenu.duplicatePage"),data:{type:k.Duplicate},enabled:!s.isLocked},Vr,{type:Rr.Label,label:Qa("saveModal.closePage"),data:{type:k.Close},enabled:c}];return o?i?d:l:u})(e.pageId,e.identity),n={...e,template:a,callback:(t,a)=>{ci(t,a,e.rect)}};await this.openPageTabContextMenu(n,t)}async function hi(e,t){const a={...e,template:await(async()=>{const e=Aa(),t=await e.getCurrentWorkspace(),a=(await e.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId);return[{type:Rr.Label,label:Qa("contextMenu.saveWorkspace"),enabled:!!a,data:{type:v.SaveWorkspace}},{type:Rr.Label,label:Qa("saveMenu.saveWorkspaceAs"),data:{type:v.SaveWorkspaceAs}},{type:Rr.Separator,data:void 0},{type:Rr.Label,label:Qa("contextMenu.savePage"),data:{type:v.SavePage}},{type:Rr.Label,label:Qa("saveMenu.savePageAs"),data:{type:v.SavePageAs}}]})(),callback:li};await this.openSaveButtonContextMenu(a,t)}const mi="dock-companion-updates",ki=async()=>(await fin.Application.getCurrentSync().getChildWindows()).find(e=>e.identity.name===de.DockCompanion),bi=dt(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-dock`),yi=async()=>{const e=Aa(),t=await async function(){const e=await Yo();await Promise.all(e.map(async e=>{await er(e.identity)}));const t=Array.from(Zo.values()).sort((e,t)=>t.lastFocusedTime-e.lastFocusedTime),a=t.find(e=>e.isVisible);if(a){const e=fin.Window.wrapSync(a.identity);return await e.focus(),a.identity}const n=t[0];if(n){const e=fin.Window.wrapSync(n.identity);return await e.restore(),await e.focus(),n.identity}return Xo()}(),a=e.Browser.wrapSync(t),n=(await a.getPages()).at(-1),o=Na(n.layout.content);if(1===o.length&&Te(o[0].url))await a.setActivePage(n.pageId);else{const e=await Yn(t),{newPageUrl:n}=await Qn();await a._addDefaultPage({identity:a.identity,page:e,newPageUrl:n||void 0})}(await ea(t)).dispatch(sa.FocusAndExpandSearchInternal)},fi="dock-provider-configs",Si=D&&A&&new ur.Dexie(pr("dock-provider-configs"));async function vi(e){if(!Si)throw new Error("Unable to get Dock provider config - IndexDB not supported");try{return await Si[fi].get(e)}catch(e){return void console.warn("Failed to retrieve Dock provider config from IndexedDB",e)}}async function Pi(e){if(!Si)throw new Error("Unable to save Dock provider config - IndexDB not supported");await Si[fi].put(e,e.id)}let Ci;Si&&Si.version(.1).stores({[fi]:""});async function Mi(e){return(await(Ci||(Ci=dt(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-modal`)()),Ci)).dispatch(ia.SendUpdateVersionModalResponse,e)}const xi="workspaces",Ii=D&&A&&gr("openfin-workspace-platform-workspaces",xi);async function Ai(e){if(!Ii)throw new Error("Unable to get workspace - IndexDB not supported");const t=await Ii[xi].get(e);return t&&(t.workspaceId=e.toString(),t.title=t.title||t.workspaceId),t}async function Wi(e){if(!Ii)throw new Error("Unable to get workspaces - IndexDB not supported");const t=await Ii[xi].toCollection().keys(),a=(await Promise.all(t.map(e=>Ai(e.toString())))).filter(e=>!!e);return e?a.filter(t=>hr(t.title,e)):a}async function Di({workspace:e}){if(!Ii)throw new Error("Unable to create workspace - IndexDB not supported");const t=(await Wi()).find(t=>t.title===e.title);if(t&&t.workspaceId!==e.workspaceId)throw new Error(`Workspace with title '${e.title}' already exists.`);await Ii[xi].put(e,e.workspaceId)}async function Ti(e){if(!Ii)throw new Error("Unable to delete workspace - IndexDB not supported");await Ii[xi].delete(e)}async function Bi({workspaceId:e,workspace:t}){if(!Ii)throw new Error("Unable to update workspace - IndexDB not supported");if(!await Ai(e))throw new Error("workspace not found");await Di({workspace:t}),e!==t.workspaceId&&await Ti(e)}const Ri=e=>{const t=e.layout,a=t.content?Na(t.content):[],n=a.length;return n>1?{...e,singleViewName:null}:1===n?{...e,singleViewName:a[0].name}:void 0},Ei=async(e,t,a)=>{const n=await Aa().Browser.getAllAttachedPages(),o=new Set(n.map(e=>e.title).filter(e=>!!e)),r=new Set(n.map(e=>e.pageId).filter(e=>!!e)),i=t?.defaultPageOptions,s="enterprise"===a?.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType,c=await(async(e,t,a)=>{if(a)return ne();const n=t?.workspacePlatform?.newTabUrl;if(n)return n;const o=e?.defaultWindowOptions?.workspacePlatform?.newTabUrl;return o||void 0})(t,a,s);return Promise.all(e.map(async e=>{if("reparent"===e.multiInstanceViewBehavior)return{...e,layoutContainerKey:Lt()};((e,t)=>{e.pageId||=Lt(),t.has(e.pageId)&&(console.warn("PageID collision detected. All Page IDs should be unique. A random new pageId will be generated"),e.pageId=Lt()),t.add(e.pageId)})(e,r),s||(e.title=un(e.title,Array.from(o.keys()))),o.add(e.title),e.panels?.reduce((e,t)=>{const a=Object.values(w);if(!a.includes(t.position))throw new Error(`Encountered a panel with unsupported position "${t.position}". Supported positions are: ${a.toString()}`);if(1==e[t.position])throw new Error(`Found more than 1 panel at position: ${t.position}. Only 1 panel at a given position is currently supported.`);return{...e,[t.position]:e[t.position]+1}},{[w.Left]:0,[w.Right]:0,[w.Top]:0,[w.Bottom]:0});const a="panels"in e?e.panels:i?.panels;let n=(l=e.layout,d=t?.defaultViewOptions,Ba({...l},e=>Ra(e,d)));var l,d;c&&!n?.settings?.newTabButton&&(n={...n,settings:{...n?.settings,newTabButton:{url:c}}});return{...i,...e,panels:a&&await on(a),layoutContainerKey:Lt(),layout:n,isLayoutCreated:!1}}))},Fi=async(e,t)=>{try{await fin.Platform.getCurrentSync().createView({name:e,url:t,target:fin.me.identity,bounds:{top:0,left:0,width:0,height:0}},fin.me.identity)}catch(e){}};async function Vi(e){return e?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==":(await Q()).displayViewTabDefaultIcon?"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==":"data:image/svg+xml,%3Csvg%20style%3D%22background-color%3A%237D808A%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.64648%200.874962C4.84174%200.6797%205.15833%200.6797%205.35359%200.874962L9.12482%204.6462C9.32009%204.84146%209.32009%205.15804%209.12482%205.3533L5.35359%209.12454C5.15833%209.3198%204.84174%209.3198%204.64648%209.12454L0.875245%205.3533C0.679982%205.15804%200.679982%204.84146%200.875245%204.6462L4.64648%200.874962ZM5.00003%201.93562L1.9359%204.99975L5.00003%208.06388L8.06416%204.99975L5.00003%201.93562Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"}const Ni={dimensions:{borderWidth:3,headerHeight:30}};async function Li(e,t,a){let n=e;const o="enterprise"===n.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType;if(n.layout&&!n.workspacePlatform?.pages?.length){const e=await An(),a={...await Kt(e,n.layout),isActive:!0};n.workspacePlatform||={},n.workspacePlatform.pages=await Ei([a],t,n)}t?.browserIconSize&&(n.workspacePlatform||={},n.workspacePlatform.browserIconSize=t.browserIconSize);const r=a?.themes?.[0];if(n.workspacePlatform?.pages?.length){const e=await Ei(n.workspacePlatform.pages,t,n),i=e,s=(e=>{if(!e)return;let t=e.find(e=>e.isActive);return!t&&e.length>0&&(e[0].isActive=!0,t=e[0]),t})(i);if(i.forEach(e=>{e.pageId!==s?.pageId&&(e.isActive=!1)}),await rn(i),n.workspacePlatform.pages=e,n=Et({},await(async e=>({contextMenuOptions:{enabled:!1},experimental:{showFavicons:!0,defaultFaviconUrl:await Vi(e)},viewVisibility:{showViewsOnSplitterDrag:{enabled:!0},showViewsOnWindowResize:{enabled:!0}}}))(o),t?.defaultWindowOptions,n,await(async e=>({backgroundThrottling:!0,url:await oe(e,!0),contextMenu:!0,closeOnLastViewRemoved:!1,permissions:{System:{openUrlWithBrowser:{enabled:!0,protocols:["mailto"]}}}}))(o)),s.layout=Et(s.layout,Ni),async function(e){if(e.icon||e.taskbarIcon){const t=fin.Application.getCurrentSync(),a=await(await t.getWindow()).getOptions();e.taskbarIconGroup||=a.taskbarIconGroup||fin.me.identity.uuid}if(e.workspacePlatform.icon)if("object"==typeof e.workspacePlatform.icon){const t=window.matchMedia("(prefers-color-scheme: dark)");e.icon=t.matches?e.workspacePlatform.icon.dark:e.workspacePlatform.icon.light}else e.icon=e.workspacePlatform.icon}(n),!n.backgroundColor&&r)if("palette"in r)n.backgroundColor=r?.palette?.background2||r?.palette?.backgroundPrimary;else{const e=a.selectedScheme===m.Dark||a.selectedScheme===m.System&&window.matchMedia("(prefers-color-scheme: dark)")?r?.palettes.dark:r?.palettes.light;n.backgroundColor=e?.background2||e?.backgroundPrimary}n=Ce(n,!0);const c=await oe(o,!0);c&&(n.url=c),n.layout=s.layout,n.layoutSnapshot=((e,t)=>({layouts:e.reduce((e,a)=>{if(!a.isActive){if(!t)return e;if(!Ri(a).singleViewName)return e}return e[a.layoutContainerKey]=a.layout,e},{}),pages:e}))(n.workspacePlatform.pages,o),n.workspacePlatform.windowType=n.workspacePlatform.windowType??P.Browser}if(n.cornerRounding&&delete n.cornerRounding,n.name||n.layoutSnapshot?n.contextMenuOptions?.template?.length>0?n.contextMenuOptions.template=n.contextMenuOptions.template.filter(e=>"print"!==e):n.contextMenuOptions={template:[],enabled:!1}:n.name=`${de.ClassicWindow}-${Lt()}`,n.workspacePlatform&&a&&(n.workspacePlatform._themeData=a),o){const e=await ne();n.workspacePlatform.newPageUrl=e,n.workspacePlatform.newTabUrl=e,n.layout&&(n.layout.dimensions.borderWidth=4,n.layout.dimensions.headerHeight=28),n.name=n.name||`${de.BrowserWindow}-${Lt()}`;if(n.name.startsWith(de.BrowserWindow)){(async e=>{const t=await ae(),a=de.BrowserAddressSearchPrefix+e.name,n=t+z.BrowserPopupMenuAddressSearchResultsView,o=[],r=Fi(a,n);o.push(r);const i=de.AICompanionPrefix+e.name,{url:s,enabled:c}=nn();if(c){const e=Fi(i,s);o.push(e)}await Promise.all(o)})(n);const{enabled:e}=nn();n.workspacePlatform.isAiEnabled=e,n.minWidth=Math.max(654,n.minWidth??0),n.minHeight=Math.max(488,n.minHeight??0)}}else n.minWidth=Math.max(232,n.minWidth??0);return n}const _i=async(e,t)=>{const a={uuid:t.uuid,name:t.name};await ko(a,e.title??await ii(),e.shouldCenterOnMonitor)&&fin.Platform.getCurrentSync().quit()},Oi=async(e,t)=>{const a=Aa(),n=await a.Browser.getLastFocusedWindow();if(!n)return;const o=a.Browser.wrapSync(n),{title:r,description:i}=e,s=await fo({title:r,description:i,identity:o.identity});s&&o._sendUpdateVersionModalResponse({identity:t,response:s})},Ui=e=>{const t=e.name===de.Home,a=e.name?.startsWith(de.HomeInternal),n=e.name?.startsWith(de.BrowserMenu)||e.name?.startsWith(de.BrowserSaveMenu);return!t&&!a&&!n};const Gi=e=>JSON.parse(JSON.stringify(e));async function Hi(e,t,a){const n=e.manifestUrl?await t({manifestUrl:e.manifestUrl},a):void 0;if(n?.interop&&e.interop){const t={...e,...n,interop:e.interop};return delete t.manifestUrl,t}return e}const $i=e=>{const t=Gi(e);return t._internalWorkspaceData?.browserNavigationButtons&&(t.workspacePlatform={...t.workspacePlatform,browserNavigationButtons:t._internalWorkspaceData.browserNavigationButtons},delete t._internalWorkspaceData.browserNavigationButtons),t},zi=e=>{const t=Gi(e);return t.workspacePlatform&&(t._internalWorkspaceData={...t._internalWorkspaceData,...t.workspacePlatform},delete t.workspacePlatform),t},Ki={reload:[{keys:"Ctrl+R",preventDefault:!0}],back:[{keys:"Alt+Left",preventDefault:!0}],forward:[{keys:"Alt+Right",preventDefault:!0}]},Ji={reload:[{keys:"Cmd+R",preventDefault:!0}],back:[{keys:"Cmd+[",preventDefault:!0},{keys:"Cmd+Left",preventDefault:!0}],forward:[{keys:"Cmd+]",preventDefault:!0},{keys:"Cmd+Right",preventDefault:!0}]},Zi=async()=>await Dr()?Ki:Ji,qi=(e,t)=>{const a=fin.View.wrapSync(e);if(!t)return;const n=e=>{(async(e,t,a)=>{if("keyDown"!==a.inputType)return;const n=await(async e=>{const t=await e.getCurrentWindow(),a=await t.getOptions(),n=a.workspacePlatform?.navigationButtons;return n.enabled&&!n.hotkeysDisabled})(e),o=await Dr();if(n){if(t.reload){const n=a.ctrlKey&&!a.altKey&&!a.metaKey&&!a.shiftKey&&"r"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"r"===a.key;(o?n:r)&&t?.reload&&(e.reload(),je({type:"View",action:"Reload",value:e.identity.name}))}if(t.back){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"["===a.key;(o?n:r||i)&&t?.back&&(e.navigateBack(),je({type:"View",action:"Back",value:e.identity.name}))}if(t.forward){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"]"===a.key;(o?n:r||i)&&t?.forward&&(e.navigateForward(),je({type:"View",action:"Forward",value:e.identity.name}))}}})(a,t,e)};a.addListener("hotkey",n),a.once("destroyed",()=>{a.removeListener("hotkey",n)})},ji=(e,t)=>Gi(e).map(e=>("componentState"in e?e.componentState=t(e.componentState):"content"in e&&(e.content=ji(e.content,t)),e)),Qi=e=>{if(e){const t=Gi(e);return t.content&&(t.content=ji(t.content,$i)),t}return e},Yi=e=>{if(e){const t=Gi(e);return t.content&&(t.content=ji(t.content,zi)),t}return e};async function Xi({app:e,target:t}){const a=fin.Platform.getCurrentSync();switch(e.manifestType){case c.Snapshot:return a.applySnapshot(e.manifest);case c.View:return async function(e,t){const a=fin.Platform.getCurrentSync();if("view"===t.entityType){const a=fin.View.wrapSync(t),n=await a.getParentLayout();return await n.replaceView(t,{manifestUrl:e.manifest,url:void 0,target:void 0}),a.destroy()}return a.createView({name:void 0,url:void 0,manifestUrl:e.manifest,target:void 0})}(e,t);case c.External:return fin.System.launchExternalProcess({path:e.manifest,uuid:e.appId});default:return fin.Application.startFromManifest(e.manifest)}}let es;const ts=()=>{if(!es){const e=dt(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-app-directory`);es=e()}return es};async function as(e){if(!await Ae(e.identity))return[];return(await ts()).dispatch(na.GetApps,e.req)}async function ns(e){if(!await Ae(e.identity))return[];return(await ts()).dispatch(na.GetSearchProviders,e)}async function os(e){return(await ts()).dispatch(na.GetCuratedContent,e)}async function rs(e){return(await ts()).dispatch(na.GetRecentlyVisited,e)}async function is(e){const t=(await be()).map(async e=>{const t=await e.getOptions();t.workspacePlatform?.pages&&t.layout&&await(async e=>(await ea(e)).dispatch(sa.UpdatePagesWindowOptions))(e.identity)});return await Promise.all(t),e?e():$t()}let ss=[];const cs=()=>ss;async function ls(e){const t=e=>{if(!e.includes("#")&&!e.includes("rgb")&&!e.includes("hsl"))throw new Error("Background primary color is not the right format.")};e?.forEach(e=>{"palette"in e&&t(e.palette.backgroundPrimary),"palettes"in e&&(t(e.palettes.dark.backgroundPrimary),t(e.palettes.light.backgroundPrimary))});const a=((e,t)=>{if(!e||!e[0]){const{dark:e,light:a}=Ct[0].palettes;return ba.setPalettes({dark:e,light:a},t),Ct}{const a=e[0];if("palette"in a){const{palette:n}=a,o={...Pt,...n};return ba.setPalettes({dark:o,light:o},t),a.palette=o,e}if("palettes"in a){const{dark:n,light:o}=a.palettes,r={...Pt,...n},i={...vt,...o};return ba.setPalettes({dark:r,light:i},t),a.palettes={dark:r,light:i},e}}})(e,await Dr());ss=a}const ds=(e,t)=>a=>{const n=null!==e;return class extends a{constructor(){super(),this.isWorkspacePlatform=()=>({isWorkspacePlatform:!0,isBrowserInitialized:!!e,analytics:{isSupported:!0}}),this.detachPagesFromWindow=vn,this.getAllAttachedPages=pn,this.getPagesForWindow=Cn,this.getPageForWindow=Mn,this.markUnsavedPagesAsSavedInternal=Fn,this.launchApp=Xi,this.savePage=yn,this.saveWorkspace=Ao,this.createSavedPageInternal=mn,this.updateSavedPageInternal=bn,this.deleteSavedPageInternal=kn,this.reorderPagesForWindow=xn,this.getUniquePageTitle=An,this.updatePageForWindow=Sn,this.getLastFocusedBrowserWindow=Qo,this.getThemes=cs,this.invokeCustomActionInternal=or,this.requestQuitPlatformDialogInternal=_i,this.getCurrentWorkspace=xo,this.setActiveWorkspace=Co,this.getLanguageResourcesInternal=zo,this.getPageByViewIdentity=async e=>{const t=await fin.Platform.Layout.getLayoutByViewIdentity(e),a=t.identity;if(!("layoutName"in a))throw new Error("Failed to get layout's identity");const n=await Aa().Browser.wrapSync(t.identity).getPages(),o=n.findIndex(e=>e.layoutName===a.layoutName);if(-1===o)throw new Error("Failed to get page's index");return{windowIdentity:{name:t.identity.name,uuid:t.identity.uuid},page:n[o],pageIndex:o}},this.openGlobalContextMenuInternal=this.openGlobalContextMenuInternal.bind(this),this.openGlobalContextMenu=this.openGlobalContextMenu.bind(this),this.getSavedPages=this.getSavedPages.bind(this),this.getSavedPage=this.getSavedPage.bind(this),this.createSavedPage=this.createSavedPage.bind(this),this.updateSavedPage=this.updateSavedPage.bind(this),this.deleteSavedPage=this.deleteSavedPage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.attachPagesToWindow=this.attachPagesToWindow.bind(this),this.openViewTabContextMenuInternal=this.openViewTabContextMenuInternal.bind(this),this.openViewTabContextMenu=this.openViewTabContextMenu.bind(this),this.openPageTabContextMenuInternal=this.openPageTabContextMenuInternal.bind(this),this.openPageTabContextMenu=this.openPageTabContextMenu.bind(this),this.getSavedWorkspaces=this.getSavedWorkspaces.bind(this),this.getSavedWorkspace=this.getSavedWorkspace.bind(this),this.createSavedWorkspace=this.createSavedWorkspace.bind(this),this.updateSavedWorkspace=this.updateSavedWorkspace.bind(this),this.deleteSavedWorkspace=this.deleteSavedWorkspace.bind(this),this.getCurrentWorkspace=this.getCurrentWorkspace.bind(this),this.getDockProviderConfig=this.getDockProviderConfig.bind(this),this.saveDockProviderConfig=this.saveDockProviderConfig.bind(this),this.applyWorkspace=this.applyWorkspace.bind(this),this.restoreLastSavedWorkspaceInternal=this.restoreLastSavedWorkspaceInternal.bind(this),this.setActiveWorkspace=this.setActiveWorkspace.bind(this),this.openSaveButtonContextMenu=this.openSaveButtonContextMenu.bind(this),this.openSaveButtonContextMenuInternal=this.openSaveButtonContextMenuInternal.bind(this),this.getSelectedScheme=this.getSelectedScheme.bind(this),this.setSelectedScheme=this.setSelectedScheme.bind(this),this.analyticsInternal=this.analyticsInternal.bind(this),this.handleAnalytics=this.handleAnalytics.bind(this),this.getLanguage=this.getLanguage.bind(this),this.setLanguage=this.setLanguage.bind(this),this.handleSaveModalOnPageClose=this.handleSaveModalOnPageClose.bind(this),this.shouldPageClose=this.shouldPageClose.bind(this),this.shouldWindowClose=this.shouldWindowClose.bind(this),this.handlePagesAndWindowClose=this.handlePagesAndWindowClose.bind(this),this.setActivePage=this.setActivePage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.copyPage=this.copyPage.bind(this),this.addPage=this.addPage.bind(this),this.addDefaultPage=this.addDefaultPage.bind(this),this.markUnsavedPagesAsSavedInternal=this.markUnsavedPagesAsSavedInternal.bind(this),this.trackRemovedTabInternal=this.trackRemovedTabInternal.bind(this),this.restoreRemovedTabInternal=this.restoreRemovedTabInternal.bind(this),this.trackVisitedSiteInternal=this.trackVisitedSiteInternal.bind(this),this.getRecentlyVisitedSitesInternal=this.getRecentlyVisitedSitesInternal.bind(this),this.getFrequentlyVisitedSitesInternal=this.getFrequentlyVisitedSitesInternal.bind(this),this.searchSitesInternal=this.searchSitesInternal.bind(this),this.getSearchProvidersInternal=this.getSearchProvidersInternal.bind(this),this.getCuratedContentInternal=this.getCuratedContentInternal.bind(this),this.handleRequestNavigationInternal=this.handleRequestNavigationInternal.bind(this),this.refreshBookmarksInternal=this.refreshBookmarksInternal.bind(this),this.launchBookmarkInternal=this.launchBookmarkInternal.bind(this),this.getNotificationsConfig=this.getNotificationsConfig.bind(this),this.updateDockFavoritesInternal=this.updateDockFavoritesInternal.bind(this),this.updateContentMenuInternal=this.updateContentMenuInternal.bind(this),this.launchDockEntryInternal=this.launchDockEntryInternal.bind(this),this.setDockFavoritesOrderInternal=this.setDockFavoritesOrderInternal.bind(this),this.navigateContentMenuInternal=this.navigateContentMenuInternal.bind(this),this.setDefaultDockButtonsOrderInternal=this.setDefaultDockButtonsOrderInternal.bind(this),this.getDockWorkspacesContextMenuInternal=this.getDockWorkspacesContextMenuInternal.bind(this),this.handleDockWorkspacesMenuResponseInternal=this.handleDockWorkspacesMenuResponseInternal.bind(this),this.removeDockFavoriteInternal=this.removeDockFavoriteInternal.bind(this),this.addDockFavoriteInternal=this.addDockFavoriteInternal.bind(this),this.focusAndExpandSearchInternal=this.focusAndExpandSearchInternal.bind(this),this.sendUpdateVersionModalResponseInternal=this.sendUpdateVersionModalResponseInternal.bind(this),this.requestQuitPlatformDialogInternal=_i.bind(this),this.showUpdateVersionModalInternal=Oi.bind(this)}async applyWorkspace(...e){return vo.apply(this,e)}async restoreLastSavedWorkspaceInternal(...e){return Po.apply(this,e)}async getSnapshot(){const e=n?await is(async()=>$t(await super.getSnapshot(void 0,fin.me.identity))):await $t(await super.getSnapshot(void 0,fin.me.identity));let t={...e,windows:e.windows.filter(Ui).map(Ht)};return t=(e=>{const t=Gi(e);return t.windows.forEach(e=>{e.layout&&(e.layout=Qi(e.layout)),e.workspacePlatform?.pages?.forEach(e=>{e?.layout&&(e.layout=Qi(e.layout))})}),t})(t),t}async getViewSnapshot(e){let t=await super.getViewSnapshot(e);return t=$i(t),t}async applySnapshot({snapshot:e,options:t}){let a=e;"string"==typeof a&&(a=await super.fetchManifest({manifestUrl:a},fin.me.identity));const o=function(e){for(const t of e.windows)if(t.workspacePlatform?.pages?.length)return!0;return!1}(a);if(!n&&o)throw new Error("This snapshot cannot be applied as the platform has been initialized without the browser.");return a=(e=>{const t=Gi(e);return t.windows.forEach(e=>{e.layout=Yi(e.layout),e.workspacePlatform?.pages?.forEach(e=>{e.layout=Yi(e.layout)})}),t})(a),super.applySnapshot({snapshot:a,options:t})}async createWindow(t,a){if(n&&"tearout"===t.reason){const e=await fin.Window.wrapSync(a).getOptions(),n=e.workspacePlatform?.windowType;t.taskbarIconGroup=e.taskbarIconGroup,n&&(t.workspacePlatform||={},t.workspacePlatform.windowType=e.workspacePlatform.windowType,n===P.Platform&&(t.url=e.url))}if(!n||t.workspacePlatform?.windowType===P.Platform){const e=await super.createWindow(t,a);return je({type:"Window",action:"Open Window",value:e.identity.name,data:{uuid:e.identity.uuid}}),e}var o;o={allowed:!0},Ke||(Ke=!0,ze($e.Browser,o)),((e=[])=>{const t=e.filter(e=>e.type!==S.Custom),a=new Set,n=[];for(const e of t)a.has(e.type)&&n.push(e.type),a.add(e.type);if(n.length>0){const e=n.join(", ");throw new Error(`Encountered a duplicate "${e}" toolbar button. No more than one instance of a button type may be provided.`)}})(t.workspacePlatform?.toolbarOptions?.buttons);let r=(e=>"workspacePlatform"in e?e:(({workstacks:e,pages:t,...a})=>({...a,workspacePlatform:{pages:t||e||null}}))(e))(t);r=await Li(r,e,{themes:cs(),selectedScheme:this.getSelectedScheme()}),r=await(async e=>{const t=await fin.System.getMonitorInfo();let a=t.primaryMonitor;const n=e.defaultLeft,o=e.defaultTop;t.nonPrimaryMonitors.forEach(e=>{const{top:t,bottom:r,left:i,right:s}=e.availableRect;n>=i&&n<=s&&o>=t&&o<=r&&(a=e)});const r=a.availableRect.bottom-a.availableRect.top,i=a.availableRect.right-a.availableRect.left;return e.defaultHeight=Math.min(e.defaultHeight||800,r),e.defaultWidth=Math.min(e.defaultWidth||800,i),e})(r);const i=await(e=>async(t,a)=>{let n=!1;const o=await e(t,a);return t?.workspacePlatform?._internalDeferShowOptions?.deferShowEnabled?(await o.addListener("show-requested",async()=>{if(n)return;const e=await o.getOptions();await o.updateOptions({workspacePlatform:{...e.workspacePlatform,_internalDeferShowOptions:{...e.workspacePlatform._internalDeferShowOptions,autoShow:!0}}}),n=!0}),o):o})((e,t)=>super.createWindow(e,t))(r,a);return je({type:"Window",action:"Open Window",value:i.identity.name,data:{uuid:i.identity.uuid}}),i}async createView(t,a){t.opts=Da(t.opts,e?.defaultViewOptions),t.opts=await Hi(t.opts,this.fetchManifest,a),t.opts=await(async e=>{const t=Gi(e),a=t.workspacePlatform?.browserNavigationButtons;if(a){const e=Object.keys(a);for(const n of e)if(a[n]){const e=(await Zi())[n];t.hotkeys?t.hotkeys.push(...e):t.hotkeys=[...e]}}return t})(t.opts),t.opts=zi(t.opts);const n=await super.createView(t,a);return qi(n.identity,t.opts._internalWorkspaceData?.browserNavigationButtons),n}async replaceView(t,a){return t.opts.newView=await Da(t.opts.newView,e?.defaultViewOptions),t.opts.newView=await Hi(t.opts.newView,this.fetchManifest,a),super.replaceView(t,a)}async replaceLayout(e,t){return await Ae(t)||delete e.opts.layout?.dimensions,super.replaceLayout(e,t)}async getSavedPage(...e){return Sr.apply(this,e)}async getSavedPages(...e){return vr.apply(this,e)}async createSavedPage(...e){return Pr.apply(this,e)}async deleteSavedPage(...e){return Cr.apply(this,e)}async updateSavedPage(...e){return Mr.apply(this,e)}async getSavedWorkspace(...e){return Ai.apply(this,e)}async getSavedWorkspaces(...e){return Wi.apply(this,e)}async createSavedWorkspace(...e){return Di.apply(this,e)}async deleteSavedWorkspace(...e){return Ti.apply(this,e)}async updateSavedWorkspace(...e){return Bi.apply(this,e)}async getDockProviderConfig(...e){return vi.apply(this,e)}async saveDockProviderConfig(...e){return Pi.apply(this,e)}async attachPagesToWindow(t){const a=await Ei(t.pages,e);await rn(a),await fn({...t,pages:a})}async addPage(e){const t=await Ae(e.identity),a=await yt(e.identity),{page:n,insertionIndex:o}=e;n?.title||t||(n.title=await a.dispatch(ht.GetUniquePageTitle,void 0));const r=(await this.getAllAttachedPages()).find(e=>e.pageId===n.pageId||e.title===n.title);if(r){if(r.pageId===n.pageId)throw new Error(`page with id ${n.pageId} is already attached to a browser window ${r.parentIdentity.name}`);if(!t)throw new Error(`addPage title collision, page with title ${n.title} already exists, conflicting page id: ${r.pageId} with title ${r.title}`)}const i={identity:e.identity,pages:[{...n,multiInstanceViewBehavior:e.multiInstanceViewBehavior||"duplicate"}],insertionIndex:o};await this.attachPagesToWindow(i)}async addDefaultPage(e){await this.addPage(e),await this.setActivePage({identity:e.identity,pageId:e.page.pageId})}async setActivePage(...e){return Pn.apply(this,e)}async openGlobalContextMenuInternal(...e){return pi.apply(this,e)}async openGlobalContextMenu(...e){return ui.apply(this,[...e,dr.GlobalMenu,di.BottomRight])}async openViewTabContextMenuInternal(...e){return wi.apply(this,e)}async openViewTabContextMenu(...e){return ui.apply(this,[...e,dr.ContextMenu])}async openPageTabContextMenuInternal(...e){return gi.apply(this,e)}async openPageTabContextMenu(...e){return ui.apply(this,[...e,dr.ContextMenu])}async openSaveButtonContextMenu(...e){return ui.apply(this,e)}async openSaveButtonContextMenuInternal(...e){return hi.apply(this,e)}getSelectedScheme(...e){return xa.apply(this,e)}async setSelectedScheme(...e){return Ma.apply(this,e)}async handlePageChanges(...e){return En.apply(this,e)}async analyticsInternal(...e){return zn.apply(this,e)}async handleAnalytics(...e){}async handleSaveModalOnPageClose(...e){return Wn.apply(this,e)}async shouldPageClose(...e){return Dn.apply(this,e)}async shouldWindowClose(...e){return Tn.apply(this,e)}handlePagesAndWindowClose(...e){return Bn.apply(this,e)}async copyPage(...e){return Rn.apply(this,e)}async getNotificationsConfig(){return t}async setLanguage(...e){return $o.apply(this,e)}async getLanguage(){return Ho.apply(this)}async trackRemovedTabInternal(...e){return xr.apply(this,e)}async restoreRemovedTabInternal(){const e=await(async()=>{if(!fr)throw new Error("Unable to pop last removed tab - IndexDB not supported");const e=fr[kr],t=await e.toCollection().keys();if(t.length>0){const a=Math.max(...t.map(e=>Number(e))).toString(),n=await e.get(a);if(n){await e.delete(a);const{id:t,...o}=n;return o}}})();if("page"in e)if(await fe(e.identity)){const t=Aa().Browser.wrapSync(e.identity);await t.addPage(e.page),await t.setActivePage(e.page.pageId)}else Aa().createWindow({name:e.identity.name,workspacePlatform:{pages:[e.page],windowType:P.Browser}});else(function(e){return"window"in e})(e)&&Aa().createWindow({workspacePlatform:{pages:e.window.pages,windowType:P.Browser}})}async trackVisitedSiteInternal(...e){return Ar.apply(this,e)}async getRecentlyVisitedSitesInternal(...e){return await rs.apply(this,e)}async getFrequentlyVisitedSitesInternal(...e){return Wr.apply(this,e)}async searchSitesInternal(...e){return await as.apply(this,e)}async getSearchProvidersInternal(...e){return await ns.apply(this,e)}async getCuratedContentInternal(...e){return await os.apply(this,e)}async handleRequestNavigationInternal(...e){}async refreshBookmarksInternal(){(await Aa().Browser.getAllWindows()).forEach(async({identity:e})=>{(await ea(e)).dispatch(sa.RefreshBookmarksInternal)});(await Xt(sr())).dispatch(sa.RefreshBookmarksInternal),await(async()=>{const e=await ki();if(e){const t=await ea(e.identity,mi);await t.dispatch(sa.RefreshBookmarksInternal)}})()}async launchBookmarkInternal(e){return Br(e)}async updateDockFavoritesInternal(e){return(async e=>{const t=await ki();if(!t)throw new Error("Companion Dock window not found");{const a=await ea(t.identity,mi);await a.dispatch(ra.UpdateFavoriteEntries,e)}})(e)}async updateContentMenuInternal(e){return(async e=>{const t=await ki();if(!t)throw new Error("Companion Dock window not found");{const a=await ea(t.identity,mi);await a.dispatch(ra.UpdateContentMenu,e)}})(e)}async launchDockEntryInternal(e){return(async e=>(await bi()).dispatch("launch-entry",e))(e)}async setDefaultDockButtonsOrderInternal(e){return(async e=>(await bi()).dispatch("set-default-dock-buttons-order",e))(e)}async setDockFavoritesOrderInternal(e){return(async e=>(await bi()).dispatch("set-dock-favorites-order",e))(e)}async addDockFavoriteInternal(e){return(async e=>(await bi()).dispatch("add-favorite-entry",e))(e)}async removeDockFavoriteInternal(e){return(async e=>(await bi()).dispatch("remove-favorite-entry",e))(e)}async navigateContentMenuInternal(e){return(async e=>{const t=await ki();if(!t)throw new Error("Companion Dock window not found");{const a=await ea(t.identity,mi);await a.dispatch(ra.NavigateContentMenu,e)}})(e)}async getDockWorkspacesContextMenuInternal(){return(async()=>(await bi()).dispatch("get-dock-workspaces-context-menu",void 0))()}async handleDockWorkspacesMenuResponseInternal(e){return(async e=>(await bi()).dispatch("handle-dock-workspaces-menu-response",e))(e)}async focusAndExpandSearchInternal(){return yi()}async sendUpdateVersionModalResponseInternal(e){return Mi(e)}async showUpdateVersionModalInternal(e,t){return Oi(e,t)}}};function us(e,t,a){const n=ds(e,a);try{return"function"==typeof t?e=>t(n(e)):Array.isArray(t)?[...t,n]:e=>new(n(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}}const ps=["green","purple","orange","red","pink","yellow"],ws="CONTEXT_GROUP_PAGE",gs=()=>e=>class extends e{getContextGroups(){return super.getContextGroups().map(e=>ps.includes(e.displayMetadata?.name)?{...e,displayMetadata:{...e.displayMetadata,name:Qa(e.displayMetadata?.name)}}:e)}},hs=()=>{const e=new Set(ni.keys());return t=>class extends t{constructor(){super(),this.onClientConnected=async e=>{if(e.name.startsWith("internal-generated-view")){const{page:t}=await Aa().Browser.getPageByViewIdentity(e),a=t.contextGroup;this.joinContextGroup({contextGroupId:a??ws,target:e},{uuid:this.fin.me.uuid,name:this.fin.me.name})}};const e=this.interopClients.set;this.interopClients.set=(t,a)=>{e.call(this.interopClients,t,a),this.onClientConnected(a.clientIdentity)}}async joinContextGroup({contextGroupId:t,target:a},n){if(t!==ws)return super.joinContextGroup({contextGroupId:t,target:a},n);try{const t=(await Aa().Browser.getPageByViewIdentity(a)).page.layoutName;if(!t)throw new Error("View does not belong to a page");if(!e.has(t)&&(e.add(t),!this.contextGroupsById.has(t))){const e=new Map;this.contextGroupsById.set(t,e)}await super.joinContextGroup({contextGroupId:t,target:a},n),a.name}catch(e){JSON.stringify(a),e.stack}}getContextGroups(){return Array.from(e).map(e=>({id:e,displayMetadata:ni.get(e)??{}}))}setContextForGroup(e,t){if(!this.contextGroupsById.has(t)){const e=new Map;this.contextGroupsById.set(t,e)}return super.setContextForGroup(e,t)}}},ms=(e,t)=>{const a=(e=>We(e)?hs():gs())(t);try{return"function"==typeof e?t=>e(a(t)):Array.isArray(e)?[...e,a]:e=>new(a(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}};async function ks(){(async()=>{le().on("window-closed",ar)})(),async function(){const e=fin.Application.getCurrentSync(),t=await Yo();await Promise.all(t.map(async e=>{await er(e.identity,void 0,!0)}));const a=await fin.System.getFocusedWindow();a&&a.name.startsWith(de.BrowserWindow)&&await er(a,void 0,!0),await e.addListener("window-focused",async e=>{await er(e,void 0,!0)}),await e.addListener("window-minimized",async e=>{await er(e,!1)}),await e.addListener("window-restored",async e=>{await er(e,!0)}),await e.addListener("window-closed",tr)}();Co(await Mo())}let bs;async function ys(e,t){if(!await fe({uuid:we.uuid,name:de.DockCompanion})){const a=await Ve(we);await t.createWindow(Ce({name:de.DockCompanion,url:X((e.baseUrl??await ee())+z.EnterpriseBrowser)+z.EnterpriseDock,autoShow:!0,frame:!1,smallWindow:!0,saveWindowState:!1,defaultHeight:Me,defaultWidth:xe,includeInSnapshots:!1,defaultTop:e.dockPosition?.top??Ie,defaultLeft:e.dockPosition?.left??a.left-xe/2,workspacePlatform:{windowType:"enterprise",...e},throttling:"disabled",resizable:!1,maximizable:!1,backgroundColor:await Dt("background1")}))}}function fs({overrideCallback:e,interopOverride:t,browser:a,notifications:n,analytics:o,integrations:r=[],workspaceAsar:i}){if(!A)throw new Error("Cannot be used outside an OpenFin env.");return bs||(bs=(async()=>{const s=fin.Platform.getCurrentSync();var c,l;if(s.once("platform-api-ready",()=>ks()),s.on("window-show-all-downloads",({name:e,uuid:t})=>{Lo({name:e,uuid:t})}),a?.title&&(c=a.title,ri=c),Kn(o),i){const e=`workspace-${encodeURIComponent(fin.me.uuid)}`,{baseUrl:t}=await fin.System.serveAsset({...i,hostName:e});Y(t)}a?.browserBaseUrl&&Y(a.browserBaseUrl),We(a)&&(tn=!0,l=a,en=l?.aiPanelOptions,nn());const d=ya();var u;return d.setWorkspaceStorage(_e(`${B}-workspace`)),d.trySynchronizeWorkspaceStorage(),await fin.Platform.init({overrideCallback:us(a,e||a?.overrideCallback,n),interopOverride:ms(t||a?.interopOverride,a)}),u={allowed:!0},ze($e.Platform,u),await Promise.all(r.map(async e=>{((e,t)=>{ze(`${$e.Microflow}:${e}`,t,"integration-feature")})(e.workflowIntegrationName,{allowed:!0,apiVersion:_}),await e._initializeWorkflows()})),s})()),bs}const Ss=async({theme:e,customActions:t,language:a,...n})=>{const o=_.split(".").map(e=>parseInt(e)),r=await(async e=>{if((await Q()).disableRuntimeValidation)return!0;if(await Ae())return!0;const t=(await fin.System.getVersion()).split(".").map(e=>parseInt(e));return e.every((a,n)=>!(n<3)||t[n]===e[n])})(o);if(!r)throw new Error(`Runtime version is not supported. ${o[0]}.${o[1]}.${o[2]}.* is required`);var i;return ls(e),e&&(i={allowed:!0},ze($e.Theming,i)),t&&(nr=t),await Ko(a?.initialLanguage),fs(n)}})(),module.exports=n})();
|
|
2
2
|
//# sourceMappingURL=index.js.map
|